@fusebase/fusebase-gate-sdk 1.0.2-sdk.4 → 2.0.8
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/README.md +8 -10
- package/dist/apis/OrgUsersApi.d.ts +12 -1
- package/dist/apis/OrgUsersApi.js +15 -0
- package/dist/apis/SystemApi.d.ts +20 -0
- package/dist/apis/SystemApi.js +29 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -1
- package/dist/types/index.d.ts +2 -20
- package/dist/types/index.js +1 -6
- package/dist/types/org-user/org-user.d.ts +33 -8
- package/dist/types/org-user/org-user.js +0 -4
- package/dist/types/shared/common.d.ts +0 -69
- package/dist/types/shared/common.js +0 -6
- package/dist/types/shared/enums.d.ts +1 -22
- package/dist/types/shared/enums.js +1 -7
- package/dist/types/shared/health.d.ts +0 -6
- package/dist/types/shared/health.js +0 -6
- package/dist/types/shared/parameters.d.ts +0 -54
- package/dist/types/system/system.d.ts +26 -0
- package/dist/types/system/system.js +7 -0
- package/dist/types/token/token.d.ts +0 -127
- package/dist/types/token/token.js +0 -6
- package/package.json +2 -2
- package/dist/apis/CustomDashboardRowsApi.d.ts +0 -113
- package/dist/apis/CustomDashboardRowsApi.js +0 -122
- package/dist/apis/DashboardDataApi.d.ts +0 -98
- package/dist/apis/DashboardDataApi.js +0 -91
- package/dist/apis/DashboardRelationsApi.d.ts +0 -92
- package/dist/apis/DashboardRelationsApi.js +0 -117
- package/dist/apis/DashboardsApi.d.ts +0 -405
- package/dist/apis/DashboardsApi.js +0 -507
- package/dist/apis/DatabasesApi.d.ts +0 -134
- package/dist/apis/DatabasesApi.js +0 -162
- package/dist/apis/ResolveApi.d.ts +0 -20
- package/dist/apis/ResolveApi.js +0 -29
- package/dist/apis/TemplatesApi.d.ts +0 -100
- package/dist/apis/TemplatesApi.js +0 -124
- package/dist/extras/messaging.d.ts +0 -81
- package/dist/extras/messaging.js +0 -16
- package/dist/types/common/portal-form.d.ts +0 -14
- package/dist/types/common/portal-form.js +0 -8
- package/dist/types/dashboard/custom-item.d.ts +0 -53
- package/dist/types/dashboard/custom-item.js +0 -22
- package/dist/types/dashboard/dashboard.d.ts +0 -421
- package/dist/types/dashboard/dashboard.js +0 -8
- package/dist/types/dashboard/dashboards.d.ts +0 -19
- package/dist/types/dashboard/dashboards.js +0 -8
- package/dist/types/dashboard/data.d.ts +0 -10
- package/dist/types/dashboard/data.js +0 -8
- package/dist/types/dashboard/export.d.ts +0 -11
- package/dist/types/dashboard/export.js +0 -8
- package/dist/types/dashboard/index.d.ts +0 -215
- package/dist/types/dashboard/index.js +0 -34
- package/dist/types/dashboard/intent.d.ts +0 -243
- package/dist/types/dashboard/intent.js +0 -8
- package/dist/types/dashboard/items.d.ts +0 -14
- package/dist/types/dashboard/items.js +0 -8
- package/dist/types/dashboard/metadata.d.ts +0 -12
- package/dist/types/dashboard/metadata.js +0 -8
- package/dist/types/dashboard/render.d.ts +0 -188
- package/dist/types/dashboard/render.js +0 -51
- package/dist/types/dashboard/rows.d.ts +0 -77
- package/dist/types/dashboard/rows.js +0 -14
- package/dist/types/dashboard/schema.d.ts +0 -172
- package/dist/types/dashboard/schema.js +0 -17
- package/dist/types/dashboard/values.d.ts +0 -187
- package/dist/types/dashboard/values.js +0 -8
- package/dist/types/dashboard/view.d.ts +0 -249
- package/dist/types/dashboard/view.js +0 -8
- package/dist/types/database/database.d.ts +0 -203
- package/dist/types/database/database.js +0 -8
- package/dist/types/database/export.d.ts +0 -11
- package/dist/types/database/export.js +0 -8
- package/dist/types/relations/relations.d.ts +0 -138
- package/dist/types/relations/relations.js +0 -14
- package/dist/types/resolve/resolve.d.ts +0 -86
- package/dist/types/resolve/resolve.js +0 -20
- package/dist/types/template/template.d.ts +0 -74
- package/dist/types/template/template.js +0 -8
|
@@ -1,96 +1,28 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Token Schemas
|
|
3
|
-
*
|
|
4
|
-
* Generated from OpenAPI specification
|
|
5
|
-
* Source: schemas/token/token.yaml
|
|
6
|
-
*/
|
|
7
1
|
import type { ScopeContract } from "../shared/common";
|
|
8
2
|
import type { PermissionContract } from "../shared/enums";
|
|
9
3
|
export interface CreateTokenRequestContract {
|
|
10
|
-
/**
|
|
11
|
-
* Array of scopes for the token. Must include org scope.
|
|
12
|
-
*/
|
|
13
4
|
scopes: ScopeContract[];
|
|
14
|
-
/**
|
|
15
|
-
* Array of permission strings. Users can only grant permissions they themselves possess.
|
|
16
|
-
* See Permission enum for available permissions.
|
|
17
|
-
*
|
|
18
|
-
*/
|
|
19
5
|
permissions: PermissionContract[];
|
|
20
|
-
/**
|
|
21
|
-
* Resource scope defining which resources this token can access.
|
|
22
|
-
* Required to explicitly define access restrictions.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
6
|
resource_scope: ResourceScopeContract;
|
|
26
|
-
/**
|
|
27
|
-
* Optional name for the token
|
|
28
|
-
*
|
|
29
|
-
* @nullable true
|
|
30
|
-
*/
|
|
31
7
|
name?: string | null;
|
|
32
|
-
/**
|
|
33
|
-
* Optional expiration date for the token
|
|
34
|
-
*
|
|
35
|
-
* @format date-time
|
|
36
|
-
* @nullable true
|
|
37
|
-
*/
|
|
38
8
|
expires_at?: Date | null;
|
|
39
9
|
}
|
|
40
10
|
export interface CreateTokenResponseContract {
|
|
41
11
|
success: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* @nullable true
|
|
44
|
-
*/
|
|
45
12
|
message?: string | null;
|
|
46
13
|
data: {
|
|
47
|
-
/**
|
|
48
|
-
* The token value (only returned once on creation)
|
|
49
|
-
*/
|
|
50
14
|
token: string;
|
|
51
|
-
/**
|
|
52
|
-
* @format uuid
|
|
53
|
-
*/
|
|
54
15
|
global_id: string;
|
|
55
|
-
/**
|
|
56
|
-
* @nullable true
|
|
57
|
-
*/
|
|
58
16
|
name?: string | null;
|
|
59
17
|
permissions: string[];
|
|
60
|
-
/**
|
|
61
|
-
* @format date-time
|
|
62
|
-
* @nullable true
|
|
63
|
-
*/
|
|
64
18
|
expires_at?: Date | null;
|
|
65
|
-
/**
|
|
66
|
-
* @format date-time
|
|
67
|
-
*/
|
|
68
19
|
created_at: Date;
|
|
69
20
|
};
|
|
70
21
|
}
|
|
71
|
-
/**
|
|
72
|
-
* Resource scope defining which resources a token can access.
|
|
73
|
-
* If both allow and deny are omitted/null, all resources are allowed.
|
|
74
|
-
*
|
|
75
|
-
*/
|
|
76
22
|
export interface ResourceScopeContract {
|
|
77
|
-
/**
|
|
78
|
-
* Allow rules. If null/undefined, all resources are allowed unless denied.
|
|
79
|
-
* If empty array, all resources are denied.
|
|
80
|
-
*
|
|
81
|
-
*/
|
|
82
23
|
allow?: ResourceScopeRuleContract[];
|
|
83
|
-
/**
|
|
84
|
-
* Deny rules. Resources matching deny rules are always denied, even if they match allow rules.
|
|
85
|
-
*
|
|
86
|
-
*/
|
|
87
24
|
deny?: ResourceScopeRuleContract[];
|
|
88
25
|
}
|
|
89
|
-
/**
|
|
90
|
-
* A resource scope rule: resource type + list of ids (or "*" for all).
|
|
91
|
-
* resource_type e.g. "org", "token", "automation.workflow".
|
|
92
|
-
* ids: ["*"] for all, or ["globalId:<uuid>", ...] / ["<id>", ...] for specific resources.
|
|
93
|
-
*/
|
|
94
26
|
export interface ResourceScopeRuleContract {
|
|
95
27
|
resource_type: string;
|
|
96
28
|
ids: string[];
|
|
@@ -100,85 +32,26 @@ export interface RevokeTokenResponseContract {
|
|
|
100
32
|
message: string;
|
|
101
33
|
}
|
|
102
34
|
export interface TokenContract {
|
|
103
|
-
/**
|
|
104
|
-
* Unique identifier for the token
|
|
105
|
-
*
|
|
106
|
-
* @format uuid
|
|
107
|
-
*/
|
|
108
35
|
global_id: string;
|
|
109
|
-
/**
|
|
110
|
-
* Token name
|
|
111
|
-
*
|
|
112
|
-
* @nullable true
|
|
113
|
-
*/
|
|
114
36
|
name?: string | null;
|
|
115
|
-
/**
|
|
116
|
-
* Array of permission strings granted to this token
|
|
117
|
-
*/
|
|
118
37
|
permissions: PermissionContract[];
|
|
119
|
-
/**
|
|
120
|
-
* Array of scopes associated with the token
|
|
121
|
-
*
|
|
122
|
-
* @nullable true
|
|
123
|
-
*/
|
|
124
38
|
scopes?: ScopeContract[];
|
|
125
|
-
/**
|
|
126
|
-
* Token expiration date
|
|
127
|
-
*
|
|
128
|
-
* @format date-time
|
|
129
|
-
* @nullable true
|
|
130
|
-
*/
|
|
131
39
|
expires_at?: Date | null;
|
|
132
|
-
/**
|
|
133
|
-
* Last time the token was used
|
|
134
|
-
*
|
|
135
|
-
* @format date-time
|
|
136
|
-
* @nullable true
|
|
137
|
-
*/
|
|
138
40
|
last_used_at?: Date | null;
|
|
139
|
-
/**
|
|
140
|
-
* Token creation date
|
|
141
|
-
*
|
|
142
|
-
* @format date-time
|
|
143
|
-
*/
|
|
144
41
|
created_at: Date;
|
|
145
42
|
}
|
|
146
43
|
export interface TokenListResponseContract {
|
|
147
44
|
success: boolean;
|
|
148
|
-
/**
|
|
149
|
-
* @nullable true
|
|
150
|
-
*/
|
|
151
45
|
message?: string | null;
|
|
152
46
|
data: TokenContract[];
|
|
153
47
|
}
|
|
154
48
|
export interface TokenResponseContract {
|
|
155
49
|
success: boolean;
|
|
156
|
-
/**
|
|
157
|
-
* @nullable true
|
|
158
|
-
*/
|
|
159
50
|
message?: string | null;
|
|
160
51
|
data: TokenContract;
|
|
161
52
|
}
|
|
162
53
|
export interface UpdateTokenRequestContract {
|
|
163
|
-
/**
|
|
164
|
-
* Token name
|
|
165
|
-
*
|
|
166
|
-
* @nullable true
|
|
167
|
-
*/
|
|
168
54
|
name?: string | null;
|
|
169
|
-
/**
|
|
170
|
-
* Array of permission strings. Users can only grant permissions they themselves possess.
|
|
171
|
-
* See Permission enum for available permissions.
|
|
172
|
-
*
|
|
173
|
-
*
|
|
174
|
-
* @nullable true
|
|
175
|
-
*/
|
|
176
55
|
permissions?: PermissionContract[];
|
|
177
|
-
/**
|
|
178
|
-
* Expiration date for the token. Set to null to remove expiration.
|
|
179
|
-
*
|
|
180
|
-
* @format date-time
|
|
181
|
-
* @nullable true
|
|
182
|
-
*/
|
|
183
56
|
expires_at?: Date | null;
|
|
184
57
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fusebase/fusebase-gate-sdk",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "TypeScript SDK for
|
|
3
|
+
"version": "2.0.8",
|
|
4
|
+
"description": "TypeScript SDK for Fusebase Gate APIs - Generated from contract introspection",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CustomDashboardRows API
|
|
3
|
-
*
|
|
4
|
-
* Generated from contract introspection
|
|
5
|
-
* Domain: custom dashboard rows
|
|
6
|
-
*/
|
|
7
|
-
import type { Client } from "../runtime/transport";
|
|
8
|
-
import type { CreateDashboardRowRequestContract, DashboardRowResponseContract, sectionKeyInQueryRequired, sectionTypeInQueryRequired, StandardApiResponseContract, UpdateRowOrderRequestContract, viewIdInQueryRequired } from "../types";
|
|
9
|
-
export declare class CustomDashboardRowsApi {
|
|
10
|
-
private client;
|
|
11
|
-
constructor(client: Client);
|
|
12
|
-
/**
|
|
13
|
-
* Create custom dashboard rows
|
|
14
|
-
* Create a new custom dashboard rows
|
|
15
|
-
*/
|
|
16
|
-
createDashboardRow(params: {
|
|
17
|
-
path: {
|
|
18
|
-
dashboardId: string;
|
|
19
|
-
};
|
|
20
|
-
headers?: Record<string, string>;
|
|
21
|
-
body: CreateDashboardRowRequestContract;
|
|
22
|
-
}): Promise<DashboardRowResponseContract>;
|
|
23
|
-
/**
|
|
24
|
-
* Delete custom dashboard row
|
|
25
|
-
* Delete a dashboard row by UUID
|
|
26
|
-
*/
|
|
27
|
-
deleteDashboardRow(params: {
|
|
28
|
-
path: {
|
|
29
|
-
dashboardId: string;
|
|
30
|
-
rowUuid: string;
|
|
31
|
-
};
|
|
32
|
-
query?: {
|
|
33
|
-
force_associated_data_deletion?: boolean;
|
|
34
|
-
};
|
|
35
|
-
headers?: Record<string, string>;
|
|
36
|
-
}): Promise<StandardApiResponseContract>;
|
|
37
|
-
/**
|
|
38
|
-
* Initialize default row order for dashboard view, section, or item
|
|
39
|
-
* Create default row orders based on creation time. Requires section_type (view, section, or item), section_key, and section_value.
|
|
40
|
-
* For view: section_key=view, section_value=view_id.
|
|
41
|
-
* For section: section_key=section, section_value=section_uuid.
|
|
42
|
-
* For item: section_key=item_key, section_value=normalized_value.
|
|
43
|
-
* Only works if no orders exist.
|
|
44
|
-
*
|
|
45
|
-
*/
|
|
46
|
-
initializeDashboardRowOrder(params: {
|
|
47
|
-
path: {
|
|
48
|
-
dashboardId: string;
|
|
49
|
-
};
|
|
50
|
-
query?: {
|
|
51
|
-
view_id: viewIdInQueryRequired;
|
|
52
|
-
section_type: sectionTypeInQueryRequired;
|
|
53
|
-
section_key: sectionKeyInQueryRequired;
|
|
54
|
-
};
|
|
55
|
-
headers?: Record<string, string>;
|
|
56
|
-
}): Promise<StandardApiResponseContract>;
|
|
57
|
-
/**
|
|
58
|
-
* List custom dashboard rows
|
|
59
|
-
* Get a list of existing row UUIDs for a custom dashboard. Returns all rows when no pagination parameters are provided.
|
|
60
|
-
*/
|
|
61
|
-
listDashboardRows(params: {
|
|
62
|
-
path: {
|
|
63
|
-
dashboardId: string;
|
|
64
|
-
};
|
|
65
|
-
query?: {
|
|
66
|
-
start_from?: number;
|
|
67
|
-
limit?: number;
|
|
68
|
-
};
|
|
69
|
-
headers?: Record<string, string>;
|
|
70
|
-
}): Promise<DashboardRowResponseContract>;
|
|
71
|
-
/**
|
|
72
|
-
* Save current sorting order to permanent row order
|
|
73
|
-
* Saves the current dynamic sorting order (from field-based sorting) to permanent row order.
|
|
74
|
-
* Requires section_type (view, section, or item), section_key, and section_value.
|
|
75
|
-
* For view: section_key=view, section_value=view_id.
|
|
76
|
-
* For section: section_key=section, section_value=section_uuid.
|
|
77
|
-
* For item: section_key=item_key, section_value=normalized_value.
|
|
78
|
-
* Only available for dashboards with entity type "custom".
|
|
79
|
-
*
|
|
80
|
-
*/
|
|
81
|
-
saveDashboardRowOrder(params: {
|
|
82
|
-
path: {
|
|
83
|
-
dashboardId: string;
|
|
84
|
-
};
|
|
85
|
-
query?: {
|
|
86
|
-
view_id: viewIdInQueryRequired;
|
|
87
|
-
section_type: sectionTypeInQueryRequired;
|
|
88
|
-
section_key: sectionKeyInQueryRequired;
|
|
89
|
-
};
|
|
90
|
-
headers?: Record<string, string>;
|
|
91
|
-
}): Promise<StandardApiResponseContract>;
|
|
92
|
-
/**
|
|
93
|
-
* Update row order for dashboard view, section, or item
|
|
94
|
-
* Update the sort order of rows. Requires section_type (view, section, or item), section_key, and section_value.
|
|
95
|
-
* For view: section_key=view, section_value=view_id.
|
|
96
|
-
* For section: section_key=section, section_value=section_uuid.
|
|
97
|
-
* For item: section_key=item_key, section_value=normalized_value.
|
|
98
|
-
* Implements lazy loading - creates default orders if none exist.
|
|
99
|
-
*
|
|
100
|
-
*/
|
|
101
|
-
updateDashboardRowOrder(params: {
|
|
102
|
-
path: {
|
|
103
|
-
dashboardId: string;
|
|
104
|
-
};
|
|
105
|
-
query?: {
|
|
106
|
-
view_id: viewIdInQueryRequired;
|
|
107
|
-
section_type: sectionTypeInQueryRequired;
|
|
108
|
-
section_key: sectionKeyInQueryRequired;
|
|
109
|
-
};
|
|
110
|
-
headers?: Record<string, string>;
|
|
111
|
-
body: UpdateRowOrderRequestContract;
|
|
112
|
-
}): Promise<StandardApiResponseContract>;
|
|
113
|
-
}
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* CustomDashboardRows API
|
|
4
|
-
*
|
|
5
|
-
* Generated from contract introspection
|
|
6
|
-
* Domain: custom dashboard rows
|
|
7
|
-
*/
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.CustomDashboardRowsApi = void 0;
|
|
10
|
-
class CustomDashboardRowsApi {
|
|
11
|
-
constructor(client) {
|
|
12
|
-
this.client = client;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Create custom dashboard rows
|
|
16
|
-
* Create a new custom dashboard rows
|
|
17
|
-
*/
|
|
18
|
-
async createDashboardRow(params) {
|
|
19
|
-
return this.client.request({
|
|
20
|
-
method: "POST",
|
|
21
|
-
path: "/dashboards/:dashboardId/rows",
|
|
22
|
-
pathParams: params.path,
|
|
23
|
-
headers: params.headers,
|
|
24
|
-
body: params.body,
|
|
25
|
-
opId: "createDashboardRow",
|
|
26
|
-
expectedContentType: "application/json",
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Delete custom dashboard row
|
|
31
|
-
* Delete a dashboard row by UUID
|
|
32
|
-
*/
|
|
33
|
-
async deleteDashboardRow(params) {
|
|
34
|
-
return this.client.request({
|
|
35
|
-
method: "DELETE",
|
|
36
|
-
path: "/dashboards/:dashboardId/rows/:rowUuid",
|
|
37
|
-
pathParams: params.path,
|
|
38
|
-
query: params.query,
|
|
39
|
-
headers: params.headers,
|
|
40
|
-
opId: "deleteDashboardRow",
|
|
41
|
-
expectedContentType: "application/json",
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Initialize default row order for dashboard view, section, or item
|
|
46
|
-
* Create default row orders based on creation time. Requires section_type (view, section, or item), section_key, and section_value.
|
|
47
|
-
* For view: section_key=view, section_value=view_id.
|
|
48
|
-
* For section: section_key=section, section_value=section_uuid.
|
|
49
|
-
* For item: section_key=item_key, section_value=normalized_value.
|
|
50
|
-
* Only works if no orders exist.
|
|
51
|
-
*
|
|
52
|
-
*/
|
|
53
|
-
async initializeDashboardRowOrder(params) {
|
|
54
|
-
return this.client.request({
|
|
55
|
-
method: "POST",
|
|
56
|
-
path: "/dashboards/:dashboardId/rows/order/initialize",
|
|
57
|
-
pathParams: params.path,
|
|
58
|
-
query: params.query,
|
|
59
|
-
headers: params.headers,
|
|
60
|
-
opId: "initializeDashboardRowOrder",
|
|
61
|
-
expectedContentType: "application/json",
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* List custom dashboard rows
|
|
66
|
-
* Get a list of existing row UUIDs for a custom dashboard. Returns all rows when no pagination parameters are provided.
|
|
67
|
-
*/
|
|
68
|
-
async listDashboardRows(params) {
|
|
69
|
-
return this.client.request({
|
|
70
|
-
method: "GET",
|
|
71
|
-
path: "/dashboards/:dashboardId/rows",
|
|
72
|
-
pathParams: params.path,
|
|
73
|
-
query: params.query,
|
|
74
|
-
headers: params.headers,
|
|
75
|
-
opId: "listDashboardRows",
|
|
76
|
-
expectedContentType: "application/json",
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Save current sorting order to permanent row order
|
|
81
|
-
* Saves the current dynamic sorting order (from field-based sorting) to permanent row order.
|
|
82
|
-
* Requires section_type (view, section, or item), section_key, and section_value.
|
|
83
|
-
* For view: section_key=view, section_value=view_id.
|
|
84
|
-
* For section: section_key=section, section_value=section_uuid.
|
|
85
|
-
* For item: section_key=item_key, section_value=normalized_value.
|
|
86
|
-
* Only available for dashboards with entity type "custom".
|
|
87
|
-
*
|
|
88
|
-
*/
|
|
89
|
-
async saveDashboardRowOrder(params) {
|
|
90
|
-
return this.client.request({
|
|
91
|
-
method: "POST",
|
|
92
|
-
path: "/dashboards/:dashboardId/rows/order/save",
|
|
93
|
-
pathParams: params.path,
|
|
94
|
-
query: params.query,
|
|
95
|
-
headers: params.headers,
|
|
96
|
-
opId: "saveDashboardRowOrder",
|
|
97
|
-
expectedContentType: "application/json",
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* Update row order for dashboard view, section, or item
|
|
102
|
-
* Update the sort order of rows. Requires section_type (view, section, or item), section_key, and section_value.
|
|
103
|
-
* For view: section_key=view, section_value=view_id.
|
|
104
|
-
* For section: section_key=section, section_value=section_uuid.
|
|
105
|
-
* For item: section_key=item_key, section_value=normalized_value.
|
|
106
|
-
* Implements lazy loading - creates default orders if none exist.
|
|
107
|
-
*
|
|
108
|
-
*/
|
|
109
|
-
async updateDashboardRowOrder(params) {
|
|
110
|
-
return this.client.request({
|
|
111
|
-
method: "PUT",
|
|
112
|
-
path: "/dashboards/:dashboardId/rows/order",
|
|
113
|
-
pathParams: params.path,
|
|
114
|
-
query: params.query,
|
|
115
|
-
headers: params.headers,
|
|
116
|
-
body: params.body,
|
|
117
|
-
opId: "updateDashboardRowOrder",
|
|
118
|
-
expectedContentType: "application/json",
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
exports.CustomDashboardRowsApi = CustomDashboardRowsApi;
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* DashboardData API
|
|
3
|
-
*
|
|
4
|
-
* Generated from contract introspection
|
|
5
|
-
* Domain: dashboard data
|
|
6
|
-
*/
|
|
7
|
-
import type { Client } from "../runtime/transport";
|
|
8
|
-
import type { BatchDashboardValueResponseContract, BatchUpdateDashboardDataRequestContract, cacheStrategyInQueryOptional, DashboardDataResponseContract, dashboardIdInPathRequired, DashboardValueResponseContract, ReindexDashboardData200ResponseContract, sectionKeyInQueryOptional, sectionTypeInQueryOptional, sourceDashboardIdInQueryRequired, sourceIndexInQueryRequired, UpdateDashboardDataRequestContract, viewIdInPathRequired } from "../types";
|
|
9
|
-
export declare class DashboardDataApi {
|
|
10
|
-
private client;
|
|
11
|
-
constructor(client: Client);
|
|
12
|
-
/**
|
|
13
|
-
* Batch update dashboard values
|
|
14
|
-
* Update or create multiple dashboard values in a single request
|
|
15
|
-
*/
|
|
16
|
-
batchPutDashboardData(params: {
|
|
17
|
-
path: {
|
|
18
|
-
dashboardId: dashboardIdInPathRequired;
|
|
19
|
-
viewId: viewIdInPathRequired;
|
|
20
|
-
};
|
|
21
|
-
query?: {
|
|
22
|
-
validate?: boolean;
|
|
23
|
-
};
|
|
24
|
-
headers?: Record<string, string>;
|
|
25
|
-
body: BatchUpdateDashboardDataRequestContract;
|
|
26
|
-
}): Promise<BatchDashboardValueResponseContract>;
|
|
27
|
-
/**
|
|
28
|
-
* Get dashboard view data
|
|
29
|
-
* Get dashboard view data for a specific view
|
|
30
|
-
*/
|
|
31
|
-
getDashboardViewData(params: {
|
|
32
|
-
path: {
|
|
33
|
-
dashboardId: dashboardIdInPathRequired;
|
|
34
|
-
viewId: viewIdInPathRequired;
|
|
35
|
-
};
|
|
36
|
-
query?: {
|
|
37
|
-
filters?: string;
|
|
38
|
-
select?: string;
|
|
39
|
-
sort?: string;
|
|
40
|
-
page?: number;
|
|
41
|
-
limit?: number;
|
|
42
|
-
exclude_async_items?: boolean;
|
|
43
|
-
item_keys?: unknown[];
|
|
44
|
-
system_filters?: boolean;
|
|
45
|
-
use_stored_filters?: boolean;
|
|
46
|
-
use_stored_sort?: boolean;
|
|
47
|
-
root_index_values?: unknown[];
|
|
48
|
-
cacheStrategy?: cacheStrategyInQueryOptional;
|
|
49
|
-
section_type?: sectionTypeInQueryOptional;
|
|
50
|
-
section_key?: sectionKeyInQueryOptional;
|
|
51
|
-
};
|
|
52
|
-
headers?: Record<string, string>;
|
|
53
|
-
}): Promise<DashboardDataResponseContract>;
|
|
54
|
-
/**
|
|
55
|
-
* Get related dashboard data
|
|
56
|
-
* Get dashboard data for rows related through dashboard relations
|
|
57
|
-
*/
|
|
58
|
-
getRelatedDashboardData(params: {
|
|
59
|
-
path: {
|
|
60
|
-
dashboardId: dashboardIdInPathRequired;
|
|
61
|
-
};
|
|
62
|
-
query?: {
|
|
63
|
-
page?: number;
|
|
64
|
-
limit?: number;
|
|
65
|
-
exclude_async_items?: boolean;
|
|
66
|
-
item_keys?: unknown[];
|
|
67
|
-
source_dashboard_id: sourceDashboardIdInQueryRequired;
|
|
68
|
-
source_index: sourceIndexInQueryRequired;
|
|
69
|
-
cacheStrategy?: cacheStrategyInQueryOptional;
|
|
70
|
-
};
|
|
71
|
-
headers?: Record<string, string>;
|
|
72
|
-
}): Promise<DashboardDataResponseContract>;
|
|
73
|
-
/**
|
|
74
|
-
* Update dashboard value
|
|
75
|
-
* Update or create a dashboard value for a specific root index key and value
|
|
76
|
-
*/
|
|
77
|
-
putDashboardData(params: {
|
|
78
|
-
path: {
|
|
79
|
-
dashboardId: dashboardIdInPathRequired;
|
|
80
|
-
viewId: viewIdInPathRequired;
|
|
81
|
-
};
|
|
82
|
-
query?: {
|
|
83
|
-
validate?: boolean;
|
|
84
|
-
};
|
|
85
|
-
headers?: Record<string, string>;
|
|
86
|
-
body: UpdateDashboardDataRequestContract;
|
|
87
|
-
}): Promise<DashboardValueResponseContract>;
|
|
88
|
-
/**
|
|
89
|
-
* Reindex dashboard cache
|
|
90
|
-
* Force reindexing of dashboard data in Redis cache
|
|
91
|
-
*/
|
|
92
|
-
reindexDashboardData(params: {
|
|
93
|
-
path: {
|
|
94
|
-
dashboardId: dashboardIdInPathRequired;
|
|
95
|
-
};
|
|
96
|
-
headers?: Record<string, string>;
|
|
97
|
-
}): Promise<ReindexDashboardData200ResponseContract>;
|
|
98
|
-
}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* DashboardData API
|
|
4
|
-
*
|
|
5
|
-
* Generated from contract introspection
|
|
6
|
-
* Domain: dashboard data
|
|
7
|
-
*/
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.DashboardDataApi = void 0;
|
|
10
|
-
class DashboardDataApi {
|
|
11
|
-
constructor(client) {
|
|
12
|
-
this.client = client;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Batch update dashboard values
|
|
16
|
-
* Update or create multiple dashboard values in a single request
|
|
17
|
-
*/
|
|
18
|
-
async batchPutDashboardData(params) {
|
|
19
|
-
return this.client.request({
|
|
20
|
-
method: "PUT",
|
|
21
|
-
path: "/dashboards/:dashboardId/views/:viewId/data/batch",
|
|
22
|
-
pathParams: params.path,
|
|
23
|
-
query: params.query,
|
|
24
|
-
headers: params.headers,
|
|
25
|
-
body: params.body,
|
|
26
|
-
opId: "batchPutDashboardData",
|
|
27
|
-
expectedContentType: "application/json",
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Get dashboard view data
|
|
32
|
-
* Get dashboard view data for a specific view
|
|
33
|
-
*/
|
|
34
|
-
async getDashboardViewData(params) {
|
|
35
|
-
return this.client.request({
|
|
36
|
-
method: "GET",
|
|
37
|
-
path: "/dashboards/:dashboardId/views/:viewId/data",
|
|
38
|
-
pathParams: params.path,
|
|
39
|
-
query: params.query,
|
|
40
|
-
headers: params.headers,
|
|
41
|
-
opId: "getDashboardViewData",
|
|
42
|
-
expectedContentType: "application/json",
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Get related dashboard data
|
|
47
|
-
* Get dashboard data for rows related through dashboard relations
|
|
48
|
-
*/
|
|
49
|
-
async getRelatedDashboardData(params) {
|
|
50
|
-
return this.client.request({
|
|
51
|
-
method: "GET",
|
|
52
|
-
path: "/dashboards/:dashboardId/related-data",
|
|
53
|
-
pathParams: params.path,
|
|
54
|
-
query: params.query,
|
|
55
|
-
headers: params.headers,
|
|
56
|
-
opId: "getRelatedDashboardData",
|
|
57
|
-
expectedContentType: "application/json",
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Update dashboard value
|
|
62
|
-
* Update or create a dashboard value for a specific root index key and value
|
|
63
|
-
*/
|
|
64
|
-
async putDashboardData(params) {
|
|
65
|
-
return this.client.request({
|
|
66
|
-
method: "PUT",
|
|
67
|
-
path: "/dashboards/:dashboardId/views/:viewId/data",
|
|
68
|
-
pathParams: params.path,
|
|
69
|
-
query: params.query,
|
|
70
|
-
headers: params.headers,
|
|
71
|
-
body: params.body,
|
|
72
|
-
opId: "putDashboardData",
|
|
73
|
-
expectedContentType: "application/json",
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Reindex dashboard cache
|
|
78
|
-
* Force reindexing of dashboard data in Redis cache
|
|
79
|
-
*/
|
|
80
|
-
async reindexDashboardData(params) {
|
|
81
|
-
return this.client.request({
|
|
82
|
-
method: "POST",
|
|
83
|
-
path: "/dashboards/:dashboardId/reindex",
|
|
84
|
-
pathParams: params.path,
|
|
85
|
-
headers: params.headers,
|
|
86
|
-
opId: "reindexDashboardData",
|
|
87
|
-
expectedContentType: "application/json",
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
exports.DashboardDataApi = DashboardDataApi;
|