2024-11-27 12:06:59 +01:00
|
|
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
|
|
|
2024-06-27 22:53:51 +03:00
|
|
|
import type { CancelablePromise } from "./core/CancelablePromise"
|
|
|
|
import { OpenAPI } from "./core/OpenAPI"
|
|
|
|
import { request as __request } from "./core/request"
|
|
|
|
import type {
|
2024-11-27 12:06:59 +01:00
|
|
|
ReadItemsData,
|
|
|
|
ReadItemsResponse,
|
|
|
|
CreateItemData,
|
|
|
|
CreateItemResponse,
|
|
|
|
ReadItemData,
|
|
|
|
ReadItemResponse,
|
|
|
|
UpdateItemData,
|
|
|
|
UpdateItemResponse,
|
|
|
|
DeleteItemData,
|
|
|
|
DeleteItemResponse,
|
|
|
|
LoginAccessTokenData,
|
|
|
|
LoginAccessTokenResponse,
|
|
|
|
TestTokenResponse,
|
|
|
|
RecoverPasswordData,
|
|
|
|
RecoverPasswordResponse,
|
|
|
|
ResetPasswordData,
|
|
|
|
ResetPasswordResponse,
|
|
|
|
RecoverPasswordHtmlContentData,
|
|
|
|
RecoverPasswordHtmlContentResponse,
|
|
|
|
ReadUsersData,
|
|
|
|
ReadUsersResponse,
|
|
|
|
CreateUserData,
|
|
|
|
CreateUserResponse,
|
|
|
|
ReadUserMeResponse,
|
|
|
|
DeleteUserMeResponse,
|
|
|
|
UpdateUserMeData,
|
|
|
|
UpdateUserMeResponse,
|
|
|
|
UpdatePasswordMeData,
|
|
|
|
UpdatePasswordMeResponse,
|
|
|
|
RegisterUserData,
|
|
|
|
RegisterUserResponse,
|
|
|
|
ReadUserByIdData,
|
|
|
|
ReadUserByIdResponse,
|
|
|
|
UpdateUserData,
|
|
|
|
UpdateUserResponse,
|
|
|
|
DeleteUserData,
|
|
|
|
DeleteUserResponse,
|
|
|
|
TestEmailData,
|
|
|
|
TestEmailResponse,
|
|
|
|
HealthCheckResponse,
|
|
|
|
} from "./types.gen"
|
2024-04-03 16:40:33 -05:00
|
|
|
|
2024-11-27 12:06:59 +01:00
|
|
|
export class ItemsService {
|
|
|
|
/**
|
|
|
|
* Read Items
|
|
|
|
* Retrieve items.
|
|
|
|
* @param data The data for the request.
|
|
|
|
* @param data.skip
|
|
|
|
* @param data.limit
|
|
|
|
* @returns ItemsPublic Successful Response
|
|
|
|
* @throws ApiError
|
|
|
|
*/
|
|
|
|
public static readItems(
|
|
|
|
data: ReadItemsData = {},
|
|
|
|
): CancelablePromise<ReadItemsResponse> {
|
|
|
|
return __request(OpenAPI, {
|
|
|
|
method: "GET",
|
|
|
|
url: "/api/v1/items/",
|
|
|
|
query: {
|
|
|
|
skip: data.skip,
|
|
|
|
limit: data.limit,
|
|
|
|
},
|
|
|
|
errors: {
|
|
|
|
422: "Validation Error",
|
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Create Item
|
|
|
|
* Create new item.
|
|
|
|
* @param data The data for the request.
|
|
|
|
* @param data.requestBody
|
|
|
|
* @returns ItemPublic Successful Response
|
|
|
|
* @throws ApiError
|
|
|
|
*/
|
|
|
|
public static createItem(
|
|
|
|
data: CreateItemData,
|
|
|
|
): CancelablePromise<CreateItemResponse> {
|
|
|
|
return __request(OpenAPI, {
|
|
|
|
method: "POST",
|
|
|
|
url: "/api/v1/items/",
|
|
|
|
body: data.requestBody,
|
|
|
|
mediaType: "application/json",
|
|
|
|
errors: {
|
|
|
|
422: "Validation Error",
|
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Read Item
|
|
|
|
* Get item by ID.
|
|
|
|
* @param data The data for the request.
|
|
|
|
* @param data.id
|
|
|
|
* @returns ItemPublic Successful Response
|
|
|
|
* @throws ApiError
|
|
|
|
*/
|
|
|
|
public static readItem(
|
|
|
|
data: ReadItemData,
|
|
|
|
): CancelablePromise<ReadItemResponse> {
|
|
|
|
return __request(OpenAPI, {
|
|
|
|
method: "GET",
|
|
|
|
url: "/api/v1/items/{id}",
|
|
|
|
path: {
|
|
|
|
id: data.id,
|
|
|
|
},
|
|
|
|
errors: {
|
|
|
|
422: "Validation Error",
|
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Update Item
|
|
|
|
* Update an item.
|
|
|
|
* @param data The data for the request.
|
|
|
|
* @param data.id
|
|
|
|
* @param data.requestBody
|
|
|
|
* @returns ItemPublic Successful Response
|
|
|
|
* @throws ApiError
|
|
|
|
*/
|
|
|
|
public static updateItem(
|
|
|
|
data: UpdateItemData,
|
|
|
|
): CancelablePromise<UpdateItemResponse> {
|
|
|
|
return __request(OpenAPI, {
|
|
|
|
method: "PUT",
|
|
|
|
url: "/api/v1/items/{id}",
|
|
|
|
path: {
|
|
|
|
id: data.id,
|
|
|
|
},
|
|
|
|
body: data.requestBody,
|
|
|
|
mediaType: "application/json",
|
|
|
|
errors: {
|
|
|
|
422: "Validation Error",
|
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Delete Item
|
|
|
|
* Delete an item.
|
|
|
|
* @param data The data for the request.
|
|
|
|
* @param data.id
|
|
|
|
* @returns Message Successful Response
|
|
|
|
* @throws ApiError
|
|
|
|
*/
|
|
|
|
public static deleteItem(
|
|
|
|
data: DeleteItemData,
|
|
|
|
): CancelablePromise<DeleteItemResponse> {
|
|
|
|
return __request(OpenAPI, {
|
|
|
|
method: "DELETE",
|
|
|
|
url: "/api/v1/items/{id}",
|
|
|
|
path: {
|
|
|
|
id: data.id,
|
|
|
|
},
|
|
|
|
errors: {
|
|
|
|
422: "Validation Error",
|
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|
2024-06-27 22:53:51 +03:00
|
|
|
}
|
2024-04-03 16:40:33 -05:00
|
|
|
|
|
|
|
export class LoginService {
|
2024-06-27 22:53:51 +03:00
|
|
|
/**
|
|
|
|
* Login Access Token
|
|
|
|
* OAuth2 compatible token login, get an access token for future requests
|
2024-11-27 12:06:59 +01:00
|
|
|
* @param data The data for the request.
|
|
|
|
* @param data.formData
|
2024-06-27 22:53:51 +03:00
|
|
|
* @returns Token Successful Response
|
|
|
|
* @throws ApiError
|
|
|
|
*/
|
|
|
|
public static loginAccessToken(
|
2024-11-27 12:06:59 +01:00
|
|
|
data: LoginAccessTokenData,
|
|
|
|
): CancelablePromise<LoginAccessTokenResponse> {
|
2024-06-27 22:53:51 +03:00
|
|
|
return __request(OpenAPI, {
|
|
|
|
method: "POST",
|
|
|
|
url: "/api/v1/login/access-token",
|
2024-11-27 12:06:59 +01:00
|
|
|
formData: data.formData,
|
2024-06-27 22:53:51 +03:00
|
|
|
mediaType: "application/x-www-form-urlencoded",
|
|
|
|
errors: {
|
2024-11-27 12:06:59 +01:00
|
|
|
422: "Validation Error",
|
2024-06-27 22:53:51 +03:00
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Test Token
|
|
|
|
* Test access token
|
|
|
|
* @returns UserPublic Successful Response
|
|
|
|
* @throws ApiError
|
|
|
|
*/
|
2024-11-27 12:06:59 +01:00
|
|
|
public static testToken(): CancelablePromise<TestTokenResponse> {
|
2024-06-27 22:53:51 +03:00
|
|
|
return __request(OpenAPI, {
|
|
|
|
method: "POST",
|
|
|
|
url: "/api/v1/login/test-token",
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Recover Password
|
|
|
|
* Password Recovery
|
2024-11-27 12:06:59 +01:00
|
|
|
* @param data The data for the request.
|
|
|
|
* @param data.email
|
2024-06-27 22:53:51 +03:00
|
|
|
* @returns Message Successful Response
|
|
|
|
* @throws ApiError
|
|
|
|
*/
|
|
|
|
public static recoverPassword(
|
2024-11-27 12:06:59 +01:00
|
|
|
data: RecoverPasswordData,
|
|
|
|
): CancelablePromise<RecoverPasswordResponse> {
|
2024-06-27 22:53:51 +03:00
|
|
|
return __request(OpenAPI, {
|
|
|
|
method: "POST",
|
|
|
|
url: "/api/v1/password-recovery/{email}",
|
|
|
|
path: {
|
2024-11-27 12:06:59 +01:00
|
|
|
email: data.email,
|
2024-06-27 22:53:51 +03:00
|
|
|
},
|
|
|
|
errors: {
|
2024-11-27 12:06:59 +01:00
|
|
|
422: "Validation Error",
|
2024-06-27 22:53:51 +03:00
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reset Password
|
|
|
|
* Reset password
|
2024-11-27 12:06:59 +01:00
|
|
|
* @param data The data for the request.
|
|
|
|
* @param data.requestBody
|
2024-06-27 22:53:51 +03:00
|
|
|
* @returns Message Successful Response
|
|
|
|
* @throws ApiError
|
|
|
|
*/
|
|
|
|
public static resetPassword(
|
2024-11-27 12:06:59 +01:00
|
|
|
data: ResetPasswordData,
|
|
|
|
): CancelablePromise<ResetPasswordResponse> {
|
2024-06-27 22:53:51 +03:00
|
|
|
return __request(OpenAPI, {
|
|
|
|
method: "POST",
|
|
|
|
url: "/api/v1/reset-password/",
|
2024-11-27 12:06:59 +01:00
|
|
|
body: data.requestBody,
|
2024-06-27 22:53:51 +03:00
|
|
|
mediaType: "application/json",
|
|
|
|
errors: {
|
2024-11-27 12:06:59 +01:00
|
|
|
422: "Validation Error",
|
2024-06-27 22:53:51 +03:00
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Recover Password Html Content
|
|
|
|
* HTML Content for Password Recovery
|
2024-11-27 12:06:59 +01:00
|
|
|
* @param data The data for the request.
|
|
|
|
* @param data.email
|
2024-06-27 22:53:51 +03:00
|
|
|
* @returns string Successful Response
|
|
|
|
* @throws ApiError
|
|
|
|
*/
|
|
|
|
public static recoverPasswordHtmlContent(
|
2024-11-27 12:06:59 +01:00
|
|
|
data: RecoverPasswordHtmlContentData,
|
|
|
|
): CancelablePromise<RecoverPasswordHtmlContentResponse> {
|
2024-06-27 22:53:51 +03:00
|
|
|
return __request(OpenAPI, {
|
|
|
|
method: "POST",
|
|
|
|
url: "/api/v1/password-recovery-html-content/{email}",
|
|
|
|
path: {
|
2024-11-27 12:06:59 +01:00
|
|
|
email: data.email,
|
2024-06-27 22:53:51 +03:00
|
|
|
},
|
|
|
|
errors: {
|
2024-11-27 12:06:59 +01:00
|
|
|
422: "Validation Error",
|
2024-06-27 22:53:51 +03:00
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|
2024-04-03 16:40:33 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
export class UsersService {
|
2024-06-27 22:53:51 +03:00
|
|
|
/**
|
|
|
|
* Read Users
|
|
|
|
* Retrieve users.
|
2024-11-27 12:06:59 +01:00
|
|
|
* @param data The data for the request.
|
|
|
|
* @param data.skip
|
|
|
|
* @param data.limit
|
2024-06-27 22:53:51 +03:00
|
|
|
* @returns UsersPublic Successful Response
|
|
|
|
* @throws ApiError
|
|
|
|
*/
|
|
|
|
public static readUsers(
|
2024-11-27 12:06:59 +01:00
|
|
|
data: ReadUsersData = {},
|
|
|
|
): CancelablePromise<ReadUsersResponse> {
|
2024-06-27 22:53:51 +03:00
|
|
|
return __request(OpenAPI, {
|
|
|
|
method: "GET",
|
|
|
|
url: "/api/v1/users/",
|
|
|
|
query: {
|
2024-11-27 12:06:59 +01:00
|
|
|
skip: data.skip,
|
|
|
|
limit: data.limit,
|
2024-06-27 22:53:51 +03:00
|
|
|
},
|
|
|
|
errors: {
|
2024-11-27 12:06:59 +01:00
|
|
|
422: "Validation Error",
|
2024-06-27 22:53:51 +03:00
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Create User
|
|
|
|
* Create new user.
|
2024-11-27 12:06:59 +01:00
|
|
|
* @param data The data for the request.
|
|
|
|
* @param data.requestBody
|
2024-06-27 22:53:51 +03:00
|
|
|
* @returns UserPublic Successful Response
|
|
|
|
* @throws ApiError
|
|
|
|
*/
|
|
|
|
public static createUser(
|
2024-11-27 12:06:59 +01:00
|
|
|
data: CreateUserData,
|
|
|
|
): CancelablePromise<CreateUserResponse> {
|
2024-06-27 22:53:51 +03:00
|
|
|
return __request(OpenAPI, {
|
|
|
|
method: "POST",
|
|
|
|
url: "/api/v1/users/",
|
2024-11-27 12:06:59 +01:00
|
|
|
body: data.requestBody,
|
2024-06-27 22:53:51 +03:00
|
|
|
mediaType: "application/json",
|
|
|
|
errors: {
|
2024-11-27 12:06:59 +01:00
|
|
|
422: "Validation Error",
|
2024-06-27 22:53:51 +03:00
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Read User Me
|
|
|
|
* Get current user.
|
|
|
|
* @returns UserPublic Successful Response
|
|
|
|
* @throws ApiError
|
|
|
|
*/
|
2024-11-27 12:06:59 +01:00
|
|
|
public static readUserMe(): CancelablePromise<ReadUserMeResponse> {
|
2024-06-27 22:53:51 +03:00
|
|
|
return __request(OpenAPI, {
|
|
|
|
method: "GET",
|
|
|
|
url: "/api/v1/users/me",
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Delete User Me
|
|
|
|
* Delete own user.
|
|
|
|
* @returns Message Successful Response
|
|
|
|
* @throws ApiError
|
|
|
|
*/
|
2024-11-27 12:06:59 +01:00
|
|
|
public static deleteUserMe(): CancelablePromise<DeleteUserMeResponse> {
|
2024-06-27 22:53:51 +03:00
|
|
|
return __request(OpenAPI, {
|
|
|
|
method: "DELETE",
|
|
|
|
url: "/api/v1/users/me",
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Update User Me
|
|
|
|
* Update own user.
|
2024-11-27 12:06:59 +01:00
|
|
|
* @param data The data for the request.
|
|
|
|
* @param data.requestBody
|
2024-06-27 22:53:51 +03:00
|
|
|
* @returns UserPublic Successful Response
|
|
|
|
* @throws ApiError
|
|
|
|
*/
|
|
|
|
public static updateUserMe(
|
2024-11-27 12:06:59 +01:00
|
|
|
data: UpdateUserMeData,
|
|
|
|
): CancelablePromise<UpdateUserMeResponse> {
|
2024-06-27 22:53:51 +03:00
|
|
|
return __request(OpenAPI, {
|
|
|
|
method: "PATCH",
|
|
|
|
url: "/api/v1/users/me",
|
2024-11-27 12:06:59 +01:00
|
|
|
body: data.requestBody,
|
2024-06-27 22:53:51 +03:00
|
|
|
mediaType: "application/json",
|
|
|
|
errors: {
|
2024-11-27 12:06:59 +01:00
|
|
|
422: "Validation Error",
|
2024-06-27 22:53:51 +03:00
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Update Password Me
|
|
|
|
* Update own password.
|
2024-11-27 12:06:59 +01:00
|
|
|
* @param data The data for the request.
|
|
|
|
* @param data.requestBody
|
2024-06-27 22:53:51 +03:00
|
|
|
* @returns Message Successful Response
|
|
|
|
* @throws ApiError
|
|
|
|
*/
|
|
|
|
public static updatePasswordMe(
|
2024-11-27 12:06:59 +01:00
|
|
|
data: UpdatePasswordMeData,
|
|
|
|
): CancelablePromise<UpdatePasswordMeResponse> {
|
2024-06-27 22:53:51 +03:00
|
|
|
return __request(OpenAPI, {
|
|
|
|
method: "PATCH",
|
|
|
|
url: "/api/v1/users/me/password",
|
2024-11-27 12:06:59 +01:00
|
|
|
body: data.requestBody,
|
2024-06-27 22:53:51 +03:00
|
|
|
mediaType: "application/json",
|
|
|
|
errors: {
|
2024-11-27 12:06:59 +01:00
|
|
|
422: "Validation Error",
|
2024-06-27 22:53:51 +03:00
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Register User
|
|
|
|
* Create new user without the need to be logged in.
|
2024-11-27 12:06:59 +01:00
|
|
|
* @param data The data for the request.
|
|
|
|
* @param data.requestBody
|
2024-06-27 22:53:51 +03:00
|
|
|
* @returns UserPublic Successful Response
|
|
|
|
* @throws ApiError
|
|
|
|
*/
|
|
|
|
public static registerUser(
|
2024-11-27 12:06:59 +01:00
|
|
|
data: RegisterUserData,
|
|
|
|
): CancelablePromise<RegisterUserResponse> {
|
2024-06-27 22:53:51 +03:00
|
|
|
return __request(OpenAPI, {
|
|
|
|
method: "POST",
|
|
|
|
url: "/api/v1/users/signup",
|
2024-11-27 12:06:59 +01:00
|
|
|
body: data.requestBody,
|
2024-06-27 22:53:51 +03:00
|
|
|
mediaType: "application/json",
|
|
|
|
errors: {
|
2024-11-27 12:06:59 +01:00
|
|
|
422: "Validation Error",
|
2024-06-27 22:53:51 +03:00
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Read User By Id
|
|
|
|
* Get a specific user by id.
|
2024-11-27 12:06:59 +01:00
|
|
|
* @param data The data for the request.
|
|
|
|
* @param data.userId
|
2024-06-27 22:53:51 +03:00
|
|
|
* @returns UserPublic Successful Response
|
|
|
|
* @throws ApiError
|
|
|
|
*/
|
|
|
|
public static readUserById(
|
2024-11-27 12:06:59 +01:00
|
|
|
data: ReadUserByIdData,
|
|
|
|
): CancelablePromise<ReadUserByIdResponse> {
|
2024-06-27 22:53:51 +03:00
|
|
|
return __request(OpenAPI, {
|
|
|
|
method: "GET",
|
|
|
|
url: "/api/v1/users/{user_id}",
|
|
|
|
path: {
|
2024-11-27 12:06:59 +01:00
|
|
|
user_id: data.userId,
|
2024-06-27 22:53:51 +03:00
|
|
|
},
|
|
|
|
errors: {
|
2024-11-27 12:06:59 +01:00
|
|
|
422: "Validation Error",
|
2024-06-27 22:53:51 +03:00
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Update User
|
|
|
|
* Update a user.
|
2024-11-27 12:06:59 +01:00
|
|
|
* @param data The data for the request.
|
|
|
|
* @param data.userId
|
|
|
|
* @param data.requestBody
|
2024-06-27 22:53:51 +03:00
|
|
|
* @returns UserPublic Successful Response
|
|
|
|
* @throws ApiError
|
|
|
|
*/
|
|
|
|
public static updateUser(
|
2024-11-27 12:06:59 +01:00
|
|
|
data: UpdateUserData,
|
|
|
|
): CancelablePromise<UpdateUserResponse> {
|
2024-06-27 22:53:51 +03:00
|
|
|
return __request(OpenAPI, {
|
|
|
|
method: "PATCH",
|
|
|
|
url: "/api/v1/users/{user_id}",
|
|
|
|
path: {
|
2024-11-27 12:06:59 +01:00
|
|
|
user_id: data.userId,
|
2024-06-27 22:53:51 +03:00
|
|
|
},
|
2024-11-27 12:06:59 +01:00
|
|
|
body: data.requestBody,
|
2024-06-27 22:53:51 +03:00
|
|
|
mediaType: "application/json",
|
|
|
|
errors: {
|
2024-11-27 12:06:59 +01:00
|
|
|
422: "Validation Error",
|
2024-06-27 22:53:51 +03:00
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Delete User
|
|
|
|
* Delete a user.
|
2024-11-27 12:06:59 +01:00
|
|
|
* @param data The data for the request.
|
|
|
|
* @param data.userId
|
2024-06-27 22:53:51 +03:00
|
|
|
* @returns Message Successful Response
|
|
|
|
* @throws ApiError
|
|
|
|
*/
|
2024-11-27 12:06:59 +01:00
|
|
|
public static deleteUser(
|
|
|
|
data: DeleteUserData,
|
|
|
|
): CancelablePromise<DeleteUserResponse> {
|
2024-06-27 22:53:51 +03:00
|
|
|
return __request(OpenAPI, {
|
|
|
|
method: "DELETE",
|
|
|
|
url: "/api/v1/users/{user_id}",
|
|
|
|
path: {
|
2024-11-27 12:06:59 +01:00
|
|
|
user_id: data.userId,
|
2024-06-27 22:53:51 +03:00
|
|
|
},
|
|
|
|
errors: {
|
2024-11-27 12:06:59 +01:00
|
|
|
422: "Validation Error",
|
2024-06-27 22:53:51 +03:00
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|
2024-04-03 16:40:33 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
export class UtilsService {
|
2024-06-27 22:53:51 +03:00
|
|
|
/**
|
|
|
|
* Test Email
|
|
|
|
* Test emails.
|
2024-11-27 12:06:59 +01:00
|
|
|
* @param data The data for the request.
|
|
|
|
* @param data.emailTo
|
2024-06-27 22:53:51 +03:00
|
|
|
* @returns Message Successful Response
|
|
|
|
* @throws ApiError
|
|
|
|
*/
|
2024-11-27 12:06:59 +01:00
|
|
|
public static testEmail(
|
|
|
|
data: TestEmailData,
|
|
|
|
): CancelablePromise<TestEmailResponse> {
|
2024-06-27 22:53:51 +03:00
|
|
|
return __request(OpenAPI, {
|
|
|
|
method: "POST",
|
|
|
|
url: "/api/v1/utils/test-email/",
|
|
|
|
query: {
|
2024-11-27 12:06:59 +01:00
|
|
|
email_to: data.emailTo,
|
2024-06-27 22:53:51 +03:00
|
|
|
},
|
|
|
|
errors: {
|
2024-11-27 12:06:59 +01:00
|
|
|
422: "Validation Error",
|
2024-06-27 22:53:51 +03:00
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|
2024-09-12 15:21:24 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Health Check
|
|
|
|
* @returns boolean Successful Response
|
|
|
|
* @throws ApiError
|
|
|
|
*/
|
2024-11-27 12:06:59 +01:00
|
|
|
public static healthCheck(): CancelablePromise<HealthCheckResponse> {
|
2024-09-12 15:21:24 +02:00
|
|
|
return __request(OpenAPI, {
|
|
|
|
method: "GET",
|
|
|
|
url: "/api/v1/utils/health-check/",
|
|
|
|
})
|
|
|
|
}
|
2024-04-03 16:40:33 -05:00
|
|
|
}
|