@kintone/rest-api-client 2.0.27 → 2.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +36 -0
- package/README.md +13 -11
- package/package.json +6 -6
- package/umd/KintoneRestAPIClient.js +66 -50
- package/umd/KintoneRestAPIClient.min.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,42 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 2.0.31 (2021-12-24)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @kintone/rest-api-client
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## 2.0.30 (2021-12-24)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @kintone/rest-api-client
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [2.0.29](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client@2.0.28...@kintone/rest-api-client@2.0.29) (2021-12-21)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @kintone/rest-api-client
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## [2.0.28](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client@2.0.27...@kintone/rest-api-client@2.0.28) (2021-12-15)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Bug Fixes
|
|
34
|
+
|
|
35
|
+
* **deps:** update dependency core-js to ^3.19.3 ([#1237](https://github.com/kintone/js-sdk/issues/1237)) ([fdf637b](https://github.com/kintone/js-sdk/commit/fdf637b60dfd3c499259c1e74144fdb8437cc6ef))
|
|
36
|
+
* **deps:** update dependency qs to ^6.10.2 ([#1239](https://github.com/kintone/js-sdk/issues/1239)) ([4505209](https://github.com/kintone/js-sdk/commit/450520989c2e13bcc35a265a754351d76e44fe49))
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
6
42
|
## [2.0.27](https://github.com/kintone/js-sdk/compare/@kintone/rest-api-client@2.0.26...@kintone/rest-api-client@2.0.27) (2021-12-01)
|
|
7
43
|
|
|
8
44
|
|
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# kintone-rest-api-client
|
|
2
2
|
|
|
3
3
|
[](https://badge.fury.io/js/%40kintone%2Frest-api-client)
|
|
4
|
+

|
|
5
|
+

|
|
4
6
|
|
|
5
7
|
API client for Kintone REST API.
|
|
6
8
|
It supports both browser environment (Kintone customization & plugin) and Node.js environment.
|
|
@@ -115,34 +117,34 @@ client.record
|
|
|
115
117
|
|
|
116
118
|
The client supports three authentication methods:
|
|
117
119
|
|
|
118
|
-
1. [Password authentication](https://
|
|
119
|
-
2. [API token authentication](https://
|
|
120
|
-
3. [OAuth authentication](https://
|
|
121
|
-
4. [Session authentication](https://
|
|
120
|
+
1. [Password authentication](https://kintone.dev/en/docs/common/authentication/#password-authentication)
|
|
121
|
+
2. [API token authentication](https://kintone.dev/en/docs/common/authentication/#api-token-authentication)
|
|
122
|
+
3. [OAuth authentication](https://kintone.dev/en/docs/common/authentication/how-to-add-oauth-clients/)
|
|
123
|
+
4. [Session authentication](https://kintone.dev/en/docs/common/authentication/#session-authentication)
|
|
122
124
|
|
|
123
125
|
The required parameters inside `auth` are different by the methods.
|
|
124
126
|
The client determines which method to use by passed parameters.
|
|
125
127
|
|
|
126
|
-
#### 1. Parameters for [Password authentication](https://
|
|
128
|
+
#### 1. Parameters for [Password authentication](https://kintone.dev/en/docs/common/authentication/#password-authentication)
|
|
127
129
|
|
|
128
130
|
| Name | Type | Required | Description |
|
|
129
131
|
| -------- | :----: | :------: | ----------- |
|
|
130
132
|
| username | String | Yes |
|
|
131
133
|
| password | String | Yes |
|
|
132
134
|
|
|
133
|
-
#### 2. Parameters for [API token authentication](https://
|
|
135
|
+
#### 2. Parameters for [API token authentication](https://kintone.dev/en/docs/common/authentication/#api-token-authentication)
|
|
134
136
|
|
|
135
137
|
| Name | Type | Required | Description |
|
|
136
138
|
| -------- | :----------------: | :------: | ------------------------------------------------------- |
|
|
137
139
|
| apiToken | String or String[] | Yes | You can pass multiple api tokens as an array of string. |
|
|
138
140
|
|
|
139
|
-
#### 3. Parameters for [OAuth authentication](https://
|
|
141
|
+
#### 3. Parameters for [OAuth authentication](https://kintone.dev/en/docs/common/authentication/how-to-add-oauth-clients/)
|
|
140
142
|
|
|
141
|
-
| Name | Type | Required | Description
|
|
142
|
-
| ---------- | :----: | :------: |
|
|
143
|
-
| oAuthToken | String | Yes | An OAuth access token you get through the [OAuth process flow](https://
|
|
143
|
+
| Name | Type | Required | Description |
|
|
144
|
+
| ---------- | :----: | :------: | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
145
|
+
| oAuthToken | String | Yes | An OAuth access token you get through the [OAuth process flow](https://kintone.dev/en/docs/common/authentication/how-to-add-oauth-clients/#authorization-code-grant-flow). |
|
|
144
146
|
|
|
145
|
-
#### 4. [Session authentication](https://
|
|
147
|
+
#### 4. [Session authentication](https://kintone.dev/en/docs/common/authentication/#session-authentication)
|
|
146
148
|
|
|
147
149
|
Supported in browser environment only.
|
|
148
150
|
If you omit `auth` parameter, the client uses Session authentication.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kintone/rest-api-client",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.31",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -60,11 +60,11 @@
|
|
|
60
60
|
"@rollup/plugin-babel": "^5.3.0",
|
|
61
61
|
"@rollup/plugin-commonjs": "^21.0.1",
|
|
62
62
|
"@rollup/plugin-json": "^4.1.0",
|
|
63
|
-
"@rollup/plugin-node-resolve": "^13.
|
|
63
|
+
"@rollup/plugin-node-resolve": "^13.1.1",
|
|
64
64
|
"@types/core-js": "^2.5.5",
|
|
65
65
|
"@types/js-base64": "^2.3.2",
|
|
66
66
|
"@types/qs": "^6.9.7",
|
|
67
|
-
"rollup": "^2.
|
|
67
|
+
"rollup": "^2.61.1",
|
|
68
68
|
"rollup-plugin-ecma-version-validator": "^0.1.6",
|
|
69
69
|
"rollup-plugin-node-builtins": "^2.1.2",
|
|
70
70
|
"rollup-plugin-node-globals": "^1.4.0",
|
|
@@ -73,10 +73,10 @@
|
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
75
|
"axios": "^0.24.0",
|
|
76
|
-
"core-js": "^3.19.
|
|
76
|
+
"core-js": "^3.19.3",
|
|
77
77
|
"form-data": "^4.0.0",
|
|
78
78
|
"js-base64": "^2.6.4",
|
|
79
|
-
"qs": "^6.10.
|
|
79
|
+
"qs": "^6.10.2"
|
|
80
80
|
},
|
|
81
81
|
"exports": {
|
|
82
82
|
".": {
|
|
@@ -89,5 +89,5 @@
|
|
|
89
89
|
},
|
|
90
90
|
"./package.json": "./package.json"
|
|
91
91
|
},
|
|
92
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "9a7988308b247348ede1acb4cc10c373ca696e96"
|
|
93
93
|
}
|