@vertexvis/api-client-node 0.33.2 → 0.35.0
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/api.d.ts +1277 -83
- package/dist/cjs/api.js +766 -47
- package/dist/cjs/client/helpers/scenes.js +14 -4
- package/dist/cjs/client/version.d.ts +1 -1
- package/dist/cjs/client/version.js +1 -1
- package/dist/esm/api.d.ts +1277 -83
- package/dist/esm/api.js +758 -43
- package/dist/esm/client/helpers/scenes.js +14 -4
- package/dist/esm/client/version.d.ts +1 -1
- package/dist/esm/client/version.js +1 -1
- package/package.json +1 -1
|
@@ -263,7 +263,12 @@ export const createSceneItemBatch = ({ client, createSceneItemReqs: createItemRe
|
|
|
263
263
|
const batchRes = yield Promise.all(batchOps.map((is) => limit(poll, is)));
|
|
264
264
|
itemResults = batchRes.flatMap((b, i) => isBatch(b.res)
|
|
265
265
|
? b.res['vertexvis/batch:results'].map((r, j) => {
|
|
266
|
-
return {
|
|
266
|
+
return {
|
|
267
|
+
// `batchOps[i].ops[j].data` is guaranteed to be of type `CreateSceneItemRequestData`, as the
|
|
268
|
+
// `createSceneItems` used to construct operations only deals with this type of payload.
|
|
269
|
+
req: batchOps[i].ops[j].data,
|
|
270
|
+
res: r,
|
|
271
|
+
};
|
|
267
272
|
})
|
|
268
273
|
: []);
|
|
269
274
|
itemErrors = itemErrors.concat(itemResults.filter((resultItem) => isApiError(resultItem.res)));
|
|
@@ -272,9 +277,14 @@ export const createSceneItemBatch = ({ client, createSceneItemReqs: createItemRe
|
|
|
272
277
|
errors.forEach((error) => {
|
|
273
278
|
console.log(error);
|
|
274
279
|
error.ops.forEach((op) => {
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
280
|
+
itemErrors.push({
|
|
281
|
+
// `op.data` is guaranteed to be of type `CreateSceneItemRequestData`, as the
|
|
282
|
+
// `createSceneItems` used to construct operations only deals with this type of payload.
|
|
283
|
+
req: op.data,
|
|
284
|
+
// `error.res` guaranteed to be non-null due to `isApiError()` condition above
|
|
285
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
286
|
+
res: error.res,
|
|
287
|
+
});
|
|
278
288
|
});
|
|
279
289
|
});
|
|
280
290
|
return { batchOps, batchErrors, itemErrors, itemResults };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.
|
|
1
|
+
export declare const version = "0.35.0";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '0.
|
|
1
|
+
export const version = '0.35.0';
|
package/package.json
CHANGED