@warriorteam/redai-zalo-sdk 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/LICENSE +21 -0
- package/README.md +448 -0
- package/dist/clients/base-client.d.ts +67 -0
- package/dist/clients/base-client.d.ts.map +1 -0
- package/dist/clients/base-client.js +297 -0
- package/dist/clients/base-client.js.map +1 -0
- package/dist/clients/zalo-client.d.ts +131 -0
- package/dist/clients/zalo-client.d.ts.map +1 -0
- package/dist/clients/zalo-client.js +215 -0
- package/dist/clients/zalo-client.js.map +1 -0
- package/dist/index.d.ts +40 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +82 -0
- package/dist/index.js.map +1 -0
- package/dist/services/article.service.d.ts +144 -0
- package/dist/services/article.service.d.ts.map +1 -0
- package/dist/services/article.service.js +518 -0
- package/dist/services/article.service.js.map +1 -0
- package/dist/services/auth.service.d.ts +55 -0
- package/dist/services/auth.service.d.ts.map +1 -0
- package/dist/services/auth.service.js +269 -0
- package/dist/services/auth.service.js.map +1 -0
- package/dist/services/consultation.service.d.ts +73 -0
- package/dist/services/consultation.service.d.ts.map +1 -0
- package/dist/services/consultation.service.js +208 -0
- package/dist/services/consultation.service.js.map +1 -0
- package/dist/services/general-message.service.d.ts +85 -0
- package/dist/services/general-message.service.d.ts.map +1 -0
- package/dist/services/general-message.service.js +248 -0
- package/dist/services/general-message.service.js.map +1 -0
- package/dist/services/group-management.service.d.ts +220 -0
- package/dist/services/group-management.service.d.ts.map +1 -0
- package/dist/services/group-management.service.js +562 -0
- package/dist/services/group-management.service.js.map +1 -0
- package/dist/services/group-message.service.d.ts +102 -0
- package/dist/services/group-message.service.d.ts.map +1 -0
- package/dist/services/group-message.service.js +233 -0
- package/dist/services/group-message.service.js.map +1 -0
- package/dist/services/message-management.service.d.ts +135 -0
- package/dist/services/message-management.service.d.ts.map +1 -0
- package/dist/services/message-management.service.js +237 -0
- package/dist/services/message-management.service.js.map +1 -0
- package/dist/services/oa.service.d.ts +67 -0
- package/dist/services/oa.service.d.ts.map +1 -0
- package/dist/services/oa.service.js +223 -0
- package/dist/services/oa.service.js.map +1 -0
- package/dist/services/promotion.service.d.ts +114 -0
- package/dist/services/promotion.service.d.ts.map +1 -0
- package/dist/services/promotion.service.js +247 -0
- package/dist/services/promotion.service.js.map +1 -0
- package/dist/services/tag.service.d.ts +144 -0
- package/dist/services/tag.service.d.ts.map +1 -0
- package/dist/services/tag.service.js +184 -0
- package/dist/services/tag.service.js.map +1 -0
- package/dist/services/transaction.service.d.ts +110 -0
- package/dist/services/transaction.service.d.ts.map +1 -0
- package/dist/services/transaction.service.js +231 -0
- package/dist/services/transaction.service.js.map +1 -0
- package/dist/services/user-management.service.d.ts +117 -0
- package/dist/services/user-management.service.d.ts.map +1 -0
- package/dist/services/user-management.service.js +239 -0
- package/dist/services/user-management.service.js.map +1 -0
- package/dist/services/user.service.d.ts +84 -0
- package/dist/services/user.service.d.ts.map +1 -0
- package/dist/services/user.service.js +323 -0
- package/dist/services/user.service.js.map +1 -0
- package/dist/services/video-upload.service.d.ts +83 -0
- package/dist/services/video-upload.service.d.ts.map +1 -0
- package/dist/services/video-upload.service.js +267 -0
- package/dist/services/video-upload.service.js.map +1 -0
- package/dist/services/zns.service.d.ts +116 -0
- package/dist/services/zns.service.d.ts.map +1 -0
- package/dist/services/zns.service.js +234 -0
- package/dist/services/zns.service.js.map +1 -0
- package/dist/types/article.d.ts +352 -0
- package/dist/types/article.d.ts.map +1 -0
- package/dist/types/article.js +70 -0
- package/dist/types/article.js.map +1 -0
- package/dist/types/auth.d.ts +233 -0
- package/dist/types/auth.d.ts.map +1 -0
- package/dist/types/auth.js +39 -0
- package/dist/types/auth.js.map +1 -0
- package/dist/types/common.d.ts +237 -0
- package/dist/types/common.d.ts.map +1 -0
- package/dist/types/common.js +42 -0
- package/dist/types/common.js.map +1 -0
- package/dist/types/group.d.ts +523 -0
- package/dist/types/group.d.ts.map +1 -0
- package/dist/types/group.js +6 -0
- package/dist/types/group.js.map +1 -0
- package/dist/types/message.d.ts +333 -0
- package/dist/types/message.d.ts.map +1 -0
- package/dist/types/message.js +17 -0
- package/dist/types/message.js.map +1 -0
- package/dist/types/oa.d.ts +285 -0
- package/dist/types/oa.d.ts.map +1 -0
- package/dist/types/oa.js +25 -0
- package/dist/types/oa.js.map +1 -0
- package/dist/types/social.d.ts +427 -0
- package/dist/types/social.d.ts.map +1 -0
- package/dist/types/social.js +6 -0
- package/dist/types/social.js.map +1 -0
- package/dist/types/user-management.d.ts +280 -0
- package/dist/types/user-management.d.ts.map +1 -0
- package/dist/types/user-management.js +6 -0
- package/dist/types/user-management.js.map +1 -0
- package/dist/types/user.d.ts +365 -0
- package/dist/types/user.d.ts.map +1 -0
- package/dist/types/user.js +17 -0
- package/dist/types/user.js.map +1 -0
- package/dist/types/webhook.d.ts +1972 -0
- package/dist/types/webhook.d.ts.map +1 -0
- package/dist/types/webhook.js +419 -0
- package/dist/types/webhook.js.map +1 -0
- package/dist/types/zns.d.ts +277 -0
- package/dist/types/zns.d.ts.map +1 -0
- package/dist/types/zns.js +6 -0
- package/dist/types/zns.js.map +1 -0
- package/dist/zalo-sdk.d.ts +228 -0
- package/dist/zalo-sdk.d.ts.map +1 -0
- package/dist/zalo-sdk.js +307 -0
- package/dist/zalo-sdk.js.map +1 -0
- package/package.json +59 -0
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Message related types and interfaces
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Base message interface
|
|
6
|
+
*/
|
|
7
|
+
export interface BaseMessage {
|
|
8
|
+
/**
|
|
9
|
+
* Message type
|
|
10
|
+
*/
|
|
11
|
+
type: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Text message
|
|
15
|
+
*/
|
|
16
|
+
export interface TextMessage extends BaseMessage {
|
|
17
|
+
type: "text";
|
|
18
|
+
text: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Image message
|
|
22
|
+
*/
|
|
23
|
+
export interface ImageMessage extends BaseMessage {
|
|
24
|
+
type: "image";
|
|
25
|
+
url?: string;
|
|
26
|
+
attachment_id?: string;
|
|
27
|
+
caption?: string;
|
|
28
|
+
attachment?: {
|
|
29
|
+
type: string;
|
|
30
|
+
payload: {
|
|
31
|
+
url: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* File message
|
|
37
|
+
*/
|
|
38
|
+
export interface FileMessage extends BaseMessage {
|
|
39
|
+
type: "file";
|
|
40
|
+
url: string;
|
|
41
|
+
filename: string;
|
|
42
|
+
attachment?: {
|
|
43
|
+
type: string;
|
|
44
|
+
payload: {
|
|
45
|
+
url: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Sticker message
|
|
51
|
+
*/
|
|
52
|
+
export interface StickerMessage extends BaseMessage {
|
|
53
|
+
type: "sticker";
|
|
54
|
+
sticker_id: string;
|
|
55
|
+
attachment?: {
|
|
56
|
+
type: string;
|
|
57
|
+
payload: {
|
|
58
|
+
id: string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Template message
|
|
64
|
+
*/
|
|
65
|
+
export interface TemplateMessage extends BaseMessage {
|
|
66
|
+
type: "template";
|
|
67
|
+
template_id: string;
|
|
68
|
+
template_data: Record<string, string>;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Union type for all message types
|
|
72
|
+
*/
|
|
73
|
+
export type Message = TextMessage | ImageMessage | FileMessage | StickerMessage | TemplateMessage;
|
|
74
|
+
/**
|
|
75
|
+
* Message recipient
|
|
76
|
+
*/
|
|
77
|
+
export interface MessageRecipient {
|
|
78
|
+
/**
|
|
79
|
+
* User ID
|
|
80
|
+
*/
|
|
81
|
+
user_id?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Phone number (for ZNS)
|
|
84
|
+
*/
|
|
85
|
+
phone?: string;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Send message request
|
|
89
|
+
*/
|
|
90
|
+
export interface SendMessageRequest {
|
|
91
|
+
/**
|
|
92
|
+
* Message recipient
|
|
93
|
+
*/
|
|
94
|
+
recipient: MessageRecipient;
|
|
95
|
+
/**
|
|
96
|
+
* Message content
|
|
97
|
+
*/
|
|
98
|
+
message: Message;
|
|
99
|
+
/**
|
|
100
|
+
* Message type category
|
|
101
|
+
*/
|
|
102
|
+
messaging_type?: "consultation" | "transaction" | "promotion" | "response" | "update" | "message_tag";
|
|
103
|
+
/**
|
|
104
|
+
* Tracking ID
|
|
105
|
+
*/
|
|
106
|
+
tracking_id?: string;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Send message response
|
|
110
|
+
*/
|
|
111
|
+
export interface SendMessageResponse {
|
|
112
|
+
/**
|
|
113
|
+
* Message ID
|
|
114
|
+
*/
|
|
115
|
+
message_id: string;
|
|
116
|
+
/**
|
|
117
|
+
* Recipient user ID
|
|
118
|
+
*/
|
|
119
|
+
user_id: string;
|
|
120
|
+
/**
|
|
121
|
+
* Quota information
|
|
122
|
+
*/
|
|
123
|
+
quota?: {
|
|
124
|
+
quota_type: string;
|
|
125
|
+
remain?: string;
|
|
126
|
+
total?: string;
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Upload file response
|
|
131
|
+
*/
|
|
132
|
+
export interface UploadFileResponse {
|
|
133
|
+
/**
|
|
134
|
+
* Attachment ID
|
|
135
|
+
*/
|
|
136
|
+
attachment_id: string;
|
|
137
|
+
/**
|
|
138
|
+
* File URL
|
|
139
|
+
*/
|
|
140
|
+
url: string;
|
|
141
|
+
/**
|
|
142
|
+
* File size
|
|
143
|
+
*/
|
|
144
|
+
size?: number;
|
|
145
|
+
/**
|
|
146
|
+
* File type
|
|
147
|
+
*/
|
|
148
|
+
type?: string;
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Message status
|
|
152
|
+
*/
|
|
153
|
+
export declare enum MessageStatus {
|
|
154
|
+
SENT = "sent",
|
|
155
|
+
DELIVERED = "delivered",
|
|
156
|
+
READ = "read",
|
|
157
|
+
FAILED = "failed"
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Message event
|
|
161
|
+
*/
|
|
162
|
+
export interface MessageEvent {
|
|
163
|
+
/**
|
|
164
|
+
* Event type
|
|
165
|
+
*/
|
|
166
|
+
event: "message" | "delivery" | "read";
|
|
167
|
+
/**
|
|
168
|
+
* Message ID
|
|
169
|
+
*/
|
|
170
|
+
message_id: string;
|
|
171
|
+
/**
|
|
172
|
+
* User ID
|
|
173
|
+
*/
|
|
174
|
+
user_id: string;
|
|
175
|
+
/**
|
|
176
|
+
* Timestamp
|
|
177
|
+
*/
|
|
178
|
+
timestamp: number;
|
|
179
|
+
/**
|
|
180
|
+
* Message content (for incoming messages)
|
|
181
|
+
*/
|
|
182
|
+
message?: Message;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Consultation message types
|
|
186
|
+
*/
|
|
187
|
+
export interface ConsultationTextMessage extends BaseMessage {
|
|
188
|
+
type: "consultation_text";
|
|
189
|
+
text: string;
|
|
190
|
+
}
|
|
191
|
+
export interface ConsultationImageMessage extends BaseMessage {
|
|
192
|
+
type: "consultation_image";
|
|
193
|
+
url: string;
|
|
194
|
+
message?: string;
|
|
195
|
+
}
|
|
196
|
+
export interface ConsultationFileMessage extends BaseMessage {
|
|
197
|
+
type: "consultation_file";
|
|
198
|
+
url: string;
|
|
199
|
+
filename: string;
|
|
200
|
+
message?: string;
|
|
201
|
+
}
|
|
202
|
+
export interface ConsultationStickerMessage extends BaseMessage {
|
|
203
|
+
type: "consultation_sticker";
|
|
204
|
+
sticker_id: string;
|
|
205
|
+
message?: string;
|
|
206
|
+
}
|
|
207
|
+
export interface ConsultationQuoteMessage extends BaseMessage {
|
|
208
|
+
type: "consultation_quote";
|
|
209
|
+
text: string;
|
|
210
|
+
quote: {
|
|
211
|
+
message_id: string;
|
|
212
|
+
content: string;
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
export interface ConsultationRequestInfoMessage extends BaseMessage {
|
|
216
|
+
type: "consultation_request_info";
|
|
217
|
+
title: string;
|
|
218
|
+
subtitle?: string;
|
|
219
|
+
image_url?: string;
|
|
220
|
+
elements: Array<{
|
|
221
|
+
title: string;
|
|
222
|
+
type: "text" | "phone" | "email" | "date";
|
|
223
|
+
required?: boolean;
|
|
224
|
+
placeholder?: string;
|
|
225
|
+
}>;
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Transaction message types
|
|
229
|
+
*/
|
|
230
|
+
export interface TransactionMessage extends BaseMessage {
|
|
231
|
+
type: "transaction";
|
|
232
|
+
template_id?: string;
|
|
233
|
+
template_data?: Record<string, string>;
|
|
234
|
+
mode?: "development" | "production";
|
|
235
|
+
attachment?: {
|
|
236
|
+
type: string;
|
|
237
|
+
payload: {
|
|
238
|
+
template_type: string;
|
|
239
|
+
elements: Array<{
|
|
240
|
+
title: string;
|
|
241
|
+
subtitle?: string;
|
|
242
|
+
image_url?: string;
|
|
243
|
+
default_action?: {
|
|
244
|
+
type: string;
|
|
245
|
+
url: string;
|
|
246
|
+
};
|
|
247
|
+
buttons?: Array<{
|
|
248
|
+
type: string;
|
|
249
|
+
title: string;
|
|
250
|
+
url?: string;
|
|
251
|
+
payload?: string;
|
|
252
|
+
}>;
|
|
253
|
+
}>;
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Promotion message types
|
|
259
|
+
*/
|
|
260
|
+
export interface PromotionMessage extends BaseMessage {
|
|
261
|
+
type: "promotion";
|
|
262
|
+
template_id?: string;
|
|
263
|
+
template_data?: Record<string, string>;
|
|
264
|
+
mode?: "development" | "production";
|
|
265
|
+
attachment?: {
|
|
266
|
+
type: string;
|
|
267
|
+
payload: {
|
|
268
|
+
template_type: string;
|
|
269
|
+
elements: Array<{
|
|
270
|
+
title: string;
|
|
271
|
+
subtitle?: string;
|
|
272
|
+
image_url?: string;
|
|
273
|
+
default_action?: {
|
|
274
|
+
type: string;
|
|
275
|
+
url: string;
|
|
276
|
+
};
|
|
277
|
+
buttons?: Array<{
|
|
278
|
+
type: string;
|
|
279
|
+
title: string;
|
|
280
|
+
url?: string;
|
|
281
|
+
payload?: string;
|
|
282
|
+
}>;
|
|
283
|
+
}>;
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* Anonymous message types
|
|
289
|
+
*/
|
|
290
|
+
export interface AnonymousTextMessage extends BaseMessage {
|
|
291
|
+
type: "anonymous_text";
|
|
292
|
+
text: string;
|
|
293
|
+
}
|
|
294
|
+
export interface AnonymousImageMessage extends BaseMessage {
|
|
295
|
+
type: "anonymous_image";
|
|
296
|
+
url: string;
|
|
297
|
+
message?: string;
|
|
298
|
+
}
|
|
299
|
+
export interface AnonymousFileMessage extends BaseMessage {
|
|
300
|
+
type: "anonymous_file";
|
|
301
|
+
url: string;
|
|
302
|
+
filename: string;
|
|
303
|
+
message?: string;
|
|
304
|
+
}
|
|
305
|
+
export interface AnonymousStickerMessage extends BaseMessage {
|
|
306
|
+
type: "anonymous_sticker";
|
|
307
|
+
sticker_id: string;
|
|
308
|
+
message?: string;
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* Reaction message
|
|
312
|
+
*/
|
|
313
|
+
export interface ReactionMessage extends BaseMessage {
|
|
314
|
+
type: "reaction";
|
|
315
|
+
message_id: string;
|
|
316
|
+
reaction_type: "heart" | "like" | "haha" | "wow" | "sad" | "angry";
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* Mini app message
|
|
320
|
+
*/
|
|
321
|
+
export interface MiniAppMessage extends BaseMessage {
|
|
322
|
+
type: "miniapp";
|
|
323
|
+
app_id: string;
|
|
324
|
+
title: string;
|
|
325
|
+
subtitle?: string;
|
|
326
|
+
image_url?: string;
|
|
327
|
+
data?: Record<string, any>;
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* Extended message union type
|
|
331
|
+
*/
|
|
332
|
+
export type ExtendedMessage = Message | ConsultationTextMessage | ConsultationImageMessage | ConsultationFileMessage | ConsultationStickerMessage | ConsultationQuoteMessage | ConsultationRequestInfoMessage | TransactionMessage | PromotionMessage | AnonymousTextMessage | AnonymousImageMessage | AnonymousFileMessage | AnonymousStickerMessage | ReactionMessage | MiniAppMessage;
|
|
333
|
+
//# sourceMappingURL=message.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../src/types/message.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,WAAW;IAC9C,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,YAAa,SAAQ,WAAW;IAC/C,IAAI,EAAE,OAAO,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE;QACX,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE;YACP,GAAG,EAAE,MAAM,CAAC;SACb,CAAC;KACH,CAAC;CACH;AAED;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,WAAW;IAC9C,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE;QACX,IAAI,EAAE,MAAM,CAAC;QACb,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ClB;AAED,MAAM,WAAW,oBAAqB,SAAQ,WAAW;IACvD,IAAI,EAAE,gBAAgB,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,uBAAwB,SAAQ,WAAW;IAC1D,IAAI,EAAE,mBAAmB,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,eAAgB,SAAQ,WAAW;IAClD,IAAI,EAAE,UAAU,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,CAAC;CACpE;AAED;;GAEG;AACH,MAAM,WAAW,cAAe,SAAQ,WAAW;IACjD,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GACvB,OAAO,GACP,uBAAuB,GACvB,wBAAwB,GACxB,uBAAuB,GACvB,0BAA0B,GAC1B,wBAAwB,GACxB,8BAA8B,GAC9B,kBAAkB,GAClB,gBAAgB,GAChB,oBAAoB,GACpB,qBAAqB,GACrB,oBAAoB,GACpB,uBAAuB,GACvB,eAAe,GACf,cAAc,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Message related types and interfaces
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.MessageStatus = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Message status
|
|
9
|
+
*/
|
|
10
|
+
var MessageStatus;
|
|
11
|
+
(function (MessageStatus) {
|
|
12
|
+
MessageStatus["SENT"] = "sent";
|
|
13
|
+
MessageStatus["DELIVERED"] = "delivered";
|
|
14
|
+
MessageStatus["READ"] = "read";
|
|
15
|
+
MessageStatus["FAILED"] = "failed";
|
|
16
|
+
})(MessageStatus || (exports.MessageStatus = MessageStatus = {}));
|
|
17
|
+
//# sourceMappingURL=message.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message.js","sourceRoot":"","sources":["../../src/types/message.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAmLH;;GAEG;AACH,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,8BAAa,CAAA;IACb,wCAAuB,CAAA;IACvB,8BAAa,CAAA;IACb,kCAAiB,CAAA;AACnB,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB"}
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Official Account (OA) related types and interfaces
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Official Account information
|
|
6
|
+
*/
|
|
7
|
+
export interface OAInfo {
|
|
8
|
+
/**
|
|
9
|
+
* Official Account ID
|
|
10
|
+
*/
|
|
11
|
+
oa_id: string;
|
|
12
|
+
/**
|
|
13
|
+
* OA name
|
|
14
|
+
*/
|
|
15
|
+
name: string;
|
|
16
|
+
/**
|
|
17
|
+
* OA description
|
|
18
|
+
*/
|
|
19
|
+
description: string;
|
|
20
|
+
/**
|
|
21
|
+
* OA alias
|
|
22
|
+
*/
|
|
23
|
+
oa_alias: string;
|
|
24
|
+
/**
|
|
25
|
+
* Verification status
|
|
26
|
+
*/
|
|
27
|
+
is_verified: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* OA type (number)
|
|
30
|
+
*/
|
|
31
|
+
oa_type: number;
|
|
32
|
+
/**
|
|
33
|
+
* Category name
|
|
34
|
+
*/
|
|
35
|
+
cate_name: string;
|
|
36
|
+
/**
|
|
37
|
+
* Number of followers
|
|
38
|
+
*/
|
|
39
|
+
num_follower: number;
|
|
40
|
+
/**
|
|
41
|
+
* Avatar URL
|
|
42
|
+
*/
|
|
43
|
+
avatar: string;
|
|
44
|
+
/**
|
|
45
|
+
* Cover image URL
|
|
46
|
+
*/
|
|
47
|
+
cover: string;
|
|
48
|
+
/**
|
|
49
|
+
* Package name
|
|
50
|
+
*/
|
|
51
|
+
package_name: string;
|
|
52
|
+
/**
|
|
53
|
+
* Package expiration date
|
|
54
|
+
*/
|
|
55
|
+
package_valid_through_date: string;
|
|
56
|
+
/**
|
|
57
|
+
* Package auto-renewal date
|
|
58
|
+
*/
|
|
59
|
+
package_auto_renew_date: string;
|
|
60
|
+
/**
|
|
61
|
+
* Linked Zalo Cloud Account
|
|
62
|
+
*/
|
|
63
|
+
linked_ZCA: string;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Message quota information
|
|
67
|
+
*/
|
|
68
|
+
export interface MessageQuota {
|
|
69
|
+
/**
|
|
70
|
+
* Daily quota limit
|
|
71
|
+
*/
|
|
72
|
+
daily_quota: number;
|
|
73
|
+
/**
|
|
74
|
+
* Remaining quota for today
|
|
75
|
+
*/
|
|
76
|
+
remaining_quota: number;
|
|
77
|
+
/**
|
|
78
|
+
* Quota type (e.g., "free", "paid")
|
|
79
|
+
*/
|
|
80
|
+
quota_type: string;
|
|
81
|
+
/**
|
|
82
|
+
* Quota reset time (Unix timestamp)
|
|
83
|
+
*/
|
|
84
|
+
reset_time: number;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Detailed quota information request
|
|
88
|
+
*/
|
|
89
|
+
export interface QuotaMessageRequest {
|
|
90
|
+
/**
|
|
91
|
+
* Quota owner (OA or APP)
|
|
92
|
+
*/
|
|
93
|
+
quota_owner: string;
|
|
94
|
+
/**
|
|
95
|
+
* Product type
|
|
96
|
+
*/
|
|
97
|
+
product_type?: 'cs' | 'transaction' | 'gmf10' | 'gmf50' | 'gmf100';
|
|
98
|
+
/**
|
|
99
|
+
* Quota type
|
|
100
|
+
*/
|
|
101
|
+
quota_type?: 'sub_quota' | 'purchase_quota' | 'reward_quota';
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Quota asset information
|
|
105
|
+
*/
|
|
106
|
+
export interface QuotaAsset {
|
|
107
|
+
/**
|
|
108
|
+
* Asset ID
|
|
109
|
+
*/
|
|
110
|
+
asset_id: string;
|
|
111
|
+
/**
|
|
112
|
+
* Product type
|
|
113
|
+
*/
|
|
114
|
+
product_type: string;
|
|
115
|
+
/**
|
|
116
|
+
* Quota type
|
|
117
|
+
*/
|
|
118
|
+
quota_type: string;
|
|
119
|
+
/**
|
|
120
|
+
* Expiration date
|
|
121
|
+
*/
|
|
122
|
+
valid_through: string;
|
|
123
|
+
/**
|
|
124
|
+
* Auto-renewal status
|
|
125
|
+
*/
|
|
126
|
+
auto_renew: boolean;
|
|
127
|
+
/**
|
|
128
|
+
* Asset status
|
|
129
|
+
*/
|
|
130
|
+
status: 'available' | 'used';
|
|
131
|
+
/**
|
|
132
|
+
* Used ID (for GMF, this is group_id)
|
|
133
|
+
*/
|
|
134
|
+
used_id: string | null;
|
|
135
|
+
/**
|
|
136
|
+
* Total quota (legacy)
|
|
137
|
+
*/
|
|
138
|
+
total?: number;
|
|
139
|
+
/**
|
|
140
|
+
* Remaining quota (legacy)
|
|
141
|
+
*/
|
|
142
|
+
remain?: number;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Quota message response
|
|
146
|
+
*/
|
|
147
|
+
export interface QuotaMessageResponse {
|
|
148
|
+
/**
|
|
149
|
+
* List of quota assets
|
|
150
|
+
*/
|
|
151
|
+
data: QuotaAsset[];
|
|
152
|
+
/**
|
|
153
|
+
* Error code
|
|
154
|
+
*/
|
|
155
|
+
error: number;
|
|
156
|
+
/**
|
|
157
|
+
* Response message
|
|
158
|
+
*/
|
|
159
|
+
message: string;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* GMF product types
|
|
163
|
+
*/
|
|
164
|
+
export declare enum GMFProductType {
|
|
165
|
+
GMF10 = "gmf10",
|
|
166
|
+
GMF50 = "gmf50",
|
|
167
|
+
GMF100 = "gmf100"
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Quota types
|
|
171
|
+
*/
|
|
172
|
+
export declare enum QuotaType {
|
|
173
|
+
SUB_QUOTA = "sub_quota",
|
|
174
|
+
PURCHASE_QUOTA = "purchase_quota",
|
|
175
|
+
REWARD_QUOTA = "reward_quota"
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* OA settings
|
|
179
|
+
*/
|
|
180
|
+
export interface OASettings {
|
|
181
|
+
/**
|
|
182
|
+
* Auto-reply settings
|
|
183
|
+
*/
|
|
184
|
+
auto_reply?: {
|
|
185
|
+
enabled: boolean;
|
|
186
|
+
message?: string;
|
|
187
|
+
};
|
|
188
|
+
/**
|
|
189
|
+
* Welcome message settings
|
|
190
|
+
*/
|
|
191
|
+
welcome_message?: {
|
|
192
|
+
enabled: boolean;
|
|
193
|
+
message?: string;
|
|
194
|
+
};
|
|
195
|
+
/**
|
|
196
|
+
* Business hours
|
|
197
|
+
*/
|
|
198
|
+
business_hours?: {
|
|
199
|
+
enabled: boolean;
|
|
200
|
+
schedule?: Array<{
|
|
201
|
+
day: number;
|
|
202
|
+
start_time: string;
|
|
203
|
+
end_time: string;
|
|
204
|
+
}>;
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* OA statistics
|
|
209
|
+
*/
|
|
210
|
+
export interface OAStatistics {
|
|
211
|
+
/**
|
|
212
|
+
* Total followers
|
|
213
|
+
*/
|
|
214
|
+
total_followers: number;
|
|
215
|
+
/**
|
|
216
|
+
* New followers today
|
|
217
|
+
*/
|
|
218
|
+
new_followers_today: number;
|
|
219
|
+
/**
|
|
220
|
+
* Messages sent today
|
|
221
|
+
*/
|
|
222
|
+
messages_sent_today: number;
|
|
223
|
+
/**
|
|
224
|
+
* Messages received today
|
|
225
|
+
*/
|
|
226
|
+
messages_received_today: number;
|
|
227
|
+
/**
|
|
228
|
+
* Engagement rate
|
|
229
|
+
*/
|
|
230
|
+
engagement_rate?: number;
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* OA profile update request
|
|
234
|
+
*/
|
|
235
|
+
export interface UpdateOAProfileRequest {
|
|
236
|
+
/**
|
|
237
|
+
* OA name
|
|
238
|
+
*/
|
|
239
|
+
name?: string;
|
|
240
|
+
/**
|
|
241
|
+
* OA description
|
|
242
|
+
*/
|
|
243
|
+
description?: string;
|
|
244
|
+
/**
|
|
245
|
+
* Avatar image (base64 or URL)
|
|
246
|
+
*/
|
|
247
|
+
avatar?: string;
|
|
248
|
+
/**
|
|
249
|
+
* Cover image (base64 or URL)
|
|
250
|
+
*/
|
|
251
|
+
cover?: string;
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* OA verification request
|
|
255
|
+
*/
|
|
256
|
+
export interface OAVerificationRequest {
|
|
257
|
+
/**
|
|
258
|
+
* Business license number
|
|
259
|
+
*/
|
|
260
|
+
business_license: string;
|
|
261
|
+
/**
|
|
262
|
+
* Business name
|
|
263
|
+
*/
|
|
264
|
+
business_name: string;
|
|
265
|
+
/**
|
|
266
|
+
* Contact person name
|
|
267
|
+
*/
|
|
268
|
+
contact_name: string;
|
|
269
|
+
/**
|
|
270
|
+
* Contact phone number
|
|
271
|
+
*/
|
|
272
|
+
contact_phone: string;
|
|
273
|
+
/**
|
|
274
|
+
* Contact email
|
|
275
|
+
*/
|
|
276
|
+
contact_email: string;
|
|
277
|
+
/**
|
|
278
|
+
* Additional documents
|
|
279
|
+
*/
|
|
280
|
+
documents?: Array<{
|
|
281
|
+
type: string;
|
|
282
|
+
url: string;
|
|
283
|
+
}>;
|
|
284
|
+
}
|
|
285
|
+
//# sourceMapping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AC;YACZ,UAAU,EAAE,MAAM,CAAC;YACnB,QAAQ,EAAE,MAAM,CAAC;SAClB,CAAC,CAAC;KACJ,CAAC;CACH;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAE5B;;OAEG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAE5B;;OAEG;IACH,uBAAuB,EAAE,MAAM,CAAC;IAEhC;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,MAAM,CAAC;KACb,CAAC,CAAC;CACJ"}
|
package/dist/types/oa.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Official Account (OA) related types and interfaces
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.QuotaType = exports.GMFProductType = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* GMF product types
|
|
9
|
+
*/
|
|
10
|
+
var GMFProductType;
|
|
11
|
+
(function (GMFProductType) {
|
|
12
|
+
GMFProductType["GMF10"] = "gmf10";
|
|
13
|
+
GMFProductType["GMF50"] = "gmf50";
|
|
14
|
+
GMFProductType["GMF100"] = "gmf100";
|
|
15
|
+
})(GMFProductType || (exports.GMFProductType = GMFProductType = {}));
|
|
16
|
+
/**
|
|
17
|
+
* Quota types
|
|
18
|
+
*/
|
|
19
|
+
var QuotaType;
|
|
20
|
+
(function (QuotaType) {
|
|
21
|
+
QuotaType["SUB_QUOTA"] = "sub_quota";
|
|
22
|
+
QuotaType["PURCHASE_QUOTA"] = "purchase_quota";
|
|
23
|
+
QuotaType["REWARD_QUOTA"] = "reward_quota";
|
|
24
|
+
})(QuotaType || (exports.QuotaType = QuotaType = {}));
|
|
25
|
+
//# sourceMappingURL=oa.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oa.js","sourceRoot":"","sources":["../../src/types/oa.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAgMH;;GAEG;AACH,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,iCAAe,CAAA;IACf,iCAAe,CAAA;IACf,mCAAiB,CAAA;AACnB,CAAC,EAJW,cAAc,8BAAd,cAAc,QAIzB;AAED;;GAEG;AACH,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,oCAAuB,CAAA;IACvB,8CAAiC,CAAA;IACjC,0CAA6B,CAAA;AAC/B,CAAC,EAJW,SAAS,yBAAT,SAAS,QAIpB"}
|