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

@motionpicture/coa-service

v9.5.0

Published

COA client library for Node.js

Downloads

2,079

Readme

COA client library for Node.js

npm (scoped) CircleCI Coverage Status Known Vulnerabilities npm

COA SDK for Node.js

Table of contents

Specification

COA APIの仕様で注意すべき点は以下の通りです。

  • 正常時レスポンスにはstatusが含まれるが、0以外のステータスはない。
  • カタカナは全角統一(半角はありえない)
  • 仮予約番号と購入番号の型はstringで統一。
  • 座席番号は半角と全角を区別する、
  • 購入番号は劇場内でユニーク、劇場コード合わせれば全体でユニーク。
  • 購入番号は連番かどうか
    • 仮予約番号は連番だが、購入番号は仮予約番号と同じ番号。よって、仮予約で止めたり、仮予約のキャンセルが発生すると、空き番号が発生しうる。
  • 購入番号は最大8桁。 最大番号(99999999)を超える時点で1に戻る。
  • 劇場コードは、基本的に3桁(001、018等)だが、場合によっては1桁や2桁(1、18等)の表示になっていることはあるかもしれない、とのこと。
  • 座席の解放については、基幹システム側では何も行っていない。

Usage

npm install @motionpicture/coa-service
const COA = require('@motionpicture/coa-service');

Environment variables

| Name | Required | Value | Purpose | | ------- | -------- | ------------- | ------- | | DEBUG | false | coa-service:* | Debug |

劇場情報を取得する

const COA = require('@motionpicture/coa-service');

const masterService = new COA.service.Master({
    endpoint: '',
    auth: new COA.auth.RefreshTokenClient({
        endpoint: '',
        refreshToken: ''
    })
});

masterService.theater({
    theaterCode: '123'
})
    .then(console.log)
    .catch(console.error);

Code Samples

Code sample are here.