@vertexvis/api-client-node 0.23.1 → 0.23.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.
@@ -97,7 +97,7 @@ function pollQueuedJob({ id, getQueuedJob, allow404 = false, limit, polling: { i
97
97
  }
98
98
  exports.pollQueuedJob = pollQueuedJob;
99
99
  function isPollError(r) {
100
- return isQueuedJobError(r) || (0, utils_1.isFailure)(r);
100
+ return isQueuedJobError(r) || isQueuedJobRunning(r) || (0, utils_1.isFailure)(r);
101
101
  }
102
102
  exports.isPollError = isPollError;
103
103
  function isBatch(obj) {
@@ -127,12 +127,19 @@ function completeJob(r) {
127
127
  function isQueuedJobError(obj) {
128
128
  return (0, utils_1.isQueuedJob)(obj) && isStatusError(obj);
129
129
  }
130
+ // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
131
+ function isQueuedJobRunning(obj) {
132
+ return (0, utils_1.isQueuedJob)(obj) && isStatusRunning(obj);
133
+ }
130
134
  function isStatusComplete(job) {
131
135
  return job.data.attributes.status === 'complete';
132
136
  }
133
137
  function isStatusError(job) {
134
138
  return job.data.attributes.status === 'error';
135
139
  }
140
+ function isStatusRunning(job) {
141
+ return job.data.attributes.status === 'running';
142
+ }
136
143
  function isClientError(res) {
137
144
  var _a;
138
145
  return (0, utils_1.isFailure)(res) && ((_a = (0, utils_1.head)([...res.errors.values()])) === null || _a === void 0 ? void 0 : _a.id) === ClientErrorId;
@@ -1 +1 @@
1
- export declare const version = "0.23.1";
1
+ export declare const version = "0.23.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.23.1';
4
+ exports.version = '0.23.2';
@@ -90,7 +90,7 @@ export function pollQueuedJob({ id, getQueuedJob, allow404 = false, limit, polli
90
90
  });
91
91
  }
92
92
  export function isPollError(r) {
93
- return isQueuedJobError(r) || isFailure(r);
93
+ return isQueuedJobError(r) || isQueuedJobRunning(r) || isFailure(r);
94
94
  }
95
95
  export function isBatch(obj) {
96
96
  const b = obj;
@@ -117,12 +117,19 @@ function completeJob(r) {
117
117
  function isQueuedJobError(obj) {
118
118
  return isQueuedJob(obj) && isStatusError(obj);
119
119
  }
120
+ // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
121
+ function isQueuedJobRunning(obj) {
122
+ return isQueuedJob(obj) && isStatusRunning(obj);
123
+ }
120
124
  function isStatusComplete(job) {
121
125
  return job.data.attributes.status === 'complete';
122
126
  }
123
127
  function isStatusError(job) {
124
128
  return job.data.attributes.status === 'error';
125
129
  }
130
+ function isStatusRunning(job) {
131
+ return job.data.attributes.status === 'running';
132
+ }
126
133
  function isClientError(res) {
127
134
  var _a;
128
135
  return isFailure(res) && ((_a = head([...res.errors.values()])) === null || _a === void 0 ? void 0 : _a.id) === ClientErrorId;
@@ -1 +1 @@
1
- export declare const version = "0.23.1";
1
+ export declare const version = "0.23.2";
@@ -1 +1 @@
1
- export const version = '0.23.1';
1
+ export const version = '0.23.2';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertexvis/api-client-node",
3
- "version": "0.23.1",
3
+ "version": "0.23.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)",