@redonvn/zalo-ads-sdk 0.2.7 → 0.2.13
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/index.d.mts +238 -15
- package/dist/index.d.ts +238 -15
- package/dist/index.js +590 -114
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +577 -114
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -449,9 +449,9 @@ interface FileDownloadResponse {
|
|
|
449
449
|
|
|
450
450
|
/**
|
|
451
451
|
* Mã trạng thái kỹ thuật & nghiệp vụ của Instant Page:
|
|
452
|
-
* - 0: Bản sao mới tạo (Clone Draft) - vừa nhân bản từ template hoặc trang khác, chưa từng sửa và chưa xuất bản
|
|
453
|
-
* - 1:
|
|
454
|
-
* - 2:
|
|
452
|
+
* - 0: Bản sao mới tạo (Clone Draft) - vừa nhân bản từ template hoặc trang khác, chưa từng sửa và chưa xuất bản (máy chủ lọc bỏ khỏi danh sách tìm kiếm)
|
|
453
|
+
* - 1: Đang hoạt động / Đã xuất bản (Active / Published) - trang chính thức, nội dung live nằm trong trường content, máy chủ cấp timestamp published
|
|
454
|
+
* - 2: Mã trạng thái trung gian cũ trên giao diện
|
|
455
455
|
* - 3: Lưu trữ / Đã kết thúc (Archived / Ended) - trang đã ngưng hoạt động hoặc kết thúc chiến dịch
|
|
456
456
|
*/
|
|
457
457
|
type ZaloInstantPageStatus = 0 | 1 | 2 | 3;
|
|
@@ -1153,17 +1153,68 @@ interface ZaloAdsAdUpdatePayloadDto {
|
|
|
1153
1153
|
ZaloPageId?: number;
|
|
1154
1154
|
ZaloFormId?: string;
|
|
1155
1155
|
ZaloFeedId?: string | number;
|
|
1156
|
+
ZaloVideoId?: number;
|
|
1156
1157
|
MiniPageId?: number;
|
|
1157
1158
|
UseConversion?: 0 | 1;
|
|
1158
1159
|
ConversionId?: number;
|
|
1159
1160
|
Report?: Record<string, number>;
|
|
1160
1161
|
}
|
|
1162
|
+
/** Danh mục mã hành động / nút CTA chuẩn trên Zalo Ads */
|
|
1163
|
+
declare const ZaloAdsActionType: {
|
|
1164
|
+
readonly DAT_NGAY: 1;
|
|
1165
|
+
readonly MUA_NGAY: 2;
|
|
1166
|
+
readonly THU_NGAY: 3;
|
|
1167
|
+
readonly TAI_NGAY: 4;
|
|
1168
|
+
readonly XEM_THEM: 5;
|
|
1169
|
+
readonly QUAN_TAM_OA: 6;
|
|
1170
|
+
readonly NGHE_NGAY: 7;
|
|
1171
|
+
readonly CHOI_NGAY: 8;
|
|
1172
|
+
readonly DANG_KY: 9;
|
|
1173
|
+
readonly GOI_DIEN: 10;
|
|
1174
|
+
};
|
|
1175
|
+
/** Danh mục mã khoảng tuổi nhắm chọn đối tượng trên Zalo Ads */
|
|
1176
|
+
declare const ZaloAdsAgeRangeId: {
|
|
1177
|
+
readonly UNDER_18: 10282;
|
|
1178
|
+
readonly FROM_18_TO_24: 10283;
|
|
1179
|
+
readonly FROM_25_TO_34: 10284;
|
|
1180
|
+
readonly FROM_35_TO_44: 10285;
|
|
1181
|
+
readonly FROM_45_TO_54: 10286;
|
|
1182
|
+
readonly FROM_55_TO_64: 10287;
|
|
1183
|
+
readonly OVER_64: 10288;
|
|
1184
|
+
};
|
|
1185
|
+
/** Danh mục mã hệ điều hành */
|
|
1186
|
+
declare const ZaloAdsOsId: {
|
|
1187
|
+
readonly ANDROID: 0;
|
|
1188
|
+
readonly IOS: 1;
|
|
1189
|
+
readonly PC: 3;
|
|
1190
|
+
};
|
|
1191
|
+
/** Danh mục tốc độ phân phối quảng cáo */
|
|
1192
|
+
declare const ZaloAdsDeliveryType: {
|
|
1193
|
+
readonly STANDARD: 1;
|
|
1194
|
+
readonly ACCELERATED: 2;
|
|
1195
|
+
};
|
|
1161
1196
|
interface ZaloAdsAdMutationResultDto {
|
|
1162
1197
|
AdId?: number;
|
|
1163
1198
|
CampaignId?: number;
|
|
1164
1199
|
Status?: number;
|
|
1165
1200
|
RowVersion?: number;
|
|
1166
1201
|
}
|
|
1202
|
+
/** Tham số yêu cầu nhân bản mẫu quảng cáo (POST /zaapi/DuplicateAd) */
|
|
1203
|
+
interface ZaloAdsDuplicateAdRequest {
|
|
1204
|
+
/** ID mẫu quảng cáo gốc cần nhân bản (bắt buộc). */
|
|
1205
|
+
adid?: number;
|
|
1206
|
+
/** Alias cho adid. */
|
|
1207
|
+
adId?: number;
|
|
1208
|
+
}
|
|
1209
|
+
/** Kết quả phản hồi khi nhân bản mẫu quảng cáo */
|
|
1210
|
+
interface ZaloAdsDuplicateAdResponse {
|
|
1211
|
+
/** Mã trạng thái: 0 = Thành công, khác 0 = Lỗi */
|
|
1212
|
+
code: number;
|
|
1213
|
+
/** Chuỗi thông báo kết quả (chứa ID của Ad mới tạo) */
|
|
1214
|
+
msg?: string;
|
|
1215
|
+
/** ID số nguyên của Ad mới vừa được nhân bản */
|
|
1216
|
+
data: number;
|
|
1217
|
+
}
|
|
1167
1218
|
interface ZaloAdsCampaignCreatePayloadDto {
|
|
1168
1219
|
name: string;
|
|
1169
1220
|
campaignType: number;
|
|
@@ -1508,15 +1559,53 @@ type ZaloAdsDeleteCustomAudienceResponse = {
|
|
|
1508
1559
|
/** Mã kết quả; 0 biểu thị thành công trong phản hồi đã quan sát. */
|
|
1509
1560
|
code: number;
|
|
1510
1561
|
};
|
|
1511
|
-
/** Lấy chi tiết một quảng cáo theo ID
|
|
1562
|
+
/** Lấy chi tiết một quảng cáo theo ID (GET /zaapi/getAdFromAdId?adId=...&v=2&newWard=true). */
|
|
1512
1563
|
type ZaloAdsGetAdByIdRequest = {
|
|
1513
1564
|
/** ID mẫu quảng cáo cần lấy chi tiết (query param `adId`). */
|
|
1514
1565
|
adId?: number | string;
|
|
1566
|
+
/** Phiên bản schema cấu trúc dữ liệu trả về (mặc định: 2). */
|
|
1567
|
+
v?: number | string;
|
|
1568
|
+
/** Cờ kích hoạt định dạng nhắm chọn cấp Phường/Xã mới (mặc định: true). */
|
|
1569
|
+
newWard?: boolean | string;
|
|
1515
1570
|
};
|
|
1571
|
+
/** Thông tin chiến dịch mở rộng đính kèm trong phản hồi getAdById */
|
|
1572
|
+
interface ZaloAdsCampaignDetailExtendDto {
|
|
1573
|
+
CampaignId: number;
|
|
1574
|
+
MemberId: number;
|
|
1575
|
+
Name: string;
|
|
1576
|
+
Type: number;
|
|
1577
|
+
StartDate: number;
|
|
1578
|
+
EndDate: number;
|
|
1579
|
+
Status: number;
|
|
1580
|
+
Modified?: number;
|
|
1581
|
+
Created?: number;
|
|
1582
|
+
AdtimaCampaignId?: number;
|
|
1583
|
+
AdtimaOrderId?: number;
|
|
1584
|
+
ReadOnly?: number;
|
|
1585
|
+
CrmCampaignId?: string;
|
|
1586
|
+
Settings?: {
|
|
1587
|
+
BudgetLimit?: {
|
|
1588
|
+
Type?: number;
|
|
1589
|
+
Amount?: number;
|
|
1590
|
+
LimitType?: number;
|
|
1591
|
+
};
|
|
1592
|
+
};
|
|
1593
|
+
CreatedBy?: number;
|
|
1594
|
+
AgencyId?: number;
|
|
1595
|
+
Username?: string;
|
|
1596
|
+
ViewType?: string;
|
|
1597
|
+
}
|
|
1516
1598
|
type ZaloAdsGetAdByIdResponse = {
|
|
1517
1599
|
code?: number;
|
|
1518
1600
|
msg?: string;
|
|
1519
1601
|
data?: ZaloAdsAdUpdatePayloadDto;
|
|
1602
|
+
extend?: ZaloAdsCampaignDetailExtendDto;
|
|
1603
|
+
flags?: {
|
|
1604
|
+
IsOaValidForAd?: boolean;
|
|
1605
|
+
[key: string]: unknown;
|
|
1606
|
+
};
|
|
1607
|
+
report?: number[] | Record<string, number>;
|
|
1608
|
+
viewdata?: unknown[];
|
|
1520
1609
|
AdId?: number;
|
|
1521
1610
|
CampaignId?: number;
|
|
1522
1611
|
MemberId?: number;
|
|
@@ -1540,8 +1629,8 @@ type ZaloAdsGetAdByIdResponse = {
|
|
|
1540
1629
|
type ZaloAdsGetAdChangeLogRequest = {
|
|
1541
1630
|
/** ID quảng cáo cần xem lịch sử. Có thể lấy từ kết quả tạo quảng cáo hoặc dữ liệu chi tiết quảng cáo. */
|
|
1542
1631
|
adId: number;
|
|
1543
|
-
/** Mã loại nhật
|
|
1544
|
-
type
|
|
1632
|
+
/** Mã loại nhật ký (mặc định: 1). */
|
|
1633
|
+
type?: number;
|
|
1545
1634
|
};
|
|
1546
1635
|
type ZaloAdsGetAdChangeLogResponse = {
|
|
1547
1636
|
/** Thông điệp kết quả từ Zalo Ads. */
|
|
@@ -2221,11 +2310,18 @@ type ZaloAdsGetZaapiCheckcamphasmanyadsResponse = {
|
|
|
2221
2310
|
type ZaloAdsGetZaapiGetadsfromcampaignidRequest = {
|
|
2222
2311
|
campaignId?: number | string;
|
|
2223
2312
|
campId?: number | string;
|
|
2313
|
+
dataType?: number | string;
|
|
2314
|
+
v?: number | string;
|
|
2224
2315
|
};
|
|
2225
2316
|
type ZaloAdsGetZaapiGetadsfromcampaignidResponse = {
|
|
2226
2317
|
code: number;
|
|
2227
2318
|
msg?: string;
|
|
2228
2319
|
data: Array<ZaloAdsAdUpdatePayloadDto>;
|
|
2320
|
+
extend?: ZaloAdsCampaignDetailExtendDto;
|
|
2321
|
+
extra?: {
|
|
2322
|
+
appliedRuleInfo?: Array<unknown>;
|
|
2323
|
+
[key: string]: unknown;
|
|
2324
|
+
};
|
|
2229
2325
|
};
|
|
2230
2326
|
interface ZaloAdsPageConfigDto {
|
|
2231
2327
|
/** Hạng tài khoản OA (ví dụ: 0 = Phổ thông, 1 = Xác thực/Nâng cao). */
|
|
@@ -2669,10 +2765,15 @@ type ZaloAdsPostZaapiDeleteadResponse = {
|
|
|
2669
2765
|
};
|
|
2670
2766
|
/** Đổi tên hiển thị của một chiến dịch Zalo Ads đã tồn tại. Đây là mutation tool thuộc lane quản lý chiến dịch; dùng khi chỉ cần thay tên mà không thay đổi ngân sách, lịch chạy hoặc quảng cáo bên trong. Kết quả chỉ xác nhận thao tác thành công hoặc trả lỗi từ Zalo Ads. */
|
|
2671
2767
|
type ZaloAdsRenameCampaignRequest = {
|
|
2672
|
-
/** ID chiến dịch cần đổi tên
|
|
2673
|
-
campid
|
|
2674
|
-
/**
|
|
2675
|
-
|
|
2768
|
+
/** ID chiến dịch cần đổi tên (server nhận tham số campid). */
|
|
2769
|
+
campid?: number;
|
|
2770
|
+
/** Alias thân thiện cho campid */
|
|
2771
|
+
campaignId?: number;
|
|
2772
|
+
/** Tên hiển thị mới của chiến dịch (server nhận tham số newname). */
|
|
2773
|
+
newname?: string;
|
|
2774
|
+
/** Alias thân thiện cho newname */
|
|
2775
|
+
campaignName?: string;
|
|
2776
|
+
name?: string;
|
|
2676
2777
|
};
|
|
2677
2778
|
type ZaloAdsRenameCampaignResponse = {
|
|
2678
2779
|
/** Thông điệp kết quả từ Zalo Ads. */
|
|
@@ -3327,6 +3428,22 @@ type ZaloAdsListReportFiltersResponse = Array<{
|
|
|
3327
3428
|
content: string;
|
|
3328
3429
|
model: number;
|
|
3329
3430
|
}>;
|
|
3431
|
+
/** Xuất và tải báo cáo hiệu quả quảng cáo dạng file Excel (.xlsx) qua endpoint thu thập và xuất báo cáo (POST https://ads.zalo.me/api/collect). */
|
|
3432
|
+
type ZaloAdsDownloadReportRequest = {
|
|
3433
|
+
/** Hành động / chủ đề tải báo cáo; mặc định là "cd.download.report". */
|
|
3434
|
+
t?: "cd.download.report" | string;
|
|
3435
|
+
/** Danh sách ID các mẫu quảng cáo cần xuất báo cáo (ví dụ: [19770157]). */
|
|
3436
|
+
adIds: number[];
|
|
3437
|
+
/** Mã trạng thái lọc quảng cáo khi xuất báo cáo (ví dụ: 2 = Đang chạy). */
|
|
3438
|
+
status?: number;
|
|
3439
|
+
/** Bộ lọc thời gian: 0 = Toàn thời gian / Tùy chỉnh. */
|
|
3440
|
+
dateFilter?: number;
|
|
3441
|
+
/** Loại chỉ số dữ liệu báo cáo (100001: Lượt nhấn / Chi phí / Hiển thị). */
|
|
3442
|
+
reportKind?: number;
|
|
3443
|
+
/** Unix timestamp thời điểm gửi lệnh xuất báo cáo (giây). */
|
|
3444
|
+
et?: number;
|
|
3445
|
+
};
|
|
3446
|
+
type ZaloAdsDownloadReportResponse = Blob;
|
|
3330
3447
|
|
|
3331
3448
|
/**
|
|
3332
3449
|
* Tham số đầu vào cho method tiện ích `uploadAndSaveImage`
|
|
@@ -3507,12 +3624,22 @@ interface ValidateVideoInput {
|
|
|
3507
3624
|
fileName?: string;
|
|
3508
3625
|
}
|
|
3509
3626
|
|
|
3510
|
-
/**
|
|
3511
|
-
* Dịch vụ Quản lý Chiến dịch & Quảng cáo Zalo Ads (Tạo chiến dịch, đổi trạng thái, cập nhật quảng cáo các định dạng).
|
|
3512
|
-
*/
|
|
3513
|
-
|
|
3514
3627
|
declare class ZaloCampaignsService {
|
|
3515
3628
|
protected readonly client: ZaloSdkHttpClient;
|
|
3629
|
+
readonly validator: {
|
|
3630
|
+
createCampaign: typeof validateCreateCampaignPayload;
|
|
3631
|
+
updateAd: typeof validateUpdateAdPayload;
|
|
3632
|
+
renameCampaign: typeof validateRenameCampaignParams;
|
|
3633
|
+
changeStatus: typeof validateChangeCampaignStatusParams;
|
|
3634
|
+
duplicateAd: typeof validateDuplicateAdParams;
|
|
3635
|
+
};
|
|
3636
|
+
static readonly validator: {
|
|
3637
|
+
createCampaign: typeof validateCreateCampaignPayload;
|
|
3638
|
+
updateAd: typeof validateUpdateAdPayload;
|
|
3639
|
+
renameCampaign: typeof validateRenameCampaignParams;
|
|
3640
|
+
changeStatus: typeof validateChangeCampaignStatusParams;
|
|
3641
|
+
duplicateAd: typeof validateDuplicateAdParams;
|
|
3642
|
+
};
|
|
3516
3643
|
constructor(client: ZaloSdkHttpClient);
|
|
3517
3644
|
updateVideoAd(request: ZaloAdsUpdateVideoAdRequest, options?: RequestOptions): Promise<ZaloAdsUpdateVideoAdResponse>;
|
|
3518
3645
|
changeCampaignStatus(request: ZaloAdsChangeCampaignStatusRequest, options?: RequestOptions): Promise<ZaloAdsChangeCampaignStatusResponse>;
|
|
@@ -3540,6 +3667,8 @@ declare class ZaloCampaignsService {
|
|
|
3540
3667
|
getApiSpellCheckV2(request: ZaloAdsGetApiSpellCheckV2Request, options?: RequestOptions): Promise<ZaloAdsGetApiSpellCheckV2Response>;
|
|
3541
3668
|
getZaapiCheckcamphasmanyads(request?: ZaloAdsGetZaapiCheckcamphasmanyadsRequest, options?: RequestOptions): Promise<ZaloAdsGetZaapiCheckcamphasmanyadsResponse>;
|
|
3542
3669
|
getZaapiGetadsfromcampaignid(request?: ZaloAdsGetZaapiGetadsfromcampaignidRequest, options?: RequestOptions): Promise<ZaloAdsGetZaapiGetadsfromcampaignidResponse>;
|
|
3670
|
+
/** Alias lấy danh sách quảng cáo của chiến dịch kèm metadata extend và extra.appliedRuleInfo */
|
|
3671
|
+
getAdsFromCampaignId(request?: ZaloAdsGetZaapiGetadsfromcampaignidRequest, options?: RequestOptions): Promise<ZaloAdsGetZaapiGetadsfromcampaignidResponse>;
|
|
3543
3672
|
getZaapiGetallpages(request?: ZaloAdsGetZaapiGetallpagesRequest, options?: RequestOptions): Promise<ZaloAdsGetZaapiGetallpagesResponse>;
|
|
3544
3673
|
getAllPages(request?: ZaloAdsGetZaapiGetallpagesRequest, options?: RequestOptions): Promise<ZaloAdsGetZaapiGetallpagesResponse>;
|
|
3545
3674
|
getZaapiGetownedarticles(request: ZaloAdsGetZaapiGetownedarticlesRequest, options?: RequestOptions): Promise<ZaloAdsGetZaapiGetownedarticlesResponse>;
|
|
@@ -3583,6 +3712,11 @@ declare class ZaloCampaignsService {
|
|
|
3583
3712
|
* @param timeoutMs Thời gian chờ tối đa (mặc định: 15.000ms = 15 giây).
|
|
3584
3713
|
*/
|
|
3585
3714
|
checkSpellV3AndWait(request: ZaloAdsCreateSpellCheckV3JobRequest, pollIntervalMs?: number, timeoutMs?: number, options?: RequestOptions): Promise<ZaloAdsGetSpellCheckV3JobResponse>;
|
|
3715
|
+
/**
|
|
3716
|
+
* Nhân bản (sao chép / duplicate) một mẫu quảng cáo đã tồn tại trên Zalo Ads (POST /zaapi/DuplicateAd).
|
|
3717
|
+
* Giúp tạo nhanh một bản sao Ad mới trong cùng chiến dịch để thực hiện A/B testing.
|
|
3718
|
+
*/
|
|
3719
|
+
duplicateAd(request: ZaloAdsDuplicateAdRequest, options?: RequestOptions): Promise<ZaloAdsDuplicateAdResponse>;
|
|
3586
3720
|
}
|
|
3587
3721
|
|
|
3588
3722
|
/**
|
|
@@ -3687,6 +3821,8 @@ declare class ZaloReportsService {
|
|
|
3687
3821
|
getUniqueUserReport(...args: Parameters<this["getReportapiV2UniqueUser"]>): ReturnType<this["getReportapiV2UniqueUser"]>;
|
|
3688
3822
|
/** Báo cáo chiến dịch theo ngày/tháng (Legacy ZAAPI) */
|
|
3689
3823
|
getCampaignReportLegacy(...args: Parameters<this["getZaapiCampaignReportcampaign"]>): ReturnType<this["getZaapiCampaignReportcampaign"]>;
|
|
3824
|
+
/** Xuất và tải trực tiếp tệp tin Excel (.xlsx / Blob) báo cáo hiệu quả quảng cáo (POST /api/collect) */
|
|
3825
|
+
downloadReport(request: ZaloAdsDownloadReportRequest, options?: RequestOptions): Promise<Blob>;
|
|
3690
3826
|
}
|
|
3691
3827
|
|
|
3692
3828
|
/**
|
|
@@ -5211,4 +5347,91 @@ declare const ZaloAudiencesValidator: {
|
|
|
5211
5347
|
readonly estimateAudience: typeof validateEstimateAudienceRequest;
|
|
5212
5348
|
};
|
|
5213
5349
|
|
|
5214
|
-
export { ALL_ZALO_ADS_DOMAINS, type BodyType, type FileDownloadResponse, type FileInput, type HttpMethod, type MediaValidationResult, MemoryZaloSessionStore, type MemoryZaloSessionStoreOptions, type OperationDefinition, RedisZaloSessionStore, type RedisZaloSessionStoreOptions, type RequestOptions, TieredZaloSessionStore, type TieredZaloSessionStoreOptions, type ValidateImageInput, type ValidateVideoInput, type ValidationResult, ZaloAccountService, type ZaloAdsAccessorItemDto, type ZaloAdsAccountAgencyInfoDto, ZaloAdsIntegrationManager as ZaloAdsAccountPool, type ZaloAdsAdAppInfoSettingsDto, type ZaloAdsAdImageSettingsDto, type ZaloAdsAdInfoSettingsDto, type ZaloAdsAdMultiImageItemDto, type ZaloAdsAdMutationResultDto, type ZaloAdsAdPriceSettingsDto, type ZaloAdsAdReportItemDto, type ZaloAdsAdSettingsDto, type ZaloAdsAdTargetingSettingsDto, type ZaloAdsAdUpdatePayloadDto, type ZaloAdsAdZVideoSettingsDto, type ZaloAdsAutomatedRuleActionDto, type ZaloAdsAutomatedRuleConditionDto, type ZaloAdsAutomatedRuleScheduleDto, type ZaloAdsCampaignCreatePayloadDto, type ZaloAdsCampaignReportItemDto, type ZaloAdsChangeAutomatedRuleStatusRequest, type ZaloAdsChangeAutomatedRuleStatusResponse, type ZaloAdsChangeCampaignStatusRequest, type ZaloAdsChangeCampaignStatusResponse, type ZaloAdsClientRequest, type ZaloAdsCommerceFormAudienceTargetingDto, type ZaloAdsConversionElementSelectorDto, type ZaloAdsConversionItemDto, type ZaloAdsConversionNameItemDto, type ZaloAdsCreateArticleCampaignRequest, type ZaloAdsCreateArticleCampaignResponse, type ZaloAdsCreateAutomatedRuleRequest, type ZaloAdsCreateAutomatedRuleResponse, type ZaloAdsCreateCommerceCampaignRequest, type ZaloAdsCreateCommerceCampaignResponse, type ZaloAdsCreateCommerceFormAudienceRequest, type ZaloAdsCreateCommerceFormAudienceResponse, type ZaloAdsCreateConversionRequest, type ZaloAdsCreateConversionResponse, type ZaloAdsCreateCustomAudienceRequest, type ZaloAdsCreateCustomAudienceResponse, type ZaloAdsCreateDisplayCampaignRequest, type ZaloAdsCreateDisplayCampaignResponse, type ZaloAdsCreateEcommerceCampaignRequest, type ZaloAdsCreateEcommerceCampaignResponse, ZaloAdsCreateFlowRequest, ZaloAdsCreateFlowResponse, type ZaloAdsCreateFormCampaignRequest, type ZaloAdsCreateFormCampaignResponse, type ZaloAdsCreateFormEventAudienceRequest, type ZaloAdsCreateFormEventAudienceResponse, type ZaloAdsCreateFormLeadAudienceRequest, type ZaloAdsCreateFormLeadAudienceResponse, type ZaloAdsCreateFormPayloadDto, type ZaloAdsCreateFormRequest, type ZaloAdsCreateFormResponse, type ZaloAdsCreateLeadSignalAudienceRequest, type ZaloAdsCreateLeadSignalAudienceResponse, type ZaloAdsCreateLookalikeAudienceRequest, type ZaloAdsCreateLookalikeAudienceResponse, type ZaloAdsCreateMessageCampaignRequest, type ZaloAdsCreateMessageCampaignResponse, type ZaloAdsCreateMessageOaEventAudienceRequest, type ZaloAdsCreateMessageOaEventAudienceResponse, type ZaloAdsCreateMessageOaLeadAudienceRequest, type ZaloAdsCreateMessageOaLeadAudienceResponse, type ZaloAdsCreateMessagePersonalEventAudienceRequest, type ZaloAdsCreateMessagePersonalEventAudienceResponse, type ZaloAdsCreateOaCampaignRequest, type ZaloAdsCreateOaCampaignResponse, type ZaloAdsCreateOfficialAccountCampaignRequest, type ZaloAdsCreateOfficialAccountCampaignResponse, type ZaloAdsCreatePhoneAudienceRequest, type ZaloAdsCreatePhoneAudienceResponse, ZaloAdsCreatePostCampaignRequest, ZaloAdsCreatePostCampaignResponse, type ZaloAdsCreateSavedAudienceRequest, type ZaloAdsCreateSavedAudienceResponse, type ZaloAdsCreateSpellCheckV3JobRequest, type ZaloAdsCreateSpellCheckV3JobResponse, type ZaloAdsCreateVideoCampaignRequest, type ZaloAdsCreateVideoCampaignResponse, type ZaloAdsCreateWebsiteCampaignRequest, type ZaloAdsCreateWebsiteCampaignResponse, type ZaloAdsDeleteAutomatedRuleRequest, type ZaloAdsDeleteAutomatedRuleResponse, type ZaloAdsDeleteCampaignRequest, type ZaloAdsDeleteCampaignResponse, type ZaloAdsDeleteConversionRequest, type ZaloAdsDeleteConversionResponse, type ZaloAdsDeleteCustomAudienceRequest, type ZaloAdsDeleteCustomAudienceResponse, type ZaloAdsDeleteCustomReportRequest, type ZaloAdsDeleteCustomReportResponse, type ZaloAdsDomain, type ZaloAdsFileGroupItemDto, ZaloAdsFlowButtonDto, ZaloAdsFlowChildMessageDto, ZaloAdsFlowMessageDto, type ZaloAdsFormAnswerDto, type ZaloAdsFormEventAudienceTargetingDto, type ZaloAdsFormLeadAudienceTargetingDto, type ZaloAdsFormQuestionDto, type ZaloAdsFormQuestionUiDto, type ZaloAdsFormSectionContentDto, type ZaloAdsFormSectionDto, type ZaloAdsFormSectionImageItemDto, type ZaloAdsFormSectionTableItemDto, type ZaloAdsGetAdByIdRequest, type ZaloAdsGetAdByIdResponse, type ZaloAdsGetAdChangeLogRequest, type ZaloAdsGetAdChangeLogResponse, type ZaloAdsGetApiAdGetlistadadvancetargetingRequest, type ZaloAdsGetApiAdGetlistadadvancetargetingResponse, type ZaloAdsGetApiBaAccountAllaccessorsRequest, type ZaloAdsGetApiBaAccountAllaccessorsResponse, type ZaloAdsGetApiBaAccountAllgrantedmembersRequest, type ZaloAdsGetApiBaAccountAllgrantedmembersResponse, type ZaloAdsGetApiConversionAllRequest, type ZaloAdsGetApiConversionAllResponse, type ZaloAdsGetApiConversionStandardEventsRequest, type ZaloAdsGetApiConversionStandardEventsResponse, type ZaloAdsGetApiCustomAudienceAllRequest, type ZaloAdsGetApiCustomAudienceAllResponse, type ZaloAdsGetApiFilegroupsRequest, type ZaloAdsGetApiFilegroupsResponse, type ZaloAdsGetApiLpNewsRequest, type ZaloAdsGetApiLpNewsResponse, type ZaloAdsGetApiMediaItemsRequest, type ZaloAdsGetApiMediaItemsResponse, type ZaloAdsGetApiMemberFilesRequest, type ZaloAdsGetApiMemberFilesResponse, type ZaloAdsGetApiNotifiesHeaderRequest, type ZaloAdsGetApiNotifiesHeaderResponse, type ZaloAdsGetApiPaymentTransactionHistoryRequest, type ZaloAdsGetApiPaymentTransactionHistoryResponse, type ZaloAdsGetApiPlaceGetalldistrictsRequest, type ZaloAdsGetApiPlaceGetalldistrictsResponse, type ZaloAdsGetApiSpellCheckV2Request, type ZaloAdsGetApiSpellCheckV2Response, type ZaloAdsGetApiWhoamiRequest, type ZaloAdsGetApiWhoamiResponse, type ZaloAdsGetAutomatedRuleHistoryRequest, type ZaloAdsGetAutomatedRuleHistoryResponse, type ZaloAdsGetDemographicsReportRequest, type ZaloAdsGetDemographicsReportResponse, type ZaloAdsGetReportOverviewRequest, type ZaloAdsGetReportOverviewResponse, type ZaloAdsGetReportapiV2AdsRequest, type ZaloAdsGetReportapiV2AdsResponse, type ZaloAdsGetReportapiV2CampaignsRequest, type ZaloAdsGetReportapiV2CampaignsResponse, type ZaloAdsGetReportapiV2UniqueUserRequest, type ZaloAdsGetReportapiV2UniqueUserResponse, type ZaloAdsGetReportapiV3CampaignsRequest, type ZaloAdsGetReportapiV3CampaignsResponse, type ZaloAdsGetSpellCheckV3JobRequest, type ZaloAdsGetSpellCheckV3JobResponse, type ZaloAdsGetZaapiCampaignReportcampaignRequest, type ZaloAdsGetZaapiCampaignReportcampaignResponse, type ZaloAdsGetZaapiCheckcamphasmanyadsRequest, type ZaloAdsGetZaapiCheckcamphasmanyadsResponse, type ZaloAdsGetZaapiGetadsfromcampaignidRequest, type ZaloAdsGetZaapiGetadsfromcampaignidResponse, type ZaloAdsGetZaapiGetallpagesRequest, type ZaloAdsGetZaapiGetallpagesResponse, type ZaloAdsGetZaapiGetownedarticlesRequest, type ZaloAdsGetZaapiGetownedarticlesResponse, type ZaloAdsGetZaapiGetownedpagesRequest, type ZaloAdsGetZaapiGetownedpagesResponse, type ZaloAdsGrantedMemberItemDto, ZaloAdsIntegrationManager, type ZaloAdsIntegrationManagerOptions, type ZaloAdsLeadSignalAudienceTargetingDto, type ZaloAdsLeadSignalOaItem, type ZaloAdsListAgencyCustomersWithBudgetRequest, type ZaloAdsListAgencyCustomersWithBudgetResponse, type ZaloAdsListAutomatedRulesRequest, type ZaloAdsListAutomatedRulesResponse, type ZaloAdsListConversionNamesRequest, type ZaloAdsListConversionNamesResponse, type ZaloAdsListCustomReportsRequest, type ZaloAdsListCustomReportsResponse, type ZaloAdsListFlowsByOfficialAccountRequest, type ZaloAdsListFlowsByOfficialAccountResponse, type ZaloAdsListFormsByOfficialAccountRequest, type ZaloAdsListFormsByOfficialAccountResponse, type ZaloAdsListLeadSignalOasResponse, type ZaloAdsListMiniPagesByTemplateRequest, type ZaloAdsListMiniPagesByTemplateResponse, type ZaloAdsListPersonalPixelLabelsRequest, type ZaloAdsListPersonalPixelLabelsResponse, type ZaloAdsListReportFiltersRequest, type ZaloAdsListReportFiltersResponse, type ZaloAdsLookalikeAudienceTargetingDto, type ZaloAdsLpNewsButtonDto, type ZaloAdsLpNewsItemDto, type ZaloAdsMediaSavePayloadDto, type ZaloAdsMediaSaveSettingsDto, type ZaloAdsMemberFileItemDto, ZaloAdsMessageAdUpdateDataDto, type ZaloAdsMessageOaEventAudienceTargetingDto, type ZaloAdsMessageOaLeadAudienceTargetingDto, type ZaloAdsMessagePersonalEventAudienceTargetingDto, type ZaloAdsNotifyHeaderItemDto, type ZaloAdsOwnedArticleItemDto, type ZaloAdsOwnedPageExtraInfoDto, type ZaloAdsOwnedPageItemDto, type ZaloAdsOwnedPageLocationDto, type ZaloAdsPageConfigDto, type ZaloAdsPaymentTransactionItemDto, type ZaloAdsPhoneAudienceTargetingDto, type ZaloAdsPostApiAdEstimateaudienceRequest, type ZaloAdsPostApiAdEstimateaudienceResponse, type ZaloAdsPostApiMediaSaveRequest, type ZaloAdsPostApiMediaSaveResponse, type ZaloAdsPostApiMemberUploadImageRequest, type ZaloAdsPostApiMemberUploadImageResponse, type ZaloAdsPostZaapiDeleteadRequest, type ZaloAdsPostZaapiDeleteadResponse, type ZaloAdsRenameCampaignRequest, type ZaloAdsRenameCampaignResponse, ZaloAdsSdk, type ZaloAdsSdkOptions, ZaloAdsService, type ZaloAdsSpellCheckIssueDto, type ZaloAdsSpellCheckViolationDto, type ZaloAdsStandardEventItemDto, type ZaloAdsUniqueUserReportDataDto, type ZaloAdsUpdateArticleAdRequest, type ZaloAdsUpdateArticleAdResponse, type ZaloAdsUpdateAutomatedRuleRequest, type ZaloAdsUpdateAutomatedRuleResponse, type ZaloAdsUpdateCommerceAdRequest, type ZaloAdsUpdateCommerceAdResponse, type ZaloAdsUpdateDisplayAdRequest, type ZaloAdsUpdateDisplayAdResponse, type ZaloAdsUpdateEcommerceAdRequest, type ZaloAdsUpdateEcommerceAdResponse, type ZaloAdsUpdateFlowRequest, type ZaloAdsUpdateFlowResponse, type ZaloAdsUpdateFormAdRequest, type ZaloAdsUpdateFormAdResponse, ZaloAdsUpdateMessageAdRequest, ZaloAdsUpdateMessageAdResponse, type ZaloAdsUpdateNewAdsRequest, type ZaloAdsUpdateNewAdsResponse, type ZaloAdsUpdateOaAdRequest, type ZaloAdsUpdateOaAdResponse, type ZaloAdsUpdateOfficialAccountAdRequest, type ZaloAdsUpdateOfficialAccountAdResponse, type ZaloAdsUpdatePostAdRequest, type ZaloAdsUpdatePostAdResponse, ZaloAdsUpdateVideoAdRequest, ZaloAdsUpdateVideoAdResponse, type ZaloAdsUpdateWebsiteAdRequest, type ZaloAdsUpdateWebsiteAdResponse, type ZaloAdsUploadCustomAudiencePhoneListRequest, type ZaloAdsUploadCustomAudiencePhoneListResponse, type ZaloAdsUploadVideoRequest, type ZaloAdsUploadVideoResponse, type ZaloAdsUpsertCustomReportRequest, type ZaloAdsUpsertCustomReportResponse, type ZaloAdsWhoamiProfile, type ZaloAdsZaapiCampaignReportItemDto, ZaloAudiencesService, ZaloAudiencesValidator, type ZaloAuthDomain, ZaloAuthManager, ZaloAutomatedRulesService, ZaloCampaignsService, type ZaloChatWidgetGetChatWidgetLoginConfigRequest, type ZaloChatWidgetGetChatWidgetLoginConfigResponse, type ZaloChatWidgetGetLoginConfigRequest, type ZaloChatWidgetGetLoginConfigResponse, ZaloChatWidgetService, ZaloConversionsService, type ZaloCreateFormCleanPayload, type ZaloCreateFormRequestInput, type ZaloDomainSession, ZaloFlowsService, ZaloFlowsValidator, type ZaloFormQuestionAnswerInput, type ZaloFormQuestionInput, type ZaloFormSectionInput, type ZaloFormSessionProfile, type ZaloFormsAudienceExclusionTargetingItem, type ZaloFormsAuthSessionOaItem, type ZaloFormsConversationLeadItem, type ZaloFormsDisableFormLeadNotificationRequest, type ZaloFormsDisableFormLeadNotificationResponse, type ZaloFormsEnableFormLeadNotificationRequest, type ZaloFormsEnableFormLeadNotificationResponse, type ZaloFormsExportFormLeadReportRequest, type ZaloFormsExportFormLeadReportResponse, type ZaloFormsGetAuthSessionResponse, type ZaloFormsLeadAnswerItem, type ZaloFormsLeadItem, type ZaloFormsListAudienceExclusionTargetingRequest, type ZaloFormsListAudienceExclusionTargetingResponse, type ZaloFormsListConversationLeadsRequest, type ZaloFormsListConversationLeadsResponse, type ZaloFormsListFormLeadsRequest, type ZaloFormsListFormLeadsResponse, type ZaloFormsListManagedFormsByOfficialAccountRequest, type ZaloFormsListManagedFormsByOfficialAccountResponse, type ZaloFormsListScenariosByOfficialAccountRequest, type ZaloFormsListScenariosByOfficialAccountResponse, type ZaloFormsListSimpleFormsByOfficialAccountRequest, type ZaloFormsListSimpleFormsByOfficialAccountResponse, type ZaloFormsScenarioItem, ZaloFormsService, type ZaloFormsTrackManageFormEventRequest, type ZaloFormsTrackManageFormEventResponse, type ZaloFormsUpdateFormLeadNotificationIntervalRequest, type ZaloFormsUpdateFormLeadNotificationIntervalResponse, ZaloFormsValidator, type ZaloInstantPageActive, ZaloInstantPageBlockType, type ZaloInstantPageStatus, type ZaloInstantPagesCloneInstantPageRequest, type ZaloInstantPagesCloneInstantPageResponse, type ZaloInstantPagesFormRecordItem, type ZaloInstantPagesGetInstantPageDetailRequest, type ZaloInstantPagesGetInstantPageDetailResponse, type ZaloInstantPagesGetInstantPageSharedUserRequest, type ZaloInstantPagesGetInstantPageSharedUserResponse, type ZaloInstantPagesListInstantPageEditHistoryRequest, type ZaloInstantPagesListInstantPageEditHistoryResponse, type ZaloInstantPagesListInstantPageFormRecordsRequest, type ZaloInstantPagesListInstantPageFormRecordsResponse, type ZaloInstantPagesListInstantPageLeadsRequest, type ZaloInstantPagesListInstantPageLeadsResponse, type ZaloInstantPagesListInstantPageSharesRequest, type ZaloInstantPagesListInstantPageSharesResponse, type ZaloInstantPagesListInstantPageUsersRequest, type ZaloInstantPagesListInstantPageUsersResponse, type ZaloInstantPagesListMiniPageTemplatesRequest, type ZaloInstantPagesListMiniPageTemplatesResponse, type ZaloInstantPagesListOfficialAccountsRequest, type ZaloInstantPagesListOfficialAccountsResponse, type ZaloInstantPagesOfficialAccountItem, type ZaloInstantPagesSearchInstantPagesRequest, type ZaloInstantPagesSearchInstantPagesResponse, ZaloInstantPagesService, type ZaloInstantPagesUpdateInstantPageRequest, type ZaloInstantPagesUpdateInstantPageResponse, type ZaloInstantPagesUpsertInstantPageFormRequest, type ZaloInstantPagesUpsertInstantPageFormResponse, ZaloInstantPagesValidator, type ZaloIntegrationCredentials, type ZaloIntegrationVerificationResult, ZaloMediaService, type ZaloPlaySessionPayload, type ZaloProfileAdsAdministrativeItem, type ZaloProfileAdsCreateOaPageRequest, type ZaloProfileAdsCreateOaPageResponse, type ZaloProfileAdsGetDistrictsRequest, type ZaloProfileAdsGetDistrictsResponse, type ZaloProfileAdsGetProvincesResponse, type ZaloProfileAdsProvinceId, ZaloProfileAdsService, type ZaloProfileAdsSubCategoryId, type ZaloProfileAdsUploadOaAvatarRequest, type ZaloProfileAdsUploadOaAvatarResponse, type ZaloProfileAdsUploadOaCoverRequest, type ZaloProfileAdsUploadOaCoverResponse, type ZaloRedisLikeClient, ZaloReportsService, type ZaloSdkAuth, type ZaloSdkAuthContext, ZaloSdkError, ZaloSdkHttpClient, type ZaloSessionStore, type ZaloSsoAuthOptions, type ZaloUploadAndSaveImageRequest, type ZaloUploadAndSaveImageResult, type ZaloUploadAndSaveVideoRequest, type ZaloUploadAndSaveVideoResult, type ZaloWidgetAPIGetOfficialAccountInfoRequest, type ZaloWidgetAPIGetOfficialAccountInfoResponse, type ZaloWidgetAPIGetWidgetUserProfileRequest, type ZaloWidgetAPIGetWidgetUserProfileResponse, type ZaloWidgetAPIListStickerCategoriesRequest, type ZaloWidgetAPIListStickerCategoriesResponse, type ZaloWidgetAPIListStickersByCategoryRequest, type ZaloWidgetAPIListStickersByCategoryResponse, ZaloWidgetApiService, computeZpsidFingerprint, createZaloSsoAuth, decodePlaySessionJwt, ZaloAdsSdk as default, defaultSharedMemorySessionStore, deriveAccountKeyFromZpsid, parseZaloCookieInput, validateCloneInstantPageRequest, validateCreateFlowRequest, validateCreateFormEventAudienceRequest, validateCreateFormRequest, validateCreateLookalikeAudienceRequest, validateCreateMessageOaEventAudienceRequest, validateCreateMessagePersonalEventAudienceRequest, validateCreatePhoneAudienceRequest, validateCreateSavedAudienceRequest, validateEstimateAudienceRequest, validateGetInstantPageDetailRequest, validateGetInstantPageSharedUserRequest, validateListFlowsByOfficialAccountRequest, validateListFormLeadsRequest, validateListFormsByOfficialAccountRequest, validateListInstantPageEditHistoryRequest, validateListInstantPageFormRecordsRequest, validateListInstantPageLeadsRequest, validateListInstantPageSharesRequest, validateListInstantPageUsersRequest, validateListMiniPageTemplatesRequest, validateListOfficialAccountsRequest, validateSearchInstantPagesRequest, validateUpdateFlowRequest, validateUpdateInstantPageRequest, validateUpsertInstantPageFormRequest };
|
|
5350
|
+
/**
|
|
5351
|
+
* Bộ kiểm tra tính hợp lệ dữ liệu (Request Validators) cho các API Chiến dịch & Quảng cáo Zalo Ads:
|
|
5352
|
+
* 1. Khởi tạo 8 loại chiến dịch (Website, Form, Message, OA, Video, Commerce, Article, Display)
|
|
5353
|
+
* 2. Thiết lập & cập nhật chi tiết mẫu quảng cáo (Ad Types: 5, 18, 30, 2, 11, 28, 3, 21)
|
|
5354
|
+
* 3. Đổi tên, thay đổi trạng thái, xóa chiến dịch và xóa quảng cáo
|
|
5355
|
+
*
|
|
5356
|
+
* Tích hợp toàn bộ quy chuẩn giao diện (UI reverse engineering), giới hạn độ dài ký tự,
|
|
5357
|
+
* quy chuẩn media, mã ID ngầm và bẫy kỹ thuật đúc kết từ live test trên máy chủ Zalo Ads.
|
|
5358
|
+
*/
|
|
5359
|
+
|
|
5360
|
+
interface CampaignValidationResult<T = unknown> {
|
|
5361
|
+
isValid: boolean;
|
|
5362
|
+
errors: string[];
|
|
5363
|
+
warnings: string[];
|
|
5364
|
+
data?: T;
|
|
5365
|
+
}
|
|
5366
|
+
interface ValidateCampaignOptions {
|
|
5367
|
+
strictMode?: boolean;
|
|
5368
|
+
}
|
|
5369
|
+
interface ValidateAdOptions {
|
|
5370
|
+
strictMode?: boolean;
|
|
5371
|
+
}
|
|
5372
|
+
/** Danh sách mã CampaignType hợp lệ trên Zalo Ads */
|
|
5373
|
+
declare const VALID_CAMPAIGN_TYPES: {
|
|
5374
|
+
readonly WEBSITE: 6;
|
|
5375
|
+
readonly FORM: 17;
|
|
5376
|
+
readonly MESSAGE: 18;
|
|
5377
|
+
readonly OA: 3;
|
|
5378
|
+
readonly VIDEO: 14;
|
|
5379
|
+
readonly COMMERCE: 22;
|
|
5380
|
+
readonly ARTICLE: 4;
|
|
5381
|
+
readonly DISPLAY: 20;
|
|
5382
|
+
};
|
|
5383
|
+
/** Danh sách mã AdType hợp lệ thực tế do máy chủ Zalo Ads xử lý */
|
|
5384
|
+
declare const VALID_AD_TYPES: {
|
|
5385
|
+
readonly WEBSITE: 5;
|
|
5386
|
+
readonly FORM: 18;
|
|
5387
|
+
readonly MESSAGE: 30;
|
|
5388
|
+
readonly OA: 2;
|
|
5389
|
+
readonly VIDEO: 11;
|
|
5390
|
+
readonly COMMERCE: 28;
|
|
5391
|
+
readonly ARTICLE: 3;
|
|
5392
|
+
readonly DISPLAY: 21;
|
|
5393
|
+
};
|
|
5394
|
+
/** Danh sách CTA hợp lệ cho từng loại Ad */
|
|
5395
|
+
declare const ALLOWED_CTAS_PER_AD_TYPE: Record<number, number[]>;
|
|
5396
|
+
/**
|
|
5397
|
+
* Kiểm tra tính hợp lệ payload tạo mới Chiến dịch Zalo Ads (POST /zaapi/addNewCamp).
|
|
5398
|
+
*/
|
|
5399
|
+
declare function validateCreateCampaignPayload(payload: Partial<ZaloAdsCampaignCreatePayloadDto>, options?: ValidateCampaignOptions): CampaignValidationResult;
|
|
5400
|
+
/**
|
|
5401
|
+
* Kiểm tra tính hợp lệ payload Cập nhật Mẫu Quảng cáo (POST /zaapi/UpdateAd).
|
|
5402
|
+
*/
|
|
5403
|
+
declare function validateUpdateAdPayload(payload: Partial<ZaloAdsAdUpdatePayloadDto>, options?: ValidateAdOptions): CampaignValidationResult;
|
|
5404
|
+
/**
|
|
5405
|
+
* Kiểm tra tính hợp lệ của tham số đổi tên chiến dịch (POST /api/campaign/change-name).
|
|
5406
|
+
*/
|
|
5407
|
+
declare function validateRenameCampaignParams(params: {
|
|
5408
|
+
campid?: number;
|
|
5409
|
+
campaignId?: number;
|
|
5410
|
+
newname?: string;
|
|
5411
|
+
newName?: string;
|
|
5412
|
+
name?: string;
|
|
5413
|
+
}): CampaignValidationResult;
|
|
5414
|
+
/**
|
|
5415
|
+
* Kiểm tra tính hợp lệ của trạng thái thay đổi chiến dịch (POST /api/campaign/change-status).
|
|
5416
|
+
*/
|
|
5417
|
+
declare function validateChangeCampaignStatusParams(params: {
|
|
5418
|
+
campaignId: number;
|
|
5419
|
+
status: number;
|
|
5420
|
+
isDraft?: boolean;
|
|
5421
|
+
}): CampaignValidationResult;
|
|
5422
|
+
/**
|
|
5423
|
+
* Kiểm tra tính hợp lệ của tham số nhân bản quảng cáo (POST /zaapi/DuplicateAd).
|
|
5424
|
+
*/
|
|
5425
|
+
declare function validateDuplicateAdParams(params: {
|
|
5426
|
+
adid?: number;
|
|
5427
|
+
adId?: number;
|
|
5428
|
+
}): CampaignValidationResult;
|
|
5429
|
+
declare const ZaloCampaignsValidator: {
|
|
5430
|
+
createCampaign: typeof validateCreateCampaignPayload;
|
|
5431
|
+
updateAd: typeof validateUpdateAdPayload;
|
|
5432
|
+
renameCampaign: typeof validateRenameCampaignParams;
|
|
5433
|
+
changeStatus: typeof validateChangeCampaignStatusParams;
|
|
5434
|
+
duplicateAd: typeof validateDuplicateAdParams;
|
|
5435
|
+
};
|
|
5436
|
+
|
|
5437
|
+
export { ALLOWED_CTAS_PER_AD_TYPE, ALL_ZALO_ADS_DOMAINS, type BodyType, type CampaignValidationResult, type FileDownloadResponse, type FileInput, type HttpMethod, type MediaValidationResult, MemoryZaloSessionStore, type MemoryZaloSessionStoreOptions, type OperationDefinition, RedisZaloSessionStore, type RedisZaloSessionStoreOptions, type RequestOptions, TieredZaloSessionStore, type TieredZaloSessionStoreOptions, VALID_AD_TYPES, VALID_CAMPAIGN_TYPES, type ValidateAdOptions, type ValidateCampaignOptions, type ValidateImageInput, type ValidateVideoInput, type ValidationResult, ZaloAccountService, type ZaloAdsAccessorItemDto, type ZaloAdsAccountAgencyInfoDto, ZaloAdsIntegrationManager as ZaloAdsAccountPool, ZaloAdsActionType, type ZaloAdsAdAppInfoSettingsDto, type ZaloAdsAdImageSettingsDto, type ZaloAdsAdInfoSettingsDto, type ZaloAdsAdMultiImageItemDto, type ZaloAdsAdMutationResultDto, type ZaloAdsAdPriceSettingsDto, type ZaloAdsAdReportItemDto, type ZaloAdsAdSettingsDto, type ZaloAdsAdTargetingSettingsDto, type ZaloAdsAdUpdatePayloadDto, type ZaloAdsAdZVideoSettingsDto, ZaloAdsAgeRangeId, type ZaloAdsAutomatedRuleActionDto, type ZaloAdsAutomatedRuleConditionDto, type ZaloAdsAutomatedRuleScheduleDto, type ZaloAdsCampaignCreatePayloadDto, type ZaloAdsCampaignDetailExtendDto, type ZaloAdsCampaignReportItemDto, type ZaloAdsChangeAutomatedRuleStatusRequest, type ZaloAdsChangeAutomatedRuleStatusResponse, type ZaloAdsChangeCampaignStatusRequest, type ZaloAdsChangeCampaignStatusResponse, type ZaloAdsClientRequest, type ZaloAdsCommerceFormAudienceTargetingDto, type ZaloAdsConversionElementSelectorDto, type ZaloAdsConversionItemDto, type ZaloAdsConversionNameItemDto, type ZaloAdsCreateArticleCampaignRequest, type ZaloAdsCreateArticleCampaignResponse, type ZaloAdsCreateAutomatedRuleRequest, type ZaloAdsCreateAutomatedRuleResponse, type ZaloAdsCreateCommerceCampaignRequest, type ZaloAdsCreateCommerceCampaignResponse, type ZaloAdsCreateCommerceFormAudienceRequest, type ZaloAdsCreateCommerceFormAudienceResponse, type ZaloAdsCreateConversionRequest, type ZaloAdsCreateConversionResponse, type ZaloAdsCreateCustomAudienceRequest, type ZaloAdsCreateCustomAudienceResponse, type ZaloAdsCreateDisplayCampaignRequest, type ZaloAdsCreateDisplayCampaignResponse, type ZaloAdsCreateEcommerceCampaignRequest, type ZaloAdsCreateEcommerceCampaignResponse, ZaloAdsCreateFlowRequest, ZaloAdsCreateFlowResponse, type ZaloAdsCreateFormCampaignRequest, type ZaloAdsCreateFormCampaignResponse, type ZaloAdsCreateFormEventAudienceRequest, type ZaloAdsCreateFormEventAudienceResponse, type ZaloAdsCreateFormLeadAudienceRequest, type ZaloAdsCreateFormLeadAudienceResponse, type ZaloAdsCreateFormPayloadDto, type ZaloAdsCreateFormRequest, type ZaloAdsCreateFormResponse, type ZaloAdsCreateLeadSignalAudienceRequest, type ZaloAdsCreateLeadSignalAudienceResponse, type ZaloAdsCreateLookalikeAudienceRequest, type ZaloAdsCreateLookalikeAudienceResponse, type ZaloAdsCreateMessageCampaignRequest, type ZaloAdsCreateMessageCampaignResponse, type ZaloAdsCreateMessageOaEventAudienceRequest, type ZaloAdsCreateMessageOaEventAudienceResponse, type ZaloAdsCreateMessageOaLeadAudienceRequest, type ZaloAdsCreateMessageOaLeadAudienceResponse, type ZaloAdsCreateMessagePersonalEventAudienceRequest, type ZaloAdsCreateMessagePersonalEventAudienceResponse, type ZaloAdsCreateOaCampaignRequest, type ZaloAdsCreateOaCampaignResponse, type ZaloAdsCreateOfficialAccountCampaignRequest, type ZaloAdsCreateOfficialAccountCampaignResponse, type ZaloAdsCreatePhoneAudienceRequest, type ZaloAdsCreatePhoneAudienceResponse, ZaloAdsCreatePostCampaignRequest, ZaloAdsCreatePostCampaignResponse, type ZaloAdsCreateSavedAudienceRequest, type ZaloAdsCreateSavedAudienceResponse, type ZaloAdsCreateSpellCheckV3JobRequest, type ZaloAdsCreateSpellCheckV3JobResponse, type ZaloAdsCreateVideoCampaignRequest, type ZaloAdsCreateVideoCampaignResponse, type ZaloAdsCreateWebsiteCampaignRequest, type ZaloAdsCreateWebsiteCampaignResponse, type ZaloAdsDeleteAutomatedRuleRequest, type ZaloAdsDeleteAutomatedRuleResponse, type ZaloAdsDeleteCampaignRequest, type ZaloAdsDeleteCampaignResponse, type ZaloAdsDeleteConversionRequest, type ZaloAdsDeleteConversionResponse, type ZaloAdsDeleteCustomAudienceRequest, type ZaloAdsDeleteCustomAudienceResponse, type ZaloAdsDeleteCustomReportRequest, type ZaloAdsDeleteCustomReportResponse, ZaloAdsDeliveryType, type ZaloAdsDomain, type ZaloAdsDownloadReportRequest, type ZaloAdsDownloadReportResponse, type ZaloAdsDuplicateAdRequest, type ZaloAdsDuplicateAdResponse, type ZaloAdsFileGroupItemDto, ZaloAdsFlowButtonDto, ZaloAdsFlowChildMessageDto, ZaloAdsFlowMessageDto, type ZaloAdsFormAnswerDto, type ZaloAdsFormEventAudienceTargetingDto, type ZaloAdsFormLeadAudienceTargetingDto, type ZaloAdsFormQuestionDto, type ZaloAdsFormQuestionUiDto, type ZaloAdsFormSectionContentDto, type ZaloAdsFormSectionDto, type ZaloAdsFormSectionImageItemDto, type ZaloAdsFormSectionTableItemDto, type ZaloAdsGetAdByIdRequest, type ZaloAdsGetAdByIdResponse, type ZaloAdsGetAdChangeLogRequest, type ZaloAdsGetAdChangeLogResponse, type ZaloAdsGetApiAdGetlistadadvancetargetingRequest, type ZaloAdsGetApiAdGetlistadadvancetargetingResponse, type ZaloAdsGetApiBaAccountAllaccessorsRequest, type ZaloAdsGetApiBaAccountAllaccessorsResponse, type ZaloAdsGetApiBaAccountAllgrantedmembersRequest, type ZaloAdsGetApiBaAccountAllgrantedmembersResponse, type ZaloAdsGetApiConversionAllRequest, type ZaloAdsGetApiConversionAllResponse, type ZaloAdsGetApiConversionStandardEventsRequest, type ZaloAdsGetApiConversionStandardEventsResponse, type ZaloAdsGetApiCustomAudienceAllRequest, type ZaloAdsGetApiCustomAudienceAllResponse, type ZaloAdsGetApiFilegroupsRequest, type ZaloAdsGetApiFilegroupsResponse, type ZaloAdsGetApiLpNewsRequest, type ZaloAdsGetApiLpNewsResponse, type ZaloAdsGetApiMediaItemsRequest, type ZaloAdsGetApiMediaItemsResponse, type ZaloAdsGetApiMemberFilesRequest, type ZaloAdsGetApiMemberFilesResponse, type ZaloAdsGetApiNotifiesHeaderRequest, type ZaloAdsGetApiNotifiesHeaderResponse, type ZaloAdsGetApiPaymentTransactionHistoryRequest, type ZaloAdsGetApiPaymentTransactionHistoryResponse, type ZaloAdsGetApiPlaceGetalldistrictsRequest, type ZaloAdsGetApiPlaceGetalldistrictsResponse, type ZaloAdsGetApiSpellCheckV2Request, type ZaloAdsGetApiSpellCheckV2Response, type ZaloAdsGetApiWhoamiRequest, type ZaloAdsGetApiWhoamiResponse, type ZaloAdsGetAutomatedRuleHistoryRequest, type ZaloAdsGetAutomatedRuleHistoryResponse, type ZaloAdsGetDemographicsReportRequest, type ZaloAdsGetDemographicsReportResponse, type ZaloAdsGetReportOverviewRequest, type ZaloAdsGetReportOverviewResponse, type ZaloAdsGetReportapiV2AdsRequest, type ZaloAdsGetReportapiV2AdsResponse, type ZaloAdsGetReportapiV2CampaignsRequest, type ZaloAdsGetReportapiV2CampaignsResponse, type ZaloAdsGetReportapiV2UniqueUserRequest, type ZaloAdsGetReportapiV2UniqueUserResponse, type ZaloAdsGetReportapiV3CampaignsRequest, type ZaloAdsGetReportapiV3CampaignsResponse, type ZaloAdsGetSpellCheckV3JobRequest, type ZaloAdsGetSpellCheckV3JobResponse, type ZaloAdsGetZaapiCampaignReportcampaignRequest, type ZaloAdsGetZaapiCampaignReportcampaignResponse, type ZaloAdsGetZaapiCheckcamphasmanyadsRequest, type ZaloAdsGetZaapiCheckcamphasmanyadsResponse, type ZaloAdsGetZaapiGetadsfromcampaignidRequest, type ZaloAdsGetZaapiGetadsfromcampaignidResponse, type ZaloAdsGetZaapiGetallpagesRequest, type ZaloAdsGetZaapiGetallpagesResponse, type ZaloAdsGetZaapiGetownedarticlesRequest, type ZaloAdsGetZaapiGetownedarticlesResponse, type ZaloAdsGetZaapiGetownedpagesRequest, type ZaloAdsGetZaapiGetownedpagesResponse, type ZaloAdsGrantedMemberItemDto, ZaloAdsIntegrationManager, type ZaloAdsIntegrationManagerOptions, type ZaloAdsLeadSignalAudienceTargetingDto, type ZaloAdsLeadSignalOaItem, type ZaloAdsListAgencyCustomersWithBudgetRequest, type ZaloAdsListAgencyCustomersWithBudgetResponse, type ZaloAdsListAutomatedRulesRequest, type ZaloAdsListAutomatedRulesResponse, type ZaloAdsListConversionNamesRequest, type ZaloAdsListConversionNamesResponse, type ZaloAdsListCustomReportsRequest, type ZaloAdsListCustomReportsResponse, type ZaloAdsListFlowsByOfficialAccountRequest, type ZaloAdsListFlowsByOfficialAccountResponse, type ZaloAdsListFormsByOfficialAccountRequest, type ZaloAdsListFormsByOfficialAccountResponse, type ZaloAdsListLeadSignalOasResponse, type ZaloAdsListMiniPagesByTemplateRequest, type ZaloAdsListMiniPagesByTemplateResponse, type ZaloAdsListPersonalPixelLabelsRequest, type ZaloAdsListPersonalPixelLabelsResponse, type ZaloAdsListReportFiltersRequest, type ZaloAdsListReportFiltersResponse, type ZaloAdsLookalikeAudienceTargetingDto, type ZaloAdsLpNewsButtonDto, type ZaloAdsLpNewsItemDto, type ZaloAdsMediaSavePayloadDto, type ZaloAdsMediaSaveSettingsDto, type ZaloAdsMemberFileItemDto, ZaloAdsMessageAdUpdateDataDto, type ZaloAdsMessageOaEventAudienceTargetingDto, type ZaloAdsMessageOaLeadAudienceTargetingDto, type ZaloAdsMessagePersonalEventAudienceTargetingDto, type ZaloAdsNotifyHeaderItemDto, ZaloAdsOsId, type ZaloAdsOwnedArticleItemDto, type ZaloAdsOwnedPageExtraInfoDto, type ZaloAdsOwnedPageItemDto, type ZaloAdsOwnedPageLocationDto, type ZaloAdsPageConfigDto, type ZaloAdsPaymentTransactionItemDto, type ZaloAdsPhoneAudienceTargetingDto, type ZaloAdsPostApiAdEstimateaudienceRequest, type ZaloAdsPostApiAdEstimateaudienceResponse, type ZaloAdsPostApiMediaSaveRequest, type ZaloAdsPostApiMediaSaveResponse, type ZaloAdsPostApiMemberUploadImageRequest, type ZaloAdsPostApiMemberUploadImageResponse, type ZaloAdsPostZaapiDeleteadRequest, type ZaloAdsPostZaapiDeleteadResponse, type ZaloAdsRenameCampaignRequest, type ZaloAdsRenameCampaignResponse, ZaloAdsSdk, type ZaloAdsSdkOptions, ZaloAdsService, type ZaloAdsSpellCheckIssueDto, type ZaloAdsSpellCheckViolationDto, type ZaloAdsStandardEventItemDto, type ZaloAdsUniqueUserReportDataDto, type ZaloAdsUpdateArticleAdRequest, type ZaloAdsUpdateArticleAdResponse, type ZaloAdsUpdateAutomatedRuleRequest, type ZaloAdsUpdateAutomatedRuleResponse, type ZaloAdsUpdateCommerceAdRequest, type ZaloAdsUpdateCommerceAdResponse, type ZaloAdsUpdateDisplayAdRequest, type ZaloAdsUpdateDisplayAdResponse, type ZaloAdsUpdateEcommerceAdRequest, type ZaloAdsUpdateEcommerceAdResponse, type ZaloAdsUpdateFlowRequest, type ZaloAdsUpdateFlowResponse, type ZaloAdsUpdateFormAdRequest, type ZaloAdsUpdateFormAdResponse, ZaloAdsUpdateMessageAdRequest, ZaloAdsUpdateMessageAdResponse, type ZaloAdsUpdateNewAdsRequest, type ZaloAdsUpdateNewAdsResponse, type ZaloAdsUpdateOaAdRequest, type ZaloAdsUpdateOaAdResponse, type ZaloAdsUpdateOfficialAccountAdRequest, type ZaloAdsUpdateOfficialAccountAdResponse, type ZaloAdsUpdatePostAdRequest, type ZaloAdsUpdatePostAdResponse, ZaloAdsUpdateVideoAdRequest, ZaloAdsUpdateVideoAdResponse, type ZaloAdsUpdateWebsiteAdRequest, type ZaloAdsUpdateWebsiteAdResponse, type ZaloAdsUploadCustomAudiencePhoneListRequest, type ZaloAdsUploadCustomAudiencePhoneListResponse, type ZaloAdsUploadVideoRequest, type ZaloAdsUploadVideoResponse, type ZaloAdsUpsertCustomReportRequest, type ZaloAdsUpsertCustomReportResponse, type ZaloAdsWhoamiProfile, type ZaloAdsZaapiCampaignReportItemDto, ZaloAudiencesService, ZaloAudiencesValidator, type ZaloAuthDomain, ZaloAuthManager, ZaloAutomatedRulesService, ZaloCampaignsService, ZaloCampaignsValidator, type ZaloChatWidgetGetChatWidgetLoginConfigRequest, type ZaloChatWidgetGetChatWidgetLoginConfigResponse, type ZaloChatWidgetGetLoginConfigRequest, type ZaloChatWidgetGetLoginConfigResponse, ZaloChatWidgetService, ZaloConversionsService, type ZaloCreateFormCleanPayload, type ZaloCreateFormRequestInput, type ZaloDomainSession, ZaloFlowsService, ZaloFlowsValidator, type ZaloFormQuestionAnswerInput, type ZaloFormQuestionInput, type ZaloFormSectionInput, type ZaloFormSessionProfile, type ZaloFormsAudienceExclusionTargetingItem, type ZaloFormsAuthSessionOaItem, type ZaloFormsConversationLeadItem, type ZaloFormsDisableFormLeadNotificationRequest, type ZaloFormsDisableFormLeadNotificationResponse, type ZaloFormsEnableFormLeadNotificationRequest, type ZaloFormsEnableFormLeadNotificationResponse, type ZaloFormsExportFormLeadReportRequest, type ZaloFormsExportFormLeadReportResponse, type ZaloFormsGetAuthSessionResponse, type ZaloFormsLeadAnswerItem, type ZaloFormsLeadItem, type ZaloFormsListAudienceExclusionTargetingRequest, type ZaloFormsListAudienceExclusionTargetingResponse, type ZaloFormsListConversationLeadsRequest, type ZaloFormsListConversationLeadsResponse, type ZaloFormsListFormLeadsRequest, type ZaloFormsListFormLeadsResponse, type ZaloFormsListManagedFormsByOfficialAccountRequest, type ZaloFormsListManagedFormsByOfficialAccountResponse, type ZaloFormsListScenariosByOfficialAccountRequest, type ZaloFormsListScenariosByOfficialAccountResponse, type ZaloFormsListSimpleFormsByOfficialAccountRequest, type ZaloFormsListSimpleFormsByOfficialAccountResponse, type ZaloFormsScenarioItem, ZaloFormsService, type ZaloFormsTrackManageFormEventRequest, type ZaloFormsTrackManageFormEventResponse, type ZaloFormsUpdateFormLeadNotificationIntervalRequest, type ZaloFormsUpdateFormLeadNotificationIntervalResponse, ZaloFormsValidator, type ZaloInstantPageActive, ZaloInstantPageBlockType, type ZaloInstantPageStatus, type ZaloInstantPagesCloneInstantPageRequest, type ZaloInstantPagesCloneInstantPageResponse, type ZaloInstantPagesFormRecordItem, type ZaloInstantPagesGetInstantPageDetailRequest, type ZaloInstantPagesGetInstantPageDetailResponse, type ZaloInstantPagesGetInstantPageSharedUserRequest, type ZaloInstantPagesGetInstantPageSharedUserResponse, type ZaloInstantPagesListInstantPageEditHistoryRequest, type ZaloInstantPagesListInstantPageEditHistoryResponse, type ZaloInstantPagesListInstantPageFormRecordsRequest, type ZaloInstantPagesListInstantPageFormRecordsResponse, type ZaloInstantPagesListInstantPageLeadsRequest, type ZaloInstantPagesListInstantPageLeadsResponse, type ZaloInstantPagesListInstantPageSharesRequest, type ZaloInstantPagesListInstantPageSharesResponse, type ZaloInstantPagesListInstantPageUsersRequest, type ZaloInstantPagesListInstantPageUsersResponse, type ZaloInstantPagesListMiniPageTemplatesRequest, type ZaloInstantPagesListMiniPageTemplatesResponse, type ZaloInstantPagesListOfficialAccountsRequest, type ZaloInstantPagesListOfficialAccountsResponse, type ZaloInstantPagesOfficialAccountItem, type ZaloInstantPagesSearchInstantPagesRequest, type ZaloInstantPagesSearchInstantPagesResponse, ZaloInstantPagesService, type ZaloInstantPagesUpdateInstantPageRequest, type ZaloInstantPagesUpdateInstantPageResponse, type ZaloInstantPagesUpsertInstantPageFormRequest, type ZaloInstantPagesUpsertInstantPageFormResponse, ZaloInstantPagesValidator, type ZaloIntegrationCredentials, type ZaloIntegrationVerificationResult, ZaloMediaService, type ZaloPlaySessionPayload, type ZaloProfileAdsAdministrativeItem, type ZaloProfileAdsCreateOaPageRequest, type ZaloProfileAdsCreateOaPageResponse, type ZaloProfileAdsGetDistrictsRequest, type ZaloProfileAdsGetDistrictsResponse, type ZaloProfileAdsGetProvincesResponse, type ZaloProfileAdsProvinceId, ZaloProfileAdsService, type ZaloProfileAdsSubCategoryId, type ZaloProfileAdsUploadOaAvatarRequest, type ZaloProfileAdsUploadOaAvatarResponse, type ZaloProfileAdsUploadOaCoverRequest, type ZaloProfileAdsUploadOaCoverResponse, type ZaloRedisLikeClient, ZaloReportsService, type ZaloSdkAuth, type ZaloSdkAuthContext, ZaloSdkError, ZaloSdkHttpClient, type ZaloSessionStore, type ZaloSsoAuthOptions, type ZaloUploadAndSaveImageRequest, type ZaloUploadAndSaveImageResult, type ZaloUploadAndSaveVideoRequest, type ZaloUploadAndSaveVideoResult, type ZaloWidgetAPIGetOfficialAccountInfoRequest, type ZaloWidgetAPIGetOfficialAccountInfoResponse, type ZaloWidgetAPIGetWidgetUserProfileRequest, type ZaloWidgetAPIGetWidgetUserProfileResponse, type ZaloWidgetAPIListStickerCategoriesRequest, type ZaloWidgetAPIListStickerCategoriesResponse, type ZaloWidgetAPIListStickersByCategoryRequest, type ZaloWidgetAPIListStickersByCategoryResponse, ZaloWidgetApiService, computeZpsidFingerprint, createZaloSsoAuth, decodePlaySessionJwt, ZaloAdsSdk as default, defaultSharedMemorySessionStore, deriveAccountKeyFromZpsid, parseZaloCookieInput, validateChangeCampaignStatusParams, validateCloneInstantPageRequest, validateCreateCampaignPayload, validateCreateFlowRequest, validateCreateFormEventAudienceRequest, validateCreateFormRequest, validateCreateLookalikeAudienceRequest, validateCreateMessageOaEventAudienceRequest, validateCreateMessagePersonalEventAudienceRequest, validateCreatePhoneAudienceRequest, validateCreateSavedAudienceRequest, validateDuplicateAdParams, validateEstimateAudienceRequest, validateGetInstantPageDetailRequest, validateGetInstantPageSharedUserRequest, validateListFlowsByOfficialAccountRequest, validateListFormLeadsRequest, validateListFormsByOfficialAccountRequest, validateListInstantPageEditHistoryRequest, validateListInstantPageFormRecordsRequest, validateListInstantPageLeadsRequest, validateListInstantPageSharesRequest, validateListInstantPageUsersRequest, validateListMiniPageTemplatesRequest, validateListOfficialAccountsRequest, validateRenameCampaignParams, validateSearchInstantPagesRequest, validateUpdateAdPayload, validateUpdateFlowRequest, validateUpdateInstantPageRequest, validateUpsertInstantPageFormRequest };
|