@gomomento/sdk-core 1.80.0 → 1.81.0

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.
Files changed (57) hide show
  1. package/dist/src/auth/credential-provider.d.ts +0 -6
  2. package/dist/src/auth/credential-provider.js +2 -10
  3. package/dist/src/clients/ICacheClient.d.ts +2 -1
  4. package/dist/src/clients/ICacheClient.js +1 -1
  5. package/dist/src/index.d.ts +0 -8
  6. package/dist/src/index.js +4 -18
  7. package/dist/src/internal/clients/cache/AbstractCacheClient.d.ts +9 -4
  8. package/dist/src/internal/clients/cache/AbstractCacheClient.js +11 -6
  9. package/dist/src/internal/clients/cache/IDataClient.d.ts +3 -3
  10. package/dist/src/internal/clients/cache/IDataClient.js +1 -1
  11. package/dist/src/internal/clients/index.d.ts +0 -1
  12. package/dist/src/internal/clients/index.js +1 -2
  13. package/dist/src/internal/utils/auth.d.ts +0 -2
  14. package/dist/src/internal/utils/auth.js +1 -3
  15. package/dist/src/messages/responses/cache-batch-get.d.ts +5 -0
  16. package/dist/src/messages/responses/cache-batch-get.js +13 -1
  17. package/dist/src/utils/cache-call-options.d.ts +3 -1
  18. package/dist/src/utils/cache-call-options.js +1 -1
  19. package/package.json +1 -1
  20. package/dist/src/clients/IVectorIndexClient.d.ts +0 -47
  21. package/dist/src/clients/IVectorIndexClient.js +0 -12
  22. package/dist/src/internal/clients/vector/AbstractVectorIndexClient.d.ts +0 -142
  23. package/dist/src/internal/clients/vector/AbstractVectorIndexClient.js +0 -163
  24. package/dist/src/internal/clients/vector/IVectorIndexControlClient.d.ts +0 -26
  25. package/dist/src/internal/clients/vector/IVectorIndexControlClient.js +0 -25
  26. package/dist/src/internal/clients/vector/IVectorIndexDataClient.d.ts +0 -13
  27. package/dist/src/internal/clients/vector/IVectorIndexDataClient.js +0 -3
  28. package/dist/src/internal/clients/vector/index.d.ts +0 -3
  29. package/dist/src/internal/clients/vector/index.js +0 -20
  30. package/dist/src/messages/responses/vector/create-vector-index.d.ts +0 -67
  31. package/dist/src/messages/responses/vector/create-vector-index.js +0 -61
  32. package/dist/src/messages/responses/vector/delete-vector-index.d.ts +0 -61
  33. package/dist/src/messages/responses/vector/delete-vector-index.js +0 -54
  34. package/dist/src/messages/responses/vector/index.d.ts +0 -10
  35. package/dist/src/messages/responses/vector/index.js +0 -14
  36. package/dist/src/messages/responses/vector/list-vector-indexes.d.ts +0 -71
  37. package/dist/src/messages/responses/vector/list-vector-indexes.js +0 -75
  38. package/dist/src/messages/responses/vector/vector-count-items.d.ts +0 -70
  39. package/dist/src/messages/responses/vector/vector-count-items.js +0 -72
  40. package/dist/src/messages/responses/vector/vector-delete-item-batch.d.ts +0 -62
  41. package/dist/src/messages/responses/vector/vector-delete-item-batch.js +0 -55
  42. package/dist/src/messages/responses/vector/vector-get-item-batch.d.ts +0 -73
  43. package/dist/src/messages/responses/vector/vector-get-item-batch.js +0 -74
  44. package/dist/src/messages/responses/vector/vector-get-item-metadata-batch.d.ts +0 -73
  45. package/dist/src/messages/responses/vector/vector-get-item-metadata-batch.js +0 -74
  46. package/dist/src/messages/responses/vector/vector-search-and-fetch-vectors.d.ts +0 -69
  47. package/dist/src/messages/responses/vector/vector-search-and-fetch-vectors.js +0 -67
  48. package/dist/src/messages/responses/vector/vector-search.d.ts +0 -70
  49. package/dist/src/messages/responses/vector/vector-search.js +0 -67
  50. package/dist/src/messages/responses/vector/vector-upsert-item-batch.d.ts +0 -61
  51. package/dist/src/messages/responses/vector/vector-upsert-item-batch.js +0 -54
  52. package/dist/src/messages/vector-index-filters.d.ts +0 -279
  53. package/dist/src/messages/vector-index-filters.js +0 -325
  54. package/dist/src/messages/vector-index-info.d.ts +0 -15
  55. package/dist/src/messages/vector-index-info.js +0 -38
  56. package/dist/src/messages/vector-index.d.ts +0 -42
  57. package/dist/src/messages/vector-index.js +0 -3
