/** * @license * Copyright 2023 Qlever LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import '@oada/pino-debug'; import _debug from 'debug'; import type { ConnectionResponse, Json, OADAClient } from '@oada/client'; export declare const error: _debug.Debugger; export declare const info: _debug.Debugger; export declare const warn: _debug.Debugger; export declare const debug: _debug.Debugger; export declare const trace: _debug.Debugger; export declare function stripResource>({ _id, _rev, _meta, _type, ...r }: T): Omit; export declare function deleteResourceAndLinkIfExists(oada: OADAClient, path: string): Promise; export declare function keyFromLocation(r: ConnectionResponse): string; export declare function postJob(oada: OADAClient, path: string, job: Json): Promise<{ _id: string; key: string; }>; /** * Posts an update message to the Job's OADA object. * @param status The value of the current status * @param meta Arbitrary JSON serializeable meta data about update */ export declare function postUpdate(oada: OADAClient, oadaId: string, meta: Json, status: string): Promise;