"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DATA_APP_TEMPLATES = exports.isAppVersionInProgress = exports.APP_VERSION_TERMINAL_STATUSES = exports.APP_VERSION_STAGE_ORDER = void 0;
/**
 * Ordered pipeline stages. Index position determines progression — used to
 * skip completed stages when a build is retried after a worker crash.
 * 'ready' is included as the final stage; 'error' is terminal but not a
 * stage (not reachable through normal progression).
 */
exports.APP_VERSION_STAGE_ORDER = [
    'pending',
    'sandbox',
    'catalog',
    'generating',
    'building',
    'packaging',
    'ready',
];
exports.APP_VERSION_TERMINAL_STATUSES = ['ready', 'error'];
const isAppVersionInProgress = (status) => !exports.APP_VERSION_TERMINAL_STATUSES.includes(status);
exports.isAppVersionInProgress = isAppVersionInProgress;
exports.DATA_APP_TEMPLATES = [
    'dashboard',
    'slideshow',
    'pdf',
    'custom',
];
//# sourceMappingURL=types.js.map