npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@one-view/pd-oneview-cs-chat-box-types

v0.0.23

Published

backend for cs-chat-box 1vU plugin

Downloads

5

Readme

FORMAT: 1A VERSION: 1.0.0 HOST: https://api.pd-oneview.net/cs-chat-box

pd-oneview-cs-chat-box

backend for cs-chat-box 1vU plugin

get template list v2 [/v2/templates{?search,language,page,pageSize,orderCode,geid,expandPlaceholders}]

get list of general template

  • Parameters

    • search (string, required) - subset of words to search template label
    • language (Language, optional) - template language, supports multiple languages seperated by comma.
      • Default: eng
    • page (int32, optional) - page number
      • Default: 1
    • pageSize (int32, optional) - number of records per page
      • Default: 20
    • expandPlaceholders (boolean, optional) - flag to expand placeholder
    • geid (string, optional) - order global entity id
    • orderCode (string, optional) - order code id
  • Attributes (TemplateList)

get template list v2 [GET]

  • Request

    • Headers

        Authorization: bearer token
  • Response 200 (application/json)

    • Attributes (TemplateList)
  • Response 400 (application/json)

    • Attributes (Error_400)
  • Response 403 (application/json)

    • Attributes (Error_403)
  • Response 404 (application/json)

    • Attributes (Error_404)
  • Response 500 (application/json)

    • Attributes (Error_500)

get suggested template list [/v2/suggested-templates{?language,ticketId,orderCode,page,pageSize,geid,expandPlaceholders}]

get list of general template

  • Parameters

    • ticketId (string, required) - the ticket id
    • language (Language, optional) - template language.
      • Default: eng
    • orderCode (string, optional) - orders number of the ticket
    • page (int32, optional) - page number
      • Default: 1
    • pageSize (int32, optional) - number of records per page
      • Default: 20
    • expandPlaceholders (boolean, optional) - flag to expand placeholder
    • geid (string, optional) - order global entity id
  • Attributes (TemplateList)

get suggested template [GET]

  • Request

    • Headers

        Authorization: bearer token
  • Response 200 (application/json)

    • Attributes (TemplateList)
  • Response 400 (application/json)

    • Attributes (Error_400)
  • Response 403 (application/json)

    • Attributes (Error_403)
  • Response 404 (application/json)

    • Attributes (Error_404)
  • Response 500 (application/json)

    • Attributes (Error_500)

Data Structures

int32 (number)

int64 (number)

error_object (object)

  • status (string) - HTTP status code for this problem, expressed as a string value
  • title (string) - short, human-readable unique summary of the problem (not localized)

Error (object)

  • errors (array[error_object])

Error_401 (object)

  • errors (array)
    • error_object
      • status: 401 (string)
      • title: not authorize (string)

Error_404 (object)

  • errors (array)
    • error_object
      • status: 404 (string)
      • title: not found (string)

Error_403 (object)

  • errors (array)
    • error_object
      • status: 403 (string)
      • title: forbidden (string)

Error_400 (object)

  • errors (array)
    • error_object
      • status: 400 (string)
      • title: bad request (string)

Error_500 (object)

  • errors (array)
    • error_object
      • status: 500 (string)
      • title: internal server error (string)

AgentInfo

  • id : f4b8f8e5-365a-4ed1-a122-0f4ba1afef44 (string, required) - agent id
  • name : somename (string) - agent name
  • email : [email protected] (string) - agent email
  • status : online (string) - agent status
  • statusAlias : online (string) - agent status alias
  • lastLoginTime : 2012-12-11 08:52:31 +0000 UTC (string) - time at which agent login last time
  • updatedAt : 2012-12-11 08:52:31 +0000 UTC (string) - time at which agent status updated
  • agentTimeInStatus : 1572499999 (int64) - duration of current agent status

Room

  • accessKeys (object) - access keys
  • agentJwt : token (string) - agent jwt
  • agentJwtID : token (string) - agent jwt ID
  • id : id (string) - chat room id
  • name : roomname (string) - chat room name
  • subscriptionToken : token (string) - token for room subscription
  • status (RoomStatus) - room status
  • entityId : FP_SG (string) - global entity id

MessageHistory

  • sort_id: 0 (int64) - message sort id
  • content: "event" (string) - message content
  • type: "event" (string) - message type
  • event: "join" (string) - message event
  • created_at: "2020-03-25T05:06:54.190Z" (timestamp) - time created
  • sender: "cust_name" (string) - message sender
  • access: "*" (string) - message access

MessageHistories

  • data (array[MessageHistory], fixed-type)
  • count : 1 (int64) - number of messages

TemplateList

  • list (array[Template]) - list of template

Template

  • id (string, required) - id of text template
  • identifier (string, required) - identifier of text template can be username or ccr
  • label (string) - label of text template
  • template (string) - template in text

TemplateTag

  • key (string, required) - key of tag
  • value (string) - value of tag

Placeholders

  • list (array[Placeholder], required, fixed-typed) - list of placeholders

Placeholder

  • key (string, required) - key of the placeholder
  • value (object, required) - value of the placeholder

RoomStatus (enum)

  • OPEN
  • CLOSED

TemplateType (enum)

  • general-template
  • ccr-template

Language (enum)

  • eng
  • cmn
  • tha
  • urd
  • mya
  • khm
  • lao
  • ben
  • jpn
  • msa
  • yue

Vertical (enum)

  • restaurants
  • flowers
  • groceries
  • cosmetics
  • health_supplements
  • pharmacies
  • pets
  • drinks
  • cross_vertical
  • electronics
  • baby_supplies
  • furniture
  • bags_and_luggage
  • toys
  • optics
  • courier_business
  • shop
  • coffee
  • courier
  • cash
  • darkstores