import { ServiceNowInstance } from "../ServiceNowInstance.js"; /** * CompanyApplications class for retrieving company application information * Provides methods to get applications shared internally within the company */ export declare class CompanyApplications { private readonly COMPANY_APPS_API_URL; private _logger; private _req; private _instance; constructor(instance: ServiceNowInstance); /** * Gets the list of company applications shared internally * @param sharedInternally Filter for internally shared applications (default: true) * @param isFirstLoad Indicates if this is the first load (default: true) * @returns Promise Response containing list of applications */ getCompanyApplications(sharedInternally?: boolean, isFirstLoad?: boolean): Promise; /** * Gets a specific company application by scope * @param scope The application scope to search for * @param sharedInternally Filter for internally shared applications (default: true) * @returns Promise The application if found, null otherwise */ getCompanyApplicationByScope(scope: string, sharedInternally?: boolean): Promise; /** * Gets a specific company application by sys_id * @param sysId The application sys_id to search for * @param sharedInternally Filter for internally shared applications (default: true) * @returns Promise The application if found, null otherwise */ getCompanyApplicationBySysId(sysId: string, sharedInternally?: boolean): Promise; /** * Gets only installed company applications * @param sharedInternally Filter for internally shared applications (default: true) * @returns Promise Array of installed applications */ getInstalledCompanyApplications(sharedInternally?: boolean): Promise; } /** * Response from company applications API */ export interface CompanyApplicationsResponse { /** Application server URL */ appServer: string; /** Array of company applications */ data: CompanyApplication[]; /** Data processing time in milliseconds */ dataProcessingTime: number; /** Repository response time in milliseconds */ reporesponsetime: number; /** Store URL */ storeURL: string; /** Store tracker ID */ storetrackerId: string; } /** * Represents a company application */ export interface CompanyApplication { /** Whether the application is active */ active: boolean; /** Application schedule details */ app_schedule_details: Record; /** Assigned version */ assigned_version: string; /** Whether installation is blocked */ block_install: boolean; /** Block message if installation is blocked */ block_message: string; /** Whether the app can be edited in Studio */ can_edit_in_studio: boolean; /** Whether the app can be installed or upgraded */ can_install_or_upgrade: boolean; /** Whether customization can be installed or upgraded */ can_install_or_upgrade_customization: boolean; /** Whether the app can be opened in Studio */ can_open_in_studio: boolean; /** Compatibility information */ compatibilities: string; /** Whether the app contains plugins */ contains_plugins: boolean; /** Custom table count */ custom_table_count: string; /** Customized version information */ customized_version_info: Record; /** Demo data status */ demo_data: string; /** Application dependencies */ dependencies: string | null; /** Display message */ display_message: string | null; /** Whether the app has a manifest */ has_manifest: boolean; /** Indicators array */ indicators: unknown[]; /** Installation date */ install_date: string; /** Whether installed as a dependency */ installed_as_dependency: boolean; /** Whether this is an App Store plugin */ isAppstorePlugin: boolean; /** Whether the application is installed */ isInstalled: boolean; /** Whether this is a customized app */ is_customized_app: boolean; /** Whether this is a store app */ is_store_app: boolean; /** Latest version available */ latest_version: string; /** Latest version display name */ latest_version_display: string; /** Link to the application */ link: string; /** Line of business array */ lob: unknown[]; /** Logo URL */ logo: string; /** Application name */ name: string; /** Whether App Engine licensing is needed */ needs_app_engine_licensing: boolean; /** Whether optional apps are available */ optional_apps_available: boolean; /** Price type */ price_type: string; /** Products array */ products: unknown[]; /** Publish date display */ publish_date_display: string; /** Application scope */ scope: string; /** Whether shared internally */ shared_internally: string; /** Short description */ short_description: string; /** Source information */ source: string; /** Store link URL */ store_link: string; /** System code */ sys_code: string | null; /** System created on timestamp */ sys_created_on: string; /** System created on display */ sys_created_on_display: string; /** System ID */ sys_id: string; /** System updated on timestamp */ sys_updated_on: string; /** System updated on display */ sys_updated_on_display: string; /** Whether uninstall is blocked */ uninstall_blocked: boolean; /** Update date */ update_date: string; /** Upload information */ upload_info: string; /** Vendor name */ vendor: string; /** Vendor prefix */ vendor_prefix: string; /** Current version (if installed) */ version: string; /** Array of available versions */ versions: CompanyApplicationVersion[]; } /** * Represents a version of a company application */ export interface CompanyApplicationVersion { /** Auto-update flag */ auto_update: string; /** Whether installation is blocked for this version */ block_install: boolean; /** Block message if installation is blocked */ block_message: string | null; /** Compatibility information */ compatibilities: string; /** Whether this version contains plugins */ contains_plugins: boolean; /** Custom table count */ custom_table_count: string; /** Whether this version has demo data */ demo_data: boolean; /** Dependencies for this version */ dependencies: string | null; /** Display message */ display_message: string; /** Whether this version has a manifest */ has_manifest: boolean; /** Indicators array */ indicators: unknown[]; /** Line of business array */ lob: unknown[]; /** Application name */ name: string; /** Whether App Engine licensing is needed */ needs_app_engine_licensing: boolean; /** Version number in repository */ number: string; /** Price type */ price_type: string; /** Publish date timestamp */ publish_date: string; /** Publish date display */ publish_date_display: string; /** Remote application sys_id */ remote_application: string; /** Application scope */ scope: string; /** Short description */ short_description: string | null; /** Sortable version number */ sortable_version: number; /** Source application ID */ source_app_id: string; /** Store link URL */ store_link: string; /** System ID of this version */ sys_id: string; /** Title of this version */ title: string; /** Upload information */ upload_info: string; /** Vendor name */ vendor: string; /** Vendor key */ vendor_key: string; /** Version number */ version: string; /** Version display name */ version_display: string; }