/// /// import { Stream } from 'stream'; import { Order } from '../context/db/impl/order'; import { Criterion, CriterionV3 } from '../kunlun/operator/impl/logic'; import { IInnerAPIRequest, OpenSDKGetRecordsReq, UploadFileResp } from './interface'; import { ExecutionInfo, ExecutionResult, RevokeExecutionOptions } from '@byted-apaas/server-common-node/context/workflow/workflow'; import { AppCtx } from '../application/application'; import { IApprovalInstance, IApprovalInstanceListOptions, IApprovalInstanceList, IGetApprovalInstanceOptions } from "./structs"; export declare function updateWorkflowVariables(ctx: any, instanceId: number, variables: object, variableTypes: object): Promise; export declare class RequestHttp implements IInnerAPIRequest { constructor(); updateWorkflowVariables(ctx: any, instanceId: number, variables: object, variableTypes: object): any; createRecordBySync(objectApiName: string, record: object, authType: string): any; createRecordBySyncV3(objectApiName: string, record: object, authType: string): any; updateRecordBySync(objectApiName: string, recordID: number, record: object, authType: string): any; updateRecordBySyncV3(objectApiName: string, recordID: string, record: object, authType: string): any; deleteRecordBySync(objectApiName: string, recordID: number, authType: string): any; deleteRecordBySyncV3(objectApiName: string, recordID: string, authType: string): any; createRecordsByAsync(objectApiName: string, records: object[], authType: string): any; updateRecordsByAsync(objectApiName: string, recordMap: Record, authType: string): any; deleteRecordsByAsync(objectApiName: string, recordIDs: number[], authType: string): any; createRecordsBySync(objectApiName: string, records: object[], authType: string): any; createRecordsBySyncV3(objectApiName: string, records: object[], authType: string): any; updateRecordsBySync(objectApiName: string, recordMap: Record, authType: string): Promise>; updateRecordsBySyncV3(objectApiName: string, records: object[], authType: string): Promise>; deleteRecordsBySync(objectApiName: string, recordIDs: number[], authType: string): Promise>; deleteRecordsBySyncV3(objectApiName: string, recordIDs: string[], authType: string): Promise>; getRecordsOrCountByCriterion(objectApiName: string, criterion: string | Criterion, order: Order[], fuzzySearch: any, ignoreBackLookupField: boolean, fieldApiNames: string[], offset: number, limit: number, needCount: boolean, authType: string): any; getRecordsV3OrCounByCriterion(objectApiName: string, criterion: string | CriterionV3, quickQuery: string, quickQueryFields: string[], order: Order[], fieldApiNames: string[], offset: number, limit: number, needCount: boolean, authType: string): any; uploadFile(data: Stream, expire: number, fileName?: string): Promise; downloadFileByID(fileID: string, filePath?: string): Promise; downloadFileByToken(fileToken: string, filePath?: string): Promise; createMessage(msg: any): Promise; updateMessage(msgId: number, msg: any): Promise; getFields(objectApiName: string): any; getField(objectApiName: string, fieldApiName: string): any; terminateWorkflowInstance(workflowInstanceId: number, operator: number, reason: string): any; modifyRecordsWithTransaction(placeholders: Record, operations: object[], authType: string, version: string): Promise>; getGlobalConfigByKey(key: string): Promise; oql(oql: string, args: any[], namedArgs: Record, authType: string): any; invokeFuncSync(idOrName: { APIId?: string; APIName?: string; isInvokeByAPIName: boolean; }, params: any): Promise; invokeFuncWithAuth(idOrName: { APIId?: string; APIName?: string; isInvokeByAPIName: boolean; }, params: any): Promise; createAsyncTaskV1(idOrName: { APIId?: string; APIName?: string; isInvokeByAPIName: boolean; }, params: any): Promise; createAsyncTaskV2(name: string, params: any): Promise; getExecutionUserTaskInfo(executionId: bigint): Promise; executeFlow(apiName: string, options: any, async: any): Promise; revokeExecution(executionId: number, revokeOptions: RevokeExecutionOptions): Promise; getExecutionInfo(executionId: number): Promise; getTenantInfo(appCtx: AppCtx): Promise; mGetFileToken(ids: string[]): Promise; getIntegrationAppAccessToken(apiName: string): Promise; getIntegrationTenantAccessToken(apiName: string): Promise; getDefaultIntegrationAppAccessToken(): Promise; getDefaultIntegrationTenantAccessToken(): Promise; openSDKCreateRecordBySync(objectApiName: string, record: object): any; openSDKUpdateRecordBySync(objectApiName: string, recordID: number, record: object): any; openSDKDeleteRecordBySync(objectApiName: string, recordID: number): any; openSDKCreateRecordsBySync(objectApiName: string, records: object[]): any; openSDKUpdateRecordsBySync(objectApiName: string, recordMap: Record): any; openSDKDeleteRecordsBySync(objectApiName: string, recordIDs: number[]): any; openSDKGetRecords(objectApiName: string, param: OpenSDKGetRecordsReq): Promise; openSDKUploadFile(fileName: string, data: Buffer): any; openSDKUploadAvatar(fileName: string, data: Buffer): any; openSDKDownloadAvatar(imageID: string): Promise; getApprovalInstanceList(params?: IApprovalInstanceListOptions): Promise; getApprovalInstance(params: IGetApprovalInstanceOptions): Promise; } export declare function getExecutionUserTaskInfo(executionId: bigint): Promise; export declare function executeFlow(apiName: string, option: any, async: any): Promise; export declare function revokeExecution(executionId: number, revokeOptions: RevokeExecutionOptions): Promise; export declare function getExecutionInfo(executionId: number): Promise;