@open-mercato/shared 0.6.6-develop.5834.1.dc9eb0615e → 0.6.6-develop.5900.1.b3fb52925e
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/.turbo/turbo-build.log +1 -1
- package/dist/lib/query/bounded-decrypt.js +18 -0
- package/dist/lib/query/bounded-decrypt.js.map +7 -0
- package/dist/lib/query/encrypted-sort.js +8 -0
- package/dist/lib/query/encrypted-sort.js.map +2 -2
- package/dist/lib/query/engine.js +389 -336
- package/dist/lib/query/engine.js.map +3 -3
- package/dist/lib/query/types.js.map +1 -1
- package/dist/lib/version.js +1 -1
- package/dist/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/src/lib/query/__tests__/bounded-decrypt.test.ts +49 -0
- package/src/lib/query/__tests__/engine.test.ts +159 -4
- package/src/lib/query/bounded-decrypt.ts +26 -0
- package/src/lib/query/encrypted-sort.ts +13 -0
- package/src/lib/query/engine.ts +496 -406
- package/src/lib/query/types.ts +8 -0
package/src/lib/query/types.ts
CHANGED
|
@@ -148,8 +148,16 @@ export type PartialIndexWarning = {
|
|
|
148
148
|
scope?: 'scoped' | 'global'
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
+
export type EncryptedSortRowCapWarning = {
|
|
152
|
+
entity: EntityId
|
|
153
|
+
sortFields: string[]
|
|
154
|
+
maxRows: number
|
|
155
|
+
totalMatched: number
|
|
156
|
+
}
|
|
157
|
+
|
|
151
158
|
export type QueryResultMeta = {
|
|
152
159
|
partialIndexWarning?: PartialIndexWarning
|
|
160
|
+
encryptedSortRowCapWarning?: EncryptedSortRowCapWarning
|
|
153
161
|
}
|
|
154
162
|
|
|
155
163
|
export type QueryResult<T = any> = {
|