function getCreateOperationOptions()

in src/handler.ts [42:56]


function getCreateOperationOptions(): OperationOptions {
  return {
    // eslint-disable-next-line @typescript-eslint/no-explicit-any
    onResponse: (rawResponse, flatResponse: any) => {
      if (
        flatResponse &&
        flatResponse.error &&
        flatResponse.error.code &&
        flatResponse.error.message
      ) {
        throw new CustomPollingError(flatResponse, rawResponse);
      }
    },
  };
}