diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 38ae5e0cbc..7eb841f1f6 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,5 +1,4 @@ { - "examples/rest-api-client-demo": "5.5.3", "packages/create-plugin": "8.2.3", "packages/customize-uploader": "8.0.13", "packages/dts-gen": "8.0.12", diff --git a/examples/rest-api-client-demo/.eslintrc.js b/examples/rest-api-client-demo/.eslintrc.js deleted file mode 100644 index 1ccef668a0..0000000000 --- a/examples/rest-api-client-demo/.eslintrc.js +++ /dev/null @@ -1,3 +0,0 @@ -module.exports = { - extends: "@cybozu/eslint-config/presets/node-typescript-prettier" -}; diff --git a/examples/rest-api-client-demo/.gitignore b/examples/rest-api-client-demo/.gitignore deleted file mode 100644 index 77738287f0..0000000000 --- a/examples/rest-api-client-demo/.gitignore +++ /dev/null @@ -1 +0,0 @@ -dist/ \ No newline at end of file diff --git a/examples/rest-api-client-demo/CHANGELOG.md b/examples/rest-api-client-demo/CHANGELOG.md deleted file mode 100644 index ca7a8df59f..0000000000 --- a/examples/rest-api-client-demo/CHANGELOG.md +++ /dev/null @@ -1,702 +0,0 @@ -# Change Log - -All notable changes to this project will be documented in this file. -See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. - -### Dependencies - -* The following workspace dependencies were updated - * dependencies - * @kintone/rest-api-client bumped from ^4.0.3 to ^4.1.0 - * devDependencies - * @kintone/customize-uploader bumped from ^7.0.3 to ^7.0.4 - -## [5.5.3](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@5.5.2...@kintone/rest-api-client-demo@5.5.3) (2024-06-18) - - -### Bug Fixes - -* **deps:** update dependency @kintone/rest-api-client to ^5.5.2 ([#2820](https://github.com/kintone/js-sdk/issues/2820)) ([532d6ab](https://github.com/kintone/js-sdk/commit/532d6abde5971941c3187b1a4acd9c82a78bbd53)) - -## [5.5.2](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@5.5.1...@kintone/rest-api-client-demo@5.5.2) (2024-05-08) - - -### Bug Fixes - -* **deps:** update dependency @kintone/rest-api-client to ^5.5.1 ([#2724](https://github.com/kintone/js-sdk/issues/2724)) ([f06f485](https://github.com/kintone/js-sdk/commit/f06f48524e0a67aaf7368e68f9ea00849230345c)) - -## [5.5.1](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@5.5.0...@kintone/rest-api-client-demo@5.5.1) (2024-04-02) - - -### Bug Fixes - -* **deps:** update dependency @kintone/rest-api-client to ^5.5.0 ([#2663](https://github.com/kintone/js-sdk/issues/2663)) ([dd45e99](https://github.com/kintone/js-sdk/commit/dd45e991a7aa9a020de424c088b2e189b582e72a)) - -## [5.5.0](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@5.4.0...@kintone/rest-api-client-demo@5.5.0) (2024-03-27) - - -### Features - -* **rest-api-client:** add `space.addSpaceFromTemplate()` method ([#2638](https://github.com/kintone/js-sdk/issues/2638)) ([4df57dd](https://github.com/kintone/js-sdk/commit/4df57dd3d1d9ad744c3c6ac06e4aa74e2407cc7d)) - - -### Bug Fixes - -* **deps:** update dependency @kintone/rest-api-client to ^5.4.0 ([#2597](https://github.com/kintone/js-sdk/issues/2597)) ([723987a](https://github.com/kintone/js-sdk/commit/723987af0034a5593c2e4172976ef1d6173ce3ae)) - -## [5.4.0](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@5.3.0...@kintone/rest-api-client-demo@5.4.0) (2024-03-19) - - -### Features - -* **rest-api-client:** add `space.addGuests()` method ([#2622](https://github.com/kintone/js-sdk/issues/2622)) ([210f2c4](https://github.com/kintone/js-sdk/commit/210f2c4242183e6ff0718e1dddaeff498ecc3499)) -* **rest-api-client:** add `space.addThreadComment()` method ([#2619](https://github.com/kintone/js-sdk/issues/2619)) ([981e6b6](https://github.com/kintone/js-sdk/commit/981e6b6002f004320574f9ce129483c3b253c247)) -* **rest-api-client:** add `space.deleteGuests()` method ([#2621](https://github.com/kintone/js-sdk/issues/2621)) ([ac96002](https://github.com/kintone/js-sdk/commit/ac960025c1f863c0801d973fa76d03cb88ae4245)) -* **rest-api-client:** add `space.updateSpaceGuests()` method ([#2625](https://github.com/kintone/js-sdk/issues/2625)) ([978ed3c](https://github.com/kintone/js-sdk/commit/978ed3ced2f289d9ec55eee994d0a518e8272ca5)) - - -### Bug Fixes - -* **rest-api-client-demo:** add npm, pnpm support in rest-api-client-demo ([#2626](https://github.com/kintone/js-sdk/issues/2626)) ([52dd902](https://github.com/kintone/js-sdk/commit/52dd902d76e2843d78fb2054a9c9149b7be61591)) - -## [5.3.0](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@5.2.0...@kintone/rest-api-client-demo@5.3.0) (2024-03-12) - - -### Features - -* **rest-api-client:** add `space.getSpaceMembers()` method ([#2599](https://github.com/kintone/js-sdk/issues/2599)) ([2c05fa9](https://github.com/kintone/js-sdk/commit/2c05fa908d2a7244a454e61900eec54fc48008a3)) -* **rest-api-client:** add `space.updateSpaceMembers()` method ([#2603](https://github.com/kintone/js-sdk/issues/2603)) ([5b28413](https://github.com/kintone/js-sdk/commit/5b28413ee902043fead2c5bc5a2539dcf540668a)) -* **rest-api-client:** add `space.updateThread()` method ([#2606](https://github.com/kintone/js-sdk/issues/2606)) ([139e504](https://github.com/kintone/js-sdk/commit/139e504df99f6f77ccdb0ee9e27ee62ac56ac10f)) - -## [5.2.0](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@5.1.0...@kintone/rest-api-client-demo@5.2.0) (2024-03-05) - - -### Features - -* **rest-api-client:** add `space.deleteSpace()` method ([#2590](https://github.com/kintone/js-sdk/issues/2590)) ([3e8f3b9](https://github.com/kintone/js-sdk/commit/3e8f3b96ac48e63b9ddd6ba29b420ab99fcb2d5d)) -* **rest-api-client:** add `space.updateSpaceBody()` method ([#2598](https://github.com/kintone/js-sdk/issues/2598)) ([26151fb](https://github.com/kintone/js-sdk/commit/26151fbbb1177a5df490bf97fe88cf1d61d9dad4)) - -## [5.1.0](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@5.0.10...@kintone/rest-api-client-demo@5.1.0) (2024-02-28) - - -### Features - -* **rest-api-client:** add `space.getSpace()` method ([#2582](https://github.com/kintone/js-sdk/issues/2582)) ([e417752](https://github.com/kintone/js-sdk/commit/e4177526a2910f94faaccba1d1fa9d53096d909a)) - -## [5.0.10](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@5.0.9...@kintone/rest-api-client-demo@5.0.10) (2024-02-07) - - -### Bug Fixes - -* **deps:** update dependency @kintone/rest-api-client to ^5.0.8 ([#2540](https://github.com/kintone/js-sdk/issues/2540)) ([2d65d4b](https://github.com/kintone/js-sdk/commit/2d65d4bc642cc30f1a2a4b99ab40980f0b5d6bd6)) - -## [5.0.9](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@5.0.8...@kintone/rest-api-client-demo@5.0.9) (2024-01-30) - - -### Bug Fixes - -* **deps:** update dependency @kintone/rest-api-client to ^5.0.7 ([#2526](https://github.com/kintone/js-sdk/issues/2526)) ([cd8273c](https://github.com/kintone/js-sdk/commit/cd8273c152ce88f4a0483b83b832cd7fb5a473b7)) - -## [5.0.8](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@5.0.7...@kintone/rest-api-client-demo@5.0.8) (2024-01-23) - - -### Bug Fixes - -* **deps:** update dependency @kintone/rest-api-client to ^5.0.6 ([#2509](https://github.com/kintone/js-sdk/issues/2509)) ([3806377](https://github.com/kintone/js-sdk/commit/38063773c829ac2fcef0c5f1b9960bbb25b1f3b1)) - -## [5.0.7](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@5.0.6...@kintone/rest-api-client-demo@5.0.7) (2023-12-21) - - -### Bug Fixes - -* **deps:** update dependency @kintone/rest-api-client to ^5.0.5 ([#2467](https://github.com/kintone/js-sdk/issues/2467)) ([3a94a3a](https://github.com/kintone/js-sdk/commit/3a94a3a53615a82139f0bc1f603d411a71aaab49)) - -## [5.0.6](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@5.0.5...@kintone/rest-api-client-demo@5.0.6) (2023-12-19) - - -### Bug Fixes - -* **deps:** update dependency prettier to v3 ([#2457](https://github.com/kintone/js-sdk/issues/2457)) ([5a0b859](https://github.com/kintone/js-sdk/commit/5a0b859807530564732caa194e9251f37268b164)) - -## [5.0.5](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@5.0.4...@kintone/rest-api-client-demo@5.0.5) (2023-12-04) - - -### Bug Fixes - -* **deps:** update dependency @kintone/rest-api-client to ^5.0.4 ([#2430](https://github.com/kintone/js-sdk/issues/2430)) ([f6778e6](https://github.com/kintone/js-sdk/commit/f6778e67920bf3842ff1ec610e8085decedad6fa)) - -## [5.0.4](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@5.0.3...@kintone/rest-api-client-demo@5.0.4) (2023-11-08) - - -### Bug Fixes - -* **deps:** update dependency @kintone/rest-api-client to ^5.0.3 ([#2377](https://github.com/kintone/js-sdk/issues/2377)) ([98d4a20](https://github.com/kintone/js-sdk/commit/98d4a20267f813726176af760948f6797a9de03a)) - -## [5.0.3](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@5.0.2...@kintone/rest-api-client-demo@5.0.3) (2023-10-31) - - -### Bug Fixes - -* **deps:** update dependency @kintone/rest-api-client to ^5.0.2 ([#2362](https://github.com/kintone/js-sdk/issues/2362)) ([a5b2e44](https://github.com/kintone/js-sdk/commit/a5b2e4431032b9e7b0659167726290fe0eebd316)) - -## [5.0.2](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@5.0.1...@kintone/rest-api-client-demo@5.0.2) (2023-10-24) - - -### Bug Fixes - -* **deps:** update dependency @kintone/rest-api-client to v5 ([#2322](https://github.com/kintone/js-sdk/issues/2322)) ([1f6b7c1](https://github.com/kintone/js-sdk/commit/1f6b7c1c0a295c24f9559912a3adfd1bfa049335)) - -## [5.0.1](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@5.0.0...@kintone/rest-api-client-demo@5.0.1) (2023-10-17) - - -### Bug Fixes - -* **rest-api-client-demo:** mismatch version of private package ([#2332](https://github.com/kintone/js-sdk/issues/2332)) ([d78643c](https://github.com/kintone/js-sdk/commit/d78643c9e3e4664c366ef119e2b97038a4eb0dbf)) - -## [5.0.0](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@4.0.5...@kintone/rest-api-client-demo@5.0.0) (2023-10-03) - - -### ⚠ BREAKING CHANGES - -* We dropped Node v16 support. Now supported versions are v18 and v20. - -### Bug Fixes - -* **deps:** update dependency @kintone/rest-api-client to ^4.1.1 ([#2300](https://github.com/kintone/js-sdk/issues/2300)) ([7e40f2d](https://github.com/kintone/js-sdk/commit/7e40f2d8fce0e50bcf0b828ee646b351ed193702)) - - -### Build System - -* Drop Node v16 support version ([#2294](https://github.com/kintone/js-sdk/issues/2294)) ([767d657](https://github.com/kintone/js-sdk/commit/767d65749be66b6c2509bb737d8f45085814cc44)) - -## [4.0.4](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@4.0.3...@kintone/rest-api-client-demo@4.0.4) (2023-07-05) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [4.0.3](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@4.0.2...@kintone/rest-api-client-demo@4.0.3) (2023-06-28) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [4.0.2](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@4.0.1...@kintone/rest-api-client-demo@4.0.2) (2023-06-21) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [4.0.1](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@4.0.0...@kintone/rest-api-client-demo@4.0.1) (2023-06-15) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -# [4.0.0](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@3.0.41...@kintone/rest-api-client-demo@4.0.0) (2023-06-07) - -- build!: drop Node v14 support because of the EOL (#2124) ([ef0e004](https://github.com/kintone/js-sdk/commit/ef0e004b40a518a1b5a3aa5d82446c556c742f02)), closes [#2124](https://github.com/kintone/js-sdk/issues/2124) - -### BREAKING CHANGES - -- We dropped Node v14 support. Now supported versions are v16, v18, and v20. - -## [3.0.41](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@3.0.40...@kintone/rest-api-client-demo@3.0.41) (2023-05-31) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [3.0.40](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@3.0.39...@kintone/rest-api-client-demo@3.0.40) (2023-05-24) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [3.0.39](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@3.0.38...@kintone/rest-api-client-demo@3.0.39) (2023-05-17) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [3.0.38](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@3.0.37...@kintone/rest-api-client-demo@3.0.38) (2023-05-10) - -### Bug Fixes - -- **deps:** update dependency yargs to ^17.7.2 ([#2061](https://github.com/kintone/js-sdk/issues/2061)) ([bf4b0d7](https://github.com/kintone/js-sdk/commit/bf4b0d71b4e908bcfc5567e95151c986d0c3a883)) - -## [3.0.37](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@3.0.36...@kintone/rest-api-client-demo@3.0.37) (2023-04-26) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [3.0.36](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@3.0.35...@kintone/rest-api-client-demo@3.0.36) (2023-04-21) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [3.0.35](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@3.0.34...@kintone/rest-api-client-demo@3.0.35) (2023-04-10) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [3.0.34](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@3.0.33...@kintone/rest-api-client-demo@3.0.34) (2023-04-06) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [3.0.33](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@3.0.32...@kintone/rest-api-client-demo@3.0.33) (2023-04-04) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [3.0.32](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@3.0.31...@kintone/rest-api-client-demo@3.0.32) (2023-03-29) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [3.0.31](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@3.0.30...@kintone/rest-api-client-demo@3.0.31) (2023-03-22) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [3.0.30](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@3.0.29...@kintone/rest-api-client-demo@3.0.30) (2023-03-15) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [3.0.29](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@3.0.28...@kintone/rest-api-client-demo@3.0.29) (2023-03-08) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [3.0.28](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@3.0.27...@kintone/rest-api-client-demo@3.0.28) (2023-03-03) - -### Bug Fixes - -- **deps:** update dependency yargs to ^17.7.1 ([#1930](https://github.com/kintone/js-sdk/issues/1930)) ([bb967ef](https://github.com/kintone/js-sdk/commit/bb967ef91516ab4faf6eda20bf4317520255440b)) - -## [3.0.27](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@3.0.26...@kintone/rest-api-client-demo@3.0.27) (2023-02-22) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [3.0.26](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@3.0.25...@kintone/rest-api-client-demo@3.0.26) (2023-02-15) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [3.0.25](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@3.0.24...@kintone/rest-api-client-demo@3.0.25) (2023-02-01) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [3.0.24](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@3.0.23...@kintone/rest-api-client-demo@3.0.24) (2023-01-25) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [3.0.23](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@3.0.22...@kintone/rest-api-client-demo@3.0.23) (2023-01-18) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [3.0.22](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@3.0.21...@kintone/rest-api-client-demo@3.0.22) (2022-12-21) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [3.0.21](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@3.0.20...@kintone/rest-api-client-demo@3.0.21) (2022-12-07) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [3.0.20](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@3.0.19...@kintone/rest-api-client-demo@3.0.20) (2022-11-16) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [3.0.19](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@3.0.18...@kintone/rest-api-client-demo@3.0.19) (2022-11-09) - -### Bug Fixes - -- **deps:** update dependency yargs to ^17.6.1 ([#1823](https://github.com/kintone/js-sdk/issues/1823)) ([3cf0603](https://github.com/kintone/js-sdk/commit/3cf0603e9ff47fb020e444ce8e32831d5f31b0dd)) -- **deps:** update dependency yargs to ^17.6.2 ([#1825](https://github.com/kintone/js-sdk/issues/1825)) ([74d8303](https://github.com/kintone/js-sdk/commit/74d83033ff2363bfd8c2d9ebb096d57132a9906b)) - -## [3.0.18](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@3.0.17...@kintone/rest-api-client-demo@3.0.18) (2022-11-02) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [3.0.17](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@3.0.16...@kintone/rest-api-client-demo@3.0.17) (2022-10-26) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [3.0.16](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@3.0.15...@kintone/rest-api-client-demo@3.0.16) (2022-10-19) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [3.0.15](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@3.0.14...@kintone/rest-api-client-demo@3.0.15) (2022-10-12) - -### Bug Fixes - -- **deps:** update dependency yargs to ^17.6.0 ([#1761](https://github.com/kintone/js-sdk/issues/1761)) ([5c30d84](https://github.com/kintone/js-sdk/commit/5c30d8498bc22dce8e97b87e9462216c3f698b3f)) - -## [3.0.14](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@3.0.13...@kintone/rest-api-client-demo@3.0.14) (2022-10-05) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [3.0.13](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@3.0.12...@kintone/rest-api-client-demo@3.0.13) (2022-09-29) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [3.0.12](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@3.0.11...@kintone/rest-api-client-demo@3.0.12) (2022-09-14) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [3.0.11](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@3.0.10...@kintone/rest-api-client-demo@3.0.11) (2022-08-31) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [3.0.10](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@3.0.9...@kintone/rest-api-client-demo@3.0.10) (2022-08-24) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [3.0.9](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@3.0.8...@kintone/rest-api-client-demo@3.0.9) (2022-08-17) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [3.0.8](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@3.0.7...@kintone/rest-api-client-demo@3.0.8) (2022-08-10) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [3.0.7](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@3.0.6...@kintone/rest-api-client-demo@3.0.7) (2022-08-03) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [3.0.6](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@3.0.5...@kintone/rest-api-client-demo@3.0.6) (2022-07-21) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [3.0.5](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@3.0.4...@kintone/rest-api-client-demo@3.0.5) (2022-06-29) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [3.0.4](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@3.0.3...@kintone/rest-api-client-demo@3.0.4) (2022-06-22) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [3.0.3](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@3.0.2...@kintone/rest-api-client-demo@3.0.3) (2022-06-08) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [3.0.2](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@3.0.1...@kintone/rest-api-client-demo@3.0.2) (2022-06-01) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [3.0.1](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@3.0.0...@kintone/rest-api-client-demo@3.0.1) (2022-05-20) - -### Bug Fixes - -- **deps:** update dependency yargs to ^17.5.1 ([#1507](https://github.com/kintone/js-sdk/issues/1507)) ([21e80f1](https://github.com/kintone/js-sdk/commit/21e80f122c498027b144255aab31f9d39166b783)) - -# [3.0.0](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@2.0.41...@kintone/rest-api-client-demo@3.0.0) (2022-05-13) - -- chore!: drop Node v12 support because of the EOL (BREAKING CHANGE) (#1493) ([0d9dae1](https://github.com/kintone/js-sdk/commit/0d9dae10582fc40d89a1af8db4a2efc1d776a456)), closes [#1493](https://github.com/kintone/js-sdk/issues/1493) - -### Bug Fixes - -- **deps:** update dependency yargs to ^17.4.1 ([#1420](https://github.com/kintone/js-sdk/issues/1420)) ([615b57b](https://github.com/kintone/js-sdk/commit/615b57b39a6d0b5bbc689c8021080ca0c10bc5c1)) -- **deps:** update dependency yargs to ^17.5.0 ([#1494](https://github.com/kintone/js-sdk/issues/1494)) ([43fed86](https://github.com/kintone/js-sdk/commit/43fed86cf50beee1eac1d6a7406dd09530297bdb)) -- **examples:** Run examples by ts-node ([#1488](https://github.com/kintone/js-sdk/issues/1488)) ([3351773](https://github.com/kintone/js-sdk/commit/335177317c13d3ce7c7e273394f2985541a8e8dc)) - -### BREAKING CHANGES - -- drop Node v12 support because of the EOL. - -- ci: update Node version 14 -> 16 - -- ci: remove Node 18.x from test workflow - -## [2.0.41](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@2.0.40...@kintone/rest-api-client-demo@2.0.41) (2022-04-28) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [2.0.40](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@2.0.39...@kintone/rest-api-client-demo@2.0.40) (2022-04-08) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [2.0.39](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@2.0.38...@kintone/rest-api-client-demo@2.0.39) (2022-03-18) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [2.0.38](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@2.0.37...@kintone/rest-api-client-demo@2.0.38) (2022-03-04) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## 2.0.37 (2022-02-14) - -### Bug Fixes - -- **deps:** update dependency @kintone/rest-api-client to ^2.0.34 ([#1341](https://github.com/kintone/js-sdk/issues/1341)) ([0e01847](https://github.com/kintone/js-sdk/commit/0e018475d77c68f42d414d563377aef56a7a1d41)) - -## 2.0.36 (2022-02-04) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## 2.0.35 (2022-01-18) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## 2.0.34 (2022-01-11) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## 2.0.33 (2021-12-24) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## 2.0.32 (2021-12-24) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [2.0.31](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@2.0.30...@kintone/rest-api-client-demo@2.0.31) (2021-12-21) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [2.0.30](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@2.0.29...@kintone/rest-api-client-demo@2.0.30) (2021-12-15) - -### Bug Fixes - -- **deps:** update dependency yargs to ^17.3.0 ([#1242](https://github.com/kintone/js-sdk/issues/1242)) ([8c32641](https://github.com/kintone/js-sdk/commit/8c32641bd8d37298e9131ac952661a79d0ea023e)) - -## [2.0.29](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@2.0.28...@kintone/rest-api-client-demo@2.0.29) (2021-12-01) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [2.0.28](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@2.0.27...@kintone/rest-api-client-demo@2.0.28) (2021-11-24) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [2.0.27](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@2.0.26...@kintone/rest-api-client-demo@2.0.27) (2021-11-17) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [2.0.26](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@2.0.25...@kintone/rest-api-client-demo@2.0.26) (2021-11-09) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [2.0.25](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@2.0.24...@kintone/rest-api-client-demo@2.0.25) (2021-10-27) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [2.0.24](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@2.0.23...@kintone/rest-api-client-demo@2.0.24) (2021-10-20) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [2.0.23](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@2.0.22...@kintone/rest-api-client-demo@2.0.23) (2021-10-13) - -### Bug Fixes - -- **deps:** update dependency yargs to ^17.2.1 ([#1123](https://github.com/kintone/js-sdk/issues/1123)) ([4eb77a1](https://github.com/kintone/js-sdk/commit/4eb77a15d8c39a7a29af2f991bd906ff732eac74)) - -## [2.0.22](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@2.0.21...@kintone/rest-api-client-demo@2.0.22) (2021-10-06) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [2.0.21](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@2.0.20...@kintone/rest-api-client-demo@2.0.21) (2021-09-29) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [2.0.20](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@2.0.19...@kintone/rest-api-client-demo@2.0.20) (2021-09-22) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [2.0.19](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@2.0.18...@kintone/rest-api-client-demo@2.0.19) (2021-09-15) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [2.0.18](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@2.0.17...@kintone/rest-api-client-demo@2.0.18) (2021-09-08) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [2.0.17](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@2.0.16...@kintone/rest-api-client-demo@2.0.17) (2021-09-01) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [2.0.16](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@2.0.15...@kintone/rest-api-client-demo@2.0.16) (2021-08-25) - -### Bug Fixes - -- **deps:** update dependency yargs to ^17.1.1 ([#1054](https://github.com/kintone/js-sdk/issues/1054)) ([d8289ef](https://github.com/kintone/js-sdk/commit/d8289ef3a750ac6f9835183af471eca51cc5a1e9)) - -## [2.0.15](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@2.0.14...@kintone/rest-api-client-demo@2.0.15) (2021-08-18) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [2.0.14](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@2.0.13...@kintone/rest-api-client-demo@2.0.14) (2021-08-11) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [2.0.13](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@2.0.12...@kintone/rest-api-client-demo@2.0.13) (2021-08-04) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [2.0.12](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@2.0.11...@kintone/rest-api-client-demo@2.0.12) (2021-07-28) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [2.0.11](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@2.0.10...@kintone/rest-api-client-demo@2.0.11) (2021-07-21) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [2.0.10](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@2.0.9...@kintone/rest-api-client-demo@2.0.10) (2021-07-12) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [2.0.9](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@2.0.8...@kintone/rest-api-client-demo@2.0.9) (2021-07-06) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [2.0.8](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@2.0.7...@kintone/rest-api-client-demo@2.0.8) (2021-06-29) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [2.0.7](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@2.0.6...@kintone/rest-api-client-demo@2.0.7) (2021-06-22) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [2.0.6](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@2.0.5...@kintone/rest-api-client-demo@2.0.6) (2021-06-15) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [2.0.5](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@2.0.4...@kintone/rest-api-client-demo@2.0.5) (2021-06-08) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [2.0.4](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@2.0.3...@kintone/rest-api-client-demo@2.0.4) (2021-06-04) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [2.0.3](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@2.0.2...@kintone/rest-api-client-demo@2.0.3) (2021-06-01) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [2.0.2](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@2.0.1...@kintone/rest-api-client-demo@2.0.2) (2021-05-25) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [2.0.1](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@2.0.0...@kintone/rest-api-client-demo@2.0.1) (2021-05-18) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -# [2.0.0](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@1.6.0...@kintone/rest-api-client-demo@2.0.0) (2021-05-11) - -### Bug Fixes - -- **deps:** update dependency yargs to v17 ([#856](https://github.com/kintone/js-sdk/issues/856)) ([8b9f290](https://github.com/kintone/js-sdk/commit/8b9f290c7ff0b70a6460843984bdd117a57760ea)) - -### chore - -- drop Node v10 support ([#870](https://github.com/kintone/js-sdk/issues/870)) ([5263389](https://github.com/kintone/js-sdk/commit/526338928e5a89a1f24c7458fc0c7c2452e36cc1)) - -### BREAKING CHANGES - -- drop Node v10 support because of the EOL. - -# [1.6.0](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@1.5.4...@kintone/rest-api-client-demo@1.6.0) (2021-04-27) - -### Features - -- **rest-api-client:** Support App Action Settings API ([#833](https://github.com/kintone/js-sdk/issues/833)) ([bca0d98](https://github.com/kintone/js-sdk/commit/bca0d9805636423c9de5694ea8f908149c9ff65f)) - -## [1.5.4](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@1.5.3...@kintone/rest-api-client-demo@1.5.4) (2021-04-20) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [1.5.3](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@1.5.2...@kintone/rest-api-client-demo@1.5.3) (2021-04-13) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [1.5.2](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@1.5.1...@kintone/rest-api-client-demo@1.5.2) (2021-04-06) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [1.5.1](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@1.5.0...@kintone/rest-api-client-demo@1.5.1) (2021-03-31) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -# [1.5.0](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@1.4.2...@kintone/rest-api-client-demo@1.5.0) (2021-03-23) - -### Features - -- **rest-api-client:** Support graph settings API ([#763](https://github.com/kintone/js-sdk/issues/763)) ([32d691f](https://github.com/kintone/js-sdk/commit/32d691f43931f0b8878424929da528cc6f269de2)), closes [#735](https://github.com/kintone/js-sdk/issues/735) [#731](https://github.com/kintone/js-sdk/issues/731) - -## [1.4.2](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@1.4.1...@kintone/rest-api-client-demo@1.4.2) (2021-03-18) - -### Bug Fixes - -- **rest-api-client:** remove an unnecessary property from the notifications param of app.updateGeneralNotifications ([#750](https://github.com/kintone/js-sdk/issues/750)) ([8b07e24](https://github.com/kintone/js-sdk/commit/8b07e243ff4e1009a20654bf0621f4afc6c810c7)) - -## [1.4.1](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@1.4.0...@kintone/rest-api-client-demo@1.4.1) (2021-03-09) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -# [1.4.0](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@1.3.0...@kintone/rest-api-client-demo@1.4.0) (2021-03-02) - -### Features - -- add PUT /k/v1/preview/app/notifications/reminder.json ([#612](https://github.com/kintone/js-sdk/issues/612)) ([155f5a7](https://github.com/kintone/js-sdk/commit/155f5a7a657777e1039148ce18396fa27fb9f437)) -- **rest-api-client:** add GET /k/v1/app/notifications/reminder.json ([#606](https://github.com/kintone/js-sdk/issues/606)) ([b924a57](https://github.com/kintone/js-sdk/commit/b924a57a5fdd1355f85ac50abeff22438c2535bb)) -- **rest-api-client:** implement GET /k/v1/app/notifications/perRecord.json ([#609](https://github.com/kintone/js-sdk/issues/609)) ([6f5f289](https://github.com/kintone/js-sdk/commit/6f5f2895757e70bb063b4719601f9e1a43e61b61)) -- **rest-api-client:** implement PUT /k/v1/preview/app/notifications/general.json ([#607](https://github.com/kintone/js-sdk/issues/607)) ([cadc46c](https://github.com/kintone/js-sdk/commit/cadc46ccc292527932604a46d9c51619bdb77d6c)) - -# [1.3.0](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@1.2.0...@kintone/rest-api-client-demo@1.3.0) (2021-02-17) - -### Features - -- **rest-api-client:** implement GET /k/v1/app/notifications/general.json ([#604](https://github.com/kintone/js-sdk/issues/604)) ([48f2170](https://github.com/kintone/js-sdk/commit/48f217049c997230f8d2e8efced9e768e37e44bb)) - -# [1.2.0](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@1.1.9...@kintone/rest-api-client-demo@1.2.0) (2021-02-09) - -### Features - -- **rest-api-client:** implement PUT /k/v1/preview/app/notifications/perRecord.json ([#611](https://github.com/kintone/js-sdk/issues/611)) ([e0d502e](https://github.com/kintone/js-sdk/commit/e0d502e64158fad2a50fd1b6a1a946fbeaa3a2ee)) - -## [1.1.9](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@1.1.8...@kintone/rest-api-client-demo@1.1.9) (2021-02-02) - -### Bug Fixes - -- **deps:** update dependency yargs to v16 ([#638](https://github.com/kintone/js-sdk/issues/638)) ([5663030](https://github.com/kintone/js-sdk/commit/5663030c17b7199251a53e1e3831319d1dd2913c)) - -## [1.1.8](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@1.1.7...@kintone/rest-api-client-demo@1.1.8) (2021-01-26) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [1.1.7](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@1.1.6...@kintone/rest-api-client-demo@1.1.7) (2021-01-19) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [1.1.6](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@1.1.5...@kintone/rest-api-client-demo@1.1.6) (2020-12-16) - -### Bug Fixes - -- Modify `properties` type in AppClient ([#469](https://github.com/kintone/js-sdk/issues/469)) ([a6f727f](https://github.com/kintone/js-sdk/commit/a6f727f0e0b266a78c69eb7f3ae0d2df29379cbb)) -- **deps:** update dependency webpack to v5 ([#475](https://github.com/kintone/js-sdk/issues/475)) ([ac6af9d](https://github.com/kintone/js-sdk/commit/ac6af9d3003ff6910a663ac53ca60a27c9999d87)) - -## [1.1.5](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@1.1.4...@kintone/rest-api-client-demo@1.1.5) (2020-10-23) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [1.1.4](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@1.1.3...@kintone/rest-api-client-demo@1.1.4) (2020-10-21) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [1.1.3](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@1.1.2...@kintone/rest-api-client-demo@1.1.3) (2020-10-12) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [1.1.2](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@1.1.1...@kintone/rest-api-client-demo@1.1.2) (2020-09-02) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [1.1.1](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@1.1.0...@kintone/rest-api-client-demo@1.1.1) (2020-08-28) - -### Bug Fixes - -- **deps:** update dependency yargs to ^15.4.1 ([#375](https://github.com/kintone/js-sdk/issues/375)) ([6f8b0cf](https://github.com/kintone/js-sdk/commit/6f8b0cf9880fff8901d09ee31125b6b9135c15b3)) - -# [1.1.0](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@1.0.4...@kintone/rest-api-client-demo@1.1.0) (2020-07-29) - -### Features - -- add `@kintone/profile-loader` ([#286](https://github.com/kintone/js-sdk/issues/286)) ([65257f7](https://github.com/kintone/js-sdk/commit/65257f74d0fce0733f78608a1b8755ea68a8dba8)) -- Add a new option to throw an error for x-cybozu-warning ([#304](https://github.com/kintone/js-sdk/issues/304)) ([cc9ae56](https://github.com/kintone/js-sdk/commit/cc9ae56a7d2c40c46c46c0e7aef50720293e7f58)) - -## [1.0.4](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@1.0.3...@kintone/rest-api-client-demo@1.0.4) (2020-06-22) - -**Note:** Version bump only for package @kintone/rest-api-client-demo - -## [1.0.3](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@1.0.2...@kintone/rest-api-client-demo@1.0.3) (2020-06-12) - -### Bug Fixes - -- upload files larger than 2MB from Node.js ([#264](https://github.com/kintone/js-sdk/issues/264)) ([2ba667d](https://github.com/kintone/js-sdk/commit/2ba667d1069d283b7c296d01e387fb3218960823)) - -## [1.0.2](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client-demo@1.0.1...@kintone/rest-api-client-demo@1.0.2) (2020-06-02) - -### Bug Fixes - -- Enable uploadFile in FileClient.ts to receive string. ([#246](https://github.com/kintone/js-sdk/issues/246)) ([bb1419b](https://github.com/kintone/js-sdk/commit/bb1419b12ba380c4406efa9083bbfa9d73e2ff09)) - -## 1.0.1 (2020-05-19) - -**Note:** Version bump only for package @kintone/rest-api-client-demo diff --git a/examples/rest-api-client-demo/LICENSE b/examples/rest-api-client-demo/LICENSE deleted file mode 100644 index 8e07fb0210..0000000000 --- a/examples/rest-api-client-demo/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) Cybozu, Inc. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/examples/rest-api-client-demo/README.md b/examples/rest-api-client-demo/README.md deleted file mode 100644 index 472ec051c9..0000000000 --- a/examples/rest-api-client-demo/README.md +++ /dev/null @@ -1,75 +0,0 @@ -# Demo scripts for `@kintone/rest-api-client` - -Demo scripts for `@kintone/rest-api-client`. -This is not a published package. - -## Usage - -### Set environment variables - -- `KINTONE_BASE_URL` (**Must**) - - A base URL for your Kintone environment. -- `KINTONE_USERNAME` and `KINTONE_PASSWORD` - - Your username and password for the Kintone environment. - - Required if you use password authentication. -- `KINTONE_API_TOKEN` - - An API token for Kintone apps. - - Required if you use API token authentication. -- `KINTONE_OAUTH_TOKEN` - - An OAuth access token for Kintone apps. - - Required if you use OAuth authentication. -- `KINTONE_DOMAIN` - - A domain name for your Kintone environment. - - Required if you upload scripts to your Kintone environment using `@kintone/customize-uploader`. - - This will be migrated to `KINTONE_BASE_URL` in the future. - -### Modify hard-coded IDs - -Currently, we have hard-coded IDs in files that are in `src/` like `app.ts`, `bulkRequest.ts`, `file.ts`, and `record.ts`. -We are going to fix the problem, but currently, you have to modify the IDs your self. - -We have an app ID in `customize-manifest.json`, so you have to update the app ID if you deploy a script to your Kintone environment. - -### Run a script with `ts-node` - -#### yarn - -``` -% yarn demo record getRecord -``` - -#### npm - -``` -% npm run demo record getRecord -``` - -#### pnpm - -``` -% pnpm demo record getRecord -``` - -### Upload scripts to your Kintone environment - -#### yarn - -``` -% yarn deploy -``` - -#### npm - -``` -% npm run deploy -``` - -#### pnpm - -``` -% pnpm deploy -``` - -## License - -- [MIT](LICENSE) diff --git a/examples/rest-api-client-demo/customize-manifest.json b/examples/rest-api-client-demo/customize-manifest.json deleted file mode 100644 index 2ba5b25baf..0000000000 --- a/examples/rest-api-client-demo/customize-manifest.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "app": "8", - "scope": "ALL", - "desktop": { - "js": ["dist/run-browser.js"], - "css": [] - }, - "mobile": { - "js": ["dist/run-browser.js"], - "css": [] - } -} diff --git a/examples/rest-api-client-demo/package.json b/examples/rest-api-client-demo/package.json deleted file mode 100644 index 51ee3466cc..0000000000 --- a/examples/rest-api-client-demo/package.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "name": "@kintone/rest-api-client-demo", - "version": "5.5.3", - "private": true, - "author": { - "name": "Cybozu, Inc.", - "url": "https://cybozu.co.jp" - }, - "license": "MIT", - "repository": { - "type": "git", - "url": "git+https://github.com/kintone/js-sdk.git", - "directory": "examples/rest-api-client-demo" - }, - "scripts": { - "prebuild": "rimraf dist", - "build": "tsc --build", - "fix": "npm run lint:eslint -- --fix", - "lint:eslint": "eslint 'src/**/*.ts' --max-warnings 0", - "lint:ts": "tsc --noEmit", - "lint": "run-p -l lint:*", - "deploy": "rimraf scripts/dist && run-s webpack upload", - "upload": "kintone-customize-uploader customize-manifest.json", - "demo": "ts-node src/run-node.ts", - "webpack": "webpack" - }, - "bugs": { - "url": "https://github.com/kintone/js-sdk/issues" - }, - "engines": { - "node": ">=18" - }, - "dependencies": { - "@kintone/profile-loader": "workspace:*", - "@kintone/rest-api-client": "^5.5.2", - "yargs": "^17.7.2" - }, - "devDependencies": { - "@kintone/customize-uploader": "^8.0.13", - "@types/yargs": "^17.0.32", - "ts-loader": "^9.5.1", - "ts-node": "^10.9.2", - "webpack": "^5.93.0", - "webpack-cli": "5.1.4" - } -} diff --git a/examples/rest-api-client-demo/src/app.ts b/examples/rest-api-client-demo/src/app.ts deleted file mode 100644 index 3c1a3f6037..0000000000 --- a/examples/rest-api-client-demo/src/app.ts +++ /dev/null @@ -1,785 +0,0 @@ -import type { KintoneRestAPIClient } from "@kintone/rest-api-client"; - -const APP_ID = 8; -const RECORD_ID = 3; -const SPACE_ID = 3; - -export class App { - private client: KintoneRestAPIClient; - constructor(client: KintoneRestAPIClient) { - this.client = client; - } - public async getFormFields() { - try { - console.log(await this.client.app.getFormFields({ app: APP_ID })); - } catch (error) { - console.log(error); - } - } - - public async getFormFieldsPreview() { - try { - console.log( - await this.client.app.getFormFields({ app: APP_ID, preview: true }), - ); - } catch (error) { - console.log(error); - } - } - - public async addFormFields() { - const properties = { - fieldCode: { - type: "SINGLE_LINE_TEXT" as const, - code: "fieldCode", - label: "Text Field", - }, - }; - try { - console.log( - await this.client.app.addFormFields({ app: APP_ID, properties }), - ); - } catch (error) { - console.log(error); - } - } - - public async updateFormFields() { - const properties = { - fieldCode: { - type: "SINGLE_LINE_TEXT" as const, - label: "Text Field 2", - }, - }; - try { - console.log( - await this.client.app.updateFormFields({ app: APP_ID, properties }), - ); - } catch (error) { - console.log(error); - } - } - - public async deleteFormFields() { - const fields = ["fieldCode"]; - - try { - console.log( - await this.client.app.deleteFormFields({ app: APP_ID, fields }), - ); - } catch (error) { - console.log(error); - } - } - - public async getFormLayout() { - try { - console.log(await this.client.app.getFormLayout({ app: APP_ID })); - } catch (error) { - console.log(error); - } - } - - public async getFormLayoutPreview() { - try { - console.log( - await this.client.app.getFormLayout({ app: APP_ID, preview: true }), - ); - } catch (error) { - console.log(error); - } - } - - public async updateFormLayout() { - try { - const { layout } = await this.client.app.getFormLayout({ - app: APP_ID, - preview: true, - }); - const lastRow = layout.pop(); - if (lastRow) { - const newLayout = [lastRow, ...layout]; - - console.log( - await this.client.app.updateFormLayout({ - app: APP_ID, - layout: newLayout, - }), - ); - } - } catch (error) { - console.log(error); - } - } - - public async getViews() { - try { - console.log(await this.client.app.getViews({ app: APP_ID })); - } catch (error) { - console.log(error); - } - } - - public async getViewsPreview() { - try { - console.log( - await this.client.app.getViews({ app: APP_ID, preview: true }), - ); - } catch (error) { - console.log(error); - } - } - - public async updateViews() { - try { - const { views } = await this.client.app.getViews({ app: APP_ID }); - const newViews = views; - console.log( - await this.client.app.updateViews({ app: APP_ID, views: newViews }), - ); - } catch (error) { - console.log(error); - } - } - - public async getAppSettings() { - try { - console.log(await this.client.app.getAppSettings({ app: APP_ID })); - } catch (error) { - console.log(error); - } - } - - public async getAppSettingsPreview() { - try { - console.log( - await this.client.app.getAppSettings({ app: APP_ID, preview: true }), - ); - } catch (error) { - console.log(error); - } - } - - public async updateAppSettings() { - try { - console.log(await this.client.app.updateAppSettings({ app: APP_ID })); - } catch (error) { - console.log(error); - } - } - - public async getProcessManagement() { - try { - console.log(await this.client.app.getProcessManagement({ app: APP_ID })); - } catch (error) { - console.log(error); - } - } - - public async updateProcessManagement() { - try { - console.log( - await this.client.app.updateProcessManagement({ app: APP_ID }), - ); - } catch (error) { - console.log(error); - } - } - - public async getApp() { - try { - console.log(await this.client.app.getApp({ id: APP_ID })); - } catch (error) { - console.log(error); - } - } - - public async getApps() { - try { - console.log(await this.client.app.getApps({})); - } catch (error) { - console.log(error); - } - } - - public async addApp() { - try { - console.log( - await this.client.app.addApp({ name: "TEST_APP", space: SPACE_ID }), - ); - } catch (error) { - console.log(error); - } - } - - public async getDeployStatus() { - try { - console.log( - await this.client.app.getDeployStatus({ - apps: [APP_ID], - }), - ); - } catch (error) { - console.log(error); - } - } - - public async deployApp() { - try { - console.log( - await this.client.app.deployApp({ - apps: [{ app: APP_ID }], - }), - ); - } catch (error) { - console.log(error); - } - } - - public async revertApp() { - try { - console.log( - await this.client.app.deployApp({ - apps: [{ app: APP_ID }], - revert: true, - }), - ); - } catch (error) { - console.log(error); - } - } - - public async getFieldAcl() { - try { - console.log(await this.client.app.getFieldAcl({ app: APP_ID })); - } catch (error) { - console.log(error); - } - } - - public async getFieldAclPreview() { - try { - console.log( - await this.client.app.getFieldAcl({ app: APP_ID, preview: true }), - ); - } catch (error) { - console.log(error); - } - } - - public async getRecordAcl() { - try { - console.log(await this.client.app.getFieldAcl({ app: APP_ID })); - } catch (error) { - console.log(error); - } - } - - public async updateRecordAcl() { - const rights = [ - { - filterCond: 'Customer = "foo"', - entities: [ - { - entity: { - code: "everyone", - type: "GROUP" as const, - }, - viewable: true, - editable: true, - deletable: false, - includeSubs: true, - }, - ], - }, - ]; - try { - console.log( - await this.client.app.updateRecordAcl({ - app: APP_ID, - rights, - }), - ); - } catch (error) { - console.log(error); - } - } - - public async getAppAcl() { - try { - console.log(await this.client.app.getAppAcl({ app: APP_ID })); - } catch (error) { - console.log(error); - } - } - - public async updateAppAcl() { - const rights = [ - { - entity: { - code: "Administrator", - type: "USER" as const, - }, - appEditable: true, - recordViewable: true, - recordAddable: true, - recordEditable: true, - recordDeletable: true, - recordImportable: true, - recordExportable: true, - }, - { - entity: { - code: "everyone", - type: "GROUP" as const, - }, - appEditable: true, - recordViewable: true, - }, - ]; - try { - console.log(await this.client.app.updateAppAcl({ app: APP_ID, rights })); - } catch (error) { - console.log(error); - } - } - - public async evaluateRecordsAcl() { - const params = { - app: APP_ID, - ids: [RECORD_ID], - }; - console.log( - JSON.stringify(await this.client.app.evaluateRecordsAcl(params)), - ); - } - - public async updateFieldAcl() { - const rights = [ - { - code: "Customer", - entities: [ - { - accessibility: "WRITE" as const, - entity: { - code: "Administrator", - type: "USER" as const, - }, - }, - { - accessibility: "READ" as const, - entity: { - code: "everyone", - type: "GROUP" as const, - }, - }, - ], - }, - ]; - try { - console.log( - await this.client.app.updateFieldAcl({ app: APP_ID, rights }), - ); - } catch (error) { - console.log(error); - } - } - - public async getAppCustomize() { - try { - console.log( - JSON.stringify(await this.client.app.getAppCustomize({ app: APP_ID })), - ); - } catch (error) { - console.log(error); - } - } - - public async updateAppCustomize() { - const resource = { - js: [ - { - type: "URL" as const, - url: "https://www.example.com/example.js", - }, - ], - }; - try { - console.log( - await this.client.app.updateAppCustomize({ - app: APP_ID, - scope: "ALL", - desktop: resource, - mobile: resource, - }), - ); - } catch (error) { - console.log(error); - } - } - - public async updateAppCustomizeWithFile() { - const { fileKey } = await this.client.file.uploadFile({ - file: { name: "Hello.js", data: "console.log('Hello');" }, - }); - - const resource = { - js: [ - { - type: "FILE" as const, - file: { - fileKey, - }, - }, - ], - }; - try { - console.log( - await this.client.app.updateAppCustomize({ - app: APP_ID, - scope: "ALL", - desktop: resource, - }), - ); - } catch (error) { - console.log(error); - } - } - - public async getGeneralNotifications() { - try { - console.log( - JSON.stringify( - await this.client.app.getGeneralNotifications({ app: APP_ID }), - ), - ); - } catch (error) { - console.log(error); - } - } - - public async updateGeneralNotifications() { - const notifications = [ - { - entity: { - code: "Administrator", - type: "USER" as const, - }, - includeSubs: true, - recordAdded: false, - recordEdited: true, - commentAdded: false, - statusChanged: true, - fileImported: false, - }, - { - entity: { - code: "everyone", - type: "GROUP" as const, - }, - includeSubs: false, - recordAdded: true, - recordEdited: false, - commentAdded: true, - statusChanged: false, - fileImported: true, - }, - ]; - try { - console.log( - await this.client.app.updateGeneralNotifications({ - app: APP_ID, - notifications, - notifyToCommenter: true, - }), - ); - } catch (error) { - console.log(error); - } - } - - public async getPerRecordNotifications() { - try { - const res = await this.client.app.getPerRecordNotifications({ - app: APP_ID, - }); - res.notifications.forEach((notification) => { - console.log(`notification.title: ${notification.title}`); - console.log(`notification.filterCond: ${notification.filterCond}`); - console.log("targets:"); - notification.targets.forEach((target) => { - console.log( - ` target.entity: (${target.entity.code}: ${target.entity.type})`, - ); - console.log(` target.includeSubs: ${target.includeSubs}`); - }); - }); - } catch (error) { - console.log(error); - } - } - - public async getPerRecordNotificationsPreview() { - try { - const res = await this.client.app.getPerRecordNotifications({ - app: APP_ID, - preview: true, - }); - res.notifications.forEach((notification) => { - console.log(`notification.title: ${notification.title}`); - console.log(`notification.filterCond: ${notification.filterCond}`); - console.log("targets:"); - notification.targets.forEach((target) => { - console.log( - ` target.entity: (${target.entity.code}: ${target.entity.type})`, - ); - console.log(` target.includeSubs: ${target.includeSubs}`); - }); - }); - } catch (error) { - console.log(error); - } - } - - public async updatePerRecordNotifications() { - const notifications = [ - { - filterCond: 'Customer = "foo"', - title: "Send a notification", - targets: [ - { - entity: { - code: "everyone", - type: "GROUP" as const, - }, - includeSubs: false, - }, - ], - }, - ]; - try { - console.log( - await this.client.app.updatePerRecordNotifications({ - app: APP_ID, - notifications, - }), - ); - } catch (error) { - console.log(error); - } - } - - public async getReminderNotifications() { - try { - console.log( - await this.client.app.getReminderNotifications({ app: APP_ID }), - ); - } catch (error) { - console.log(error); - } - } - - public async getReminderNotificationsPreview() { - try { - console.log( - await this.client.app.getReminderNotifications({ - app: APP_ID, - preview: true, - }), - ); - } catch (error) { - console.log(error); - } - } - - public async updateReminderNotifications() { - try { - console.log( - await this.client.app.updateReminderNotifications({ - app: APP_ID, - notifications: [ - { - timing: { - code: "作成日時", - daysLater: "1", - hoursLater: "2", - }, - title: "This reminder was updated by rest-api-client-demo", - targets: [ - { - entity: { - type: "USER", - code: "Administrator", - } as const, - includeSubs: false, - }, - ], - }, - ], - timezone: "Asia/Tokyo", - }), - ); - } catch (error) { - console.log(error); - } - } - - public async getReports() { - try { - console.log(await this.client.app.getReports({ app: APP_ID })); - } catch (error) { - console.log(error); - } - } - - public async getReportsPreview() { - try { - console.log( - await this.client.app.getReports({ app: APP_ID, preview: true }), - ); - } catch (error) { - console.log(error); - } - } - - public async updateReports() { - try { - console.log( - await this.client.app.updateReports({ - app: APP_ID, - reports: { - "Graph 1": { - chartType: "TABLE", - name: "Graph 1", - index: 0, - groups: [ - { - code: "Status", - }, - ], - aggregations: [ - { - type: "COUNT", - }, - ], - filterCond: "", - sorts: [ - { - by: "TOTAL", - order: "DESC", - }, - ], - }, - "Graph 2": { - chartType: "LINE", - name: "Graph 2", - index: 1, - groups: [ - { - code: "ReceptionDate", - per: "MONTH", - }, - { - code: "QType", - }, - ], - aggregations: [ - { - type: "COUNT", - }, - ], - filterCond: "", - sorts: [ - { - by: "GROUP1", - order: "ASC", - }, - ], - }, - }, - }), - ); - } catch (error) { - console.log(error); - } - } - - public async getAppActions() { - try { - console.log(await this.client.app.getAppActions({ app: APP_ID })); - } catch (error) { - console.log(error); - } - } - - public async getAppActionsPreview() { - try { - console.log( - await this.client.app.getAppActions({ app: APP_ID, preview: true }), - ); - } catch (error) { - console.log(error); - } - } - - public async updateAppActions() { - try { - console.log( - await this.client.app.updateAppActions({ - app: APP_ID, - actions: { - Action_A: { - name: "Action_A", - index: "0", - destApp: { - code: "INVOICE", - }, - mappings: [ - { - srcType: "FIELD", - srcField: "CompanyName", - destField: "CompanyName", - }, - { - srcType: "FIELD", - srcField: "DivisionName", - destField: "DivisionName", - }, - { - srcType: "RECORD_URL", - destField: "URL", - }, - ], - entities: [ - { - type: "USER", - code: "Administrator", - }, - ], - }, - }, - }), - ); - } catch (error) { - console.log(error); - } - } - - public async move() { - try { - console.log(await this.client.app.move({ app: APP_ID, space: SPACE_ID })); - } catch (error) { - console.log(error); - } - } - - public async getPlugins() { - try { - console.log( - await this.client.app.getPlugins({ app: APP_ID, lang: "en" }), - ); - } catch (error) { - console.log(error); - } - } -} diff --git a/examples/rest-api-client-demo/src/bulkRequest.ts b/examples/rest-api-client-demo/src/bulkRequest.ts deleted file mode 100644 index d57ca541e5..0000000000 --- a/examples/rest-api-client-demo/src/bulkRequest.ts +++ /dev/null @@ -1,102 +0,0 @@ -import type { KintoneRestAPIClient } from "@kintone/rest-api-client"; - -const APP_ID = 8; -const RECORD_ID = 3; - -export class BulkRequest { - private client: KintoneRestAPIClient; - constructor(client: KintoneRestAPIClient) { - this.client = client; - } - - public async run() { - const params = { - requests: [ - { - method: "POST", - api: "/k/v1/record.json", - payload: { - app: APP_ID, - record: { - Customer: { - value: "example", - }, - }, - }, - }, - { - method: "PUT", - api: "/k/v1/record.json", - payload: { - app: APP_ID, - id: RECORD_ID, - record: { - Customer: { - value: "example2", - }, - }, - }, - }, - { - method: "DELETE", - api: "/k/v1/records.json", - payload: { - app: APP_ID, - ids: [10, 11], - }, - }, - ], - }; - try { - console.log(await this.client.bulkRequest(params)); - } catch (error) { - console.log(error); - } - } - - public async runWithEndpointName() { - const params = { - requests: [ - { - method: "POST", - endpointName: "record" as const, - payload: { - app: APP_ID, - record: { - Customer: { - value: "example1", - }, - }, - }, - }, - { - method: "POST", - endpointName: "record" as const, - payload: { - app: APP_ID, - record: { - Customer: { - value: "example2", - }, - }, - }, - }, - { - method: "POST", - endpointName: "record" as const, - payload: { - app: APP_ID, - Customer: { - value: "example3", - }, - }, - }, - ], - }; - try { - console.log(await this.client.bulkRequest(params)); - } catch (error) { - console.log(error); - } - } -} diff --git a/examples/rest-api-client-demo/src/file.ts b/examples/rest-api-client-demo/src/file.ts deleted file mode 100644 index 0324f3dc89..0000000000 --- a/examples/rest-api-client-demo/src/file.ts +++ /dev/null @@ -1,75 +0,0 @@ -import type { KintoneRestAPIClient } from "@kintone/rest-api-client"; - -const APP_ID = 8; - -export class File { - private client: KintoneRestAPIClient; - constructor(client: KintoneRestAPIClient) { - this.client = client; - } - - public async uploadFile( - file: { name: string; data: string | ArrayBuffer } = { - name: "Hello.text", - data: "Hello World!", - }, - ) { - const { fileKey } = await this.client.file.uploadFile({ - file, - }); - console.log(fileKey); - this.client.record.addRecord({ - app: APP_ID, - record: { - Customer: { - value: `fileKey: ${fileKey}`, - }, - Attachment: { - value: [{ fileKey }], - }, - }, - }); - } - - public async uploadFileByPath() { - const { fileKey } = await this.client.file.uploadFile({ - file: { path: "./foo.txt" }, - }); - console.log(fileKey); - this.client.record.addRecord({ - app: APP_ID, - record: { - Customer: { - value: `fileKey: ${fileKey}`, - }, - Attachment: { - value: [{ fileKey }], - }, - }, - }); - } - - public async downloadFile() { - const { record } = await this.client.record.getRecord({ - app: APP_ID, - id: 75085, - }); - - const fileField = record.Attachment; - let data; - if (fileField.type === "FILE") { - data = await this.client.file.downloadFile({ - fileKey: fileField.value[0].fileKey, - }); - // console.log(data.toString()); - } - return data; - } - - public async downloadAndUploadFile() { - const data = await this.downloadFile(); - if (data) { - await this.uploadFile({ name: "image.png", data }); - } - } -} diff --git a/examples/rest-api-client-demo/src/record.ts b/examples/rest-api-client-demo/src/record.ts deleted file mode 100644 index bcd2c9fc83..0000000000 --- a/examples/rest-api-client-demo/src/record.ts +++ /dev/null @@ -1,320 +0,0 @@ -import type { KintoneRestAPIClient } from "@kintone/rest-api-client"; - -const APP_ID = 8; -const RECORD_ID = 3; - -export class Record { - private client: KintoneRestAPIClient; - constructor(client: KintoneRestAPIClient) { - this.client = client; - } - public async getRecord() { - try { - console.log( - await this.client.record.getRecord({ app: APP_ID, id: RECORD_ID }), - ); - } catch (error) { - console.log(error); - } - } - public async getRecordWithError() { - try { - console.log( - await this.client.record.getRecord({ app: 99999, id: RECORD_ID }), - ); - } catch (error) { - console.log(error); - } - } - public async deleteRecord() { - const ids = [21]; - const revisions = ["1"]; - console.log( - await this.client.record.deleteRecords({ app: APP_ID, ids, revisions }), - ); - } - public async addRecord() { - // const code = "field code" - - // const record = { - // [code]: { - // value: "field value" - // } - // }; - console.log( - await this.client.record.addRecord({ app: APP_ID /* , record*/ }), - ); - } - public async addRecordUsingMultipleApiTokens() { - const params = { - app: APP_ID, - record: { - Lookup: { - value: "example", - }, - }, - }; - console.log(await this.client.record.addRecord(params)); - } - public async updateRecord() { - const params = { - app: APP_ID, - id: 22, - record: { - Customer: { - value: "example", - }, - }, - }; - console.log(await this.client.record.updateRecord(params)); - } - - public async upsertRecord() { - const params = { - app: APP_ID, - updateKey: { - field: "Code", - value: 300, - }, - record: { - Customer: { - value: "upsertTest", - }, - }, - }; - console.log(await this.client.record.upsertRecord(params)); - } - - public async getRecords() { - console.log( - await this.client.record.getRecords({ - app: APP_ID, - fields: [], - totalCount: true, - }), - ); - } - - public async addRecords() { - console.log( - await this.client.record.addRecords({ - app: APP_ID, - records: [{}, {}, {}], - }), - ); - } - - public async updateRecords() { - const params = { - app: APP_ID, - records: [ - { - id: 8, - record: { - Customer: { - value: "example", - }, - }, - }, - { - updateKey: { - field: "Code", - value: "Case1", - }, - record: { - Customer: { - value: "example2", - }, - }, - }, - ], - }; - - console.log(await this.client.record.updateRecords(params)); - } - - public async createCursor() { - console.log( - await this.client.record.createCursor({ - app: APP_ID, - fields: ["Customer", "Person"], - size: 10, - }), - ); - } - - public async getRecordsByCursor() { - const cursorId = ""; - console.log(await this.client.record.getRecordsByCursor({ id: cursorId })); - } - - public async deleteCursor() { - const cursorId = ""; - console.log(await this.client.record.deleteCursor({ id: cursorId })); - } - - public async getAllRecords() { - console.log( - await this.client.record.getAllRecords({ - app: APP_ID, - fields: ["Customer"], - condition: 'Customer != "foo"', - orderBy: "Customer desc", - withCursor: false, - }), - ); - } - - public async getAllRecordsWithId() { - console.log( - await this.client.record.getAllRecordsWithId({ - app: APP_ID, - fields: [], - condition: 'Customer != "foo"', - }), - ); - } - - public async getAllRecordsWithOffset() { - console.log( - await this.client.record.getAllRecordsWithOffset({ - app: APP_ID, - fields: [], - condition: 'Customer != "foo"', - }), - ); - } - - public async getAllRecordsWithCursor() { - console.log( - await this.client.record.getAllRecordsWithCursor({ - app: APP_ID, - fields: ["Customer", "Person"], - }), - ); - } - - public async addAllRecords() { - const records = Array.from({ length: 3000 }, (_, index) => index + 1).map( - (value) => ({ - Customer: { - value, - }, - }), - ); - console.dir( - await this.client.record.addAllRecords({ - app: APP_ID, - records, - }), - { depth: 5 }, - ); - } - - public async updateAllRecords() { - const records = await this.client.record.getAllRecords({ - app: APP_ID, - condition: 'Customer = "foo"', - }); - const result = await this.client.record.updateAllRecords({ - app: APP_ID, - records: records.map((record) => { - if (record.$id.type === "__ID__") { - return { - id: record.$id.value, - record: { Customer: { value: "bar" } }, - }; - } - throw new Error(); - }), - }); - console.log(result); - } - - public async deleteAllRecords() { - const records = await this.client.record.getAllRecords({ app: APP_ID }); - try { - const result = await this.client.record.deleteAllRecords({ - app: APP_ID, - records: records.map((record) => { - if ( - record.$id.type === "__ID__" && - record.$revision.type === "__REVISION__" - ) { - return { - id: record.$id.value, - revision: record.$revision.value, - }; - } - throw new Error(); - }), - }); - console.log(result); - } catch (e) { - console.dir(e, { depth: 5 }); - } - } - - public async addRecordComment() { - const params = { - app: APP_ID, - record: RECORD_ID, - comment: { - text: "Hello", - mentions: [ - { - code: "Administrator", - type: "USER" as const, - }, - ], - }, - }; - console.log(await this.client.record.addRecordComment(params)); - } - - public async deleteRecordComment() { - const params = { - app: APP_ID, - record: RECORD_ID, - comment: 1, - }; - console.log(await this.client.record.deleteRecordComment(params)); - } - - public async getRecordComments() { - const params = { - app: APP_ID, - record: RECORD_ID, - order: "desc" as const, - offset: 5, - limit: 5, - }; - console.log(await this.client.record.getRecordComments(params)); - } - - public async updateRecordAssignees() { - const params = { - app: APP_ID, - id: RECORD_ID, - assignees: [], - }; - console.log(await this.client.record.updateRecordAssignees(params)); - } - - public async updateRecordStatus() { - const params = { - action: "action1to2", - app: APP_ID, - id: RECORD_ID, - }; - console.log(await this.client.record.updateRecordStatus(params)); - } - - public async updateRecordsStatus() { - const params = { - app: APP_ID, - records: [{ id: RECORD_ID, action: "action1to2" }], - }; - console.log(await this.client.record.updateRecordsStatus(params)); - } -} diff --git a/examples/rest-api-client-demo/src/run-browser.ts b/examples/rest-api-client-demo/src/run-browser.ts deleted file mode 100644 index f27179f989..0000000000 --- a/examples/rest-api-client-demo/src/run-browser.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { KintoneRestAPIClient } from "@kintone/rest-api-client"; -import { Record } from "./record"; -import { App } from "./app"; -import { File } from "./file"; -import { Space } from "./space"; - -declare const window: { - KintoneRestAPIClientDemo: any; -}; - -const client = new KintoneRestAPIClient({ - baseUrl: process.env.KINTONE_BASE_URL || "", - auth: {}, - featureFlags: { - enableAbortSearchError: true, - }, -}); - -window.KintoneRestAPIClientDemo = { - record: new Record(client), - app: new App(client), - space: new Space(client), - file: new File(client), -}; diff --git a/examples/rest-api-client-demo/src/run-node.ts b/examples/rest-api-client-demo/src/run-node.ts deleted file mode 100644 index 5396ece1c4..0000000000 --- a/examples/rest-api-client-demo/src/run-node.ts +++ /dev/null @@ -1,105 +0,0 @@ -import { KintoneRestAPIClient } from "@kintone/rest-api-client"; -import { loadProfile } from "@kintone/profile-loader"; -import yargs from "yargs"; -import { Record } from "./record"; -import { App } from "./app"; -import { Space } from "./space"; -import { File } from "./file"; -import { BulkRequest } from "./bulkRequest"; - -const buildClient = (argv: any): KintoneRestAPIClient => { - const config = loadProfile({ profile: argv.profile }); - // console.log(`target environment is ${config.baseUrl}`); - const { apiToken, username, password, oAuthToken, baseUrl } = config; - let auth; - switch (argv.authType) { - case "apiToken": { - auth = { apiToken }; - break; - } - case "oAuthToken": { - auth = { oAuthToken }; - break; - } - default: { - auth = { username, password }; - } - } - - return new KintoneRestAPIClient({ - baseUrl: baseUrl || undefined, - guestSpaceId: argv.guestSpaceId || undefined, - auth, - featureFlags: { - enableAbortSearchError: true, - }, - }); -}; - -const prepareMethod = (y: any) => { - y.positional("method", { - describe: "call method", - }); -}; - -// eslint-disable-next-line no-unused-expressions -yargs - .command( - "app [method]", - "run script for AppClient", - prepareMethod, - (argv: any) => { - // @ts-ignore - new App(buildClient(argv))[argv.method](); - }, - ) - .command( - "record [method]", - "run script for RecordClient", - prepareMethod, - (argv: any) => { - // @ts-ignore - new Record(buildClient(argv))[argv.method](); - }, - ) - .command( - "space [method]", - "run script for SpaceClient", - prepareMethod, - (argv: any) => { - // @ts-ignore - new Space(buildClient(argv))[argv.method](); - }, - ) - .command( - "file [method]", - "run script for FileClient", - prepareMethod, - (argv: any) => { - // @ts-ignore - new File(buildClient(argv))[argv.method](); - }, - ) - .command( - "bulkRequest [method]", - "run script for bulkRequestClient", - prepareMethod, - (argv: any) => { - // @ts-ignore - new BulkRequest(buildClient(argv))[argv.method](); - }, - ) - .option("authType", { - desc: "Auth type", - type: "string", - default: "password", - }) - .option("profile", { - desc: "Profile", - type: "string", - }) - .option("guest-space-id", { - describe: "The ID of guest space", - type: "string", - requiresArg: true, - }).argv; diff --git a/examples/rest-api-client-demo/src/space.ts b/examples/rest-api-client-demo/src/space.ts deleted file mode 100644 index 4af55b3c0e..0000000000 --- a/examples/rest-api-client-demo/src/space.ts +++ /dev/null @@ -1,226 +0,0 @@ -import type { KintoneRestAPIClient } from "@kintone/rest-api-client"; - -const SPACE_ID = 8; -const SPACE_TEMPLATE_ID = 1; -const GUEST_SPACE_ID = 9; -const THREAD_ID = 8; - -export class Space { - private client: KintoneRestAPIClient; - constructor(client: KintoneRestAPIClient) { - this.client = client; - } - public async getSpace() { - try { - console.log(await this.client.space.getSpace({ id: SPACE_ID })); - } catch (error) { - console.log(error); - } - } - - public async deleteSpace() { - try { - console.log(await this.client.space.deleteSpace({ id: SPACE_ID })); - } catch (error) { - console.log(error); - } - } - - public async updateSpaceBody() { - const body = "This is a updated space body"; - try { - console.log( - await this.client.space.updateSpaceBody({ id: SPACE_ID, body }), - ); - } catch (error) { - console.log(error); - } - } - - public async getSpaceMembers() { - try { - console.log(await this.client.space.getSpaceMembers({ id: SPACE_ID })); - } catch (error) { - console.log(error); - } - } - - public async updateSpaceMembers() { - const spaceMembers = { - id: SPACE_ID, - members: [ - { - entity: { - type: "USER" as const, - code: "user1", - }, - isAdmin: true, - includeSubs: false, - }, - { - entity: { - type: "USER" as const, - code: "user2", - }, - isAdmin: false, - includeSubs: false, - }, - { - entity: { - type: "GROUP" as const, - code: "group1", - }, - isAdmin: false, - includeSubs: true, - }, - ], - }; - - try { - console.log(await this.client.space.updateSpaceMembers(spaceMembers)); - } catch (error) { - console.log(error); - } - } - - public async addThread() { - const name = "The thread added via rest-api-client"; - try { - console.log(await this.client.space.addThread({ space: SPACE_ID, name })); - } catch (error) { - console.log(error); - } - } - - public async updateThread() { - const body = "This is an updated thread body"; - const name = "Updated Thread Name"; - try { - console.log( - await this.client.space.updateThread({ id: THREAD_ID, body, name }), - ); - } catch (error) { - console.log(error); - } - } - - public async addThreadComment() { - const params = { - space: "8", - thread: "1", - comment: { - text: "This is a comment", - files: [ - { - fileKey: "file1", - width: 100, - }, - ], - mentions: [ - { - code: "user1", - type: "USER" as const, - }, - { - code: "user2", - type: "USER" as const, - }, - ], - }, - }; - try { - console.log(await this.client.space.addThreadComment(params)); - } catch (error) { - console.log(error); - } - } - - public async addGuests() { - const guests = [ - { - code: "guest1@example.com", - password: "password123", - timezone: "America/Los_Angeles", - locale: "en" as const, - image: "78a586f2-e73e-4a70-bec2-43976a60746e", // replace with the fileKey of the uploaded file - name: "John Doe", - company: "Company Name", - division: "Sales", - phone: "999-456-7890", - callto: "skypecallto", - }, - ]; - try { - console.log(await this.client.space.addGuests({ guests })); - } catch (error) { - console.log(error); - } - } - - public async deleteGuests() { - const guests = ["abc1@gmail.com", "abc2@gmail.com", "abc3@gmail.com"]; - try { - console.log(await this.client.space.deleteGuests({ guests })); - } catch (error) { - console.log(error); - } - } - - public async updateSpaceGuests() { - const guests = [ - "guestUser1@gmail.com", - "guestUser2@gmail.com", - "guestUser3@gmail.com", - ]; - - try { - console.log( - await this.client.space.updateSpaceGuests({ - id: GUEST_SPACE_ID, - guests, - }), - ); - } catch (error) { - console.log(error); - } - } - - public async addSpaceFromTemplate() { - const spaceTemplate = { - id: SPACE_TEMPLATE_ID, - name: "New Space from Template", - members: [ - { - entity: { - code: "cybozu", - type: "USER" as const, - }, - isAdmin: true, - }, - { - entity: { - code: "user1", - type: "USER" as const, - }, - isAdmin: false, - }, - { - entity: { - code: "group1", - type: "GROUP" as const, - }, - isAdmin: false, - includeSubs: true, - }, - ], - isPrivate: false, - isGuest: false, - }; - - try { - console.log(await this.client.space.addSpaceFromTemplate(spaceTemplate)); - } catch (error) { - console.log(error); - } - } -} diff --git a/examples/rest-api-client-demo/tsconfig.json b/examples/rest-api-client-demo/tsconfig.json deleted file mode 100644 index a2b507fe32..0000000000 --- a/examples/rest-api-client-demo/tsconfig.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "extends": "../../packages/tsconfig-base.json", - "compilerOptions": { - "target": "es5", - "outDir": "./dist", - "rootDir": "./src", - "typeRoots": [ - "node_modules/@types", - "../../node_modules/@types", - "types" - ] - }, - "references": [ - { "path": "../../packages/profile-loader" }, - { "path": "../../packages/rest-api-client" }, - { "path": "../../packages/customize-uploader" }, - ] -} diff --git a/examples/rest-api-client-demo/webpack.config.js b/examples/rest-api-client-demo/webpack.config.js deleted file mode 100644 index 4f7a69a5ef..0000000000 --- a/examples/rest-api-client-demo/webpack.config.js +++ /dev/null @@ -1,33 +0,0 @@ -/* eslint-disable node/no-unpublished-require */ -const path = require("path"); -const webpack = require("webpack"); - -module.exports = { - mode: "development", - entry: { - "run-browser": "./src/run-browser.ts", - }, - output: { - path: path.resolve(__dirname, "dist"), - filename: "[name].js", - }, - resolve: { - extensions: [".ts", ".js"], - }, - module: { - rules: [ - { - test: /\.ts$/, - loader: "ts-loader", - }, - ], - }, - plugins: [ - new webpack.DefinePlugin({ - "process.env.KINTONE_BASE_URL": JSON.stringify( - process.env.KINTONE_BASE_URL - ), - }), - ], - devtool: "inline-cheap-source-map", -}; diff --git a/packages/tsconfig.json b/packages/tsconfig.json index 5b57a485e2..2aff0bf637 100644 --- a/packages/tsconfig.json +++ b/packages/tsconfig.json @@ -11,6 +11,5 @@ { "path": "./profile-loader"}, { "path": "./rest-api-client" }, { "path": "./webpack-plugin-kintone-plugin"}, - { "path": "../examples/rest-api-client-demo"} ] } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3f1b86fac2..26c13871b7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -68,37 +68,6 @@ importers: specifier: ^5.5.3 version: 5.5.3 - examples/rest-api-client-demo: - dependencies: - '@kintone/profile-loader': - specifier: workspace:* - version: link:../../packages/profile-loader - '@kintone/rest-api-client': - specifier: ^5.5.2 - version: link:../../packages/rest-api-client - yargs: - specifier: ^17.7.2 - version: 17.7.2 - devDependencies: - '@kintone/customize-uploader': - specifier: ^8.0.13 - version: link:../../packages/customize-uploader - '@types/yargs': - specifier: ^17.0.32 - version: 17.0.32 - ts-loader: - specifier: ^9.5.1 - version: 9.5.1(typescript@5.5.3)(webpack@5.93.0) - ts-node: - specifier: ^10.9.2 - version: 10.9.2(@types/node@18.19.39)(typescript@5.5.3) - webpack: - specifier: ^5.93.0 - version: 5.93.0(webpack-cli@5.1.4) - webpack-cli: - specifier: 5.1.4 - version: 5.1.4(webpack@5.93.0) - packages/create-plugin: dependencies: chalk: diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index d0a7d7bd14..3283425554 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,6 +1,5 @@ packages: - "packages/**" - - "examples/**" - "!**/lib/**" - "!**/esm/**" - "!**/templates/**" diff --git a/release-please-config.json b/release-please-config.json index feb93e77e3..b5cb98fa6a 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -11,10 +11,6 @@ "tag-separator": "@", "monorepo-tags": true, "packages": { - "examples/rest-api-client-demo": { - "package-name": "@kintone/rest-api-client-demo", - "component": "@kintone/rest-api-client-demo" - }, "packages/create-plugin": { "package-name": "@kintone/create-plugin", "component": "@kintone/create-plugin"