@c8y/ngx-components
Version:
Angular modules for Cumulocity IoT applications
19 lines • 1.26 kB
TypeScript
import { IdentityService, IManagedObject, InventoryService } from '@c8y/client';
import { WithTarget, ExportedTargetObject, ImportedTargetObject } from './target-import-export-types';
/**
* Transforms a single target object for export
*/
export declare function createExportedTargetObject<T extends WithTarget>(targetObject: T, identityService: IdentityService, inventoryService: InventoryService): Promise<ExportedTargetObject<T>>;
/**
* Transforms a single exported target object for import
*/
export declare function createImportedTargetObject<T extends WithTarget>(exportedTargetObject: ExportedTargetObject<T>, context: IManagedObject): Promise<ImportedTargetObject<T>>;
/**
* Transforms an array of target objects for export
*/
export declare function processTargetArrayToExport<T extends WithTarget>(targetObjects: T[] | undefined, identityService: IdentityService, inventoryService: InventoryService): Promise<ExportedTargetObject<T>[]>;
/**
* Transforms an array of exported target objects for import
*/
export declare function processExportedTargetArray<T extends WithTarget>(targetObjects: ExportedTargetObject<T>[] | undefined, context: IManagedObject): Promise<ImportedTargetObject<T>[]>;
//# sourceMappingURL=target-transformers.d.ts.map