@volant-autonomy/via-sdk 1.4287.1 → 1.4310.1

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/direct.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import createFetcher from './fetch';
2
- import { bodyOf, queryOf, pathOf, schemas, PathingTaskState } from './types';
2
+ import { bodyOf, PathingTaskState, pathOf, queryOf, schemas } from './types';
3
3
  import type { paths } from './volant-schema';
4
4
  type requestOptions = {
5
5
  abortKey?: string;
package/dist/fetch.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { ParseAs, ParseAsResponse } from 'openapi-fetch';
2
- import { HttpMethod, PathsWithMethod, HasRequiredKeys, FilterKeys, SuccessResponse, ResponseObjectMap, OkStatus } from 'openapi-typescript-helpers';
3
- import { Expand, bodyOf } from './types';
2
+ import { FilterKeys, HasRequiredKeys, HttpMethod, OkStatus, PathsWithMethod, ResponseObjectMap, SuccessResponse } from 'openapi-typescript-helpers';
3
+ import { bodyOf, Expand } from './types';
4
4
  type requestOptions = {
5
5
  abortKey?: string;
6
6
  fetch?: typeof globalThis.fetch;
@@ -1,7 +1,7 @@
1
1
  export { createSDK } from './client';
2
- export * from './utils';
2
+ export type { Composite } from './composite';
3
+ export type { Direct } from './direct';
3
4
  export type { SdkErrorModel } from './fetch';
4
5
  export type { schemas, UnauthenticatedError } from './types';
6
+ export * from './utils';
5
7
  export type { paths } from './volant-schema';
6
- export type { Direct } from './direct';
7
- export type { Composite } from './composite';
package/dist/index.cjs.js CHANGED
@@ -1,6 +1,5 @@
1
1
  'use strict';
2
2
 
3
- // eslint-disable-next-line promise/param-names
4
3
  const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
5
4
  class UnauthenticatedError extends Error {
6
5
  constructor() {
@@ -145,8 +144,7 @@ class Composite {
145
144
  if (pathingTaskResult.error) {
146
145
  return pathingTaskResult.error;
147
146
  }
148
- if (pathingTaskResult.data.meta.state === 'successful' ||
149
- pathingTaskResult.data.meta.state === 'failed') {
147
+ if (pathingTaskResult.data.meta.state === 'successful' || pathingTaskResult.data.meta.state === 'failed') {
150
148
  return;
151
149
  }
152
150
  const pathingTaskPayload = {
@@ -793,7 +791,7 @@ function defaultPathSerializer(pathname, pathParams) {
793
791
  return nextURL;
794
792
  }
795
793
 
796
- var version = "1.4287.1";
794
+ var version = "1.4310.1";
797
795
 
798
796
  const querySerializer = createQuerySerializer();
799
797
  class Fetcher {