@hubs101/js-api-skd-client
Version:
Package for easy access to Event App API
192 lines (191 loc) • 9.5 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.we-conect.com";
export declare const STAGING_URL_UNAUTHORIZED = "https://api-staging.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 = "https://api.we-conect.com/api/v1";
export declare const STAGING_URL = "https://api-staging.hubs101.com/api/v1";
export declare const UNAUTHORIZED_PRODUCTION_URL = "https://api.we-conect.com/v1";
export declare const UNAUTHORIZED_STAGING_URL = "https://api-staging.hubs101.com/v1";
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: "https://api.we-conect.com/api/v1/accounts";
ATTENDEES: "https://api.we-conect.com/api/v1/attendees";
AUTH: {
LOGIN: string;
LOGOUT: string;
TOKEN_REFRESH: string;
RESET_PASSWORD: string;
};
CONNECTIONS: "https://api.we-conect.com/api/v1/users/connections";
EVENTS: "https://api.we-conect.com/api/v1/events";
PROFILE: "https://api.we-conect.com/api/v1/users/profile";
USERS: "https://api.we-conect.com/api/v1/users";
SESSIONS: "https://api.we-conect.com/api/v1/sessions";
TRACKS: "https://api.we-conect.com/api/v1/tracks";
EXHIBITIONS: "https://api.we-conect.com/api/v1/exhibitions";
USER_EVENTS: "https://api.we-conect.com/api/v1/users/events";
REGISTER: "https://api.we-conect.com/v1/register";
ZOOM: {
SIGNATURE: string;
};
MEETINGS_USERS_API_KEY: "https://api.we-conect.com/api/v1/users/meetings";
LOCATION_API_KEY: "https://api.we-conect.com/api/v1/locations";
MEETINGS_API_KEY: "https://api.we-conect.com/api/v1/meetings";
POSTS: "https://api.we-conect.com/api/v1/posts";
LINKEDIN_IMPORT_PROFILE: "https://api.we-conect.com/api/v1/linkedin/authorization";
ACTIONS_EXHIBITIONS: "https://api.we-conect.com/api/v1/actions/exhibitions";
ACTIONS_ATTENDEES: "https://api.we-conect.com/api/v1/actions/profiles";
YOUTUBE_SDK_API: "https://api.we-conect.com/api/v1/sdk/youtube";
DOCUMENTS: "https://api.we-conect.com/api/v1/documents";
ACTIONS_SESSIONS: "https://api.we-conect.com/api/v1/actions/sessions";
TERMS_URL: "https://hubs101.com/terms-of-use";
PRIVACY_URL: "https://hubs101.com/privacy-policy";
VERSIONS: "https://api.we-conect.com/versions";
PASSWORD_ACTIVATION: "https://api.we-conect.com/v1/activation";
VIMEO_VIEW: "https://api.we-conect.com/api/v1/sdk/vimeo/mobile";
NOTES: "https://api.we-conect.com/api/v1/users/notes";
MEETINGS_ARRANGE: "https://api.we-conect.com/api/v1/meetings/arrange";
USER_NOTIFICATIONS: "https://api.we-conect.com/api/v1/users/notifications";
NOTIFICATIONS: "https://api.we-conect.com/api/v1/notifications";
GROUPS: "https://api.we-conect.com/api/v1/groups";
OPTIONS: "https://api.we-conect.com/api/v1/options";
TICKETS: "https://api.we-conect.com/api/v1/tickets";
DISCOUNTS: "https://api.we-conect.com/api/v1/discounts";
LOCATIONS: "https://api.we-conect.com/api/v1/locations";
PAGES: "https://api.we-conect.com/api/v1/pages";
PORTFOLIOS: "https://api.we-conect.com/api/v1/portfolios";
PAYMENT_ACCOUNTS: "https://api.we-conect.com/api/v1/payment-account";
ACCOUNT_TRIAL: "https://api.we-conect.com/v1/accounts/trial";
INVITATION: "https://api.we-conect.com/v1/invitation";
BOOKINGS: "https://api.we-conect.com/api/v1/bookings";
PUBLIC_BOOKINGS: "https://api.we-conect.com/v1/bookings";
PUBLIC_OFFERS: "https://api.we-conect.com/v1/offers";
}>;
export declare const API_STAGE_PATH: Readonly<{
ACCOUNTS: "https://api-staging.hubs101.com/api/v1/accounts";
ATTENDEES: "https://api-staging.hubs101.com/api/v1/attendees";
AUTH: {
LOGIN: string;
LOGOUT: string;
TOKEN_REFRESH: string;
RESET_PASSWORD: string;
};
CONNECTIONS: "https://api-staging.hubs101.com/api/v1/users/connections";
EVENTS: "https://api-staging.hubs101.com/api/v1/events";
PROFILE: "https://api-staging.hubs101.com/api/v1/users/profile";
USERS: "https://api-staging.hubs101.com/api/v1/users";
SESSIONS: "https://api-staging.hubs101.com/api/v1/sessions";
TRACKS: "https://api-staging.hubs101.com/api/v1/tracks";
EXHIBITIONS: "https://api-staging.hubs101.com/api/v1/exhibitions";
USER_EVENTS: "https://api-staging.hubs101.com/api/v1/users/events";
REGISTER: "https://api-staging.hubs101.com/v1/register";
ZOOM: {
SIGNATURE: string;
};
MEETINGS_USERS_API_KEY: "https://api-staging.hubs101.com/api/v1/users/meetings";
LOCATION_API_KEY: "https://api-staging.hubs101.com/api/v1/locations";
MEETINGS_API_KEY: "https://api-staging.hubs101.com/api/v1/meetings";
POSTS: "https://api-staging.hubs101.com/api/v1/posts";
LINKEDIN_IMPORT_PROFILE: "https://api-staging.hubs101.com/api/v1/linkedin/authorization";
ACTIONS_EXHIBITIONS: "https://api-staging.hubs101.com/api/v1/actions/exhibitions";
ACTIONS_ATTENDEES: "https://api-staging.hubs101.com/api/v1/actions/profiles";
YOUTUBE_SDK_API: "https://api-staging.hubs101.com/api/v1/sdk/youtube";
DOCUMENTS: "https://api-staging.hubs101.com/api/v1/documents";
ACTIONS_SESSIONS: "https://api-staging.hubs101.com/api/v1/actions/sessions";
TERMS_URL: "https://hubs101.com/terms-of-use";
PRIVACY_URL: "https://hubs101.com/privacy-policy";
VERSIONS: "https://api-staging.hubs101.com/versions";
PASSWORD_ACTIVATION: "https://api-staging.hubs101.com/v1/activation";
JITSI_RAW: "https://staging.hubs101.com/virtual-meeting-raw";
VIMEO_VIEW: "https://api-staging.hubs101.com/api/v1/sdk/vimeo/mobile";
NOTES: "https://api-staging.hubs101.com/api/v1/users/notes";
MEETINGS_ARRANGE: "https://api-staging.hubs101.com/api/v1/meetings/arrange";
USER_NOTIFICATIONS: "https://api-staging.hubs101.com/api/v1/users/notifications";
NOTIFICATIONS: "https://api-staging.hubs101.com/api/v1/notifications";
GROUPS: "https://api-staging.hubs101.com/api/v1/groups";
OPTIONS: "https://api-staging.hubs101.com/api/v1/options";
TICKETS: "https://api-staging.hubs101.com/api/v1/tickets";
DISCOUNTS: "https://api-staging.hubs101.com/api/v1/discounts";
LOCATIONS: "https://api-staging.hubs101.com/api/v1/locations";
PAGES: "https://api-staging.hubs101.com/api/v1/pages";
PORTFOLIOS: "https://api-staging.hubs101.com/api/v1/portfolios";
PAYMENT_ACCOUNTS: "https://api-staging.hubs101.com/api/v1/payment-account";
ACCOUNT_TRIAL: "https://api-staging.hubs101.com/v1/accounts/trial";
INVITATION: "https://api-staging.hubs101.com/v1/invitation";
BOOKINGS: "https://api-staging.hubs101.com/api/v1/bookings";
PUBLIC_BOOKINGS: "https://api-staging.hubs101.com/v1/bookings";
PUBLIC_OFFERS: "https://api-staging.hubs101.com/v1/offers";
ACTIONS_EVENTS: "https://api-staging.hubs101.com/api/v1/actions/events";
ACTIONS_ATTENDEE: "https://api-staging.hubs101.com/api/v1/actions/attendees";
}>;
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;
}>;