@bluecopa/core 0.1.82 → 0.1.84

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.
package/README.md CHANGED
@@ -31,7 +31,6 @@ The core package provides essential API utilities and functions for data managem
31
31
  - [Templates Module](#templates-module)
32
32
  - [Tcn Module](#tcn-module)
33
33
  - [User Module](#user-module)
34
- - [Webcron Module](#webcron-module)
35
34
  - [Workbook Module](#workbook-module)
36
35
  - [Workflow Module](#workflow-module)
37
36
  - [Worksheet Module](#worksheet-module)
@@ -315,28 +314,6 @@ See: [`tcn/`](src/api/tcn:1)
315
314
 
316
315
  See: [`user/getLoggedInUserDetails.ts`](src/api/user/getLoggedInUserDetails.ts), [`user/getAllUsers.ts`](src/api/user/getAllUsers.ts)
317
316
 
318
- ### Webcron Module
319
-
320
- Webhook CRUD + execution helpers:
321
- - `copaApi.webcron.listWebhooks()`, `getWebhook()`, `createWebhook()`, `updateWebhook()`, `deleteWebhook()`, `testWebhook()`, `getWebhookExecutions()`, `getWebhookSchedules()`, `createWebhookSchedule()`
322
-
323
- Schedule controls:
324
- - `copaApi.webcron.getSchedule()`, `updateSchedule()`, `deleteSchedule()`, `pauseSchedule()`, `resumeSchedule()`, `triggerSchedule()`
325
-
326
- Execution history:
327
- - `copaApi.webcron.listExecutions()`, `getExecution()`, `retryExecution()`
328
-
329
- Task lifecycle:
330
- - `copaApi.webcron.listTasks()`, `createTask()`, `getTask()`, `cancelTask()`, `retryTask()`, `progressTask()`, `signalTask()`
331
-
332
- Inspection bins:
333
- - `copaApi.webcron.listBins()`, `createBin()`, `getBin()`, `deleteBin()`, `getBinRequests()`, `clearBinRequests()`
334
-
335
- Workflow trigger:
336
- - `copaApi.webcron.triggerWorkflowById()`
337
-
338
- See: [`webcron/`](src/api/webcron:1)
339
-
340
317
  ### Workbook Module
341
318
 
342
319
  - `copaApi.workbook.getPublishedWorkbookById(id: string)`: Fetches a published workbook by ID
@@ -7,5 +7,14 @@ export declare const runPublishedDefinition: (props: {
7
7
  };
8
8
  variable: string;
9
9
  inputs: object;
10
+ /**
11
+ * Pre-fetched solution bindings map. External apps fetch bindings once
12
+ * on context/app load via `copaUtils.fetchSolutionBindings()` and
13
+ * forward them on every run. Shape matches what
14
+ * `/api/v1/solution/bindings` returns under `bindings`. When
15
+ * omitted/empty, the BFF skips hydration and falls through to the
16
+ * original `published/run` pass-through.
17
+ */
18
+ solutionBindings?: Record<string, unknown>;
10
19
  source?: CancelTokenSource;
11
20
  }) => Promise<import('axios').AxiosResponse<any, any, {}>>;
@@ -21,5 +21,4 @@ export * as permissions from './permissions';
21
21
  export * as clientIp from './clientIp';
22
22
  export * as emailEngine from './emailEngine';
23
23
  export * as tcn from './tcn';
24
- export * as webcron from './webcron';
25
24
  export * as templates from './templates';
@@ -3,6 +3,13 @@ export declare const getData: (metricSheetId: string, options?: {
3
3
  isKPI?: boolean;
4
4
  plotAsTrend?: boolean;
5
5
  stringValue?: boolean;
6
+ /**
7
+ * Pre-fetched solution bindings map. When the caller (e.g. a React
8
+ * hook driving multiple metric reads in a row) has already fetched
9
+ * bindings, forward them here to skip the per-call `/solution/bindings`
10
+ * round-trip. Omit/undefined → getData fetches on its own.
11
+ */
12
+ solutionBindings?: Record<string, unknown>;
6
13
  }) => Promise<{
7
14
  data?: undefined;
8
15
  } | {
package/dist/config.d.ts CHANGED
@@ -8,6 +8,13 @@ export interface Config {
8
8
  solutionId?: string;
9
9
  solutionBranch?: string;
10
10
  solutionBranchType?: string;
11
+ /**
12
+ * When `true`, the SDK forwards `x-bluecopa-deployed-solution: true`
13
+ * on every request. Required for deployed-solution context — without
14
+ * it, the BFF treats the request as build mode and bindings/run calls
15
+ * may fail or 404 against the wrong backend.
16
+ */
17
+ deployedSolution?: boolean;
11
18
  websocketProvider?: IWebsocketProvider;
12
19
  }
13
20
  declare class ConfigSingleton {
package/dist/index.d.ts CHANGED
@@ -47,6 +47,4 @@ export type { TcnProcessDialData } from './api/tcn/processManualDial';
47
47
  export type { TcnConnectedParty } from './api/tcn/agentGetConnectedParty';
48
48
  export type { TcnCallData } from './api/tcn/getCallData';
49
49
  export type { FilterOnSenderId, EmailMessage, PageChunkEmailMessage, } from './api/emailEngine/getMessageBySenderId';
50
- export type { Webhook, CreateWebhookRequest, UpdateWebhookRequest, Schedule, CreateScheduleRequest, UpdateScheduleRequest, Execution, ListExecutionsParams, Task, CreateTaskRequest, TaskProgressRequest, TaskSignalRequest, InspectionBin, CreateInspectionBinRequest, InspectionRequest, PaginationParams, WebcronHealth, } from './api/webcron/types';
51
- export type { TriggerWorkflowRequest, TriggerWorkflowResponse, } from './api/webcron/trigger';
52
50
  export type { RenderTemplateRequest, RenderTemplateResponse, RenderTemplateWarning, TemplateEngine, } from './api/templates/render';