@kimdaegyu/babmukdang-shared 1.0.7 → 1.1.1

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 (78) hide show
  1. package/dist/chunk-4XAGRJUM.js +61 -0
  2. package/dist/chunk-5QLCZOPJ.js +34 -0
  3. package/dist/chunk-AATETFLU.js +312 -0
  4. package/dist/chunk-ADIREWTX.js +72 -0
  5. package/dist/chunk-ET2Z5ZYA.js +37 -0
  6. package/dist/chunk-HRM3FQPL.js +12 -0
  7. package/dist/chunk-JNJRBUKR.js +30 -0
  8. package/dist/chunk-M7HH7FMO.js +40 -0
  9. package/dist/chunk-NAPCX4Q6.js +183 -0
  10. package/dist/chunk-NCVWB52E.js +0 -0
  11. package/dist/chunk-NJTV6DRT.js +0 -0
  12. package/dist/chunk-O56CI56W.js +37 -0
  13. package/dist/chunk-PFSZSKD5.js +0 -0
  14. package/dist/chunk-RHQHBUO4.js +78 -0
  15. package/dist/chunk-XTBVYY5B.js +286 -0
  16. package/dist/chunk-XWTMYXPO.js +109 -0
  17. package/dist/chunk-YJ7RUOEJ.js +35 -0
  18. package/dist/domain/article/index.cjs +243 -0
  19. package/dist/domain/article/index.d.cts +952 -0
  20. package/dist/domain/article/index.d.ts +952 -0
  21. package/dist/domain/article/index.js +30 -0
  22. package/dist/domain/auth/index.cjs +141 -0
  23. package/dist/domain/auth/index.d.cts +72 -0
  24. package/dist/domain/auth/index.d.ts +72 -0
  25. package/dist/domain/auth/index.js +14 -0
  26. package/dist/domain/common/index.cjs +756 -0
  27. package/dist/domain/common/index.d.cts +2689 -0
  28. package/dist/domain/common/index.d.ts +2689 -0
  29. package/dist/domain/common/index.js +106 -0
  30. package/dist/domain/friend/index.cjs +148 -0
  31. package/dist/domain/friend/index.d.cts +117 -0
  32. package/dist/domain/friend/index.d.ts +117 -0
  33. package/dist/domain/friend/index.js +17 -0
  34. package/dist/domain/index.cjs +974 -0
  35. package/dist/domain/index.d.cts +14 -0
  36. package/dist/domain/index.d.ts +14 -0
  37. package/dist/domain/index.js +308 -0
  38. package/dist/domain/invitation/index.cjs +82 -0
  39. package/dist/domain/invitation/index.d.cts +64 -0
  40. package/dist/domain/invitation/index.d.ts +64 -0
  41. package/dist/domain/invitation/index.js +13 -0
  42. package/dist/domain/meal/index.cjs +154 -0
  43. package/dist/domain/meal/index.d.cts +66 -0
  44. package/dist/domain/meal/index.d.ts +66 -0
  45. package/dist/domain/meal/index.js +20 -0
  46. package/dist/domain/member/index.cjs +136 -0
  47. package/dist/domain/member/index.d.cts +332 -0
  48. package/dist/domain/member/index.d.ts +332 -0
  49. package/dist/domain/member/index.js +30 -0
  50. package/dist/domain/plan/index.cjs +278 -0
  51. package/dist/domain/plan/index.d.cts +178 -0
  52. package/dist/domain/plan/index.d.ts +178 -0
  53. package/dist/domain/plan/index.js +18 -0
  54. package/dist/domain/promotion/index.cjs +134 -0
  55. package/dist/domain/promotion/index.d.cts +114 -0
  56. package/dist/domain/promotion/index.d.ts +114 -0
  57. package/dist/domain/promotion/index.js +24 -0
  58. package/dist/domain/recruit/index.cjs +181 -0
  59. package/dist/domain/recruit/index.d.cts +130 -0
  60. package/dist/domain/recruit/index.d.ts +130 -0
  61. package/dist/domain/recruit/index.js +29 -0
  62. package/dist/domain/restaurant/index.cjs +85 -0
  63. package/dist/domain/restaurant/index.d.cts +82 -0
  64. package/dist/domain/restaurant/index.d.ts +82 -0
  65. package/dist/domain/restaurant/index.js +10 -0
  66. package/dist/domain/room/index.cjs +344 -0
  67. package/dist/domain/room/index.d.cts +1482 -0
  68. package/dist/domain/room/index.d.ts +1482 -0
  69. package/dist/domain/room/index.js +74 -0
  70. package/dist/id-_a-oManb.d.cts +58 -0
  71. package/dist/id-_a-oManb.d.ts +58 -0
  72. package/dist/index-CqcSqpDV.d.ts +286 -0
  73. package/dist/index-HEHaDbrV.d.cts +286 -0
  74. package/dist/index.cjs +825 -21
  75. package/dist/index.d.cts +108 -616
  76. package/dist/index.d.ts +108 -616
  77. package/dist/index.js +33 -36
  78. package/package.json +55 -39
