@forge/storage 1.5.10-next.1 → 1.5.11-next.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.
- package/out/index.d.ts +2 -0
- package/out/index.d.ts.map +1 -1
- package/out/index.js +5 -1
- package/out/storage-adapter.d.ts +1 -12
- package/out/storage-adapter.d.ts.map +1 -1
- package/package.json +1 -1
package/out/index.d.ts
CHANGED
|
@@ -18,6 +18,8 @@ export { GlobalStorage } from './global-storage';
|
|
|
18
18
|
export { startsWith } from './conditions';
|
|
19
19
|
export { WhereConditions, FilterConditions } from './eap/conditions';
|
|
20
20
|
export { QueryBuilder, QueryApi, Condition, ListResult, Predicate, Result, EntityStorageApi, WherePredicate, FilterPredicate } from './storage-adapter';
|
|
21
|
+
export { EntityStorageBuilder, EntityStorageBuilderType } from './entity-storage';
|
|
21
22
|
export { Value, SortOrder } from './query-interfaces';
|
|
22
23
|
export { APIError } from './errors';
|
|
24
|
+
export { CustomEntityIndexBuilder } from './entity-storage/query-api';
|
|
23
25
|
//# sourceMappingURL=index.d.ts.map
|
package/out/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAElD,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,aAAa,GAAG,IAAI,GAAG,QAAQ,GAAG,YAAY,CAAC,CAAC;AAC3G,MAAM,MAAM,WAAW,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,KAAK,O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EACL,YAAY,EACZ,QAAQ,EACR,SAAS,EACT,UAAU,EACV,SAAS,EACT,MAAM,EACN,gBAAgB,EAChB,cAAc,EACd,eAAe,EAChB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAClF,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC"}
|
package/out/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.APIError = exports.SortOrder = exports.FilterConditions = exports.WhereConditions = exports.startsWith = exports.GlobalStorage = exports.getStorageInstanceWithQuery = void 0;
|
|
3
|
+
exports.CustomEntityIndexBuilder = exports.APIError = exports.SortOrder = exports.EntityStorageBuilder = exports.FilterConditions = exports.WhereConditions = exports.startsWith = exports.GlobalStorage = exports.getStorageInstanceWithQuery = void 0;
|
|
4
4
|
const entity_storage_1 = require("./entity-storage");
|
|
5
5
|
const query_api_1 = require("./query-api");
|
|
6
6
|
const getStorageInstanceWithQuery = (adapter) => {
|
|
@@ -23,7 +23,11 @@ Object.defineProperty(exports, "startsWith", { enumerable: true, get: function (
|
|
|
23
23
|
var conditions_2 = require("./eap/conditions");
|
|
24
24
|
Object.defineProperty(exports, "WhereConditions", { enumerable: true, get: function () { return conditions_2.WhereConditions; } });
|
|
25
25
|
Object.defineProperty(exports, "FilterConditions", { enumerable: true, get: function () { return conditions_2.FilterConditions; } });
|
|
26
|
+
var entity_storage_2 = require("./entity-storage");
|
|
27
|
+
Object.defineProperty(exports, "EntityStorageBuilder", { enumerable: true, get: function () { return entity_storage_2.EntityStorageBuilder; } });
|
|
26
28
|
var query_interfaces_1 = require("./query-interfaces");
|
|
27
29
|
Object.defineProperty(exports, "SortOrder", { enumerable: true, get: function () { return query_interfaces_1.SortOrder; } });
|
|
28
30
|
var errors_1 = require("./errors");
|
|
29
31
|
Object.defineProperty(exports, "APIError", { enumerable: true, get: function () { return errors_1.APIError; } });
|
|
32
|
+
var query_api_2 = require("./entity-storage/query-api");
|
|
33
|
+
Object.defineProperty(exports, "CustomEntityIndexBuilder", { enumerable: true, get: function () { return query_api_2.CustomEntityIndexBuilder; } });
|
package/out/storage-adapter.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EntityStorageBuilderType } from './entity-storage';
|
|
2
|
-
import { BeginsWithClause, BetweenClause, ExistsClause, DoesNotExistClause,
|
|
2
|
+
import { BeginsWithClause, BetweenClause, ExistsClause, DoesNotExistClause, GreaterThanClause, GreaterThanEqualToClause, StartsWith, NotEqualTo, In, LessThanClause, LessThanEqualToClause, ContainsClause, DoesNotContainClause, IsNotEqualToClause, EqualToClause } from './query-interfaces';
|
|
3
3
|
export interface StorageAdapter {
|
|
4
4
|
get(key: string): Promise<any>;
|
|
5
5
|
set(key: string, value: any): Promise<void>;
|
|
@@ -31,17 +31,6 @@ export interface QueryBuilder {
|
|
|
31
31
|
}
|
|
32
32
|
export type FilterPredicate = BetweenClause | BeginsWithClause | ExistsClause | DoesNotExistClause | GreaterThanClause | GreaterThanEqualToClause | LessThanClause | LessThanEqualToClause | ContainsClause | DoesNotContainClause | EqualToClause | IsNotEqualToClause;
|
|
33
33
|
export type WherePredicate = BetweenClause | BeginsWithClause | EqualToClause | GreaterThanClause | GreaterThanEqualToClause | LessThanClause | LessThanEqualToClause;
|
|
34
|
-
export interface CustomEntityQueryBuilder<T> {
|
|
35
|
-
index(indexName: string, indexOptions?: CustomEntityQueryIndexOptions): CustomEntityQueryBuilder<T>;
|
|
36
|
-
where(condition: WherePredicate): CustomEntityQueryBuilder<T>;
|
|
37
|
-
sort(sort: SortOrder): CustomEntityQueryBuilder<T>;
|
|
38
|
-
filters(property: string, condition: FilterPredicate): CustomEntityQueryBuilder<T>;
|
|
39
|
-
filterOperator(operator: FilterOperator): CustomEntityQueryBuilder<T>;
|
|
40
|
-
cursor(cursor: string): CustomEntityQueryBuilder<T>;
|
|
41
|
-
limit(limit: number): CustomEntityQueryBuilder<T>;
|
|
42
|
-
getMany(): Promise<ListResult<T>>;
|
|
43
|
-
getOne(): Promise<Result<T> | undefined>;
|
|
44
|
-
}
|
|
45
34
|
export interface Result<T = object> {
|
|
46
35
|
key: string;
|
|
47
36
|
value: T;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage-adapter.d.ts","sourceRoot":"","sources":["../src/storage-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EACL,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,
|
|
1
|
+
{"version":3,"file":"storage-adapter.d.ts","sourceRoot":"","sources":["../src/storage-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EACL,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,EACjB,wBAAwB,EACxB,UAAU,EACV,UAAU,EACV,EAAE,EACF,cAAc,EACd,qBAAqB,EACrB,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAClB,aAAa,EACd,MAAM,oBAAoB,CAAC;AAE5B,MAAM,WAAW,cAAc;IAC7B,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAC/B,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACnC,SAAS,CAAC,GAAG,EAAE,MAAM,GA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