// Copyright © 2022-2026 Partium, Inc. DBA Partium import { Observable } from 'rxjs'; import { RecentPartsService, OrganizationService, GetOrganizationsRequest, OrganizationsResponse } from './core'; import { PartiumConfig } from './core/models/partium-config'; import { FileService } from './core/services/file.service.interface'; import { FileTransferService } from './core/services/http/file-transfer/file-transfer.service.interface'; import { HttpsService } from './core/services/http/https.service.interface'; import { LocalStorageService } from './core/services/local-storage.service.interface'; import { LogService } from './core/services/log.service'; import { SessionService } from './core/services/session/session.service.interface'; import { AssemblyHierarchyNodesService, CustomerServiceAssistanceService, DataService } from './data'; import { FilterService } from './data/services/filter.service'; import { PartAttributeService } from './data/services/part-attribute.service'; import { PartService } from './data/services/part.service'; import { RequestListService } from './user-data/services/request-list/request-list.service'; import { FavoriteService } from './user-data/services/favorite/favorite.service'; import { AssetService } from './find/services/asset.service'; import { SearchService } from './find/services/search/search.service'; import { OcrService } from './ocr'; import { ShoppingCartService } from './data/services/shopping-cart.service'; import { InquiryService } from './data/services/inquiry.service'; import { AnnouncementService } from './data/services/announcement.service'; import { RelatedPartsService } from './data/services/related-parts.service'; import { ApiKeyService } from './management'; import { PartEnrichmentService } from './data/services/part-enrichment.service'; import { ImagesService } from './catalog/services/images.service'; import { ImageSubmissionService } from './datacuration'; import { DataEnrichmentService } from './enrichment'; export declare enum INITIALIZATION_STATUS { NOT_INITIALIZED = 0, INITIALIZING = 1, INITIALIZED = 2, INITIALIZATION_ERROR = 3 } /** * The main Partium object, that can be imported by other applications and serves as * interaction-interface to the whole Partium-JS-SDK. * All features that are not exposed via this class can/should not be used from the outside. * * In order to use the Partium-SDK it has to be configured and initialized via the init-method, * that takes a configuration object. */ export declare class Partium { private static _serviceProvider; private static _initializationStatus$; static get search(): SearchService; static get asset(): AssetService; static get https(): HttpsService; static get fileTransfer(): FileTransferService; static get session(): SessionService; static get assemblyHierarchyNode(): AssemblyHierarchyNodesService; static get part(): PartService; static get partEnrichment(): PartEnrichmentService; static get relatedParts(): RelatedPartsService; static get requestList(): RequestListService; static get shoppingCart(): ShoppingCartService; static get partAttribute(): PartAttributeService; static get data(): DataService; static get inquiry(): InquiryService; static get announcement(): AnnouncementService; static get customerServiceAssistance(): CustomerServiceAssistanceService; static get log(): LogService; static get file(): FileService; static get recentParts(): RecentPartsService; static get favorites(): FavoriteService; static get filters(): FilterService; static get organization(): OrganizationService; static get ocr(): OcrService; static get apiKey(): ApiKeyService; static get localStorage(): LocalStorageService; static get images(): ImagesService; static get imageSubmission(): ImageSubmissionService; static get dataEnrichment(): DataEnrichmentService; /** * Initialize the Partium SDK with a given configuration. * The configuration defines what Authentication method is used and which * platform-specific implementations of some Services should be used. * * During the init function also the Partium-Status-Backend is called, * to check it's status and the SDK-Version. * * @param config the partium configuration */ static init(config: PartiumConfig): Observable; /** * Convenience function to init partium with an API-key and default configuration. * * During the init function also the Partium-Status-Backend is called, * to check it's status and the SDK-Version. * * @param apiKey the api-key the partium configuration */ static initApiKey(apiKey: string): Observable; /** * Reset the Partium SDK to uninitialized state */ private static reset; /** * Returns whether the Partium Service is already initialized or not * * @returns true if the Partium has already been initialized, false otherwise */ static getInitializationStatus(): Observable; /** * Returns the first page of Organizations of the currently logged in user. * * @returns a promise that resolves with an array of the first page of organizations and a pagination context with all available organizations for a customer. */ static getOrganizations(request: GetOrganizationsRequest): Promise; /** * Set organization with the given partiumId as the current organization to be used in the session. * * @param organizationId organization-id * @returns void if organization is found, otherwise throws an error */ static useOrganizationById(organizationId: string): Promise; /** * Set organization with the given name as the current organization to be used in the session. * * @param organizationName organization-name * @returns void if organization is found, otherwise throws an error */ static useOrganizationByName(organizationName: string): Promise; /** * Get a service from the service-singleton provider * * @param service the Service-class to get an instance of * @returns singleton instance of the requested service */ private static getService; static isInitialized(): boolean; private static ensureInitialized; private static buildUrl; }