@forge/storage
Advanced tools
Comparing version 1.5.10 to 1.5.11-next.0
@@ -21,4 +21,6 @@ import { RequestInit, Response } from 'node-fetch'; | ||
export { QueryBuilder, QueryApi, Condition, ListResult, Predicate, Result, EntityStorageApi, WherePredicate, FilterPredicate } from './storage-adapter'; | ||
export { EntityStorageBuilder, EntityStorageBuilderType } from './entity-storage'; | ||
export { Value, SortOrder } from './query-interfaces'; | ||
export { APIError } from './errors'; | ||
export { CustomEntityIndexBuilder } from './entity-storage/query-api'; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.APIError = exports.SortOrder = exports.FilterConditions = exports.WhereConditions = exports.startsWith = exports.GlobalStorage = exports.getStorageInstanceWithQuery = void 0; | ||
exports.CustomEntityIndexBuilder = exports.APIError = exports.SortOrder = exports.EntityStorageBuilder = exports.FilterConditions = exports.WhereConditions = exports.startsWith = exports.GlobalStorage = exports.getStorageInstanceWithQuery = void 0; | ||
const entity_storage_1 = require("./entity-storage"); | ||
@@ -26,2 +26,4 @@ const query_api_1 = require("./query-api"); | ||
Object.defineProperty(exports, "FilterConditions", { enumerable: true, get: function () { return conditions_2.FilterConditions; } }); | ||
var entity_storage_2 = require("./entity-storage"); | ||
Object.defineProperty(exports, "EntityStorageBuilder", { enumerable: true, get: function () { return entity_storage_2.EntityStorageBuilder; } }); | ||
var query_interfaces_1 = require("./query-interfaces"); | ||
@@ -31,1 +33,3 @@ Object.defineProperty(exports, "SortOrder", { enumerable: true, get: function () { return query_interfaces_1.SortOrder; } }); | ||
Object.defineProperty(exports, "APIError", { enumerable: true, get: function () { return errors_1.APIError; } }); | ||
var query_api_2 = require("./entity-storage/query-api"); | ||
Object.defineProperty(exports, "CustomEntityIndexBuilder", { enumerable: true, get: function () { return query_api_2.CustomEntityIndexBuilder; } }); |
import { EntityStorageBuilderType } from './entity-storage'; | ||
import { BeginsWithClause, BetweenClause, ExistsClause, DoesNotExistClause, FilterOperator, GreaterThanClause, GreaterThanEqualToClause, StartsWith, NotEqualTo, In, LessThanClause, LessThanEqualToClause, ContainsClause, DoesNotContainClause, IsNotEqualToClause, EqualToClause, SortOrder, CustomEntityQueryIndexOptions } from './query-interfaces'; | ||
import { BeginsWithClause, BetweenClause, ExistsClause, DoesNotExistClause, GreaterThanClause, GreaterThanEqualToClause, StartsWith, NotEqualTo, In, LessThanClause, LessThanEqualToClause, ContainsClause, DoesNotContainClause, IsNotEqualToClause, EqualToClause } from './query-interfaces'; | ||
export interface StorageAdapter { | ||
@@ -34,13 +34,2 @@ get(key: string): Promise<any>; | ||
export type WherePredicate = BetweenClause | BeginsWithClause | EqualToClause | GreaterThanClause | GreaterThanEqualToClause | LessThanClause | LessThanEqualToClause; | ||
export interface CustomEntityQueryBuilder<T> { | ||
index(indexName: string, indexOptions?: CustomEntityQueryIndexOptions): CustomEntityQueryBuilder<T>; | ||
where(condition: WherePredicate): CustomEntityQueryBuilder<T>; | ||
sort(sort: SortOrder): CustomEntityQueryBuilder<T>; | ||
filters(property: string, condition: FilterPredicate): CustomEntityQueryBuilder<T>; | ||
filterOperator(operator: FilterOperator): CustomEntityQueryBuilder<T>; | ||
cursor(cursor: string): CustomEntityQueryBuilder<T>; | ||
limit(limit: number): CustomEntityQueryBuilder<T>; | ||
getMany(): Promise<ListResult<T>>; | ||
getOne(): Promise<Result<T> | undefined>; | ||
} | ||
export interface Result<T = object> { | ||
@@ -47,0 +36,0 @@ key: string; |
{ | ||
"name": "@forge/storage", | ||
"version": "1.5.10", | ||
"version": "1.5.11-next.0", | ||
"description": "Forge Storage methods", | ||
@@ -5,0 +5,0 @@ "author": "Atlassian", |
Sorry, the diff of this file is not supported yet
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
120989
2512
2