@vertexvis/api-client-node 0.22.2 → 0.22.4

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.
@@ -64,7 +64,7 @@ function createPartFromFile(_a) {
64
64
  : undefined;
65
65
  const pollRes = yield (0, queued_jobs_1.pollQueuedJob)({
66
66
  id: queuedId,
67
- getQueuedJob: (id) => client.translationInspections.getQueuedTranslation({ id }),
67
+ getQueuedJob: (id) => client.translationInspections.getQueuedTranslationJob({ id }),
68
68
  polling,
69
69
  });
70
70
  if ((0, queued_jobs_1.isPollError)(pollRes.res))
@@ -74,7 +74,8 @@ function pollQueuedJob({ id, getQueuedJob, allow404 = false, limit, polling: { i
74
74
  }
75
75
  let attempts = 1;
76
76
  let backoffMs = (_a = backoff === null || backoff === void 0 ? void 0 : backoff[attempts]) !== null && _a !== void 0 ? _a : 0;
77
- const pollRes = yield poll(attempts);
77
+ // eslint-disable-next-line prefer-const
78
+ let pollRes = yield poll(attempts);
78
79
  /* eslint-disable no-await-in-loop */
79
80
  while (!completeJob(pollRes.res) &&
80
81
  (allowed404(allow404, pollRes.status) ||
@@ -84,7 +85,7 @@ function pollQueuedJob({ id, getQueuedJob, allow404 = false, limit, polling: { i
84
85
  attempts += 1;
85
86
  backoffMs = (_b = backoff === null || backoff === void 0 ? void 0 : backoff[attempts]) !== null && _b !== void 0 ? _b : backoffMs;
86
87
  yield (0, utils_1.delay)(intervalMs + backoffMs);
87
- yield poll(attempts);
88
+ pollRes = yield poll(attempts);
88
89
  }
89
90
  /* eslint-enable no-await-in-loop */
90
91
  // At this point, the result is one of the following,
@@ -1 +1 @@
1
- export declare const version = "0.22.1";
1
+ export declare const version = "0.22.4";
@@ -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.22.1';
4
+ exports.version = '0.22.4';