@villedemontreal/workit-bpm-client
Version:
Camunda BPM client for WorkIt that works with Camunda platform powered by TypeScript
43 lines (42 loc) • 1.32 kB
TypeScript
import { ICamundaConfig, IReadOnlyVariables, IVariables } from '@villedemontreal/workit-types';
export declare class Utils {
static assign(target: IVariables, object: {
[s: string]: unknown;
} | ArrayLike<unknown>): IVariables;
/**
* Not a deep copy
*/
static copyVariables(variables: IVariables | IReadOnlyVariables): IVariables;
/**
* Helper for building config with default settings
*
* @static
* @param {ICamundaConfig} [config]
* @returns {ICamundaConfig}
* @memberof Utils
*/
static buildConfig(config?: ICamundaConfig): ICamundaConfig;
static serializeVariable({ typedValue, }: {
typedValue: {
value?: any;
type: string;
valueInfo?: unknown;
[custom: string]: any;
};
}): {
value: any;
type: string;
valueInfo?: unknown;
};
static getVariableType: (variable: any) => any;
static serializeVariables<T = any>(variables: T, local?: boolean): {
[custom: string]: {
type: string;
value?: string | number | boolean;
valueInfo: {};
local: boolean;
};
} | undefined;
static defaultInterceptors(): any;
static getLogger(): Function | Function[] | undefined;
}