event-app-api
Version:
Package for easy access to Event App API
182 lines (181 loc) • 6.94 kB
TypeScript
import { ActionCategory, ActionName, ActionResourceName, ObjectValue } from "../api/types";
export declare const BASE_API_URL = "BASE_API_URL";
export declare const PRODUCTION_URL_UNAUTHORIZED = "https://api.hubs101.com";
export declare const STAGING_URL_UNAUTHORIZED = "https://stag-api.hubs101.com";
export declare const WEB_APP_STAGE = "https://staging.hubs101.com";
export declare const WEB_APP_PROD = "https://app.hubs101.com";
export declare const PRODUCTION_URL: string;
export declare const STAGING_URL: string;
export declare const UNAUTHORIZED_PRODUCTION_URL: string;
export declare const UNAUTHORIZED_STAGING_URL: string;
export declare const BASE_PROD_RESOURCE_URL = "https://media.hubs101.com/";
export declare const BASE_STAGE_RESOURCE_URL = "https://staging-media.hubs101.com/";
export declare const API_PROD_PATH: Readonly<{
ACCOUNTS: `${string}/accounts`;
ATTENDEES: `${string}/attendees`;
AUTH: {
LOGIN: string;
LOGOUT: string;
TOKEN_REFRESH: string;
RESET_PASSWORD: string;
};
CONNECTIONS: `${string}/users/connections`;
EVENTS: `${string}/events`;
PROFILE: `${string}/users/profile`;
USERS: `${string}/users`;
SESSIONS: `${string}/sessions`;
TRACKS: `${string}/tracks`;
EXHIBITIONS: `${string}/exhibitions`;
USER_EVENTS: `${string}/users/events`;
REGISTER: "https://api.hubs101.com/v1/register";
ZOOM: {
SIGNATURE: string;
};
MEETINGS_USERS_API_KEY: `${string}/users/meetings`;
LOCATION_API_KEY: `${string}/locations`;
MEETINGS_API_KEY: `${string}/meetings`;
POSTS: `${string}/posts`;
LINKEDIN_IMPORT_PROFILE: `${string}/linkedin/authorization`;
ACTIONS_EXHIBITIONS: `${string}/actions/exhibitions`;
ACTIONS_ATTENDEES: `${string}/actions/profiles`;
YOUTUBE_SDK_API: `${string}/sdk/youtube`;
DOCUMENTS: `${string}/documents`;
ACTIONS_SESSIONS: `${string}/actions/sessions`;
TERMS_URL: "https://hubs101.com/terms-of-use";
PRIVACY_URL: "https://hubs101.com/privacy-policy";
VERSIONS: "https://api.hubs101.com/versions";
PASSWORD_ACTIVATION: "https://api.hubs101.com/v1/activation";
VIMEO_VIEW: `${string}/sdk/vimeo/mobile`;
NOTES: `${string}/users/notes`;
MEETINGS_ARRANGE: `${string}/meetings/arrange`;
USER_NOTIFICATIONS: `${string}/users/notifications`;
NOTIFICATIONS: `${string}/notifications`;
GROUPS: `${string}/groups`;
OPTIONS: `${string}/options`;
TICKETS: `${string}/tickets`;
DISCOUNTS: `${string}/discounts`;
LOCATIONS: `${string}/locations`;
PAGES: `${string}/pages`;
PAYMENT_ACCOUNTS: `${string}/payment-account`;
ACCOUNT_TRIAL: `${string}/accounts/trial`;
INVITATION: `${string}/invitation`;
}>;
export declare const API_STAGE_PATH: Readonly<{
ACCOUNTS: `${string}/accounts`;
ATTENDEES: `${string}/attendees`;
AUTH: {
LOGIN: string;
LOGOUT: string;
TOKEN_REFRESH: string;
RESET_PASSWORD: string;
};
CONNECTIONS: `${string}/users/connections`;
EVENTS: `${string}/events`;
PROFILE: `${string}/users/profile`;
USERS: `${string}/users`;
SESSIONS: `${string}/sessions`;
TRACKS: `${string}/tracks`;
EXHIBITIONS: `${string}/exhibitions`;
USER_EVENTS: `${string}/users/events`;
REGISTER: "https://stag-api.hubs101.com/v1/register";
ZOOM: {
SIGNATURE: string;
};
MEETINGS_USERS_API_KEY: `${string}/users/meetings`;
LOCATION_API_KEY: `${string}/locations`;
MEETINGS_API_KEY: `${string}/meetings`;
POSTS: `${string}/posts`;
LINKEDIN_IMPORT_PROFILE: `${string}/linkedin/authorization`;
ACTIONS_EXHIBITIONS: `${string}/actions/exhibitions`;
ACTIONS_ATTENDEES: `${string}/actions/profiles`;
YOUTUBE_SDK_API: `${string}/sdk/youtube`;
DOCUMENTS: `${string}/documents`;
ACTIONS_SESSIONS: `${string}/actions/sessions`;
TERMS_URL: "https://hubs101.com/terms-of-use";
PRIVACY_URL: "https://hubs101.com/privacy-policy";
VERSIONS: "https://stag-api.hubs101.com/versions";
PASSWORD_ACTIVATION: "https://stag-api.hubs101.com/v1/activation";
JITSI_RAW: "https://staging.hubs101.com/virtual-meeting-raw";
VIMEO_VIEW: `${string}/sdk/vimeo/mobile`;
NOTES: `${string}/users/notes`;
MEETINGS_ARRANGE: `${string}/meetings/arrange`;
USER_NOTIFICATIONS: `${string}/users/notifications`;
NOTIFICATIONS: `${string}/notifications`;
GROUPS: `${string}/groups`;
OPTIONS: `${string}/options`;
TICKETS: `${string}/tickets`;
DISCOUNTS: `${string}/discounts`;
LOCATIONS: `${string}/locations`;
PAGES: `${string}/pages`;
PAYMENT_ACCOUNTS: `${string}/payment-account`;
ACCOUNT_TRIAL: `${string}/accounts/trial`;
INVITATION: `${string}/invitation`;
}>;
export declare const ACTION_NAME: {
readonly VIEW: "view";
readonly DOWNLOAD: "download";
readonly WATCH: "watch";
readonly CHAT: "chat";
readonly GROUP_CHAT: "chat";
readonly MEET: "meet";
readonly PIN: "pin";
readonly UNPIN: "unpin";
readonly CREATE: "create";
readonly JOIN: "join";
readonly CONTACT_PHONE: "contact_phone";
readonly CONTACT_MOBILE: "contact_mobile";
readonly CONTACT_EMAIL: "contact_email";
readonly CONTACT_WEBSITE_1: "contact_website1";
readonly CONTACT_WEBSITE_2: "contact_website2";
readonly CONTACT_SOCIAL: "contact_social";
readonly RESERVE: "reserve";
readonly WATCH_RECORDED: "watch_recorded";
};
export declare const ACTION_CATEGORY: {
readonly CLICK: "click";
readonly VIEW: "view";
readonly SYSTEM: "system";
};
export declare const INTERNAL_ACTION_RESOURCE_NAME: {
readonly EXHIBITIONS: "exhibitions";
readonly DOCUMENTS: "documents";
readonly ATTENDEES: "attendees";
readonly MEETING: "meeting";
readonly SESSIONS: "sessions";
readonly PROFILES: "profiles";
};
export declare const EXTERNAL_ACTION_RESOURCE_NAME: {
readonly URL: "url";
readonly CONVERSATION: "conversation";
};
export declare const ACTION_RESOURCE_NAME: {
readonly URL: "url";
readonly CONVERSATION: "conversation";
readonly EXHIBITIONS: "exhibitions";
readonly DOCUMENTS: "documents";
readonly ATTENDEES: "attendees";
readonly MEETING: "meeting";
readonly SESSIONS: "sessions";
readonly PROFILES: "profiles";
};
export declare const ACTION_REFERENCE_TYPE: {
INTERNAL: string;
EXTERNAL: string;
};
export declare const STREAM_TYPES: {
YOUTUBE: string;
JITSI: string;
ZOOM: string;
VIMEO: string;
URL: string;
};
export declare const SESSION_ACTION: {
readonly SESSION_SAVED_SEAT: "session-saved-seat";
readonly SESSION_WATCH_RECORDED: "watch_recorded";
};
export type ValidSessionAction = ObjectValue<typeof SESSION_ACTION>;
export declare const sessionActionsDict: Record<ValidSessionAction, {
action: ActionName;
category: ActionCategory;
resource: ActionResourceName;
}>;