@elastic.io/maester-client
Advanced tools
Comparing version 3.4.3 to 3.4.4-dev.1
@@ -19,2 +19,3 @@ /// <reference types="node" /> | ||
getById(objectId: string, responseType?: ResponseType): Promise<any>; | ||
getObjectHeaders(objectId: string): Promise<any>; | ||
getAllByParams(params: object): Promise<string>; | ||
@@ -21,0 +22,0 @@ deleteOne(objectId: string): Promise<any>; |
@@ -37,2 +37,6 @@ "use strict"; | ||
} | ||
async getObjectHeaders(objectId) { | ||
const { headers } = await this.client.readStream(objectId); | ||
return headers; | ||
} | ||
async getAllByParams(params) { | ||
@@ -39,0 +43,0 @@ const res = await this.client.readAllByParamsAsStream(params); |
{ | ||
"name": "@elastic.io/maester-client", | ||
"version": "3.4.3", | ||
"version": "3.4.4-dev.1", | ||
"description": "The official object-storage client", | ||
@@ -60,2 +60,2 @@ "main": "dist/src/index.js", | ||
} | ||
} | ||
} |
@@ -26,4 +26,4 @@ # Maester Client | ||
- data - object data to create. *Required* | ||
- queryHeaders - array of objects `{ key: string, value: string }`, current maximum - 5 items. Where `key` - searchable field name (see below in `Get objects by query parameters` section), must be unique for whole array, if specified - `value` must be specified as well; `value` - searchable field value, if specified - `key` must be specified as well. *Optional* | ||
- metaHeaders - array of objects `{ key: string, value: string }`, where `key` - meta field name, must be unique for whole array, if specified - `value` must be specified as well; `value` - meta field value, if specified - `key` must be specified as well. *Optional* | ||
- queryHeaders - array of objects `{ key: string, value: string }`, current maximum - 5 items. Where `key` (must be lowercase) - searchable field name (see below in `Get objects by query parameters` section), must be unique for whole array, if specified - `value` must be specified as well; `value` - searchable field value, if specified - `key` must be specified as well. *Optional* | ||
- metaHeaders - array of objects `{ key: string, value: string }`, where `key` (must be lowercase) - meta field name, must be unique for whole array, if specified - `value` must be specified as well; `value` - meta field value, if specified - `key` must be specified as well. *Optional* | ||
- ttl - configurable object's time to live, seconds. *Optional* | ||
@@ -74,3 +74,3 @@ | ||
where | ||
- headers - array of objects `{ key: string, value: string }`, current maximum - 5 items. Where `key` - searchable field name, must be unique for whole array, if specified - `value` must be specified as well; `value` - searchable field value, if specified - `key` must be specified as well. *Required* | ||
- headers - array of objects `{ key: string, value: string }`, current maximum - 5 items. Where `key` (must be lowercase) - searchable field name, must be unique for whole array, if specified - `value` must be specified as well; `value` - searchable field value, if specified - `key` must be specified as well. *Required* | ||
@@ -106,4 +106,4 @@ If you create an object with a queriable headers, internally it looks like this: | ||
- data - object to update. *Required* | ||
- queryHeaders - array of objects `{ key: string, value: string }`, current maximum - 5 items. Where `key` - searchable field name (see below in `Get objects by query parameters` section), must be unique for whole array, if specified - `value` must be specified as well; `value` - searchable field value, if specified - `key` must be specified as well. Note: queryHeaders could be added to an existing object and modified as well, but they can not be deleted. *Optional* | ||
- metaHeaders - array of objects `{ key: string, value: string }`, where `key` - meta field name, must be unique for whole array, if specified - `value` must be specified as well; `value` - meta field value, if specified - `key` must be specified as well. Note: metaHeaders could be added to an existing object and modified as well, but they can not be deleted. *Optional* | ||
- queryHeaders - array of objects `{ key: string, value: string }`, current maximum - 5 items. Where `key` (must be lowercase) - searchable field name (see below in `Get objects by query parameters` section), must be unique for whole array, if specified - `value` must be specified as well; `value` - searchable field value, if specified - `key` must be specified as well. Note: queryHeaders could be added to an existing object and modified as well, but they can not be deleted. *Optional* | ||
- metaHeaders - array of objects `{ key: string, value: string }`, where `key` (must be lowercase) - meta field name, must be unique for whole array, if specified - `value` must be specified as well; `value` - meta field value, if specified - `key` must be specified as well. Note: metaHeaders could be added to an existing object and modified as well, but they can not be deleted. *Optional* | ||
@@ -146,5 +146,5 @@ ``` | ||
where | ||
- headers - array of objects `{ key: string, value: string }`, current maximum - 5 items. Where `key` - searchable field name, must be unique for whole array, if specified - `value` must be specified as well; `value` - searchable field value, if specified - `key` must be specified as well. *Required* | ||
- headers - array of objects `{ key: string, value: string }`, current maximum - 5 items. Where `key` (must be lowercase) - searchable field name, must be unique for whole array, if specified - `value` must be specified as well; `value` - searchable field value, if specified - `key` must be specified as well. *Required* | ||
``` | ||
const obj = await objectStorage.deleteObjectsByQueryParameters([{key: 'somequeriablefieldkey', value: 'somequeriablefieldvalue'}]); | ||
``` |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
78779
21
1349
1