/*
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License.
 */

/**
 * http methods
 */
export enum HttpMethod {
    GET = 'get',
    POST = 'post',
}

/**
 * Constant used for PKCE
 */
export const RANDOM_OCTET_SIZE = 32;

/**
 * Constants used in PKCE
 */
export const Hash = {
    SHA256: 'sha256',
};

/**
 * Constants for encoding schemes
 */
export const CharSet = {
    CV_CHARSET:
        'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~',
};

/**
 * Cache Constants
 */
export const CACHE = {
    FILE_CACHE: 'fileCache',
    EXTENSION_LIB: 'extenstion_library',
};

/**
 * Constants for headers
 */
export const Constants = {
    MSAL_SKU: 'msal.js.node',
};

// Telemetry Constants
export enum ApiId {
    acquireTokenSilent = 62,
    acquireTokenByCode = 871,
    acquireTokenByRefreshToken = 872,
    acquireTokenByDeviceCode = 671
};

/*
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License.
 */

/**
 * http methods
 */
export enum HttpMethod {
    GET = 'get',
    POST = 'post',
}

/**
 * Constant used for PKCE
 */
export const RANDOM_OCTET_SIZE = 32;

/**
 * Constants used in PKCE
 */
export const Hash = {
    SHA256: 'sha256',
};

/**
 * Constants for encoding schemes
 */
export const CharSet = {
    CV_CHARSET:
        'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~',
};

/**
 * Cache Constants
 */
export const CACHE = {
    FILE_CACHE: 'fileCache',
    EXTENSION_LIB: 'extenstion_library',
};

/**
 * Constants for headers
 */
export const Constants = {
    MSAL_SKU: 'msal.js.node',
};

/**
 * API Codes for Telemetry purposes. 
 * Before adding a new code you must claim it in the MSAL Telemetry tracker as these number spaces are shared across all MSALs
 * 0-99 Silent Flow
 * 600-699 Device Code Flow
 * 800-899 Auth Code Flow
 */
export enum ApiId {
    acquireTokenSilent = 62,
    acquireTokenByCode = 871,
    acquireTokenByRefreshToken = 872,
    acquireTokenByDeviceCode = 671
};

Add comment to API codes
Add comment to API codes
