@k-msg/channel 0.29.6 → 0.29.8
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/toolkit/index.js +48 -23
- package/dist/toolkit/index.mjs +48 -23
- package/dist/types/channel.types.d.ts +8 -47
- package/package.json +8 -7
|
@@ -113,49 +113,6 @@ export declare enum DocumentStatus {
|
|
|
113
113
|
VERIFIED = "VERIFIED",
|
|
114
114
|
REJECTED = "REJECTED"
|
|
115
115
|
}
|
|
116
|
-
export interface ChannelCreateRequest {
|
|
117
|
-
name: string;
|
|
118
|
-
type: ChannelType;
|
|
119
|
-
provider: string;
|
|
120
|
-
profileKey: string;
|
|
121
|
-
businessInfo?: {
|
|
122
|
-
name: string;
|
|
123
|
-
registrationNumber: string;
|
|
124
|
-
category: string;
|
|
125
|
-
contactPerson: string;
|
|
126
|
-
contactEmail: string;
|
|
127
|
-
contactPhone: string;
|
|
128
|
-
};
|
|
129
|
-
kakaoInfo?: {
|
|
130
|
-
plusFriendId: string;
|
|
131
|
-
brandName: string;
|
|
132
|
-
logoUrl?: string;
|
|
133
|
-
description?: string;
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
|
-
export interface SenderNumberCreateRequest {
|
|
137
|
-
phoneNumber: string;
|
|
138
|
-
category: SenderNumberCategory;
|
|
139
|
-
businessInfo?: {
|
|
140
|
-
businessName: string;
|
|
141
|
-
businessRegistrationNumber: string;
|
|
142
|
-
contactPerson: string;
|
|
143
|
-
contactEmail: string;
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
export interface ChannelFilters {
|
|
147
|
-
provider?: string;
|
|
148
|
-
type?: ChannelType;
|
|
149
|
-
status?: ChannelStatus;
|
|
150
|
-
createdAfter?: Date;
|
|
151
|
-
createdBefore?: Date;
|
|
152
|
-
}
|
|
153
|
-
export interface SenderNumberFilters {
|
|
154
|
-
channelId?: string;
|
|
155
|
-
status?: SenderNumberStatus;
|
|
156
|
-
category?: SenderNumberCategory;
|
|
157
|
-
verified?: boolean;
|
|
158
|
-
}
|
|
159
116
|
export declare const ChannelCreateRequestSchema: z.ZodMiniObject<{
|
|
160
117
|
name: z.ZodMiniString<string>;
|
|
161
118
|
type: z.ZodMiniEnum<typeof ChannelType>;
|
|
@@ -199,10 +156,14 @@ export declare const SenderNumberFiltersSchema: z.ZodMiniObject<{
|
|
|
199
156
|
category: z.ZodMiniOptional<z.ZodMiniEnum<typeof SenderNumberCategory>>;
|
|
200
157
|
verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
201
158
|
}, z.core.$strip>;
|
|
202
|
-
export type
|
|
203
|
-
export type
|
|
204
|
-
export type
|
|
205
|
-
export type
|
|
159
|
+
export type ChannelCreateRequest = z.infer<typeof ChannelCreateRequestSchema>;
|
|
160
|
+
export type SenderNumberCreateRequest = z.infer<typeof SenderNumberCreateRequestSchema>;
|
|
161
|
+
export type ChannelFilters = z.infer<typeof ChannelFiltersSchema>;
|
|
162
|
+
export type SenderNumberFilters = z.infer<typeof SenderNumberFiltersSchema>;
|
|
163
|
+
export type ChannelCreateRequestType = ChannelCreateRequest;
|
|
164
|
+
export type SenderNumberCreateRequestType = SenderNumberCreateRequest;
|
|
165
|
+
export type ChannelFiltersType = ChannelFilters;
|
|
166
|
+
export type SenderNumberFiltersType = SenderNumberFilters;
|
|
206
167
|
export interface ChannelConfig {
|
|
207
168
|
id: string;
|
|
208
169
|
name: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@k-msg/channel",
|
|
3
|
-
"version": "0.29.
|
|
4
|
-
"packageManager": "bun@1.3.
|
|
3
|
+
"version": "0.29.8",
|
|
4
|
+
"packageManager": "bun@1.3.13",
|
|
5
5
|
"description": "AlimTalk channel and sender number management",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|
|
@@ -30,18 +30,19 @@
|
|
|
30
30
|
"dev": "tsc --watch",
|
|
31
31
|
"test": "bun test",
|
|
32
32
|
"test:unit": "bun test --testPathPattern='.*\\.test\\.(ts|js)$' --testTimeout=5000",
|
|
33
|
-
"typecheck": "
|
|
33
|
+
"typecheck": "ttsc --noEmit",
|
|
34
34
|
"clean": "rm -rf dist tsconfig.tsbuildinfo",
|
|
35
35
|
"pack": "bun pm pack",
|
|
36
36
|
"publish": "bun publish --access public"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@k-msg/core": "0.29.
|
|
40
|
-
"zod": "^4.
|
|
39
|
+
"@k-msg/core": "0.29.8",
|
|
40
|
+
"zod": "^4.4.3"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"
|
|
44
|
-
"
|
|
43
|
+
"ttsc": "^0.18.1",
|
|
44
|
+
"typescript": "^7.0.2",
|
|
45
|
+
"@types/bun": "^1.3.14"
|
|
45
46
|
},
|
|
46
47
|
"keywords": [
|
|
47
48
|
"alimtalk",
|