@kintone/rest-api-client 3.3.4 → 3.3.6
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/esm/KintoneFields/exportTypes/__checks__/usecases/field.js +1 -1
- package/esm/KintoneFields/exportTypes/__checks__/usecases/layout.js +1 -1
- package/esm/KintoneFields/exportTypes/__checks__/usecases/property.js +1 -1
- package/esm/KintoneFields/types/field.d.ts +34 -34
- package/esm/KintoneFields/types/fieldLayout.d.ts +29 -29
- package/esm/KintoneFields/types/layout.d.ts +4 -4
- package/esm/KintoneFields/types/property.d.ts +32 -32
- package/esm/KintoneRequestConfigBuilder.d.ts +1 -1
- package/esm/KintoneRequestConfigBuilder.js +1 -1
- package/esm/KintoneRestAPIClient.d.ts +3 -3
- package/esm/__tests__/KintoneRequestConfigBuilder.test.js +1 -1
- package/esm/__tests__/KintoneResponseHandler.test.js +1 -1
- package/esm/client/AppClient.d.ts +6 -6
- package/esm/client/AppClient.js +1 -1
- package/esm/client/AppClient.js.map +1 -1
- package/esm/client/BulkRequestClient.d.ts +1 -1
- package/esm/client/FileClient.js +1 -1
- package/esm/client/RecordClient.d.ts +1 -1
- package/esm/client/RecordClient.js +1 -1
- package/esm/client/__tests__/AppClient.test.js +1 -1
- package/esm/client/__tests__/BulkRequestClient.test.js +1 -1
- package/esm/client/__tests__/File.test.js +1 -1
- package/esm/client/__tests__/RecordClient.test.js +1 -1
- package/esm/client/types/app/action.d.ts +7 -7
- package/esm/client/types/app/customize.d.ts +5 -5
- package/esm/client/types/app/form.d.ts +2 -2
- package/esm/client/types/app/index.d.ts +3 -3
- package/esm/client/types/app/notification.d.ts +6 -6
- package/esm/client/types/app/processManagement.d.ts +7 -7
- package/esm/client/types/app/report.d.ts +38 -38
- package/esm/client/types/app/right.d.ts +12 -12
- package/esm/client/types/app/view.d.ts +7 -7
- package/esm/client/types/entity.d.ts +2 -2
- package/esm/client/types/index.d.ts +3 -3
- package/esm/client/types/record/index.d.ts +5 -5
- package/esm/error/KintoneRestAPIError.d.ts +4 -4
- package/esm/http/AxiosClient.js +1 -1
- package/esm/http/HttpClientInterface.d.ts +6 -6
- package/esm/http/MockClient.d.ts +1 -1
- package/esm/http/MockClient.js +1 -1
- package/esm/platform/UnsupportedPlatformError.d.ts +1 -1
- package/esm/platform/__tests__/browser.test.js +1 -1
- package/esm/platform/browser.js +1 -1
- package/esm/platform/index.d.ts +1 -1
- package/esm/platform/node.js +1 -1
- package/esm/types/auth.d.ts +6 -6
- package/lib/KintoneFields/exportTypes/__checks__/usecases/field.js +1 -1
- package/lib/KintoneFields/exportTypes/__checks__/usecases/layout.js +1 -1
- package/lib/KintoneFields/exportTypes/__checks__/usecases/property.js +1 -1
- package/lib/KintoneFields/types/field.d.ts +34 -34
- package/lib/KintoneFields/types/fieldLayout.d.ts +29 -29
- package/lib/KintoneFields/types/layout.d.ts +4 -4
- package/lib/KintoneFields/types/property.d.ts +32 -32
- package/lib/KintoneRequestConfigBuilder.d.ts +1 -1
- package/lib/KintoneRequestConfigBuilder.js +1 -1
- package/lib/KintoneRestAPIClient.d.ts +3 -3
- package/lib/__tests__/KintoneRequestConfigBuilder.test.js +1 -1
- package/lib/__tests__/KintoneResponseHandler.test.js +1 -1
- package/lib/client/AppClient.d.ts +6 -6
- package/lib/client/AppClient.js +1 -1
- package/lib/client/AppClient.js.map +1 -1
- package/lib/client/BulkRequestClient.d.ts +1 -1
- package/lib/client/FileClient.js +1 -1
- package/lib/client/RecordClient.d.ts +1 -1
- package/lib/client/RecordClient.js +1 -1
- package/lib/client/__tests__/AppClient.test.js +1 -1
- package/lib/client/__tests__/BulkRequestClient.test.js +1 -1
- package/lib/client/__tests__/File.test.js +1 -1
- package/lib/client/__tests__/RecordClient.test.js +1 -1
- package/lib/client/types/app/action.d.ts +7 -7
- package/lib/client/types/app/customize.d.ts +5 -5
- package/lib/client/types/app/form.d.ts +2 -2
- package/lib/client/types/app/index.d.ts +3 -3
- package/lib/client/types/app/notification.d.ts +6 -6
- package/lib/client/types/app/processManagement.d.ts +7 -7
- package/lib/client/types/app/report.d.ts +38 -38
- package/lib/client/types/app/right.d.ts +12 -12
- package/lib/client/types/app/view.d.ts +7 -7
- package/lib/client/types/entity.d.ts +2 -2
- package/lib/client/types/index.d.ts +3 -3
- package/lib/client/types/record/index.d.ts +5 -5
- package/lib/error/KintoneRestAPIError.d.ts +4 -4
- package/lib/http/AxiosClient.js +1 -1
- package/lib/http/HttpClientInterface.d.ts +6 -6
- package/lib/http/MockClient.d.ts +1 -1
- package/lib/http/MockClient.js +1 -1
- package/lib/platform/UnsupportedPlatformError.d.ts +1 -1
- package/lib/platform/__tests__/browser.test.js +1 -1
- package/lib/platform/browser.js +1 -1
- package/lib/platform/index.d.ts +1 -1
- package/lib/platform/node.js +1 -1
- package/lib/types/auth.d.ts +6 -6
- package/package.json +4 -4
- package/umd/KintoneRestAPIClient.js +12 -14
- package/umd/KintoneRestAPIClient.min.js +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
type ViewType = "LIST" | "CALENDAR" | "CUSTOM";
|
|
2
|
+
type ViewBaseForResponse = {
|
|
3
3
|
index: string;
|
|
4
4
|
builtinType?: "ASSIGNEE";
|
|
5
5
|
id: string;
|
|
@@ -7,13 +7,13 @@ declare type ViewBaseForResponse = {
|
|
|
7
7
|
filterCond: string;
|
|
8
8
|
sort: string;
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
type ViewBaseForParameter = {
|
|
11
11
|
index: string | number;
|
|
12
12
|
name?: string;
|
|
13
13
|
filterCond?: string;
|
|
14
14
|
sort?: string;
|
|
15
15
|
};
|
|
16
|
-
|
|
16
|
+
type AdditionalPropertyForResponse = {
|
|
17
17
|
LIST: {
|
|
18
18
|
fields: string[];
|
|
19
19
|
};
|
|
@@ -27,7 +27,7 @@ declare type AdditionalPropertyForResponse = {
|
|
|
27
27
|
device: "DESKTOP" | "ANY";
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
|
-
|
|
30
|
+
type AdditionalPropertyForParameter = {
|
|
31
31
|
LIST: {
|
|
32
32
|
fields?: string[];
|
|
33
33
|
};
|
|
@@ -41,10 +41,10 @@ declare type AdditionalPropertyForParameter = {
|
|
|
41
41
|
device?: "DESKTOP" | "ANY";
|
|
42
42
|
};
|
|
43
43
|
};
|
|
44
|
-
export
|
|
44
|
+
export type ViewForResponse<U extends ViewType = ViewType> = U extends ViewType ? ViewBaseForResponse & {
|
|
45
45
|
type: U;
|
|
46
46
|
} & AdditionalPropertyForResponse[U] : never;
|
|
47
|
-
export
|
|
47
|
+
export type ViewForParameter<U extends ViewType = ViewType> = U extends ViewType ? ViewBaseForParameter & {
|
|
48
48
|
type: U;
|
|
49
49
|
} & AdditionalPropertyForParameter[U] : never;
|
|
50
50
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export type AppID = string | number;
|
|
2
|
+
export type RecordID = string | number;
|
|
3
|
+
export type Revision = string | number;
|
|
4
4
|
export * from "./record";
|
|
5
5
|
export * from "./app";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import type { OneOf as Field } from "../../../KintoneFields/types/field";
|
|
2
|
-
export
|
|
2
|
+
export type Record = {
|
|
3
3
|
[fieldCode: string]: Field;
|
|
4
4
|
};
|
|
5
|
-
export
|
|
5
|
+
export type UpdateKey = {
|
|
6
6
|
field: string;
|
|
7
7
|
value: string | number;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type Mention = {
|
|
10
10
|
code: string;
|
|
11
11
|
type: "USER" | "GROUP" | "ORGANIZATION";
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type Comment = {
|
|
14
14
|
id: string;
|
|
15
15
|
text: string;
|
|
16
16
|
createdAt: string;
|
|
@@ -20,4 +20,4 @@ export declare type Comment = {
|
|
|
20
20
|
};
|
|
21
21
|
mentions: Mention[];
|
|
22
22
|
};
|
|
23
|
-
export
|
|
23
|
+
export type CommentID = string | number;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import type { ErrorResponse } from "../http/HttpClientInterface";
|
|
2
|
-
|
|
2
|
+
type SingleErrorResponseData = {
|
|
3
3
|
id: string;
|
|
4
4
|
code: string;
|
|
5
5
|
message: string;
|
|
6
6
|
errors?: any;
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
type BulkRequestErrorResponseData = {
|
|
9
9
|
results: Array<SingleErrorResponseData | {}>;
|
|
10
10
|
};
|
|
11
|
-
|
|
12
|
-
export
|
|
11
|
+
type KintoneErrorResponseData = SingleErrorResponseData | BulkRequestErrorResponseData;
|
|
12
|
+
export type KintoneErrorResponse = ErrorResponse<KintoneErrorResponseData>;
|
|
13
13
|
export declare class KintoneRestAPIError extends Error {
|
|
14
14
|
id: string;
|
|
15
15
|
code: string;
|
package/lib/http/AxiosClient.js
CHANGED
|
@@ -25,7 +25,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
25
25
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
26
|
function step(op) {
|
|
27
27
|
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
-
while (_) try {
|
|
28
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
29
29
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
30
30
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
31
|
switch (op[0]) {
|
|
@@ -7,21 +7,21 @@ export interface HttpClient {
|
|
|
7
7
|
put: <T extends object>(path: string, params: object) => Promise<T>;
|
|
8
8
|
delete: <T extends object>(path: string, params: object) => Promise<T>;
|
|
9
9
|
}
|
|
10
|
-
export
|
|
10
|
+
export type ErrorResponse<T = any> = {
|
|
11
11
|
data: T;
|
|
12
12
|
status: number;
|
|
13
13
|
statusText: string;
|
|
14
14
|
headers: any;
|
|
15
15
|
};
|
|
16
|
-
export
|
|
16
|
+
export type Response<T = any> = {
|
|
17
17
|
data: T;
|
|
18
18
|
headers: any;
|
|
19
19
|
};
|
|
20
|
-
export
|
|
21
|
-
export
|
|
20
|
+
export type HttpMethod = "get" | "post" | "put" | "delete";
|
|
21
|
+
export type Params = {
|
|
22
22
|
[key: string]: unknown;
|
|
23
23
|
};
|
|
24
|
-
export
|
|
24
|
+
export type ProxyConfig = {
|
|
25
25
|
host: string;
|
|
26
26
|
port: number;
|
|
27
27
|
auth?: {
|
|
@@ -35,7 +35,7 @@ export interface HttpClientError<T = ErrorResponse> extends Error {
|
|
|
35
35
|
export interface ResponseHandler {
|
|
36
36
|
handle: <T = any>(response: Promise<Response<T>>) => Promise<T>;
|
|
37
37
|
}
|
|
38
|
-
export
|
|
38
|
+
export type RequestConfig = {
|
|
39
39
|
method: HttpMethod;
|
|
40
40
|
url: string;
|
|
41
41
|
headers: any;
|
package/lib/http/MockClient.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { HttpClient, RequestConfigBuilder, ResponseHandler } from "./HttpClientInterface";
|
|
2
2
|
import type FormData from "form-data";
|
|
3
3
|
import { KintoneResponseHandler } from "../KintoneResponseHandler";
|
|
4
|
-
|
|
4
|
+
type Log = {
|
|
5
5
|
method: "get" | "post" | "put" | "delete";
|
|
6
6
|
path: string;
|
|
7
7
|
params: {
|
package/lib/http/MockClient.js
CHANGED
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
18
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
|
@@ -17,7 +17,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
17
17
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
18
18
|
function step(op) {
|
|
19
19
|
if (f) throw new TypeError("Generator is already executing.");
|
|
20
|
-
while (_) try {
|
|
20
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
21
21
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
22
22
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
23
23
|
switch (op[0]) {
|
package/lib/platform/browser.js
CHANGED
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
18
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
package/lib/platform/index.d.ts
CHANGED
package/lib/platform/node.js
CHANGED
|
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
18
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
19
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
20
|
switch (op[0]) {
|
package/lib/types/auth.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
type ApiTokenAuth = {
|
|
2
2
|
type: "apiToken";
|
|
3
3
|
apiToken: string | string[];
|
|
4
4
|
};
|
|
5
|
-
|
|
5
|
+
type PasswordAuth = {
|
|
6
6
|
type: "password";
|
|
7
7
|
username: string;
|
|
8
8
|
password: string;
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
type SessionAuth = {
|
|
11
11
|
type: "session";
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
type OAuthTokenAuth = {
|
|
14
14
|
type: "oAuthToken";
|
|
15
15
|
oAuthToken: string;
|
|
16
16
|
};
|
|
17
|
-
export
|
|
18
|
-
export
|
|
17
|
+
export type DiscriminatedAuth = ApiTokenAuth | PasswordAuth | SessionAuth | OAuthTokenAuth;
|
|
18
|
+
export type BasicAuth = {
|
|
19
19
|
username: string;
|
|
20
20
|
password: string;
|
|
21
21
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kintone/rest-api-client",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.6",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@types/js-base64": "^3.0.0",
|
|
66
66
|
"@types/mime": "^3.0.1",
|
|
67
67
|
"@types/qs": "^6.9.7",
|
|
68
|
-
"rollup": "^
|
|
68
|
+
"rollup": "^3.20.0",
|
|
69
69
|
"rollup-plugin-ecma-version-validator": "^0.2.12",
|
|
70
70
|
"rollup-plugin-node-builtins": "^2.1.2",
|
|
71
71
|
"rollup-plugin-node-globals": "^1.4.0",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
76
|
"axios": "^0.27.2",
|
|
77
|
-
"core-js": "^3.29.
|
|
77
|
+
"core-js": "^3.29.1",
|
|
78
78
|
"form-data": "^4.0.0",
|
|
79
79
|
"js-base64": "^3.7.5",
|
|
80
80
|
"mime": "^3.0.0",
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
},
|
|
92
92
|
"./package.json": "./package.json"
|
|
93
93
|
},
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "9807f0d8015a1146c8102d326f8496b24181457a"
|
|
95
95
|
}
|