Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@latitude-data/client

Package Overview
Dependencies
Maintainers
4
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@latitude-data/client - npm Package Compare versions

Comparing version 0.6.0 to 0.6.1

dist/src/constants.d.ts

51

dist/index.d.ts

@@ -8,3 +8,3 @@ import * as echarts from 'echarts';

import * as zustand_vanilla from 'zustand/vanilla';
import QueryResult from '@latitude-data/query_result';
import QueryResult, { QueryResultPayload } from '@latitude-data/query_result';

@@ -663,3 +663,3 @@ type DBSourceColumn = string | number;

}): string;
declare const WRAPPER_CSS_CLASS$1 = "grid w-full max-w-sm items-center gap-1.5";
declare const WRAPPER_CSS_CLASS$1 = "grid w-full items-center gap-1.5";

@@ -1220,2 +1220,22 @@ declare namespace index$y {

type QueryRequest = {
queryPath: string;
params?: Record<string, unknown>;
};
type QueryParams = Record<string, unknown>;
declare const createQueryKey: (queryPath: string, params: QueryParams) => string;
interface QueryResultState {
isLoading: boolean;
data?: QueryResult | null;
error?: Error | null;
}
interface StoreState {
queries: Record<string, QueryResultState>;
fetch: (request: QueryRequest) => Promise<void>;
forceRefetch: (request: QueryRequest) => Promise<void>;
}
declare const store: zustand_vanilla.StoreApi<StoreState>;
declare const useFetchQuery: (queryPath: string, params: QueryParams) => () => void;
declare const useRunQuery: (queryPath: string, params: QueryParams) => void;
type AnyObject = {

@@ -1240,3 +1260,8 @@ [key: string]: unknown;

static buildParams(params: AnyObject): string;
configure({ host, cors, customHeaders }: LatitudeApiConfig): void;
constructor({ host, cors, customHeaders }?: LatitudeApiConfig);
getQuery({ queryPath, params, force, }: {
queryPath: string;
params?: QueryParams;
force?: boolean;
}): Promise<QueryResultPayload>;
get<T>(urlStr: string, params?: AnyObject, additionalHeaders?: Record<string, string>): Promise<T>;

@@ -1252,20 +1277,2 @@ private buildUrl;

declare const FORCE_REFETCH_PARAMETER = "__force";
type QueryRequest = {
queryPath: string;
params?: Record<string, unknown>;
};
declare const createQueryKey: (queryPath: string, params: Record<string, unknown>) => string;
interface QueryResultState {
isLoading: boolean;
data?: QueryResult | null;
error?: Error | null;
}
interface StoreState {
queries: Record<string, QueryResultState>;
fetch: (request: QueryRequest) => Promise<void>;
forceRefetch: (request: QueryRequest) => Promise<void>;
}
declare const store: zustand_vanilla.StoreApi<StoreState>;
declare const useFetchQuery: (queryPath: string, params?: Record<string, unknown>) => () => void;
declare const useRunQuery: (queryPath: string, params: Record<string, unknown>) => void;

@@ -1279,2 +1286,2 @@ type ExtendsUnion<T, U extends T> = U;

export { ApiError, type BackgroundColor, type CartesianChartProps, type Dataset, type ExtendsUnion, FORCE_REFETCH_PARAMETER, type FontFamily, type FontSize, type FontWeight, type FunnelChartProps, LatitudeApi, type LetterSpacing, type LineHeight, type PieChartProps, type QueryResultState, SPECIAL_PARAMS, type ScatterChartProps, TOKEN_PARAM, type TextAlign, type TextColor, type TextProps, type WhiteSpace, type WordBreak, type ZIndex, api, colors, createQueryKey, store, index as theme, useFetchQuery, useRunQuery, weights, zIndexes };
export { ApiError, type BackgroundColor, type CartesianChartProps, type Dataset, type ExtendsUnion, FORCE_REFETCH_PARAMETER, type FontFamily, type FontSize, type FontWeight, type FunnelChartProps, LatitudeApi, type LatitudeApiConfig, type LetterSpacing, type LineHeight, type PieChartProps, type QueryParams, type QueryResultState, SPECIAL_PARAMS, type ScatterChartProps, TOKEN_PARAM, type TextAlign, type TextColor, type TextProps, type WhiteSpace, type WordBreak, type ZIndex, api, colors, createQueryKey, store, index as theme, useFetchQuery, useRunQuery, weights, zIndexes };

@@ -0,1 +1,3 @@

import { QueryParams } from '../stores/queries';
import { QueryResultPayload } from '@latitude-data/query_result';
type AnyObject = {

@@ -6,3 +8,3 @@ [key: string]: unknown;

export declare const SPECIAL_PARAMS: Set<string>;
type LatitudeApiConfig = {
export type LatitudeApiConfig = {
host?: string;

@@ -21,3 +23,8 @@ cors?: RequestMode;

static buildParams(params: AnyObject): string;
configure({ host, cors, customHeaders }: LatitudeApiConfig): void;
constructor({ host, cors, customHeaders }?: LatitudeApiConfig);
getQuery({ queryPath, params, force, }: {
queryPath: string;
params?: QueryParams;
force?: boolean;
}): Promise<QueryResultPayload>;
get<T>(urlStr: string, params?: AnyObject, additionalHeaders?: Record<string, string>): Promise<T>;

@@ -24,0 +31,0 @@ private buildUrl;

@@ -16,3 +16,4 @@ import { type PieChartProps as PieChartPropsOriginal } from './theme/ui/chart/config/pie';

export * from './theme/ui/tokens';
export * from './constants';
export type { ExtendsUnion } from './lib/commonTypes';
//# sourceMappingURL=index.d.ts.map
import QueryResult from '@latitude-data/query_result';
export declare const FORCE_REFETCH_PARAMETER = "__force";
type QueryRequest = {

@@ -7,3 +6,4 @@ queryPath: string;

};
export declare const createQueryKey: (queryPath: string, params: Record<string, unknown>) => string;
export type QueryParams = Record<string, unknown>;
export declare const createQueryKey: (queryPath: string, params: QueryParams) => string;
export interface QueryResultState {

@@ -20,5 +20,5 @@ isLoading: boolean;

export declare const store: import("zustand/vanilla").StoreApi<StoreState>;
export declare const useFetchQuery: (queryPath: string, params?: Record<string, unknown>) => () => void;
export declare const useRunQuery: (queryPath: string, params: Record<string, unknown>) => void;
export declare const useFetchQuery: (queryPath: string, params: QueryParams) => () => void;
export declare const useRunQuery: (queryPath: string, params: QueryParams) => void;
export {};
//# sourceMappingURL=queries.d.ts.map
export declare function cssClass({ className }: {
className?: string | null;
}): string;
export declare const WRAPPER_CSS_CLASS = "grid w-full max-w-sm items-center gap-1.5";
export declare const WRAPPER_CSS_CLASS = "grid w-full items-center gap-1.5";
//# sourceMappingURL=index.d.ts.map
{
"name": "@latitude-data/client",
"description": "Core package of all Latitude client libraries",
"version": "0.6.0",
"version": "0.6.1",
"license": "LGPL",

@@ -6,0 +6,0 @@ "main": "src/index.ts",

@@ -27,2 +27,3 @@ import { type PieChartProps as PieChartPropsOriginal } from './theme/ui/chart/config/pie'

export * from './theme/ui/tokens'
export * from './constants'
export type { ExtendsUnion } from './lib/commonTypes'

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc