@vtex/api 6.46.0 → 6.46.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/CHANGELOG.md CHANGED
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [6.46.1] - 2024-01-31
11
+
12
+ ### Fixed
13
+ - Return type for the saveJSON method of VBase client
14
+
15
+ ### Changed
16
+ - Increase timeout for messagesGraphQL client
17
+
10
18
  ## [6.46.0] - 2023-10-25
11
19
  ### Added
12
20
  - Add disk cache steps and retry count to tracing
@@ -3,7 +3,7 @@ import { IncomingMessage } from 'http';
3
3
  import { Readable } from 'stream';
4
4
  import { Logger } from './../../service/logger/logger';
5
5
  import { InstanceOptions, IOResponse, RequestTracingConfig } from '../../HttpClient';
6
- import { BucketMetadata, FileListItem } from '../../responses';
6
+ import { BucketMetadata, FileListItem, VBaseSaveResponse } from '../../responses';
7
7
  import { IOContext } from '../../service/worker/runtime/typings';
8
8
  import { InfraClient } from './InfraClient';
9
9
  export declare class VBase extends InfraClient {
@@ -20,7 +20,7 @@ export declare class VBase extends InfraClient {
20
20
  getFileStream: (bucket: string, path: string, tracingConfig?: RequestTracingConfig | undefined) => Promise<IncomingMessage>;
21
21
  saveFile: (bucket: string, path: string, stream: Readable, gzip?: boolean, ttl?: number | undefined, tracingConfig?: RequestTracingConfig | undefined, ifMatch?: string | undefined) => Promise<void>;
22
22
  getFileMetadata: (bucket: string, path: string, tracingConfig?: RequestTracingConfig | undefined) => Promise<IOResponse<void>>;
23
- saveJSON: <T>(bucket: string, path: string, data: T, tracingConfig?: RequestTracingConfig | undefined, ifMatch?: string | undefined) => Promise<void>;
23
+ saveJSON: <T>(bucket: string, path: string, data: T, tracingConfig?: RequestTracingConfig | undefined, ifMatch?: string | undefined) => Promise<VBaseSaveResponse>;
24
24
  saveZippedContent: (bucket: string, path: string, stream: Readable, tracingConfig?: RequestTracingConfig | undefined, ifMatch?: string | undefined) => Promise<void>;
25
25
  deleteFile: (bucket: string, path: string, tracingConfig?: RequestTracingConfig | undefined, ifMatch?: string | undefined) => Promise<IOResponse<void>>;
26
26
  getConflicts: <T>(bucket: string, tracingConfig?: RequestTracingConfig | undefined) => Promise<T>;
@@ -76,4 +76,5 @@ export interface HousekeeperStatesAndUpdates {
76
76
  state: HouseKeeperState;
77
77
  updates: HouseKeeperUpdates;
78
78
  }
79
+ export declare type VBaseSaveResponse = FileListItem[];
79
80
  export {};
@@ -33,9 +33,9 @@ const defaultClients = {
33
33
  timeout: 1000,
34
34
  },
35
35
  messagesGraphQL: {
36
- concurrency: 10,
36
+ concurrency: 12,
37
37
  retries: 2,
38
- timeout: 1000,
38
+ timeout: 2000,
39
39
  },
40
40
  },
41
41
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vtex/api",
3
- "version": "6.46.0",
3
+ "version": "6.46.1",
4
4
  "description": "VTEX I/O API client",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",