/*
 * Copyright (c) 2025, Salesforce, Inc.
 * SPDX-License-Identifier: Apache-2
 * For full license text, see the license.txt file in the repo root or http://www.apache.org/licenses/LICENSE-2.0
 */
/**
 * Site management operations for B2C Commerce.
 *
 * This module provides functions for listing and retrieving site information
 * from B2C Commerce instances via OCAPI.
 *
 * ## Functions
 *
 * - {@link listSites} - List all sites on an instance
 * - {@link getSite} - Get details for a specific site
 *
 * ## Usage
 *
 * ```typescript
 * import { listSites, getSite } from '@salesforce/b2c-tooling-sdk/operations/sites';
 * import { B2CInstance, OAuthStrategy } from '@salesforce/b2c-tooling-sdk';
 *
 * const auth = new OAuthStrategy({
 *   clientId: 'your-client-id',
 *   clientSecret: 'your-client-secret',
 * });
 * const instance = new B2CInstance(
 *   { hostname: 'your-sandbox.demandware.net' },
 *   auth
 * );
 *
 * // List all sites
 * const sites = await listSites(instance);
 * for (const site of sites) {
 *   console.log(`${site.id}: ${site.displayName} (${site.status})`);
 * }
 *
 * // Get a specific site
 * const site = await getSite(instance, 'RefArch');
 * ```
 *
 * ## Authentication
 *
 * Site operations require OAuth authentication with appropriate OCAPI permissions.
 *
 * @module operations/sites
 */
import { B2CInstance } from '../../instance/index.js';
/**
 * Lists all sites on an instance.
 */
export async function listSites(instance) {
    console.log(`Listing sites on ${instance.config.hostname}...`);
    // TODO: Implement actual site listing via OCAPI
    // GET /s/-/dw/data/v21_10/sites
    return [];
}
/**
 * Gets details for a specific site.
 */
export async function getSite(instance, siteId) {
    console.log(`Getting site ${siteId} on ${instance.config.hostname}...`);
    // TODO: Implement actual site retrieval via OCAPI
    // GET /s/-/dw/data/v21_10/sites/{site_id}
    return null;
}
//# sourceMappingURL=index.js.map