deepspotscreen-sdk 0.0.2 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -25,6 +25,17 @@ export declare class ApiClient {
25
25
  createApiKey(payload: CreateApiKeyPayload, userToken: string): Promise<ApiKey>;
26
26
  listApiKeys(userToken: string): Promise<ApiKey[]>;
27
27
  deleteApiKey(keyId: string, userToken: string): Promise<void>;
28
+ /**
29
+ * Fetches one page of data for an embedded data-table component.
30
+ * Called by TableRenderer whenever the user navigates to a different page.
31
+ * Mirrors: GET /dashboard-builder/embed/:dashboardId/table/:componentId/data
32
+ */
33
+ getTablePage(dashboardId: string, componentId: string, page: number, pageSize: number, token: string): Promise<{
34
+ rows: Record<string, any>[];
35
+ total: number;
36
+ page: number;
37
+ pageSize: number;
38
+ }>;
28
39
  /**
29
40
  * Fetches distinct option values for a dropdown / multi-select filter.
30
41
  * Mirrors the main dashboard call:
@@ -30,6 +30,10 @@ export declare class EmbedInstance implements IEmbedInstance {
30
30
  setFilter(field: string, value: any): void;
31
31
  /** Apply multiple filters at once and re-fetch */
32
32
  setFilters(filters: Record<string, any>): void;
33
+ /** v2 alias for setFilter — sets a global filter and re-fetches data */
34
+ setGlobalFilter(field: string, value: any): void;
35
+ /** v2: clear all active filters and re-fetch data */
36
+ clearFilters(): void;
33
37
  /** Navigate to a different page (dashboard embed only) */
34
38
  goToPage(pageId: string): void;
35
39
  /** Navigate to a specific tab on a specific page */