@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.
@@ -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, use {@link Buffer} in Node.
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, use {@link Buffer} in Node. */
11
- readonly fileData: unknown;
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 in Node. Here's an
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";
1
+ export declare const version = "0.15.2";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
- exports.version = '0.15.1';
4
+ exports.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 in Node,
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, use {@link Buffer} in Node.
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, use {@link Buffer} in Node. */
11
- readonly fileData: unknown;
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 in Node. Here's an
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";
1
+ export declare const version = "0.15.2";
@@ -1 +1 @@
1
- export const version = '0.15.1';
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 in Node,
9
+ * A {@link AxiosRequestConfig}. For example, to use HTTP keep-alive,
10
10
  *
11
11
  * * @example
12
12
  * ```typescript
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertexvis/api-client-node",
3
- "version": "0.15.1",
3
+ "version": "0.15.2",
4
4
  "description": "The Vertex REST API client for Node.js.",
5
5
  "license": "MIT",
6
6
  "author": "Vertex Developers <support@vertexvis.com> (https://developer.vertexvis.com)",