@vtex/api
Version:
VTEX I/O API client
80 lines (79 loc) • 2.55 kB
TypeScript
export declare const NODE_VTEX_API_VERSION: any;
export declare const DEFAULT_WORKSPACE = "master";
export declare const IS_IO: string | undefined;
export declare const PID: number;
export declare const HeaderKeys: {
CACHE_CONTROL: string;
SEGMENT: string;
SESSION: string;
PRODUCT: string;
LOCALE: string;
FORWARDED_HOST: string;
FORWARDED_FOR: string;
TENANT: string;
BINDING: string;
META: string;
META_BUCKET: string;
ETAG: string;
ACCOUNT: string;
CREDENTIAL: string;
REQUEST_ID: string;
ROUTER_CACHE: string;
OPERATION_ID: string;
PLATFORM: string;
WORKSPACE_IS_PRODUCTION: string;
WORKSPACE: string;
EVENT_KEY: string;
EVENT_SENDER: string;
EVENT_SUBJECT: string;
EVENT_HANDLER_ID: string;
COLOSSUS_ROUTE_DECLARER: string;
COLOSSUS_ROUTE_ID: string;
COLOSSUS_PARAMS: string;
TRACE_ID: string;
PROVIDER: string;
USER_AGENT: string;
VTEX_USER_AGENT: string;
VTEX_IO_CALLER: string;
VTEX_APP_SERVICE: string;
VTEX_APP_KEY: string;
VTEX_RETRY_COUNT: string;
};
export declare const AttributeKeys: {
VTEX_ACCOUNT_NAME: "vtex.account.name";
VTEX_IO_WORKSPACE_NAME: "vtex_io.workspace.name";
VTEX_IO_WORKSPACE_TYPE: "vtex_io.workspace.type";
VTEX_IO_APP_ID: "vtex_io.app.id";
VTEX_IO_APP_AUTHOR_TYPE: "vtex_io.app.author_type";
};
export type VaryHeaders = typeof HeaderKeys.SEGMENT | typeof HeaderKeys.SESSION | typeof HeaderKeys.PRODUCT | typeof HeaderKeys.LOCALE;
export declare const BODY_HASH = "__graphqlBodyHash";
export declare const UP_SIGNAL = "UP";
export declare const MAX_AGE: {
LONG: number;
MEDIUM: number;
SHORT: number;
};
export declare const HTTP_SERVER_PORT = 5050;
export declare const MAX_WORKERS = 4;
export declare const LINKED: boolean;
export declare const REGION: string;
export declare const PUBLIC_ENDPOINT: string;
export declare const APP: {
ID: string;
MAJOR: string;
NAME: string;
VENDOR: string;
VERSION: string;
IS_THIRD_PARTY(): boolean;
};
export declare const NODE_ENV: string;
export declare const ACCOUNT: string;
export declare const WORKSPACE: string;
export declare const PRODUCTION: boolean;
export declare const INSPECT_DEBUGGER_PORT = 5858;
export declare const cancellableMethods: Set<string>;
export declare const LOG_CLIENT_INIT_TIMEOUT_MS = 5000;
export declare const OTEL_EXPORTER_OTLP_ENDPOINT: string;
export declare const DK_APP_ID: string;
export declare const DIAGNOSTICS_TELEMETRY_ENABLED: boolean;