@narrative.io/data-collaboration-sdk-ts 2.106.0 → 2.107.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/jobs/index.d.ts +10 -8
- package/build/jobs/index.js +2 -1
- package/package.json +2 -2
package/build/jobs/index.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { BaseApi } from "../base-api";
|
|
2
|
-
import type {
|
|
2
|
+
import type { ApiRecordsV2 } from "../types";
|
|
3
3
|
import type { CalculateAffectedRowsInput, CalculateAffectedRowsJob, CollectAccessRulesBillingDataInput, CollectAccessRulesBillingDataJob, CollectAccessRulesBillingDataResult, ColumnDetails, ColumnStatDataType, CostsInput, CostsJob, CreateTableInput, DatasetsCalculateColumnStatsJob, DatasetsCreateTableJob, DatasetsDeleteTableJob, DatasetsDeliverDataJob, DatasetsEnforceRowTtlRetentionPolicyJob, DatasetsEnforceTableTtlRetentionPolicyJob, DatasetsExecuteDmlJob, DatasetsExecuteSelectJob, DatasetsSampleJob, DatasetsSuggestMappingsJob, DatasetsTruncateTableJob, DeleteInput, DeliverInput, EnabledColumnStatFlags, EnforceRowTtlRetentionPolicyInput, EnforceTableTtlRetentionPolicyInput, ExecuteDmlInput, ExecuteDmlResult, ExecuteSelectInput, ExecuteSelectResult, ExplainInput, ExplainJob, ExplainOutput, ForecastInput, ForecastInternalJob, ForecastJob, HealthCheckJob, Job, JobExecutionCluster, JobRequestSource, JobRequestSourceApiUser, JobRequestSourceProcess, JobType, KnownJob, MaterializedViewInput, MaterializedViewJob, MaterializedViewOutput, MaterializedViewRowStats, ModelInferenceRunInput, ModelInferenceRunJob, ModelInferenceRunJobResult, ModelsDeliverModelInput, ModelsDeliverModelJob, ModelsTrainClassifierJob, ModelTrainingRunInput, ModelTrainingRunJob, RefreshMaterializedViewResult, SampleInput, StatsInput, StatsInputV2, SuggestMappingsInput, SuggestMappingsResult, TruncateTableInput } from "./types";
|
|
4
4
|
import { isKnownJob, KNOWN_JOB_TYPES } from "./types";
|
|
5
|
-
|
|
5
|
+
type JobStateFilter = "cancelled" | "completed" | "failed" | "pending" | "pending_cancellation" | "running";
|
|
6
|
+
interface GetJobsParameters extends Record<string, string | number | boolean | string[] | undefined> {
|
|
6
7
|
dataset_id?: number;
|
|
7
8
|
per_page?: number;
|
|
8
9
|
offset?: number;
|
|
9
|
-
order_by?: "created_at_asc" | "created_at_desc";
|
|
10
|
-
state?:
|
|
11
|
-
type?: string;
|
|
10
|
+
order_by?: "created_at_asc" | "created_at_desc" | "updated_at_asc" | "updated_at_desc";
|
|
11
|
+
state?: JobStateFilter | JobStateFilter[];
|
|
12
|
+
type?: string | string[];
|
|
12
13
|
}
|
|
13
14
|
/**
|
|
14
15
|
* @module JobsApi
|
|
@@ -18,9 +19,10 @@ interface GetJobsParameters extends Record<string, string | number | boolean | u
|
|
|
18
19
|
declare class JobsApi extends BaseApi {
|
|
19
20
|
/**
|
|
20
21
|
* Get all jobs for the current company
|
|
21
|
-
* @returns {Promise<
|
|
22
|
+
* @returns {Promise<ApiRecordsV2<Job>>} - Promise resolving with a page of jobs plus pagination
|
|
23
|
+
* metadata (current_page, total_pages, total_records, prev_page, next_page).
|
|
22
24
|
*/
|
|
23
|
-
getJobs(parameters?: GetJobsParameters): Promise<
|
|
25
|
+
getJobs(parameters?: GetJobsParameters): Promise<ApiRecordsV2<Job>>;
|
|
24
26
|
/**
|
|
25
27
|
* Get a specific job by id
|
|
26
28
|
* @returns {Promise<Job>} - Promise resolving with the job.
|
|
@@ -32,4 +34,4 @@ declare class JobsApi extends BaseApi {
|
|
|
32
34
|
*/
|
|
33
35
|
cancelJob(jobId: string): Promise<void>;
|
|
34
36
|
}
|
|
35
|
-
export { type CalculateAffectedRowsInput, type CalculateAffectedRowsJob, type CollectAccessRulesBillingDataInput, type CollectAccessRulesBillingDataJob, type CollectAccessRulesBillingDataResult, type ColumnDetails, type ColumnStatDataType, type CostsInput, type CostsJob, type CreateTableInput, type DatasetsCalculateColumnStatsJob, type DatasetsCreateTableJob, type DatasetsDeleteTableJob, type DatasetsDeliverDataJob, type DatasetsEnforceRowTtlRetentionPolicyJob, type DatasetsEnforceTableTtlRetentionPolicyJob, type DatasetsExecuteDmlJob, type DatasetsExecuteSelectJob, type DatasetsSampleJob, type DatasetsSuggestMappingsJob, type DatasetsTruncateTableJob, type DeleteInput, type DeliverInput, type EnabledColumnStatFlags, type EnforceRowTtlRetentionPolicyInput, type EnforceTableTtlRetentionPolicyInput, type ExecuteDmlInput, type ExecuteDmlResult, type ExecuteSelectInput, type ExecuteSelectResult, type ExplainInput, type ExplainJob, type ExplainOutput, type ForecastInput, type ForecastInternalJob, type ForecastJob, type GetJobsParameters, type HealthCheckJob, isKnownJob, type Job, type JobExecutionCluster, type JobRequestSource, type JobRequestSourceApiUser, type JobRequestSourceProcess, JobsApi, type JobType, KNOWN_JOB_TYPES, type KnownJob, type MaterializedViewInput, type MaterializedViewJob, type MaterializedViewOutput, type MaterializedViewRowStats, type ModelInferenceRunInput, type ModelInferenceRunJob, type ModelInferenceRunJobResult, type ModelsDeliverModelInput, type ModelsDeliverModelJob, type ModelsTrainClassifierJob, type ModelTrainingRunInput, type ModelTrainingRunJob, type RefreshMaterializedViewResult, type SampleInput, type StatsInput, type StatsInputV2, type SuggestMappingsInput, type SuggestMappingsResult, type TruncateTableInput, };
|
|
37
|
+
export { type CalculateAffectedRowsInput, type CalculateAffectedRowsJob, type CollectAccessRulesBillingDataInput, type CollectAccessRulesBillingDataJob, type CollectAccessRulesBillingDataResult, type ColumnDetails, type ColumnStatDataType, type CostsInput, type CostsJob, type CreateTableInput, type DatasetsCalculateColumnStatsJob, type DatasetsCreateTableJob, type DatasetsDeleteTableJob, type DatasetsDeliverDataJob, type DatasetsEnforceRowTtlRetentionPolicyJob, type DatasetsEnforceTableTtlRetentionPolicyJob, type DatasetsExecuteDmlJob, type DatasetsExecuteSelectJob, type DatasetsSampleJob, type DatasetsSuggestMappingsJob, type DatasetsTruncateTableJob, type DeleteInput, type DeliverInput, type EnabledColumnStatFlags, type EnforceRowTtlRetentionPolicyInput, type EnforceTableTtlRetentionPolicyInput, type ExecuteDmlInput, type ExecuteDmlResult, type ExecuteSelectInput, type ExecuteSelectResult, type ExplainInput, type ExplainJob, type ExplainOutput, type ForecastInput, type ForecastInternalJob, type ForecastJob, type GetJobsParameters, type HealthCheckJob, isKnownJob, type Job, type JobExecutionCluster, type JobRequestSource, type JobRequestSourceApiUser, type JobRequestSourceProcess, type JobStateFilter, JobsApi, type JobType, KNOWN_JOB_TYPES, type KnownJob, type MaterializedViewInput, type MaterializedViewJob, type MaterializedViewOutput, type MaterializedViewRowStats, type ModelInferenceRunInput, type ModelInferenceRunJob, type ModelInferenceRunJobResult, type ModelsDeliverModelInput, type ModelsDeliverModelJob, type ModelsTrainClassifierJob, type ModelTrainingRunInput, type ModelTrainingRunJob, type RefreshMaterializedViewResult, type SampleInput, type StatsInput, type StatsInputV2, type SuggestMappingsInput, type SuggestMappingsResult, type TruncateTableInput, };
|
package/build/jobs/index.js
CHANGED
|
@@ -9,7 +9,8 @@ const resourceName = "jobs";
|
|
|
9
9
|
class JobsApi extends BaseApi {
|
|
10
10
|
/**
|
|
11
11
|
* Get all jobs for the current company
|
|
12
|
-
* @returns {Promise<
|
|
12
|
+
* @returns {Promise<ApiRecordsV2<Job>>} - Promise resolving with a page of jobs plus pagination
|
|
13
|
+
* metadata (current_page, total_pages, total_records, prev_page, next_page).
|
|
13
14
|
*/
|
|
14
15
|
async getJobs(parameters) {
|
|
15
16
|
const queryString = this.constructQueryString(parameters);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@narrative.io/data-collaboration-sdk-ts",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.107.0",
|
|
4
4
|
"main": "build/index.js",
|
|
5
5
|
"repository": "github:narrative-io/data-collaboration-sdk-ts",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@babel/core": "7.29.7",
|
|
29
29
|
"@babel/preset-env": "7.29.7",
|
|
30
30
|
"@babel/preset-typescript": "7.29.7",
|
|
31
|
-
"@biomejs/biome": "2.4.
|
|
31
|
+
"@biomejs/biome": "2.4.16",
|
|
32
32
|
"@commitlint/cli": "21.0.1",
|
|
33
33
|
"@commitlint/config-conventional": "21.0.1",
|
|
34
34
|
"@types/jest": "30.0.0",
|