h1v3 0.18.0 → 0.19.2
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/package.json +9 -3
- package/types/dist/browser/client/event-store.d.ts +16 -0
- package/types/dist/browser/client/id.d.ts +4 -0
- package/types/dist/browser/client/team/promise.d.ts +1 -0
- package/types/dist/browser/client/team/team.d.ts +39 -0
- package/types/dist/browser/client/team/user.d.ts +19 -0
- package/types/src/client/context.d.ts +55 -0
- package/types/src/client/index.d.ts +2 -0
- package/types/src/client/node.d.ts +26 -0
- package/types/src/commands/generate-rules.d.ts +1 -0
- package/types/src/commands/list-event-stores.d.ts +1 -0
- package/types/src/commands/vendor.d.ts +4 -0
- package/types/src/configuration/configure-eventStore.d.ts +20 -0
- package/types/src/configuration/configure-metadata-endpoint.d.ts +7 -0
- package/types/src/configuration/configure-o11y-store.d.ts +8 -0
- package/types/src/configuration/load-configuration.d.ts +4 -0
- package/types/src/configuration/paths.d.ts +1 -0
- package/types/src/configuration/rules.d.ts +52 -0
- package/types/src/event-store/projections.d.ts +1 -0
- package/types/src/exec-eventstore.d.ts +2 -0
- package/types/src/index.d.ts +17 -0
- package/types/src/membership/index.d.ts +5 -0
- package/types/src/membership/team-details/events.d.ts +2 -0
- package/types/src/membership/team-details/projections/current.d.ts +6 -0
- package/types/src/membership/team-details/store.d.ts +14 -0
- package/types/src/membership/team-details/verify-store-paths.d.ts +1 -0
- package/types/src/membership/team-membership/events.d.ts +9 -0
- package/types/src/membership/team-membership/projections/_shared.d.ts +20 -0
- package/types/src/membership/team-membership/projections/details.d.ts +30 -0
- package/types/src/membership/team-membership/projections/inviteToEmail.d.ts +14 -0
- package/types/src/membership/team-membership/projections/members.d.ts +24 -0
- package/types/src/membership/team-membership/store.d.ts +76 -0
- package/types/src/membership/user-profile/events.d.ts +2 -0
- package/types/src/membership/user-profile/projections/current.d.ts +6 -0
- package/types/src/membership/user-profile/store.d.ts +14 -0
- package/types/src/membership/user-teams/events.d.ts +3 -0
- package/types/src/membership/user-teams/projections/current.d.ts +9 -0
- package/types/src/membership/user-teams/store.d.ts +17 -0
- package/types/src/membership/userInvites/events.d.ts +4 -0
- package/types/src/membership/userInvites/projections/pending.d.ts +13 -0
- package/types/src/membership/userInvites/store.d.ts +21 -0
- package/types/src/observability/index.d.ts +17 -0
- package/types/src/package.d.ts +5 -0
- package/types/src/schema.d.ts +15 -0
- package/types/src/system/json.d.ts +1 -0
- package/types/src/system/main.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "h1v3",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"exports": {
|
|
9
|
-
".":
|
|
10
|
-
|
|
9
|
+
".": {
|
|
10
|
+
"default": "./src/index.js",
|
|
11
|
+
"types": "./types/src/index.d.ts"
|
|
12
|
+
},
|
|
13
|
+
"./client": {
|
|
14
|
+
"default": "./src/client/index.js",
|
|
15
|
+
"types": "./types/src/client/index.d.ts"
|
|
16
|
+
}
|
|
11
17
|
},
|
|
12
18
|
"bin": {
|
|
13
19
|
"eventstore": "./src/exec-eventstore.js"
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export function eventStore(database: any, authentication: any, path: any): {
|
|
2
|
+
record(eventType: any, payload: any): Promise<string>;
|
|
3
|
+
recordWithId({ type, payload, id }: {
|
|
4
|
+
type: any;
|
|
5
|
+
payload: any;
|
|
6
|
+
id: any;
|
|
7
|
+
}): Promise<void>;
|
|
8
|
+
getProjection(name: any): Promise<any>;
|
|
9
|
+
onProjectionValue(name: any, callback: any, cancelCallback: any): void;
|
|
10
|
+
offProjection(name: any): Promise<void>;
|
|
11
|
+
dispose(): Promise<void>;
|
|
12
|
+
readonly path: any;
|
|
13
|
+
};
|
|
14
|
+
export function newEventId(eventType: any): string;
|
|
15
|
+
export const PROJECTIONS: "_p";
|
|
16
|
+
export const EVENTS: "_e";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function resolveOrTimeout(tryStrategy: any, pollingDelay?: number): Promise<any>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export function team({ teamMembershipStore, userInvitesStoreFactory, teamDetailsStore, userTeamsStoreFactory, handleError }: {
|
|
2
|
+
teamMembershipStore: any;
|
|
3
|
+
userInvitesStoreFactory: any;
|
|
4
|
+
teamDetailsStore: any;
|
|
5
|
+
userTeamsStoreFactory?: () => never;
|
|
6
|
+
handleError?: any;
|
|
7
|
+
}): {
|
|
8
|
+
addAdmin({ uid, name, ...rest }: {
|
|
9
|
+
[x: string]: any;
|
|
10
|
+
uid: any;
|
|
11
|
+
name: any;
|
|
12
|
+
}): Promise<void>;
|
|
13
|
+
addMember({ uid, name, ...rest }: {
|
|
14
|
+
[x: string]: any;
|
|
15
|
+
uid: any;
|
|
16
|
+
name: any;
|
|
17
|
+
}): Promise<void>;
|
|
18
|
+
onMembershipDetails: (callback: any) => void;
|
|
19
|
+
offMembershipDetails: (callback: any) => void;
|
|
20
|
+
onDetails: (callback: any) => void;
|
|
21
|
+
offDetails: (callback: any) => void;
|
|
22
|
+
inviteMember({ email, name, createdBy }: {
|
|
23
|
+
email: any;
|
|
24
|
+
name: any;
|
|
25
|
+
createdBy: any;
|
|
26
|
+
}): Promise<void>;
|
|
27
|
+
inviteAdmin({ email, name, createdBy }: {
|
|
28
|
+
email: any;
|
|
29
|
+
name: any;
|
|
30
|
+
createdBy: any;
|
|
31
|
+
}): Promise<void>;
|
|
32
|
+
setDetails(details: any): Promise<void>;
|
|
33
|
+
};
|
|
34
|
+
export const BECAME_MEMBER: "BECAME_MEMBER";
|
|
35
|
+
export const BECAME_ADMIN: "BECAME_ADMIN";
|
|
36
|
+
export const ADDED_TO_TEAM: "ADDED_TO_TEAM";
|
|
37
|
+
export const MEMBER_INVITED: "MEMBER_INVITED";
|
|
38
|
+
export const ADMIN_INVITED: "ADMIN_INVITED";
|
|
39
|
+
export const DETAILS_UPDATED: "DETAILS_UPDATED";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export function user({ uid, userTeamsStore, userProfileStore, teamDetailsStoreFactory, teamMembershipStoreFactory }: {
|
|
2
|
+
uid: any;
|
|
3
|
+
userTeamsStore: any;
|
|
4
|
+
userProfileStore: any;
|
|
5
|
+
teamDetailsStoreFactory: any;
|
|
6
|
+
teamMembershipStoreFactory: any;
|
|
7
|
+
}): {
|
|
8
|
+
setDetails(details: any): Promise<void>;
|
|
9
|
+
onTeams(callback: any): void;
|
|
10
|
+
offTeams(callback: any): void;
|
|
11
|
+
createTeam({ team: { id, name }, user: { displayName } }: {
|
|
12
|
+
team: {
|
|
13
|
+
id: any;
|
|
14
|
+
name: any;
|
|
15
|
+
};
|
|
16
|
+
user?: {};
|
|
17
|
+
}, progressCallback: any): Promise<any>;
|
|
18
|
+
};
|
|
19
|
+
export const DETAILS_UPDATED: "DETAILS_UPDATED";
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export function inject({ db, uid: authorUid, teamMembershipConfig, userTeamsConfig, userInvitesConfig, teamDetailsConfig, userProfileConfig, eventStoreFromConfig }: {
|
|
2
|
+
db: any;
|
|
3
|
+
uid: any;
|
|
4
|
+
teamMembershipConfig: any;
|
|
5
|
+
userTeamsConfig: any;
|
|
6
|
+
userInvitesConfig: any;
|
|
7
|
+
teamDetailsConfig: any;
|
|
8
|
+
userProfileConfig: any;
|
|
9
|
+
eventStoreFromConfig?: typeof defaultEventStoreFromConfig;
|
|
10
|
+
}): {
|
|
11
|
+
team({ tid }: {
|
|
12
|
+
tid: any;
|
|
13
|
+
}): {
|
|
14
|
+
addAdmin({ uid, name, ...rest }: {
|
|
15
|
+
[x: string]: any;
|
|
16
|
+
uid: any;
|
|
17
|
+
name: any;
|
|
18
|
+
}): Promise<void>;
|
|
19
|
+
addMember({ uid, name, ...rest }: {
|
|
20
|
+
[x: string]: any;
|
|
21
|
+
uid: any;
|
|
22
|
+
name: any;
|
|
23
|
+
}): Promise<void>;
|
|
24
|
+
onMembershipDetails: (callback: any) => void;
|
|
25
|
+
offMembershipDetails: (callback: any) => void;
|
|
26
|
+
onDetails: (callback: any) => void;
|
|
27
|
+
offDetails: (callback: any) => void;
|
|
28
|
+
inviteMember({ email, name, createdBy }: {
|
|
29
|
+
email: any;
|
|
30
|
+
name: any;
|
|
31
|
+
createdBy: any;
|
|
32
|
+
}): Promise<void>;
|
|
33
|
+
inviteAdmin({ email, name, createdBy }: {
|
|
34
|
+
email: any;
|
|
35
|
+
name: any;
|
|
36
|
+
createdBy: any;
|
|
37
|
+
}): Promise<void>;
|
|
38
|
+
setDetails(details: any): Promise<void>;
|
|
39
|
+
};
|
|
40
|
+
userProfile({ uid }: {
|
|
41
|
+
uid: any;
|
|
42
|
+
}): {
|
|
43
|
+
setDetails(details: any): Promise<void>;
|
|
44
|
+
onTeams(callback: any): void;
|
|
45
|
+
offTeams(callback: any): void;
|
|
46
|
+
createTeam({ team: { id, name }, user: { displayName } }: {
|
|
47
|
+
team: {
|
|
48
|
+
id: any;
|
|
49
|
+
name: any;
|
|
50
|
+
};
|
|
51
|
+
user?: {};
|
|
52
|
+
}, progressCallback: any): Promise<any>;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
import { eventStoreFromConfig as defaultEventStoreFromConfig } from "./node.js";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export function eventStoreFromConfig(db: any, uid: any, config: any, pathValues?: {}): {
|
|
2
|
+
record(eventType: any, payload: any): Promise<string>;
|
|
3
|
+
recordWithId({ type, payload, id }: {
|
|
4
|
+
type: any;
|
|
5
|
+
payload: any;
|
|
6
|
+
id: any;
|
|
7
|
+
}): Promise<void>;
|
|
8
|
+
getProjection(name: any): Promise<any>;
|
|
9
|
+
onProjectionValue(name: any, callback: any, cancelCallback: any): void;
|
|
10
|
+
offProjection(name: any): Promise<void>;
|
|
11
|
+
dispose(): Promise<void>;
|
|
12
|
+
readonly path: any;
|
|
13
|
+
};
|
|
14
|
+
export function eventStore(db: any, uid: any, path: any): {
|
|
15
|
+
record(eventType: any, payload: any): Promise<string>;
|
|
16
|
+
recordWithId({ type, payload, id }: {
|
|
17
|
+
type: any;
|
|
18
|
+
payload: any;
|
|
19
|
+
id: any;
|
|
20
|
+
}): Promise<void>;
|
|
21
|
+
getProjection(name: any): Promise<any>;
|
|
22
|
+
onProjectionValue(name: any, callback: any, cancelCallback: any): void;
|
|
23
|
+
offProjection(name: any): Promise<void>;
|
|
24
|
+
dispose(): Promise<void>;
|
|
25
|
+
readonly path: any;
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function generateRules(argv: any, eventStores: any, rawStores: any): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function listEventStores(_argv: any, stores: any): Promise<void>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export function configureEventStore({ ref, projections, ...rest }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
ref: any;
|
|
4
|
+
projections: any;
|
|
5
|
+
}, { onValueWritten, observe, region, instance }: {
|
|
6
|
+
onValueWritten: any;
|
|
7
|
+
observe: any;
|
|
8
|
+
region: any;
|
|
9
|
+
instance: any;
|
|
10
|
+
}): any;
|
|
11
|
+
export namespace configureEventStore {
|
|
12
|
+
function inject({ onValueWritten, observe, paths, region, instance }: {
|
|
13
|
+
onValueWritten: any;
|
|
14
|
+
observe: any;
|
|
15
|
+
paths: any;
|
|
16
|
+
region: any;
|
|
17
|
+
instance: any;
|
|
18
|
+
}): (eventStoreFactory: any, ...args: any[]) => any;
|
|
19
|
+
}
|
|
20
|
+
export const EVENT_STORE_META: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function refPathToTriggerPath(ref: any): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export function any(...args: any[]): string;
|
|
2
|
+
export function all(...args: any[]): string;
|
|
3
|
+
export function not(x: any): string;
|
|
4
|
+
export const newDataPayloadId: string;
|
|
5
|
+
export const newDataType: string;
|
|
6
|
+
export function teamInviteToEmailMapping({ team: { membership: { path } } }: {
|
|
7
|
+
team: {
|
|
8
|
+
membership: {
|
|
9
|
+
path: any;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
}): string;
|
|
13
|
+
export function assertTeamDoesNotExist({ team: { membership: { path } } }: {
|
|
14
|
+
team: {
|
|
15
|
+
membership: {
|
|
16
|
+
path: any;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
}): string;
|
|
20
|
+
export const assertDoesNotAlreadyExist: "!data.exists()";
|
|
21
|
+
export const assertIAmAuthenticated: "auth.uid !== null";
|
|
22
|
+
export const assertPayloadUidMyUserId: string;
|
|
23
|
+
export const assertMyEmailVerified: "auth.email_verified === true";
|
|
24
|
+
export function assertDataFieldIsMyVerifiedEmail(fieldName: any): string;
|
|
25
|
+
export function assertMyVerifiedEmail(path: any): string;
|
|
26
|
+
export const assertUserIsMe: "$uid == auth.uid";
|
|
27
|
+
export function assertMyUserIdIn(path: any): string;
|
|
28
|
+
export function assertEventIsOfType(...types: any[]): string;
|
|
29
|
+
export function assertIsMyTeam({ team: { membership: { path } } }: {
|
|
30
|
+
team: {
|
|
31
|
+
membership: {
|
|
32
|
+
path: any;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
}): string;
|
|
36
|
+
export function assertMyRoleIsAdmin({ team: { membership: { path } } }: {
|
|
37
|
+
team: {
|
|
38
|
+
membership: {
|
|
39
|
+
path: any;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
}): string;
|
|
43
|
+
export function assertNewDataHas(fieldName: any): string;
|
|
44
|
+
export function assertNewDataDoesNotHave(fieldName: any): string;
|
|
45
|
+
export function assertNewDataHasString(fieldName: any, maxLength?: number, minLength?: number): string;
|
|
46
|
+
export function assertNewDataHasNumber(fieldName: any): string;
|
|
47
|
+
export function assertNewDataHasFieldMatching(fieldName: any, pattern: any): string;
|
|
48
|
+
export function assertNewDataHasHexCharacters(fieldName: any, characterCount: any): string;
|
|
49
|
+
export function assertNewDataHasLowercaseHexCharacters(fieldName: any, characterCount: any): string;
|
|
50
|
+
export function assertNewDataHasUUID(fieldName: any): string;
|
|
51
|
+
export function assertNewDataHasOneOf(fieldName: any, ...values: any[]): string;
|
|
52
|
+
export function assertNewDataFieldDoesNotMatch(fieldName: any, pattern: any): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function updateProjections(incomingEventSnap: any, projectionTransformationPerEvent: any, observe: any, debug?: boolean): Promise<void>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export function explodePathVars(expr: any): any;
|
|
2
|
+
export * from "./configuration/configure-eventStore.js";
|
|
3
|
+
export * from "./configuration/configure-metadata-endpoint.js";
|
|
4
|
+
export * from "./configuration/configure-o11y-store.js";
|
|
5
|
+
export const passThroughView: {
|
|
6
|
+
"?": (view: any, payload: any, { eventId }: {
|
|
7
|
+
eventId: any;
|
|
8
|
+
}) => any;
|
|
9
|
+
};
|
|
10
|
+
export * as userProfile from "./membership/user-profile/store.js";
|
|
11
|
+
export * as teamMembership from "./membership/team-membership/store.js";
|
|
12
|
+
export * as teamDetails from "./membership/team-details/store.js";
|
|
13
|
+
export * as userTeams from "./membership/user-teams/store.js";
|
|
14
|
+
export * as userInvites from "./membership/userInvites/store.js";
|
|
15
|
+
export * as rules from "./configuration/rules.js";
|
|
16
|
+
export * as o11y from "./observability/index.js";
|
|
17
|
+
export { PROJECTIONS, EVENTS } from "../dist/browser/client/event-store.js";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * as userProfile from "./user-profile/store.js";
|
|
2
|
+
export * as teamMembership from "./team-membership/store.js";
|
|
3
|
+
export * as teamDetails from "./team-details/store.js";
|
|
4
|
+
export * as userTeams from "./user-teams/store.js";
|
|
5
|
+
export * as userInvites from "./userInvites/store.js";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export function store(paths: any, schema: any): {
|
|
2
|
+
ref: any;
|
|
3
|
+
projections: {
|
|
4
|
+
current: {
|
|
5
|
+
DETAILS_UPDATED: (view: any, { payload }: {
|
|
6
|
+
payload: any;
|
|
7
|
+
}) => any;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
write: string;
|
|
11
|
+
read: string;
|
|
12
|
+
eventTypes: string[];
|
|
13
|
+
};
|
|
14
|
+
export * from "./events.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function verifyStorePaths(paths: any, schema: any): void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export const BECAME_MEMBER: "BECAME_MEMBER";
|
|
2
|
+
export const BECAME_ADMIN: "BECAME_ADMIN";
|
|
3
|
+
export const LEFT_TEAM: "LEFT_TEAM";
|
|
4
|
+
export const MEMBER_INVITED: "MEMBER_INVITED";
|
|
5
|
+
export const ADMIN_INVITED: "ADMIN_INVITED";
|
|
6
|
+
export const INVITE_ACCEPTED: "INVITE_ACCEPTED";
|
|
7
|
+
export const INVITE_REJECTED: "INVITE_REJECTED";
|
|
8
|
+
export const CREATED_TEAM: "CREATED_TEAM";
|
|
9
|
+
export const eventTypes: string[];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export function resolveInvitationView(payload: any, meta: any): {
|
|
2
|
+
id: any;
|
|
3
|
+
name: any;
|
|
4
|
+
email: any;
|
|
5
|
+
created: any;
|
|
6
|
+
createdBy: any;
|
|
7
|
+
};
|
|
8
|
+
export function resolveUserView({ name, email, createdBy }: {
|
|
9
|
+
name: any;
|
|
10
|
+
email: any;
|
|
11
|
+
createdBy: any;
|
|
12
|
+
}, found: any, meta: any): {
|
|
13
|
+
name: any;
|
|
14
|
+
};
|
|
15
|
+
export function purgeInvited(view: any, key: any): void;
|
|
16
|
+
export function purgeUser(view: any, { uid }: {
|
|
17
|
+
uid: any;
|
|
18
|
+
}): any;
|
|
19
|
+
export function recordInviteInContext(context: any, id: any, data: any): void;
|
|
20
|
+
export function passThrough(x: any): any;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
function BECAME_MEMBER(view: any, { meta, payload }: {
|
|
3
|
+
meta: any;
|
|
4
|
+
payload: any;
|
|
5
|
+
}): any;
|
|
6
|
+
function BECAME_ADMIN(view: any, { meta, payload }: {
|
|
7
|
+
meta: any;
|
|
8
|
+
payload: any;
|
|
9
|
+
}): any;
|
|
10
|
+
function CREATED_TEAM(view: any, { meta, payload }: {
|
|
11
|
+
meta: any;
|
|
12
|
+
payload: any;
|
|
13
|
+
}, context: any): any;
|
|
14
|
+
function INVITE_ACCEPTED(view: any, { meta, payload }: {
|
|
15
|
+
meta: any;
|
|
16
|
+
payload: any;
|
|
17
|
+
}, context: any): any;
|
|
18
|
+
function LEFT_TEAM(view: any, { payload }: {
|
|
19
|
+
payload: any;
|
|
20
|
+
}): any;
|
|
21
|
+
function MEMBER_INVITED(view: any, { meta, payload }: {
|
|
22
|
+
meta: any;
|
|
23
|
+
payload: any;
|
|
24
|
+
}, context: any): any;
|
|
25
|
+
function ADMIN_INVITED(view: any, { meta, payload }: {
|
|
26
|
+
meta: any;
|
|
27
|
+
payload: any;
|
|
28
|
+
}, context: any): any;
|
|
29
|
+
}
|
|
30
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
MEMBER_INVITED: typeof addToMap;
|
|
3
|
+
ADMIN_INVITED: typeof addToMap;
|
|
4
|
+
INVITE_ACCEPTED: typeof removeFromMap;
|
|
5
|
+
INVITE_REJECTED: typeof removeFromMap;
|
|
6
|
+
"?": (x: any) => any;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
9
|
+
declare function addToMap(view: any, { payload }: {
|
|
10
|
+
payload: any;
|
|
11
|
+
}): any;
|
|
12
|
+
declare function removeFromMap(view: any, { payload }: {
|
|
13
|
+
payload: any;
|
|
14
|
+
}): any;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
function BECAME_MEMBER(view: any, { payload }: {
|
|
3
|
+
payload: any;
|
|
4
|
+
}): any;
|
|
5
|
+
function BECAME_ADMIN(view: any, { payload }: {
|
|
6
|
+
payload: any;
|
|
7
|
+
}): any;
|
|
8
|
+
function CREATED_TEAM(view: any, { payload }: {
|
|
9
|
+
payload: any;
|
|
10
|
+
}, context: any): any;
|
|
11
|
+
function INVITE_ACCEPTED(view: any, { payload }: {
|
|
12
|
+
payload: any;
|
|
13
|
+
}, context: any): any;
|
|
14
|
+
function LEFT_TEAM(view: any, { payload }: {
|
|
15
|
+
payload: any;
|
|
16
|
+
}): any;
|
|
17
|
+
function MEMBER_INVITED(view: any, { payload }: {
|
|
18
|
+
payload: any;
|
|
19
|
+
}, context: any): any;
|
|
20
|
+
function ADMIN_INVITED(view: any, { payload }: {
|
|
21
|
+
payload: any;
|
|
22
|
+
}, context: any): any;
|
|
23
|
+
}
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
export function store(paths: any): {
|
|
2
|
+
ref: any;
|
|
3
|
+
projections: {
|
|
4
|
+
details: {
|
|
5
|
+
BECAME_MEMBER: (view: any, { meta, payload }: {
|
|
6
|
+
meta: any;
|
|
7
|
+
payload: any;
|
|
8
|
+
}) => any;
|
|
9
|
+
BECAME_ADMIN: (view: any, { meta, payload }: {
|
|
10
|
+
meta: any;
|
|
11
|
+
payload: any;
|
|
12
|
+
}) => any;
|
|
13
|
+
CREATED_TEAM: (view: any, { meta, payload }: {
|
|
14
|
+
meta: any;
|
|
15
|
+
payload: any;
|
|
16
|
+
}, context: any) => any;
|
|
17
|
+
INVITE_ACCEPTED: (view: any, { meta, payload }: {
|
|
18
|
+
meta: any;
|
|
19
|
+
payload: any;
|
|
20
|
+
}, context: any) => any;
|
|
21
|
+
LEFT_TEAM: (view: any, { payload }: {
|
|
22
|
+
payload: any;
|
|
23
|
+
}) => any;
|
|
24
|
+
MEMBER_INVITED: (view: any, { meta, payload }: {
|
|
25
|
+
meta: any;
|
|
26
|
+
payload: any;
|
|
27
|
+
}, context: any) => any;
|
|
28
|
+
ADMIN_INVITED: (view: any, { meta, payload }: {
|
|
29
|
+
meta: any;
|
|
30
|
+
payload: any;
|
|
31
|
+
}, context: any) => any;
|
|
32
|
+
};
|
|
33
|
+
members: {
|
|
34
|
+
BECAME_MEMBER: (view: any, { payload }: {
|
|
35
|
+
payload: any;
|
|
36
|
+
}) => any;
|
|
37
|
+
BECAME_ADMIN: (view: any, { payload }: {
|
|
38
|
+
payload: any;
|
|
39
|
+
}) => any;
|
|
40
|
+
CREATED_TEAM: (view: any, { payload }: {
|
|
41
|
+
payload: any;
|
|
42
|
+
}, context: any) => any;
|
|
43
|
+
INVITE_ACCEPTED: (view: any, { payload }: {
|
|
44
|
+
payload: any;
|
|
45
|
+
}, context: any) => any;
|
|
46
|
+
LEFT_TEAM: (view: any, { payload }: {
|
|
47
|
+
payload: any;
|
|
48
|
+
}) => any;
|
|
49
|
+
MEMBER_INVITED: (view: any, { payload }: {
|
|
50
|
+
payload: any;
|
|
51
|
+
}, context: any) => any;
|
|
52
|
+
ADMIN_INVITED: (view: any, { payload }: {
|
|
53
|
+
payload: any;
|
|
54
|
+
}, context: any) => any;
|
|
55
|
+
};
|
|
56
|
+
inviteToEmail: {
|
|
57
|
+
MEMBER_INVITED: (view: any, { payload }: {
|
|
58
|
+
payload: any;
|
|
59
|
+
}) => any;
|
|
60
|
+
ADMIN_INVITED: (view: any, { payload }: {
|
|
61
|
+
payload: any;
|
|
62
|
+
}) => any;
|
|
63
|
+
INVITE_ACCEPTED: (view: any, { payload }: {
|
|
64
|
+
payload: any;
|
|
65
|
+
}) => any;
|
|
66
|
+
INVITE_REJECTED: (view: any, { payload }: {
|
|
67
|
+
payload: any;
|
|
68
|
+
}) => any;
|
|
69
|
+
"?": (x: any) => any;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
write: string;
|
|
73
|
+
read: string;
|
|
74
|
+
eventTypes: string[];
|
|
75
|
+
};
|
|
76
|
+
export * from "./events.js";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export function store(paths: any, schema: any): {
|
|
2
|
+
ref: any;
|
|
3
|
+
projections: {
|
|
4
|
+
current: {
|
|
5
|
+
DETAILS_UPDATED: (view: any, { payload }: {
|
|
6
|
+
payload: any;
|
|
7
|
+
}) => any;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
write: string;
|
|
11
|
+
read: string;
|
|
12
|
+
eventTypes: string[];
|
|
13
|
+
};
|
|
14
|
+
export * from "./events.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export function store(paths: any): {
|
|
2
|
+
ref: any;
|
|
3
|
+
projections: {
|
|
4
|
+
current: {
|
|
5
|
+
ADDED_TO_TEAM: (view: any, { payload }: {
|
|
6
|
+
payload: any;
|
|
7
|
+
}) => any;
|
|
8
|
+
LEFT_TEAM: (view: any, { payload }: {
|
|
9
|
+
payload: any;
|
|
10
|
+
}) => any;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
eventTypes: string[];
|
|
14
|
+
read: string;
|
|
15
|
+
write: string;
|
|
16
|
+
};
|
|
17
|
+
export * from "./events.js";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
function INVITED_TO_TEAM(view: any, { meta, payload }: {
|
|
3
|
+
meta: any;
|
|
4
|
+
payload: any;
|
|
5
|
+
}): any;
|
|
6
|
+
function ACCEPTED_INVITATION(view: any, { payload }: {
|
|
7
|
+
payload: any;
|
|
8
|
+
}): any;
|
|
9
|
+
function REJECTED_INVITATION(view: any, { payload }: {
|
|
10
|
+
payload: any;
|
|
11
|
+
}): any;
|
|
12
|
+
}
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export function store(paths: any): {
|
|
2
|
+
ref: any;
|
|
3
|
+
projections: {
|
|
4
|
+
pending: {
|
|
5
|
+
INVITED_TO_TEAM: (view: any, { meta, payload }: {
|
|
6
|
+
meta: any;
|
|
7
|
+
payload: any;
|
|
8
|
+
}) => any;
|
|
9
|
+
ACCEPTED_INVITATION: (view: any, { payload }: {
|
|
10
|
+
payload: any;
|
|
11
|
+
}) => any;
|
|
12
|
+
REJECTED_INVITATION: (view: any, { payload }: {
|
|
13
|
+
payload: any;
|
|
14
|
+
}) => any;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
eventTypes: string[];
|
|
18
|
+
read: string;
|
|
19
|
+
write: string;
|
|
20
|
+
};
|
|
21
|
+
export * from "./events.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export function provider({ trace, projectId, serviceName, log }: {
|
|
2
|
+
trace: any;
|
|
3
|
+
projectId: any;
|
|
4
|
+
serviceName: any;
|
|
5
|
+
log: any;
|
|
6
|
+
}): ({ message, severity, traceId, spanId, timestamp, logData, spanStart, spanEnd, spanAttributes, parentSpanId }: {
|
|
7
|
+
message: any;
|
|
8
|
+
severity: any;
|
|
9
|
+
traceId: any;
|
|
10
|
+
spanId: any;
|
|
11
|
+
timestamp: any;
|
|
12
|
+
logData: any;
|
|
13
|
+
spanStart: any;
|
|
14
|
+
spanEnd: any;
|
|
15
|
+
spanAttributes: any;
|
|
16
|
+
parentSpanId: any;
|
|
17
|
+
}) => Promise<void>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export function schemaAllowsPath(schema: any, path: any): boolean;
|
|
2
|
+
export function deleteByPath(obj: any, path: any): void;
|
|
3
|
+
export function filterBySchema(schema: any, obj: any): {};
|
|
4
|
+
export function patchViewWithSchema({ view, payload, schema }: {
|
|
5
|
+
view: any;
|
|
6
|
+
payload: any;
|
|
7
|
+
schema: any;
|
|
8
|
+
}): any;
|
|
9
|
+
export function checkSchema(schema: any, obj: any, { allowUnknownKeys, requireAllKeys }?: {
|
|
10
|
+
allowUnknownKeys?: boolean;
|
|
11
|
+
requireAllKeys?: boolean;
|
|
12
|
+
}): {
|
|
13
|
+
valid: boolean;
|
|
14
|
+
errors: any[];
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function readJSON(path: any): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function main(commands: any): Promise<void>;
|