Issue with the contractsReviewOperation in moralis v2 server

Code:

const contractsReviewOperation = getOperation('contractsReview');
Parse.Cloud.define("contractsReview", async ({params, user, ip}: any) => {
  try {
    await beforeApiRequest(user, ip, 'contractsReview');
    const request = upgradeRequest(params, contractsReviewOperation);
    const result = await Moralis.EvmApi.utils.contractsReview(request);
    return result?.raw;
  } catch (error) {
    throw new Error(getErrorMessage(error, 'contractsReview'));
  }
})

Error:

Property 'contractsReview' does not exist on type '{ runContractFunction: (request: RunContractFunctionRequest) => Promise<RunContractFunctionResponseAdapter>; web3ApiVersion: () => Promise<...>; endpointWeights: () => Promise<...>; }'.```

Hi @roba

You can try solving the error by extending the type of runContractFunction and including the missing type.

interface updatedRunContractFunction extends runContractFunction {
   contractsReview: string;  // add type
}