@vertexvis/api-client-node 0.15.1 → 0.15.2
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/dist/cjs/client/helpers/files.d.ts +1 -1
- package/dist/cjs/client/helpers/parts.d.ts +6 -3
- package/dist/cjs/client/helpers/parts.js +2 -1
- package/dist/cjs/client/index.d.ts +1 -1
- package/dist/cjs/client/version.d.ts +1 -1
- package/dist/cjs/client/version.js +1 -1
- package/dist/cjs/client/vertex-client.d.ts +1 -1
- package/dist/esm/client/helpers/files.d.ts +1 -1
- package/dist/esm/client/helpers/parts.d.ts +6 -3
- package/dist/esm/client/helpers/parts.js +2 -1
- package/dist/esm/client/index.d.ts +1 -1
- package/dist/esm/client/version.d.ts +1 -1
- package/dist/esm/client/version.js +1 -1
- package/dist/esm/client/vertex-client.d.ts +1 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import { CreateFileRequest, FileMetadataData } from '../../index';
|
|
|
4
4
|
export interface UploadFileReq extends BaseReq {
|
|
5
5
|
/** A {@link CreateFileRequest}. */
|
|
6
6
|
readonly createFileReq: CreateFileRequest;
|
|
7
|
-
/** File data
|
|
7
|
+
/** File data.
|
|
8
8
|
* @deprecated Use {@link filePath} instead.
|
|
9
9
|
*/
|
|
10
10
|
readonly fileData?: unknown;
|
|
@@ -7,8 +7,11 @@ export interface CreatePartFromFileReq extends BaseReq {
|
|
|
7
7
|
readonly createFileReq: CreateFileRequest;
|
|
8
8
|
/** Function returning a {@link CreatePartRequest}. */
|
|
9
9
|
readonly createPartReq: (fileId: string) => CreatePartRequest;
|
|
10
|
-
/** File data
|
|
11
|
-
|
|
10
|
+
/** File data.
|
|
11
|
+
* @deprecated Use {@link filePath} instead.
|
|
12
|
+
*/
|
|
13
|
+
readonly fileData?: unknown;
|
|
14
|
+
readonly filePath?: string;
|
|
12
15
|
/** {@link Polling} */
|
|
13
16
|
readonly polling?: Polling;
|
|
14
17
|
/** Whether or not to return queued translation. */
|
|
@@ -36,7 +39,7 @@ export interface GetPartRevisionBySuppliedIdReq extends BaseReq {
|
|
|
36
39
|
*
|
|
37
40
|
* @param args - The {@link CreatePartFromFileReq}.
|
|
38
41
|
*/
|
|
39
|
-
export declare function createPartFromFile({ client, createFileReq, createPartReq, fileData, onMsg, polling, returnQueued, verbose, }: CreatePartFromFileReq): Promise<CreatePartFromFileRes>;
|
|
42
|
+
export declare function createPartFromFile({ client, createFileReq, createPartReq, fileData, filePath, onMsg, polling, returnQueued, verbose, }: CreatePartFromFileReq): Promise<CreatePartFromFileRes>;
|
|
40
43
|
/**
|
|
41
44
|
* Create part and file resources if they don't already exist.
|
|
42
45
|
*
|
|
@@ -17,13 +17,14 @@ const queued_jobs_1 = require("./queued-jobs");
|
|
|
17
17
|
*
|
|
18
18
|
* @param args - The {@link CreatePartFromFileReq}.
|
|
19
19
|
*/
|
|
20
|
-
function createPartFromFile({ client, createFileReq, createPartReq, fileData, onMsg = console.log, polling = { intervalMs: index_1.PollIntervalMs, maxAttempts: index_1.MaxAttempts }, returnQueued = false, verbose, }) {
|
|
20
|
+
function createPartFromFile({ client, createFileReq, createPartReq, fileData, filePath, onMsg = console.log, polling = { intervalMs: index_1.PollIntervalMs, maxAttempts: index_1.MaxAttempts }, returnQueued = false, verbose, }) {
|
|
21
21
|
var _a, _b;
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
23
23
|
const file = yield (0, index_1.uploadFileIfNotExists)({
|
|
24
24
|
client,
|
|
25
25
|
verbose,
|
|
26
26
|
fileData,
|
|
27
|
+
filePath,
|
|
27
28
|
createFileReq,
|
|
28
29
|
onMsg,
|
|
29
30
|
});
|
|
@@ -28,7 +28,7 @@ export interface Polling {
|
|
|
28
28
|
readonly maxAttempts: number;
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
|
-
* Render image arguments. Render functions return Streams
|
|
31
|
+
* Render image arguments. Render functions return Streams. Here's an
|
|
32
32
|
* example awaiting file creation,
|
|
33
33
|
*
|
|
34
34
|
* @example
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.15.
|
|
1
|
+
export declare const version = "0.15.2";
|
|
@@ -6,7 +6,7 @@ import { BasePath } from './index';
|
|
|
6
6
|
*/
|
|
7
7
|
export interface BuildReq {
|
|
8
8
|
/**
|
|
9
|
-
* A {@link AxiosRequestConfig}. For example, to use HTTP keep-alive
|
|
9
|
+
* A {@link AxiosRequestConfig}. For example, to use HTTP keep-alive,
|
|
10
10
|
*
|
|
11
11
|
* * @example
|
|
12
12
|
* ```typescript
|
|
@@ -4,7 +4,7 @@ import { CreateFileRequest, FileMetadataData } from '../../index';
|
|
|
4
4
|
export interface UploadFileReq extends BaseReq {
|
|
5
5
|
/** A {@link CreateFileRequest}. */
|
|
6
6
|
readonly createFileReq: CreateFileRequest;
|
|
7
|
-
/** File data
|
|
7
|
+
/** File data.
|
|
8
8
|
* @deprecated Use {@link filePath} instead.
|
|
9
9
|
*/
|
|
10
10
|
readonly fileData?: unknown;
|
|
@@ -7,8 +7,11 @@ export interface CreatePartFromFileReq extends BaseReq {
|
|
|
7
7
|
readonly createFileReq: CreateFileRequest;
|
|
8
8
|
/** Function returning a {@link CreatePartRequest}. */
|
|
9
9
|
readonly createPartReq: (fileId: string) => CreatePartRequest;
|
|
10
|
-
/** File data
|
|
11
|
-
|
|
10
|
+
/** File data.
|
|
11
|
+
* @deprecated Use {@link filePath} instead.
|
|
12
|
+
*/
|
|
13
|
+
readonly fileData?: unknown;
|
|
14
|
+
readonly filePath?: string;
|
|
12
15
|
/** {@link Polling} */
|
|
13
16
|
readonly polling?: Polling;
|
|
14
17
|
/** Whether or not to return queued translation. */
|
|
@@ -36,7 +39,7 @@ export interface GetPartRevisionBySuppliedIdReq extends BaseReq {
|
|
|
36
39
|
*
|
|
37
40
|
* @param args - The {@link CreatePartFromFileReq}.
|
|
38
41
|
*/
|
|
39
|
-
export declare function createPartFromFile({ client, createFileReq, createPartReq, fileData, onMsg, polling, returnQueued, verbose, }: CreatePartFromFileReq): Promise<CreatePartFromFileRes>;
|
|
42
|
+
export declare function createPartFromFile({ client, createFileReq, createPartReq, fileData, filePath, onMsg, polling, returnQueued, verbose, }: CreatePartFromFileReq): Promise<CreatePartFromFileRes>;
|
|
40
43
|
/**
|
|
41
44
|
* Create part and file resources if they don't already exist.
|
|
42
45
|
*
|
|
@@ -14,13 +14,14 @@ import { isPollError, pollQueuedJob, throwOnError } from './queued-jobs';
|
|
|
14
14
|
*
|
|
15
15
|
* @param args - The {@link CreatePartFromFileReq}.
|
|
16
16
|
*/
|
|
17
|
-
export function createPartFromFile({ client, createFileReq, createPartReq, fileData, onMsg = console.log, polling = { intervalMs: PollIntervalMs, maxAttempts: MaxAttempts }, returnQueued = false, verbose, }) {
|
|
17
|
+
export function createPartFromFile({ client, createFileReq, createPartReq, fileData, filePath, onMsg = console.log, polling = { intervalMs: PollIntervalMs, maxAttempts: MaxAttempts }, returnQueued = false, verbose, }) {
|
|
18
18
|
var _a, _b;
|
|
19
19
|
return __awaiter(this, void 0, void 0, function* () {
|
|
20
20
|
const file = yield uploadFileIfNotExists({
|
|
21
21
|
client,
|
|
22
22
|
verbose,
|
|
23
23
|
fileData,
|
|
24
|
+
filePath,
|
|
24
25
|
createFileReq,
|
|
25
26
|
onMsg,
|
|
26
27
|
});
|
|
@@ -28,7 +28,7 @@ export interface Polling {
|
|
|
28
28
|
readonly maxAttempts: number;
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
|
-
* Render image arguments. Render functions return Streams
|
|
31
|
+
* Render image arguments. Render functions return Streams. Here's an
|
|
32
32
|
* example awaiting file creation,
|
|
33
33
|
*
|
|
34
34
|
* @example
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.15.
|
|
1
|
+
export declare const version = "0.15.2";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '0.15.
|
|
1
|
+
export const version = '0.15.2';
|
|
@@ -6,7 +6,7 @@ import { BasePath } from './index';
|
|
|
6
6
|
*/
|
|
7
7
|
export interface BuildReq {
|
|
8
8
|
/**
|
|
9
|
-
* A {@link AxiosRequestConfig}. For example, to use HTTP keep-alive
|
|
9
|
+
* A {@link AxiosRequestConfig}. For example, to use HTTP keep-alive,
|
|
10
10
|
*
|
|
11
11
|
* * @example
|
|
12
12
|
* ```typescript
|
package/package.json
CHANGED