@extrahorizon/javascript-sdk 8.4.1-dev-62-74baece → 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 +5 -0
- package/build/index.cjs.js +1 -1
- package/build/index.mjs +1 -1
- package/build/types/rql/types.d.ts +23 -17
- package/build/types/services/data/types.d.ts +1 -1
- package/build/types/version.d.ts +1 -1
- package/package.json +1 -1
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
|
package/build/index.cjs.js
CHANGED
package/build/index.mjs
CHANGED
|
@@ -95,14 +95,15 @@ export interface RQLBuilder {
|
|
|
95
95
|
*/
|
|
96
96
|
or: (...conditions: RQLString[]) => RQLBuilder;
|
|
97
97
|
/**
|
|
98
|
-
* @description
|
|
98
|
+
* @description Only returns records having this field as property
|
|
99
99
|
* @example
|
|
100
|
-
* await exh.data.documents.find(
|
|
101
|
-
*
|
|
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
|
-
*
|
|
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
|
|
123
|
+
contains(field: string, ...conditions: RQLString[]): RQLBuilder;
|
|
123
124
|
/**
|
|
124
|
-
* @description
|
|
125
|
+
* @description Only returns records not having this field as property
|
|
125
126
|
* @example
|
|
126
|
-
* await exh.data.documents.find(
|
|
127
|
-
*
|
|
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
|
-
*
|
|
139
|
-
*
|
|
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 `
|
|
147
|
+
* @return Only returns documents excluding documents where `heartrate > 60` and `heartrate > 90`
|
|
142
148
|
*/
|
|
143
|
-
excludes
|
|
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
|
*
|
|
@@ -620,7 +620,7 @@ export interface DataDocumentsService {
|
|
|
620
620
|
* @returns AffectedRecords
|
|
621
621
|
*/
|
|
622
622
|
unlinkUsers(schemaIdOrName: ObjectId | string, documentId: ObjectId, requestBody: {
|
|
623
|
-
userIds
|
|
623
|
+
userIds?: Array<ObjectId>;
|
|
624
624
|
}, options?: OptionsBase): Promise<AffectedRecords>;
|
|
625
625
|
}
|
|
626
626
|
export interface DataIndexesService {
|
package/build/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "8.4.1-dev-
|
|
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-
|
|
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",
|