@narrative.io/data-collaboration-sdk-ts 2.28.0 → 2.30.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.
@@ -12,6 +12,7 @@ export declare const resources: {
12
12
  readonly connections: "Connections";
13
13
  readonly contracts: "Contracts";
14
14
  readonly data_planes: "Data Planes";
15
+ readonly data_plane_logs: "Data Plane Logs";
15
16
  readonly data_streams: "Data Streams";
16
17
  readonly datasets: "Datasets";
17
18
  readonly deliveries: "Deliveries";
@@ -22,6 +23,8 @@ export declare const resources: {
22
23
  readonly installations: "Installations";
23
24
  readonly jobs: "Jobs";
24
25
  readonly mappings: "Mappings";
26
+ readonly models: "Models";
27
+ readonly model_training: "Model Training";
25
28
  readonly nql: "NQL";
26
29
  readonly payment_methods: "Payment Methods";
27
30
  readonly profile_store_data: "Profile Store Data";
@@ -31,7 +34,6 @@ export declare const resources: {
31
34
  readonly subscriptions: "Subscriptions";
32
35
  readonly uploads: "Uploads";
33
36
  readonly usage: "Usage";
34
- readonly data_plane_logs: "Data Plane Logs";
35
37
  };
36
38
  export type Resource = keyof typeof resources;
37
39
  export interface Permission {
@@ -11,6 +11,7 @@ export const resources = {
11
11
  connections: "Connections",
12
12
  contracts: "Contracts",
13
13
  data_planes: "Data Planes",
14
+ data_plane_logs: "Data Plane Logs",
14
15
  data_streams: "Data Streams",
15
16
  datasets: "Datasets",
16
17
  deliveries: "Deliveries",
@@ -21,6 +22,8 @@ export const resources = {
21
22
  installations: "Installations",
22
23
  jobs: "Jobs",
23
24
  mappings: "Mappings",
25
+ models: "Models",
26
+ model_training: "Model Training",
24
27
  nql: "NQL",
25
28
  payment_methods: "Payment Methods",
26
29
  profile_store_data: "Profile Store Data",
@@ -30,5 +33,4 @@ export const resources = {
30
33
  subscriptions: "Subscriptions",
31
34
  uploads: "Uploads",
32
35
  usage: "Usage",
33
- data_plane_logs: "Data Plane Logs",
34
36
  };
@@ -22,5 +22,10 @@ declare class JobsApi extends BaseApi {
22
22
  * @returns {Promise<Job>} - Promise resolving with the job.
23
23
  */
24
24
  getJob(jobId: string): Promise<Job>;
25
+ /**
26
+ * Cancel a job by id
27
+ * @returns {Promise<void>} - Promise resolving with void.
28
+ */
29
+ cancelJob(jobId: string): Promise<void>;
25
30
  }
26
31
  export { type Job, type ExplainInput, type MaterializedViewInput, type ExplainOutput, type MaterializedViewOutput, JobsApi, type GetJobsParameters, };
@@ -21,5 +21,12 @@ class JobsApi extends BaseApi {
21
21
  async getJob(jobId) {
22
22
  return await this.get(`${resourceName}/${jobId}`);
23
23
  }
24
+ /**
25
+ * Cancel a job by id
26
+ * @returns {Promise<void>} - Promise resolving with void.
27
+ */
28
+ async cancelJob(jobId) {
29
+ await this.post(`${resourceName}/${jobId}/request-cancellation`);
30
+ }
24
31
  }
25
32
  export { JobsApi, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@narrative.io/data-collaboration-sdk-ts",
3
- "version": "2.28.0",
3
+ "version": "2.30.0",
4
4
  "main": "build/index.js",
5
5
  "repository": "github:narrative-io/data-collaboration-sdk-ts",
6
6
  "source": "src/index.ts",