@thisisagile/easy 15.8.5 → 15.8.6
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/dist/index.d.mts +12 -12
- package/dist/index.d.ts +12 -12
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
- package/src/process/Manage.ts +15 -4
- package/src/process/Search.ts +24 -9
- package/src/utils/If.ts +1 -0
package/dist/index.d.mts
CHANGED
|
@@ -2457,21 +2457,21 @@ declare class App extends Scope {
|
|
|
2457
2457
|
declare class Search<T, Options = FetchOptions> {
|
|
2458
2458
|
protected repo: Repository<T, Options>;
|
|
2459
2459
|
constructor(repo: Repository<T, Options>);
|
|
2460
|
-
all
|
|
2461
|
-
byId
|
|
2462
|
-
byIds
|
|
2463
|
-
byKey
|
|
2464
|
-
query
|
|
2465
|
-
search
|
|
2466
|
-
filter
|
|
2467
|
-
exists
|
|
2460
|
+
all(options?: Options): Promise<PageList<T>>;
|
|
2461
|
+
byId(id: Id): Promise<T>;
|
|
2462
|
+
byIds(...ids: Id[]): Promise<List<T>>;
|
|
2463
|
+
byKey(key: Key, options?: Options): Promise<PageList<T>>;
|
|
2464
|
+
query({ query, skip, take }: Req): Promise<PageList<T>>;
|
|
2465
|
+
search(query: JsonValue, options?: Options): Promise<PageList<T>>;
|
|
2466
|
+
filter(options?: Options): Promise<PageList<T>>;
|
|
2467
|
+
exists(id: Id): Promise<boolean>;
|
|
2468
2468
|
}
|
|
2469
2469
|
|
|
2470
2470
|
declare class Manage<T, Options = FetchOptions> extends Search<T, Options> {
|
|
2471
|
-
add
|
|
2472
|
-
update
|
|
2473
|
-
upsert
|
|
2474
|
-
remove
|
|
2471
|
+
add(json: Json): Promise<T>;
|
|
2472
|
+
update(id: Id, json: Json): Promise<T>;
|
|
2473
|
+
upsert(id: Id, json: Json): Promise<T>;
|
|
2474
|
+
remove(id: Id): Promise<boolean>;
|
|
2475
2475
|
}
|
|
2476
2476
|
|
|
2477
2477
|
declare class UseCase extends Enum {
|
package/dist/index.d.ts
CHANGED
|
@@ -2457,21 +2457,21 @@ declare class App extends Scope {
|
|
|
2457
2457
|
declare class Search<T, Options = FetchOptions> {
|
|
2458
2458
|
protected repo: Repository<T, Options>;
|
|
2459
2459
|
constructor(repo: Repository<T, Options>);
|
|
2460
|
-
all
|
|
2461
|
-
byId
|
|
2462
|
-
byIds
|
|
2463
|
-
byKey
|
|
2464
|
-
query
|
|
2465
|
-
search
|
|
2466
|
-
filter
|
|
2467
|
-
exists
|
|
2460
|
+
all(options?: Options): Promise<PageList<T>>;
|
|
2461
|
+
byId(id: Id): Promise<T>;
|
|
2462
|
+
byIds(...ids: Id[]): Promise<List<T>>;
|
|
2463
|
+
byKey(key: Key, options?: Options): Promise<PageList<T>>;
|
|
2464
|
+
query({ query, skip, take }: Req): Promise<PageList<T>>;
|
|
2465
|
+
search(query: JsonValue, options?: Options): Promise<PageList<T>>;
|
|
2466
|
+
filter(options?: Options): Promise<PageList<T>>;
|
|
2467
|
+
exists(id: Id): Promise<boolean>;
|
|
2468
2468
|
}
|
|
2469
2469
|
|
|
2470
2470
|
declare class Manage<T, Options = FetchOptions> extends Search<T, Options> {
|
|
2471
|
-
add
|
|
2472
|
-
update
|
|
2473
|
-
upsert
|
|
2474
|
-
remove
|
|
2471
|
+
add(json: Json): Promise<T>;
|
|
2472
|
+
update(id: Id, json: Json): Promise<T>;
|
|
2473
|
+
upsert(id: Id, json: Json): Promise<T>;
|
|
2474
|
+
remove(id: Id): Promise<boolean>;
|
|
2475
2475
|
}
|
|
2476
2476
|
|
|
2477
2477
|
declare class UseCase extends Enum {
|