@@ -0,0 +1,30 @@
1
+ import {
2
+ ArticleCommentSchema,
3
+ ArticleCoreSchema,
4
+ ArticleDetailResponseSchema,
5
+ ArticleListQuerySchema,
6
+ ArticleSortBySchema,
7
+ ArticleSummaryResponseSchema,
8
+ CreateArticleRequestSchema,
9
+ CreateCommentRequestSchema,
10
+ FoodAnalysisResultSchema,
11
+ PageArticleSummaryResponseSchema,
12
+ PresignArticleResponseSchema
13
+ } from "../../chunk-XWTMYXPO.js";
14
+ import "../../chunk-ET2Z5ZYA.js";
15
+ import "../../chunk-HRM3FQPL.js";
16
+ import "../../chunk-ADIREWTX.js";
17
+ import "../../chunk-4XAGRJUM.js";
18
+ export {
19
+ ArticleCommentSchema,
20
+ ArticleCoreSchema,
21
+ ArticleDetailResponseSchema,
22
+ ArticleListQuerySchema,
23
+ ArticleSortBySchema,
24
+ ArticleSummaryResponseSchema,
25
+ CreateArticleRequestSchema,
26
+ CreateCommentRequestSchema,
27
+ FoodAnalysisResultSchema,
28
+ PageArticleSummaryResponseSchema,
29
+ PresignArticleResponseSchema
30
+ };
@@ -0,0 +1,141 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/domain/auth/index.ts
31
+ var auth_exports = {};
32
+ __export(auth_exports, {
33
+ LoginRequestSchema: () => LoginRequestSchema,
34
+ SignupRequestSchema: () => SignupRequestSchema,
35
+ SignupResponseSchema: () => SignupResponseSchema,
36
+ TokenResponseSchema: () => TokenResponseSchema
37
+ });
38
+ module.exports = __toCommonJS(auth_exports);
39
+
40
+ // src/domain/auth/auth.schema.ts
41
+ var import_zod4 = require("zod");
42
+
43
+ // src/domain/member/member.schema.ts
44
+ var import_zod3 = require("zod");
45
+
46
+ // src/domain/common/schema/id.schema.ts
47
+ var import_zod = require("zod");
48
+ var PositiveIntIdSchema = import_zod.z.number().int().positive();
49
+ var NonEmptyStringIdSchema = import_zod.z.string().min(1);
50
+ var MemberIdSchema = PositiveIntIdSchema.brand();
51
+ var ArticleIdSchema = PositiveIntIdSchema.brand();
52
+ var CommentIdSchema = PositiveIntIdSchema.brand();
53
+ var RecruitIdSchema = PositiveIntIdSchema.brand();
54
+ var PlanIdSchema = PositiveIntIdSchema.brand();
55
+ var InvitationIdSchema = PositiveIntIdSchema.brand();
56
+ var RoomIdSchema = NonEmptyStringIdSchema.brand();
57
+ var RestaurantIdSchema = NonEmptyStringIdSchema.brand();
58
+ var CouponIdSchema = PositiveIntIdSchema.brand();
59
+ var SubscriptionIdSchema = PositiveIntIdSchema.brand();
60
+ var FriendRequestIdSchema = PositiveIntIdSchema.brand();
61
+ var ReferralCodeSchema = import_zod.z.string().min(4).max(64).brand();
62
+ var FoodCodeSchema = NonEmptyStringIdSchema.brand();
63
+ var FoodLabelSchema = NonEmptyStringIdSchema.brand();
64
+ var FoodSchema = import_zod.z.object({
65
+ code: FoodCodeSchema,
66
+ label: FoodLabelSchema
67
+ });
68
+
69
+ // src/domain/common/contracts/upload.ts
70
+ var import_zod2 = __toESM(require("zod"), 1);
71
+ var PresignUploadResponseSchema = import_zod2.default.object({
72
+ key: import_zod2.default.string(),
73
+ putUrl: import_zod2.default.string().url(),
74
+ cdnUrl: import_zod2.default.string().url()
75
+ });
76
+
77
+ // src/domain/member/member.schema.ts
78
+ var MemberRoleSchema = import_zod3.z.enum(["USER", "ADMIN"]);
79
+ var MemberCoreSchema = import_zod3.z.object({
80
+ memberId: MemberIdSchema,
81
+ username: import_zod3.z.string().min(1).max(50),
82
+ profileImageUrl: import_zod3.z.string().url().nullable().optional()
83
+ });
84
+ var PresignProfileResponseSchema = PresignUploadResponseSchema.extend({});
85
+ var MemberResponseSchema = MemberCoreSchema.pick({
86
+ memberId: true,
87
+ username: true,
88
+ profileImageUrl: true
89
+ });
90
+ var MemberSearchQuerySchema = import_zod3.z.object({
91
+ email: import_zod3.z.string().email().optional(),
92
+ username: import_zod3.z.string().optional()
93
+ });
94
+ var MemberSerachResponseSchema = import_zod3.z.array(MemberCoreSchema);
95
+ var MemberDetailSchema = MemberCoreSchema.extend({
96
+ bio: import_zod3.z.string().nullable(),
97
+ friendConunt: import_zod3.z.number().int().min(0).default(0),
98
+ completedPlans: import_zod3.z.number().int().min(0).default(0),
99
+ uncompletedPlans: import_zod3.z.number().int().min(0).default(0)
100
+ });
101
+ var FoodPreferenceItemSchema = FoodSchema.extend({});
102
+ var MemberFoodPreferenceSchema = import_zod3.z.object({
103
+ liked: import_zod3.z.array(FoodPreferenceItemSchema).optional(),
104
+ disliked: import_zod3.z.array(FoodPreferenceItemSchema).optional(),
105
+ allergy: import_zod3.z.array(FoodPreferenceItemSchema).optional()
106
+ });
107
+ var UpdateProfileRequestSchema = import_zod3.z.object({
108
+ username: import_zod3.z.string().min(1).max(50),
109
+ profileImageUrl: import_zod3.z.string().url().nullable(),
110
+ bio: import_zod3.z.string().max(500).nullable()
111
+ });
112
+ var UpdatePreferenceRequestSchema = MemberFoodPreferenceSchema;
113
+ var CreateProfileRequestSchema = UpdateProfileRequestSchema.merge(
114
+ UpdatePreferenceRequestSchema
115
+ );
116
+
117
+ // src/domain/auth/auth.schema.ts
118
+ var TokenResponseSchema = import_zod4.z.object({
119
+ accessToken: import_zod4.z.string().min(1),
120
+ accessTokenMaxAge: import_zod4.z.number().int().positive()
121
+ });
122
+ var LoginRequestSchema = import_zod4.z.object({
123
+ email: import_zod4.z.string().email(),
124
+ password: import_zod4.z.string().min(1)
125
+ });
126
+ var SignupRequestSchema = import_zod4.z.object({
127
+ email: import_zod4.z.string().email(),
128
+ password: import_zod4.z.string().min(8),
129
+ username: import_zod4.z.string().min(1).max(50),
130
+ profileImageUrl: import_zod4.z.string().url().nullable().optional()
131
+ });
132
+ var SignupResponseSchema = import_zod4.z.object({
133
+ member: MemberCoreSchema
134
+ });
135
+ // Annotate the CommonJS export names for ESM import in node:
136
+ 0 && (module.exports = {
137
+ LoginRequestSchema,
138
+ SignupRequestSchema,
139
+ SignupResponseSchema,
140
+ TokenResponseSchema
141
+ });
@@ -0,0 +1,72 @@
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<{
41
+ memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
42
+ username: z.ZodString;
43
+ profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
+ }, "strip", z.ZodTypeAny, {
45
+ memberId: number & z.BRAND<"MemberId">;
46
+ username: string;
47
+ profileImageUrl?: string | null | undefined;
48
+ }, {
49
+ memberId: number;
50
+ username: string;
51
+ profileImageUrl?: string | null | undefined;
52
+ }>;
53
+ }, "strip", z.ZodTypeAny, {
54
+ member: {
55
+ memberId: number & z.BRAND<"MemberId">;
56
+ username: string;
57
+ profileImageUrl?: string | null | undefined;
58
+ };
59
+ }, {
60
+ member: {
61
+ memberId: number;
62
+ username: string;
63
+ profileImageUrl?: string | null | undefined;
64
+ };
65
+ }>;
66
+
67
+ type LoginRequest = z.infer<typeof LoginRequestSchema>;
68
+ type SignupRequest = z.infer<typeof SignupRequestSchema>;
69
+ type TokenResponse = z.infer<typeof TokenResponseSchema>;
70
+ type SignupResponse = z.infer<typeof SignupResponseSchema>;
71
+
72
+ export { type LoginRequest, LoginRequestSchema, type SignupRequest, SignupRequestSchema, type SignupResponse, SignupResponseSchema, type TokenResponse, TokenResponseSchema };
@@ -0,0 +1,72 @@
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<{
41
+ memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
42
+ username: z.ZodString;
43
+ profileImageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
+ }, "strip", z.ZodTypeAny, {
45
+ memberId: number & z.BRAND<"MemberId">;
46
+ username: string;
47
+ profileImageUrl?: string | null | undefined;
48
+ }, {
49
+ memberId: number;
50
+ username: string;
51
+ profileImageUrl?: string | null | undefined;
52
+ }>;
53
+ }, "strip", z.ZodTypeAny, {
54
+ member: {
55
+ memberId: number & z.BRAND<"MemberId">;
56
+ username: string;
57
+ profileImageUrl?: string | null | undefined;
58
+ };
59
+ }, {
60
+ member: {
61
+ memberId: number;
62
+ username: string;
63
+ profileImageUrl?: string | null | undefined;
64
+ };
65
+ }>;
66
+
67
+ type LoginRequest = z.infer<typeof LoginRequestSchema>;
68
+ type SignupRequest = z.infer<typeof SignupRequestSchema>;
69
+ type TokenResponse = z.infer<typeof TokenResponseSchema>;
70
+ type SignupResponse = z.infer<typeof SignupResponseSchema>;
71
+
72
+ export { type LoginRequest, LoginRequestSchema, type SignupRequest, SignupRequestSchema, type SignupResponse, SignupResponseSchema, type TokenResponse, TokenResponseSchema };
@@ -0,0 +1,14 @@
1
+ import {
2
+ LoginRequestSchema,
3
+ SignupRequestSchema,
4
+ SignupResponseSchema,
5
+ TokenResponseSchema
6
+ } from "../../chunk-JNJRBUKR.js";
7
+ import "../../chunk-ADIREWTX.js";
8
+ import "../../chunk-4XAGRJUM.js";
9
+ export {
10
+ LoginRequestSchema,
11
+ SignupRequestSchema,
12
+ SignupResponseSchema,
13
+ TokenResponseSchema
14
+ };