@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
|
@@ -48,7 +48,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
48
48
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
49
49
|
function step(op) {
|
|
50
50
|
if (f) throw new TypeError("Generator is already executing.");
|
|
51
|
-
while (_) try {
|
|
51
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
52
52
|
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;
|
|
53
53
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
54
54
|
switch (op[0]) {
|
|
@@ -29,7 +29,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
29
29
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
30
30
|
function step(op) {
|
|
31
31
|
if (f) throw new TypeError("Generator is already executing.");
|
|
32
|
-
while (_) try {
|
|
32
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
33
33
|
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;
|
|
34
34
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
35
35
|
switch (op[0]) {
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import type { HttpClient } from "../http";
|
|
2
2
|
import type { AppID, RecordID, Revision, Properties, Lang, Layout, ViewForResponse, ViewForParameter, App, StateForResponse, StateForParameter, ActionForResponse, ActionForParameter, DeployStatus, FieldRightForResponse, FieldRightForParameter, AppRightEntityForResponse, AppRightEntityForParameter, EvaluatedRecordRight, RecordRightForResponse, RecordRightForParameter, AppCustomizeScope, AppCustomizeForResponse, AppCustomizeForParameter, GeneralNotificationForParameter, GeneralNotificationForResponse, PerRecordNotificationForParameter, PerRecordNotificationForResponse, ReminderNotificationForParameter, ReminderNotificationForResponse, ReportForParameter, ReportForResponse, AppActionsForParameter, AppActionsForResponse } from "./types";
|
|
3
|
-
|
|
3
|
+
type RowLayoutForParameter = {
|
|
4
4
|
type: "ROW";
|
|
5
5
|
fields: Array<{
|
|
6
6
|
[key: string]: unknown;
|
|
7
7
|
}>;
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
type SubtableLayoutForParameter = {
|
|
10
10
|
type: "SUBTABLE";
|
|
11
11
|
code: string;
|
|
12
12
|
fields: Array<{
|
|
13
13
|
[key: string]: unknown;
|
|
14
14
|
}>;
|
|
15
15
|
};
|
|
16
|
-
|
|
16
|
+
type GroupLayoutForParameter = {
|
|
17
17
|
type: "GROUP";
|
|
18
18
|
code: string;
|
|
19
19
|
layout: RowLayoutForParameter[];
|
|
20
20
|
};
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
type LayoutForParameter = Array<RowLayoutForParameter | SubtableLayoutForParameter | GroupLayoutForParameter>;
|
|
22
|
+
type NestedPartial<T> = T extends object ? {
|
|
23
23
|
[K in keyof T]?: NestedPartial<T[K]>;
|
|
24
24
|
} : T;
|
|
25
|
-
|
|
25
|
+
type PropertiesForParameter = NestedPartial<Properties>;
|
|
26
26
|
export declare class AppClient {
|
|
27
27
|
private client;
|
|
28
28
|
private guestSpaceId?;
|
package/lib/client/AppClient.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]) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppClient.js","sourceRoot":"","sources":["../../src/client/AppClient.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,8BAAmC;
|
|
1
|
+
{"version":3,"file":"AppClient.js","sourceRoot":"","sources":["../../src/client/AppClient.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,8BAAmC;AAmEnC;IAIE,mBAAY,MAAkB,EAAE,YAA8B;QAC5D,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACnC,CAAC;IAEM,iCAAa,GAApB,UAA2C,MAI1C;QACS,IAAA,OAAO,GAAc,MAAM,QAApB,EAAK,IAAI,UAAK,MAAM,EAA7B,WAAoB,CAAF,CAAY;QACpC,IAAM,IAAI,GAAG,IAAI,CAAC,yBAAyB,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C,YAAY,EAAE,aAAa;YAC3B,OAAO,SAAA;SACR,CAAC,CAAC;QACH,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACrC,CAAC;IAEM,oCAAgB,GAAvB,UAAwB,MAIvB;QAIC,IAAM,IAAI,GAAG,IAAI,CAAC,yBAAyB,CAAC;YAC1C,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE,IAAI;SACd,CAAC,CAAC;QACH,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IACvC,CAAC;IAEO,6CAAyB,GAAjC,UAAkC,MAGjC;QACC,OAAO,IAAA,eAAS,wBACX,MAAM,KACT,YAAY,EAAE,IAAI,CAAC,YAAY,IAC/B,CAAC;IACL,CAAC;IACH,gBAAC;AAAD,CAAC,AAzjBD,IAyjBC;AAzjBY,8BAAS"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HttpClient } from "../http";
|
|
2
|
-
export
|
|
2
|
+
export type EndpointName = "record" | "records" | "record/status" | "records/status" | "record/assignees";
|
|
3
3
|
export declare class BulkRequestClient {
|
|
4
4
|
private client;
|
|
5
5
|
private guestSpaceId?;
|
package/lib/client/FileClient.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]) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { HttpClient } from "./../http/";
|
|
2
2
|
import type { BulkRequestClient } from "./BulkRequestClient";
|
|
3
3
|
import type { AppID, RecordID, Revision, Record, UpdateKey, CommentID, Comment, Mention } from "./types";
|
|
4
|
-
|
|
4
|
+
type RecordForParameter = {
|
|
5
5
|
[fieldCode: string]: {
|
|
6
6
|
value: unknown;
|
|
7
7
|
};
|
|
@@ -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]) {
|
|
@@ -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]) {
|
|
@@ -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]) {
|
|
@@ -48,7 +48,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
48
48
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
49
49
|
function step(op) {
|
|
50
50
|
if (f) throw new TypeError("Generator is already executing.");
|
|
51
|
-
while (_) try {
|
|
51
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
52
52
|
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;
|
|
53
53
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
54
54
|
switch (op[0]) {
|
|
@@ -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]) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Entity } from "../entity";
|
|
2
2
|
import type { AppID } from "../index";
|
|
3
|
-
export
|
|
3
|
+
export type AppActionsForParameter = {
|
|
4
4
|
[actionName: string]: ActionPropertyForParameter;
|
|
5
5
|
};
|
|
6
|
-
|
|
6
|
+
type ActionPropertyForParameter = ({
|
|
7
7
|
destApp: DestAppForParameter;
|
|
8
8
|
mappings: Mapping[];
|
|
9
9
|
} | {
|
|
@@ -13,17 +13,17 @@ declare type ActionPropertyForParameter = ({
|
|
|
13
13
|
index: string | number;
|
|
14
14
|
entities?: Entity[];
|
|
15
15
|
};
|
|
16
|
-
|
|
16
|
+
type DestAppForParameter = {
|
|
17
17
|
app: AppID;
|
|
18
18
|
code?: string;
|
|
19
19
|
} | {
|
|
20
20
|
app?: AppID;
|
|
21
21
|
code: string;
|
|
22
22
|
};
|
|
23
|
-
export
|
|
23
|
+
export type AppActionsForResponse = {
|
|
24
24
|
[actionName: string]: ActionPropertyForResponse;
|
|
25
25
|
};
|
|
26
|
-
|
|
26
|
+
type ActionPropertyForResponse = {
|
|
27
27
|
name: string;
|
|
28
28
|
id: string;
|
|
29
29
|
index: string;
|
|
@@ -31,11 +31,11 @@ declare type ActionPropertyForResponse = {
|
|
|
31
31
|
mappings: Mapping[];
|
|
32
32
|
entities: Entity[];
|
|
33
33
|
};
|
|
34
|
-
|
|
34
|
+
type DestAppForResponse = {
|
|
35
35
|
app: string;
|
|
36
36
|
code: string;
|
|
37
37
|
};
|
|
38
|
-
|
|
38
|
+
type Mapping = {
|
|
39
39
|
srcType: "FIELD";
|
|
40
40
|
srcField: string;
|
|
41
41
|
destField: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
1
|
+
export type AppCustomizeScope = "ALL" | "ADMIN" | "NONE";
|
|
2
|
+
type AppCustomizeResourceForResponse = {
|
|
3
3
|
type: "URL";
|
|
4
4
|
url: string;
|
|
5
5
|
} | {
|
|
@@ -11,7 +11,7 @@ declare type AppCustomizeResourceForResponse = {
|
|
|
11
11
|
size: string;
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
type AppCustomizeResourceForParameter = {
|
|
15
15
|
type: "URL";
|
|
16
16
|
url: string;
|
|
17
17
|
} | {
|
|
@@ -20,11 +20,11 @@ declare type AppCustomizeResourceForParameter = {
|
|
|
20
20
|
fileKey: string;
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
|
-
export
|
|
23
|
+
export type AppCustomizeForResponse = {
|
|
24
24
|
js: AppCustomizeResourceForResponse[];
|
|
25
25
|
css: AppCustomizeResourceForResponse[];
|
|
26
26
|
};
|
|
27
|
-
export
|
|
27
|
+
export type AppCustomizeForParameter = {
|
|
28
28
|
js?: AppCustomizeResourceForParameter[];
|
|
29
29
|
css?: AppCustomizeResourceForParameter[];
|
|
30
30
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { OneOf as FieldProperty } from "../../../KintoneFields/types/property";
|
|
2
2
|
import type { Row, Subtable, Group, Field } from "../../../KintoneFields/types/layout";
|
|
3
|
-
export
|
|
3
|
+
export type Properties = {
|
|
4
4
|
[fieldCode: string]: FieldProperty;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type Layout = Array<Row<Field.OneOf[]> | Subtable<Field.InSubtable[]> | Group<Array<Row<Field.OneOf[]>>>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export type Lang = "ja" | "en" | "zh" | "user" | "default";
|
|
2
|
+
export type DeployStatus = "PROCESSING" | "SUCCESS" | "FAIL" | "CANCEL";
|
|
3
|
+
export type App = {
|
|
4
4
|
appId: string;
|
|
5
5
|
code: string;
|
|
6
6
|
name: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Entity } from "../entity";
|
|
2
|
-
export
|
|
2
|
+
export type GeneralNotificationForParameter = {
|
|
3
3
|
entity: Entity | {
|
|
4
4
|
type: "FIELD_ENTITY";
|
|
5
5
|
code: string;
|
|
@@ -11,7 +11,7 @@ export declare type GeneralNotificationForParameter = {
|
|
|
11
11
|
statusChanged?: boolean;
|
|
12
12
|
fileImported?: boolean;
|
|
13
13
|
};
|
|
14
|
-
export
|
|
14
|
+
export type GeneralNotificationForResponse = {
|
|
15
15
|
entity: Entity | {
|
|
16
16
|
type: "FIELD_ENTITY";
|
|
17
17
|
code: string;
|
|
@@ -23,7 +23,7 @@ export declare type GeneralNotificationForResponse = {
|
|
|
23
23
|
statusChanged: boolean;
|
|
24
24
|
fileImported: boolean;
|
|
25
25
|
};
|
|
26
|
-
export
|
|
26
|
+
export type PerRecordNotificationForParameter = {
|
|
27
27
|
filterCond: string;
|
|
28
28
|
title?: string;
|
|
29
29
|
targets: Array<{
|
|
@@ -34,7 +34,7 @@ export declare type PerRecordNotificationForParameter = {
|
|
|
34
34
|
includeSubs?: boolean;
|
|
35
35
|
}>;
|
|
36
36
|
};
|
|
37
|
-
export
|
|
37
|
+
export type PerRecordNotificationForResponse = {
|
|
38
38
|
filterCond: string;
|
|
39
39
|
title: string;
|
|
40
40
|
targets: Array<{
|
|
@@ -46,7 +46,7 @@ export declare type PerRecordNotificationForResponse = {
|
|
|
46
46
|
}>;
|
|
47
47
|
revision: string;
|
|
48
48
|
};
|
|
49
|
-
export
|
|
49
|
+
export type ReminderNotificationForParameter = {
|
|
50
50
|
timing: {
|
|
51
51
|
code: string;
|
|
52
52
|
daysLater: string | number;
|
|
@@ -66,7 +66,7 @@ export declare type ReminderNotificationForParameter = {
|
|
|
66
66
|
includeSubs?: boolean | string;
|
|
67
67
|
}>;
|
|
68
68
|
};
|
|
69
|
-
export
|
|
69
|
+
export type ReminderNotificationForResponse = {
|
|
70
70
|
timing: {
|
|
71
71
|
code: string;
|
|
72
72
|
daysLater: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Entity } from "../entity";
|
|
2
|
-
|
|
2
|
+
type AssigneeEntityForResponse = {
|
|
3
3
|
entity: Entity | {
|
|
4
4
|
type: "FIELD_ENTITY" | "CUSTOM_FIELD";
|
|
5
5
|
code: string;
|
|
@@ -9,7 +9,7 @@ declare type AssigneeEntityForResponse = {
|
|
|
9
9
|
};
|
|
10
10
|
includeSubs: boolean;
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
type AssigneeEntityForParameter = {
|
|
13
13
|
entity: Entity | {
|
|
14
14
|
type: "FIELD_ENTITY" | "CUSTOM_FIELD";
|
|
15
15
|
code: string;
|
|
@@ -18,8 +18,8 @@ declare type AssigneeEntityForParameter = {
|
|
|
18
18
|
};
|
|
19
19
|
includeSubs?: boolean;
|
|
20
20
|
};
|
|
21
|
-
|
|
22
|
-
export
|
|
21
|
+
type AssigneeType = "ONE" | "ALL" | "ANY";
|
|
22
|
+
export type StateForResponse = {
|
|
23
23
|
index: string;
|
|
24
24
|
name: string;
|
|
25
25
|
assignee: {
|
|
@@ -27,7 +27,7 @@ export declare type StateForResponse = {
|
|
|
27
27
|
entities: AssigneeEntityForResponse[];
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
|
-
export
|
|
30
|
+
export type StateForParameter = {
|
|
31
31
|
index: string | number;
|
|
32
32
|
name?: string;
|
|
33
33
|
assignee?: {
|
|
@@ -35,13 +35,13 @@ export declare type StateForParameter = {
|
|
|
35
35
|
entities: AssigneeEntityForParameter[];
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
|
-
export
|
|
38
|
+
export type ActionForResponse = {
|
|
39
39
|
name: string;
|
|
40
40
|
from: string;
|
|
41
41
|
to: string;
|
|
42
42
|
filterCond: string;
|
|
43
43
|
};
|
|
44
|
-
export
|
|
44
|
+
export type ActionForParameter = {
|
|
45
45
|
name: string;
|
|
46
46
|
from: string;
|
|
47
47
|
to: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type ReportForParameter = {
|
|
2
2
|
[reportName: string]: ReportProperty;
|
|
3
3
|
};
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
type ChartTypeWithRequiredMode = "BAR" | "COLUMN" | "AREA" | "SPLINE_AREA";
|
|
5
|
+
type ChartTypeWithOptionalMode = "PIE" | "LINE" | "PIVOT_TABLE" | "TABLE" | "SPLINE";
|
|
6
|
+
type ChartProps = {
|
|
7
7
|
name: string;
|
|
8
8
|
index: string | number;
|
|
9
9
|
groups?: Array<{
|
|
@@ -15,49 +15,49 @@ declare type ChartProps = {
|
|
|
15
15
|
sorts?: Sort[];
|
|
16
16
|
periodicReport?: PeriodicReportForParameters;
|
|
17
17
|
};
|
|
18
|
-
|
|
18
|
+
type ReportProperty = ({
|
|
19
19
|
chartType: ChartTypeWithOptionalMode;
|
|
20
20
|
chartMode?: ChartMode;
|
|
21
21
|
} | {
|
|
22
22
|
chartType: ChartTypeWithRequiredMode;
|
|
23
23
|
chartMode: ChartMode;
|
|
24
24
|
}) & ChartProps;
|
|
25
|
-
|
|
25
|
+
type PeriodicReportForParameters = {
|
|
26
26
|
active?: boolean | string;
|
|
27
27
|
period?: PeriodReportPeriodYear | PeriodReportPeriodDay | PeriodReportPeriodQuater | PeriodReportPeriodMonth | PeriodReportPeriodWeek | PeriodReportPeriodHour;
|
|
28
28
|
};
|
|
29
|
-
|
|
29
|
+
type PeriodReportPeriodYear = {
|
|
30
30
|
every: "YEAR";
|
|
31
31
|
month: MonthOfYear;
|
|
32
32
|
time: string;
|
|
33
33
|
dayOfMonth: DayOfMonth;
|
|
34
34
|
};
|
|
35
|
-
|
|
35
|
+
type PeriodReportPeriodQuater = {
|
|
36
36
|
every: "QUARTER";
|
|
37
37
|
pattern: QuarterPattern;
|
|
38
38
|
time: string;
|
|
39
39
|
dayOfMonth: DayOfMonth | EndOfMonth;
|
|
40
40
|
};
|
|
41
|
-
|
|
41
|
+
type PeriodReportPeriodMonth = {
|
|
42
42
|
every: "MONTH";
|
|
43
43
|
time: string;
|
|
44
44
|
dayOfMonth: DayOfMonth | EndOfMonth;
|
|
45
45
|
};
|
|
46
|
-
|
|
46
|
+
type PeriodReportPeriodWeek = {
|
|
47
47
|
every: "WEEK";
|
|
48
48
|
dayOfWeek: DayOfWeek;
|
|
49
49
|
time: string;
|
|
50
50
|
};
|
|
51
|
-
|
|
51
|
+
type PeriodReportPeriodDay = {
|
|
52
52
|
every: "DAY";
|
|
53
53
|
time: string;
|
|
54
54
|
};
|
|
55
|
-
|
|
55
|
+
type PeriodReportPeriodHour = {
|
|
56
56
|
every: "HOUR";
|
|
57
57
|
minute: MinuteOfHour;
|
|
58
58
|
};
|
|
59
|
-
export
|
|
60
|
-
|
|
59
|
+
export type ReportForResponse = ReportForResponseWithoutMode | ReportForResponseWithMode;
|
|
60
|
+
type ReportForResponseBase = {
|
|
61
61
|
chartType: ChartType;
|
|
62
62
|
id: string;
|
|
63
63
|
name: string;
|
|
@@ -68,71 +68,71 @@ declare type ReportForResponseBase = {
|
|
|
68
68
|
sorts: Sort[];
|
|
69
69
|
periodicReport: PeriodicReport | null;
|
|
70
70
|
};
|
|
71
|
-
|
|
71
|
+
type ReportForResponseWithoutMode = ReportForResponseBase & {
|
|
72
72
|
chartType: Exclude<ChartType, ChartTypeWithMode>;
|
|
73
73
|
};
|
|
74
|
-
|
|
74
|
+
type ReportForResponseWithMode = ReportForResponseBase & {
|
|
75
75
|
chartType: ChartTypeWithMode;
|
|
76
76
|
chartMode: ChartMode;
|
|
77
77
|
};
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
type ChartType = "PIE" | "LINE" | "SPLINE" | "TABLE" | "PIVOT_TABLE" | "BAR" | "COLUMN" | "AREA" | "SPLINE_AREA";
|
|
79
|
+
type ChartTypeWithMode = Extract<ChartType, "BAR" | "COLUMN" | "AREA" | "SPLINE_AREA">;
|
|
80
|
+
type Group = {
|
|
81
81
|
code: string;
|
|
82
82
|
per: GroupPer;
|
|
83
83
|
};
|
|
84
|
-
|
|
84
|
+
type PeriodicReport = {
|
|
85
85
|
active: boolean;
|
|
86
86
|
period: PeriodicReportPeriod;
|
|
87
87
|
};
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
88
|
+
type PeriodicReportPeriod = PeriodicReportPeriodYear | PeriodicReportPeriodQuarter | PeriodicReportPeriodMonth | PeriodicReportPeriodWeek | PeriodicReportPeriodDay | PeriodicReportPeriodHour;
|
|
89
|
+
type PeriodicReportPeriodEvery = "YEAR" | "QUARTER" | "MONTH" | "WEEK" | "DAY" | "HOUR" | "MINUTE";
|
|
90
|
+
type PeriodicReportPeriodYear = {
|
|
91
91
|
every: Extract<PeriodicReportPeriodEvery, "YEAR">;
|
|
92
92
|
month: MonthOfYear;
|
|
93
93
|
dayOfMonth: DayOfMonth;
|
|
94
94
|
time: string;
|
|
95
95
|
};
|
|
96
|
-
|
|
96
|
+
type PeriodicReportPeriodQuarter = {
|
|
97
97
|
every: Extract<PeriodicReportPeriodEvery, "QUARTER">;
|
|
98
98
|
pattern: QuarterPattern;
|
|
99
99
|
dayOfMonth: DayOfMonth | EndOfMonth;
|
|
100
100
|
time: string;
|
|
101
101
|
};
|
|
102
|
-
|
|
102
|
+
type PeriodicReportPeriodMonth = {
|
|
103
103
|
every: Extract<PeriodicReportPeriodEvery, "MONTH">;
|
|
104
104
|
dayOfMonth: DayOfMonth | EndOfMonth;
|
|
105
105
|
time: string;
|
|
106
106
|
};
|
|
107
|
-
|
|
107
|
+
type PeriodicReportPeriodWeek = {
|
|
108
108
|
every: Extract<PeriodicReportPeriodEvery, "WEEK">;
|
|
109
109
|
dayOfWeek: DayOfWeek;
|
|
110
110
|
time: string;
|
|
111
111
|
};
|
|
112
|
-
|
|
112
|
+
type PeriodicReportPeriodDay = {
|
|
113
113
|
every: Extract<PeriodicReportPeriodEvery, "DAY">;
|
|
114
114
|
time: string;
|
|
115
115
|
};
|
|
116
|
-
|
|
116
|
+
type PeriodicReportPeriodHour = {
|
|
117
117
|
every: Extract<PeriodicReportPeriodEvery, "HOUR">;
|
|
118
118
|
minute: MinuteOfHour;
|
|
119
119
|
};
|
|
120
|
-
|
|
120
|
+
type Sort = {
|
|
121
121
|
by: "TOTAL" | "GROUP1" | "GROUP2" | "GROUP3";
|
|
122
122
|
order: "ASC" | "DESC";
|
|
123
123
|
};
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
type GroupPer = "YEAR" | "QUARTER" | "MONTH" | "WEEK" | "DAY" | "HOUR" | "MINUTE";
|
|
125
|
+
type Aggregation = {
|
|
126
126
|
type: "COUNT";
|
|
127
127
|
} | {
|
|
128
128
|
type: "SUM" | "AVERAGE" | "MAX" | "MIN";
|
|
129
129
|
code: string;
|
|
130
130
|
};
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
131
|
+
type ChartMode = "NORMAL" | "STACKED" | "PERCENTAGE";
|
|
132
|
+
type QuarterPattern = "JAN_APR_JUL_OCT" | "FEB_MAY_AUG_NOV" | "MAR_JUN_SEP_DEC";
|
|
133
|
+
type MonthOfYear = "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12";
|
|
134
|
+
type DayOfWeek = "SUNDAY" | "MONDAY" | "TUESDAY" | "WEDNESDAY" | "THURSDAY" | "FRIDAY" | "SATURDAY";
|
|
135
|
+
type DayOfMonth = "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "19" | "20" | "21" | "22" | "23" | "24" | "25" | "26" | "27" | "28" | "29" | "30" | "31";
|
|
136
|
+
type EndOfMonth = "END_OF_MONTH";
|
|
137
|
+
type MinuteOfHour = "0" | "10" | "20" | "30" | "40" | "50";
|
|
138
138
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Entity } from "../entity";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
type FieldRightAccessibility = "READ" | "WRITE" | "NONE";
|
|
3
|
+
type FieldRightEntityForResponse = {
|
|
4
4
|
accessibility: FieldRightAccessibility;
|
|
5
5
|
entity: Entity | {
|
|
6
6
|
type: "FIELD_ENTITY";
|
|
@@ -8,7 +8,7 @@ declare type FieldRightEntityForResponse = {
|
|
|
8
8
|
};
|
|
9
9
|
includeSubs: boolean;
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
type FieldRightEntityForParameter = {
|
|
12
12
|
accessibility: FieldRightAccessibility;
|
|
13
13
|
entity: Entity | {
|
|
14
14
|
type: "FIELD_ENTITY";
|
|
@@ -16,15 +16,15 @@ declare type FieldRightEntityForParameter = {
|
|
|
16
16
|
};
|
|
17
17
|
includeSubs?: boolean;
|
|
18
18
|
};
|
|
19
|
-
export
|
|
19
|
+
export type FieldRightForResponse = {
|
|
20
20
|
code: string;
|
|
21
21
|
entities: FieldRightEntityForResponse[];
|
|
22
22
|
};
|
|
23
|
-
export
|
|
23
|
+
export type FieldRightForParameter = {
|
|
24
24
|
code: string;
|
|
25
25
|
entities: FieldRightEntityForParameter[];
|
|
26
26
|
};
|
|
27
|
-
export
|
|
27
|
+
export type AppRightEntityForResponse = {
|
|
28
28
|
entity: Entity | {
|
|
29
29
|
type: "CREATOR";
|
|
30
30
|
code: null;
|
|
@@ -38,7 +38,7 @@ export declare type AppRightEntityForResponse = {
|
|
|
38
38
|
recordImportable: boolean;
|
|
39
39
|
recordExportable: boolean;
|
|
40
40
|
};
|
|
41
|
-
export
|
|
41
|
+
export type AppRightEntityForParameter = {
|
|
42
42
|
entity: Entity | {
|
|
43
43
|
type: "CREATOR";
|
|
44
44
|
};
|
|
@@ -51,7 +51,7 @@ export declare type AppRightEntityForParameter = {
|
|
|
51
51
|
recordImportable?: boolean;
|
|
52
52
|
recordExportable?: boolean;
|
|
53
53
|
};
|
|
54
|
-
|
|
54
|
+
type RecordRightEntityForResponse = {
|
|
55
55
|
entity: Entity | {
|
|
56
56
|
type: "FIELD_ENTITY";
|
|
57
57
|
code: string;
|
|
@@ -61,7 +61,7 @@ declare type RecordRightEntityForResponse = {
|
|
|
61
61
|
deletable: boolean;
|
|
62
62
|
includeSubs: boolean;
|
|
63
63
|
};
|
|
64
|
-
|
|
64
|
+
type RecordRightEntityForParameter = {
|
|
65
65
|
entity: Entity | {
|
|
66
66
|
type: "FIELD_ENTITY";
|
|
67
67
|
code: string;
|
|
@@ -71,15 +71,15 @@ declare type RecordRightEntityForParameter = {
|
|
|
71
71
|
deletable?: boolean;
|
|
72
72
|
includeSubs?: boolean;
|
|
73
73
|
};
|
|
74
|
-
export
|
|
74
|
+
export type RecordRightForResponse = {
|
|
75
75
|
entities: RecordRightEntityForResponse[];
|
|
76
76
|
filterCond: string;
|
|
77
77
|
};
|
|
78
|
-
export
|
|
78
|
+
export type RecordRightForParameter = {
|
|
79
79
|
entities: RecordRightEntityForParameter[];
|
|
80
80
|
filterCond?: string;
|
|
81
81
|
};
|
|
82
|
-
export
|
|
82
|
+
export type EvaluatedRecordRight = {
|
|
83
83
|
id: string;
|
|
84
84
|
record: {
|
|
85
85
|
viewable: boolean;
|