@omnia/fx 7.5.18-dev → 7.5.19-dev
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.
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { Future, GroupIdentity, GroupMembers, Identity, IdentityQuery, IResolvedIdentity, ItemQueryResult, ResolvedUserIdentity, UserIdentity, GuidValue } from "@omnia/fx-models";
|
|
1
|
+
import { Future, GroupIdentity, GroupMembers, Identity, IdentityQuery, IResolvedIdentity, ItemQueryResult, ResolvedUserIdentity, UserIdentity, GuidValue, UserIdentityQuery } from "@omnia/fx-models";
|
|
2
2
|
export declare class IdentityService {
|
|
3
3
|
private httpClient;
|
|
4
4
|
private baseUrl;
|
|
5
5
|
query(query: IdentityQuery): Future<ItemQueryResult<IResolvedIdentity>>;
|
|
6
|
+
queryUsers(query: UserIdentityQuery): Future<ItemQueryResult<IResolvedIdentity>>;
|
|
6
7
|
resolveIdentities(identites: Identity[]): Future<{
|
|
7
8
|
[uid: string]: IResolvedIdentity;
|
|
8
9
|
}>;
|
|
@@ -1,6 +1,17 @@
|
|
|
1
|
-
import { Future, IResolvedIdentity, Identity, IdentityQuery } from "../models";
|
|
2
|
-
import { Store } from "./Store";
|
|
1
|
+
import { Future, IResolvedIdentity, Identity, IdentityQuery, ItemQueryResult } from "../models";
|
|
2
|
+
import { Store, StoreAction, MapActionOnDispatching, MapActionOnDispatched, MapActionOnFailure } from "./Store";
|
|
3
|
+
type QueryActionDispatcher = (query: IdentityQuery) => Future<ItemQueryResult<IResolvedIdentity>>;
|
|
4
|
+
type ResolveIdentitiesActionDispatcher = (identities: Identity[]) => Promise<{
|
|
5
|
+
[uid: string]: IResolvedIdentity;
|
|
6
|
+
}>;
|
|
3
7
|
export interface IIdentityPickerStore {
|
|
8
|
+
getters: {
|
|
9
|
+
getResolvedIdentity: (identity: Identity) => IResolvedIdentity;
|
|
10
|
+
};
|
|
11
|
+
actions: {
|
|
12
|
+
query: StoreAction<unknown, MapActionOnDispatching<QueryActionDispatcher>, MapActionOnDispatched<QueryActionDispatcher>, MapActionOnFailure<QueryActionDispatcher>, QueryActionDispatcher>;
|
|
13
|
+
resolveIdentities: StoreAction<unknown, MapActionOnDispatching<ResolveIdentitiesActionDispatcher>, MapActionOnDispatched<ResolveIdentitiesActionDispatcher>, MapActionOnFailure<ResolveIdentitiesActionDispatcher>, ResolveIdentitiesActionDispatcher>;
|
|
14
|
+
};
|
|
4
15
|
}
|
|
5
16
|
export declare class IdentityStore extends Store implements IIdentityPickerStore {
|
|
6
17
|
private identityService;
|
|
@@ -14,12 +25,13 @@ export declare class IdentityStore extends Store implements IIdentityPickerStore
|
|
|
14
25
|
addOrUpdateResolvedIdentities: (resolvedIdentities: IResolvedIdentity[]) => void;
|
|
15
26
|
};
|
|
16
27
|
actions: {
|
|
17
|
-
resolveIdentities:
|
|
28
|
+
resolveIdentities: StoreAction<unknown, (identities: Identity[]) => void, (result: {
|
|
18
29
|
[uid: string]: IResolvedIdentity;
|
|
19
30
|
}, identities: Identity[]) => void, (failureReason: any, identities: Identity[]) => void, (identities: Identity[]) => Promise<{
|
|
20
31
|
[uid: string]: IResolvedIdentity;
|
|
21
32
|
}>>;
|
|
22
|
-
query:
|
|
33
|
+
query: StoreAction<unknown, (query: IdentityQuery) => void, (result: ItemQueryResult<IResolvedIdentity>, query: IdentityQuery) => void, (failureReason: any, query: IdentityQuery) => void, (query: IdentityQuery) => Future<ItemQueryResult<IResolvedIdentity>>>;
|
|
23
34
|
};
|
|
24
35
|
protected onActivated(): void;
|
|
25
36
|
}
|
|
37
|
+
export {};
|
|
@@ -19,10 +19,10 @@ export interface StateMutationLog {
|
|
|
19
19
|
export interface StateActionLog {
|
|
20
20
|
func: any;
|
|
21
21
|
}
|
|
22
|
-
type MapOnCommitToCommit<T extends Function> = T extends (...args: infer U) => void ? (...args: U) => IMessageBusSubscriptionHandler : T;
|
|
23
|
-
type MapActionOnDispatching<T extends Function> = T extends (...args: infer U) => Promise<infer Y> ? (...args: U) => void : never;
|
|
24
|
-
type MapActionOnDispatched<T extends Function> = T extends (...args: infer U) => Promise<infer Y> ? (result: Y, ...args: U) => void : never;
|
|
25
|
-
type MapActionOnFailure<T extends Function> = T extends (...args: infer U) => Promise<infer Y> ? (failureReason: any, ...args: U) => void : never;
|
|
22
|
+
export type MapOnCommitToCommit<T extends Function> = T extends (...args: infer U) => void ? (...args: U) => IMessageBusSubscriptionHandler : T;
|
|
23
|
+
export type MapActionOnDispatching<T extends Function> = T extends (...args: infer U) => Promise<infer Y> ? (...args: U) => void : never;
|
|
24
|
+
export type MapActionOnDispatched<T extends Function> = T extends (...args: infer U) => Promise<infer Y> ? (result: Y, ...args: U) => void : never;
|
|
25
|
+
export type MapActionOnFailure<T extends Function> = T extends (...args: infer U) => Promise<infer Y> ? (failureReason: any, ...args: U) => void : never;
|
|
26
26
|
export declare class StoreLogger {
|
|
27
27
|
private _logState;
|
|
28
28
|
enabled: boolean;
|
|
@@ -148,4 +148,3 @@ export declare class StoreMutation<T extends Function, CommitFunc extends Functi
|
|
|
148
148
|
onCommiting(fn: T): IMessageBusSubscriptionHandler;
|
|
149
149
|
onCommited(fn: T): IMessageBusSubscriptionHandler;
|
|
150
150
|
}
|
|
151
|
-
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omnia/fx",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "7.5.
|
|
4
|
+
"version": "7.5.19-dev",
|
|
5
5
|
"description": "Provide Omnia Fx typings and tooling for clientside Omnia development.",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
],
|
|
21
21
|
"author": "Precio Fishbone",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@omnia/fx-models": "7.5.
|
|
23
|
+
"@omnia/fx-models": "7.5.19-dev",
|
|
24
24
|
"@microsoft/signalr": "6.0.1",
|
|
25
25
|
"broadcast-channel": "4.8.0",
|
|
26
26
|
"dayjs": "1.10.7",
|