"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.updateOnboarding = exports.updateTutorial = exports.createTutorial = exports.getCodeString = exports.getCodeSnippets = exports.getEndpoints = void 0;

var getEndpoints = function getEndpoints(initRequest) {
  return initRequest({
    method: 'GET',
    path: 'tutorials/endpoints'
  });
};

exports.getEndpoints = getEndpoints;

var getCodeSnippets = function getCodeSnippets(initRequest, data) {
  return initRequest({
    method: 'POST',
    path: 'tutorials/getCodeSnippets',
    body: JSON.stringify(data)
  });
};

exports.getCodeSnippets = getCodeSnippets;

var getCodeString = function getCodeString(initRequest, data) {
  return initRequest({
    method: 'POST',
    path: 'tutorials/getCodeString',
    body: JSON.stringify(data)
  });
};

exports.getCodeString = getCodeString;

var createTutorial = function createTutorial(initRequest, data) {
  return initRequest({
    method: 'POST',
    path: 'tutorials',
    body: JSON.stringify(data)
  });
};

exports.createTutorial = createTutorial;

var updateTutorial = function updateTutorial(initRequest, data) {
  return initRequest({
    method: 'PUT',
    path: "tutorials/".concat(data._id),
    body: JSON.stringify(data)
  });
};

exports.updateTutorial = updateTutorial;

var updateOnboarding = function updateOnboarding(initRequest, data) {
  return initRequest({
    method: 'POST',
    path: "tutorials/onboarding",
    body: JSON.stringify(data)
  });
};

exports.updateOnboarding = updateOnboarding;