Skip to content

Commit

Permalink
fix: openapi script and file (#54)
Browse files Browse the repository at this point in the history
openapi script and file
  • Loading branch information
RLesser authored Jul 23, 2024
1 parent bbd857f commit 65631bf
Show file tree
Hide file tree
Showing 5 changed files with 266 additions and 253 deletions.
186 changes: 18 additions & 168 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"test": "env-cmd --file .env uvu tests -r esbuild-register",
"test:file": "env-cmd --file .env uvu -r esbuild-register tests",
"test:embeddings": "npm run test:file -- embedding.test.js",
"build-types": "openapi-typescript etc/openapi.json > etc/openapi.d.ts",
"build-types": "openapi-typescript https://api-atlas.nomic.ai/v1/api-reference/openapi.json -o ./src/type-gen/openapi.d.ts",
"build": "tsc",
"build:watch": "tsc -w",
"prepublish": "npm run build",
Expand All @@ -38,8 +38,7 @@
"jasmine": "^3.99.0",
"jasmine-ts": "^0.4.0",
"jest": "^29.5.0",
"openapi-typescript": "^6.2.0",
"openapi-typescript-codegen": "^0.23.0",
"openapi-typescript": "^6.7.6",
"prettier": "^2.8.8",
"pretty-quick": "^3.1.3",
"ts-jest": "^29.1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { AtlasUser } from './user.js';
import { AtlasProjection } from './projection.js';
import { AtlasDataset as AtlasDataset } from './project.js';
import type { Table } from 'apache-arrow';
import type { components } from 'api-raw-types.js';
import type { components } from './type-gen/openapi.js';

type IndexInitializationOptions = {
project_id?: Atlas.UUID;
Expand Down
2 changes: 1 addition & 1 deletion src/projection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { BaseAtlasClass } from './user.js';
import type { AtlasUser } from './user.js';
import { AtlasDataset } from './project.js';
import type { AtlasIndex } from './index.js';
import { components } from 'api-raw-types.js';
import { components } from './type-gen/openapi.js';

export type ProjectGetInfo = Record<string, any>;

Expand Down
Loading

0 comments on commit 65631bf

Please sign in to comment.