@@ -1,69 +0,0 @@
1
- import { SdkError } from '../../../errors';
2
- import { ResponseBase } from '../response-base';
3
- import { SearchHit } from './vector-search';
4
- export interface SearchAndFetchVectorsHit extends SearchHit {
5
- vector: Array<number>;
6
- }
7
- /**
8
- * Parent response type for a VectorSearchAndFetchVectors request. The
9
- * response object is resolved to a type-safe object of one of
10
- * the following subtypes:
11
- *
12
- * - {Success}
13
- * - {Error}
14
- *
15
- * `instanceof` type guards can be used to operate on the appropriate subtype.
16
- * @example
17
- * For example:
18
- * ```
19
- * if (response instanceof VectorSearchAndFetchVectors.Error) {
20
- * // Handle error as appropriate. The compiler will smart-cast `response` to type
21
- * // `VectorSearchAndFetchVectors.Error` in this block, so you will have access to the properties
22
- * // of the Error class; e.g. `response.errorCode()`.
23
- * }
24
- * ```
25
- */
26
- export declare abstract class Response extends ResponseBase {
27
- hits(): Array<SearchAndFetchVectorsHit> | undefined;
28
- }
29
- declare class _Success extends Response {
30
- }
31
- declare const Success_base: {
32
- new (...args: any[]): {
33
- readonly is_success: boolean;
34
- };
35
- } & typeof _Success;
36
- /**
37
- * Indicates a Successful VectorSearchAndFetchVectors request.
38
- */
39
- export declare class Success extends Success_base {
40
- private readonly _hits;
41
- constructor(hits: Array<SearchAndFetchVectorsHit>);
42
- hits(): Array<SearchAndFetchVectorsHit>;
43
- }
44
- declare class _Error extends Response {
45
- protected _innerException: SdkError;
46
- constructor(_innerException: SdkError);
47
- }
48
- declare const Error_base: {
49
- new (...args: any[]): {
50
- _innerException: SdkError;
51
- message(): string;
52
- innerException(): SdkError;
53
- errorCode(): import("../../../errors").MomentoErrorCode;
54
- toString(): string;
55
- };
56
- } & typeof _Error;
57
- /**
58
- * Indicates that an error occurred during the VectorSearchAndFetchVectorsSearch request.
59
- *
60
- * This response object includes the following fields that you can use to determine
61
- * how you would like to handle the error:
62
- *
63
- * - `errorCode()` - a unique Momento error code indicating the type of error that occurred.
64
- * - `message()` - a human-readable description of the error
65
- * - `innerException()` - the original error that caused the failure; can be re-thrown.
66
- */
67
- export declare class Error extends Error_base {
68
- }
69
- export {};
@@ -1,67 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Error = exports.Success = exports.Response = void 0;
4
- const response_base_1 = require("../response-base");
5
- /**
6
- * Parent response type for a VectorSearchAndFetchVectors request. The
7
- * response object is resolved to a type-safe object of one of
8
- * the following subtypes:
9
- *
10
- * - {Success}
11
- * - {Error}
12
- *
13
- * `instanceof` type guards can be used to operate on the appropriate subtype.
14
- * @example
15
- * For example:
16
- * ```
17
- * if (response instanceof VectorSearchAndFetchVectors.Error) {
18
- * // Handle error as appropriate. The compiler will smart-cast `response` to type
19
- * // `VectorSearchAndFetchVectors.Error` in this block, so you will have access to the properties
20
- * // of the Error class; e.g. `response.errorCode()`.
21
- * }
22
- * ```
23
- */
24
- class Response extends response_base_1.ResponseBase {
25
- hits() {
26
- if (this instanceof Success) {
27
- return this.hits();
28
- }
29
- return undefined;
30
- }
31
- }
32
- exports.Response = Response;
33
- class _Success extends Response {
34
- }
35
- /**
36
- * Indicates a Successful VectorSearchAndFetchVectors request.
37
- */
38
- class Success extends (0, response_base_1.ResponseSuccess)(_Success) {
39
- constructor(hits) {
40
- super();
41
- this._hits = hits;
42
- }
43
- hits() {
44
- return this._hits;
45
- }
46
- }
47
- exports.Success = Success;
48
- class _Error extends Response {
49
- constructor(_innerException) {
50
- super();
51
- this._innerException = _innerException;
52
- }
53
- }
54
- /**
55
- * Indicates that an error occurred during the VectorSearchAndFetchVectorsSearch request.
56
- *
57
- * This response object includes the following fields that you can use to determine
58
- * how you would like to handle the error:
59
- *
60
- * - `errorCode()` - a unique Momento error code indicating the type of error that occurred.
61
- * - `message()` - a human-readable description of the error
62
- * - `innerException()` - the original error that caused the failure; can be re-thrown.
63
- */
64
- class Error extends (0, response_base_1.ResponseError)(_Error) {
65
- }
66
- exports.Error = Error;
67
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVjdG9yLXNlYXJjaC1hbmQtZmV0Y2gtdmVjdG9ycy5qcyIsInNvdXJjZVJvb3Qi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lY3RlZCBfaW5uZXJFeGNlcHRpb246IFNka0Vycm9yKSB7XG4gICAgc3VwZXIoKTtcbiAgfVxufVxuXG4vKipcbiAqIEluZGljYXRlcyB0aGF0IGFuIGVycm9yIG9jY3VycmVkIGR1cmluZyB0aGUgVmVjdG9yU2VhcmNoQW5kRmV0Y2hWZWN0b3JzU2VhcmNoIHJlcXVlc3QuXG4gKlxuICogVGhpcyByZXNwb25zZSBvYmplY3QgaW5jbHVkZXMgdGhlIGZvbGxvd2luZyBmaWVsZHMgdGhhdCB5b3UgY2FuIHVzZSB0byBkZXRlcm1pbmVcbiAqIGhvdyB5b3Ugd291bGQgbGlrZSB0byBoYW5kbGUgdGhlIGVycm9yOlxuICpcbiAqIC0gYGVycm9yQ29kZSgpYCAtIGEgdW5pcXVlIE1vbWVudG8gZXJyb3IgY29kZSBpbmRpY2F0aW5nIHRoZSB0eXBlIG9mIGVycm9yIHRoYXQgb2NjdXJyZWQuXG4gKiAtIGBtZXNzYWdlKClgIC0gYSBodW1hbi1yZWFkYWJsZSBkZXNjcmlwdGlvbiBvZiB0aGUgZXJyb3JcbiAqIC0gYGlubmVyRXhjZXB0aW9uKClgIC0gdGhlIG9yaWdpbmFsIGVycm9yIHRoYXQgY2F1c2VkIHRoZSBmYWlsdXJlOyBjYW4gYmUgcmUtdGhyb3duLlxuICovXG5leHBvcnQgY2xhc3MgRXJyb3IgZXh0ZW5kcyBSZXNwb25zZUVycm9yKF9FcnJvcikge31cbiJdfQ==
@@ -1,70 +0,0 @@
1
- import { SdkError } from '../../../errors';
2
- import { ResponseBase } from '../response-base';
3
- export interface SearchHit {
4
- id: string;
5
- score: number;
6
- metadata: Record<string, string | number | boolean | Array<string>>;
7
- }
8
- /**
9
- * Parent response type for a VectorSearch request. The
10
- * response object is resolved to a type-safe object of one of
11
- * the following subtypes:
12
- *
13
- * - {Success}
14
- * - {Error}
15
- *
16
- * `instanceof` type guards can be used to operate on the appropriate subtype.
17
- * @example
18
- * For example:
19
- * ```
20
- * if (response instanceof VectorSearch.Error) {
21
- * // Handle error as appropriate. The compiler will smart-cast `response` to type
22
- * // `VectorSearch.Error` in this block, so you will have access to the properties
23
- * // of the Error class; e.g. `response.errorCode()`.
24
- * }
25
- * ```
26
- */
27
- export declare abstract class Response extends ResponseBase {
28
- hits(): Array<SearchHit> | undefined;
29
- }
30
- declare class _Success extends Response {
31
- }
32
- declare const Success_base: {
33
- new (...args: any[]): {
34
- readonly is_success: boolean;
35
- };
36
- } & typeof _Success;
37
- /**
38
- * Indicates a Successful VectorSearch request.
39
- */
40
- export declare class Success extends Success_base {
41
- private readonly _hits;
42
- constructor(hits: Array<SearchHit>);
43
- hits(): Array<SearchHit>;
44
- }
45
- declare class _Error extends Response {
46
- protected _innerException: SdkError;
47
- constructor(_innerException: SdkError);
48
- }
49
- declare const Error_base: {
50
- new (...args: any[]): {
51
- _innerException: SdkError;
52
- message(): string;
53
- innerException(): SdkError;
54
- errorCode(): import("../../../errors").MomentoErrorCode;
55
- toString(): string;
56
- };
57
- } & typeof _Error;
58
- /**
59
- * Indicates that an error occurred during the VectorSearch request.
60
- *
61
- * This response object includes the following fields that you can use to determine
62
- * how you would like to handle the error:
63
- *
64
- * - `errorCode()` - a unique Momento error code indicating the type of error that occurred.
65
- * - `message()` - a human-readable description of the error
66
- * - `innerException()` - the original error that caused the failure; can be re-thrown.
67
- */
68
- export declare class Error extends Error_base {
69
- }
70
- export {};
@@ -1,67 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Error = exports.Success = exports.Response = void 0;
4
- const response_base_1 = require("../response-base");
5
- /**
6
- * Parent response type for a VectorSearch request. The
7
- * response object is resolved to a type-safe object of one of
8
- * the following subtypes:
9
- *
10
- * - {Success}
11
- * - {Error}
12
- *
13
- * `instanceof` type guards can be used to operate on the appropriate subtype.
14
- * @example
15
- * For example:
16
- * ```
17
- * if (response instanceof VectorSearch.Error) {
18
- * // Handle error as appropriate. The compiler will smart-cast `response` to type
19
- * // `VectorSearch.Error` in this block, so you will have access to the properties
20
- * // of the Error class; e.g. `response.errorCode()`.
21
- * }
22
- * ```
23
- */
24
- class Response extends response_base_1.ResponseBase {
25
- hits() {
26
- if (this instanceof Success) {
27
- return this.hits();
28
- }
29
- return undefined;
30
- }
31
- }
32
- exports.Response = Response;
33
- class _Success extends Response {
34
- }
35
- /**
36
- * Indicates a Successful VectorSearch request.
37
- */
38
- class Success extends (0, response_base_1.ResponseSuccess)(_Success) {
39
- constructor(hits) {
40
- super();
41
- this._hits = hits;
42
- }
43
- hits() {
44
- return this._hits;
45
- }
46
- }
47
- exports.Success = Success;
48
- class _Error extends Response {
49
- constructor(_innerException) {
50
- super();
51
- this._innerException = _innerException;
52
- }
53
- }
54
- /**
55
- * Indicates that an error occurred during the VectorSearch request.
56
- *
57
- * This response object includes the following fields that you can use to determine
58
- * how you would like to handle the error:
59
- *
60
- * - `errorCode()` - a unique Momento error code indicating the type of error that occurred.
61
- * - `message()` - a human-readable description of the error
62
- * - `innerException()` - the original error that caused the failure; can be re-thrown.
63
- */
64
- class Error extends (0, response_base_1.ResponseError)(_Error) {
65
- }
66
- exports.Error = Error;
67
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVjdG9yLXNlYXJjaC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9tZXNzYWdlcy9yZXNwb25zZXMvdmVjdG9yL3ZlY3Rvci1zZWFyY2gudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQ0Esb0RBQThFO0FBUTlFOzs7Ozs7Ozs7Ozs7Ozs7Ozs7R0FrQkc7QUFDSCxNQUFzQixRQUFTLFNBQVEsNEJBQVk7SUFDakQsSUFBSTtRQUNGLElBQUksSUFBSSxZQUFZLE9BQU8sRUFBRTtZQUMzQixPQUFPLElBQUksQ0FBQyxJQUFJLEVBQUUsQ0FBQztTQUN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GNlcHRpb24oKWAgLSB0aGUgb3JpZ2luYWwgZXJyb3IgdGhhdCBjYXVzZWQgdGhlIGZhaWx1cmU7IGNhbiBiZSByZS10aHJvd24uXG4gKi9cbmV4cG9ydCBjbGFzcyBFcnJvciBleHRlbmRzIFJlc3BvbnNlRXJyb3IoX0Vycm9yKSB7fVxuIl19
@@ -1,61 +0,0 @@
1
- import { SdkError } from '../../../errors';
2
- import { ResponseBase } from '../response-base';
3
- /**
4
- * Parent response type for a VectorUpsertItemBatch request. The
5
- * response object is resolved to a type-safe object of one of
6
- * the following subtypes:
7
- *
8
- * - {Success}
9
- * - {Error}
10
- *
11
- * `instanceof` type guards can be used to operate on the appropriate subtype.
12
- * @example
13
- * For example:
14
- * ```
15
- * if (response instanceof VectorUpsertItemBatch.Error) {
16
- * // Handle error as appropriate. The compiler will smart-cast `response` to type
17
- * // `VectorUpsertItemBatch.Error` in this block, so you will have access to the properties
18
- * // of the Error class; e.g. `response.errorCode()`.
19
- * }
20
- * ```
21
- */
22
- export declare abstract class Response extends ResponseBase {
23
- }
24
- declare class _Success extends Response {
25
- }
26
- declare const Success_base: {
27
- new (...args: any[]): {
28
- readonly is_success: boolean;
29
- };
30
- } & typeof _Success;
31
- /**
32
- * Indicates a Successful VectorUpsertItemBatch request.
33
- */
34
- export declare class Success extends Success_base {
35
- }
36
- declare class _Error extends Response {
37
- protected _innerException: SdkError;
38
- constructor(_innerException: SdkError);
39
- }
40
- declare const Error_base: {
41
- new (...args: any[]): {
42
- _innerException: SdkError;
43
- message(): string;
44
- innerException(): SdkError;
45
- errorCode(): import("../../../errors").MomentoErrorCode;
46
- toString(): string;
47
- };
48
- } & typeof _Error;
49
- /**
50
- * Indicates that an error occurred during the VectorUpsertItemBatch request.
51
- *
52
- * This response object includes the following fields that you can use to determine
53
- * how you would like to handle the error:
54
- *
55
- * - `errorCode()` - a unique Momento error code indicating the type of error that occurred.
56
- * - `message()` - a human-readable description of the error
57
- * - `innerException()` - the original error that caused the failure; can be re-thrown.
58
- */
59
- export declare class Error extends Error_base {
60
- }
61
- export {};
@@ -1,54 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Error = exports.Success = exports.Response = void 0;
4
- const response_base_1 = require("../response-base");
5
- /**
6
- * Parent response type for a VectorUpsertItemBatch request. The
7
- * response object is resolved to a type-safe object of one of
8
- * the following subtypes:
9
- *
10
- * - {Success}
11
- * - {Error}
12
- *
13
- * `instanceof` type guards can be used to operate on the appropriate subtype.
14
- * @example
15
- * For example:
16
- * ```
17
- * if (response instanceof VectorUpsertItemBatch.Error) {
18
- * // Handle error as appropriate. The compiler will smart-cast `response` to type
19
- * // `VectorUpsertItemBatch.Error` in this block, so you will have access to the properties
20
- * // of the Error class; e.g. `response.errorCode()`.
21
- * }
22
- * ```
23
- */
24
- class Response extends response_base_1.ResponseBase {
25
- }
26
- exports.Response = Response;
27
- class _Success extends Response {
28
- }
29
- /**
30
- * Indicates a Successful VectorUpsertItemBatch request.
31
- */
32
- class Success extends (0, response_base_1.ResponseSuccess)(_Success) {
33
- }
34
- exports.Success = Success;
35
- class _Error extends Response {
36
- constructor(_innerException) {
37
- super();
38
- this._innerException = _innerException;
39
- }
40
- }
41
- /**
42
- * Indicates that an error occurred during the VectorUpsertItemBatch request.
43
- *
44
- * This response object includes the following fields that you can use to determine
45
- * how you would like to handle the error:
46
- *
47
- * - `errorCode()` - a unique Momento error code indicating the type of error that occurred.
48
- * - `message()` - a human-readable description of the error
49
- * - `innerException()` - the original error that caused the failure; can be re-thrown.
50
- */
51
- class Error extends (0, response_base_1.ResponseError)(_Error) {
52
- }
53
- exports.Error = Error;
54
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVjdG9yLXVwc2VydC1pdGVtLWJhdGNoLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL21lc3NhZ2VzL3Jlc3BvbnNlcy92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qKlxuICogSW5kaWNhdGVzIHRoYXQgYW4gZXJyb3Igb2NjdXJyZWQgZHVyaW5nIHRoZSBWZWN0b3JVcHNlcnRJdGVtQmF0Y2ggcmVxdWVzdC5cbiAqXG4gKiBUaGlzIHJlc3BvbnNlIG9iamVjdCBpbmNsdWRlcyB0aGUgZm9sbG93aW5nIGZpZWxkcyB0aGF0IHlvdSBjYW4gdXNlIHRvIGRldGVybWluZVxuICogaG93IHlvdSB3b3VsZCBsaWtlIHRvIGhhbmRsZSB0aGUgZXJyb3I6XG4gKlxuICogLSBgZXJyb3JDb2RlKClgIC0gYSB1bmlxdWUgTW9tZW50byBlcnJvciBjb2RlIGluZGljYXRpbmcgdGhlIHR5cGUgb2YgZXJyb3IgdGhhdCBvY2N1cnJlZC5cbiAqIC0gYG1lc3NhZ2UoKWAgLSBhIGh1bWFuLXJlYWRhYmxlIGRlc2NyaXB0aW9uIG9mIHRoZSBlcnJvclxuICogLSBgaW5uZXJFeGNlcHRpb24oKWAgLSB0aGUgb3JpZ2luYWwgZXJyb3IgdGhhdCBjYXVzZWQgdGhlIGZhaWx1cmU7IGNhbiBiZSByZS10aHJvd24uXG4gKi9cbmV4cG9ydCBjbGFzcyBFcnJvciBleHRlbmRzIFJlc3BvbnNlRXJyb3IoX0Vycm9yKSB7fVxuIl19
@@ -1,279 +0,0 @@
1
- /**
2
- * Base class for all vector index filter expressions.
3
- */
4
- export declare abstract class VectorFilterExpression {
5
- abstract toString(): string;
6
- /**
7
- * Creates an AND expression between this expression and another one.
8
- * @param other The other expression.
9
- * @returns The AND expression.
10
- */
11
- and(other: VectorFilterExpression): VectorFilterAndExpression;
12
- /**
13
- * Creates an OR expression between this expression and another one.
14
- * @param other The other expression.
15
- * @returns The OR expression.
16
- */
17
- or(other: VectorFilterExpression): VectorFilterOrExpression;
18
- /**
19
- * Negates this expression.
20
- * @returns The negated expression.
21
- */
22
- not(): VectorFilterNotExpression;
23
- }
24
- /**
25
- * Factory for creating vector filter expressions.
26
- */
27
- export declare class VectorFilterExpressions {
28
- private constructor();
29
- /**
30
- * Creates an {@link VectorFilterAndExpression} between two vector filter expressions.
31
- * @param firstExpression The first expression.
32
- * @param secondExpression The second expression.
33
- * @returns The AND expression.
34
- */
35
- static and(firstExpression: VectorFilterExpression, secondExpression: VectorFilterExpression): VectorFilterAndExpression;
36
- /**
37
- * Creates an {@link VectorFilterOrExpression} between two vector filter expressions.
38
- * @param firstExpression The first expression.
39
- * @param secondExpression The second expression.
40
- * @returns The OR expression.
41
- */
42
- static or(firstExpression: VectorFilterExpression, secondExpression: VectorFilterExpression): VectorFilterOrExpression;
43
- /**
44
- * Creates a {@link VectorFilterNotExpression} expression of a vector filter expression.
45
- * @param expression The expression.
46
- * @returns The NOT expression.
47
- */
48
- static not(expression: VectorFilterExpression): VectorFilterNotExpression;
49
- /**
50
- * Creates a {@link VectorFilterEqualsExpression} between a field and a value.
51
- * @param field The field.
52
- * @param value The value.
53
- * @returns The equals expression.
54
- */
55
- static equals(field: string, value: string | number | boolean): VectorFilterEqualsExpression;
56
- /**
57
- * Creates a {@link VectorFilterGreaterThanExpression} between a field and a value.
58
- * @param field The field.
59
- * @param value The value.
60
- * @returns The greater than expression.
61
- */
62
- static greaterThan(field: string, value: number): VectorFilterGreaterThanExpression;
63
- /**
64
- * Creates a {@link VectorFilterGreaterThanOrEqualExpression} between a field and a value.
65
- * @param field The field.
66
- * @param value The value.
67
- * @returns The greater than or equal expression.
68
- */
69
- static greaterThanOrEqual(field: string, value: number): VectorFilterGreaterThanOrEqualExpression;
70
- /**
71
- * Creates a {@link VectorFilterLessThanExpression} between a field and a value.
72
- * @param field The field.
73
- * @param value The value.
74
- * @returns The less than expression.
75
- */
76
- static lessThan(field: string, value: number): VectorFilterLessThanExpression;
77
- /**
78
- * Creates a {@link VectorFilterLessThanOrEqualExpression} between a field and a value.
79
- * @param field The field.
80
- * @param value The value.
81
- * @returns The less than or equal expression.
82
- */
83
- static lessThanOrEqual(field: string, value: number): VectorFilterLessThanOrEqualExpression;
84
- /**
85
- * Creates a {@link VectorFilterListContainsExpression} between a list-valued field and a value.
86
- * @param field The field.
87
- * @param value The value.
88
- * @returns The contains expression.
89
- */
90
- static listContains(field: string, value: string): VectorFilterListContainsExpression;
91
- /**
92
- * Creates a {@link VectorFilterIdInSetExpression} for a set of ids.
93
- * @param ids The ids.
94
- */
95
- static idInSet(ids: string[]): VectorFilterIdInSetExpression;
96
- }
97
- /**
98
- * Represents an AND expression between two vector filter expressions.
99
- */
100
- export declare class VectorFilterAndExpression extends VectorFilterExpression {
101
- /**
102
- * The first expression to AND.
103
- * @private
104
- */
105
- private readonly firstExpression;
106
- /**
107
- * The second expression to AND.
108
- * @private
109
- */
110
- private readonly secondExpression;
111
- constructor(firstExpression: VectorFilterExpression, secondExpression: VectorFilterExpression);
112
- get FirstExpression(): VectorFilterExpression;
113
- get SecondExpression(): VectorFilterExpression;
114
- toString(): string;
115
- }
116
- /**
117
- * Represents an OR expression between two vector filter expressions.
118
- */
119
- export declare class VectorFilterOrExpression extends VectorFilterExpression {
120
- /**
121
- * The first expression to OR.
122
- * @private
123
- */
124
- private readonly firstExpression;
125
- /**
126
- * The second expression to OR.
127
- * @private
128
- */
129
- private readonly secondExpression;
130
- constructor(firstExpression: VectorFilterExpression, secondExpression: VectorFilterExpression);
131
- get FirstExpression(): VectorFilterExpression;
132
- get SecondExpression(): VectorFilterExpression;
133
- toString(): string;
134
- }
135
- /**
136
- * Represents a NOT expression of a vector filter expression.
137
- */
138
- export declare class VectorFilterNotExpression extends VectorFilterExpression {
139
- /**
140
- * The expression to negate.
141
- * @private
142
- */
143
- private readonly expression;
144
- constructor(expression: VectorFilterExpression);
145
- get Expression(): VectorFilterExpression;
146
- toString(): string;
147
- }
148
- /**
149
- * Represents an equals expression between a field and a value.
150
- */
151
- export declare class VectorFilterEqualsExpression extends VectorFilterExpression {
152
- /**
153
- * The field to compare.
154
- * @private
155
- */
156
- private readonly field;
157
- /**
158
- * The value to test for equality.
159
- * @private
160
- */
161
- private readonly value;
162
- constructor(field: string, value: string | number | boolean);
163
- get Field(): string;
164
- get Value(): string | number | boolean;
165
- toString(): string;
166
- }
167
- /**
168
- * Represents a greater than expression between a field and a value.
169
- */
170
- export declare class VectorFilterGreaterThanExpression extends VectorFilterExpression {
171
- /**
172
- * The field to compare.
173
- * @private
174
- */
175
- private readonly field;
176
- /**
177
- * The value to test for greater than.
178
- * @private
179
- */
180
- private readonly value;
181
- constructor(field: string, value: number);
182
- get Field(): string;
183
- get Value(): number;
184
- toString(): string;
185
- }
186
- /**
187
- * Represents a greater than or equal expression between a field and a value.
188
- */
189
- export declare class VectorFilterGreaterThanOrEqualExpression extends VectorFilterExpression {
190
- /**
191
- * The field to compare.
192
- * @private
193
- */
194
- private readonly field;
195
- /**
196
- * The value to test for greater than or equal.
197
- * @private
198
- */
199
- private readonly value;
200
- constructor(field: string, value: number);
201
- get Field(): string;
202
- get Value(): number;
203
- toString(): string;
204
- }
205
- /**
206
- * Represents a less than expression between a field and a value.
207
- */
208
- export declare class VectorFilterLessThanExpression extends VectorFilterExpression {
209
- /**
210
- * The field to compare.
211
- * @private
212
- */
213
- private readonly field;
214
- /**
215
- * The value to test for less than.
216
- * @private
217
- */
218
- private readonly value;
219
- constructor(field: string, value: number);
220
- get Field(): string;
221
- get Value(): number;
222
- toString(): string;
223
- }
224
- /**
225
- * Represents a less than or equal expression between a field and a value.
226
- */
227
- export declare class VectorFilterLessThanOrEqualExpression extends VectorFilterExpression {
228
- /**
229
- * The field to compare.
230
- * @private
231
- */
232
- private readonly field;
233
- /**
234
- * The value to test for less than or equal.
235
- * @private
236
- */
237
- private readonly value;
238
- constructor(field: string, value: number);
239
- get Field(): string;
240
- get Value(): number;
241
- toString(): string;
242
- }
243
- /**
244
- * Represents a contains expression between a list-valued field and a value.
245
- */
246
- export declare class VectorFilterListContainsExpression extends VectorFilterExpression {
247
- /**
248
- * The field to compare.
249
- * @private
250
- */
251
- private readonly field;
252
- /**
253
- * The value to test for containment, ie does the list contain this value.
254
- * @private
255
- */
256
- private readonly value;
257
- constructor(field: string, value: string);
258
- get Field(): string;
259
- get Value(): string;
260
- toString(): string;
261
- }
262
- /**
263
- * Represents an id in set expression.
264
- * An item is considered a match if its id is in the set of ids.
265
- */
266
- export declare class VectorFilterIdInSetExpression extends VectorFilterExpression {
267
- /**
268
- * The ids to test for membership.
269
- * @private
270
- */
271
- private readonly ids;
272
- constructor(ids: string[]);
273
- /**
274
- * The ids to test for membership.
275
- * @constructor
276
- */
277
- get Ids(): string[];
278
- toString(): string;
279
- }