Skip to content

Commit f1b42eb

Browse files
authored
fix: regen after extraction changes (#2)
1 parent 770612f commit f1b42eb

File tree

6 files changed

+6
-61
lines changed

6 files changed

+6
-61
lines changed

scripts/generate-ts.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ edit_field() {
2222
}
2323
set -x
2424

25-
edit_field description "Python client for the Vectorize API"
25+
edit_field description "Client for the Vectorize API"
2626
edit_field author "Vectorize <contact@vectorize.io>"
2727
edit_field repository.url "https://github.com/vectorize-io/vectorize-clients"
2828
edit_field scripts.preinstall "npm install typescript"
@@ -32,8 +32,6 @@ edit_field publishConfig.access "public"
3232

3333
cp $ROOT_DIR/scripts/ts_README.md $SRC_DIR/ts/README.md
3434

35-
npm run typedoc
36-
3735

3836

3937

src/ts/package-lock.json

Lines changed: 0 additions & 31 deletions
This file was deleted.

src/ts/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@vectorize-io/vectorize-client",
3-
"version": "0.0.1-SNAPSHOT.202502241358",
4-
"description": "Python client for the Vectorize API",
3+
"version": "0.0.1-SNAPSHOT.202502251020",
4+
"description": "Client for the Vectorize API",
55
"author": "Vectorize <contact@vectorize.io>",
66
"repository": {
77
"type": "git",
@@ -16,7 +16,7 @@
1616
"preinstall": "npm install typescript"
1717
},
1818
"devDependencies": {
19-
"typescript": "^5.7.3"
19+
"typescript": "^4.0 || ^5.0"
2020
},
2121
"publishConfig": {
2222
"registry": "https://registry.npmjs.org",

src/ts/src/apis/ExtractionApi.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,7 @@ export class ExtractionApi extends runtime.BaseAPI {
186186
* @export
187187
*/
188188
export const StartExtractionTypeEnum = {
189-
Iris: 'iris',
190-
Fast: 'fast'
189+
Iris: 'iris'
191190
} as const;
192191
export type StartExtractionTypeEnum = typeof StartExtractionTypeEnum[keyof typeof StartExtractionTypeEnum];
193192
/**

tests/ts/tests/extraction.test.ts

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ describe("extraction", () => {
1818
const response = await extractionApi.startExtraction({
1919
organization: testContext.orgId,
2020
file: blob,
21-
type: "iris",
2221
chunkSize: 512,
23-
chunkingStrategy: "Markdown"
2422
})
2523
await pollExtraction(extractionApi, response.extractionId)
2624

@@ -50,23 +48,4 @@ describe("extraction", () => {
5048
}
5149
}
5250

53-
it("verify fast extraction", async () => {
54-
let extractionApi = new ExtractionApi(testContext.configuration)
55-
try {
56-
const text = "Hello, this is a test blob!";
57-
const blob = new Blob([text], { type: "text/plain" });
58-
59-
const response = await extractionApi.startExtraction({
60-
organization: testContext.orgId,
61-
file: blob
62-
})
63-
await pollExtraction(extractionApi, response.extractionId)
64-
65-
} catch (error: any) {
66-
console.error(error?.response);
67-
console.error(await error?.response?.text());
68-
throw error
69-
}
70-
}, 120000);
71-
7251
});

vectorize_api.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)