@narrative.io/data-collaboration-sdk-ts 3.7.0 → 4.0.0-beta.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.
- package/build/access-rules/index.d.ts +3 -3
- package/build/access-rules/index.js +1 -1
- package/build/access-rules/types.d.ts +17 -3
- package/build/access-tokens/index.d.ts +4 -4
- package/build/access-tokens/index.js +3 -2
- package/build/access-tokens/types.d.ts +5 -3
- package/build/agents/types.d.ts +22 -6
- package/build/apps/index.d.ts +19 -6
- package/build/apps/index.js +26 -10
- package/build/apps/types.d.ts +1 -1
- package/build/attributes/index.d.ts +15 -12
- package/build/attributes/index.js +16 -7
- package/build/attributes/types.d.ts +18 -2
- package/build/authentication/types.d.ts +3 -3
- package/build/companies/index.d.ts +7 -4
- package/build/companies/index.js +10 -5
- package/build/company-info/types.d.ts +10 -0
- package/build/compute-pools/types.d.ts +23 -2
- package/build/connections/index.d.ts +29 -25
- package/build/connections/index.js +48 -29
- package/build/connections/types.d.ts +69 -16
- package/build/contracts/index.d.ts +10 -19
- package/build/contracts/index.js +8 -22
- package/build/contracts/types.d.ts +6 -2
- package/build/data-planes/index.d.ts +5 -1
- package/build/data-planes/index.js +7 -1
- package/build/data-planes/types.d.ts +95 -15
- package/build/data-streams/types.d.ts +13 -11
- package/build/datasets/index.d.ts +15 -4
- package/build/datasets/index.js +5 -3
- package/build/datasets/types.d.ts +17 -11
- package/build/encryption-materials/index.d.ts +5 -3
- package/build/encryption-materials/index.js +3 -1
- package/build/encryption-materials/types.d.ts +17 -5
- package/build/forecast/types.d.ts +42 -18
- package/build/health/index.d.ts +5 -0
- package/build/health/index.js +5 -0
- package/build/health/types.d.ts +8 -2
- package/build/installations/index.d.ts +6 -0
- package/build/installations/index.js +2 -1
- package/build/installations/types.d.ts +7 -1
- package/build/jobs/index.d.ts +7 -3
- package/build/jobs/index.js +5 -3
- package/build/jobs/types.d.ts +14 -14
- package/build/mappings/index.d.ts +15 -5
- package/build/mappings/index.js +9 -4
- package/build/mappings/types.d.ts +5 -3
- package/build/model-inference/index.d.ts +2 -2
- package/build/model-inference/types.d.ts +23 -4
- package/build/model-training/types.d.ts +16 -1
- package/build/models/index.d.ts +13 -12
- package/build/models/index.js +29 -8
- package/build/models/types.d.ts +96 -10
- package/build/nql/AstParser.js +29 -6
- package/build/nql/NqlBuilder.js +14 -1
- package/build/nql/types.d.ts +17 -7
- package/build/nql/types.js +5 -1
- package/build/ping/index.d.ts +5 -1
- package/build/ping/index.js +5 -1
- package/build/products/index.d.ts +4 -3
- package/build/products/index.js +2 -2
- package/build/products/types.d.ts +26 -23
- package/build/queries/index.d.ts +7 -6
- package/build/queries/index.js +34 -4
- package/build/queries/types.d.ts +15 -0
- package/build/resources/index.d.ts +2 -2
- package/build/resources/index.js +1 -1
- package/build/resources/types.d.ts +16 -8
- package/build/rosetta-stone/index.d.ts +8 -8
- package/build/rosetta-stone/index.js +16 -32
- package/build/subscriptions/types.d.ts +3 -3
- package/build/uploads/index.d.ts +4 -1
- package/build/uploads/index.js +5 -2
- package/build/views/index.d.ts +11 -10
- package/build/views/index.js +40 -7
- package/build/views/types.d.ts +25 -4
- package/build/whoami/types.d.ts +38 -9
- package/build/workflows/index.d.ts +6 -7
- package/build/workflows/index.js +3 -2
- package/build/workflows/types.d.ts +14 -3
- package/package.json +3 -3
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { BaseApi } from "../base-api";
|
|
2
|
-
import type {
|
|
3
|
-
type WorkflowPaginationOptions = PaginationOptions & Record<string, unknown>;
|
|
4
|
-
import type { CreateWorkflowRequest, CreateWorkflowResponse, ListRunsParams, ListRunsResponse, ListWorkflowsResponse, ScheduleWorkflowRequest, ScheduleWorkflowResponse, TriggerWorkflowResponse, WorkflowResponse, WorkflowRun, WorkflowRunStatus, WorkflowStatus } from "./types";
|
|
2
|
+
import type { CreateWorkflowRequest, CreateWorkflowResponse, ListRunsParams, ListRunsResponse, ListWorkflowsParams, ListWorkflowsResponse, ScheduleWorkflowRequest, ScheduleWorkflowResponse, TriggerWorkflowResponse, WorkflowResponse, WorkflowRun, WorkflowRunStatus, WorkflowStatus } from "./types";
|
|
5
3
|
/**
|
|
6
4
|
* @module WorkflowsApi
|
|
7
5
|
* @description This module provides methods for creating, scheduling, triggering, and archiving workflows.
|
|
@@ -11,10 +9,11 @@ declare class WorkflowsApi extends BaseApi {
|
|
|
11
9
|
/**
|
|
12
10
|
* List all active workflows for the authenticated company.
|
|
13
11
|
*
|
|
14
|
-
* @param {
|
|
12
|
+
* @param {ListWorkflowsParams} [params] - Optional pagination parameters, plus
|
|
13
|
+
* `data_plane_id` to return only the workflows on that data plane.
|
|
15
14
|
* @returns {Promise<ListWorkflowsResponse>} A promise that resolves to a paginated list of workflows.
|
|
16
15
|
*/
|
|
17
|
-
listWorkflows(params?:
|
|
16
|
+
listWorkflows(params?: ListWorkflowsParams): Promise<ListWorkflowsResponse>;
|
|
18
17
|
/**
|
|
19
18
|
* Create a new workflow from a YAML specification.
|
|
20
19
|
* The specification is parsed and validated before the workflow is persisted.
|
|
@@ -58,9 +57,9 @@ declare class WorkflowsApi extends BaseApi {
|
|
|
58
57
|
* List execution runs for a workflow. Results are ordered by start time descending.
|
|
59
58
|
*
|
|
60
59
|
* @param {string} workflowId - The unique identifier for the workflow.
|
|
61
|
-
* @param {ListRunsParams} [params] - Optional pagination parameters (
|
|
60
|
+
* @param {ListRunsParams} [params] - Optional pagination parameters (per_page, page_token).
|
|
62
61
|
* @returns {Promise<ListRunsResponse>} A promise that resolves to a paginated list of workflow runs.
|
|
63
62
|
*/
|
|
64
63
|
listWorkflowRuns(workflowId: string, params?: ListRunsParams): Promise<ListRunsResponse>;
|
|
65
64
|
}
|
|
66
|
-
export { type CreateWorkflowRequest, type CreateWorkflowResponse, type ListRunsParams, type ListRunsResponse, type ListWorkflowsResponse, type ScheduleWorkflowRequest, type ScheduleWorkflowResponse, type TriggerWorkflowResponse, type WorkflowResponse, type WorkflowRun, type WorkflowRunStatus, type WorkflowStatus, WorkflowsApi, };
|
|
65
|
+
export { type CreateWorkflowRequest, type CreateWorkflowResponse, type ListRunsParams, type ListRunsResponse, type ListWorkflowsParams, type ListWorkflowsResponse, type ScheduleWorkflowRequest, type ScheduleWorkflowResponse, type TriggerWorkflowResponse, type WorkflowResponse, type WorkflowRun, type WorkflowRunStatus, type WorkflowStatus, WorkflowsApi, };
|
package/build/workflows/index.js
CHANGED
|
@@ -9,7 +9,8 @@ class WorkflowsApi extends BaseApi {
|
|
|
9
9
|
/**
|
|
10
10
|
* List all active workflows for the authenticated company.
|
|
11
11
|
*
|
|
12
|
-
* @param {
|
|
12
|
+
* @param {ListWorkflowsParams} [params] - Optional pagination parameters, plus
|
|
13
|
+
* `data_plane_id` to return only the workflows on that data plane.
|
|
13
14
|
* @returns {Promise<ListWorkflowsResponse>} A promise that resolves to a paginated list of workflows.
|
|
14
15
|
*/
|
|
15
16
|
async listWorkflows(params) {
|
|
@@ -68,7 +69,7 @@ class WorkflowsApi extends BaseApi {
|
|
|
68
69
|
* List execution runs for a workflow. Results are ordered by start time descending.
|
|
69
70
|
*
|
|
70
71
|
* @param {string} workflowId - The unique identifier for the workflow.
|
|
71
|
-
* @param {ListRunsParams} [params] - Optional pagination parameters (
|
|
72
|
+
* @param {ListRunsParams} [params] - Optional pagination parameters (per_page, page_token).
|
|
72
73
|
* @returns {Promise<ListRunsResponse>} A promise that resolves to a paginated list of workflow runs.
|
|
73
74
|
*/
|
|
74
75
|
async listWorkflowRuns(workflowId, params) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { PaginationOptions } from "../types";
|
|
1
2
|
export type WorkflowStatus = "active" | "archived";
|
|
2
3
|
export type WorkflowRunStatus = "running" | "completed" | "failed" | "canceled" | "terminated" | "unknown";
|
|
3
4
|
export interface WorkflowResponse {
|
|
@@ -10,13 +11,17 @@ export interface WorkflowResponse {
|
|
|
10
11
|
created_by: number;
|
|
11
12
|
updated_at: string;
|
|
12
13
|
status: WorkflowStatus;
|
|
13
|
-
archived_at
|
|
14
|
+
archived_at: string | null;
|
|
15
|
+
/** Tags that describe the workflow. */
|
|
16
|
+
tags: string[];
|
|
14
17
|
}
|
|
15
18
|
export interface CreateWorkflowRequest {
|
|
16
19
|
specification: string;
|
|
17
20
|
data_plane_id: string;
|
|
18
21
|
trigger_immediately?: boolean | null;
|
|
19
22
|
schedule_immediately?: boolean | null;
|
|
23
|
+
/** Tags that describe the workflow. Defaults to an empty list. */
|
|
24
|
+
tags?: string[];
|
|
20
25
|
}
|
|
21
26
|
export interface CreateWorkflowResponse extends WorkflowResponse {
|
|
22
27
|
run_id?: string | null;
|
|
@@ -49,6 +54,12 @@ export interface ListRunsResponse {
|
|
|
49
54
|
next_page_token?: string | null;
|
|
50
55
|
}
|
|
51
56
|
export interface ListRunsParams extends Record<string, unknown> {
|
|
52
|
-
|
|
53
|
-
|
|
57
|
+
/** Maximum number of runs to return per page (`per_page` query param). Defaults to 10. */
|
|
58
|
+
per_page?: number;
|
|
59
|
+
/** Opaque token from a previous response (`page_token` query param). */
|
|
60
|
+
page_token?: string;
|
|
61
|
+
}
|
|
62
|
+
export interface ListWorkflowsParams extends PaginationOptions, Record<string, unknown> {
|
|
63
|
+
/** Narrow results to workflows on this data plane. */
|
|
64
|
+
data_plane_id?: string;
|
|
54
65
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@narrative.io/data-collaboration-sdk-ts",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-beta.0",
|
|
4
4
|
"main": "build/index.js",
|
|
5
5
|
"repository": "github:narrative-io/data-collaboration-sdk-ts",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@babel/core": "8.0.1",
|
|
31
31
|
"@babel/preset-env": "8.0.2",
|
|
32
32
|
"@babel/preset-typescript": "8.0.1",
|
|
33
|
-
"@biomejs/biome": "2.5.
|
|
33
|
+
"@biomejs/biome": "2.5.5",
|
|
34
34
|
"@commitlint/cli": "21.2.1",
|
|
35
35
|
"@commitlint/config-conventional": "21.2.0",
|
|
36
36
|
"@types/jest": "30.0.0",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"babel-jest": "30.4.1",
|
|
39
39
|
"jest": "30.4.2",
|
|
40
40
|
"lefthook": "2.1.10",
|
|
41
|
-
"ts-jest": "29.4.
|
|
41
|
+
"ts-jest": "29.4.12",
|
|
42
42
|
"typescript": "6.0.0-dev.20260416"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|