@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,130 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const RecruitStatusSchema: z.ZodEnum<["OPEN", "CLOSED", "EXPIRED"]>;
|
|
4
|
+
declare const RecruitRequestSchema: z.ZodObject<{
|
|
5
|
+
targetCount: z.ZodNumber;
|
|
6
|
+
meetingAt: z.ZodString;
|
|
7
|
+
location: z.ZodString;
|
|
8
|
+
message: z.ZodString;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
message: string;
|
|
11
|
+
location: string;
|
|
12
|
+
meetingAt: string;
|
|
13
|
+
targetCount: number;
|
|
14
|
+
}, {
|
|
15
|
+
message: string;
|
|
16
|
+
location: string;
|
|
17
|
+
meetingAt: string;
|
|
18
|
+
targetCount: number;
|
|
19
|
+
}>;
|
|
20
|
+
declare const RecruitParticipantSchema: z.ZodObject<Pick<{
|
|
21
|
+
memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
|
|
22
|
+
username: z.ZodString;
|
|
23
|
+
profileImageUrl: z.ZodNullable<z.ZodString>;
|
|
24
|
+
}, "memberId" | "username" | "profileImageUrl">, "strip", z.ZodTypeAny, {
|
|
25
|
+
memberId: number & z.BRAND<"MemberId">;
|
|
26
|
+
username: string;
|
|
27
|
+
profileImageUrl: string | null;
|
|
28
|
+
}, {
|
|
29
|
+
memberId: number;
|
|
30
|
+
username: string;
|
|
31
|
+
profileImageUrl: string | null;
|
|
32
|
+
}>;
|
|
33
|
+
declare const RecruitResponseSchema: z.ZodObject<{
|
|
34
|
+
targetCount: z.ZodNumber;
|
|
35
|
+
meetingAt: z.ZodString;
|
|
36
|
+
location: z.ZodString;
|
|
37
|
+
message: z.ZodString;
|
|
38
|
+
} & {
|
|
39
|
+
recruitId: z.ZodBranded<z.ZodNumber, "RecruitId">;
|
|
40
|
+
status: z.ZodEnum<["OPEN", "CLOSED", "EXPIRED"]>;
|
|
41
|
+
createdAt: z.ZodString;
|
|
42
|
+
expiredAt: z.ZodString;
|
|
43
|
+
updatedAt: z.ZodString;
|
|
44
|
+
author: z.ZodObject<Pick<{
|
|
45
|
+
memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
|
|
46
|
+
username: z.ZodString;
|
|
47
|
+
profileImageUrl: z.ZodNullable<z.ZodString>;
|
|
48
|
+
}, "memberId" | "username" | "profileImageUrl">, "strip", z.ZodTypeAny, {
|
|
49
|
+
memberId: number & z.BRAND<"MemberId">;
|
|
50
|
+
username: string;
|
|
51
|
+
profileImageUrl: string | null;
|
|
52
|
+
}, {
|
|
53
|
+
memberId: number;
|
|
54
|
+
username: string;
|
|
55
|
+
profileImageUrl: string | null;
|
|
56
|
+
}>;
|
|
57
|
+
participants: z.ZodArray<z.ZodObject<Pick<{
|
|
58
|
+
memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
|
|
59
|
+
username: z.ZodString;
|
|
60
|
+
profileImageUrl: z.ZodNullable<z.ZodString>;
|
|
61
|
+
}, "memberId" | "username" | "profileImageUrl">, "strip", z.ZodTypeAny, {
|
|
62
|
+
memberId: number & z.BRAND<"MemberId">;
|
|
63
|
+
username: string;
|
|
64
|
+
profileImageUrl: string | null;
|
|
65
|
+
}, {
|
|
66
|
+
memberId: number;
|
|
67
|
+
username: string;
|
|
68
|
+
profileImageUrl: string | null;
|
|
69
|
+
}>, "many">;
|
|
70
|
+
}, "strip", z.ZodTypeAny, {
|
|
71
|
+
message: string;
|
|
72
|
+
status: "OPEN" | "CLOSED" | "EXPIRED";
|
|
73
|
+
author: {
|
|
74
|
+
memberId: number & z.BRAND<"MemberId">;
|
|
75
|
+
username: string;
|
|
76
|
+
profileImageUrl: string | null;
|
|
77
|
+
};
|
|
78
|
+
createdAt: string;
|
|
79
|
+
updatedAt: string;
|
|
80
|
+
location: string;
|
|
81
|
+
participants: {
|
|
82
|
+
memberId: number & z.BRAND<"MemberId">;
|
|
83
|
+
username: string;
|
|
84
|
+
profileImageUrl: string | null;
|
|
85
|
+
}[];
|
|
86
|
+
meetingAt: string;
|
|
87
|
+
targetCount: number;
|
|
88
|
+
recruitId: number & z.BRAND<"RecruitId">;
|
|
89
|
+
expiredAt: string;
|
|
90
|
+
}, {
|
|
91
|
+
message: string;
|
|
92
|
+
status: "OPEN" | "CLOSED" | "EXPIRED";
|
|
93
|
+
author: {
|
|
94
|
+
memberId: number;
|
|
95
|
+
username: string;
|
|
96
|
+
profileImageUrl: string | null;
|
|
97
|
+
};
|
|
98
|
+
createdAt: string;
|
|
99
|
+
updatedAt: string;
|
|
100
|
+
location: string;
|
|
101
|
+
participants: {
|
|
102
|
+
memberId: number;
|
|
103
|
+
username: string;
|
|
104
|
+
profileImageUrl: string | null;
|
|
105
|
+
}[];
|
|
106
|
+
meetingAt: string;
|
|
107
|
+
targetCount: number;
|
|
108
|
+
recruitId: number;
|
|
109
|
+
expiredAt: string;
|
|
110
|
+
}>;
|
|
111
|
+
declare const CreateRecruitResponseSchema: z.ZodObject<{
|
|
112
|
+
recruitId: z.ZodBranded<z.ZodNumber, "RecruitId">;
|
|
113
|
+
}, "strip", z.ZodTypeAny, {
|
|
114
|
+
recruitId: number & z.BRAND<"RecruitId">;
|
|
115
|
+
}, {
|
|
116
|
+
recruitId: number;
|
|
117
|
+
}>;
|
|
118
|
+
|
|
119
|
+
type RecruitRequest = z.infer<typeof RecruitRequestSchema>;
|
|
120
|
+
type RecruitRequestDto = RecruitRequest;
|
|
121
|
+
|
|
122
|
+
type RecruitStatus = z.infer<typeof RecruitStatusSchema>;
|
|
123
|
+
type RecruitParticipant = z.infer<typeof RecruitParticipantSchema>;
|
|
124
|
+
type RecruitParticipantDto = RecruitParticipant;
|
|
125
|
+
type RecruitResponse = z.infer<typeof RecruitResponseSchema>;
|
|
126
|
+
type RecruitResponseDto = RecruitResponse;
|
|
127
|
+
type CreateRecruitResponse = z.infer<typeof CreateRecruitResponseSchema>;
|
|
128
|
+
type CreateRecruitResponseDto = CreateRecruitResponse;
|
|
129
|
+
|
|
130
|
+
export { type CreateRecruitResponse, type CreateRecruitResponseDto, CreateRecruitResponseSchema, type RecruitParticipant, type RecruitParticipantDto, RecruitParticipantSchema, type RecruitRequest, type RecruitRequestDto, RecruitRequestSchema, type RecruitResponse, type RecruitResponseDto, RecruitResponseSchema, type RecruitStatus, RecruitStatusSchema };
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const RecruitStatusSchema: z.ZodEnum<["OPEN", "CLOSED", "EXPIRED"]>;
|
|
4
|
+
declare const RecruitRequestSchema: z.ZodObject<{
|
|
5
|
+
targetCount: z.ZodNumber;
|
|
6
|
+
meetingAt: z.ZodString;
|
|
7
|
+
location: z.ZodString;
|
|
8
|
+
message: z.ZodString;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
message: string;
|
|
11
|
+
location: string;
|
|
12
|
+
meetingAt: string;
|
|
13
|
+
targetCount: number;
|
|
14
|
+
}, {
|
|
15
|
+
message: string;
|
|
16
|
+
location: string;
|
|
17
|
+
meetingAt: string;
|
|
18
|
+
targetCount: number;
|
|
19
|
+
}>;
|
|
20
|
+
declare const RecruitParticipantSchema: z.ZodObject<Pick<{
|
|
21
|
+
memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
|
|
22
|
+
username: z.ZodString;
|
|
23
|
+
profileImageUrl: z.ZodNullable<z.ZodString>;
|
|
24
|
+
}, "memberId" | "username" | "profileImageUrl">, "strip", z.ZodTypeAny, {
|
|
25
|
+
memberId: number & z.BRAND<"MemberId">;
|
|
26
|
+
username: string;
|
|
27
|
+
profileImageUrl: string | null;
|
|
28
|
+
}, {
|
|
29
|
+
memberId: number;
|
|
30
|
+
username: string;
|
|
31
|
+
profileImageUrl: string | null;
|
|
32
|
+
}>;
|
|
33
|
+
declare const RecruitResponseSchema: z.ZodObject<{
|
|
34
|
+
targetCount: z.ZodNumber;
|
|
35
|
+
meetingAt: z.ZodString;
|
|
36
|
+
location: z.ZodString;
|
|
37
|
+
message: z.ZodString;
|
|
38
|
+
} & {
|
|
39
|
+
recruitId: z.ZodBranded<z.ZodNumber, "RecruitId">;
|
|
40
|
+
status: z.ZodEnum<["OPEN", "CLOSED", "EXPIRED"]>;
|
|
41
|
+
createdAt: z.ZodString;
|
|
42
|
+
expiredAt: z.ZodString;
|
|
43
|
+
updatedAt: z.ZodString;
|
|
44
|
+
author: z.ZodObject<Pick<{
|
|
45
|
+
memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
|
|
46
|
+
username: z.ZodString;
|
|
47
|
+
profileImageUrl: z.ZodNullable<z.ZodString>;
|
|
48
|
+
}, "memberId" | "username" | "profileImageUrl">, "strip", z.ZodTypeAny, {
|
|
49
|
+
memberId: number & z.BRAND<"MemberId">;
|
|
50
|
+
username: string;
|
|
51
|
+
profileImageUrl: string | null;
|
|
52
|
+
}, {
|
|
53
|
+
memberId: number;
|
|
54
|
+
username: string;
|
|
55
|
+
profileImageUrl: string | null;
|
|
56
|
+
}>;
|
|
57
|
+
participants: z.ZodArray<z.ZodObject<Pick<{
|
|
58
|
+
memberId: z.ZodBranded<z.ZodNumber, "MemberId">;
|
|
59
|
+
username: z.ZodString;
|
|
60
|
+
profileImageUrl: z.ZodNullable<z.ZodString>;
|
|
61
|
+
}, "memberId" | "username" | "profileImageUrl">, "strip", z.ZodTypeAny, {
|
|
62
|
+
memberId: number & z.BRAND<"MemberId">;
|
|
63
|
+
username: string;
|
|
64
|
+
profileImageUrl: string | null;
|
|
65
|
+
}, {
|
|
66
|
+
memberId: number;
|
|
67
|
+
username: string;
|
|
68
|
+
profileImageUrl: string | null;
|
|
69
|
+
}>, "many">;
|
|
70
|
+
}, "strip", z.ZodTypeAny, {
|
|
71
|
+
message: string;
|
|
72
|
+
status: "OPEN" | "CLOSED" | "EXPIRED";
|
|
73
|
+
author: {
|
|
74
|
+
memberId: number & z.BRAND<"MemberId">;
|
|
75
|
+
username: string;
|
|
76
|
+
profileImageUrl: string | null;
|
|
77
|
+
};
|
|
78
|
+
createdAt: string;
|
|
79
|
+
updatedAt: string;
|
|
80
|
+
location: string;
|
|
81
|
+
participants: {
|
|
82
|
+
memberId: number & z.BRAND<"MemberId">;
|
|
83
|
+
username: string;
|
|
84
|
+
profileImageUrl: string | null;
|
|
85
|
+
}[];
|
|
86
|
+
meetingAt: string;
|
|
87
|
+
targetCount: number;
|
|
88
|
+
recruitId: number & z.BRAND<"RecruitId">;
|
|
89
|
+
expiredAt: string;
|
|
90
|
+
}, {
|
|
91
|
+
message: string;
|
|
92
|
+
status: "OPEN" | "CLOSED" | "EXPIRED";
|
|
93
|
+
author: {
|
|
94
|
+
memberId: number;
|
|
95
|
+
username: string;
|
|
96
|
+
profileImageUrl: string | null;
|
|
97
|
+
};
|
|
98
|
+
createdAt: string;
|
|
99
|
+
updatedAt: string;
|
|
100
|
+
location: string;
|
|
101
|
+
participants: {
|
|
102
|
+
memberId: number;
|
|
103
|
+
username: string;
|
|
104
|
+
profileImageUrl: string | null;
|
|
105
|
+
}[];
|
|
106
|
+
meetingAt: string;
|
|
107
|
+
targetCount: number;
|
|
108
|
+
recruitId: number;
|
|
109
|
+
expiredAt: string;
|
|
110
|
+
}>;
|
|
111
|
+
declare const CreateRecruitResponseSchema: z.ZodObject<{
|
|
112
|
+
recruitId: z.ZodBranded<z.ZodNumber, "RecruitId">;
|
|
113
|
+
}, "strip", z.ZodTypeAny, {
|
|
114
|
+
recruitId: number & z.BRAND<"RecruitId">;
|
|
115
|
+
}, {
|
|
116
|
+
recruitId: number;
|
|
117
|
+
}>;
|
|
118
|
+
|
|
119
|
+
type RecruitRequest = z.infer<typeof RecruitRequestSchema>;
|
|
120
|
+
type RecruitRequestDto = RecruitRequest;
|
|
121
|
+
|
|
122
|
+
type RecruitStatus = z.infer<typeof RecruitStatusSchema>;
|
|
123
|
+
type RecruitParticipant = z.infer<typeof RecruitParticipantSchema>;
|
|
124
|
+
type RecruitParticipantDto = RecruitParticipant;
|
|
125
|
+
type RecruitResponse = z.infer<typeof RecruitResponseSchema>;
|
|
126
|
+
type RecruitResponseDto = RecruitResponse;
|
|
127
|
+
type CreateRecruitResponse = z.infer<typeof CreateRecruitResponseSchema>;
|
|
128
|
+
type CreateRecruitResponseDto = CreateRecruitResponse;
|
|
129
|
+
|
|
130
|
+
export { type CreateRecruitResponse, type CreateRecruitResponseDto, CreateRecruitResponseSchema, type RecruitParticipant, type RecruitParticipantDto, RecruitParticipantSchema, type RecruitRequest, type RecruitRequestDto, RecruitRequestSchema, type RecruitResponse, type RecruitResponseDto, RecruitResponseSchema, type RecruitStatus, RecruitStatusSchema };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import "../../chunk-O6DYRCFN.js";
|
|
2
|
+
import {
|
|
3
|
+
CreateRecruitResponseSchema,
|
|
4
|
+
RecruitParticipantSchema,
|
|
5
|
+
RecruitRequestSchema,
|
|
6
|
+
RecruitResponseSchema,
|
|
7
|
+
RecruitStatusSchema
|
|
8
|
+
} from "../../chunk-2SJCUQNN.js";
|
|
9
|
+
import "../../chunk-MP7TEKEI.js";
|
|
10
|
+
import "../../chunk-UFVPFUMI.js";
|
|
11
|
+
import "../../chunk-HRM3FQPL.js";
|
|
12
|
+
import "../../chunk-UXA4FHST.js";
|
|
13
|
+
export {
|
|
14
|
+
CreateRecruitResponseSchema,
|
|
15
|
+
RecruitParticipantSchema,
|
|
16
|
+
RecruitRequestSchema,
|
|
17
|
+
RecruitResponseSchema,
|
|
18
|
+
RecruitStatusSchema
|
|
19
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
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/referral/index.ts
|
|
21
|
+
var referral_exports = {};
|
|
22
|
+
__export(referral_exports, {
|
|
23
|
+
RedeemReferralRequestSchema: () => RedeemReferralRequestSchema,
|
|
24
|
+
ReferralCreateResponseSchema: () => ReferralCreateResponseSchema,
|
|
25
|
+
ReferralItemResponseSchema: () => ReferralItemResponseSchema
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(referral_exports);
|
|
28
|
+
|
|
29
|
+
// src/domain/referral/schema/referral.schema.ts
|
|
30
|
+
var import_zod3 = require("zod");
|
|
31
|
+
|
|
32
|
+
// src/domain/common/schema/date.schema.ts
|
|
33
|
+
var import_zod = require("zod");
|
|
34
|
+
var isoDateRegex = /^\d{4}-\d{2}-\d{2}$/;
|
|
35
|
+
var ISODateStringSchema = import_zod.z.string().regex(isoDateRegex, "Expected ISO date string in YYYY-MM-DD format");
|
|
36
|
+
var ISODateTimeStringSchema = import_zod.z.string().datetime({ offset: true, message: "Expected ISO datetime string" });
|
|
37
|
+
var TimeHHmmStringSchema = import_zod.z.string().regex(/^\d{2}:\d{2}$/, "Expected time string in HH:mm format");
|
|
38
|
+
|
|
39
|
+
// src/domain/common/schema/id.schema.ts
|
|
40
|
+
var import_zod2 = require("zod");
|
|
41
|
+
var PositiveIntIdSchema = import_zod2.z.number().int().positive();
|
|
42
|
+
var NonEmptyStringIdSchema = import_zod2.z.string().min(1);
|
|
43
|
+
var MemberIdSchema = PositiveIntIdSchema.brand();
|
|
44
|
+
var ArticleIdSchema = PositiveIntIdSchema.brand();
|
|
45
|
+
var CommentIdSchema = PositiveIntIdSchema.brand();
|
|
46
|
+
var RecruitIdSchema = PositiveIntIdSchema.brand();
|
|
47
|
+
var PlanIdSchema = PositiveIntIdSchema.brand();
|
|
48
|
+
var InvitationIdSchema = PositiveIntIdSchema.brand();
|
|
49
|
+
var RoomIdSchema = NonEmptyStringIdSchema.brand();
|
|
50
|
+
var RestaurantIdSchema = NonEmptyStringIdSchema.brand();
|
|
51
|
+
var CouponIdSchema = PositiveIntIdSchema.brand();
|
|
52
|
+
var SubscriptionIdSchema = PositiveIntIdSchema.brand();
|
|
53
|
+
var FriendRequestIdSchema = PositiveIntIdSchema.brand();
|
|
54
|
+
var ReferralCodeSchema = import_zod2.z.string().min(4).max(64).brand();
|
|
55
|
+
|
|
56
|
+
// src/domain/referral/schema/referral.schema.ts
|
|
57
|
+
var ReferralCreateResponseSchema = import_zod3.z.object({
|
|
58
|
+
code: ReferralCodeSchema,
|
|
59
|
+
link: import_zod3.z.string().url(),
|
|
60
|
+
expiresAt: ISODateTimeStringSchema
|
|
61
|
+
});
|
|
62
|
+
var ReferralItemResponseSchema = import_zod3.z.object({
|
|
63
|
+
code: ReferralCodeSchema,
|
|
64
|
+
createdAt: ISODateTimeStringSchema,
|
|
65
|
+
expiresAt: ISODateTimeStringSchema,
|
|
66
|
+
used: import_zod3.z.boolean(),
|
|
67
|
+
usedByMemberId: MemberIdSchema.nullable(),
|
|
68
|
+
usedByUsername: import_zod3.z.string().nullable()
|
|
69
|
+
});
|
|
70
|
+
var RedeemReferralRequestSchema = import_zod3.z.object({
|
|
71
|
+
code: ReferralCodeSchema
|
|
72
|
+
});
|
|
73
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
74
|
+
0 && (module.exports = {
|
|
75
|
+
RedeemReferralRequestSchema,
|
|
76
|
+
ReferralCreateResponseSchema,
|
|
77
|
+
ReferralItemResponseSchema
|
|
78
|
+
});
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const ReferralCreateResponseSchema: z.ZodObject<{
|
|
4
|
+
code: z.ZodBranded<z.ZodString, "ReferralCode">;
|
|
5
|
+
link: z.ZodString;
|
|
6
|
+
expiresAt: z.ZodString;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
code: string & z.BRAND<"ReferralCode">;
|
|
9
|
+
expiresAt: string;
|
|
10
|
+
link: string;
|
|
11
|
+
}, {
|
|
12
|
+
code: string;
|
|
13
|
+
expiresAt: string;
|
|
14
|
+
link: string;
|
|
15
|
+
}>;
|
|
16
|
+
declare const ReferralItemResponseSchema: z.ZodObject<{
|
|
17
|
+
code: z.ZodBranded<z.ZodString, "ReferralCode">;
|
|
18
|
+
createdAt: z.ZodString;
|
|
19
|
+
expiresAt: z.ZodString;
|
|
20
|
+
used: z.ZodBoolean;
|
|
21
|
+
usedByMemberId: z.ZodNullable<z.ZodBranded<z.ZodNumber, "MemberId">>;
|
|
22
|
+
usedByUsername: z.ZodNullable<z.ZodString>;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
code: string & z.BRAND<"ReferralCode">;
|
|
25
|
+
createdAt: string;
|
|
26
|
+
expiresAt: string;
|
|
27
|
+
used: boolean;
|
|
28
|
+
usedByMemberId: (number & z.BRAND<"MemberId">) | null;
|
|
29
|
+
usedByUsername: string | null;
|
|
30
|
+
}, {
|
|
31
|
+
code: string;
|
|
32
|
+
createdAt: string;
|
|
33
|
+
expiresAt: string;
|
|
34
|
+
used: boolean;
|
|
35
|
+
usedByMemberId: number | null;
|
|
36
|
+
usedByUsername: string | null;
|
|
37
|
+
}>;
|
|
38
|
+
declare const RedeemReferralRequestSchema: z.ZodObject<{
|
|
39
|
+
code: z.ZodBranded<z.ZodString, "ReferralCode">;
|
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
code: string & z.BRAND<"ReferralCode">;
|
|
42
|
+
}, {
|
|
43
|
+
code: string;
|
|
44
|
+
}>;
|
|
45
|
+
|
|
46
|
+
type RedeemReferralRequest = z.infer<typeof RedeemReferralRequestSchema>;
|
|
47
|
+
|
|
48
|
+
type ReferralCreateResponse = z.infer<typeof ReferralCreateResponseSchema>;
|
|
49
|
+
type ReferralItemResponse = z.infer<typeof ReferralItemResponseSchema>;
|
|
50
|
+
|
|
51
|
+
export { type RedeemReferralRequest, RedeemReferralRequestSchema, type ReferralCreateResponse, ReferralCreateResponseSchema, type ReferralItemResponse, ReferralItemResponseSchema };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const ReferralCreateResponseSchema: z.ZodObject<{
|
|
4
|
+
code: z.ZodBranded<z.ZodString, "ReferralCode">;
|
|
5
|
+
link: z.ZodString;
|
|
6
|
+
expiresAt: z.ZodString;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
code: string & z.BRAND<"ReferralCode">;
|
|
9
|
+
expiresAt: string;
|
|
10
|
+
link: string;
|
|
11
|
+
}, {
|
|
12
|
+
code: string;
|
|
13
|
+
expiresAt: string;
|
|
14
|
+
link: string;
|
|
15
|
+
}>;
|
|
16
|
+
declare const ReferralItemResponseSchema: z.ZodObject<{
|
|
17
|
+
code: z.ZodBranded<z.ZodString, "ReferralCode">;
|
|
18
|
+
createdAt: z.ZodString;
|
|
19
|
+
expiresAt: z.ZodString;
|
|
20
|
+
used: z.ZodBoolean;
|
|
21
|
+
usedByMemberId: z.ZodNullable<z.ZodBranded<z.ZodNumber, "MemberId">>;
|
|
22
|
+
usedByUsername: z.ZodNullable<z.ZodString>;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
code: string & z.BRAND<"ReferralCode">;
|
|
25
|
+
createdAt: string;
|
|
26
|
+
expiresAt: string;
|
|
27
|
+
used: boolean;
|
|
28
|
+
usedByMemberId: (number & z.BRAND<"MemberId">) | null;
|
|
29
|
+
usedByUsername: string | null;
|
|
30
|
+
}, {
|
|
31
|
+
code: string;
|
|
32
|
+
createdAt: string;
|
|
33
|
+
expiresAt: string;
|
|
34
|
+
used: boolean;
|
|
35
|
+
usedByMemberId: number | null;
|
|
36
|
+
usedByUsername: string | null;
|
|
37
|
+
}>;
|
|
38
|
+
declare const RedeemReferralRequestSchema: z.ZodObject<{
|
|
39
|
+
code: z.ZodBranded<z.ZodString, "ReferralCode">;
|
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
code: string & z.BRAND<"ReferralCode">;
|
|
42
|
+
}, {
|
|
43
|
+
code: string;
|
|
44
|
+
}>;
|
|
45
|
+
|
|
46
|
+
type RedeemReferralRequest = z.infer<typeof RedeemReferralRequestSchema>;
|
|
47
|
+
|
|
48
|
+
type ReferralCreateResponse = z.infer<typeof ReferralCreateResponseSchema>;
|
|
49
|
+
type ReferralItemResponse = z.infer<typeof ReferralItemResponseSchema>;
|
|
50
|
+
|
|
51
|
+
export { type RedeemReferralRequest, RedeemReferralRequestSchema, type ReferralCreateResponse, ReferralCreateResponseSchema, type ReferralItemResponse, ReferralItemResponseSchema };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import "../../chunk-JXYRJKRV.js";
|
|
2
|
+
import {
|
|
3
|
+
RedeemReferralRequestSchema,
|
|
4
|
+
ReferralCreateResponseSchema,
|
|
5
|
+
ReferralItemResponseSchema
|
|
6
|
+
} from "../../chunk-ZSZ3ETY7.js";
|
|
7
|
+
import "../../chunk-UFVPFUMI.js";
|
|
8
|
+
import "../../chunk-HRM3FQPL.js";
|
|
9
|
+
import "../../chunk-UXA4FHST.js";
|
|
10
|
+
export {
|
|
11
|
+
RedeemReferralRequestSchema,
|
|
12
|
+
ReferralCreateResponseSchema,
|
|
13
|
+
ReferralItemResponseSchema
|
|
14
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
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/restaurant/index.ts
|
|
21
|
+
var restaurant_exports = {};
|
|
22
|
+
__export(restaurant_exports, {
|
|
23
|
+
KakaoPlaceRawSchema: () => KakaoPlaceRawSchema,
|
|
24
|
+
RestaurantSchema: () => RestaurantSchema
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(restaurant_exports);
|
|
27
|
+
|
|
28
|
+
// src/domain/restaurant/schema/restaurant.schema.ts
|
|
29
|
+
var import_zod2 = require("zod");
|
|
30
|
+
|
|
31
|
+
// src/domain/common/schema/id.schema.ts
|
|
32
|
+
var import_zod = require("zod");
|
|
33
|
+
var PositiveIntIdSchema = import_zod.z.number().int().positive();
|
|
34
|
+
var NonEmptyStringIdSchema = import_zod.z.string().min(1);
|
|
35
|
+
var MemberIdSchema = PositiveIntIdSchema.brand();
|
|
36
|
+
var ArticleIdSchema = PositiveIntIdSchema.brand();
|
|
37
|
+
var CommentIdSchema = PositiveIntIdSchema.brand();
|
|
38
|
+
var RecruitIdSchema = PositiveIntIdSchema.brand();
|
|
39
|
+
var PlanIdSchema = PositiveIntIdSchema.brand();
|
|
40
|
+
var InvitationIdSchema = PositiveIntIdSchema.brand();
|
|
41
|
+
var RoomIdSchema = NonEmptyStringIdSchema.brand();
|
|
42
|
+
var RestaurantIdSchema = NonEmptyStringIdSchema.brand();
|
|
43
|
+
var CouponIdSchema = PositiveIntIdSchema.brand();
|
|
44
|
+
var SubscriptionIdSchema = PositiveIntIdSchema.brand();
|
|
45
|
+
var FriendRequestIdSchema = PositiveIntIdSchema.brand();
|
|
46
|
+
var ReferralCodeSchema = import_zod.z.string().min(4).max(64).brand();
|
|
47
|
+
|
|
48
|
+
// src/domain/restaurant/schema/restaurant.schema.ts
|
|
49
|
+
var RestaurantSchema = import_zod2.z.object({
|
|
50
|
+
restaurantId: RestaurantIdSchema,
|
|
51
|
+
placeName: import_zod2.z.string(),
|
|
52
|
+
categoryName: import_zod2.z.string(),
|
|
53
|
+
categoryGroupName: import_zod2.z.string(),
|
|
54
|
+
distance: import_zod2.z.string().optional(),
|
|
55
|
+
roadAddressName: import_zod2.z.string(),
|
|
56
|
+
addressName: import_zod2.z.string(),
|
|
57
|
+
phone: import_zod2.z.string().nullable(),
|
|
58
|
+
placeUrl: import_zod2.z.string().url().nullable(),
|
|
59
|
+
lat: import_zod2.z.number(),
|
|
60
|
+
lng: import_zod2.z.number()
|
|
61
|
+
});
|
|
62
|
+
var KakaoPlaceRawSchema = import_zod2.z.object({
|
|
63
|
+
id: RestaurantIdSchema,
|
|
64
|
+
place_name: import_zod2.z.string(),
|
|
65
|
+
category_name: import_zod2.z.string(),
|
|
66
|
+
category_group_name: import_zod2.z.string(),
|
|
67
|
+
distance: import_zod2.z.string(),
|
|
68
|
+
road_address_name: import_zod2.z.string(),
|
|
69
|
+
address_name: import_zod2.z.string(),
|
|
70
|
+
phone: import_zod2.z.string(),
|
|
71
|
+
place_url: import_zod2.z.string().url().optional(),
|
|
72
|
+
lat: import_zod2.z.number(),
|
|
73
|
+
lng: import_zod2.z.number()
|
|
74
|
+
});
|
|
75
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
76
|
+
0 && (module.exports = {
|
|
77
|
+
KakaoPlaceRawSchema,
|
|
78
|
+
RestaurantSchema
|
|
79
|
+
});
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const RestaurantSchema: z.ZodObject<{
|
|
4
|
+
restaurantId: z.ZodBranded<z.ZodString, "RestaurantId">;
|
|
5
|
+
placeName: z.ZodString;
|
|
6
|
+
categoryName: z.ZodString;
|
|
7
|
+
categoryGroupName: z.ZodString;
|
|
8
|
+
distance: z.ZodOptional<z.ZodString>;
|
|
9
|
+
roadAddressName: z.ZodString;
|
|
10
|
+
addressName: z.ZodString;
|
|
11
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
12
|
+
placeUrl: z.ZodNullable<z.ZodString>;
|
|
13
|
+
lat: z.ZodNumber;
|
|
14
|
+
lng: z.ZodNumber;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
restaurantId: string & z.BRAND<"RestaurantId">;
|
|
17
|
+
placeName: string;
|
|
18
|
+
categoryName: string;
|
|
19
|
+
categoryGroupName: string;
|
|
20
|
+
roadAddressName: string;
|
|
21
|
+
addressName: string;
|
|
22
|
+
phone: string | null;
|
|
23
|
+
placeUrl: string | null;
|
|
24
|
+
lat: number;
|
|
25
|
+
lng: number;
|
|
26
|
+
distance?: string | undefined;
|
|
27
|
+
}, {
|
|
28
|
+
restaurantId: string;
|
|
29
|
+
placeName: string;
|
|
30
|
+
categoryName: string;
|
|
31
|
+
categoryGroupName: string;
|
|
32
|
+
roadAddressName: string;
|
|
33
|
+
addressName: string;
|
|
34
|
+
phone: string | null;
|
|
35
|
+
placeUrl: string | null;
|
|
36
|
+
lat: number;
|
|
37
|
+
lng: number;
|
|
38
|
+
distance?: string | undefined;
|
|
39
|
+
}>;
|
|
40
|
+
declare const KakaoPlaceRawSchema: z.ZodObject<{
|
|
41
|
+
id: z.ZodBranded<z.ZodString, "RestaurantId">;
|
|
42
|
+
place_name: z.ZodString;
|
|
43
|
+
category_name: z.ZodString;
|
|
44
|
+
category_group_name: z.ZodString;
|
|
45
|
+
distance: z.ZodString;
|
|
46
|
+
road_address_name: z.ZodString;
|
|
47
|
+
address_name: z.ZodString;
|
|
48
|
+
phone: z.ZodString;
|
|
49
|
+
place_url: z.ZodOptional<z.ZodString>;
|
|
50
|
+
lat: z.ZodNumber;
|
|
51
|
+
lng: z.ZodNumber;
|
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
|
53
|
+
distance: string;
|
|
54
|
+
phone: string;
|
|
55
|
+
lat: number;
|
|
56
|
+
lng: number;
|
|
57
|
+
id: string & z.BRAND<"RestaurantId">;
|
|
58
|
+
place_name: string;
|
|
59
|
+
category_name: string;
|
|
60
|
+
category_group_name: string;
|
|
61
|
+
road_address_name: string;
|
|
62
|
+
address_name: string;
|
|
63
|
+
place_url?: string | undefined;
|
|
64
|
+
}, {
|
|
65
|
+
distance: string;
|
|
66
|
+
phone: string;
|
|
67
|
+
lat: number;
|
|
68
|
+
lng: number;
|
|
69
|
+
id: string;
|
|
70
|
+
place_name: string;
|
|
71
|
+
category_name: string;
|
|
72
|
+
category_group_name: string;
|
|
73
|
+
road_address_name: string;
|
|
74
|
+
address_name: string;
|
|
75
|
+
place_url?: string | undefined;
|
|
76
|
+
}>;
|
|
77
|
+
|
|
78
|
+
type RestaurantResponse = z.infer<typeof RestaurantSchema>;
|
|
79
|
+
type RestaurantDto = RestaurantResponse;
|
|
80
|
+
/** External Kakao adapter boundary only. Do not use inside app DTOs. */
|
|
81
|
+
type KakaoPlaceRaw = z.infer<typeof KakaoPlaceRawSchema>;
|
|
82
|
+
/** @deprecated Use RestaurantResponse internally or KakaoPlaceRaw only at the adapter boundary. */
|
|
83
|
+
type KakaoRestaurantResponseDto = KakaoPlaceRaw;
|
|
84
|
+
|
|
85
|
+
export { type KakaoPlaceRaw, KakaoPlaceRawSchema, type KakaoRestaurantResponseDto, type RestaurantDto, type RestaurantResponse, RestaurantSchema };
|