"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.2.0-rc5
 * Contact: hello@goauthentik.io
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfGlobalTaskStatus = instanceOfGlobalTaskStatus;
exports.GlobalTaskStatusFromJSON = GlobalTaskStatusFromJSON;
exports.GlobalTaskStatusFromJSONTyped = GlobalTaskStatusFromJSONTyped;
exports.GlobalTaskStatusToJSON = GlobalTaskStatusToJSON;
exports.GlobalTaskStatusToJSONTyped = GlobalTaskStatusToJSONTyped;
/**
 * Check if a given object implements the GlobalTaskStatus interface.
 */
function instanceOfGlobalTaskStatus(value) {
    if (!('queued' in value) || value['queued'] === undefined)
        return false;
    if (!('consumed' in value) || value['consumed'] === undefined)
        return false;
    if (!('preprocess' in value) || value['preprocess'] === undefined)
        return false;
    if (!('running' in value) || value['running'] === undefined)
        return false;
    if (!('postprocess' in value) || value['postprocess'] === undefined)
        return false;
    if (!('rejected' in value) || value['rejected'] === undefined)
        return false;
    if (!('done' in value) || value['done'] === undefined)
        return false;
    if (!('info' in value) || value['info'] === undefined)
        return false;
    if (!('warning' in value) || value['warning'] === undefined)
        return false;
    if (!('error' in value) || value['error'] === undefined)
        return false;
    return true;
}
function GlobalTaskStatusFromJSON(json) {
    return GlobalTaskStatusFromJSONTyped(json, false);
}
function GlobalTaskStatusFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'queued': json['queued'],
        'consumed': json['consumed'],
        'preprocess': json['preprocess'],
        'running': json['running'],
        'postprocess': json['postprocess'],
        'rejected': json['rejected'],
        'done': json['done'],
        'info': json['info'],
        'warning': json['warning'],
        'error': json['error'],
    };
}
function GlobalTaskStatusToJSON(json) {
    return GlobalTaskStatusToJSONTyped(json, false);
}
function GlobalTaskStatusToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {};
}
//# sourceMappingURL=GlobalTaskStatus.js.map