@viu/emporix-sdk 4.6.5 → 4.6.6

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/index.d.cts CHANGED
@@ -9497,13 +9497,16 @@ type FilterNode = {
9497
9497
  * * `BETWEEN` requires an array of two values. The range is inclusive.
9498
9498
  * * `IN` and `NOT_IN` require a non-empty array.
9499
9499
  * * `EXISTS` requires a boolean. `true` matches documents where the field is present. `false` matches documents where the field is absent.
9500
+ * * `CONTAINS` requires a non-blank string. The field must have `text: true` in the index.
9500
9501
  */
9501
9502
  value?: unknown;
9502
9503
  };
9503
9504
  /**
9504
9505
  * Comparison applied to `field` and `value`.
9506
+ *
9507
+ * `CONTAINS` performs a case- and diacritic-insensitive substring match. The service wraps the value in `*` and escapes `\`, `*`, and `?` within it. Spaces remain part of the value.
9505
9508
  */
9506
- type FilterOperator = 'EQ' | 'NEQ' | 'GT' | 'GTE' | 'LT' | 'LTE' | 'BETWEEN' | 'IN' | 'NOT_IN' | 'EXISTS';
9509
+ type FilterOperator = 'EQ' | 'NEQ' | 'GT' | 'GTE' | 'LT' | 'LTE' | 'BETWEEN' | 'IN' | 'NOT_IN' | 'EXISTS' | 'CONTAINS';
9507
9510
  /**
9508
9511
  * A matching document. Stored fields are returned with their API names. The identifier is `id`.
9509
9512
  *
@@ -9611,13 +9614,13 @@ declare class SearchService {
9611
9614
  * Search the documents of one custom schema type. Paging, `sort` and
9612
9615
  * `fields` travel as query parameters, not in the body.
9613
9616
  *
9614
- * Filter and sort fields must be indexed on the index the search uses, or the
9615
- * call answers `400`. A saved-search call (`{ searchQueryId, query }`) answers
9617
+ * Filter and sort fields must be indexed on the index the search uses —
9618
+ * `exact`, or `text: true` for a `CONTAINS` filter — or the call answers `400`. A saved-search call (`{ searchQueryId, query }`) answers
9616
9619
  * `404` when no saved search has that id for `type`, and `502` means the
9617
9620
  * Schema Service could not confirm that `type` is a custom entity.
9618
9621
  *
9619
9622
  * @example
9620
- * const hits = await client.search.search("vehicle", {
9623
+ * const hits = await client.search.search("VEHICLE", {
9621
9624
  * index: "vehicles",
9622
9625
  * queries: [{ type: "TEXT", query: "diesel", field: "name.en" }],
9623
9626
  * filters: { field: "status", operator: "EQ", value: "ACTIVE" },
package/dist/index.d.ts CHANGED
@@ -9497,13 +9497,16 @@ type FilterNode = {
9497
9497
  * * `BETWEEN` requires an array of two values. The range is inclusive.
9498
9498
  * * `IN` and `NOT_IN` require a non-empty array.
9499
9499
  * * `EXISTS` requires a boolean. `true` matches documents where the field is present. `false` matches documents where the field is absent.
9500
+ * * `CONTAINS` requires a non-blank string. The field must have `text: true` in the index.
9500
9501
  */
9501
9502
  value?: unknown;
9502
9503
  };
9503
9504
  /**
9504
9505
  * Comparison applied to `field` and `value`.
9506
+ *
9507
+ * `CONTAINS` performs a case- and diacritic-insensitive substring match. The service wraps the value in `*` and escapes `\`, `*`, and `?` within it. Spaces remain part of the value.
9505
9508
  */
9506
- type FilterOperator = 'EQ' | 'NEQ' | 'GT' | 'GTE' | 'LT' | 'LTE' | 'BETWEEN' | 'IN' | 'NOT_IN' | 'EXISTS';
9509
+ type FilterOperator = 'EQ' | 'NEQ' | 'GT' | 'GTE' | 'LT' | 'LTE' | 'BETWEEN' | 'IN' | 'NOT_IN' | 'EXISTS' | 'CONTAINS';
9507
9510
  /**
9508
9511
  * A matching document. Stored fields are returned with their API names. The identifier is `id`.
9509
9512
  *
@@ -9611,13 +9614,13 @@ declare class SearchService {
9611
9614
  * Search the documents of one custom schema type. Paging, `sort` and
9612
9615
  * `fields` travel as query parameters, not in the body.
9613
9616
  *
9614
- * Filter and sort fields must be indexed on the index the search uses, or the
9615
- * call answers `400`. A saved-search call (`{ searchQueryId, query }`) answers
9617
+ * Filter and sort fields must be indexed on the index the search uses —
9618
+ * `exact`, or `text: true` for a `CONTAINS` filter — or the call answers `400`. A saved-search call (`{ searchQueryId, query }`) answers
9616
9619
  * `404` when no saved search has that id for `type`, and `502` means the
9617
9620
  * Schema Service could not confirm that `type` is a custom entity.
9618
9621
  *
9619
9622
  * @example
9620
- * const hits = await client.search.search("vehicle", {
9623
+ * const hits = await client.search.search("VEHICLE", {
9621
9624
  * index: "vehicles",
9622
9625
  * queries: [{ type: "TEXT", query: "diesel", field: "name.en" }],
9623
9626
  * filters: { field: "status", operator: "EQ", value: "ACTIVE" },
package/dist/index.js CHANGED
@@ -948,7 +948,7 @@ var HttpClient = class {
948
948
  };
949
949
 
950
950
  // package.json
951
- var version = "4.6.5";
951
+ var version = "4.6.6";
952
952
 
953
953
  // src/version.ts
954
954
  var SDK_VERSION = version;
@@ -4353,13 +4353,13 @@ var SearchService = class {
4353
4353
  * Search the documents of one custom schema type. Paging, `sort` and
4354
4354
  * `fields` travel as query parameters, not in the body.
4355
4355
  *
4356
- * Filter and sort fields must be indexed on the index the search uses, or the
4357
- * call answers `400`. A saved-search call (`{ searchQueryId, query }`) answers
4356
+ * Filter and sort fields must be indexed on the index the search uses —
4357
+ * `exact`, or `text: true` for a `CONTAINS` filter — or the call answers `400`. A saved-search call (`{ searchQueryId, query }`) answers
4358
4358
  * `404` when no saved search has that id for `type`, and `502` means the
4359
4359
  * Schema Service could not confirm that `type` is a custom entity.
4360
4360
  *
4361
4361
  * @example
4362
- * const hits = await client.search.search("vehicle", {
4362
+ * const hits = await client.search.search("VEHICLE", {
4363
4363
  * index: "vehicles",
4364
4364
  * queries: [{ type: "TEXT", query: "diesel", field: "name.en" }],
4365
4365
  * filters: { field: "status", operator: "EQ", value: "ACTIVE" },