graphlit-client 1.0.20250622006 → 1.0.20250622007
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/client.d.ts +1 -0
- package/dist/client.js +3 -0
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
@@ -229,6 +229,7 @@ declare class Graphlit {
|
|
229
229
|
createUser(user: Types.UserInput): Promise<Types.CreateUserMutation>;
|
230
230
|
updateUser(user: Types.UserUpdateInput): Promise<Types.UpdateUserMutation>;
|
231
231
|
deleteUser(id: string): Promise<Types.DeleteUserMutation>;
|
232
|
+
getUserByIdentifier(identifier: string): Promise<Types.GetUserByIdentifierQuery>;
|
232
233
|
getUser(): Promise<Types.GetUserQuery>;
|
233
234
|
queryUsers(filter?: Types.UserFilter): Promise<Types.QueryUsersQuery>;
|
234
235
|
countUsers(filter?: Types.UserFilter): Promise<Types.CountUsersQuery>;
|
package/dist/client.js
CHANGED
@@ -1041,6 +1041,9 @@ class Graphlit {
|
|
1041
1041
|
async deleteUser(id) {
|
1042
1042
|
return this.mutateAndCheckError(Documents.DeleteUser, { id: id });
|
1043
1043
|
}
|
1044
|
+
async getUserByIdentifier(identifier) {
|
1045
|
+
return this.queryAndCheckError(Documents.GetUserByIdentifier, { identifier: identifier });
|
1046
|
+
}
|
1044
1047
|
async getUser() {
|
1045
1048
|
return this.queryAndCheckError(Documents.GetUser, {});
|
1046
1049
|
}
|