@comapeo/core-react 11.0.1 → 11.0.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.
|
@@ -54,8 +54,8 @@ export declare function getProjectRoleQueryKey({ projectId }: {
|
|
|
54
54
|
export declare function getMembersQueryKey({ projectId, includeLeft, }: {
|
|
55
55
|
projectId: string;
|
|
56
56
|
includeLeft?: boolean;
|
|
57
|
-
}): readonly ["@comapeo/core-react", "projects", string, "members", {
|
|
58
|
-
readonly includeLeft: boolean
|
|
57
|
+
}): readonly ["@comapeo/core-react", "projects", string, "members"] | readonly ["@comapeo/core-react", "projects", string, "members", {
|
|
58
|
+
readonly includeLeft: boolean;
|
|
59
59
|
}];
|
|
60
60
|
export declare function getMemberByIdQueryKey({ projectId, deviceId, }: {
|
|
61
61
|
projectId: string;
|
|
@@ -122,13 +122,15 @@ function getProjectRoleQueryKey({ projectId }) {
|
|
|
122
122
|
return [ROOT_QUERY_KEY, 'projects', projectId, 'role'];
|
|
123
123
|
}
|
|
124
124
|
function getMembersQueryKey({ projectId, includeLeft, }) {
|
|
125
|
-
return
|
|
126
|
-
ROOT_QUERY_KEY,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
125
|
+
return includeLeft === undefined
|
|
126
|
+
? [ROOT_QUERY_KEY, 'projects', projectId, 'members']
|
|
127
|
+
: [
|
|
128
|
+
ROOT_QUERY_KEY,
|
|
129
|
+
'projects',
|
|
130
|
+
projectId,
|
|
131
|
+
'members',
|
|
132
|
+
{ includeLeft },
|
|
133
|
+
];
|
|
132
134
|
}
|
|
133
135
|
function getMemberByIdQueryKey({ projectId, deviceId, }) {
|
|
134
136
|
return [ROOT_QUERY_KEY, 'projects', projectId, 'members', deviceId];
|
|
@@ -54,8 +54,8 @@ export declare function getProjectRoleQueryKey({ projectId }: {
|
|
|
54
54
|
export declare function getMembersQueryKey({ projectId, includeLeft, }: {
|
|
55
55
|
projectId: string;
|
|
56
56
|
includeLeft?: boolean;
|
|
57
|
-
}): readonly ["@comapeo/core-react", "projects", string, "members", {
|
|
58
|
-
readonly includeLeft: boolean
|
|
57
|
+
}): readonly ["@comapeo/core-react", "projects", string, "members"] | readonly ["@comapeo/core-react", "projects", string, "members", {
|
|
58
|
+
readonly includeLeft: boolean;
|
|
59
59
|
}];
|
|
60
60
|
export declare function getMemberByIdQueryKey({ projectId, deviceId, }: {
|
|
61
61
|
projectId: string;
|
|
@@ -97,13 +97,15 @@ export function getProjectRoleQueryKey({ projectId }) {
|
|
|
97
97
|
return [ROOT_QUERY_KEY, 'projects', projectId, 'role'];
|
|
98
98
|
}
|
|
99
99
|
export function getMembersQueryKey({ projectId, includeLeft, }) {
|
|
100
|
-
return
|
|
101
|
-
ROOT_QUERY_KEY,
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
100
|
+
return includeLeft === undefined
|
|
101
|
+
? [ROOT_QUERY_KEY, 'projects', projectId, 'members']
|
|
102
|
+
: [
|
|
103
|
+
ROOT_QUERY_KEY,
|
|
104
|
+
'projects',
|
|
105
|
+
projectId,
|
|
106
|
+
'members',
|
|
107
|
+
{ includeLeft },
|
|
108
|
+
];
|
|
107
109
|
}
|
|
108
110
|
export function getMemberByIdQueryKey({ projectId, deviceId, }) {
|
|
109
111
|
return [ROOT_QUERY_KEY, 'projects', projectId, 'members', deviceId];
|