UNPKG

efficy-enterprise-api

Version:

The Efficy Enterprise API is developed for server-side usage in a Node.js environment (e.g. for integrations) and also bundled for usage inside an Efficy browser session for client-side JSON RPC requests.

25 lines (21 loc) 546 B
import RemoteObject from '../remote-object.mjs'; /** * Class uses by operations that return a string result * @extends RemoteObject * @property {string} result */ class StringObject extends RemoteObject { result; /** @protected */ operationName; constructor(remoteAPI) { super(remoteAPI); this.api.registerObject(this); } /** @protected */ afterExecute() { super.afterExecute(); this.result = this.api.findFunc(this.responseObject, this.operationName)?.["#result"]; } } export default StringObject;