@extrahorizon/javascript-sdk 8.4.1-dev-64-3d65017 → 8.4.1-dev-65-8ee48f9

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
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [Unreleased]
9
+
10
+ ### Changed
11
+ - RQL `contains` and `excludes` now have their different variations better separated in the type definitions
12
+
8
13
  ## [8.4.1]
9
14
 
10
15
  ### Fixed
@@ -5368,7 +5368,7 @@ const logsService = (httpWithAuth) => {
5368
5368
  };
5369
5369
  };
5370
5370
 
5371
- const version = '8.4.1-dev-64-3d65017';
5371
+ const version = '8.4.1-dev-65-8ee48f9';
5372
5372
 
5373
5373
  /**
5374
5374
  * Create ExtraHorizon client.
package/build/index.mjs CHANGED
@@ -5338,7 +5338,7 @@ const logsService = (httpWithAuth) => {
5338
5338
  };
5339
5339
  };
5340
5340
 
5341
- const version = '8.4.1-dev-64-3d65017';
5341
+ const version = '8.4.1-dev-65-8ee48f9';
5342
5342
 
5343
5343
  /**
5344
5344
  * Create ExtraHorizon client.
@@ -95,14 +95,15 @@ export interface RQLBuilder {
95
95
  */
96
96
  or: (...conditions: RQLString[]) => RQLBuilder;
97
97
  /**
98
- * @description `contains(field)` only returns records having this field as property
98
+ * @description Only returns records having this field as property
99
99
  * @example
100
- * await exh.data.documents.find(
101
- * schemaId,
102
- * { rql: rqlBuilder().contains('data.indicator').build()
100
+ * await exh.data.documents.find(schemaId, {
101
+ * rql: rqlBuilder().contains('data.indicator').build()
103
102
  * });
104
103
  * @returns returns documents containing the `data.indicator` field
105
- *
104
+ */
105
+ contains(field: string): RQLBuilder;
106
+ /**
106
107
  * @description Filters for objects where the specified property's value is an array and the array contains
107
108
  * any value that equals the provided value or satisfies the provided condition.
108
109
  * `contains(field, itemField > 30)` only returns records having a property `field` which have a prop `itemField` for which the condition is valid
@@ -113,34 +114,39 @@ export interface RQLBuilder {
113
114
  * .contains(
114
115
  * "data",
115
116
  * rqlBuilder().gt("heartrate", "60").intermediate(),
116
- * rqlBuilder().lt("heartrate", "90").intermediate()
117
+ * rqlBuilder().lt("heartrate", "90").intermediate()
117
118
  * )
118
- * .build();
119
+ * .build(),
119
120
  * });
120
121
  * @return Only returns documents with a data object containing `heartrate > 60` and `heartrate > 90`
121
122
  */
122
- contains: (field: string, ...conditions: RQLString[]) => RQLBuilder;
123
+ contains(field: string, ...conditions: RQLString[]): RQLBuilder;
123
124
  /**
124
- * @description `excludes(field)` only returns records not having this field as property
125
+ * @description Only returns records not having this field as property
125
126
  * @example
126
- * await exh.data.documents.find(
127
- * schemaId,
128
- * { rql: rqlBuilder().excludes('data.indicator').build()
127
+ * await exh.data.documents.find(schemaId, {
128
+ * rql: rqlBuilder().excludes('data.indicator').build()
129
129
  * });
130
130
  * @returns returns documents not containing the `data.indicator` field
131
- *
131
+ */
132
+ excludes(field: string): RQLBuilder;
133
+ /**
132
134
  * @description Filters for objects where the specified property's value is an array and the array excludes
133
135
  * any value that equals the provided value or satisfies the provided condition.
134
136
  * `excludes(field, itemField > 30)` only returns records having a property `field` which have a prop `itemField` for which the condition is invalid
135
137
  * @example
136
138
  * await exh.data.documents.find(schemaId, {
137
139
  * rql: rqlBuilder()
138
- * .excludes("data", rqlBuilder().gt("heartrate", "60").intermediate())
139
- * .build(),
140
+ * .excludes(
141
+ * "data",
142
+ * rqlBuilder().gt("heartrate", "60").intermediate(),
143
+ * rqlBuilder().lt("heartrate", "90").intermediate()
144
+ * )
145
+ * .build(),
140
146
  * });
141
- * @return Only returns documents excluding documents where `data.heartrate > 60`
147
+ * @return Only returns documents excluding documents where `heartrate > 60` and `heartrate > 90`
142
148
  */
143
- excludes: (field: string, ...conditions: RQLString[]) => RQLBuilder;
149
+ excludes(field: string, ...conditions: RQLString[]): RQLBuilder;
144
150
  /**
145
151
  * @description skipCount() Skips the record counting step of a request to increase performance.
146
152
  *
@@ -1 +1 @@
1
- export declare const version = "8.4.1-dev-64-3d65017";
1
+ export declare const version = "8.4.1-dev-65-8ee48f9";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@extrahorizon/javascript-sdk",
3
- "version": "8.4.1-dev-64-3d65017",
3
+ "version": "8.4.1-dev-65-8ee48f9",
4
4
  "description": "This package serves as a JavaScript wrapper around all Extra Horizon cloud services.",
5
5
  "main": "build/index.cjs.js",
6
6
  "types": "build/types/index.d.ts",