chore: initialize dependencies and zca-js project files

This commit is contained in:
Victor Phan
2026-07-17 20:35:17 +07:00
parent caa9717571
commit d36007d989
1551 changed files with 191538 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
import type { PollDetail } from "../models/index.js";
/**
* Options for creating a poll.
*/
export type CreatePollOptions = {
/**
* Question for the poll.
*/
question: string;
/**
* List of options for the poll.
*/
options: string[];
/**
* Poll expiration time in milliseconds (0 = no expiration).
*/
expiredTime?: number;
/**
* Allows multiple choices in the poll.
*/
allowMultiChoices?: boolean;
/**
* Allows members to add new options to the poll.
*/
allowAddNewOption?: boolean;
/**
* Hides voting results until the user has voted.
*/
hideVotePreview?: boolean;
/**
* Hides poll voters (anonymous poll).
*/
isAnonymous?: boolean;
};
export type CreatePollResponse = PollDetail;
export declare const createPollFactory: (ctx: import("../context.js").ContextBase, api: import("../apis.js").API) => (options: CreatePollOptions, groupId: string) => Promise<PollDetail>;