@benshi.ai/js-sdk
Version:
Benshi SDK
52 lines (44 loc) • 1.11 kB
text/typescript
/**
* This module was automatically generated by `ts-interface-builder`
*/
import * as t from "ts-interface-checker";
// tslint:disable:object-literal-key-quotes
export const SocialTypes = t.enumtype({
"Profile": "profile",
"ProfileList": "profile_list",
});
export const ProfileType = t.enumtype({
"User": "user",
"Organization": "organization",
});
export const ProfileAction = t.enumtype({
"View": "view",
"Follow": "follow",
"Unfollow": "unfollow",
"Peek": "peek",
"Share": "share",
});
export const ProfileProperties = t.iface([], {
"type": "ProfileType",
"action": "ProfileAction",
"profile_id": "string",
"share_via": t.opt("string"),
"meta": t.opt("any"),
});
export const ProfileListType = t.enumtype({
"Followers": "followers",
"Followings": "followings",
});
export const ProfileListProperties = t.iface([], {
"type": "ProfileListType",
"meta": t.opt("any"),
});
const exportedTypeSuite: t.ITypeSuite = {
SocialTypes,
ProfileType,
ProfileAction,
ProfileProperties,
ProfileListType,
ProfileListProperties,
};
export default exportedTypeSuite;