-
Notifications
You must be signed in to change notification settings - Fork 121
Open
Description
Currently this is typed as follow :
export type CreateDataAttributeRequest = {
data_type?: "options" | undefined;
options: {
value?: string | undefined;
}[];
} | {
data_type?: ("string" | "integer" | "float" | "boolean" | "datetime" | "date") | undefined;
};However, according to API docs, we should also be able to set the following fields : name, model, description and messenger_writable
Therefore, we should have something like this :
interface CreateDataAttributeRequestBase {
name: string;
model: 'company' | 'contact';
description?: string;
messenger_writable?: boolean;
}
export type CreateDataAttributeRequest = CreateDataAttributeRequestBase & {
data_type?: "options" | undefined;
options: {
value?: string | undefined;
}[];
} | CreateDataAttributeRequestBase & {
data_type?: ("string" | "integer" | "float" | "boolean" | "datetime" | "date") | undefined;
};Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels