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

ts-elasticsearch-messaging

v1.4.0

Published

- [JEST](https://jestjs.io/ja/) - [ts-jest](https://github.com/kulshekhar/ts-jest)

Downloads

8

Readme

ts-elasticsearch-messaging

Setup

  • Environment
    • ELASTIC_CLOUD_ID
    • ELASTIC_CLOUD_USERNAME
    • ELASTIC_CLOUD_PASSWORD

Usage

import { OpenMessage, DirectMessage } from "ts-elasticsearch-messaging";

Design

Properties

| property | type | memo | | ------------ | -------- | -------------------------------------------------------------------------------- | | uuid | string | メッセージを一意にする ID | | kind | string | メッセージの種類 ※内容は後述 | | parent_uuid | string | Thread 利用の際の親メッセージ ID | | channel_uuid | string | グループメッセージのように利用する際の ID | | from_uuid | string | 送信元の個を特定する ID | | from_name | string | 送信元の名前、表示時に利用しやすいように登録しておく | | to_uuid | string | 送信先の個を特定する ID、ダイレクトメッセージで利用 | | comment | string | メッセージ内容 | | tags | string[] | 上記プロパティで賄えない場合はこのタグを利用(配列内の要素は Key, Value を想定) | | created_at | string | | | updated_at | string | |

Kind

uuid, kind, from_uuid, from_name, comment, tags, created_at, updated_at は全てに必要なため省略

| kind | need params | null params | memo | | --------------- | ------------ | ------------------------- | ------------------------------------ | | DIRECT | to_uuid | parent_uuid, channel_uuid | ダイレクトメッセージの場合に指定 | | PUBLIC_CHANNEL | channel_uuid | to_uuid, parent_uuid | 公開グループメッセージの場合に指定 | | PRIVATE_CHANNEL | channel_uuid | to_uuid, parent_uuid | 非公開グループメッセージの場合に指定 |

Thread

uuid, from_uuid, from_name, comment, tags, created_at, updated_at は全てに必要なため省略

| need params | null params | memo | | ----------- | --------------------------- | -------------------------------- | | parent_uuid | kind, channel_uuid, to_uuid | ダイレクトメッセージの場合に指定 |