diff --git a/lerna.json b/lerna.json index 43355dec..14361b64 100644 --- a/lerna.json +++ b/lerna.json @@ -1,7 +1,7 @@ { "$schema": "node_modules/lerna/schemas/lerna-schema.json", "useWorkspaces": true, - "version": "4.0.6", + "version": "4.1.0", "packages": [ "packages/*" ], diff --git a/package-lock.json b/package-lock.json index 4e13a747..da3435ef 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13100,12 +13100,11 @@ }, "packages/auth": { "name": "@multiversx/sdk-nestjs-auth", - "version": "4.0.6", + "version": "4.1.0", "license": "GPL-3.0-or-later", "dependencies": { - "@multiversx/sdk-core": "^13.5.0", + "@multiversx/sdk-core": "^13.15.0", "@multiversx/sdk-native-auth-server": "^1.0.19", - "@multiversx/sdk-wallet": "^4.5.0", "jsonwebtoken": "^9.0.0" }, "devDependencies": { @@ -13124,7 +13123,7 @@ }, "packages/cache": { "name": "@multiversx/sdk-nestjs-cache", - "version": "4.0.6", + "version": "4.1.0", "license": "GPL-3.0-or-later", "dependencies": { "lru-cache": "^8.0.4", @@ -13163,7 +13162,7 @@ }, "packages/common": { "name": "@multiversx/sdk-nestjs-common", - "version": "4.0.6", + "version": "4.1.0", "license": "GPL-3.0-or-later", "dependencies": { "@multiversx/sdk-core": "^13.5.0", @@ -13194,7 +13193,7 @@ }, "packages/elastic": { "name": "@multiversx/sdk-nestjs-elastic", - "version": "4.0.6", + "version": "4.1.0", "license": "GPL-3.0-or-later", "devDependencies": { "@typescript-eslint/eslint-plugin": "^5.12.0", @@ -13209,7 +13208,7 @@ }, "packages/http": { "name": "@multiversx/sdk-nestjs-http", - "version": "4.0.6", + "version": "4.1.0", "license": "GPL-3.0-or-later", "dependencies": { "@multiversx/sdk-native-auth-client": "^1.0.9", @@ -13233,7 +13232,7 @@ }, "packages/monitoring": { "name": "@multiversx/sdk-nestjs-monitoring", - "version": "4.0.6", + "version": "4.1.0", "license": "GPL-3.0-or-later", "dependencies": { "prom-client": "^14.0.1", @@ -13252,7 +13251,7 @@ }, "packages/rabbitmq": { "name": "@multiversx/sdk-nestjs-rabbitmq", - "version": "4.0.6", + "version": "4.1.0", "license": "GPL-3.0-or-later", "dependencies": { "@golevelup/nestjs-rabbitmq": "4.0.0", @@ -13273,7 +13272,7 @@ }, "packages/redis": { "name": "@multiversx/sdk-nestjs-redis", - "version": "4.0.6", + "version": "4.1.0", "license": "GPL-3.0-or-later", "dependencies": { "ioredis": "^5.2.3" @@ -14452,9 +14451,8 @@ "@multiversx/sdk-nestjs-auth": { "version": "file:packages/auth", "requires": { - "@multiversx/sdk-core": "^13.5.0", + "@multiversx/sdk-core": "^13.15.0", "@multiversx/sdk-native-auth-server": "^1.0.19", - "@multiversx/sdk-wallet": "^4.5.0", "@types/jsonwebtoken": "^9.0.1", "@typescript-eslint/eslint-plugin": "^5.12.0", "@typescript-eslint/parser": "^5.16.0", diff --git a/packages/auth/package.json b/packages/auth/package.json index 99ae92fa..3261e426 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -1,6 +1,6 @@ { "name": "@multiversx/sdk-nestjs-auth", - "version": "4.0.6", + "version": "4.1.0", "description": "Multiversx SDK Nestjs auth package", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/packages/cache/package.json b/packages/cache/package.json index 19e89fe3..61290c3d 100644 --- a/packages/cache/package.json +++ b/packages/cache/package.json @@ -1,6 +1,6 @@ { "name": "@multiversx/sdk-nestjs-cache", - "version": "4.0.6", + "version": "4.1.0", "description": "Multiversx SDK Nestjs cache package", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/packages/common/package.json b/packages/common/package.json index 9658b484..fb88c9ab 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -1,6 +1,6 @@ { "name": "@multiversx/sdk-nestjs-common", - "version": "4.0.6", + "version": "4.1.0", "description": "Multiversx SDK Nestjs common package", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/packages/elastic/package.json b/packages/elastic/package.json index 01a5f1af..1d1e05ff 100644 --- a/packages/elastic/package.json +++ b/packages/elastic/package.json @@ -1,6 +1,6 @@ { "name": "@multiversx/sdk-nestjs-elastic", - "version": "4.0.6", + "version": "4.1.0", "description": "Multiversx SDK Nestjs elastic package", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/packages/elastic/src/entities/query.type.ts b/packages/elastic/src/entities/query.type.ts index 937a65e0..61cfeb3a 100644 --- a/packages/elastic/src/entities/query.type.ts +++ b/packages/elastic/src/entities/query.type.ts @@ -47,4 +47,8 @@ export class QueryType { static String = (key: string | string[], value: any | undefined): StringQuery => { return new StringQuery(key, value); }; + + static Script = (key: string | string[], value: any | undefined): StringQuery => { + return new StringQuery(key, value); + }; } diff --git a/packages/elastic/src/entities/script.query.ts b/packages/elastic/src/entities/script.query.ts new file mode 100644 index 00000000..f133b343 --- /dev/null +++ b/packages/elastic/src/entities/script.query.ts @@ -0,0 +1,13 @@ +import { AbstractQuery } from "./abstract.query"; + +export class ScriptQuery extends AbstractQuery { + constructor( + private readonly source: string | undefined, + ) { + super(); + } + + getQuery(): any { + return { script: { script: { source: this.source, lang: 'painless' } } }; + } +} diff --git a/packages/http/package.json b/packages/http/package.json index 8252e635..9421547c 100644 --- a/packages/http/package.json +++ b/packages/http/package.json @@ -1,6 +1,6 @@ { "name": "@multiversx/sdk-nestjs-http", - "version": "4.0.6", + "version": "4.1.0", "description": "Multiversx SDK Nestjs http package", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/packages/monitoring/package.json b/packages/monitoring/package.json index 9e91a9b9..19a3fc90 100644 --- a/packages/monitoring/package.json +++ b/packages/monitoring/package.json @@ -1,6 +1,6 @@ { "name": "@multiversx/sdk-nestjs-monitoring", - "version": "4.0.6", + "version": "4.1.0", "description": "Multiversx SDK Nestjs monitoring package", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/packages/rabbitmq/package.json b/packages/rabbitmq/package.json index aab162c5..ade4a33c 100644 --- a/packages/rabbitmq/package.json +++ b/packages/rabbitmq/package.json @@ -1,6 +1,6 @@ { "name": "@multiversx/sdk-nestjs-rabbitmq", - "version": "4.0.6", + "version": "4.1.0", "description": "Multiversx SDK Nestjs rabbitmq client package", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/packages/redis/package.json b/packages/redis/package.json index b7064fc3..4673161a 100644 --- a/packages/redis/package.json +++ b/packages/redis/package.json @@ -1,6 +1,6 @@ { "name": "@multiversx/sdk-nestjs-redis", - "version": "4.0.6", + "version": "4.1.0", "description": "Multiversx SDK Nestjs redis client package", "main": "lib/index.js", "types": "lib/index.d.ts",