@narrative.io/data-collaboration-sdk-ts 0.0.53 → 0.0.54

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/index.d.ts CHANGED
@@ -16,14 +16,13 @@ import { type PingStatus } from './ping/types';
16
16
  import { type Product, ProductsApi } from './products';
17
17
  import { CompanyInfoApi, type CompanyInfo } from './company-info';
18
18
  import { InstallationsApi, type Installation } from './installations';
19
- import { NqlApi, type NqlCompileResult, type NqlResult } from './nql';
19
+ import { NqlApi, type Nql, type NqlResult, type NqlQueryInput, type NqlCompileResult, type NqlWhere, type NqlFilterExpression, type NqlBooleanExpression, type NqlFilterBinaryExpression } from './nql';
20
20
  import { DataStreamsApi, type DataStream } from './data-streams';
21
21
  import { ForecastApi, type ForecastRequest, type ForecastResponse, type CostForecastRequest, type CostForecastResponse, type JobState } from './forecast';
22
22
  import { ContractsApi, type ContractDetails, type CustomerContract, type PaymentMethod, type ContractRateView } from './contracts';
23
23
  import { getNqlObject, buildNql } from './nql/NQLParser';
24
- import type { Nql, NqlQueryInput } from './nql/types';
25
24
  declare class NarrativeApi extends BaseApi {
26
25
  }
27
26
  interface NarrativeApi extends BaseApi, HealthCheckApi, DatasetApi, RosettaStoneApi, AttributeApi, PingApi, CompanyInfoApi, InstallationsApi, UploadsApi, ResourceApi, NqlApi, DataStreamsApi, ForecastApi, ContractsApi {
28
27
  }
29
- export { NarrativeApi, AttributeApi, HealthCheckApi, DatasetApi, PingApi, ProductsApi, CompanyInfoApi, InstallationsApi, UploadsApi, ResourceApi, NqlApi, DataStreamsApi, ForecastApi, ContractsApi, type Resource, type UploadsResponse, type PingStatus, type Attribute, type Environment, type Config, type ApiRecords, type Dataset, type HealthCheckResult, type SampleRecords, type DatasetTableSummary, type DatasetTableSummaryAPIResponse, type Product, type MonetaryAmount, type CompanyInfo, type Installation, type FilePerSnapshotResponse, type BucketCreationRequest, type UpdateAccessTypeRequest, type NqlQueryInput, type NqlResult, type NqlCompileResult, type DataStream, type ForecastRequest, type ForecastResponse, type CostForecastRequest, type CostForecastResponse, type JobState, type ContractDetails, type CustomerContract, type PaymentMethod, type ContractRateView, type Nql, getNqlObject, buildNql };
28
+ export { NarrativeApi, AttributeApi, HealthCheckApi, DatasetApi, PingApi, ProductsApi, CompanyInfoApi, InstallationsApi, UploadsApi, ResourceApi, NqlApi, DataStreamsApi, ForecastApi, ContractsApi, type Resource, type UploadsResponse, type PingStatus, type Attribute, type Environment, type Config, type ApiRecords, type Dataset, type HealthCheckResult, type SampleRecords, type DatasetTableSummary, type DatasetTableSummaryAPIResponse, type Product, type MonetaryAmount, type CompanyInfo, type Installation, type FilePerSnapshotResponse, type BucketCreationRequest, type UpdateAccessTypeRequest, type Nql, type NqlQueryInput, type NqlResult, type NqlCompileResult, type NqlWhere, type NqlFilterExpression, type NqlBooleanExpression, type NqlFilterBinaryExpression, type DataStream, type ForecastRequest, type ForecastResponse, type CostForecastRequest, type CostForecastResponse, type JobState, type ContractDetails, type CustomerContract, type PaymentMethod, type ContractRateView, getNqlObject, buildNql };
@@ -1,6 +1,6 @@
1
1
  import { BaseApi } from '../base-api';
2
2
  import type { Plan } from './SubstraitParser';
3
- import type { Nql, NqlCompileResult, NqlQueryInput, NqlResult } from './types';
3
+ import type { Nql, NqlCompileResult, NqlQueryInput, NqlResult, NqlWhere, NqlFilterBinaryExpression, NqlBooleanExpression, NqlFilterExpression } from './types';
4
4
  /**
5
5
  * A class for accessing the NQL API.
6
6
  * @extends BaseApi
@@ -35,4 +35,4 @@ declare class NqlApi extends BaseApi {
35
35
  */
36
36
  getNqlByJobId(id: string): Promise<NqlResult>;
37
37
  }
38
- export { NqlApi, type NqlResult, type NqlQueryInput, type NqlCompileResult, type Nql };
38
+ export { NqlApi, type NqlResult, type NqlQueryInput, type NqlCompileResult, type Nql, type NqlWhere, type NqlFilterExpression, type NqlBooleanExpression, type NqlFilterBinaryExpression };
@@ -724,7 +724,7 @@ export declare const NqlWhereObj: z.ZodEffects<z.ZodObject<{
724
724
  })[];
725
725
  }>;
726
726
  export type NqlWhere = z.infer<typeof NqlWhereObj>;
727
- export type NqlFilteBinaryExpression = z.infer<typeof NqlFilterBinaryExpressionObj>;
727
+ export type NqlFilterBinaryExpression = z.infer<typeof NqlFilterBinaryExpressionObj>;
728
728
  export declare const NqlObj: z.ZodObject<{
729
729
  explain: z.ZodOptional<z.ZodEnum<["EXPLAIN"]>>;
730
730
  select: z.ZodArray<z.ZodObject<{
@@ -1243,14 +1243,10 @@ export interface NqlResult {
1243
1243
  user_id: number;
1244
1244
  };
1245
1245
  result: {
1246
- success: {
1247
- result: {
1248
- forecast: {
1249
- rows: number;
1250
- cost: number;
1251
- };
1252
- };
1253
- };
1246
+ type: string;
1247
+ rows: number;
1248
+ cost: number;
1249
+ nql_type: string;
1254
1250
  };
1255
1251
  state: string;
1256
1252
  updated_at: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@narrative.io/data-collaboration-sdk-ts",
3
- "version": "0.0.53",
3
+ "version": "0.0.54",
4
4
  "main": "build/index.js",
5
5
  "repository": "github:narrative-io/data-collaboration-sdk-ts",
6
6
  "source": "src/index.ts",