@vtex/api 6.45.10 → 6.45.11

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,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [6.45.11] - 2022-04-08
11
+
12
+ ### Fixed
13
+
14
+ - Add where parameter to the MasterData scroll method
15
+
10
16
  ## [6.45.10] - 2022-03-15
11
17
 
12
18
  ### Fixed
@@ -20,7 +20,7 @@ export declare class MasterData extends ExternalClient {
20
20
  pageSize: number;
21
21
  };
22
22
  }>;
23
- scrollDocuments<T>({ dataEntity, fields, mdToken, schema, size, sort }: ScrollInput, tracingConfig?: RequestTracingConfig): Promise<{
23
+ scrollDocuments<T>({ dataEntity, fields, where, mdToken, schema, size, sort }: ScrollInput, tracingConfig?: RequestTracingConfig): Promise<{
24
24
  mdToken: string;
25
25
  data: ScrollResponse<T>;
26
26
  }>;
@@ -77,6 +77,7 @@ interface SearchInput {
77
77
  interface ScrollInput {
78
78
  dataEntity: string;
79
79
  fields: string[];
80
+ where?: string;
80
81
  schema?: string;
81
82
  sort?: string;
82
83
  size?: number;
@@ -176,7 +176,7 @@ class MasterData extends ExternalClient_1.ExternalClient {
176
176
  const paginationInfo = { ...pagination, total };
177
177
  return { data: result.data, pagination: paginationInfo };
178
178
  }
179
- scrollDocuments({ dataEntity, fields, mdToken, schema, size, sort }, tracingConfig) {
179
+ scrollDocuments({ dataEntity, fields, where, mdToken, schema, size, sort }, tracingConfig) {
180
180
  const metric = 'masterdata-scrollDocuments';
181
181
  return this.http
182
182
  .getRaw(routes.scroll(dataEntity), {
@@ -188,6 +188,7 @@ class MasterData extends ExternalClient_1.ExternalClient {
188
188
  _size: size,
189
189
  _sort: sort,
190
190
  _token: mdToken,
191
+ _where: where,
191
192
  },
192
193
  tracing: {
193
194
  requestSpanNameSuffix: metric,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vtex/api",
3
- "version": "6.45.10",
3
+ "version": "6.45.11",
4
4
  "description": "VTEX I/O API client",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",