0.0.16 • Published 1 year ago

oute-services-themes-sdk v0.0.16

Weekly downloads
-
License
-
Repository
-
Last release
1 year 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.10

1 year ago

0.0.11

1 year ago

0.0.12

1 year ago

0.0.13

1 year ago

0.0.14

1 year ago

0.0.15

1 year ago

0.0.9

1 year ago

0.0.16

1 year ago

0.0.8

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

2 years ago