tianji-client-sdk
Version:
21 lines • 707 B
TypeScript
export declare function getSurveyInfo(workspaceId: string, surveyId: string): Promise<{
id: string;
workspaceId: string;
name: string;
payload: {
items: Array<{
label: string;
name: string;
type: "text" | "select" | "email" | "imageUrl";
options?: Array<(string)>;
}>;
};
feedChannelIds: Array<(string)>;
feedTemplate: string;
webhookUrl: string;
recentSuggestionCategory: Array<(string)>;
createdAt: string;
updatedAt: string;
} | null>;
export declare function submitSurvey(workspaceId: string, surveyId: string, payload: Record<string, any>): Promise<string>;
//# sourceMappingURL=survey.d.ts.map