Update
This commit is contained in:
1 parent
0c14a3acbd
commit
2105a0c5f7
11 files changed
+442
-86
No files matched your search
+12
-1
@@ -32,6 +32,7 @@ type CreateSessionPayload = {
|
||||
projectTeamspaceEntryId?: string | null;
|
||||
billingStatus?: BillingStatus;
|
||||
createZammadArticle?: boolean;
|
||||
zammadArticleTypeId?: number;
|
||||
};
|
||||
|
||||
type DeleteSessionResult = {
|
||||
@@ -46,6 +47,15 @@ type DeleteSessionResult = {
|
||||
};
|
||||
};
|
||||
|
||||
export type CreateSessionResult = {
|
||||
zammadArticle?: {
|
||||
requested: boolean;
|
||||
status: "not_requested" | "sent" | "queued";
|
||||
error: string | null;
|
||||
articleId: number | null;
|
||||
};
|
||||
};
|
||||
|
||||
export type ZammadSyncExistingFields = {
|
||||
title: boolean;
|
||||
organization: boolean;
|
||||
@@ -205,6 +215,7 @@ export function updateCurrentUser(payload: {
|
||||
zammadSessionNoteDefaultEnabled?: boolean;
|
||||
zammadTimeUnitRoundingEnabled?: boolean;
|
||||
zammadTimeUnitRoundingMinutes?: number;
|
||||
zammadArticleTypeId?: number;
|
||||
}) {
|
||||
return request<{ user: AuthUser }>("/api/auth/me", {
|
||||
method: "PATCH",
|
||||
@@ -682,7 +693,7 @@ export function deleteTodo(todoId: string) {
|
||||
}
|
||||
|
||||
export function createSession(payload: CreateSessionPayload) {
|
||||
return request("/api/sessions", {
|
||||
return request<CreateSessionResult>("/api/sessions", {
|
||||
method: "POST",
|
||||
body: JSON.stringify(payload)
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user