0.0.3 • Published 29 days ago

oute-services-themes-sdk v0.0.3

Weekly downloads
-
License
-
Repository
-
Last release
29 days ago

This module expose helper functions

  • Initialization
  params = {
    url: @server url
    token: @access token
  }
  Themes = require("oute-services-themes-sdk")
  themes_instance = new Themes(params)

Cache functions

Core functions

  • Save themes
  body = {
    "_id": "vaPyYqHZD",
    "project_id" : "1ZXZKMvvE",
    "workspace_id": "ZzBfJMpfQ",
    "name": "test",
    "state": "ACTIVE",
    "url": "https://htmlcolorcodes.com/assets/images/colors/white-color-solid-background-1920x1080.png",
    "styles": {
      "fontFamily": "Noto Serif",
      "questionSize": "14px",
      "buttonCorners": "50%",
      "textAlignment": "left",
      "questions": "#263238",
      "answer": "#263238",
      "buttons": "#2196F3",
      "buttonText": "#FFFFFF",
      "backgroundColor": "white",
      "backgroundImage": ""
    }
  }
  await themes_instance.save(body)
  • Find One
  query = {
    "_id": "vaPyYqHZD"
  }
  await themes_instance.findOne(query)
  • get list
  query = {
    "project_id" : "1ZXZKMvvE"
  }
  await themes_instance.list(query)
  • delete themes
  themes_id = "vaPyYqHZD"
  await themes_instance.delete(themes_id)
0.0.3

29 days ago

0.0.2

29 days ago

0.0.1

6 months ago