import { describe, expect, it } from 'vitest';
import * as workflows from '../workflows/index.js';
import * as activities from '../activities/index.js';

describe('temporal worker registration', () => {
  it('exports slaTicketWorkflow from workflow index', () => {
    expect(workflows.slaTicketWorkflow).toBeDefined();
  });

  it('exports ninjaOneProactiveTokenRefreshWorkflow from workflow index', () => {
    expect(workflows.ninjaOneProactiveTokenRefreshWorkflow).toBeDefined();
  });

  it('exports SLA activities from activities index', () => {
    expect(activities.calculateNextWakeTime).toBeDefined();
    expect(activities.sendSlaNotification).toBeDefined();
    expect(activities.checkAndEscalate).toBeDefined();
    expect(activities.updateSlaStatus).toBeDefined();
    expect(activities.completeIfTicketClosed).toBeDefined();
  });

  it('exports proactive NinjaOne token refresh activity from activities index', () => {
    expect(activities.proactiveNinjaOneTokenRefreshActivity).toBeDefined();
  });

  it('exports applianceCheckInWorkflow from workflow index', () => {
    expect(workflows.applianceCheckInWorkflow).toBeDefined();
  });

  it('exports applianceLicenseCheckInActivity from activities index', () => {
    expect(activities.applianceLicenseCheckInActivity).toBeDefined();
  });
});
