@redonvn/zalo-ads-sdk 0.2.2 → 0.2.7
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 +1381 -101
- package/dist/index.d.ts +1381 -101
- package/dist/index.js +3349 -719
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3309 -718
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -439,7 +439,7 @@ declare class ZaloSdkError extends Error {
|
|
|
439
439
|
readonly status: number;
|
|
440
440
|
readonly operationId: string;
|
|
441
441
|
readonly responseBody: unknown;
|
|
442
|
-
constructor(message: string, status
|
|
442
|
+
constructor(message: string, status?: number, operationId?: string, responseBody?: unknown);
|
|
443
443
|
}
|
|
444
444
|
interface FileDownloadResponse {
|
|
445
445
|
file: Blob;
|
|
@@ -447,6 +447,62 @@ interface FileDownloadResponse {
|
|
|
447
447
|
contentType: string | null;
|
|
448
448
|
}
|
|
449
449
|
|
|
450
|
+
/**
|
|
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: Bản nháp đang sửa (Draft) - đang biên tập trong trình tạo trang (Canvas Editor), lưu trong draft
|
|
454
|
+
* - 2: Đã xuất bản (Published / Active) - trang chính thức, cấu hình live nằm trong content, sẵn sàng chạy ads
|
|
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
|
+
*/
|
|
457
|
+
type ZaloInstantPageStatus = 0 | 1 | 2 | 3;
|
|
458
|
+
/**
|
|
459
|
+
* Cờ trạng thái hoạt động của Instant Page:
|
|
460
|
+
* - 0: Tắt (tạm khóa, không cho người dùng truy cập)
|
|
461
|
+
* - 1: Bật (cho phép xem trang qua https://page.zalo.me/p/{publicId})
|
|
462
|
+
* Bắt buộc kiểu số nguyên 0 | 1, không truyền boolean true/false.
|
|
463
|
+
*/
|
|
464
|
+
type ZaloInstantPageActive = 0 | 1;
|
|
465
|
+
/**
|
|
466
|
+
* Danh mục mã định danh các loại khối giao diện (Block Types) trong Instant Page Canvas (trường draft và content):
|
|
467
|
+
*/
|
|
468
|
+
declare enum ZaloInstantPageBlockType {
|
|
469
|
+
/** Slide ảnh/video banner trình chiếu sản phẩm */
|
|
470
|
+
CAROUSEL_SLIDER = 1,
|
|
471
|
+
/** Đồng hồ đếm ngược Flash sale / thời gian khuyến mãi */
|
|
472
|
+
COUNTDOWN = 2,
|
|
473
|
+
/** Văn bản mô tả giàu định dạng (HTML / Quill Delta ops) */
|
|
474
|
+
RICH_TEXT = 4,
|
|
475
|
+
/** Hình ảnh đơn / banner minh họa (Hero image) */
|
|
476
|
+
HERO_IMAGE = 6,
|
|
477
|
+
/** Form field: Ô nhập họ và tên khách hàng */
|
|
478
|
+
FORM_NAME = 7,
|
|
479
|
+
/** Nút CTA Đặt hàng ngay (cố định chân trang hoặc mở form popup) */
|
|
480
|
+
ORDER_CTA_BUTTON = 8,
|
|
481
|
+
/** Form field: Ô nhập số điện thoại */
|
|
482
|
+
FORM_PHONE = 9,
|
|
483
|
+
/** Form field: Ô nhập địa chỉ giao hàng */
|
|
484
|
+
FORM_ADDRESS = 10,
|
|
485
|
+
/** Chân trang thương hiệu (Hotline, Email, Website, Địa chỉ) */
|
|
486
|
+
FOOTER = 14,
|
|
487
|
+
/** Form field: Ô chọn số lượng sản phẩm mua */
|
|
488
|
+
FORM_QUANTITY = 16,
|
|
489
|
+
/** Phân loại / Biến thể sản phẩm (Màu sắc, Size, Combo) */
|
|
490
|
+
PRODUCT_VARIANT = 18,
|
|
491
|
+
/** Tiêu đề sản phẩm & Giá bán (name, rawPrice, price) */
|
|
492
|
+
PRODUCT_TITLE_PRICE = 19,
|
|
493
|
+
/** Câu hỏi gợi ý nhanh (FAQ quick replies) */
|
|
494
|
+
QUICK_QUESTIONS = 20,
|
|
495
|
+
/** Nút CTA nhắn tin trực tiếp đến Zalo Official Account */
|
|
496
|
+
MESSAGE_CTA_BUTTON = 21,
|
|
497
|
+
/** Tiêu đề phân đoạn (Section Heading) */
|
|
498
|
+
SECTION_HEADING = 22,
|
|
499
|
+
/** Nút Hotline gọi điện thoại tư vấn viên */
|
|
500
|
+
CALL_HOTLINE_BUTTON = 23,
|
|
501
|
+
/** Bảng thông số / Ưu đãi 2 cột (Key-Value rows) */
|
|
502
|
+
KEY_VALUE_TABLE = 25,
|
|
503
|
+
/** Điều khoản đồng thuận thu thập dữ liệu cá nhân theo NĐ 13 */
|
|
504
|
+
CONSENT_NOTICE = 27
|
|
505
|
+
}
|
|
450
506
|
/** Sao chép một Instant Page hiện có và trả về bản Instant Page mới cùng toàn bộ draft được sao chép. Đây là mutation tool thuộc lane zalo-ads-content; dùng khi cần tạo bản làm việc độc lập trước khi chỉnh sửa nội dung hoặc trạng thái. Bản sao có id và publicId mới, không ghi đè Instant Page nguồn. */
|
|
451
507
|
type ZaloInstantPagesCloneInstantPageRequest = {
|
|
452
508
|
/** ID Instant Page nguồn cần sao chép. */
|
|
@@ -465,12 +521,12 @@ type ZaloInstantPagesCloneInstantPageResponse = {
|
|
|
465
521
|
oaId: string;
|
|
466
522
|
/** Chuỗi JSON cấu hình bản nháp đã được sao chép, gồm data các block/section, renderList và các thiết lập layout. Đây chưa tự đại diện cho nội dung public đã phát hành. */
|
|
467
523
|
draft: string;
|
|
468
|
-
/** Cờ bật/tắt của Instant Page
|
|
469
|
-
active:
|
|
524
|
+
/** Cờ bật/tắt của Instant Page: 0 = Tắt, 1 = Bật. */
|
|
525
|
+
active: ZaloInstantPageActive;
|
|
470
526
|
/** ID form liên kết; có thể rỗng. */
|
|
471
527
|
formId: string;
|
|
472
|
-
/** Mã trạng thái Instant Page
|
|
473
|
-
status: number;
|
|
528
|
+
/** Mã trạng thái Instant Page: 0 = Bản sao mới tạo, 1 = Bản nháp, 2 = Đã xuất bản, 3 = Lưu trữ. */
|
|
529
|
+
status: ZaloInstantPageStatus | number;
|
|
474
530
|
/** ID người dùng sở hữu Instant Page. */
|
|
475
531
|
userId: number;
|
|
476
532
|
/** Nội dung đã phát hành/được lưu ngoài draft; có thể rỗng. */
|
|
@@ -508,12 +564,12 @@ type ZaloInstantPagesGetInstantPageDetailResponse = {
|
|
|
508
564
|
oaId: string;
|
|
509
565
|
/** Bản nháp cấu hình Instant Page chưa được phát hành hoặc chưa áp dụng làm nội dung chính; dạng chuỗi JSON/serialized payload. Dùng để so sánh hoặc tiếp tục chỉnh sửa, không tự xem là bản public. */
|
|
510
566
|
draft: string;
|
|
511
|
-
/** Trạng thái kích hoạt. */
|
|
512
|
-
active:
|
|
567
|
+
/** Trạng thái kích hoạt: 0 = Tắt, 1 = Bật. */
|
|
568
|
+
active: ZaloInstantPageActive;
|
|
513
569
|
/** ID form liên kết, khi có. */
|
|
514
570
|
formId: string;
|
|
515
|
-
/** Trạng thái nghiệp v
|
|
516
|
-
status: number;
|
|
571
|
+
/** Trạng thái nghiệp vụ: 0 = Bản sao mới tạo, 1 = Bản nháp, 2 = Đã xuất bản, 3 = Lưu trữ. */
|
|
572
|
+
status: ZaloInstantPageStatus | number;
|
|
517
573
|
/** ID người dùng sở hữu page. */
|
|
518
574
|
userId: number;
|
|
519
575
|
/** Nội dung/cấu hình Instant Page đang được lưu, dạng chuỗi JSON hoặc serialized payload. */
|
|
@@ -606,7 +662,7 @@ type ZaloInstantPagesFormRecordItem = {
|
|
|
606
662
|
value: string;
|
|
607
663
|
}>;
|
|
608
664
|
};
|
|
609
|
-
type ZaloInstantPagesListInstantPageFormRecordsResponse = {
|
|
665
|
+
type ZaloInstantPagesListInstantPageFormRecordsResponse = Blob | {
|
|
610
666
|
data: {
|
|
611
667
|
items: Array<ZaloInstantPagesFormRecordItem>;
|
|
612
668
|
total: number;
|
|
@@ -691,14 +747,14 @@ type ZaloInstantPagesSearchInstantPagesResponse = {
|
|
|
691
747
|
oaId: string;
|
|
692
748
|
/** Tên hiển thị chủ sở hữu. */
|
|
693
749
|
owner: string;
|
|
694
|
-
/** Trạng thái bật/tắt
|
|
695
|
-
active:
|
|
750
|
+
/** Trạng thái bật/tắt: 0 = Tắt, 1 = Bật. */
|
|
751
|
+
active: ZaloInstantPageActive;
|
|
696
752
|
/** ID form liên kết; có thể rỗng. */
|
|
697
753
|
formId: string;
|
|
698
754
|
/** Tên các người dùng được chia sẻ quyền. */
|
|
699
755
|
shares: Array<string>;
|
|
700
|
-
/** Mã trạng thái
|
|
701
|
-
status: number;
|
|
756
|
+
/** Mã trạng thái: 0 = Bản sao mới tạo, 1 = Bản nháp, 2 = Đã xuất bản, 3 = Lưu trữ. */
|
|
757
|
+
status: ZaloInstantPageStatus | number;
|
|
702
758
|
/** Unix timestamp theo giây lúc tạo. */
|
|
703
759
|
created: number;
|
|
704
760
|
/** Tên hiển thị người tạo. */
|
|
@@ -707,9 +763,9 @@ type ZaloInstantPagesSearchInstantPagesResponse = {
|
|
|
707
763
|
ownerId: number;
|
|
708
764
|
/** Unix timestamp theo giây lúc cập nhật. */
|
|
709
765
|
modified: number;
|
|
710
|
-
/** Mã công khai của Instant Page. */
|
|
766
|
+
/** Mã công khai 12 ký tự của Instant Page (dùng trên https://page.zalo.me/p/{publicId}). */
|
|
711
767
|
publicId: string;
|
|
712
|
-
/** Unix timestamp theo giây lúc xuất bản. */
|
|
768
|
+
/** Unix timestamp theo giây lúc xuất bản (0 nếu chưa xuất bản). */
|
|
713
769
|
published: number;
|
|
714
770
|
/** Quyền trực tiếp trên Instant Page khi API trả về. */
|
|
715
771
|
permission?: number;
|
|
@@ -721,7 +777,15 @@ type ZaloInstantPagesSearchInstantPagesResponse = {
|
|
|
721
777
|
}>;
|
|
722
778
|
[key: string]: unknown;
|
|
723
779
|
};
|
|
724
|
-
/**
|
|
780
|
+
/**
|
|
781
|
+
* Cập nhật thông tin, cấu hình bản nháp (draft), nội dung chính thức (content) hoặc bật/tắt trạng thái (active) của Instant Page theo ID.
|
|
782
|
+
*
|
|
783
|
+
* Hỗ trợ 4 loại thao tác nghiệp vụ:
|
|
784
|
+
* - **Loại 1 (Bật/Tắt nhanh)**: `{ id, active: 0 | 1 }` (0: Tắt, 1: Bật)
|
|
785
|
+
* - **Loại 2 (Đổi tên / Đổi OA)**: `{ id, name?: string, oaId?: string }`
|
|
786
|
+
* - **Loại 3 (Lưu bản nháp - Save Draft)**: `{ id, name?: string, status: 1, draft: string }`
|
|
787
|
+
* - **Loại 4 (Xuất bản - Publish Live)**: `{ id, name?: string, status: 2, draft: string, content: string }`
|
|
788
|
+
*/
|
|
725
789
|
type ZaloInstantPagesUpdateInstantPageRequest = {
|
|
726
790
|
/** ID Instant Page cần cập nhật. */
|
|
727
791
|
instantPageId: number;
|
|
@@ -729,15 +793,26 @@ type ZaloInstantPagesUpdateInstantPageRequest = {
|
|
|
729
793
|
id: number;
|
|
730
794
|
/** Tên Instant Page mới; giao diện giới hạn tối đa 40 ký tự. Chỉ gửi khi cần đổi tên. */
|
|
731
795
|
name?: string;
|
|
732
|
-
/** ID Official Account liên kết;
|
|
796
|
+
/** ID Official Account liên kết; truyền chuỗi rỗng "" nếu trang chưa liên kết OA hoặc không dùng OA. */
|
|
733
797
|
oaId?: string;
|
|
734
|
-
/**
|
|
798
|
+
/**
|
|
799
|
+
* Chuỗi JSON bản nháp cấu hình Instant Page đang biên tập trên Canvas Editor (chưa xuất bản).
|
|
800
|
+
* Gồm renderList (mảng ID thứ tự hiển thị), data (map ID -> block object), freezedTop, freezedBottom, version.
|
|
801
|
+
* Danh mục block types:
|
|
802
|
+
* 1: CAROUSEL_SLIDER | 2: COUNTDOWN | 4: RICH_TEXT | 6: HERO_IMAGE | 7: FORM_NAME |
|
|
803
|
+
* 8: ORDER_CTA_BUTTON | 9: FORM_PHONE | 10: FORM_ADDRESS | 14: FOOTER | 16: FORM_QUANTITY |
|
|
804
|
+
* 18: PRODUCT_VARIANT | 19: PRODUCT_TITLE_PRICE | 20: QUICK_QUESTIONS | 21: MESSAGE_CTA_BUTTON |
|
|
805
|
+
* 22: SECTION_HEADING | 23: CALL_HOTLINE_BUTTON | 25: KEY_VALUE_TABLE | 27: CONSENT_NOTICE
|
|
806
|
+
*/
|
|
735
807
|
draft?: string;
|
|
736
|
-
/** Thao tác bật/tắt Instant Page: 0 là tắt, 1 là bật. */
|
|
737
|
-
active?:
|
|
738
|
-
/** Mã trạng thái
|
|
739
|
-
status?: number;
|
|
740
|
-
/**
|
|
808
|
+
/** Thao tác bật/tắt Instant Page: 0 là tắt, 1 là bật. BẮT BUỘC là số nguyên 0 | 1, không truyền kiểu boolean. */
|
|
809
|
+
active?: ZaloInstantPageActive;
|
|
810
|
+
/** Mã trạng thái của Instant Page: 1 = Lưu bản nháp (Draft), 2 = Xuất bản chính thức (Published). */
|
|
811
|
+
status?: ZaloInstantPageStatus | number;
|
|
812
|
+
/**
|
|
813
|
+
* Chuỗi JSON cấu hình nội dung chính thức đang chạy ở Production của Instant Page (sau khi xuất bản).
|
|
814
|
+
* Chỉ gửi khi xuất bản chính thức (status = 2). Cấu trúc tương tự draft.
|
|
815
|
+
*/
|
|
741
816
|
content?: string;
|
|
742
817
|
};
|
|
743
818
|
type ZaloInstantPagesUpdateInstantPageResponse = {
|
|
@@ -821,10 +896,10 @@ type ZaloInstantPagesUpsertInstantPageFormRequest = {
|
|
|
821
896
|
/** Mô tả phụ của câu hỏi (có thể để chuỗi rỗng). */
|
|
822
897
|
description: string;
|
|
823
898
|
}>;
|
|
824
|
-
/** Sử dụng cấu hình điều khoản đồng ý tùy chỉnh hay mặc định. */
|
|
825
|
-
useCustomConsent
|
|
826
|
-
/** Cấu hình thông tin pháp lý và phạm vi thu thập dữ liệu cá nhân của biểu mẫu. */
|
|
827
|
-
consentConfig
|
|
899
|
+
/** Sử dụng cấu hình điều khoản đồng ý tùy chỉnh hay mặc định (mặc định: false). */
|
|
900
|
+
useCustomConsent?: boolean;
|
|
901
|
+
/** Cấu hình thông tin pháp lý và phạm vi thu thập dữ liệu cá nhân của biểu mẫu (bắt buộc khi useCustomConsent = true). */
|
|
902
|
+
consentConfig?: {
|
|
828
903
|
/** Địa chỉ liên hệ của bên kiểm soát hoặc sở hữu dữ liệu. */
|
|
829
904
|
address: string;
|
|
830
905
|
/** Tên cá nhân hoặc đơn vị sở hữu dữ liệu. */
|
|
@@ -961,10 +1036,12 @@ declare class ZaloAdsCreateFlowRequest {
|
|
|
961
1036
|
messages: ZaloAdsFlowMessageDto[];
|
|
962
1037
|
}
|
|
963
1038
|
declare class ZaloAdsCreateFlowResponse {
|
|
964
|
-
/** 0 khi tạo thành công. */
|
|
1039
|
+
/** 0 khi tạo thành công; 1 khi lỗi (ví dụ: đã tới hạn mức 20 kịch bản). */
|
|
965
1040
|
code: number;
|
|
1041
|
+
/** Thông báo lỗi từ Zalo Ads khi code khác 0. */
|
|
1042
|
+
msg?: string;
|
|
966
1043
|
/** ID kịch bản mới, truyền vào data.ZaloFlowId khi cập nhật quảng cáo Tin nhắn. */
|
|
967
|
-
data
|
|
1044
|
+
data?: {
|
|
968
1045
|
id: number;
|
|
969
1046
|
};
|
|
970
1047
|
}
|
|
@@ -1202,11 +1279,13 @@ type ZaloAdsListFlowsByOfficialAccountResponse = {
|
|
|
1202
1279
|
messages: Array<{
|
|
1203
1280
|
type: number;
|
|
1204
1281
|
text: string;
|
|
1282
|
+
url?: string;
|
|
1205
1283
|
buttons: Array<{
|
|
1206
1284
|
type: number;
|
|
1207
1285
|
text: string;
|
|
1208
1286
|
editable: boolean;
|
|
1209
|
-
url
|
|
1287
|
+
url?: string;
|
|
1288
|
+
phone?: string;
|
|
1210
1289
|
messages: Array<ZaloAdsFlowChildMessageDto>;
|
|
1211
1290
|
}>;
|
|
1212
1291
|
elements: Array<{
|
|
@@ -1853,6 +1932,50 @@ type ZaloAdsGetApiSpellCheckV2Response = {
|
|
|
1853
1932
|
diffs: Array<ZaloAdsSpellCheckIssueDto>;
|
|
1854
1933
|
};
|
|
1855
1934
|
};
|
|
1935
|
+
interface ZaloAdsSpellCheckViolationDto {
|
|
1936
|
+
start: number;
|
|
1937
|
+
end: number;
|
|
1938
|
+
original_text: string;
|
|
1939
|
+
rules: number[];
|
|
1940
|
+
suggestion: string;
|
|
1941
|
+
}
|
|
1942
|
+
/** Khởi tạo tác vụ kiểm tra chính tả và vi phạm quy chuẩn quảng cáo AI V3 (POST /api/spell-check/v3). */
|
|
1943
|
+
type ZaloAdsCreateSpellCheckV3JobRequest = {
|
|
1944
|
+
/** Tiêu đề mẫu quảng cáo (title). */
|
|
1945
|
+
title: string;
|
|
1946
|
+
/** Chú thích / mô tả mẫu quảng cáo (caption). */
|
|
1947
|
+
caption: string;
|
|
1948
|
+
};
|
|
1949
|
+
type ZaloAdsCreateSpellCheckV3JobResponse = {
|
|
1950
|
+
code: 0 | number;
|
|
1951
|
+
data: {
|
|
1952
|
+
error: number;
|
|
1953
|
+
jobId: string;
|
|
1954
|
+
};
|
|
1955
|
+
};
|
|
1956
|
+
/** Lấy kết quả kiểm tra chính tả và vi phạm quy chuẩn quảng cáo AI V3 theo jobId (GET /api/spell-check/v3/{jobId}). */
|
|
1957
|
+
type ZaloAdsGetSpellCheckV3JobRequest = {
|
|
1958
|
+
/** Mã tác vụ kiểm tra chính tả dạng http-<uuid>. */
|
|
1959
|
+
jobId: string;
|
|
1960
|
+
};
|
|
1961
|
+
type ZaloAdsGetSpellCheckV3JobResponse = {
|
|
1962
|
+
code: 0 | number;
|
|
1963
|
+
data: {
|
|
1964
|
+
error: number;
|
|
1965
|
+
jobId: string;
|
|
1966
|
+
status: "PROCESSING" | "COMPLETED";
|
|
1967
|
+
message?: string;
|
|
1968
|
+
completedAt?: string;
|
|
1969
|
+
details?: {
|
|
1970
|
+
violations?: Array<ZaloAdsSpellCheckViolationDto>;
|
|
1971
|
+
title_merged_violations?: Array<ZaloAdsSpellCheckViolationDto>;
|
|
1972
|
+
caption_merged_violations?: Array<ZaloAdsSpellCheckViolationDto>;
|
|
1973
|
+
title_suggestion?: string;
|
|
1974
|
+
caption_suggestion?: string;
|
|
1975
|
+
error?: string;
|
|
1976
|
+
};
|
|
1977
|
+
};
|
|
1978
|
+
};
|
|
1856
1979
|
/** Lấy thông tin tài khoản Zalo Ads hiện được xác thực, gồm ngân sách, hạn mức và các khả năng được cấp. Đây là auth-sensitive entry tool thuộc lane zalo-ads-account; dùng để xác nhận đúng ngữ cảnh tài khoản trước thao tác khác. Dữ liệu cá nhân, hợp đồng và định danh phiên chỉ được xử lý trong phạm vi được ủy quyền. */
|
|
1857
1980
|
type ZaloAdsGetApiWhoamiRequest = Record<string, never>;
|
|
1858
1981
|
type ZaloAdsGetApiWhoamiResponse = {
|
|
@@ -2026,12 +2149,21 @@ interface ZaloAdsUniqueUserReportDataDto {
|
|
|
2026
2149
|
frequency?: number;
|
|
2027
2150
|
byDate?: Record<string, number>;
|
|
2028
2151
|
}
|
|
2029
|
-
/** Lấy thống kê người dùng duy nhất tiếp cận hoặc tương tác với quảng cáo
|
|
2030
|
-
type ZaloAdsGetReportapiV2UniqueUserRequest =
|
|
2152
|
+
/** Lấy thống kê người dùng duy nhất tiếp cận hoặc tương tác với quảng cáo / chiến dịch (GET https://ads.zalo.me/reportapi/v2/unique-user). */
|
|
2153
|
+
type ZaloAdsGetReportapiV2UniqueUserRequest = {
|
|
2154
|
+
start: number;
|
|
2155
|
+
end: number;
|
|
2156
|
+
campaignId?: number | string;
|
|
2157
|
+
adId?: number | string;
|
|
2158
|
+
};
|
|
2031
2159
|
type ZaloAdsGetReportapiV2UniqueUserResponse = {
|
|
2032
2160
|
code: number;
|
|
2033
2161
|
msg?: string;
|
|
2034
|
-
data:
|
|
2162
|
+
data: number;
|
|
2163
|
+
extend?: Array<{
|
|
2164
|
+
adId: number;
|
|
2165
|
+
count: number;
|
|
2166
|
+
}>;
|
|
2035
2167
|
};
|
|
2036
2168
|
/** Lấy báo cáo hiệu quả campaign theo phiên bản dữ liệu báo cáo v3. Đây là entry tool thuộc lane zalo-ads-reporting; dùng khi cần tổng hợp hoặc so sánh chỉ số nhiều chiến dịch trong một khoảng thời gian. */
|
|
2037
2169
|
type ZaloAdsGetReportapiV3CampaignsRequest = {
|
|
@@ -2053,15 +2185,27 @@ type ZaloAdsGetReportapiV3CampaignsResponse = {
|
|
|
2053
2185
|
code: number;
|
|
2054
2186
|
data: Array<ZaloAdsCampaignReportItemDto>;
|
|
2055
2187
|
};
|
|
2056
|
-
|
|
2188
|
+
interface ZaloAdsZaapiCampaignReportItemDto {
|
|
2189
|
+
AdId: number;
|
|
2190
|
+
AdName: string;
|
|
2191
|
+
CampaignId: number;
|
|
2192
|
+
CampaignName: string;
|
|
2193
|
+
CampaignType: number;
|
|
2194
|
+
Date: number;
|
|
2195
|
+
Cost: number;
|
|
2196
|
+
Quantity: number;
|
|
2197
|
+
}
|
|
2198
|
+
/** Lấy báo cáo hiệu quả của campaign theo dữ liệu vận hành Zalo Ads (GET https://ads.zalo.me/zaapi/Campaign/reportCampaign). */
|
|
2057
2199
|
type ZaloAdsGetZaapiCampaignReportcampaignRequest = {
|
|
2058
|
-
campaignId
|
|
2200
|
+
campaignId: number | string;
|
|
2201
|
+
from: number;
|
|
2202
|
+
to: number;
|
|
2059
2203
|
campId?: number | string;
|
|
2060
2204
|
};
|
|
2061
2205
|
type ZaloAdsGetZaapiCampaignReportcampaignResponse = {
|
|
2062
2206
|
code: number;
|
|
2063
2207
|
msg?: string;
|
|
2064
|
-
data?:
|
|
2208
|
+
data?: Array<ZaloAdsZaapiCampaignReportItemDto>;
|
|
2065
2209
|
};
|
|
2066
2210
|
/** Kiểm tra một chiến dịch có chứa nhiều quảng cáo hay không. Đây là helper tool thuộc lane zalo-ads-campaign; dùng trước khi chọn luồng xem hoặc cập nhật quảng cáo trong campaign. */
|
|
2067
2211
|
type ZaloAdsGetZaapiCheckcamphasmanyadsRequest = {
|
|
@@ -2899,12 +3043,15 @@ type ZaloAdsUploadCustomAudiencePhoneListResponse = {
|
|
|
2899
3043
|
/** Tải video lên kho media của tài khoản quảng cáo. Đây là mutation tool thuộc lane zalo-ads-media; dùng khi cần tạo asset video trước bước cấu hình quảng cáo. */
|
|
2900
3044
|
type ZaloAdsUploadVideoRequest = {
|
|
2901
3045
|
/** Tệp video tải lên. Capture đã quan sát field File (chữ hoa) với MIME video/mp4. */
|
|
2902
|
-
File
|
|
3046
|
+
File?: FileInput;
|
|
3047
|
+
/** Alias tương thích chữ thường cho File. */
|
|
3048
|
+
file?: FileInput;
|
|
2903
3049
|
};
|
|
2904
3050
|
type ZaloAdsUploadVideoResponse = {
|
|
2905
3051
|
code: number;
|
|
2906
3052
|
/** URL video do Zalo Ads trả về. */
|
|
2907
3053
|
data: string;
|
|
3054
|
+
msg?: string;
|
|
2908
3055
|
};
|
|
2909
3056
|
/** Tạo mới hoặc cập nhật cấu hình báo cáo tùy chỉnh với tên, cờ mặc định và danh sách chỉ số. Đây là mutation tool thuộc lane zalo-ads-reporting; dùng khi đã xác định bộ cột báo cáo cần lưu. */
|
|
2910
3057
|
type ZaloAdsUpsertCustomReportRequest = {
|
|
@@ -2940,19 +3087,436 @@ type ZaloAdsCreateOaCampaignResponse = ZaloAdsCreateOfficialAccountCampaignRespo
|
|
|
2940
3087
|
/** Thiết lập và lưu cấu hình chi tiết cho mẫu Quảng cáo Zalo Official Account (`Type = 2`, `Action = 6`) trên Zalo Ads. Alias chuẩn theo tool `zalo_ads_update_oa_ad` trong Project Schema Zalo ADS. */
|
|
2941
3088
|
type ZaloAdsUpdateOaAdRequest = ZaloAdsUpdateOfficialAccountAdRequest;
|
|
2942
3089
|
type ZaloAdsUpdateOaAdResponse = ZaloAdsUpdateOfficialAccountAdResponse;
|
|
3090
|
+
/** Tạo mới 'Nhóm đối tượng đã lưu' (`caType = 1` - `DEFAULT`) trên Zalo Ads (`POST /api/ad/audience`). */
|
|
3091
|
+
type ZaloAdsCreateSavedAudienceRequest = {
|
|
3092
|
+
/** Tên nhóm đối tượng đã lưu (từ 2 đến 255 ký tự). */
|
|
3093
|
+
name: string;
|
|
3094
|
+
/** Mã loại nhóm đối tượng (cố định `1` = DEFAULT cho Nhóm đối tượng đã lưu). */
|
|
3095
|
+
caType?: 1;
|
|
3096
|
+
/** Chuỗi JSON (`JSON.stringify`) hoặc Object cấu hình nhắm chọn (`NewAgeRanges`, `Gender`, `Os`, `Location`, `AdvanceTargeting`, `IncludedAudiences`, `ExcludedAudiences`). */
|
|
3097
|
+
targeting: string | Record<string, unknown>;
|
|
3098
|
+
};
|
|
3099
|
+
type ZaloAdsCreateSavedAudienceResponse = ZaloAdsCreateCustomAudienceResponse;
|
|
3100
|
+
/** Lấy danh sách tài khoản Zalo Official Account (OA) có dữ liệu chuyển đổi (Lead Signal) của nhà quảng cáo (`GET /api/ad/audience/leadSignal/oas`). */
|
|
3101
|
+
type ZaloAdsLeadSignalOaItem = {
|
|
3102
|
+
/** ID số của Official Account. */
|
|
3103
|
+
id: number;
|
|
3104
|
+
/** ID mã hóa chuỗi của Official Account. */
|
|
3105
|
+
noisedId?: string;
|
|
3106
|
+
/** Tên hiển thị của Official Account. */
|
|
3107
|
+
name: string;
|
|
3108
|
+
/** URL ảnh đại diện của Official Account. */
|
|
3109
|
+
avatarUrl?: string;
|
|
3110
|
+
};
|
|
3111
|
+
type ZaloAdsListLeadSignalOasResponse = {
|
|
3112
|
+
code: number;
|
|
3113
|
+
msg: string;
|
|
3114
|
+
data: Array<ZaloAdsLeadSignalOaItem>;
|
|
3115
|
+
};
|
|
3116
|
+
interface ZaloAdsConversionNameItemDto {
|
|
3117
|
+
/** Mã định danh duy nhất của sự kiện chuyển đổi (Conversion ID). */
|
|
3118
|
+
id: number;
|
|
3119
|
+
/** Tên sự kiện chuyển đổi (Conversion Name, duy nhất trong phạm vi tài khoản quảng cáo). */
|
|
3120
|
+
name: string;
|
|
3121
|
+
}
|
|
3122
|
+
/** Lấy danh sách rút gọn gồm ID và tên của toàn bộ các sự kiện chuyển đổi (Conversion) đã tạo trên tài khoản quảng cáo Zalo Ads (`GET /api/conversion/names`). */
|
|
3123
|
+
type ZaloAdsListConversionNamesRequest = Record<string, never>;
|
|
3124
|
+
type ZaloAdsListConversionNamesResponse = {
|
|
3125
|
+
/** Mã kết quả phản hồi từ Zalo Ads (`0` = Thành công). */
|
|
3126
|
+
code: number;
|
|
3127
|
+
/** Thông điệp kết quả phản hồi (ví dụ: `'success'`). */
|
|
3128
|
+
msg?: string;
|
|
3129
|
+
/** Mảng danh sách rút gọn `{ id, name }` các sự kiện chuyển đổi hiện có. */
|
|
3130
|
+
data: Array<ZaloAdsConversionNameItemDto>;
|
|
3131
|
+
};
|
|
3132
|
+
/** Cấu hình targeting cho Nhóm đối tượng SĐT (`caType = 3`). */
|
|
3133
|
+
interface ZaloAdsPhoneAudienceTargetingDto {
|
|
3134
|
+
/** Tên file .txt đã tải lên (ví dụ: 'example.txt'). */
|
|
3135
|
+
Name: string;
|
|
3136
|
+
/** Đường dẫn URL công khai của file .txt sau khi upload. */
|
|
3137
|
+
Path: string;
|
|
3138
|
+
/** Tổng số lượng SĐT hợp lệ trong tệp. */
|
|
3139
|
+
Total: number;
|
|
3140
|
+
/** Mã định danh tệp SĐT do Zalo cấp. */
|
|
3141
|
+
ZaloId: number;
|
|
3142
|
+
/** Cờ đánh dấu SĐT đã được người dùng tự mã hóa SHA256 (bắt đầu bằng 84) trước khi tải lên. */
|
|
3143
|
+
IsHashedByUser?: boolean;
|
|
3144
|
+
/** Mặc định là 0. */
|
|
3145
|
+
OriginAudience?: number;
|
|
3146
|
+
}
|
|
3147
|
+
/** Tạo mới Nhóm đối tượng từ danh sách Số điện thoại (`caType = 3` - `PHONE_LIST`). */
|
|
3148
|
+
type ZaloAdsCreatePhoneAudienceRequest = {
|
|
3149
|
+
name: string;
|
|
3150
|
+
caType?: 3;
|
|
3151
|
+
targeting: string | ZaloAdsPhoneAudienceTargetingDto;
|
|
3152
|
+
};
|
|
3153
|
+
type ZaloAdsCreatePhoneAudienceResponse = ZaloAdsCreateCustomAudienceResponse;
|
|
3154
|
+
/** Cấu hình targeting cho Nhóm đối tượng tương tự (`caType = 6`). */
|
|
3155
|
+
interface ZaloAdsLookalikeAudienceTargetingDto {
|
|
3156
|
+
/** ID của nhóm đối tượng SĐT gốc (`caType = 3`). Bắt buộc nhóm gốc phải có từ 1.000 đến 10.000 SĐT! */
|
|
3157
|
+
OriginAudience: number;
|
|
3158
|
+
/** Quy mô nhóm đối tượng mở rộng: 1.000.000, 1.500.000 hoặc 2.000.000. */
|
|
3159
|
+
Total: 1000000 | 1500000 | 2000000 | number;
|
|
3160
|
+
/** Tên nhóm đối tượng SĐT gốc. */
|
|
3161
|
+
Name: string;
|
|
3162
|
+
/** Đường dẫn file nhóm gốc (chuỗi rỗng hoặc URL). */
|
|
3163
|
+
Path?: string;
|
|
3164
|
+
}
|
|
3165
|
+
/** Tạo mới Nhóm đối tượng tương tự Lookalike (`caType = 6` - `LOOKALIKE`). */
|
|
3166
|
+
type ZaloAdsCreateLookalikeAudienceRequest = {
|
|
3167
|
+
name: string;
|
|
3168
|
+
caType?: 6;
|
|
3169
|
+
targeting: string | ZaloAdsLookalikeAudienceTargetingDto;
|
|
3170
|
+
};
|
|
3171
|
+
type ZaloAdsCreateLookalikeAudienceResponse = ZaloAdsCreateCustomAudienceResponse;
|
|
3172
|
+
/** Cấu hình targeting cho Nhóm đối tượng sự kiện Form (`caType = 12`). */
|
|
3173
|
+
interface ZaloAdsFormEventAudienceTargetingDto {
|
|
3174
|
+
/** 1: Đã xem Form nhưng chưa submit, 2: Đã xem Form và submit, 3: Đã xem Form, 4: Mở chat OA từ Form. */
|
|
3175
|
+
EventType: 1 | 2 | 3 | 4 | number;
|
|
3176
|
+
/** ID mã hóa chuỗi (noisedId) của tài khoản OA. */
|
|
3177
|
+
OaId: string;
|
|
3178
|
+
/** Khoảng thời gian lưu vết người dùng (1 đến 90 ngày; gợi ý: 7, 14, 30, 60, 90). */
|
|
3179
|
+
NumDays: number;
|
|
3180
|
+
/** Danh sách ID biểu mẫu Zalo Form. */
|
|
3181
|
+
FormIds: string[];
|
|
3182
|
+
}
|
|
3183
|
+
/** Tạo mới Nhóm đối tượng phát sinh sự kiện trên Zalo Form (`caType = 12` - `FORM_EVENT_AUDIENCE`). */
|
|
3184
|
+
type ZaloAdsCreateFormEventAudienceRequest = {
|
|
3185
|
+
name: string;
|
|
3186
|
+
caType?: 12;
|
|
3187
|
+
targeting: string | ZaloAdsFormEventAudienceTargetingDto;
|
|
3188
|
+
};
|
|
3189
|
+
type ZaloAdsCreateFormEventAudienceResponse = ZaloAdsCreateCustomAudienceResponse;
|
|
3190
|
+
/** Cấu hình targeting cho Nhóm đối tượng sự kiện Tin nhắn OA (`caType = 11`). */
|
|
3191
|
+
interface ZaloAdsMessageOaEventAudienceTargetingDto {
|
|
3192
|
+
/** 1: Liên hệ sau khi xem quảng cáo tin nhắn. */
|
|
3193
|
+
EventId: 1 | number;
|
|
3194
|
+
/** ID mã hóa chuỗi (noisedId) của tài khoản OA xác thực. */
|
|
3195
|
+
OaId: string;
|
|
3196
|
+
/** Khoảng thời gian lưu vết người dùng (1 đến 90 ngày). */
|
|
3197
|
+
NumDays: number;
|
|
3198
|
+
}
|
|
3199
|
+
/** Tạo mới Nhóm đối tượng phát sinh sự kiện trên Kịch bản Tin nhắn OA (`caType = 11` - `MESSAGE_AUDIENCE`). */
|
|
3200
|
+
type ZaloAdsCreateMessageOaEventAudienceRequest = {
|
|
3201
|
+
name: string;
|
|
3202
|
+
caType?: 11;
|
|
3203
|
+
targeting: string | ZaloAdsMessageOaEventAudienceTargetingDto;
|
|
3204
|
+
};
|
|
3205
|
+
type ZaloAdsCreateMessageOaEventAudienceResponse = ZaloAdsCreateCustomAudienceResponse;
|
|
3206
|
+
/** Cấu hình targeting cho Nhóm đối tượng sự kiện Tin nhắn cá nhân (`caType = 14`). */
|
|
3207
|
+
interface ZaloAdsMessagePersonalEventAudienceTargetingDto {
|
|
3208
|
+
/** 1: Đã liên hệ, 2: Đã xem nội dung nhưng không liên hệ, 3: Dành thời gian xem ảnh và video ở carousel nhưng không liên hệ. */
|
|
3209
|
+
EventId?: 1 | 2 | 3 | number;
|
|
3210
|
+
/** Bí danh tương thích ngược cho EventId. */
|
|
3211
|
+
EventType?: 1 | 2 | 3 | number;
|
|
3212
|
+
/** Khoảng thời gian lưu vết người dùng (1 đến 90 ngày). */
|
|
3213
|
+
NumDays: number;
|
|
3214
|
+
/** Danh sách publicId hoặc ID số của các Mini Page template Tin nhắn. */
|
|
3215
|
+
PageIds: string[];
|
|
3216
|
+
}
|
|
3217
|
+
/** Tạo mới Nhóm đối tượng phát sinh sự kiện trên Kịch bản Tin nhắn cá nhân (`caType = 14` - `MESSAGE_PERSONAL_EVENT_AUDIENCE`). */
|
|
3218
|
+
type ZaloAdsCreateMessagePersonalEventAudienceRequest = {
|
|
3219
|
+
name: string;
|
|
3220
|
+
caType?: 14;
|
|
3221
|
+
targeting: string | ZaloAdsMessagePersonalEventAudienceTargetingDto;
|
|
3222
|
+
};
|
|
3223
|
+
type ZaloAdsCreateMessagePersonalEventAudienceResponse = ZaloAdsCreateCustomAudienceResponse;
|
|
3224
|
+
/** Cấu hình targeting cho Nhóm đối tượng Trung tâm Lead - Zalo Form (`caType = 10`). */
|
|
3225
|
+
interface ZaloAdsFormLeadAudienceTargetingDto {
|
|
3226
|
+
Name: string;
|
|
3227
|
+
FormAudienceId: string | number;
|
|
3228
|
+
Total: number;
|
|
3229
|
+
IsCommerce?: false;
|
|
3230
|
+
}
|
|
3231
|
+
/** Tạo mới Nhóm đối tượng từ Trung tâm Lead - Zalo Form (`caType = 10` - `FORM_AUDIENCE`). */
|
|
3232
|
+
type ZaloAdsCreateFormLeadAudienceRequest = {
|
|
3233
|
+
name: string;
|
|
3234
|
+
caType?: 10;
|
|
3235
|
+
targeting: string | ZaloAdsFormLeadAudienceTargetingDto;
|
|
3236
|
+
};
|
|
3237
|
+
type ZaloAdsCreateFormLeadAudienceResponse = ZaloAdsCreateCustomAudienceResponse;
|
|
3238
|
+
/** Cấu hình targeting cho Nhóm đối tượng Trung tâm Lead - Commerce Form (`caType = 15`). */
|
|
3239
|
+
interface ZaloAdsCommerceFormAudienceTargetingDto {
|
|
3240
|
+
Name: string;
|
|
3241
|
+
FormAudienceId: string | number;
|
|
3242
|
+
Total: number;
|
|
3243
|
+
IsCommerce: true;
|
|
3244
|
+
}
|
|
3245
|
+
/** Tạo mới Nhóm đối tượng từ Trung tâm Lead - Commerce Form (`caType = 15` - `COMMERCE_FORM_AUDIENCE`). */
|
|
3246
|
+
type ZaloAdsCreateCommerceFormAudienceRequest = {
|
|
3247
|
+
name: string;
|
|
3248
|
+
caType?: 15;
|
|
3249
|
+
targeting: string | ZaloAdsCommerceFormAudienceTargetingDto;
|
|
3250
|
+
};
|
|
3251
|
+
type ZaloAdsCreateCommerceFormAudienceResponse = ZaloAdsCreateCustomAudienceResponse;
|
|
3252
|
+
/** Cấu hình targeting cho Nhóm đối tượng Trung tâm Lead - Kịch bản Tin nhắn OA (`caType = 13`). */
|
|
3253
|
+
interface ZaloAdsMessageOaLeadAudienceTargetingDto {
|
|
3254
|
+
Name: string;
|
|
3255
|
+
MessageOAAudienceId: string | number;
|
|
3256
|
+
Total: number;
|
|
3257
|
+
}
|
|
3258
|
+
/** Tạo mới Nhóm đối tượng từ Trung tâm Lead - Kịch bản Tin nhắn OA (`caType = 13` - `MESSAGE_OA_AUDIENCE`). */
|
|
3259
|
+
type ZaloAdsCreateMessageOaLeadAudienceRequest = {
|
|
3260
|
+
name: string;
|
|
3261
|
+
caType?: 13;
|
|
3262
|
+
targeting: string | ZaloAdsMessageOaLeadAudienceTargetingDto;
|
|
3263
|
+
};
|
|
3264
|
+
type ZaloAdsCreateMessageOaLeadAudienceResponse = ZaloAdsCreateCustomAudienceResponse;
|
|
3265
|
+
/** Cấu hình targeting cho Nhóm đối tượng Dữ liệu chuyển đổi Lead Signal (`caType = 16`). */
|
|
3266
|
+
interface ZaloAdsLeadSignalAudienceTargetingDto {
|
|
3267
|
+
/** ID số của Official Account có dữ liệu chuyển đổi. */
|
|
3268
|
+
OaId: number;
|
|
3269
|
+
/** Tên nhãn sự kiện chuyển đổi. */
|
|
3270
|
+
Label: string;
|
|
3271
|
+
/** Mức điều chỉnh độ rộng đối tượng từ 1 đến 20 (mặc định: 5). */
|
|
3272
|
+
SegmentCount: number;
|
|
3273
|
+
/** Ước tính số người tiếp cận (Math.round(A30 / 20 * SegmentCount)). */
|
|
3274
|
+
Total: number;
|
|
3275
|
+
}
|
|
3276
|
+
/** Tạo mới Nhóm đối tượng từ Dữ liệu chuyển đổi Lead Signal (`caType = 16` - `LEAD_SIGNAL_AUDIENCE`). */
|
|
3277
|
+
type ZaloAdsCreateLeadSignalAudienceRequest = {
|
|
3278
|
+
name: string;
|
|
3279
|
+
caType?: 16;
|
|
3280
|
+
targeting: string | ZaloAdsLeadSignalAudienceTargetingDto;
|
|
3281
|
+
};
|
|
3282
|
+
type ZaloAdsCreateLeadSignalAudienceResponse = ZaloAdsCreateCustomAudienceResponse;
|
|
3283
|
+
/** Lấy số liệu báo cáo tổng quan Dashboard (GET https://ads.zalo.me/reportapi/report/overview). */
|
|
3284
|
+
type ZaloAdsGetReportOverviewRequest = {
|
|
3285
|
+
/** Chuỗi JSON mã hóa URL, ví dụ: '{"StartDate":1768755600,"EndDate":1768928399}' */
|
|
3286
|
+
data: string;
|
|
3287
|
+
};
|
|
3288
|
+
type ZaloAdsGetReportOverviewResponse = {
|
|
3289
|
+
code: number;
|
|
3290
|
+
data: Record<string, Record<string, number>>;
|
|
3291
|
+
extend?: {
|
|
3292
|
+
totalUniqueUser?: number;
|
|
3293
|
+
};
|
|
3294
|
+
};
|
|
3295
|
+
/** Lấy báo cáo nhân khẩu học của chiến dịch hoặc quảng cáo (GET https://ads.zalo.me/api/demographics/report). */
|
|
3296
|
+
type ZaloAdsGetDemographicsReportRequest = {
|
|
3297
|
+
campaignId: number;
|
|
3298
|
+
adId: number;
|
|
3299
|
+
startDate: number;
|
|
3300
|
+
endDate: number;
|
|
3301
|
+
agencyId?: number;
|
|
3302
|
+
from?: number;
|
|
3303
|
+
to?: number;
|
|
3304
|
+
};
|
|
3305
|
+
type ZaloAdsGetDemographicsReportResponse = {
|
|
3306
|
+
cAgeGender?: Record<string, number>;
|
|
3307
|
+
iAgeGender?: Record<string, number>;
|
|
3308
|
+
location?: Record<string, unknown>;
|
|
3309
|
+
};
|
|
3310
|
+
/** Xóa cấu hình báo cáo tùy chỉnh theo ID (POST https://ads.zalo.me/reportapi/custom-report/delete/{id}). */
|
|
3311
|
+
type ZaloAdsDeleteCustomReportRequest = {
|
|
3312
|
+
id: number | string;
|
|
3313
|
+
};
|
|
3314
|
+
type ZaloAdsDeleteCustomReportResponse = {
|
|
3315
|
+
code?: number;
|
|
3316
|
+
msg?: string;
|
|
3317
|
+
data?: unknown;
|
|
3318
|
+
};
|
|
3319
|
+
/** Lấy danh sách các bộ lọc báo cáo đã lưu (GET https://ads.zalo.me/reportapi/api/filter/list). */
|
|
3320
|
+
type ZaloAdsListReportFiltersRequest = {
|
|
3321
|
+
/** 0: all/chung, 1: campaign, 2: ad */
|
|
3322
|
+
model: number | string;
|
|
3323
|
+
};
|
|
3324
|
+
type ZaloAdsListReportFiltersResponse = Array<{
|
|
3325
|
+
id: number;
|
|
3326
|
+
name: string;
|
|
3327
|
+
content: string;
|
|
3328
|
+
model: number;
|
|
3329
|
+
}>;
|
|
2943
3330
|
|
|
2944
|
-
/**
|
|
3331
|
+
/**
|
|
3332
|
+
* Tham số đầu vào cho method tiện ích `uploadAndSaveImage`
|
|
3333
|
+
* (Tự động thực hiện 2 bước: upload lên CDN rồi lưu vào Thư viện Media Zalo Ads).
|
|
3334
|
+
*/
|
|
3335
|
+
interface ZaloUploadAndSaveImageRequest {
|
|
3336
|
+
/**
|
|
3337
|
+
* Tệp ảnh cần tải lên:
|
|
3338
|
+
* - Buffer / Uint8Array / ArrayBuffer (ví dụ: `req.file.buffer` từ Multer trong NestJS/Express)
|
|
3339
|
+
* - Web Blob / File
|
|
3340
|
+
* - URL công khai trên Internet (http/https hoặc data URI)
|
|
3341
|
+
*
|
|
3342
|
+
* (Lưu ý: Không hỗ trợ đường dẫn tệp cục bộ trên ổ cứng).
|
|
3343
|
+
*/
|
|
3344
|
+
file: FileInput;
|
|
3345
|
+
/**
|
|
3346
|
+
* Tên hiển thị của ảnh khi lưu vào Thư viện Media.
|
|
3347
|
+
* Nếu bỏ trống, SDK sẽ tự động trích xuất từ tên file hoặc tự sinh tên dựa trên timestamp.
|
|
3348
|
+
*/
|
|
3349
|
+
fileName?: string;
|
|
3350
|
+
/**
|
|
3351
|
+
* Chiều rộng ảnh (pixels).
|
|
3352
|
+
* Tùy chọn; nếu không truyền và là file local/buffer, SDK sẽ tự động đọc header ảnh JPEG/PNG.
|
|
3353
|
+
*/
|
|
3354
|
+
width?: number;
|
|
3355
|
+
/**
|
|
3356
|
+
* Chiều cao ảnh (pixels).
|
|
3357
|
+
* Tùy chọn; nếu không truyền và là file local/buffer, SDK sẽ tự động đọc header ảnh JPEG/PNG.
|
|
3358
|
+
*/
|
|
3359
|
+
height?: number;
|
|
3360
|
+
/**
|
|
3361
|
+
* Loại tài nguyên media: 1 = Ảnh (mặc định là 1).
|
|
3362
|
+
*/
|
|
3363
|
+
type?: number;
|
|
3364
|
+
/**
|
|
3365
|
+
* URL ảnh thu nhỏ (thumbnail) nếu có.
|
|
3366
|
+
*/
|
|
3367
|
+
thumbUrl?: string;
|
|
3368
|
+
}
|
|
3369
|
+
/**
|
|
3370
|
+
* Kết quả trả về từ method `uploadAndSaveImage`.
|
|
3371
|
+
*/
|
|
3372
|
+
interface ZaloUploadAndSaveImageResult {
|
|
3373
|
+
/** Mã kết quả xử lý từ Zalo Ads (0 = thành công). */
|
|
3374
|
+
code: number;
|
|
3375
|
+
/** ID của media vừa được tạo trong Thư viện Zalo Ads (dùng để gán vào Creative/Banner). */
|
|
3376
|
+
mediaId: number;
|
|
3377
|
+
/** URL CDN trực tiếp của ảnh trên máy chủ Zalo (https://adtima-media.zascdn.me/...). */
|
|
3378
|
+
cdnUrl: string;
|
|
3379
|
+
/** Tên tệp đã lưu trong thư viện. */
|
|
3380
|
+
name: string;
|
|
3381
|
+
/** Chiều rộng ảnh (pixels). */
|
|
3382
|
+
width: number;
|
|
3383
|
+
/** Chiều cao ảnh (pixels). */
|
|
3384
|
+
height: number;
|
|
3385
|
+
/** Loại media (1 = Ảnh). */
|
|
3386
|
+
type: number;
|
|
3387
|
+
/** Chi tiết phản hồi từ API upload ảnh (/api/member/upload-image). */
|
|
3388
|
+
rawUploadResponse: ZaloAdsPostApiMemberUploadImageResponse;
|
|
3389
|
+
/** Chi tiết phản hồi từ API lưu media (/api/media/save). */
|
|
3390
|
+
rawSaveResponse: ZaloAdsPostApiMediaSaveResponse;
|
|
3391
|
+
}
|
|
3392
|
+
/**
|
|
3393
|
+
* Tham số đầu vào cho method tiện ích `uploadAndSaveVideo`.
|
|
3394
|
+
*/
|
|
3395
|
+
interface ZaloUploadAndSaveVideoRequest {
|
|
3396
|
+
/**
|
|
3397
|
+
* Tệp video cần tải lên (Buffer, Uint8Array, Blob, File hoặc URL công khai .mp4).
|
|
3398
|
+
* Lưu ý: Không hỗ trợ đường dẫn tệp cục bộ trên ổ cứng.
|
|
3399
|
+
*/
|
|
3400
|
+
file: FileInput;
|
|
3401
|
+
/** Tên hiển thị của video trong Thư viện Media. */
|
|
3402
|
+
fileName?: string;
|
|
3403
|
+
/** Chiều rộng video (pixels). Mặc định 1920 hoặc tự truyền. */
|
|
3404
|
+
width?: number;
|
|
3405
|
+
/** Chiều cao video (pixels). Mặc định 1080 hoặc tự truyền. */
|
|
3406
|
+
height?: number;
|
|
3407
|
+
/** Thời lượng video tính bằng giây (tối đa 60s). */
|
|
3408
|
+
duration?: number;
|
|
3409
|
+
/** URL ảnh thu nhỏ (thumbnail poster) của video. */
|
|
3410
|
+
thumbUrl?: string;
|
|
3411
|
+
}
|
|
3412
|
+
/**
|
|
3413
|
+
* Kết quả trả về từ method `uploadAndSaveVideo`.
|
|
3414
|
+
*/
|
|
3415
|
+
interface ZaloUploadAndSaveVideoResult {
|
|
3416
|
+
code: number;
|
|
3417
|
+
mediaId: number;
|
|
3418
|
+
cdnUrl: string;
|
|
3419
|
+
name: string;
|
|
3420
|
+
width: number;
|
|
3421
|
+
height: number;
|
|
3422
|
+
duration?: number;
|
|
3423
|
+
type: number;
|
|
3424
|
+
rawUploadResponse: ZaloAdsUploadVideoResponse;
|
|
3425
|
+
rawSaveResponse: ZaloAdsPostApiMediaSaveResponse;
|
|
3426
|
+
}
|
|
3427
|
+
/**
|
|
3428
|
+
* Kết quả kiểm tra tính hợp lệ của tài nguyên media (Ảnh hoặc Video).
|
|
3429
|
+
*/
|
|
3430
|
+
interface MediaValidationResult {
|
|
3431
|
+
/** Trạng thái hợp lệ (true nếu vượt qua toàn bộ quy chuẩn, false nếu có lỗi). */
|
|
3432
|
+
isValid: boolean;
|
|
3433
|
+
/** Mã trạng thái: 'VALID' | 'INVALID'. */
|
|
3434
|
+
status: "VALID" | "INVALID";
|
|
3435
|
+
/** Danh sách các thông báo lỗi nếu vi phạm tiêu chí kỹ thuật. Rỗng khi isValid = true. */
|
|
3436
|
+
errors: string[];
|
|
3437
|
+
/** Tóm tắt metadata đã phân tích được từ tệp. */
|
|
3438
|
+
metadata: {
|
|
3439
|
+
fileDetected: boolean;
|
|
3440
|
+
sizeBytes?: number;
|
|
3441
|
+
width?: number;
|
|
3442
|
+
height?: number;
|
|
3443
|
+
durationSeconds?: number;
|
|
3444
|
+
format?: string;
|
|
3445
|
+
aspectRatio?: string;
|
|
3446
|
+
};
|
|
3447
|
+
}
|
|
3448
|
+
/**
|
|
3449
|
+
* Dữ liệu đầu vào để kiểm tra tính hợp lệ của Ảnh.
|
|
3450
|
+
* Hỗ trợ nhận trực tiếp tệp (Buffer, Blob, path) hoặc metadata do backend (multer/busboy) trích xuất sẵn.
|
|
3451
|
+
*
|
|
3452
|
+
* Tiêu chuẩn quy định:
|
|
3453
|
+
* - "No file chosen": Bắt buộc phải có tệp.
|
|
3454
|
+
* - Dung lượng: Tối đa 2MB (2,097,152 bytes).
|
|
3455
|
+
* - Kích thước tối thiểu: 150x150 pixels.
|
|
3456
|
+
* - Định dạng: .JPG, .JPEG, .PNG.
|
|
3457
|
+
*/
|
|
3458
|
+
interface ValidateImageInput {
|
|
3459
|
+
/** Tệp ảnh (Buffer, Blob, Uint8Array, đường dẫn file local trong Node.js, hoặc đối tượng có trường size). */
|
|
3460
|
+
file?: FileInput | {
|
|
3461
|
+
size?: number;
|
|
3462
|
+
buffer?: Uint8Array;
|
|
3463
|
+
mimetype?: string;
|
|
3464
|
+
originalname?: string;
|
|
3465
|
+
} | null;
|
|
3466
|
+
/** Dung lượng file tính bằng bytes (nếu truyền từ backend multipart/multer). */
|
|
3467
|
+
sizeBytes?: number;
|
|
3468
|
+
/** Chiều rộng ảnh tính bằng pixels (nếu đã phân tích sẵn). */
|
|
3469
|
+
width?: number;
|
|
3470
|
+
/** Chiều cao ảnh tính bằng pixels (nếu đã phân tích sẵn). */
|
|
3471
|
+
height?: number;
|
|
3472
|
+
/** Định dạng tệp / MIME type (ví dụ: 'image/jpeg', 'image/png', '.jpg', '.png'). */
|
|
3473
|
+
format?: string;
|
|
3474
|
+
/** Tên tệp gốc (ví dụ: 'banner.png'). */
|
|
3475
|
+
fileName?: string;
|
|
3476
|
+
}
|
|
3477
|
+
/**
|
|
3478
|
+
* Dữ liệu đầu vào để kiểm tra tính hợp lệ của Video.
|
|
3479
|
+
* Hỗ trợ nhận trực tiếp tệp hoặc metadata do backend trích xuất sẵn.
|
|
3480
|
+
*
|
|
3481
|
+
* Tiêu chuẩn quy định:
|
|
3482
|
+
* - "No file chosen": Bắt buộc phải có tệp.
|
|
3483
|
+
* - Định dạng: .MP4 H.264.
|
|
3484
|
+
* - Dung lượng: Tối đa 150MB (157,286,400 bytes).
|
|
3485
|
+
* - Thời lượng: Tối đa 60 giây.
|
|
3486
|
+
* - Tỉ lệ khung hình: 16:9, 9:16 hoặc 1:1.
|
|
3487
|
+
*/
|
|
3488
|
+
interface ValidateVideoInput {
|
|
3489
|
+
/** Tệp video (Buffer, Blob, Uint8Array, đường dẫn file local, hoặc multer file object). */
|
|
3490
|
+
file?: FileInput | {
|
|
3491
|
+
size?: number;
|
|
3492
|
+
buffer?: Uint8Array;
|
|
3493
|
+
mimetype?: string;
|
|
3494
|
+
originalname?: string;
|
|
3495
|
+
} | null;
|
|
3496
|
+
/** Dung lượng video tính bằng bytes. */
|
|
3497
|
+
sizeBytes?: number;
|
|
3498
|
+
/** Thời lượng video tính bằng giây (tối đa 60 giây). */
|
|
3499
|
+
durationSeconds?: number;
|
|
3500
|
+
/** Chiều rộng video tính bằng pixels (dùng để tính tỉ lệ khung hình). */
|
|
3501
|
+
width?: number;
|
|
3502
|
+
/** Chiều cao video tính bằng pixels (dùng để tính tỉ lệ khung hình). */
|
|
3503
|
+
height?: number;
|
|
3504
|
+
/** Định dạng tệp hoặc codec (ví dụ: '.mp4', 'video/mp4', 'h264'). */
|
|
3505
|
+
format?: string;
|
|
3506
|
+
/** Tên tệp video gốc (ví dụ: 'promo.mp4'). */
|
|
3507
|
+
fileName?: string;
|
|
3508
|
+
}
|
|
2945
3509
|
|
|
2946
|
-
|
|
2947
|
-
|
|
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
|
+
declare class ZaloCampaignsService {
|
|
3515
|
+
protected readonly client: ZaloSdkHttpClient;
|
|
2948
3516
|
constructor(client: ZaloSdkHttpClient);
|
|
2949
3517
|
updateVideoAd(request: ZaloAdsUpdateVideoAdRequest, options?: RequestOptions): Promise<ZaloAdsUpdateVideoAdResponse>;
|
|
2950
|
-
createFlow(request: ZaloAdsCreateFlowRequest, options?: RequestOptions): Promise<ZaloAdsCreateFlowResponse>;
|
|
2951
|
-
updateFlow(request: ZaloAdsUpdateFlowRequest, options?: RequestOptions): Promise<ZaloAdsUpdateFlowResponse>;
|
|
2952
|
-
listFlowsByOfficialAccount(request: ZaloAdsListFlowsByOfficialAccountRequest, options?: RequestOptions): Promise<ZaloAdsListFlowsByOfficialAccountResponse>;
|
|
2953
3518
|
changeCampaignStatus(request: ZaloAdsChangeCampaignStatusRequest, options?: RequestOptions): Promise<ZaloAdsChangeCampaignStatusResponse>;
|
|
2954
3519
|
deleteCampaign(request: ZaloAdsDeleteCampaignRequest, options?: RequestOptions): Promise<ZaloAdsDeleteCampaignResponse>;
|
|
2955
|
-
createCustomAudience(request: ZaloAdsCreateCustomAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreateCustomAudienceResponse>;
|
|
2956
3520
|
createWebsiteCampaign(request: ZaloAdsCreateWebsiteCampaignRequest, options?: RequestOptions): Promise<ZaloAdsCreateWebsiteCampaignResponse>;
|
|
2957
3521
|
updateWebsiteAd(request: ZaloAdsUpdateWebsiteAdRequest, options?: RequestOptions): Promise<ZaloAdsUpdateWebsiteAdResponse>;
|
|
2958
3522
|
createDisplayCampaign(request: ZaloAdsCreateDisplayCampaignRequest, options?: RequestOptions): Promise<ZaloAdsCreateDisplayCampaignResponse>;
|
|
@@ -2970,37 +3534,10 @@ declare class ZaloAdsService {
|
|
|
2970
3534
|
createPostCampaign(request: ZaloAdsCreatePostCampaignRequest, options?: RequestOptions): Promise<ZaloAdsCreatePostCampaignResponse>;
|
|
2971
3535
|
/** Alias theo tên tool chuẩn `zalo_ads_create_article_campaign` trong Project Schema Zalo ADS (`campaignType = 4`). */
|
|
2972
3536
|
createArticleCampaign(request: ZaloAdsCreateArticleCampaignRequest, options?: RequestOptions): Promise<ZaloAdsCreateArticleCampaignResponse>;
|
|
2973
|
-
listAutomatedRules(request?: ZaloAdsListAutomatedRulesRequest, options?: RequestOptions): Promise<ZaloAdsListAutomatedRulesResponse>;
|
|
2974
|
-
createAutomatedRule(request: ZaloAdsCreateAutomatedRuleRequest, options?: RequestOptions): Promise<ZaloAdsCreateAutomatedRuleResponse>;
|
|
2975
|
-
updateAutomatedRule(request: ZaloAdsUpdateAutomatedRuleRequest, options?: RequestOptions): Promise<ZaloAdsUpdateAutomatedRuleResponse>;
|
|
2976
|
-
changeAutomatedRuleStatus(request: ZaloAdsChangeAutomatedRuleStatusRequest, options?: RequestOptions): Promise<ZaloAdsChangeAutomatedRuleStatusResponse>;
|
|
2977
|
-
getAutomatedRuleHistory(request: ZaloAdsGetAutomatedRuleHistoryRequest, options?: RequestOptions): Promise<ZaloAdsGetAutomatedRuleHistoryResponse>;
|
|
2978
|
-
deleteAutomatedRule(request: ZaloAdsDeleteAutomatedRuleRequest, options?: RequestOptions): Promise<ZaloAdsDeleteAutomatedRuleResponse>;
|
|
2979
|
-
createConversion(request: ZaloAdsCreateConversionRequest, options?: RequestOptions): Promise<ZaloAdsCreateConversionResponse>;
|
|
2980
|
-
deleteConversion(request: ZaloAdsDeleteConversionRequest, options?: RequestOptions): Promise<ZaloAdsDeleteConversionResponse>;
|
|
2981
|
-
deleteCustomAudience(request: ZaloAdsDeleteCustomAudienceRequest, options?: RequestOptions): Promise<ZaloAdsDeleteCustomAudienceResponse>;
|
|
2982
3537
|
getAdById(request?: ZaloAdsGetAdByIdRequest, options?: RequestOptions): Promise<ZaloAdsGetAdByIdResponse>;
|
|
2983
3538
|
getAdChangeLog(request: ZaloAdsGetAdChangeLogRequest, options?: RequestOptions): Promise<ZaloAdsGetAdChangeLogResponse>;
|
|
2984
|
-
getApiAdGetlistadadvancetargeting(request?: ZaloAdsGetApiAdGetlistadadvancetargetingRequest, options?: RequestOptions): Promise<ZaloAdsGetApiAdGetlistadadvancetargetingResponse>;
|
|
2985
|
-
getApiBaAccountAllaccessors(request?: ZaloAdsGetApiBaAccountAllaccessorsRequest, options?: RequestOptions): Promise<ZaloAdsGetApiBaAccountAllaccessorsResponse>;
|
|
2986
|
-
getApiBaAccountAllgrantedmembers(request?: ZaloAdsGetApiBaAccountAllgrantedmembersRequest, options?: RequestOptions): Promise<ZaloAdsGetApiBaAccountAllgrantedmembersResponse>;
|
|
2987
|
-
getApiConversionAll(request?: ZaloAdsGetApiConversionAllRequest, options?: RequestOptions): Promise<ZaloAdsGetApiConversionAllResponse>;
|
|
2988
|
-
getApiConversionStandardEvents(request?: ZaloAdsGetApiConversionStandardEventsRequest, options?: RequestOptions): Promise<ZaloAdsGetApiConversionStandardEventsResponse>;
|
|
2989
|
-
getApiCustomAudienceAll(request?: ZaloAdsGetApiCustomAudienceAllRequest, options?: RequestOptions): Promise<ZaloAdsGetApiCustomAudienceAllResponse>;
|
|
2990
|
-
getApiFilegroups(request?: ZaloAdsGetApiFilegroupsRequest, options?: RequestOptions): Promise<ZaloAdsGetApiFilegroupsResponse>;
|
|
2991
|
-
getApiLpNews(request?: ZaloAdsGetApiLpNewsRequest, options?: RequestOptions): Promise<ZaloAdsGetApiLpNewsResponse>;
|
|
2992
|
-
getApiMediaItems(request: ZaloAdsGetApiMediaItemsRequest, options?: RequestOptions): Promise<ZaloAdsGetApiMediaItemsResponse>;
|
|
2993
|
-
getApiMemberFiles(request?: ZaloAdsGetApiMemberFilesRequest, options?: RequestOptions): Promise<ZaloAdsGetApiMemberFilesResponse>;
|
|
2994
|
-
getApiNotifiesHeader(request?: ZaloAdsGetApiNotifiesHeaderRequest, options?: RequestOptions): Promise<ZaloAdsGetApiNotifiesHeaderResponse>;
|
|
2995
|
-
getApiPaymentTransactionHistory(request: ZaloAdsGetApiPaymentTransactionHistoryRequest, options?: RequestOptions): Promise<ZaloAdsGetApiPaymentTransactionHistoryResponse>;
|
|
2996
3539
|
getApiPlaceGetalldistricts(request?: ZaloAdsGetApiPlaceGetalldistrictsRequest, options?: RequestOptions): Promise<ZaloAdsGetApiPlaceGetalldistrictsResponse>;
|
|
2997
3540
|
getApiSpellCheckV2(request: ZaloAdsGetApiSpellCheckV2Request, options?: RequestOptions): Promise<ZaloAdsGetApiSpellCheckV2Response>;
|
|
2998
|
-
getApiWhoami(request?: ZaloAdsGetApiWhoamiRequest, options?: RequestOptions): Promise<ZaloAdsGetApiWhoamiResponse>;
|
|
2999
|
-
getReportapiV2Ads(request: ZaloAdsGetReportapiV2AdsRequest, options?: RequestOptions): Promise<ZaloAdsGetReportapiV2AdsResponse>;
|
|
3000
|
-
getReportapiV2Campaigns(request?: ZaloAdsGetReportapiV2CampaignsRequest, options?: RequestOptions): Promise<ZaloAdsGetReportapiV2CampaignsResponse>;
|
|
3001
|
-
getReportapiV2UniqueUser(request?: ZaloAdsGetReportapiV2UniqueUserRequest, options?: RequestOptions): Promise<ZaloAdsGetReportapiV2UniqueUserResponse>;
|
|
3002
|
-
getReportapiV3Campaigns(request: ZaloAdsGetReportapiV3CampaignsRequest, options?: RequestOptions): Promise<ZaloAdsGetReportapiV3CampaignsResponse>;
|
|
3003
|
-
getZaapiCampaignReportcampaign(request?: ZaloAdsGetZaapiCampaignReportcampaignRequest, options?: RequestOptions): Promise<ZaloAdsGetZaapiCampaignReportcampaignResponse>;
|
|
3004
3541
|
getZaapiCheckcamphasmanyads(request?: ZaloAdsGetZaapiCheckcamphasmanyadsRequest, options?: RequestOptions): Promise<ZaloAdsGetZaapiCheckcamphasmanyadsResponse>;
|
|
3005
3542
|
getZaapiGetadsfromcampaignid(request?: ZaloAdsGetZaapiGetadsfromcampaignidRequest, options?: RequestOptions): Promise<ZaloAdsGetZaapiGetadsfromcampaignidResponse>;
|
|
3006
3543
|
getZaapiGetallpages(request?: ZaloAdsGetZaapiGetallpagesRequest, options?: RequestOptions): Promise<ZaloAdsGetZaapiGetallpagesResponse>;
|
|
@@ -3009,16 +3546,8 @@ declare class ZaloAdsService {
|
|
|
3009
3546
|
getOwnedArticles(request: ZaloAdsGetZaapiGetownedarticlesRequest, options?: RequestOptions): Promise<ZaloAdsGetZaapiGetownedarticlesResponse>;
|
|
3010
3547
|
getZaapiGetownedpages(request?: ZaloAdsGetZaapiGetownedpagesRequest, options?: RequestOptions): Promise<ZaloAdsGetZaapiGetownedpagesResponse>;
|
|
3011
3548
|
getOwnedPages(request?: ZaloAdsGetZaapiGetownedpagesRequest, options?: RequestOptions): Promise<ZaloAdsGetZaapiGetownedpagesResponse>;
|
|
3012
|
-
listAgencyCustomersWithBudget(request?: ZaloAdsListAgencyCustomersWithBudgetRequest, options?: RequestOptions): Promise<ZaloAdsListAgencyCustomersWithBudgetResponse>;
|
|
3013
|
-
listCustomReports(request?: ZaloAdsListCustomReportsRequest, options?: RequestOptions): Promise<ZaloAdsListCustomReportsResponse>;
|
|
3014
3549
|
listFormsByOfficialAccount(request: ZaloAdsListFormsByOfficialAccountRequest, options?: RequestOptions): Promise<ZaloAdsListFormsByOfficialAccountResponse>;
|
|
3015
3550
|
listMiniPagesByTemplate(request: ZaloAdsListMiniPagesByTemplateRequest, options?: RequestOptions): Promise<ZaloAdsListMiniPagesByTemplateResponse>;
|
|
3016
|
-
listPersonalPixelLabels(request?: ZaloAdsListPersonalPixelLabelsRequest, options?: RequestOptions): Promise<ZaloAdsListPersonalPixelLabelsResponse>;
|
|
3017
|
-
postApiAdEstimateaudience(request: ZaloAdsPostApiAdEstimateaudienceRequest, options?: RequestOptions): Promise<ZaloAdsPostApiAdEstimateaudienceResponse>;
|
|
3018
|
-
postApiMediaSave(request: ZaloAdsPostApiMediaSaveRequest, options?: RequestOptions): Promise<ZaloAdsPostApiMediaSaveResponse>;
|
|
3019
|
-
postApiMemberUploadImage(request: ZaloAdsPostApiMemberUploadImageRequest, options?: RequestOptions): Promise<ZaloAdsPostApiMemberUploadImageResponse>;
|
|
3020
|
-
/** Alias tiện lợi cho `postApiMemberUploadImage` (`POST /api/member/upload-image`). */
|
|
3021
|
-
uploadImage(request: ZaloAdsPostApiMemberUploadImageRequest, options?: RequestOptions): Promise<ZaloAdsPostApiMemberUploadImageResponse>;
|
|
3022
3551
|
postZaapiDeletead(request?: ZaloAdsPostZaapiDeleteadRequest, options?: RequestOptions): Promise<ZaloAdsPostZaapiDeleteadResponse>;
|
|
3023
3552
|
renameCampaign(request: ZaloAdsRenameCampaignRequest, options?: RequestOptions): Promise<ZaloAdsRenameCampaignResponse>;
|
|
3024
3553
|
updateEcommerceAd(request: ZaloAdsUpdateEcommerceAdRequest, options?: RequestOptions): Promise<ZaloAdsUpdateEcommerceAdResponse>;
|
|
@@ -3033,15 +3562,407 @@ declare class ZaloAdsService {
|
|
|
3033
3562
|
updatePostAd(request: ZaloAdsUpdatePostAdRequest, options?: RequestOptions): Promise<ZaloAdsUpdatePostAdResponse>;
|
|
3034
3563
|
/** Alias theo tên tool chuẩn `zalo_ads_update_article_ad` trong Project Schema Zalo ADS (`Type = 3`, gắn `ZaloFeedId`). */
|
|
3035
3564
|
updateArticleAd(request: ZaloAdsUpdateArticleAdRequest, options?: RequestOptions): Promise<ZaloAdsUpdateArticleAdResponse>;
|
|
3565
|
+
/** Xóa quảng cáo */
|
|
3566
|
+
deleteAd(...args: Parameters<this["postZaapiDeletead"]>): ReturnType<this["postZaapiDeletead"]>;
|
|
3567
|
+
/** Danh sách quận/huyện để nhắm mục tiêu */
|
|
3568
|
+
getAllDistricts(...args: Parameters<this["getApiPlaceGetalldistricts"]>): ReturnType<this["getApiPlaceGetalldistricts"]>;
|
|
3569
|
+
/** Kiểm tra chính tả văn bản quảng cáo */
|
|
3570
|
+
getSpellCheckV2(...args: Parameters<this["getApiSpellCheckV2"]>): ReturnType<this["getApiSpellCheckV2"]>;
|
|
3571
|
+
/**
|
|
3572
|
+
* Khởi tạo tác vụ kiểm tra chính tả và vi phạm quy chuẩn quảng cáo AI V3 (POST /api/spell-check/v3).
|
|
3573
|
+
*/
|
|
3574
|
+
createSpellCheckV3Job(request: ZaloAdsCreateSpellCheckV3JobRequest, options?: RequestOptions): Promise<ZaloAdsCreateSpellCheckV3JobResponse>;
|
|
3575
|
+
/**
|
|
3576
|
+
* Lấy kết quả kiểm tra chính tả AI V3 theo jobId (GET /api/spell-check/v3/{jobId}).
|
|
3577
|
+
*/
|
|
3578
|
+
getSpellCheckV3Job(request: ZaloAdsGetSpellCheckV3JobRequest, options?: RequestOptions): Promise<ZaloAdsGetSpellCheckV3JobResponse>;
|
|
3579
|
+
/**
|
|
3580
|
+
* Helper kiểm tra chính tả AI V3 trọn gói: Gửi kiểm tra và tự động polling cho đến khi hoàn thành (hoặc timeout).
|
|
3581
|
+
* @param request Tiêu đề (title) và chú thích (caption) cần kiểm tra.
|
|
3582
|
+
* @param pollIntervalMs Chu kỳ polling kiểm tra trạng thái (mặc định: 600ms).
|
|
3583
|
+
* @param timeoutMs Thời gian chờ tối đa (mặc định: 15.000ms = 15 giây).
|
|
3584
|
+
*/
|
|
3585
|
+
checkSpellV3AndWait(request: ZaloAdsCreateSpellCheckV3JobRequest, pollIntervalMs?: number, timeoutMs?: number, options?: RequestOptions): Promise<ZaloAdsGetSpellCheckV3JobResponse>;
|
|
3586
|
+
}
|
|
3587
|
+
|
|
3588
|
+
/**
|
|
3589
|
+
* Dịch vụ Quản lý Tài khoản & Thanh toán Zalo Ads (whoami, transactions, BA accessors, agency).
|
|
3590
|
+
*/
|
|
3591
|
+
|
|
3592
|
+
declare class ZaloAccountService {
|
|
3593
|
+
protected readonly client: ZaloSdkHttpClient;
|
|
3594
|
+
constructor(client: ZaloSdkHttpClient);
|
|
3595
|
+
getApiWhoami(request?: ZaloAdsGetApiWhoamiRequest, options?: RequestOptions): Promise<ZaloAdsGetApiWhoamiResponse>;
|
|
3596
|
+
getApiPaymentTransactionHistory(request: ZaloAdsGetApiPaymentTransactionHistoryRequest, options?: RequestOptions): Promise<ZaloAdsGetApiPaymentTransactionHistoryResponse>;
|
|
3597
|
+
getApiBaAccountAllaccessors(request?: ZaloAdsGetApiBaAccountAllaccessorsRequest, options?: RequestOptions): Promise<ZaloAdsGetApiBaAccountAllaccessorsResponse>;
|
|
3598
|
+
getApiBaAccountAllgrantedmembers(request?: ZaloAdsGetApiBaAccountAllgrantedmembersRequest, options?: RequestOptions): Promise<ZaloAdsGetApiBaAccountAllgrantedmembersResponse>;
|
|
3599
|
+
listAgencyCustomersWithBudget(request?: ZaloAdsListAgencyCustomersWithBudgetRequest, options?: RequestOptions): Promise<ZaloAdsListAgencyCustomersWithBudgetResponse>;
|
|
3600
|
+
getApiNotifiesHeader(request?: ZaloAdsGetApiNotifiesHeaderRequest, options?: RequestOptions): Promise<ZaloAdsGetApiNotifiesHeaderResponse>;
|
|
3601
|
+
getApiLpNews(request?: ZaloAdsGetApiLpNewsRequest, options?: RequestOptions): Promise<ZaloAdsGetApiLpNewsResponse>;
|
|
3602
|
+
/** Lấy thông tin tài khoản đang đăng nhập */
|
|
3603
|
+
getWhoami(...args: Parameters<this["getApiWhoami"]>): ReturnType<this["getApiWhoami"]>;
|
|
3604
|
+
/** Lịch sử giao dịch thanh toán */
|
|
3605
|
+
getPaymentTransactionHistory(...args: Parameters<this["getApiPaymentTransactionHistory"]>): ReturnType<this["getApiPaymentTransactionHistory"]>;
|
|
3606
|
+
/** Danh sách accessor tài khoản BA */
|
|
3607
|
+
getBaAccountAllAccessors(...args: Parameters<this["getApiBaAccountAllaccessors"]>): ReturnType<this["getApiBaAccountAllaccessors"]>;
|
|
3608
|
+
/** Danh sách thành viên được cấp quyền BA */
|
|
3609
|
+
getBaAccountAllGrantedMembers(...args: Parameters<this["getApiBaAccountAllgrantedmembers"]>): ReturnType<this["getApiBaAccountAllgrantedmembers"]>;
|
|
3610
|
+
/** Thông báo trên thanh tiêu đề */
|
|
3611
|
+
getNotifiesHeader(...args: Parameters<this["getApiNotifiesHeader"]>): ReturnType<this["getApiNotifiesHeader"]>;
|
|
3612
|
+
/** Tin tức landing page / bảng tin */
|
|
3613
|
+
getLpNews(...args: Parameters<this["getApiLpNews"]>): ReturnType<this["getApiLpNews"]>;
|
|
3614
|
+
}
|
|
3615
|
+
|
|
3616
|
+
declare class ZaloAudiencesService {
|
|
3617
|
+
protected readonly client: ZaloSdkHttpClient;
|
|
3618
|
+
static readonly validator: {
|
|
3619
|
+
readonly createSavedAudience: typeof validateCreateSavedAudienceRequest;
|
|
3620
|
+
readonly createPhoneAudience: typeof validateCreatePhoneAudienceRequest;
|
|
3621
|
+
readonly createLookalikeAudience: typeof validateCreateLookalikeAudienceRequest;
|
|
3622
|
+
readonly createFormEventAudience: typeof validateCreateFormEventAudienceRequest;
|
|
3623
|
+
readonly createMessageOaEventAudience: typeof validateCreateMessageOaEventAudienceRequest;
|
|
3624
|
+
readonly createMessagePersonalEventAudience: typeof validateCreateMessagePersonalEventAudienceRequest;
|
|
3625
|
+
readonly estimateAudience: typeof validateEstimateAudienceRequest;
|
|
3626
|
+
};
|
|
3627
|
+
constructor(client: ZaloSdkHttpClient);
|
|
3628
|
+
postApiAdEstimateaudience(request: ZaloAdsPostApiAdEstimateaudienceRequest, options?: RequestOptions): Promise<ZaloAdsPostApiAdEstimateaudienceResponse>;
|
|
3629
|
+
getApiAdGetlistadadvancetargeting(request?: ZaloAdsGetApiAdGetlistadadvancetargetingRequest, options?: RequestOptions): Promise<ZaloAdsGetApiAdGetlistadadvancetargetingResponse>;
|
|
3630
|
+
getApiCustomAudienceAll(request?: ZaloAdsGetApiCustomAudienceAllRequest, options?: RequestOptions): Promise<ZaloAdsGetApiCustomAudienceAllResponse>;
|
|
3631
|
+
createCustomAudience(request: ZaloAdsCreateCustomAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreateCustomAudienceResponse>;
|
|
3632
|
+
deleteCustomAudience(request: ZaloAdsDeleteCustomAudienceRequest, options?: RequestOptions): Promise<ZaloAdsDeleteCustomAudienceResponse>;
|
|
3036
3633
|
uploadCustomAudiencePhoneList(request: ZaloAdsUploadCustomAudiencePhoneListRequest, options?: RequestOptions): Promise<ZaloAdsUploadCustomAudiencePhoneListResponse>;
|
|
3037
|
-
|
|
3038
|
-
|
|
3634
|
+
/** Tạo mới 'Nhóm đối tượng đã lưu' (`caType = 1` - `DEFAULT`) trên Zalo Ads (`POST /api/ad/audience`). */
|
|
3635
|
+
createSavedAudience(request: ZaloAdsCreateSavedAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreateSavedAudienceResponse>;
|
|
3636
|
+
/** Tạo mới Nhóm đối tượng từ danh sách Số điện thoại (`caType = 3` - `PHONE_LIST`). */
|
|
3637
|
+
createPhoneAudience(request: ZaloAdsCreatePhoneAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreatePhoneAudienceResponse>;
|
|
3638
|
+
/** Tạo mới Nhóm đối tượng tương tự Lookalike (`caType = 6` - `LOOKALIKE`). */
|
|
3639
|
+
createLookalikeAudience(request: ZaloAdsCreateLookalikeAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreateLookalikeAudienceResponse>;
|
|
3640
|
+
/** Tạo mới Nhóm đối tượng phát sinh sự kiện trên Zalo Form (`caType = 12` - `FORM_EVENT_AUDIENCE`). */
|
|
3641
|
+
createFormEventAudience(request: ZaloAdsCreateFormEventAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreateFormEventAudienceResponse>;
|
|
3642
|
+
/** Tạo mới Nhóm đối tượng phát sinh sự kiện trên Kịch bản Tin nhắn OA (`caType = 11` - `MESSAGE_AUDIENCE`). */
|
|
3643
|
+
createMessageOaEventAudience(request: ZaloAdsCreateMessageOaEventAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreateMessageOaEventAudienceResponse>;
|
|
3644
|
+
/** Tạo mới Nhóm đối tượng phát sinh sự kiện trên Kịch bản Tin nhắn cá nhân (`caType = 14` - `MESSAGE_PERSONAL_EVENT_AUDIENCE`). */
|
|
3645
|
+
createMessagePersonalEventAudience(request: ZaloAdsCreateMessagePersonalEventAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreateMessagePersonalEventAudienceResponse>;
|
|
3646
|
+
/** Tạo mới Nhóm đối tượng từ Trung tâm Lead - Zalo Form (`caType = 10` - `FORM_AUDIENCE`). */
|
|
3647
|
+
createFormLeadAudience(request: ZaloAdsCreateFormLeadAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreateFormLeadAudienceResponse>;
|
|
3648
|
+
/** Tạo mới Nhóm đối tượng từ Trung tâm Lead - Commerce Form (`caType = 15` - `COMMERCE_FORM_AUDIENCE`). */
|
|
3649
|
+
createCommerceFormAudience(request: ZaloAdsCreateCommerceFormAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreateCommerceFormAudienceResponse>;
|
|
3650
|
+
/** Tạo mới Nhóm đối tượng từ Trung tâm Lead - Kịch bản Tin nhắn OA (`caType = 13` - `MESSAGE_OA_AUDIENCE`). */
|
|
3651
|
+
createMessageOaLeadAudience(request: ZaloAdsCreateMessageOaLeadAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreateMessageOaLeadAudienceResponse>;
|
|
3652
|
+
/** Tạo mới Nhóm đối tượng từ Dữ liệu chuyển đổi Lead Signal (`caType = 16` - `LEAD_SIGNAL_AUDIENCE`). */
|
|
3653
|
+
createLeadSignalAudience(request: ZaloAdsCreateLeadSignalAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreateLeadSignalAudienceResponse>;
|
|
3654
|
+
/** Ước tính quy mô đối tượng tiếp cận */
|
|
3655
|
+
estimateAudience(...args: Parameters<this["postApiAdEstimateaudience"]>): ReturnType<this["postApiAdEstimateaudience"]>;
|
|
3656
|
+
/** Danh sách toàn bộ nhóm đối tượng tùy chỉnh */
|
|
3657
|
+
listCustomAudiences(...args: Parameters<this["getApiCustomAudienceAll"]>): ReturnType<this["getApiCustomAudienceAll"]>;
|
|
3658
|
+
/** Danh sách cấu hình nhắm mục tiêu nâng cao */
|
|
3659
|
+
getListAdAdvanceTargeting(...args: Parameters<this["getApiAdGetlistadadvancetargeting"]>): ReturnType<this["getApiAdGetlistadadvancetargeting"]>;
|
|
3039
3660
|
}
|
|
3040
3661
|
|
|
3041
|
-
/**
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3662
|
+
/**
|
|
3663
|
+
* Dịch vụ Báo cáo & Thống kê Hiệu quả Zalo Ads (Campaigns, Ads, Demographics, Overview, Custom Reports).
|
|
3664
|
+
*/
|
|
3665
|
+
|
|
3666
|
+
declare class ZaloReportsService {
|
|
3667
|
+
protected readonly client: ZaloSdkHttpClient;
|
|
3668
|
+
constructor(client: ZaloSdkHttpClient);
|
|
3669
|
+
getReportapiV2Ads(request: ZaloAdsGetReportapiV2AdsRequest, options?: RequestOptions): Promise<ZaloAdsGetReportapiV2AdsResponse>;
|
|
3670
|
+
getReportapiV2Campaigns(request?: ZaloAdsGetReportapiV2CampaignsRequest, options?: RequestOptions): Promise<ZaloAdsGetReportapiV2CampaignsResponse>;
|
|
3671
|
+
getReportapiV2UniqueUser(request: ZaloAdsGetReportapiV2UniqueUserRequest, options?: RequestOptions): Promise<ZaloAdsGetReportapiV2UniqueUserResponse>;
|
|
3672
|
+
getReportapiV3Campaigns(request: ZaloAdsGetReportapiV3CampaignsRequest, options?: RequestOptions): Promise<ZaloAdsGetReportapiV3CampaignsResponse>;
|
|
3673
|
+
getReportOverview(request: ZaloAdsGetReportOverviewRequest, options?: RequestOptions): Promise<ZaloAdsGetReportOverviewResponse>;
|
|
3674
|
+
getDemographicsReport(request: ZaloAdsGetDemographicsReportRequest, options?: RequestOptions): Promise<ZaloAdsGetDemographicsReportResponse>;
|
|
3675
|
+
getZaapiCampaignReportcampaign(request: ZaloAdsGetZaapiCampaignReportcampaignRequest, options?: RequestOptions): Promise<ZaloAdsGetZaapiCampaignReportcampaignResponse>;
|
|
3676
|
+
listCustomReports(request?: ZaloAdsListCustomReportsRequest, options?: RequestOptions): Promise<ZaloAdsListCustomReportsResponse>;
|
|
3677
|
+
upsertCustomReport(request: ZaloAdsUpsertCustomReportRequest, options?: RequestOptions): Promise<ZaloAdsUpsertCustomReportResponse>;
|
|
3678
|
+
deleteCustomReport(request: ZaloAdsDeleteCustomReportRequest, options?: RequestOptions): Promise<ZaloAdsDeleteCustomReportResponse>;
|
|
3679
|
+
listReportFilters(request: ZaloAdsListReportFiltersRequest, options?: RequestOptions): Promise<ZaloAdsListReportFiltersResponse>;
|
|
3680
|
+
/** Báo cáo hiệu quả chiến dịch (API V3 - Khuyên dùng) */
|
|
3681
|
+
getCampaignReportV3(...args: Parameters<this["getReportapiV3Campaigns"]>): ReturnType<this["getReportapiV3Campaigns"]>;
|
|
3682
|
+
/** Báo cáo hiệu quả chiến dịch (API V2) */
|
|
3683
|
+
getCampaignReportV2(...args: Parameters<this["getReportapiV2Campaigns"]>): ReturnType<this["getReportapiV2Campaigns"]>;
|
|
3684
|
+
/** Báo cáo hiệu quả quảng cáo (API V2) */
|
|
3685
|
+
getAdsReportV2(...args: Parameters<this["getReportapiV2Ads"]>): ReturnType<this["getReportapiV2Ads"]>;
|
|
3686
|
+
/** Báo cáo người dùng tiếp cận duy nhất (Unique Reach) */
|
|
3687
|
+
getUniqueUserReport(...args: Parameters<this["getReportapiV2UniqueUser"]>): ReturnType<this["getReportapiV2UniqueUser"]>;
|
|
3688
|
+
/** Báo cáo chiến dịch theo ngày/tháng (Legacy ZAAPI) */
|
|
3689
|
+
getCampaignReportLegacy(...args: Parameters<this["getZaapiCampaignReportcampaign"]>): ReturnType<this["getZaapiCampaignReportcampaign"]>;
|
|
3690
|
+
}
|
|
3691
|
+
|
|
3692
|
+
/**
|
|
3693
|
+
* Dịch vụ Quản lý Chuyển đổi & Zalo Pixel (Conversions, Standard Events, Lead Signals, Pixel Labels).
|
|
3694
|
+
*/
|
|
3695
|
+
|
|
3696
|
+
declare class ZaloConversionsService {
|
|
3697
|
+
protected readonly client: ZaloSdkHttpClient;
|
|
3698
|
+
constructor(client: ZaloSdkHttpClient);
|
|
3699
|
+
createConversion(request: ZaloAdsCreateConversionRequest, options?: RequestOptions): Promise<ZaloAdsCreateConversionResponse>;
|
|
3700
|
+
deleteConversion(request: ZaloAdsDeleteConversionRequest, options?: RequestOptions): Promise<ZaloAdsDeleteConversionResponse>;
|
|
3701
|
+
getApiConversionAll(request?: ZaloAdsGetApiConversionAllRequest, options?: RequestOptions): Promise<ZaloAdsGetApiConversionAllResponse>;
|
|
3702
|
+
getApiConversionStandardEvents(request?: ZaloAdsGetApiConversionStandardEventsRequest, options?: RequestOptions): Promise<ZaloAdsGetApiConversionStandardEventsResponse>;
|
|
3703
|
+
listPersonalPixelLabels(request?: ZaloAdsListPersonalPixelLabelsRequest, options?: RequestOptions): Promise<ZaloAdsListPersonalPixelLabelsResponse>;
|
|
3704
|
+
/** Lấy danh sách tài khoản Zalo Official Account (OA) có dữ liệu chuyển đổi (Lead Signal) (`GET /api/ad/audience/leadSignal/oas`). */
|
|
3705
|
+
listLeadSignalOas(options?: RequestOptions): Promise<ZaloAdsListLeadSignalOasResponse>;
|
|
3706
|
+
/** Lấy danh sách rút gọn gồm ID và tên của toàn bộ các sự kiện chuyển đổi (Conversion) đã tạo trên tài khoản quảng cáo Zalo Ads (`GET /api/conversion/names`). */
|
|
3707
|
+
listConversionNames(request?: ZaloAdsListConversionNamesRequest, options?: RequestOptions): Promise<ZaloAdsListConversionNamesResponse>;
|
|
3708
|
+
/** Alias cho `listConversionNames` (`GET /api/conversion/names`). */
|
|
3709
|
+
getApiConversionNames(request?: ZaloAdsListConversionNamesRequest, options?: RequestOptions): Promise<ZaloAdsListConversionNamesResponse>;
|
|
3710
|
+
/** Danh sách toàn bộ sự kiện chuyển đổi */
|
|
3711
|
+
listConversions(...args: Parameters<this["getApiConversionAll"]>): ReturnType<this["getApiConversionAll"]>;
|
|
3712
|
+
/** Danh sách sự kiện chuyển đổi tiêu chuẩn */
|
|
3713
|
+
getConversionStandardEvents(...args: Parameters<this["getApiConversionStandardEvents"]>): ReturnType<this["getApiConversionStandardEvents"]>;
|
|
3714
|
+
}
|
|
3715
|
+
|
|
3716
|
+
/**
|
|
3717
|
+
* Dịch vụ Quản lý Quy tắc Tự động Zalo Ads (Automated Rules CRUD, Status, History).
|
|
3718
|
+
*/
|
|
3719
|
+
|
|
3720
|
+
declare class ZaloAutomatedRulesService {
|
|
3721
|
+
protected readonly client: ZaloSdkHttpClient;
|
|
3722
|
+
constructor(client: ZaloSdkHttpClient);
|
|
3723
|
+
listAutomatedRules(request?: ZaloAdsListAutomatedRulesRequest, options?: RequestOptions): Promise<ZaloAdsListAutomatedRulesResponse>;
|
|
3724
|
+
createAutomatedRule(request: ZaloAdsCreateAutomatedRuleRequest, options?: RequestOptions): Promise<ZaloAdsCreateAutomatedRuleResponse>;
|
|
3725
|
+
updateAutomatedRule(request: ZaloAdsUpdateAutomatedRuleRequest, options?: RequestOptions): Promise<ZaloAdsUpdateAutomatedRuleResponse>;
|
|
3726
|
+
changeAutomatedRuleStatus(request: ZaloAdsChangeAutomatedRuleStatusRequest, options?: RequestOptions): Promise<ZaloAdsChangeAutomatedRuleStatusResponse>;
|
|
3727
|
+
getAutomatedRuleHistory(request: ZaloAdsGetAutomatedRuleHistoryRequest, options?: RequestOptions): Promise<ZaloAdsGetAutomatedRuleHistoryResponse>;
|
|
3728
|
+
deleteAutomatedRule(request: ZaloAdsDeleteAutomatedRuleRequest, options?: RequestOptions): Promise<ZaloAdsDeleteAutomatedRuleResponse>;
|
|
3729
|
+
}
|
|
3730
|
+
|
|
3731
|
+
declare class ZaloFlowsService {
|
|
3732
|
+
protected readonly client: ZaloSdkHttpClient;
|
|
3733
|
+
/**
|
|
3734
|
+
* Bộ công cụ kiểm tra tính hợp lệ dữ liệu (Standalone Validators) cho Message Flows APIs.
|
|
3735
|
+
* Dùng để validate dữ liệu đầu vào trước khi lưu DB hoặc gọi Zalo Ads.
|
|
3736
|
+
*/
|
|
3737
|
+
static readonly validator: {
|
|
3738
|
+
readonly listFlowsByOfficialAccount: typeof validateListFlowsByOfficialAccountRequest;
|
|
3739
|
+
readonly createFlow: typeof validateCreateFlowRequest;
|
|
3740
|
+
readonly updateFlow: typeof validateUpdateFlowRequest;
|
|
3741
|
+
};
|
|
3742
|
+
readonly validator: {
|
|
3743
|
+
readonly listFlowsByOfficialAccount: typeof validateListFlowsByOfficialAccountRequest;
|
|
3744
|
+
readonly createFlow: typeof validateCreateFlowRequest;
|
|
3745
|
+
readonly updateFlow: typeof validateUpdateFlowRequest;
|
|
3746
|
+
};
|
|
3747
|
+
constructor(client: ZaloSdkHttpClient);
|
|
3748
|
+
listFlowsByOfficialAccount(request: ZaloAdsListFlowsByOfficialAccountRequest, options?: RequestOptions): Promise<ZaloAdsListFlowsByOfficialAccountResponse>;
|
|
3749
|
+
createFlow(request: ZaloAdsCreateFlowRequest, options?: RequestOptions): Promise<ZaloAdsCreateFlowResponse>;
|
|
3750
|
+
updateFlow(request: ZaloAdsUpdateFlowRequest, options?: RequestOptions): Promise<ZaloAdsUpdateFlowResponse>;
|
|
3751
|
+
}
|
|
3752
|
+
|
|
3753
|
+
/**
|
|
3754
|
+
* Zalo Ads Media & Assets Service (`https://ads.zalo.me`).
|
|
3755
|
+
* Quản lý kho hình ảnh, video, upload CDN, lưu thư viện Media, cắt ảnh (crop)
|
|
3756
|
+
* và cung cấp các tiện ích upload+save trọn gói cùng bộ validation độc lập cho backend.
|
|
3757
|
+
*/
|
|
3758
|
+
|
|
3759
|
+
declare class ZaloMediaService {
|
|
3760
|
+
private readonly client;
|
|
3761
|
+
constructor(client: ZaloSdkHttpClient);
|
|
3762
|
+
/**
|
|
3763
|
+
* Lấy danh sách ảnh, video trong thư viện Zalo Ads theo khoảng thời gian (`GET /api/media/items`).
|
|
3764
|
+
*/
|
|
3765
|
+
getApiMediaItems(request: ZaloAdsGetApiMediaItemsRequest, options?: RequestOptions): Promise<ZaloAdsGetApiMediaItemsResponse>;
|
|
3766
|
+
/**
|
|
3767
|
+
* Alias cho `getApiMediaItems`.
|
|
3768
|
+
*/
|
|
3769
|
+
listMediaItems(request: ZaloAdsGetApiMediaItemsRequest, options?: RequestOptions): Promise<ZaloAdsGetApiMediaItemsResponse>;
|
|
3770
|
+
/**
|
|
3771
|
+
* Lấy các tệp do thành viên hiện tại quản lý trong tài khoản quảng cáo (`GET /api/member/files`).
|
|
3772
|
+
*/
|
|
3773
|
+
getApiMemberFiles(request?: ZaloAdsGetApiMemberFilesRequest, options?: RequestOptions): Promise<ZaloAdsGetApiMemberFilesResponse>;
|
|
3774
|
+
/**
|
|
3775
|
+
* Alias cho `getApiMemberFiles`.
|
|
3776
|
+
*/
|
|
3777
|
+
listMemberFiles(request?: ZaloAdsGetApiMemberFilesRequest, options?: RequestOptions): Promise<ZaloAdsGetApiMemberFilesResponse>;
|
|
3778
|
+
/**
|
|
3779
|
+
* Lấy danh sách nhóm tệp trong kho media (`GET /api/filegroups`).
|
|
3780
|
+
*/
|
|
3781
|
+
getApiFilegroups(request?: ZaloAdsGetApiFilegroupsRequest, options?: RequestOptions): Promise<ZaloAdsGetApiFilegroupsResponse>;
|
|
3782
|
+
/**
|
|
3783
|
+
* Alias cho `getApiFilegroups`.
|
|
3784
|
+
*/
|
|
3785
|
+
listFilegroups(request?: ZaloAdsGetApiFilegroupsRequest, options?: RequestOptions): Promise<ZaloAdsGetApiFilegroupsResponse>;
|
|
3786
|
+
/**
|
|
3787
|
+
* Lưu tài nguyên media vào thư viện Zalo Ads sau khi đã có URL ảnh/video và metadata (`POST /api/media/save`).
|
|
3788
|
+
* Phản hồi trả về `{ code: 0, data: <MediaId> }`.
|
|
3789
|
+
*/
|
|
3790
|
+
postApiMediaSave(request: ZaloAdsPostApiMediaSaveRequest, options?: RequestOptions): Promise<ZaloAdsPostApiMediaSaveResponse>;
|
|
3791
|
+
/**
|
|
3792
|
+
* Alias cho `postApiMediaSave`.
|
|
3793
|
+
*/
|
|
3794
|
+
saveMedia(request: ZaloAdsPostApiMediaSaveRequest, options?: RequestOptions): Promise<ZaloAdsPostApiMediaSaveResponse>;
|
|
3795
|
+
/**
|
|
3796
|
+
* Tải ảnh lên kho media của tài khoản quảng cáo (`POST /api/member/upload-image`).
|
|
3797
|
+
* Sử dụng multipart/form-data với trường `File` (chữ hoa). Trả về URL CDN Adtima.
|
|
3798
|
+
*/
|
|
3799
|
+
postApiMemberUploadImage(request: ZaloAdsPostApiMemberUploadImageRequest, options?: RequestOptions): Promise<ZaloAdsPostApiMemberUploadImageResponse>;
|
|
3800
|
+
/**
|
|
3801
|
+
* Alias cho `postApiMemberUploadImage`.
|
|
3802
|
+
*/
|
|
3803
|
+
uploadImage(request: ZaloAdsPostApiMemberUploadImageRequest, options?: RequestOptions): Promise<ZaloAdsPostApiMemberUploadImageResponse>;
|
|
3804
|
+
/**
|
|
3805
|
+
* Tải video lên kho media của tài khoản quảng cáo (`POST /api/member/upload-video`).
|
|
3806
|
+
* Định dạng chuẩn .MP4 (H.264), tối đa 150MB. Trả về URL video trên Adtima CDN.
|
|
3807
|
+
*/
|
|
3808
|
+
uploadVideo(request: ZaloAdsUploadVideoRequest, options?: RequestOptions): Promise<ZaloAdsUploadVideoResponse>;
|
|
3809
|
+
/**
|
|
3810
|
+
* Tải ảnh và thiết lập vùng crop tạo asset dùng cho quảng cáo Zalo Ads (`POST /zaapi/UploadCrop`).
|
|
3811
|
+
*/
|
|
3812
|
+
updateNewAds(request: ZaloAdsUpdateNewAdsRequest, options?: RequestOptions): Promise<ZaloAdsUpdateNewAdsResponse>;
|
|
3813
|
+
/**
|
|
3814
|
+
* Alias cho `updateNewAds` (`POST /zaapi/UploadCrop`).
|
|
3815
|
+
*/
|
|
3816
|
+
uploadCrop(request: ZaloAdsUpdateNewAdsRequest, options?: RequestOptions): Promise<ZaloAdsUpdateNewAdsResponse>;
|
|
3817
|
+
/**
|
|
3818
|
+
* Method tiện ích trọn gói: Tự động tải ảnh lên CDN (`/api/member/upload-image`)
|
|
3819
|
+
* VÀ lưu vào Thư viện Zalo Ads (`/api/media/save`) trong cùng 1 lời gọi duy nhất.
|
|
3820
|
+
*
|
|
3821
|
+
* Trả về MediaId, URL CDN và kích thước để gắn ngay vào Creative/Quảng cáo.
|
|
3822
|
+
*/
|
|
3823
|
+
uploadAndSaveImage(request: ZaloUploadAndSaveImageRequest, options?: RequestOptions): Promise<ZaloUploadAndSaveImageResult>;
|
|
3824
|
+
/**
|
|
3825
|
+
* Method tiện ích trọn gói cho Video: Tự động tải video lên CDN (`/api/member/upload-video`)
|
|
3826
|
+
* VÀ lưu vào Thư viện Zalo Ads (`/api/media/save`) để cấp MediaId.
|
|
3827
|
+
*/
|
|
3828
|
+
uploadAndSaveVideo(request: ZaloUploadAndSaveVideoRequest, options?: RequestOptions): Promise<ZaloUploadAndSaveVideoResult>;
|
|
3829
|
+
/**
|
|
3830
|
+
* Kiểm tra tính hợp lệ của tệp Ảnh theo quy chuẩn Zalo Ads:
|
|
3831
|
+
* - "No file chosen": Bắt buộc phải có tệp.
|
|
3832
|
+
* - Dung lượng: Tối đa 2MB (2 * 1024 * 1024 bytes).
|
|
3833
|
+
* - Kích thước: Tối thiểu 150x150 pixels.
|
|
3834
|
+
* - Định dạng: Hỗ trợ .JPG, .JPEG, .PNG.
|
|
3835
|
+
*
|
|
3836
|
+
* Trả về `{ isValid: boolean, status: 'VALID' | 'INVALID', errors: string[], metadata: {...} }`.
|
|
3837
|
+
*/
|
|
3838
|
+
validateImage(input: ValidateImageInput): MediaValidationResult;
|
|
3839
|
+
/**
|
|
3840
|
+
* Kiểm tra tính hợp lệ của tệp Video theo quy chuẩn Zalo Ads:
|
|
3841
|
+
* - "No file chosen": Bắt buộc phải có tệp.
|
|
3842
|
+
* - Định dạng: .MP4 H.264.
|
|
3843
|
+
* - Dung lượng: Tối đa 150MB (150 * 1024 * 1024 bytes).
|
|
3844
|
+
* - Thời lượng: Tối đa 60 giây.
|
|
3845
|
+
* - Tỉ lệ khung hình: 16:9, 9:16 hoặc 1:1.
|
|
3846
|
+
*
|
|
3847
|
+
* Trả về `{ isValid: boolean, status: 'VALID' | 'INVALID', errors: string[], metadata: {...} }`.
|
|
3848
|
+
*/
|
|
3849
|
+
validateVideo(input: ValidateVideoInput): MediaValidationResult;
|
|
3850
|
+
}
|
|
3851
|
+
|
|
3852
|
+
/**
|
|
3853
|
+
* Zalo Ads API facade service.
|
|
3854
|
+
* Kế thừa toàn bộ API Chiến dịch & Quảng cáo từ `ZaloCampaignsService`,
|
|
3855
|
+
* đồng thời tích hợp và điều phối các module chuyên biệt:
|
|
3856
|
+
* - `account`: Quản lý tài khoản, phân quyền BA, thanh toán (`ZaloAccountService`)
|
|
3857
|
+
* - `audiences`: Nhóm đối tượng tùy chỉnh, Lookalike, Event/Lead Audiences (`ZaloAudiencesService`)
|
|
3858
|
+
* - `reports`: Báo cáo chiến dịch, quảng cáo, nhân khẩu học, báo cáo tùy chỉnh (`ZaloReportsService`)
|
|
3859
|
+
* - `conversions`: Sự kiện chuyển đổi, Zalo Pixel (`ZaloConversionsService`)
|
|
3860
|
+
* - `automatedRules`: Quy tắc tự động (`ZaloAutomatedRulesService`)
|
|
3861
|
+
* - `flows`: Kịch bản tin nhắn OA (`ZaloFlowsService`)
|
|
3862
|
+
* - `media`: Thư viện tài nguyên & tải lên ảnh/video (`ZaloMediaService`)
|
|
3863
|
+
*/
|
|
3864
|
+
|
|
3865
|
+
declare class ZaloAdsService extends ZaloCampaignsService {
|
|
3866
|
+
readonly account: ZaloAccountService;
|
|
3867
|
+
readonly audiences: ZaloAudiencesService;
|
|
3868
|
+
readonly targeting: ZaloAudiencesService;
|
|
3869
|
+
readonly reports: ZaloReportsService;
|
|
3870
|
+
readonly conversions: ZaloConversionsService;
|
|
3871
|
+
readonly pixel: ZaloConversionsService;
|
|
3872
|
+
readonly automatedRules: ZaloAutomatedRulesService;
|
|
3873
|
+
readonly rules: ZaloAutomatedRulesService;
|
|
3874
|
+
readonly flows: ZaloFlowsService;
|
|
3875
|
+
readonly media: ZaloMediaService;
|
|
3876
|
+
readonly campaigns: ZaloCampaignsService;
|
|
3877
|
+
constructor(client: ZaloSdkHttpClient);
|
|
3878
|
+
getApiWhoami(request?: ZaloAdsGetApiWhoamiRequest, options?: RequestOptions): Promise<ZaloAdsGetApiWhoamiResponse>;
|
|
3879
|
+
getApiPaymentTransactionHistory(request: ZaloAdsGetApiPaymentTransactionHistoryRequest, options?: RequestOptions): Promise<ZaloAdsGetApiPaymentTransactionHistoryResponse>;
|
|
3880
|
+
getApiBaAccountAllaccessors(request?: ZaloAdsGetApiBaAccountAllaccessorsRequest, options?: RequestOptions): Promise<ZaloAdsGetApiBaAccountAllaccessorsResponse>;
|
|
3881
|
+
getApiBaAccountAllgrantedmembers(request?: ZaloAdsGetApiBaAccountAllgrantedmembersRequest, options?: RequestOptions): Promise<ZaloAdsGetApiBaAccountAllgrantedmembersResponse>;
|
|
3882
|
+
listAgencyCustomersWithBudget(request?: ZaloAdsListAgencyCustomersWithBudgetRequest, options?: RequestOptions): Promise<ZaloAdsListAgencyCustomersWithBudgetResponse>;
|
|
3883
|
+
getApiNotifiesHeader(request?: ZaloAdsGetApiNotifiesHeaderRequest, options?: RequestOptions): Promise<ZaloAdsGetApiNotifiesHeaderResponse>;
|
|
3884
|
+
getApiLpNews(request?: ZaloAdsGetApiLpNewsRequest, options?: RequestOptions): Promise<ZaloAdsGetApiLpNewsResponse>;
|
|
3885
|
+
postApiAdEstimateaudience(request: ZaloAdsPostApiAdEstimateaudienceRequest, options?: RequestOptions): Promise<ZaloAdsPostApiAdEstimateaudienceResponse>;
|
|
3886
|
+
getApiAdGetlistadadvancetargeting(request?: ZaloAdsGetApiAdGetlistadadvancetargetingRequest, options?: RequestOptions): Promise<ZaloAdsGetApiAdGetlistadadvancetargetingResponse>;
|
|
3887
|
+
getApiCustomAudienceAll(request?: ZaloAdsGetApiCustomAudienceAllRequest, options?: RequestOptions): Promise<ZaloAdsGetApiCustomAudienceAllResponse>;
|
|
3888
|
+
createCustomAudience(request: ZaloAdsCreateCustomAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreateCustomAudienceResponse>;
|
|
3889
|
+
deleteCustomAudience(request: ZaloAdsDeleteCustomAudienceRequest, options?: RequestOptions): Promise<ZaloAdsDeleteCustomAudienceResponse>;
|
|
3890
|
+
uploadCustomAudiencePhoneList(request: ZaloAdsUploadCustomAudiencePhoneListRequest, options?: RequestOptions): Promise<ZaloAdsUploadCustomAudiencePhoneListResponse>;
|
|
3891
|
+
/** Tạo mới 'Nhóm đối tượng đã lưu' (`caType = 1` - `DEFAULT`) trên Zalo Ads (`POST /api/ad/audience`). */
|
|
3892
|
+
createSavedAudience(request: ZaloAdsCreateSavedAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreateSavedAudienceResponse>;
|
|
3893
|
+
/** Tạo mới Nhóm đối tượng từ danh sách Số điện thoại (`caType = 3` - `PHONE_LIST`). */
|
|
3894
|
+
createPhoneAudience(request: ZaloAdsCreatePhoneAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreatePhoneAudienceResponse>;
|
|
3895
|
+
/** Tạo mới Nhóm đối tượng tương tự Lookalike (`caType = 6` - `LOOKALIKE`). */
|
|
3896
|
+
createLookalikeAudience(request: ZaloAdsCreateLookalikeAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreateLookalikeAudienceResponse>;
|
|
3897
|
+
/** Tạo mới Nhóm đối tượng phát sinh sự kiện trên Zalo Form (`caType = 12` - `FORM_EVENT_AUDIENCE`). */
|
|
3898
|
+
createFormEventAudience(request: ZaloAdsCreateFormEventAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreateFormEventAudienceResponse>;
|
|
3899
|
+
/** Tạo mới Nhóm đối tượng phát sinh sự kiện trên Kịch bản Tin nhắn OA (`caType = 11` - `MESSAGE_AUDIENCE`). */
|
|
3900
|
+
createMessageOaEventAudience(request: ZaloAdsCreateMessageOaEventAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreateMessageOaEventAudienceResponse>;
|
|
3901
|
+
/** Tạo mới Nhóm đối tượng phát sinh sự kiện trên Kịch bản Tin nhắn cá nhân (`caType = 14` - `MESSAGE_PERSONAL_EVENT_AUDIENCE`). */
|
|
3902
|
+
createMessagePersonalEventAudience(request: ZaloAdsCreateMessagePersonalEventAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreateMessagePersonalEventAudienceResponse>;
|
|
3903
|
+
/** Tạo mới Nhóm đối tượng từ Trung tâm Lead - Zalo Form (`caType = 10` - `FORM_AUDIENCE`). */
|
|
3904
|
+
createFormLeadAudience(request: ZaloAdsCreateFormLeadAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreateFormLeadAudienceResponse>;
|
|
3905
|
+
/** Tạo mới Nhóm đối tượng từ Trung tâm Lead - Commerce Form (`caType = 15` - `COMMERCE_FORM_AUDIENCE`). */
|
|
3906
|
+
createCommerceFormAudience(request: ZaloAdsCreateCommerceFormAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreateCommerceFormAudienceResponse>;
|
|
3907
|
+
/** Tạo mới Nhóm đối tượng từ Trung tâm Lead - Kịch bản Tin nhắn OA (`caType = 13` - `MESSAGE_OA_AUDIENCE`). */
|
|
3908
|
+
createMessageOaLeadAudience(request: ZaloAdsCreateMessageOaLeadAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreateMessageOaLeadAudienceResponse>;
|
|
3909
|
+
/** Tạo mới Nhóm đối tượng từ Dữ liệu chuyển đổi Lead Signal (`caType = 16` - `LEAD_SIGNAL_AUDIENCE`). */
|
|
3910
|
+
createLeadSignalAudience(request: ZaloAdsCreateLeadSignalAudienceRequest, options?: RequestOptions): Promise<ZaloAdsCreateLeadSignalAudienceResponse>;
|
|
3911
|
+
getReportapiV2Ads(request: ZaloAdsGetReportapiV2AdsRequest, options?: RequestOptions): Promise<ZaloAdsGetReportapiV2AdsResponse>;
|
|
3912
|
+
getReportapiV2Campaigns(request?: ZaloAdsGetReportapiV2CampaignsRequest, options?: RequestOptions): Promise<ZaloAdsGetReportapiV2CampaignsResponse>;
|
|
3913
|
+
getReportapiV2UniqueUser(request: ZaloAdsGetReportapiV2UniqueUserRequest, options?: RequestOptions): Promise<ZaloAdsGetReportapiV2UniqueUserResponse>;
|
|
3914
|
+
getReportapiV3Campaigns(request: ZaloAdsGetReportapiV3CampaignsRequest, options?: RequestOptions): Promise<ZaloAdsGetReportapiV3CampaignsResponse>;
|
|
3915
|
+
getReportOverview(request: ZaloAdsGetReportOverviewRequest, options?: RequestOptions): Promise<ZaloAdsGetReportOverviewResponse>;
|
|
3916
|
+
getDemographicsReport(request: ZaloAdsGetDemographicsReportRequest, options?: RequestOptions): Promise<ZaloAdsGetDemographicsReportResponse>;
|
|
3917
|
+
getZaapiCampaignReportcampaign(request: ZaloAdsGetZaapiCampaignReportcampaignRequest, options?: RequestOptions): Promise<ZaloAdsGetZaapiCampaignReportcampaignResponse>;
|
|
3918
|
+
listCustomReports(request?: ZaloAdsListCustomReportsRequest, options?: RequestOptions): Promise<ZaloAdsListCustomReportsResponse>;
|
|
3919
|
+
upsertCustomReport(request: ZaloAdsUpsertCustomReportRequest, options?: RequestOptions): Promise<ZaloAdsUpsertCustomReportResponse>;
|
|
3920
|
+
deleteCustomReport(request: ZaloAdsDeleteCustomReportRequest, options?: RequestOptions): Promise<ZaloAdsDeleteCustomReportResponse>;
|
|
3921
|
+
listReportFilters(request: ZaloAdsListReportFiltersRequest, options?: RequestOptions): Promise<ZaloAdsListReportFiltersResponse>;
|
|
3922
|
+
createConversion(request: ZaloAdsCreateConversionRequest, options?: RequestOptions): Promise<ZaloAdsCreateConversionResponse>;
|
|
3923
|
+
deleteConversion(request: ZaloAdsDeleteConversionRequest, options?: RequestOptions): Promise<ZaloAdsDeleteConversionResponse>;
|
|
3924
|
+
getApiConversionAll(request?: ZaloAdsGetApiConversionAllRequest, options?: RequestOptions): Promise<ZaloAdsGetApiConversionAllResponse>;
|
|
3925
|
+
getApiConversionStandardEvents(request?: ZaloAdsGetApiConversionStandardEventsRequest, options?: RequestOptions): Promise<ZaloAdsGetApiConversionStandardEventsResponse>;
|
|
3926
|
+
listPersonalPixelLabels(request?: ZaloAdsListPersonalPixelLabelsRequest, options?: RequestOptions): Promise<ZaloAdsListPersonalPixelLabelsResponse>;
|
|
3927
|
+
/** Lấy danh sách tài khoản Zalo Official Account (OA) có dữ liệu chuyển đổi (Lead Signal) (`GET /api/ad/audience/leadSignal/oas`). */
|
|
3928
|
+
listLeadSignalOas(options?: RequestOptions): Promise<ZaloAdsListLeadSignalOasResponse>;
|
|
3929
|
+
/** Lấy danh sách rút gọn gồm ID và tên của toàn bộ các sự kiện chuyển đổi (Conversion) đã tạo trên tài khoản quảng cáo Zalo Ads (`GET /api/conversion/names`). */
|
|
3930
|
+
listConversionNames(request?: ZaloAdsListConversionNamesRequest, options?: RequestOptions): Promise<ZaloAdsListConversionNamesResponse>;
|
|
3931
|
+
/** Alias cho `listConversionNames` (`GET /api/conversion/names`). */
|
|
3932
|
+
getApiConversionNames(request?: ZaloAdsListConversionNamesRequest, options?: RequestOptions): Promise<ZaloAdsListConversionNamesResponse>;
|
|
3933
|
+
listAutomatedRules(request?: ZaloAdsListAutomatedRulesRequest, options?: RequestOptions): Promise<ZaloAdsListAutomatedRulesResponse>;
|
|
3934
|
+
createAutomatedRule(request: ZaloAdsCreateAutomatedRuleRequest, options?: RequestOptions): Promise<ZaloAdsCreateAutomatedRuleResponse>;
|
|
3935
|
+
updateAutomatedRule(request: ZaloAdsUpdateAutomatedRuleRequest, options?: RequestOptions): Promise<ZaloAdsUpdateAutomatedRuleResponse>;
|
|
3936
|
+
changeAutomatedRuleStatus(request: ZaloAdsChangeAutomatedRuleStatusRequest, options?: RequestOptions): Promise<ZaloAdsChangeAutomatedRuleStatusResponse>;
|
|
3937
|
+
getAutomatedRuleHistory(request: ZaloAdsGetAutomatedRuleHistoryRequest, options?: RequestOptions): Promise<ZaloAdsGetAutomatedRuleHistoryResponse>;
|
|
3938
|
+
deleteAutomatedRule(request: ZaloAdsDeleteAutomatedRuleRequest, options?: RequestOptions): Promise<ZaloAdsDeleteAutomatedRuleResponse>;
|
|
3939
|
+
listFlowsByOfficialAccount(request: ZaloAdsListFlowsByOfficialAccountRequest, options?: RequestOptions): Promise<ZaloAdsListFlowsByOfficialAccountResponse>;
|
|
3940
|
+
createFlow(request: ZaloAdsCreateFlowRequest, options?: RequestOptions): Promise<ZaloAdsCreateFlowResponse>;
|
|
3941
|
+
updateFlow(request: ZaloAdsUpdateFlowRequest, options?: RequestOptions): Promise<ZaloAdsUpdateFlowResponse>;
|
|
3942
|
+
getApiFilegroups(request?: ZaloAdsGetApiFilegroupsRequest, options?: RequestOptions): Promise<ZaloAdsGetApiFilegroupsResponse>;
|
|
3943
|
+
getApiMediaItems(request: ZaloAdsGetApiMediaItemsRequest, options?: RequestOptions): Promise<ZaloAdsGetApiMediaItemsResponse>;
|
|
3944
|
+
getApiMemberFiles(request?: ZaloAdsGetApiMemberFilesRequest, options?: RequestOptions): Promise<ZaloAdsGetApiMemberFilesResponse>;
|
|
3945
|
+
postApiMediaSave(request: ZaloAdsPostApiMediaSaveRequest, options?: RequestOptions): Promise<ZaloAdsPostApiMediaSaveResponse>;
|
|
3946
|
+
postApiMemberUploadImage(request: ZaloAdsPostApiMemberUploadImageRequest, options?: RequestOptions): Promise<ZaloAdsPostApiMemberUploadImageResponse>;
|
|
3947
|
+
/** Alias tiện lợi cho `postApiMemberUploadImage` (`POST /api/member/upload-image`). */
|
|
3948
|
+
uploadImage(request: ZaloAdsPostApiMemberUploadImageRequest, options?: RequestOptions): Promise<ZaloAdsPostApiMemberUploadImageResponse>;
|
|
3949
|
+
uploadVideo(request: ZaloAdsUploadVideoRequest, options?: RequestOptions): Promise<ZaloAdsUploadVideoResponse>;
|
|
3950
|
+
/**
|
|
3951
|
+
* Kiểm tra tính hợp lệ của tệp Ảnh theo quy chuẩn Zalo Ads (độc lập cho backend).
|
|
3952
|
+
* Tiêu chí: Có file, Dung lượng tối đa 2MB, Kích thước tối thiểu 150x150, Định dạng JPG/PNG.
|
|
3953
|
+
*/
|
|
3954
|
+
validateImage(input: ValidateImageInput): MediaValidationResult;
|
|
3955
|
+
/**
|
|
3956
|
+
* Kiểm tra tính hợp lệ của tệp Video theo quy chuẩn Zalo Ads (độc lập cho backend).
|
|
3957
|
+
* Tiêu chí: Có file, Định dạng .MP4 H.264, Dung lượng tối đa 150MB, Thời lượng tối đa 60s, Tỉ lệ 16:9, 9:16 hoặc 1:1.
|
|
3958
|
+
*/
|
|
3959
|
+
validateVideo(input: ValidateVideoInput): MediaValidationResult;
|
|
3960
|
+
}
|
|
3961
|
+
|
|
3962
|
+
/** Lấy cấu hình kết nối chat widget của Zalo Official Account, gồm loại đăng nhập và các endpoint dịch vụ. Đây là auth-sensitive detail tool thuộc lane zalo-ads-chat; dùng khi đã có OA ID và cần cấu hình kết nối chat hợp lệ. Dữ liệu khóa đăng nhập dạng opaque trong phản hồi không được hiển thị hoặc lưu trữ ngoài luồng bảo mật. */
|
|
3963
|
+
type ZaloChatWidgetGetChatWidgetLoginConfigRequest = {
|
|
3964
|
+
/** ID Zalo Official Account cần lấy cấu hình chat widget. Giữ dưới dạng chuỗi số để bảo toàn định danh dài. */
|
|
3965
|
+
oaId: string;
|
|
3045
3966
|
};
|
|
3046
3967
|
type ZaloChatWidgetGetChatWidgetLoginConfigResponse = {
|
|
3047
3968
|
/** Cấu hình đăng nhập và kết nối chat. Các mã định danh, đặc biệt zoaw_enk, là metadata nhạy cảm. */
|
|
@@ -3177,6 +4098,8 @@ type ZaloFormsListConversationLeadsRequest = {
|
|
|
3177
4098
|
labelIds?: string;
|
|
3178
4099
|
/** Danh sách scene ID phân cách dấu phẩy, có thể bỏ trống. */
|
|
3179
4100
|
sceneIds?: string;
|
|
4101
|
+
/** Danh sách mã lý do chi tiết phân cách bằng dấu phẩy. */
|
|
4102
|
+
reason?: string;
|
|
3180
4103
|
};
|
|
3181
4104
|
type ZaloFormsConversationLeadItem = {
|
|
3182
4105
|
id: string;
|
|
@@ -3223,6 +4146,8 @@ type ZaloFormsListFormLeadsRequest = {
|
|
|
3223
4146
|
labelIds?: string;
|
|
3224
4147
|
/** Chế độ commerce. */
|
|
3225
4148
|
isCommerce: boolean;
|
|
4149
|
+
/** Danh sách mã lý do chi tiết phân cách bằng dấu phẩy. */
|
|
4150
|
+
reason?: string;
|
|
3226
4151
|
};
|
|
3227
4152
|
type ZaloFormsLeadAnswerItem = {
|
|
3228
4153
|
questionId: string;
|
|
@@ -3310,17 +4235,17 @@ type ZaloFormsListManagedFormsByOfficialAccountResponse = {
|
|
|
3310
4235
|
/** Tổng số form khớp với OA và khoảng thời gian. */
|
|
3311
4236
|
total: number;
|
|
3312
4237
|
};
|
|
3313
|
-
/** Lấy danh sách
|
|
4238
|
+
/** Lấy danh sách biểu mẫu (Zalo Form hoặc Commerce Form) của một Official Account theo khoảng thời gian, loại form (`type`) và chế độ thương mại (`isCommerce`). Phân loại: (1) Zalo Form: `type=1, isCommerce=false`; (2) Commerce Form: `type=5, isCommerce=true`. */
|
|
3314
4239
|
type ZaloFormsListSimpleFormsByOfficialAccountRequest = {
|
|
3315
|
-
/** ID Official Account
|
|
4240
|
+
/** ID Official Account dạng mã hóa chuỗi trên form.ads.zalo.me (ví dụ: "J4UB9MRE497YDQKKK"). */
|
|
3316
4241
|
oaId: string;
|
|
3317
|
-
/** Mã
|
|
3318
|
-
type: number;
|
|
4242
|
+
/** Mã phân loại biểu mẫu: 1 = Zalo Form (isCommerce=false), 5 = Commerce Form (isCommerce=true). */
|
|
4243
|
+
type: 1 | 5 | number;
|
|
3319
4244
|
/** Unix epoch giây, cuối khoảng. */
|
|
3320
4245
|
toTime: number;
|
|
3321
|
-
/** Unix epoch giây, đầu khoảng. */
|
|
4246
|
+
/** Unix epoch giây, đầu khoảng (mặc định: 1588266000). */
|
|
3322
4247
|
fromTime: number;
|
|
3323
|
-
/** Chế độ lọc commerce. */
|
|
4248
|
+
/** Chế độ lọc commerce: false cho Zalo Form (type=1), true cho Commerce Form (type=5). */
|
|
3324
4249
|
isCommerce: boolean;
|
|
3325
4250
|
};
|
|
3326
4251
|
type ZaloFormsListSimpleFormsByOfficialAccountResponse = {
|
|
@@ -3328,7 +4253,7 @@ type ZaloFormsListSimpleFormsByOfficialAccountResponse = {
|
|
|
3328
4253
|
/** 0 là thành công. */
|
|
3329
4254
|
code: number;
|
|
3330
4255
|
data: Array<{
|
|
3331
|
-
/** ID form, dùng làm formIds khi lọc lead form. */
|
|
4256
|
+
/** ID form, dùng làm formIds khi lọc lead form hoặc tạo nhóm đối tượng. */
|
|
3332
4257
|
id: string;
|
|
3333
4258
|
/** ID Official Account. */
|
|
3334
4259
|
oaId: string;
|
|
@@ -3343,24 +4268,51 @@ type ZaloFormsListSimpleFormsByOfficialAccountResponse = {
|
|
|
3343
4268
|
createAt: number;
|
|
3344
4269
|
formName: string;
|
|
3345
4270
|
oaAvatar: string;
|
|
3346
|
-
/**
|
|
4271
|
+
/** Cờ cấu hình xét duyệt của biểu mẫu (mặc định là 0). */
|
|
3347
4272
|
admission: number;
|
|
3348
|
-
/** Chuỗi
|
|
4273
|
+
/** Chuỗi số tổng lượt xem. */
|
|
3349
4274
|
totalView: string;
|
|
3350
4275
|
/** Unix epoch giây. */
|
|
3351
4276
|
updatedAt: number;
|
|
3352
4277
|
coverPhoto: string;
|
|
3353
4278
|
description: string;
|
|
3354
4279
|
isAnonymous: boolean;
|
|
3355
|
-
/** Chuỗi
|
|
4280
|
+
/** Chuỗi số tổng lượt gửi. */
|
|
3356
4281
|
totalSubmit: string;
|
|
3357
|
-
/** Chuỗi
|
|
4282
|
+
/** Chuỗi số tổng lượt nhận form. */
|
|
3358
4283
|
totalGetForm: string;
|
|
3359
4284
|
/** Giữ nguyên chữ hoa/thường của upstream. */
|
|
3360
4285
|
RequiresUniqueResponse: boolean;
|
|
4286
|
+
/** Mã loại giao diện mẫu đối với Commerce Form (isCommerce=true, ví dụ: 7). */
|
|
4287
|
+
templateType?: number;
|
|
4288
|
+
/** Thời điểm gửi form gần nhất (Unix epoch giây). */
|
|
4289
|
+
lastSubmitTime?: number;
|
|
3361
4290
|
}>;
|
|
3362
4291
|
total: number;
|
|
3363
4292
|
};
|
|
4293
|
+
/** Lấy danh sách kịch bản tin nhắn hội thoại (Conversation Scenarios) của một Official Account (`oaId`) trên hệ thống Lead Center (`form.ads.zalo.me`). */
|
|
4294
|
+
type ZaloFormsListScenariosByOfficialAccountRequest = {
|
|
4295
|
+
/** ID Official Account dạng mã hóa chuỗi trên form.ads.zalo.me (ví dụ: "J4UB9MRE497YDQKKK"). */
|
|
4296
|
+
oaId: string;
|
|
4297
|
+
};
|
|
4298
|
+
type ZaloFormsScenarioItem = {
|
|
4299
|
+
/** ID định danh kịch bản tin nhắn (ví dụ: "bf34d907e142081c5153"). Dùng làm sceneIds khi lọc lead hội thoại. */
|
|
4300
|
+
id: string;
|
|
4301
|
+
/** ID Official Account sở hữu kịch bản. */
|
|
4302
|
+
oaId: string;
|
|
4303
|
+
/** Tên kịch bản tin nhắn hiển thị trên giao diện (ví dụ: "Kịch bản chào hỏi"). */
|
|
4304
|
+
scenarioName: string;
|
|
4305
|
+
/** Thời điểm tạo kịch bản (Unix epoch giây). */
|
|
4306
|
+
createAt: number;
|
|
4307
|
+
/** Thời điểm cập nhật kịch bản gần nhất (Unix epoch giây). */
|
|
4308
|
+
updateAt: number;
|
|
4309
|
+
};
|
|
4310
|
+
type ZaloFormsListScenariosByOfficialAccountResponse = {
|
|
4311
|
+
msg: string;
|
|
4312
|
+
total?: number;
|
|
4313
|
+
code: number;
|
|
4314
|
+
data?: Array<ZaloFormsScenarioItem>;
|
|
4315
|
+
};
|
|
3364
4316
|
/** Cập nhật chu kỳ thông báo lead cho một Zalo Form thuộc Official Account đã chọn. Đây là mutation tool thuộc lane zalo-ads-form; dùng khi cần đổi tần suất thông báo nhưng không thay đổi trạng thái bật/tắt, vì enable và disable là hai thao tác riêng. */
|
|
3365
4317
|
type ZaloFormsUpdateFormLeadNotificationIntervalRequest = {
|
|
3366
4318
|
/** ID Official Account sở hữu Form; không thay bằng formId. */
|
|
@@ -3421,12 +4373,195 @@ type ZaloFormsGetAuthSessionResponse = {
|
|
|
3421
4373
|
oas: ZaloFormsAuthSessionOaItem[];
|
|
3422
4374
|
};
|
|
3423
4375
|
};
|
|
4376
|
+
/** Ghi nhận sự kiện tương tác trên Lead Center (GET /client/manage/api/manageForm/tracking). */
|
|
4377
|
+
type ZaloFormsTrackManageFormEventRequest = {
|
|
4378
|
+
/** Mã loại sự kiện tracking (ví dụ: 2 = Tải xuống báo cáo lead). */
|
|
4379
|
+
eventId: number;
|
|
4380
|
+
/** Mã Official Account (alphanumeric ID). */
|
|
4381
|
+
oaId: string;
|
|
4382
|
+
/** ID Zalo Form tương tác. */
|
|
4383
|
+
formId: string;
|
|
4384
|
+
};
|
|
4385
|
+
type ZaloFormsTrackManageFormEventResponse = {
|
|
4386
|
+
msg: string;
|
|
4387
|
+
code: number;
|
|
4388
|
+
};
|
|
4389
|
+
|
|
4390
|
+
/**
|
|
4391
|
+
* Bộ kiểm tra tính hợp lệ dữ liệu (Request Validators) cho 13 API Zalo Instant Pages.
|
|
4392
|
+
* Được thiết kế để xuất ra ngoài cho backend (NestJS/Express/Fastify), middleware hoặc AI Agent
|
|
4393
|
+
* sử dụng để xác thực dữ liệu đầu vào trước khi lưu trữ hoặc gọi API Zalo Ads.
|
|
4394
|
+
*
|
|
4395
|
+
* Lưu ý: Các hàm validate này là độc lập (pure functions), KHÔNG bị nhúng cứng bên trong
|
|
4396
|
+
* các hàm gọi HTTP của ZaloInstantPagesService, giúp giữ cho Service gọn gàng và unopinionated.
|
|
4397
|
+
*/
|
|
4398
|
+
|
|
4399
|
+
/** Kết quả xác thực dữ liệu đầu vào của API. */
|
|
4400
|
+
interface ValidationResult<T = unknown> {
|
|
4401
|
+
/** True nếu dữ liệu hợp lệ và thỏa mãn quy chuẩn; False nếu có ít nhất 1 lỗi. */
|
|
4402
|
+
isValid: boolean;
|
|
4403
|
+
/** Danh sách các thông báo lỗi chi tiết. Rỗng nếu isValid = true. */
|
|
4404
|
+
errors: string[];
|
|
4405
|
+
/** Dữ liệu sau khi làm sạch và ép kiểu chuẩn (nếu hợp lệ). */
|
|
4406
|
+
data?: T;
|
|
4407
|
+
}
|
|
4408
|
+
declare function validateCloneInstantPageRequest(input: unknown): ValidationResult<ZaloInstantPagesCloneInstantPageRequest>;
|
|
4409
|
+
declare function validateGetInstantPageDetailRequest(input: unknown): ValidationResult<ZaloInstantPagesGetInstantPageDetailRequest>;
|
|
4410
|
+
declare function validateGetInstantPageSharedUserRequest(input: unknown): ValidationResult<ZaloInstantPagesGetInstantPageSharedUserRequest>;
|
|
4411
|
+
declare function validateListInstantPageEditHistoryRequest(input: unknown): ValidationResult<ZaloInstantPagesListInstantPageEditHistoryRequest>;
|
|
4412
|
+
declare function validateListInstantPageFormRecordsRequest(input: unknown): ValidationResult<ZaloInstantPagesListInstantPageFormRecordsRequest>;
|
|
4413
|
+
declare function validateListInstantPageSharesRequest(input: unknown): ValidationResult<ZaloInstantPagesListInstantPageSharesRequest>;
|
|
4414
|
+
declare function validateListInstantPageUsersRequest(input?: unknown): ValidationResult<ZaloInstantPagesListInstantPageUsersRequest>;
|
|
4415
|
+
declare function validateListMiniPageTemplatesRequest(input?: unknown): ValidationResult<ZaloInstantPagesListMiniPageTemplatesRequest>;
|
|
4416
|
+
declare function validateSearchInstantPagesRequest(input?: unknown): ValidationResult<ZaloInstantPagesSearchInstantPagesRequest>;
|
|
4417
|
+
declare function validateUpdateInstantPageRequest(input: unknown): ValidationResult<ZaloInstantPagesUpdateInstantPageRequest>;
|
|
4418
|
+
declare function validateListInstantPageLeadsRequest(input: unknown): ValidationResult<ZaloInstantPagesListInstantPageLeadsRequest>;
|
|
4419
|
+
declare function validateListOfficialAccountsRequest(input?: unknown): ValidationResult<ZaloInstantPagesListOfficialAccountsRequest>;
|
|
4420
|
+
declare function validateUpsertInstantPageFormRequest(input: unknown): ValidationResult<ZaloInstantPagesUpsertInstantPageFormRequest>;
|
|
4421
|
+
declare const ZaloInstantPagesValidator: {
|
|
4422
|
+
validateCloneInstantPage: typeof validateCloneInstantPageRequest;
|
|
4423
|
+
validateGetInstantPageDetail: typeof validateGetInstantPageDetailRequest;
|
|
4424
|
+
validateGetInstantPageSharedUser: typeof validateGetInstantPageSharedUserRequest;
|
|
4425
|
+
validateListInstantPageEditHistory: typeof validateListInstantPageEditHistoryRequest;
|
|
4426
|
+
validateListInstantPageFormRecords: typeof validateListInstantPageFormRecordsRequest;
|
|
4427
|
+
validateListInstantPageShares: typeof validateListInstantPageSharesRequest;
|
|
4428
|
+
validateListInstantPageUsers: typeof validateListInstantPageUsersRequest;
|
|
4429
|
+
validateListMiniPageTemplates: typeof validateListMiniPageTemplatesRequest;
|
|
4430
|
+
validateSearchInstantPages: typeof validateSearchInstantPagesRequest;
|
|
4431
|
+
validateUpdateInstantPage: typeof validateUpdateInstantPageRequest;
|
|
4432
|
+
validateListInstantPageLeads: typeof validateListInstantPageLeadsRequest;
|
|
4433
|
+
validateListOfficialAccounts: typeof validateListOfficialAccountsRequest;
|
|
4434
|
+
validateUpsertInstantPageForm: typeof validateUpsertInstantPageFormRequest;
|
|
4435
|
+
};
|
|
4436
|
+
|
|
4437
|
+
/**
|
|
4438
|
+
* Bộ kiểm tra tính hợp lệ dữ liệu (Request Validators) cho các API Zalo Forms & Leads:
|
|
4439
|
+
* 1. createForm (POST https://ads.zalo.me/api/form/create)
|
|
4440
|
+
* 2. listFormsByOfficialAccount (GET https://ads.zalo.me/api/form/getByOaId)
|
|
4441
|
+
* 3. listFormLeads (GET https://form.ads.zalo.me/client/manage/api/manageForm/getFormLeads)
|
|
4442
|
+
* 4. listConversationLeads (GET https://form.ads.zalo.me/client/manage/api/manageConversation/getConversationLeads)
|
|
4443
|
+
* 5. leadNotification (POST enable/disable/updateInterval)
|
|
4444
|
+
*
|
|
4445
|
+
* Tích hợp toàn bộ giới hạn độ dài ký tự và quy tắc nghiệp vụ trích xuất từ DOM Angular thực tế.
|
|
4446
|
+
*/
|
|
3424
4447
|
|
|
3425
|
-
|
|
4448
|
+
interface ZaloFormQuestionAnswerInput {
|
|
4449
|
+
type: number;
|
|
4450
|
+
placeHolder?: string;
|
|
4451
|
+
value?: string | null;
|
|
4452
|
+
priority?: number;
|
|
4453
|
+
}
|
|
4454
|
+
interface ZaloFormQuestionInput {
|
|
4455
|
+
title: string;
|
|
4456
|
+
type?: number;
|
|
4457
|
+
isRequired?: boolean;
|
|
4458
|
+
editDisabled?: boolean;
|
|
4459
|
+
priority?: number;
|
|
4460
|
+
answers: ZaloFormQuestionAnswerInput[];
|
|
4461
|
+
}
|
|
4462
|
+
interface ZaloFormSectionInput {
|
|
4463
|
+
type: number;
|
|
4464
|
+
title?: string;
|
|
4465
|
+
disable?: boolean;
|
|
4466
|
+
expand?: boolean;
|
|
4467
|
+
content?: {
|
|
4468
|
+
title?: string;
|
|
4469
|
+
description?: string;
|
|
4470
|
+
table?: Array<{
|
|
4471
|
+
key: string;
|
|
4472
|
+
value: string;
|
|
4473
|
+
}>;
|
|
4474
|
+
images?: Array<{
|
|
4475
|
+
url: string;
|
|
4476
|
+
title?: string;
|
|
4477
|
+
caption?: string;
|
|
4478
|
+
}>;
|
|
4479
|
+
videos?: unknown[];
|
|
4480
|
+
};
|
|
4481
|
+
}
|
|
4482
|
+
interface ZaloCreateFormCleanPayload {
|
|
4483
|
+
oaId: string;
|
|
4484
|
+
title: string;
|
|
4485
|
+
formName: string;
|
|
4486
|
+
description?: string;
|
|
4487
|
+
coverPhoto: string;
|
|
4488
|
+
submitTitle: string;
|
|
4489
|
+
thanks: string;
|
|
4490
|
+
gotoActionType: number;
|
|
4491
|
+
gotoText: string;
|
|
4492
|
+
website?: string;
|
|
4493
|
+
reviewSubmit: boolean;
|
|
4494
|
+
questions: ZaloFormQuestionInput[];
|
|
4495
|
+
sections?: ZaloFormSectionInput[];
|
|
4496
|
+
useCustomConsent?: boolean;
|
|
4497
|
+
consentName?: string;
|
|
4498
|
+
consentUrl?: string;
|
|
4499
|
+
[key: string]: unknown;
|
|
4500
|
+
}
|
|
4501
|
+
interface ZaloCreateFormRequestInput {
|
|
4502
|
+
data?: string | ZaloCreateFormCleanPayload;
|
|
4503
|
+
[key: string]: unknown;
|
|
4504
|
+
}
|
|
4505
|
+
/**
|
|
4506
|
+
* Kiểm tra tính hợp lệ dữ liệu khi tạo mới Zalo Form (POST /api/form/create)
|
|
4507
|
+
*/
|
|
4508
|
+
declare function validateCreateFormRequest(input: unknown): ValidationResult<ZaloCreateFormCleanPayload>;
|
|
4509
|
+
/**
|
|
4510
|
+
* Kiểm tra tính hợp lệ dữ liệu lấy danh sách Form theo OA (GET /api/form/getByOaId)
|
|
4511
|
+
*/
|
|
4512
|
+
declare function validateListFormsByOfficialAccountRequest(input: unknown): ValidationResult<{
|
|
4513
|
+
oaId: string;
|
|
4514
|
+
isAll?: boolean;
|
|
4515
|
+
}>;
|
|
4516
|
+
/**
|
|
4517
|
+
* Kiểm tra tính hợp lệ dữ liệu tra cứu Form Leads (GET /client/manage/api/manageForm/getFormLeads)
|
|
4518
|
+
*/
|
|
4519
|
+
declare function validateListFormLeadsRequest(input: unknown): ValidationResult<{
|
|
4520
|
+
oaId: string;
|
|
4521
|
+
type: number;
|
|
4522
|
+
limit: number;
|
|
4523
|
+
offset: number;
|
|
4524
|
+
status: string;
|
|
4525
|
+
fromTime: number;
|
|
4526
|
+
toTime: number;
|
|
4527
|
+
formIds?: string;
|
|
4528
|
+
keyword?: string;
|
|
4529
|
+
reason?: string;
|
|
4530
|
+
labelIds?: string;
|
|
4531
|
+
isCommerce?: boolean;
|
|
4532
|
+
}>;
|
|
4533
|
+
/**
|
|
4534
|
+
* Gom nhóm toàn bộ Validators cho Form & Lead APIs.
|
|
4535
|
+
*/
|
|
4536
|
+
declare const ZaloFormsValidator: {
|
|
4537
|
+
readonly createForm: typeof validateCreateFormRequest;
|
|
4538
|
+
readonly listFormsByOfficialAccount: typeof validateListFormsByOfficialAccountRequest;
|
|
4539
|
+
readonly listFormLeads: typeof validateListFormLeadsRequest;
|
|
4540
|
+
};
|
|
3426
4541
|
|
|
3427
4542
|
declare class ZaloFormsService {
|
|
3428
4543
|
private readonly client;
|
|
4544
|
+
readonly validator: {
|
|
4545
|
+
readonly createForm: typeof validateCreateFormRequest;
|
|
4546
|
+
readonly listFormsByOfficialAccount: typeof validateListFormsByOfficialAccountRequest;
|
|
4547
|
+
readonly listFormLeads: typeof validateListFormLeadsRequest;
|
|
4548
|
+
};
|
|
4549
|
+
static readonly validator: {
|
|
4550
|
+
readonly createForm: typeof validateCreateFormRequest;
|
|
4551
|
+
readonly listFormsByOfficialAccount: typeof validateListFormsByOfficialAccountRequest;
|
|
4552
|
+
readonly listFormLeads: typeof validateListFormLeadsRequest;
|
|
4553
|
+
};
|
|
3429
4554
|
constructor(client: ZaloSdkHttpClient);
|
|
4555
|
+
/**
|
|
4556
|
+
* Tạo biểu mẫu mới gắn với Official Account (POST https://ads.zalo.me/api/form/create).
|
|
4557
|
+
* Hỗ trợ truyền thẳng Typed Payload (tự động validate qua ZaloFormsValidator và mã hóa urlencoded)
|
|
4558
|
+
* hoặc object dạng `{ data: JSON.stringify(...) }`.
|
|
4559
|
+
*/
|
|
4560
|
+
createForm(request: ZaloAdsCreateFormRequest | ZaloCreateFormCleanPayload | Record<string, unknown>, options?: RequestOptions): Promise<ZaloAdsCreateFormResponse>;
|
|
4561
|
+
/**
|
|
4562
|
+
* Lấy danh sách biểu mẫu Zalo Ads theo Official Account (GET https://ads.zalo.me/api/form/getByOaId).
|
|
4563
|
+
*/
|
|
4564
|
+
listFormsByOfficialAccount(request: ZaloAdsListFormsByOfficialAccountRequest, options?: RequestOptions): Promise<ZaloAdsListFormsByOfficialAccountResponse>;
|
|
3430
4565
|
getAuthSession(options?: RequestOptions): Promise<ZaloFormsGetAuthSessionResponse>;
|
|
3431
4566
|
disableFormLeadNotification(request: ZaloFormsDisableFormLeadNotificationRequest, options?: RequestOptions): Promise<ZaloFormsDisableFormLeadNotificationResponse>;
|
|
3432
4567
|
enableFormLeadNotification(request: ZaloFormsEnableFormLeadNotificationRequest, options?: RequestOptions): Promise<ZaloFormsEnableFormLeadNotificationResponse>;
|
|
@@ -3436,13 +4571,35 @@ declare class ZaloFormsService {
|
|
|
3436
4571
|
listFormLeads(request: ZaloFormsListFormLeadsRequest, options?: RequestOptions): Promise<ZaloFormsListFormLeadsResponse>;
|
|
3437
4572
|
listManagedFormsByOfficialAccount(request: ZaloFormsListManagedFormsByOfficialAccountRequest, options?: RequestOptions): Promise<ZaloFormsListManagedFormsByOfficialAccountResponse>;
|
|
3438
4573
|
listSimpleFormsByOfficialAccount(request: ZaloFormsListSimpleFormsByOfficialAccountRequest, options?: RequestOptions): Promise<ZaloFormsListSimpleFormsByOfficialAccountResponse>;
|
|
4574
|
+
listScenariosByOfficialAccount(request: ZaloFormsListScenariosByOfficialAccountRequest, options?: RequestOptions): Promise<ZaloFormsListScenariosByOfficialAccountResponse>;
|
|
3439
4575
|
updateFormLeadNotificationInterval(request: ZaloFormsUpdateFormLeadNotificationIntervalRequest, options?: RequestOptions): Promise<ZaloFormsUpdateFormLeadNotificationIntervalResponse>;
|
|
4576
|
+
/**
|
|
4577
|
+
* Ghi nhận sự kiện tương tác trên Lead Center (GET /client/manage/api/manageForm/tracking).
|
|
4578
|
+
*/
|
|
4579
|
+
trackManageFormEvent(request: ZaloFormsTrackManageFormEventRequest, options?: RequestOptions): Promise<ZaloFormsTrackManageFormEventResponse>;
|
|
3440
4580
|
}
|
|
3441
4581
|
|
|
3442
|
-
/** Zalo Instant Pages API service. Each API explicitly selects its own request transport. */
|
|
3443
|
-
|
|
3444
4582
|
declare class ZaloInstantPagesService {
|
|
3445
4583
|
private readonly client;
|
|
4584
|
+
/**
|
|
4585
|
+
* Bộ công cụ kiểm tra tính hợp lệ dữ liệu (Standalone Validators) cho 13 API Instant Pages.
|
|
4586
|
+
* Dùng ở backend (NestJS/Express/Fastify), middleware hoặc AI Agent để verify payload trước khi gọi SDK.
|
|
4587
|
+
*/
|
|
4588
|
+
static readonly validator: {
|
|
4589
|
+
validateCloneInstantPage: typeof validateCloneInstantPageRequest;
|
|
4590
|
+
validateGetInstantPageDetail: typeof validateGetInstantPageDetailRequest;
|
|
4591
|
+
validateGetInstantPageSharedUser: typeof validateGetInstantPageSharedUserRequest;
|
|
4592
|
+
validateListInstantPageEditHistory: typeof validateListInstantPageEditHistoryRequest;
|
|
4593
|
+
validateListInstantPageFormRecords: typeof validateListInstantPageFormRecordsRequest;
|
|
4594
|
+
validateListInstantPageShares: typeof validateListInstantPageSharesRequest;
|
|
4595
|
+
validateListInstantPageUsers: typeof validateListInstantPageUsersRequest;
|
|
4596
|
+
validateListMiniPageTemplates: typeof validateListMiniPageTemplatesRequest;
|
|
4597
|
+
validateSearchInstantPages: typeof validateSearchInstantPagesRequest;
|
|
4598
|
+
validateUpdateInstantPage: typeof validateUpdateInstantPageRequest;
|
|
4599
|
+
validateListInstantPageLeads: typeof validateListInstantPageLeadsRequest;
|
|
4600
|
+
validateListOfficialAccounts: typeof validateListOfficialAccountsRequest;
|
|
4601
|
+
validateUpsertInstantPageForm: typeof validateUpsertInstantPageFormRequest;
|
|
4602
|
+
};
|
|
3446
4603
|
constructor(client: ZaloSdkHttpClient);
|
|
3447
4604
|
cloneInstantPage(request: ZaloInstantPagesCloneInstantPageRequest, options?: RequestOptions): Promise<ZaloInstantPagesCloneInstantPageResponse>;
|
|
3448
4605
|
getInstantPageDetail(request: ZaloInstantPagesGetInstantPageDetailRequest, options?: RequestOptions): Promise<ZaloInstantPagesGetInstantPageDetailResponse>;
|
|
@@ -3771,6 +4928,17 @@ declare class ZaloWidgetApiService {
|
|
|
3771
4928
|
declare class ZaloAdsSdk {
|
|
3772
4929
|
private readonly client;
|
|
3773
4930
|
readonly ads: ZaloAdsService;
|
|
4931
|
+
readonly campaigns: ZaloCampaignsService;
|
|
4932
|
+
readonly account: ZaloAccountService;
|
|
4933
|
+
readonly audiences: ZaloAudiencesService;
|
|
4934
|
+
readonly targeting: ZaloAudiencesService;
|
|
4935
|
+
readonly reports: ZaloReportsService;
|
|
4936
|
+
readonly conversions: ZaloConversionsService;
|
|
4937
|
+
readonly pixel: ZaloConversionsService;
|
|
4938
|
+
readonly automatedRules: ZaloAutomatedRulesService;
|
|
4939
|
+
readonly rules: ZaloAutomatedRulesService;
|
|
4940
|
+
readonly flows: ZaloFlowsService;
|
|
4941
|
+
readonly media: ZaloMediaService;
|
|
3774
4942
|
readonly forms: ZaloFormsService;
|
|
3775
4943
|
readonly instantPages: ZaloInstantPagesService;
|
|
3776
4944
|
readonly profileAds: ZaloProfileAdsService;
|
|
@@ -3931,4 +5099,116 @@ declare class ZaloAdsIntegrationManager {
|
|
|
3931
5099
|
get poolSize(): number;
|
|
3932
5100
|
}
|
|
3933
5101
|
|
|
3934
|
-
export { ALL_ZALO_ADS_DOMAINS, type BodyType, type FileDownloadResponse, type FileInput, type HttpMethod, MemoryZaloSessionStore, type MemoryZaloSessionStoreOptions, type OperationDefinition, RedisZaloSessionStore, type RedisZaloSessionStoreOptions, type RequestOptions, TieredZaloSessionStore, type TieredZaloSessionStoreOptions, 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 ZaloAdsConversionElementSelectorDto, type ZaloAdsConversionItemDto, type ZaloAdsCreateArticleCampaignRequest, type ZaloAdsCreateArticleCampaignResponse, type ZaloAdsCreateAutomatedRuleRequest, type ZaloAdsCreateAutomatedRuleResponse, type ZaloAdsCreateCommerceCampaignRequest, type ZaloAdsCreateCommerceCampaignResponse, type ZaloAdsCreateConversionRequest, type ZaloAdsCreateConversionResponse, type ZaloAdsCreateCustomAudienceRequest, type ZaloAdsCreateCustomAudienceResponse, type ZaloAdsCreateDisplayCampaignRequest, type ZaloAdsCreateDisplayCampaignResponse, type ZaloAdsCreateEcommerceCampaignRequest, type ZaloAdsCreateEcommerceCampaignResponse, ZaloAdsCreateFlowRequest, ZaloAdsCreateFlowResponse, type ZaloAdsCreateFormCampaignRequest, type ZaloAdsCreateFormCampaignResponse, type ZaloAdsCreateFormPayloadDto, type ZaloAdsCreateFormRequest, type ZaloAdsCreateFormResponse, type ZaloAdsCreateMessageCampaignRequest, type ZaloAdsCreateMessageCampaignResponse, type ZaloAdsCreateOaCampaignRequest, type ZaloAdsCreateOaCampaignResponse, type ZaloAdsCreateOfficialAccountCampaignRequest, type ZaloAdsCreateOfficialAccountCampaignResponse, ZaloAdsCreatePostCampaignRequest, ZaloAdsCreatePostCampaignResponse, 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 ZaloAdsDomain, type ZaloAdsFileGroupItemDto, ZaloAdsFlowButtonDto, ZaloAdsFlowChildMessageDto, ZaloAdsFlowMessageDto, type ZaloAdsFormAnswerDto, 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 ZaloAdsGetReportapiV2AdsRequest, type ZaloAdsGetReportapiV2AdsResponse, type ZaloAdsGetReportapiV2CampaignsRequest, type ZaloAdsGetReportapiV2CampaignsResponse, type ZaloAdsGetReportapiV2UniqueUserRequest, type ZaloAdsGetReportapiV2UniqueUserResponse, type ZaloAdsGetReportapiV3CampaignsRequest, type ZaloAdsGetReportapiV3CampaignsResponse, 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 ZaloAdsListAgencyCustomersWithBudgetRequest, type ZaloAdsListAgencyCustomersWithBudgetResponse, type ZaloAdsListAutomatedRulesRequest, type ZaloAdsListAutomatedRulesResponse, type ZaloAdsListCustomReportsRequest, type ZaloAdsListCustomReportsResponse, type ZaloAdsListFlowsByOfficialAccountRequest, type ZaloAdsListFlowsByOfficialAccountResponse, type ZaloAdsListFormsByOfficialAccountRequest, type ZaloAdsListFormsByOfficialAccountResponse, type ZaloAdsListMiniPagesByTemplateRequest, type ZaloAdsListMiniPagesByTemplateResponse, type ZaloAdsListPersonalPixelLabelsRequest, type ZaloAdsListPersonalPixelLabelsResponse, type ZaloAdsLpNewsButtonDto, type ZaloAdsLpNewsItemDto, type ZaloAdsMediaSavePayloadDto, type ZaloAdsMediaSaveSettingsDto, type ZaloAdsMemberFileItemDto, ZaloAdsMessageAdUpdateDataDto, type ZaloAdsNotifyHeaderItemDto, type ZaloAdsOwnedArticleItemDto, type ZaloAdsOwnedPageExtraInfoDto, type ZaloAdsOwnedPageItemDto, type ZaloAdsOwnedPageLocationDto, type ZaloAdsPageConfigDto, type ZaloAdsPaymentTransactionItemDto, 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 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 ZaloAuthDomain, ZaloAuthManager, type ZaloChatWidgetGetChatWidgetLoginConfigRequest, type ZaloChatWidgetGetChatWidgetLoginConfigResponse, type ZaloChatWidgetGetLoginConfigRequest, type ZaloChatWidgetGetLoginConfigResponse, ZaloChatWidgetService, type ZaloDomainSession, 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 ZaloFormsListSimpleFormsByOfficialAccountRequest, type ZaloFormsListSimpleFormsByOfficialAccountResponse, ZaloFormsService, type ZaloFormsUpdateFormLeadNotificationIntervalRequest, type ZaloFormsUpdateFormLeadNotificationIntervalResponse, 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, type ZaloIntegrationCredentials, type ZaloIntegrationVerificationResult, 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, type ZaloSdkAuth, type ZaloSdkAuthContext, ZaloSdkError, ZaloSdkHttpClient, type ZaloSessionStore, type ZaloSsoAuthOptions, 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 };
|
|
5102
|
+
/**
|
|
5103
|
+
* Bộ kiểm tra tính hợp lệ dữ liệu (Request Validators) cho các API Zalo Message Flows:
|
|
5104
|
+
* 1. listFlowsByOfficialAccount (GET /api/flow/getByOaId)
|
|
5105
|
+
* 2. createFlow (POST /api/flow/create)
|
|
5106
|
+
* 3. updateFlow (POST /api/flow/update)
|
|
5107
|
+
*
|
|
5108
|
+
* Được thiết kế theo dạng hàm thuần (pure functions) độc lập, xuất ra ngoài để backend
|
|
5109
|
+
* (NestJS/Express/Fastify), middleware hoặc AI Agent sử dụng xác thực dữ liệu trước khi gọi Zalo Ads.
|
|
5110
|
+
*/
|
|
5111
|
+
|
|
5112
|
+
declare function validateListFlowsByOfficialAccountRequest(input: unknown): ValidationResult<ZaloAdsListFlowsByOfficialAccountRequest>;
|
|
5113
|
+
declare function validateCreateFlowRequest(input: unknown): ValidationResult<ZaloAdsCreateFlowRequest>;
|
|
5114
|
+
declare function validateUpdateFlowRequest(input: unknown): ValidationResult<ZaloAdsUpdateFlowRequest>;
|
|
5115
|
+
/**
|
|
5116
|
+
* Đối tượng gom nhóm các hàm kiểm tra tính hợp lệ dữ liệu cho Message Flows APIs.
|
|
5117
|
+
*/
|
|
5118
|
+
declare const ZaloFlowsValidator: {
|
|
5119
|
+
readonly listFlowsByOfficialAccount: typeof validateListFlowsByOfficialAccountRequest;
|
|
5120
|
+
readonly createFlow: typeof validateCreateFlowRequest;
|
|
5121
|
+
readonly updateFlow: typeof validateUpdateFlowRequest;
|
|
5122
|
+
};
|
|
5123
|
+
|
|
5124
|
+
/**
|
|
5125
|
+
* Bộ kiểm tra tính hợp lệ dữ liệu (Request Validators) cho các API Targeting & Custom Audiences trên Zalo Ads:
|
|
5126
|
+
* 1. createSavedAudience (POST /api/ad/audience với caType = 1)
|
|
5127
|
+
* 2. createPhoneAudience (POST /api/ad/audience với caType = 3)
|
|
5128
|
+
* 3. createLookalikeAudience (POST /api/ad/audience với caType = 6)
|
|
5129
|
+
* 4. createFormEventAudience (POST /api/ad/audience với caType = 12)
|
|
5130
|
+
* 5. createMessageOaEventAudience (POST /api/ad/audience với caType = 11)
|
|
5131
|
+
* 6. createMessagePersonalEventAudience (POST /api/ad/audience với caType = 14)
|
|
5132
|
+
* 7. createFormLeadAudience (POST /api/ad/audience với caType = 10)
|
|
5133
|
+
* 8. createMessageOaLeadAudience (POST /api/ad/audience với caType = 13)
|
|
5134
|
+
* 9. createCommerceFormAudience (POST /api/ad/audience với caType = 15)
|
|
5135
|
+
* 10. createLeadSignalAudience (POST /api/ad/audience với caType = 16)
|
|
5136
|
+
* 11. estimateAudience (POST /api/ad/estimateAudience)
|
|
5137
|
+
* 12. deleteCustomAudience (DELETE /api/ad/audience/{customAudienceId})
|
|
5138
|
+
*/
|
|
5139
|
+
|
|
5140
|
+
/**
|
|
5141
|
+
* 1. Kiểm tra request Tạo Nhóm đối tượng đã lưu (Saved Audience - caType = 1)
|
|
5142
|
+
*/
|
|
5143
|
+
declare function validateCreateSavedAudienceRequest(input: unknown): ValidationResult<{
|
|
5144
|
+
name: string;
|
|
5145
|
+
caType: 1;
|
|
5146
|
+
targeting: string;
|
|
5147
|
+
}>;
|
|
5148
|
+
/**
|
|
5149
|
+
* 2. Kiểm tra request Tạo Nhóm đối tượng từ danh sách Số điện thoại (caType = 3)
|
|
5150
|
+
*/
|
|
5151
|
+
declare function validateCreatePhoneAudienceRequest(input: unknown): ValidationResult<{
|
|
5152
|
+
name: string;
|
|
5153
|
+
caType: 3;
|
|
5154
|
+
targeting: string;
|
|
5155
|
+
}>;
|
|
5156
|
+
/**
|
|
5157
|
+
* 3. Kiểm tra request Tạo Nhóm đối tượng tương tự Lookalike (caType = 6)
|
|
5158
|
+
*/
|
|
5159
|
+
declare function validateCreateLookalikeAudienceRequest(input: unknown): ValidationResult<{
|
|
5160
|
+
name: string;
|
|
5161
|
+
caType: 6;
|
|
5162
|
+
targeting: string;
|
|
5163
|
+
}>;
|
|
5164
|
+
/**
|
|
5165
|
+
* 4. Kiểm tra request Tạo Nhóm đối tượng sự kiện Form (caType = 12)
|
|
5166
|
+
*/
|
|
5167
|
+
declare function validateCreateFormEventAudienceRequest(input: unknown): ValidationResult<{
|
|
5168
|
+
name: string;
|
|
5169
|
+
caType: 12;
|
|
5170
|
+
targeting: string;
|
|
5171
|
+
}>;
|
|
5172
|
+
/**
|
|
5173
|
+
* 5. Kiểm tra request Tạo Nhóm đối tượng sự kiện Tin nhắn OA (caType = 11)
|
|
5174
|
+
*/
|
|
5175
|
+
declare function validateCreateMessageOaEventAudienceRequest(input: unknown): ValidationResult<{
|
|
5176
|
+
name: string;
|
|
5177
|
+
caType: 11;
|
|
5178
|
+
targeting: string;
|
|
5179
|
+
}>;
|
|
5180
|
+
/**
|
|
5181
|
+
* 6. Kiểm tra request Tạo Nhóm đối tượng sự kiện Tin nhắn Cá nhân (caType = 14)
|
|
5182
|
+
*/
|
|
5183
|
+
declare function validateCreateMessagePersonalEventAudienceRequest(input: unknown): ValidationResult<{
|
|
5184
|
+
name: string;
|
|
5185
|
+
caType: 14;
|
|
5186
|
+
targeting: string;
|
|
5187
|
+
}>;
|
|
5188
|
+
/**
|
|
5189
|
+
* 7. Kiểm tra request Ước tính quy mô đối tượng (POST /api/ad/estimateAudience)
|
|
5190
|
+
*/
|
|
5191
|
+
declare function validateEstimateAudienceRequest(input: unknown): ValidationResult<{
|
|
5192
|
+
gender: number;
|
|
5193
|
+
ageRanges: number[];
|
|
5194
|
+
platforms: number[];
|
|
5195
|
+
locations: string;
|
|
5196
|
+
provinces: number[];
|
|
5197
|
+
wardsTargeting: string;
|
|
5198
|
+
priceType: number;
|
|
5199
|
+
number: string;
|
|
5200
|
+
}>;
|
|
5201
|
+
/**
|
|
5202
|
+
* Gom nhóm toàn bộ Validators cho Targeting & Audiences APIs.
|
|
5203
|
+
*/
|
|
5204
|
+
declare const ZaloAudiencesValidator: {
|
|
5205
|
+
readonly createSavedAudience: typeof validateCreateSavedAudienceRequest;
|
|
5206
|
+
readonly createPhoneAudience: typeof validateCreatePhoneAudienceRequest;
|
|
5207
|
+
readonly createLookalikeAudience: typeof validateCreateLookalikeAudienceRequest;
|
|
5208
|
+
readonly createFormEventAudience: typeof validateCreateFormEventAudienceRequest;
|
|
5209
|
+
readonly createMessageOaEventAudience: typeof validateCreateMessageOaEventAudienceRequest;
|
|
5210
|
+
readonly createMessagePersonalEventAudience: typeof validateCreateMessagePersonalEventAudienceRequest;
|
|
5211
|
+
readonly estimateAudience: typeof validateEstimateAudienceRequest;
|
|
5212
|
+
};
|
|
5213
|
+
|
|
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 };
|