UNPKG

@warriorteam/redai-zalo-sdk

Version:

Comprehensive TypeScript/JavaScript SDK for Zalo APIs - Official Account v3.0, ZNS with Full Type Safety, Consultation Service, Broadcast Service, Group Messaging with List APIs, Social APIs, Enhanced Article Management, Promotion Service v3.0 with Multip

85 lines 3.22 kB
"use strict"; /** * ZNS (Zalo Notification Service) Type Definitions */ Object.defineProperty(exports, "__esModule", { value: true }); exports.ZNSParamType = exports.ZNSButtonType = exports.ZNSTemplateTag = exports.ZNSTemplateType = void 0; // ZNS Template Types var ZNSTemplateType; (function (ZNSTemplateType) { /** ZNS tùy chỉnh */ ZNSTemplateType[ZNSTemplateType["CUSTOM"] = 1] = "CUSTOM"; /** ZNS xác thực */ ZNSTemplateType[ZNSTemplateType["AUTHENTICATION"] = 2] = "AUTHENTICATION"; /** ZNS yêu cầu thanh toán */ ZNSTemplateType[ZNSTemplateType["PAYMENT_REQUEST"] = 3] = "PAYMENT_REQUEST"; /** ZNS voucher */ ZNSTemplateType[ZNSTemplateType["VOUCHER"] = 4] = "VOUCHER"; /** ZNS Đánh giá dịch vụ */ ZNSTemplateType[ZNSTemplateType["SERVICE_RATING"] = 5] = "SERVICE_RATING"; })(ZNSTemplateType || (exports.ZNSTemplateType = ZNSTemplateType = {})); // ZNS Template Tags var ZNSTemplateTag; (function (ZNSTemplateTag) { /** Transaction */ ZNSTemplateTag["TRANSACTION"] = "1"; /** Customer care */ ZNSTemplateTag["CUSTOMER_CARE"] = "2"; /** Promotion */ ZNSTemplateTag["PROMOTION"] = "3"; })(ZNSTemplateTag || (exports.ZNSTemplateTag = ZNSTemplateTag = {})); // ZNS Button Types var ZNSButtonType; (function (ZNSButtonType) { /** URL */ ZNSButtonType[ZNSButtonType["URL"] = 1] = "URL"; /** Phone */ ZNSButtonType[ZNSButtonType["PHONE"] = 2] = "PHONE"; /** SMS */ ZNSButtonType[ZNSButtonType["SMS"] = 3] = "SMS"; /** App */ ZNSButtonType[ZNSButtonType["APP"] = 4] = "APP"; /** Deeplink */ ZNSButtonType[ZNSButtonType["DEEPLINK"] = 5] = "DEEPLINK"; /** Map */ ZNSButtonType[ZNSButtonType["MAP"] = 6] = "MAP"; /** Calendar */ ZNSButtonType[ZNSButtonType["CALENDAR"] = 7] = "CALENDAR"; /** Copy */ ZNSButtonType[ZNSButtonType["COPY"] = 8] = "COPY"; })(ZNSButtonType || (exports.ZNSButtonType = ZNSButtonType = {})); // ZNS Parameter Types var ZNSParamType; (function (ZNSParamType) { /** Tên khách hàng (30) */ ZNSParamType["CUSTOMER_NAME"] = "1"; /** Số điện thoại (15) */ ZNSParamType["PHONE_NUMBER"] = "2"; /** Địa chỉ (200) */ ZNSParamType["ADDRESS"] = "3"; /** Mã số (30) */ ZNSParamType["CODE"] = "4"; /** Nhãn tùy chỉnh (30) */ ZNSParamType["CUSTOM_LABEL"] = "5"; /** Trạng thái giao dịch (30) */ ZNSParamType["TRANSACTION_STATUS"] = "6"; /** Thông tin liên hệ (50) */ ZNSParamType["CONTACT_INFO"] = "7"; /** Giới tính / Danh xưng (5) */ ZNSParamType["GENDER_TITLE"] = "8"; /** Tên sản phẩm / Thương hiệu (200) */ ZNSParamType["PRODUCT_BRAND"] = "9"; /** Số lượng / Số tiền (20) */ ZNSParamType["QUANTITY_AMOUNT"] = "10"; /** Thời gian (20) */ ZNSParamType["TIME"] = "11"; /** OTP (10) */ ZNSParamType["OTP"] = "12"; /** URL (200) */ ZNSParamType["URL"] = "13"; /** Tiền tệ (VNĐ) (12) */ ZNSParamType["CURRENCY"] = "14"; /** Bank transfer note (90) */ ZNSParamType["BANK_TRANSFER_NOTE"] = "15"; })(ZNSParamType || (exports.ZNSParamType = ZNSParamType = {})); //# sourceMappingURL=zns.js.map