@turbopuffer/turbopuffer
Advanced tools
Comparing version 0.2.2 to 0.3.0
@@ -25,8 +25,9 @@ /** | ||
export type FilterOperator = "Eq" | "NotEq" | "In" | "NotIn" | "Lt" | "Lte" | "Gt" | "Gte" | "Glob" | "NotGlob" | "IGlob" | "NotIGlob" | "And" | "Or"; | ||
export type FilterFieldsOperator = "And" | "Or"; | ||
export type FilterValue = Exclude<AttributeType, null>; | ||
export type FilterEntry = FilterOperator | FilterValue; | ||
export type FilterParam = FixedLengthArray<FilterEntry | FilterEntry[], 2>; | ||
export type Filters = { | ||
[key: string]: FilterParam[]; | ||
export type FilterParam = [FilterOperator, Array<FilterParam> | FilterValue]; | ||
export type FilterFields = { | ||
[key: string]: FilterParam; | ||
}; | ||
export type Filters = FilterFields | [FilterFieldsOperator, Filters | Array<Filters>]; | ||
export type QueryResults = { | ||
@@ -147,7 +148,2 @@ id: Id; | ||
} | ||
interface FixedLengthArray<T extends any, L extends number> extends Array<T> { | ||
0: T; | ||
length: L; | ||
} | ||
export {}; | ||
//# sourceMappingURL=turbopuffer.d.ts.map |
{ | ||
"name": "@turbopuffer/turbopuffer", | ||
"version": "0.2.2", | ||
"version": "0.3.0", | ||
"description": "Official Typescript API client library for turbopuffer.com", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -47,3 +47,3 @@ The **official TypeScript SDK** for Turbopuffer. | ||
filters: { | ||
numbers: [["In", [2, 4]]], | ||
numbers: ["In", [2, 4]], | ||
}, | ||
@@ -50,0 +50,0 @@ }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24903
394
2