n8n-nodes-zalo-nnt
Version:
Unofficial Zalo integration for n8n - Send messages, manage groups, user operations with QR login. No API key required, works via browser simulation.
68 lines (67 loc) • 1.54 kB
TypeScript
import { IDataObject } from 'n8n-workflow';
export interface BusinessOperationResult extends IDataObject {
status?: string;
response: any;
}
export interface CreateAutoReplyParams {
content: string;
isEnable: boolean;
startTime: number;
endTime: number;
scope: number;
uids?: string;
}
export interface UpdateAutoReplyParams extends CreateAutoReplyParams {
id: number;
}
export interface DeleteAutoReplyParams {
id: number;
}
export interface CreateCatalogParams {
catalogName: string;
}
export interface UpdateCatalogParams {
catalogId: string;
catalogName: string;
}
export interface DeleteCatalogParams {
catalogId: string;
}
export interface GetCatalogListParams {
limit?: number;
lastProductId?: number;
page?: number;
}
export interface CreateProductParams {
catalogId: string;
productName: string;
price: string;
description: string;
productPhotos?: string;
}
export interface UpdateProductParams {
catalogId: string;
productId: string;
productName: string;
price: string;
description: string;
createTime: number;
productPhotos?: string;
}
export interface DeleteProductParams {
catalogId: string;
productIds: string;
}
export interface GetProductListParams {
catalogId: string;
limit?: number;
versionCatalog?: number;
lastProductId?: string;
page?: number;
}
export interface UploadProductPhotoParams {
fileUrl: string;
}
export interface GetBizAccountParams {
friendId: string;
}