UNPKG

crisp-api

Version:

Crisp API wrapper for Node - official, maintained by Crisp

38 lines (37 loc) 1.3 kB
"use strict"; /* * This file is part of node-crisp-api * * Copyright (c) 2025 Crisp IM SAS * All rights belong to Crisp IM SAS */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); /************************************************************************** * IMPORTS ***************************************************************************/ // PROJECT: RESOURCES const BaseResource_1 = __importDefault(require("./BaseResource")); /************************************************************************** * CLASSES ***************************************************************************/ /** * Crisp WebsiteAnalytics Resource */ class WebsiteAnalytics extends BaseResource_1.default { /** * Generate Analytics */ generateAnalytics(websiteID, query) { return this.crisp.post(this.crisp.prepareRestUrl([ "website", websiteID, "analytics", "generate" ]), null, query); } ; } /************************************************************************** * EXPORTS ***************************************************************************/ exports.default = WebsiteAnalytics;