1.1.0 • Published 1 year ago

ts-kintone-package v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

kintoneのプラグイン開発を効率的に行うためのTypeScript対応ライブラリです

公式ドキュメント

本ライブラリのドキュメントは以下です。
『ts-kintone-package』公式ドキュメント

読み込み方法

・npm

npm i ts-kintone-package

・cdn

<script src="https://cdn.jsdelivr.net/npm/ts-kintone-package/dist/index.js"></script>

<script>
const appId = new TSKintone.AppId(1);
</script>

ライブラリ概要

当ライブラリには以下のようなオブジェクトが存在します。

オブジェクト説明
KintoneAppkintoneの1つのアプリ
KintoneFieldkintoneアプリの1つのフィールド
KintoneFieldCodekintoneアプリの1つのフィールドのフィールドコード
KintoneFieldTypekintoneアプリの1つのフィールドのフィールドタイプ
KintoneRecordkintoneアプリの1レコード

使用方法

本ライブラリの使用方法の例を下記に示します。

全kintoneアプリの情報取得

import { KintoneApp, KintoneAppRepository } from "ts-kintone-package";

const kintoneAppRepository = new KintoneAppRepository()
const apps : KintoneApp[] = await kintoneAppRepository.getAll();

自kintoneアプリの情報取得

import { KintoneApp, KintoneAppRepository } from "ts-kintone-package";

const kintoneAppRepository = new KintoneAppRepository()
const currentApp : KintoneApp = await kintoneAppRepository.getCurrentApp();

自kintoneアプリの全てのフィールドを取得

import { KintoneApp, KintoneAppRepository, KintoneField } from "ts-kintone-package";

const kintoneAppRepository = new KintoneAppRepository()
const currentApp : KintoneApp = await kintoneAppRepository.getCurrentApp();
const fields : Map<string, KintoneField> = currentApp.getFieldsMap();

自kintoneアプリのフィールド「フィールドコード1」のフィールドタイプを取得

import { KintoneApp, KintoneAppRepository } from "ts-kintone-package";

const kintoneAppRepository = new KintoneAppRepository()
const currentApp : KintoneApp = await kintoneAppRepository.getCurrentApp();
const fieldType = currentApp.getFields().getField('フィールドコード1').getFieldType();

Github

本ライブラリのソースは以下で管理しています。
Github

公式ドキュメント

公式ドキュメント

お問い合わせ

本ライブラリに対するお問い合わせは以下からお願いします。
CONTACT FORM

1.1.0

1 year ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago