export enum SHOPIFY_BULK_JOB_STATUS {
    CREATED = 'CREATED',
    SHOPIFY_BULK_OP_IN_PROGRESS = 'SHOPIFY_BULK_OP_IN_PROGRESS',
    SHOPIFY_BULK_OP_ERROR = 'SHOPIFY_BULK_OP_ERROR',
    SHOPIFY_BULK_OP_COMPLETED = 'SHOPIFY_BULK_OP_COMPLETED',
    SHOPIFY_BULK_OP_DOWNLOADING = 'SHOPIFY_BULK_OP_DOWNLOADING',
    SHOPIFY_BULK_OP_DOWNLOADED = 'SHOPIFY_BULK_OP_DOWNLOADED',
    CREATING_ENTITIES = 'CREATING_ENTITIES',
    COMPLETE = 'COMPLETE',
    ERROR = 'ERROR',
  }

export const IN_PROGRESS_SHOPIFY_BULK_JOB_STATUSES = [
  SHOPIFY_BULK_JOB_STATUS.SHOPIFY_BULK_OP_IN_PROGRESS,
  SHOPIFY_BULK_JOB_STATUS.SHOPIFY_BULK_OP_ERROR,
  SHOPIFY_BULK_JOB_STATUS.SHOPIFY_BULK_OP_COMPLETED,
  SHOPIFY_BULK_JOB_STATUS.SHOPIFY_BULK_OP_DOWNLOADING,
  SHOPIFY_BULK_JOB_STATUS.SHOPIFY_BULK_OP_DOWNLOADED,
  SHOPIFY_BULK_JOB_STATUS.CREATING_ENTITIES,
] as const;
export type IN_PROGRESS_SHOPIFY_BULK_JOB_STATUS = typeof IN_PROGRESS_SHOPIFY_BULK_JOB_STATUSES[number];

export const VALID_FOR_EXECUTION_STATUSES = [...IN_PROGRESS_SHOPIFY_BULK_JOB_STATUSES, SHOPIFY_BULK_JOB_STATUS.CREATED] as const;

export const ERROR_SHOPIFY_BULK_JOB_STATUSES = [
  SHOPIFY_BULK_JOB_STATUS.SHOPIFY_BULK_OP_ERROR,
  SHOPIFY_BULK_JOB_STATUS.ERROR,
] as const;
export type ERROR_SHOPIFY_BULK_JOB_STATUS = typeof ERROR_SHOPIFY_BULK_JOB_STATUSES[number];