/**
 * Generated by orval v6.31.0 🍺
 * Do not edit manually.
 * Hub Resources Service
 * OpenAPI spec version: 0.0.1
 */
import { customClient } from "../custom-client";
export var ResourceSortOrder;
(function (ResourceSortOrder) {
    ResourceSortOrder["asc"] = "asc";
    ResourceSortOrder["desc"] = "desc";
})(ResourceSortOrder || (ResourceSortOrder = {}));
export var ResourceSort;
(function (ResourceSort) {
    ResourceSort["createdAt"] = "createdAt";
    ResourceSort["updatedAt"] = "updatedAt";
})(ResourceSort || (ResourceSort = {}));
export var AllowedResourceEntityType;
(function (AllowedResourceEntityType) {
    AllowedResourceEntityType["event"] = "event";
})(AllowedResourceEntityType || (AllowedResourceEntityType = {}));
export var ResourceStatus;
(function (ResourceStatus) {
    ResourceStatus["PENDING"] = "PENDING";
    ResourceStatus["UPLOADED"] = "UPLOADED";
    ResourceStatus["FAILED"] = "FAILED";
})(ResourceStatus || (ResourceStatus = {}));
/**
 * MIME type of the resource
 */
export var ICreateResourceMimeType;
(function (ICreateResourceMimeType) {
    ICreateResourceMimeType["image/jpeg"] = "image/jpeg";
    ICreateResourceMimeType["image/png"] = "image/png";
    ICreateResourceMimeType["image/webp"] = "image/webp";
})(ICreateResourceMimeType || (ICreateResourceMimeType = {}));
/**
 * Type of entity associated with the resource
 */
export var ICreateResourceEntityType;
(function (ICreateResourceEntityType) {
    ICreateResourceEntityType["event"] = "event";
})(ICreateResourceEntityType || (ICreateResourceEntityType = {}));
/**
 * Create a new resource.
 */
export const createResource = (iCreateResource, options) => {
    return customClient({
        url: `/api/resources/v1/resources/init`,
        method: "POST",
        headers: { "Content-Type": "application/json" },
        data: iCreateResource,
    }, options);
};
/**
 * Search for resources matching request criteria.
 */
export const searchResources = (params, options) => {
    return customClient({ url: `/api/resources/v1/resources`, method: "GET", params }, options);
};
/**
 * Get a single resource.
 */
export const getResource = (id, options) => {
    return customClient({ url: `/api/resources/v1/resources/${id}`, method: "GET" }, options);
};
/**
 * Update an existing resource.
 */
export const updateResource = (id, updateResourceDto, options) => {
    return customClient({
        url: `/api/resources/v1/resources/${id}`,
        method: "PATCH",
        headers: { "Content-Type": "application/json" },
        data: updateResourceDto,
    }, options);
};
/**
 * Delete an existing resource.
 */
export const deleteResource = (id, options) => {
    return customClient({ url: `/api/resources/v1/resources/${id}`, method: "DELETE" }, options);
};
//# sourceMappingURL=orval-resources.js.map