@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.
- package/dist/cjs/client/helpers/queued-jobs.js +8 -1
- package/dist/cjs/client/version.d.ts +1 -1
- package/dist/cjs/client/version.js +1 -1
- package/dist/esm/client/helpers/queued-jobs.js +8 -1
- package/dist/esm/client/version.d.ts +1 -1
- package/dist/esm/client/version.js +1 -1
- package/package.json +1 -1
|
@@ -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
|
+
export declare const 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
|
+
export declare const version = "0.23.2";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '0.23.
|
|
1
|
+
export const version = '0.23.2';
|
package/package.json
CHANGED