import { DecryptedPropertyStub, EncryptedPropertyStub, PropertyStub } from './PropertyStub.mjs'; import { CodeStub } from './base/CodeStub.mjs'; import { HasEncryptionMetadata } from './base/HasEncryptionMetadata.mjs'; import { HasEndOfLife } from './base/HasEndOfLife.mjs'; import { HasIdentifier } from './base/HasIdentifier.mjs'; import { HasMedicalLocation } from './base/HasMedicalLocation.mjs'; import { ICureDocument } from './base/ICureDocument.mjs'; import { Identifier } from './base/Identifier.mjs'; import { StoredDocument } from './base/StoredDocument.mjs'; import { Delegation } from './embed/Delegation.mjs'; import { Encryptable } from './embed/Encryptable.mjs'; import { SecurityMetadata } from './embed/SecurityMetadata.mjs'; import { TaskStatus } from './embed/TaskStatus.mjs'; import { Base64String } from './specializations/Base64String.mjs'; /** * * Represents a maintenance task in the iCure system. Maintenance tasks are used to track background * operations * such as key exchange requests, data migrations, or other administrative operations that require * asynchronous processing. * / */ export interface MaintenanceTask extends StoredDocument, ICureDocument, HasMedicalLocation, HasEncryptionMetadata, Encryptable, HasEndOfLife, HasIdentifier { /** * * The type of the maintenance task. */ taskType: string | undefined; /** * * Extra properties for the maintenance task. */ properties: Array; /** * * The current status of the maintenance task (pending, ongoing, cancelled, completed). */ status: TaskStatus; readonly isEncrypted: boolean; toJSON(): object; } /** * * Represents a maintenance task in the iCure system. Maintenance tasks are used to track background * operations * such as key exchange requests, data migrations, or other administrative operations that require * asynchronous processing. * / */ export declare class DecryptedMaintenanceTask { /** * * The unique identifier of the maintenance task. */ id: string; /** * * The revision of the maintenance task in the database, used for conflict management / optimistic * locking. */ rev: string | undefined; /** * * The identifiers of the maintenance task. */ identifier: Array; /** * * The timestamp (unix epoch in ms) of creation. */ created: number | undefined; /** * * The timestamp (unix epoch in ms) of the latest modification. */ modified: number | undefined; /** * * The id of the User that created this maintenance task. */ author: string | undefined; /** * * The id of the HealthcareParty that is responsible for this maintenance task. */ responsible: string | undefined; /** * * Tags that qualify the maintenance task as being member of a certain class. */ tags: Array; /** * * Codes that identify or qualify this particular maintenance task. */ codes: Array; /** * * Soft delete (unix epoch in ms) timestamp of the object. */ endOfLife: number | undefined; /** * * Hard delete (unix epoch in ms) timestamp of the object. */ deletionDate: number | undefined; /** * * The type of the maintenance task. */ taskType: string | undefined; /** * * Extra properties for the maintenance task. */ properties: Array; /** * * The current status of the maintenance task (pending, ongoing, cancelled, completed). */ status: TaskStatus; /** * * The secret patient key, encrypted in the patient's own AES key. */ secretForeignKeys: Array; /** * * The patient id encrypted in the delegates' AES keys. */ cryptedForeignKeys: { [key: string]: Array; }; /** * * The delegations giving access to connected healthcare information. */ delegations: { [key: string]: Array; }; /** * * The keys used to encrypt this entity when stored encrypted. */ encryptionKeys: { [key: string]: Array; }; /** * * The base64-encoded encrypted fields of this entity. */ encryptedSelf: Base64String | undefined; /** * * The security metadata of the entity. */ securityMetadata: SecurityMetadata | undefined; readonly isEncrypted: false; constructor(partial: Partial); toJSON(): object; static fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array): DecryptedMaintenanceTask; } /** * * Represents a maintenance task in the iCure system. Maintenance tasks are used to track background * operations * such as key exchange requests, data migrations, or other administrative operations that require * asynchronous processing. * / */ export declare class EncryptedMaintenanceTask { /** * * The unique identifier of the maintenance task. */ id: string; /** * * The revision of the maintenance task in the database, used for conflict management / optimistic * locking. */ rev: string | undefined; /** * * The identifiers of the maintenance task. */ identifier: Array; /** * * The timestamp (unix epoch in ms) of creation. */ created: number | undefined; /** * * The timestamp (unix epoch in ms) of the latest modification. */ modified: number | undefined; /** * * The id of the User that created this maintenance task. */ author: string | undefined; /** * * The id of the HealthcareParty that is responsible for this maintenance task. */ responsible: string | undefined; /** * * Tags that qualify the maintenance task as being member of a certain class. */ tags: Array; /** * * Codes that identify or qualify this particular maintenance task. */ codes: Array; /** * * Soft delete (unix epoch in ms) timestamp of the object. */ endOfLife: number | undefined; /** * * Hard delete (unix epoch in ms) timestamp of the object. */ deletionDate: number | undefined; /** * * The type of the maintenance task. */ taskType: string | undefined; /** * * Extra properties for the maintenance task. */ properties: Array; /** * * The current status of the maintenance task (pending, ongoing, cancelled, completed). */ status: TaskStatus; /** * * The secret patient key, encrypted in the patient's own AES key. */ secretForeignKeys: Array; /** * * The patient id encrypted in the delegates' AES keys. */ cryptedForeignKeys: { [key: string]: Array; }; /** * * The delegations giving access to connected healthcare information. */ delegations: { [key: string]: Array; }; /** * * The keys used to encrypt this entity when stored encrypted. */ encryptionKeys: { [key: string]: Array; }; /** * * The base64-encoded encrypted fields of this entity. */ encryptedSelf: Base64String | undefined; /** * * The security metadata of the entity. */ securityMetadata: SecurityMetadata | undefined; readonly isEncrypted: true; constructor(partial: Partial); toJSON(): object; static fromJSON(json: any, ignoreUnknownKeys?: boolean, path?: Array): EncryptedMaintenanceTask; }