@voiceflow/base-types
Version:
Voiceflow base project types
61 lines • 1.89 kB
TypeScript
import type { Nullable } from '@voiceflow/common';
import type { NodeType } from './constants';
import type { BaseStep, IntegrationType, IntegrationUser, NodeSuccessFailID, SuccessFailStepPorts } from './utils';
export declare enum GoogleSheetsActionType {
CREATE_DATA = "Create Data",
UPDATE_DATA = "Update Data",
DELETE_DATA = "Delete Data",
RETRIEVE_DATA = "Retrieve Data"
}
export interface GoogleSheetsValueLabel {
value: number;
label: string;
}
export interface GoogleSheetsMapping {
arg1: GoogleSheetsValueLabel;
arg2: string;
}
export interface GoogleSheetsSpreadsheet {
value: string;
label: string;
}
export interface StepData {
user?: IntegrationUser;
sheet: Nullable<GoogleSheetsValueLabel>;
endRow: string;
mapping: GoogleSheetsMapping[];
startRow: string;
rowNumber: string;
rowValues: string[];
matchValue: string;
spreadsheet: Nullable<GoogleSheetsSpreadsheet>;
headerColumn: Nullable<GoogleSheetsValueLabel>;
selectedAction: Nullable<GoogleSheetsActionType>;
selectedIntegration: IntegrationType.GOOGLE_SHEETS;
}
export interface StepPorts extends SuccessFailStepPorts<[]> {
}
export interface Step<Data = StepData> extends BaseStep<Data, StepPorts> {
type: NodeType.GOOGLE_SHEETS;
}
export interface NodeActionData {
user?: IntegrationUser;
sheet: Nullable<number>;
mapping: {
arg1: number;
arg2: string;
}[];
end_row: string;
start_row: string;
row_values: string[];
row_number: string;
match_value: string;
spreadsheet: Nullable<string>;
header_column: Nullable<number>;
}
export interface NodeData extends NodeSuccessFailID {
action_data: NodeActionData;
selected_action: Nullable<GoogleSheetsActionType>;
selected_integration: IntegrationType.GOOGLE_SHEETS;
}
//# sourceMappingURL=googleSheets.d.ts.map