@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,162 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Databases API
|
|
4
|
-
*
|
|
5
|
-
* Generated from contract introspection
|
|
6
|
-
* Domain: databases
|
|
7
|
-
*/
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.DatabasesApi = void 0;
|
|
10
|
-
class DatabasesApi {
|
|
11
|
-
constructor(client) {
|
|
12
|
-
this.client = client;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Copy database from another database
|
|
16
|
-
* Create a new database by copying an existing database with all its dashboards, relations, and optionally data
|
|
17
|
-
*/
|
|
18
|
-
async copyDatabaseFromDatabase(params) {
|
|
19
|
-
return this.client.request({
|
|
20
|
-
method: "POST",
|
|
21
|
-
path: "/databases/copy-from/database",
|
|
22
|
-
query: params.query,
|
|
23
|
-
headers: params.headers,
|
|
24
|
-
body: params.body,
|
|
25
|
-
opId: "copyDatabaseFromDatabase",
|
|
26
|
-
expectedContentType: "application/json",
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Create a new database
|
|
31
|
-
* Create a new database with the provided information
|
|
32
|
-
*/
|
|
33
|
-
async createDatabase(params) {
|
|
34
|
-
return this.client.request({
|
|
35
|
-
method: "POST",
|
|
36
|
-
path: "/databases",
|
|
37
|
-
query: params.query,
|
|
38
|
-
headers: params.headers,
|
|
39
|
-
body: params.body,
|
|
40
|
-
opId: "createDatabase",
|
|
41
|
-
expectedContentType: "application/json",
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Delete database
|
|
46
|
-
* Soft delete a database
|
|
47
|
-
*/
|
|
48
|
-
async deleteDatabase(params) {
|
|
49
|
-
return this.client.request({
|
|
50
|
-
method: "DELETE",
|
|
51
|
-
path: "/databases/:id",
|
|
52
|
-
pathParams: params.path,
|
|
53
|
-
headers: params.headers,
|
|
54
|
-
opId: "deleteDatabase",
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Export database data as CSV
|
|
59
|
-
* Export database data as CSV format
|
|
60
|
-
*/
|
|
61
|
-
async exportDatabaseAsCsv(params) {
|
|
62
|
-
return this.client.request({
|
|
63
|
-
method: "GET",
|
|
64
|
-
path: "/databases/:id/export/csv",
|
|
65
|
-
pathParams: params.path,
|
|
66
|
-
headers: params.headers,
|
|
67
|
-
opId: "exportDatabaseAsCsv",
|
|
68
|
-
expectedContentType: "text/csv",
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Export database as JSON
|
|
73
|
-
* Export database structure and optionally data as JSON
|
|
74
|
-
*/
|
|
75
|
-
async exportDatabaseAsJson(params) {
|
|
76
|
-
return this.client.request({
|
|
77
|
-
method: "GET",
|
|
78
|
-
path: "/databases/:id/export/json",
|
|
79
|
-
pathParams: params.path,
|
|
80
|
-
query: params.query,
|
|
81
|
-
headers: params.headers,
|
|
82
|
-
opId: "exportDatabaseAsJson",
|
|
83
|
-
expectedContentType: "application/json",
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Get all databases
|
|
88
|
-
* Retrieve a list of all databases
|
|
89
|
-
*/
|
|
90
|
-
async getAllDatabases(params) {
|
|
91
|
-
return this.client.request({
|
|
92
|
-
method: "GET",
|
|
93
|
-
path: "/databases",
|
|
94
|
-
query: params.query,
|
|
95
|
-
headers: params.headers,
|
|
96
|
-
opId: "getAllDatabases",
|
|
97
|
-
expectedContentType: "application/json",
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* Get database by ID
|
|
102
|
-
* Retrieve a specific database by its global ID
|
|
103
|
-
*/
|
|
104
|
-
async getDatabaseById(params) {
|
|
105
|
-
return this.client.request({
|
|
106
|
-
method: "GET",
|
|
107
|
-
path: "/databases/:id",
|
|
108
|
-
pathParams: params.path,
|
|
109
|
-
headers: params.headers,
|
|
110
|
-
opId: "getDatabaseById",
|
|
111
|
-
expectedContentType: "application/json",
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* Get or create database
|
|
116
|
-
* Find database by alias and scope, or create new one if not found.
|
|
117
|
-
* If creating from template, searches for template in template_scope first,
|
|
118
|
-
* then org scope from scopes array, then system org (from SYSTEM_ORG_SCOPE_ID env var).
|
|
119
|
-
*
|
|
120
|
-
*/
|
|
121
|
-
async getOrCreateDatabase(params) {
|
|
122
|
-
return this.client.request({
|
|
123
|
-
method: "POST",
|
|
124
|
-
path: "/databases/get-or-create",
|
|
125
|
-
query: params.query,
|
|
126
|
-
headers: params.headers,
|
|
127
|
-
body: params.body,
|
|
128
|
-
opId: "getOrCreateDatabase",
|
|
129
|
-
expectedContentType: "application/json",
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* Import database from JSON
|
|
134
|
-
* Import a database from exported JSON structure
|
|
135
|
-
*/
|
|
136
|
-
async importDatabase(params) {
|
|
137
|
-
return this.client.request({
|
|
138
|
-
method: "POST",
|
|
139
|
-
path: "/databases/import",
|
|
140
|
-
headers: params.headers,
|
|
141
|
-
body: params.body,
|
|
142
|
-
opId: "importDatabase",
|
|
143
|
-
expectedContentType: "application/json",
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
/**
|
|
147
|
-
* Update database
|
|
148
|
-
* Update an existing database
|
|
149
|
-
*/
|
|
150
|
-
async updateDatabase(params) {
|
|
151
|
-
return this.client.request({
|
|
152
|
-
method: "PUT",
|
|
153
|
-
path: "/databases/:id",
|
|
154
|
-
pathParams: params.path,
|
|
155
|
-
headers: params.headers,
|
|
156
|
-
body: params.body,
|
|
157
|
-
opId: "updateDatabase",
|
|
158
|
-
expectedContentType: "application/json",
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
exports.DatabasesApi = DatabasesApi;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Resolve API
|
|
3
|
-
*
|
|
4
|
-
* Generated from contract introspection
|
|
5
|
-
* Domain: resolve
|
|
6
|
-
*/
|
|
7
|
-
import type { Client } from "../runtime/transport";
|
|
8
|
-
import type { ResolveAliasesRequestContract, ResolveAliasesResponseContract } from "../types";
|
|
9
|
-
export declare class ResolveApi {
|
|
10
|
-
private client;
|
|
11
|
-
constructor(client: Client);
|
|
12
|
-
/**
|
|
13
|
-
* Resolve aliases
|
|
14
|
-
* Resolve database, dashboard, and view by alias or id within the given organization scope. Returns for each item the resolved id and alias, or resolved: false with error_code. Dashboard requires database; view requires dashboard and database. Request-level cache avoids duplicate DB lookups for repeated parent refs.
|
|
15
|
-
*/
|
|
16
|
-
resolveAliases(params: {
|
|
17
|
-
headers?: Record<string, string>;
|
|
18
|
-
body: ResolveAliasesRequestContract;
|
|
19
|
-
}): Promise<ResolveAliasesResponseContract>;
|
|
20
|
-
}
|
package/dist/apis/ResolveApi.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Resolve API
|
|
4
|
-
*
|
|
5
|
-
* Generated from contract introspection
|
|
6
|
-
* Domain: resolve
|
|
7
|
-
*/
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.ResolveApi = void 0;
|
|
10
|
-
class ResolveApi {
|
|
11
|
-
constructor(client) {
|
|
12
|
-
this.client = client;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Resolve aliases
|
|
16
|
-
* Resolve database, dashboard, and view by alias or id within the given organization scope. Returns for each item the resolved id and alias, or resolved: false with error_code. Dashboard requires database; view requires dashboard and database. Request-level cache avoids duplicate DB lookups for repeated parent refs.
|
|
17
|
-
*/
|
|
18
|
-
async resolveAliases(params) {
|
|
19
|
-
return this.client.request({
|
|
20
|
-
method: "POST",
|
|
21
|
-
path: "/resolve/aliases",
|
|
22
|
-
headers: params.headers,
|
|
23
|
-
body: params.body,
|
|
24
|
-
opId: "resolveAliases",
|
|
25
|
-
expectedContentType: "application/json",
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
exports.ResolveApi = ResolveApi;
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Templates API
|
|
3
|
-
*
|
|
4
|
-
* Generated from contract introspection
|
|
5
|
-
* Domain: templates
|
|
6
|
-
*/
|
|
7
|
-
import type { Client } from "../runtime/transport";
|
|
8
|
-
import type { AliasContract, aliasInQueryOptional, CreateTemplateRequestContract, DashboardListResponseContract, DatabaseListResponseContract, limitInQueryOptional, nameInQueryOptional, pageInQueryOptional, rootEntityInQueryOptional, StandardApiResponseContract, templateIdInPathRequired, TemplateListResponseContract, TemplateResponseContract, UpdateTemplateRequestContract } from "../types";
|
|
9
|
-
export declare class TemplatesApi {
|
|
10
|
-
private client;
|
|
11
|
-
constructor(client: Client);
|
|
12
|
-
/**
|
|
13
|
-
* Create template
|
|
14
|
-
* Create a new dashboard template
|
|
15
|
-
*/
|
|
16
|
-
createTemplate(params: {
|
|
17
|
-
query?: {
|
|
18
|
-
replace_existing?: boolean;
|
|
19
|
-
};
|
|
20
|
-
headers?: Record<string, string>;
|
|
21
|
-
body: CreateTemplateRequestContract;
|
|
22
|
-
}): Promise<TemplateResponseContract>;
|
|
23
|
-
/**
|
|
24
|
-
* Delete template
|
|
25
|
-
* Delete a template (soft delete)
|
|
26
|
-
*/
|
|
27
|
-
deleteTemplate(params: {
|
|
28
|
-
path: {
|
|
29
|
-
template_id: templateIdInPathRequired;
|
|
30
|
-
};
|
|
31
|
-
headers?: Record<string, string>;
|
|
32
|
-
}): Promise<StandardApiResponseContract>;
|
|
33
|
-
/**
|
|
34
|
-
* Get template
|
|
35
|
-
* Get a specific template by ID
|
|
36
|
-
*/
|
|
37
|
-
getTemplate(params: {
|
|
38
|
-
path: {
|
|
39
|
-
template_id: templateIdInPathRequired;
|
|
40
|
-
};
|
|
41
|
-
headers?: Record<string, string>;
|
|
42
|
-
}): Promise<TemplateResponseContract>;
|
|
43
|
-
/**
|
|
44
|
-
* List templates
|
|
45
|
-
* Get a list of dashboard templates with optional filtering
|
|
46
|
-
*/
|
|
47
|
-
getTemplates(params: {
|
|
48
|
-
query?: {
|
|
49
|
-
root_entity?: rootEntityInQueryOptional;
|
|
50
|
-
name?: nameInQueryOptional;
|
|
51
|
-
page?: pageInQueryOptional;
|
|
52
|
-
limit?: limitInQueryOptional;
|
|
53
|
-
};
|
|
54
|
-
headers?: Record<string, string>;
|
|
55
|
-
}): Promise<TemplateListResponseContract>;
|
|
56
|
-
/**
|
|
57
|
-
* Search template dashboards
|
|
58
|
-
* Search for dashboards in the template org scope (TEMPLATE_ORG_SCOPE_ID).
|
|
59
|
-
* Template dashboards are dashboards that are stored in the template org scope
|
|
60
|
-
* and can be used as templates for creating new dashboards.
|
|
61
|
-
*
|
|
62
|
-
* If database_id or database_alias are not provided, only dashboards with database_id = null
|
|
63
|
-
* (standalone template dashboards) are returned.
|
|
64
|
-
*
|
|
65
|
-
*/
|
|
66
|
-
searchTemplateDashboards(params: {
|
|
67
|
-
query?: {
|
|
68
|
-
dashboard_id?: string;
|
|
69
|
-
database_id?: string;
|
|
70
|
-
database_alias?: AliasContract;
|
|
71
|
-
alias?: aliasInQueryOptional;
|
|
72
|
-
};
|
|
73
|
-
headers?: Record<string, string>;
|
|
74
|
-
}): Promise<DashboardListResponseContract>;
|
|
75
|
-
/**
|
|
76
|
-
* Search template databases
|
|
77
|
-
* Search for databases in the template org scope (TEMPLATE_ORG_SCOPE_ID).
|
|
78
|
-
* Template databases are databases that are stored in the template org scope
|
|
79
|
-
* and can be used as templates for creating new databases.
|
|
80
|
-
*
|
|
81
|
-
*/
|
|
82
|
-
searchTemplateDatabases(params: {
|
|
83
|
-
query?: {
|
|
84
|
-
database_id?: string;
|
|
85
|
-
alias?: aliasInQueryOptional;
|
|
86
|
-
};
|
|
87
|
-
headers?: Record<string, string>;
|
|
88
|
-
}): Promise<DatabaseListResponseContract>;
|
|
89
|
-
/**
|
|
90
|
-
* Update template
|
|
91
|
-
* Update an existing template
|
|
92
|
-
*/
|
|
93
|
-
updateTemplate(params: {
|
|
94
|
-
path: {
|
|
95
|
-
template_id: templateIdInPathRequired;
|
|
96
|
-
};
|
|
97
|
-
headers?: Record<string, string>;
|
|
98
|
-
body: UpdateTemplateRequestContract;
|
|
99
|
-
}): Promise<TemplateResponseContract>;
|
|
100
|
-
}
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Templates API
|
|
4
|
-
*
|
|
5
|
-
* Generated from contract introspection
|
|
6
|
-
* Domain: templates
|
|
7
|
-
*/
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.TemplatesApi = void 0;
|
|
10
|
-
class TemplatesApi {
|
|
11
|
-
constructor(client) {
|
|
12
|
-
this.client = client;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Create template
|
|
16
|
-
* Create a new dashboard template
|
|
17
|
-
*/
|
|
18
|
-
async createTemplate(params) {
|
|
19
|
-
return this.client.request({
|
|
20
|
-
method: "POST",
|
|
21
|
-
path: "/templates",
|
|
22
|
-
query: params.query,
|
|
23
|
-
headers: params.headers,
|
|
24
|
-
body: params.body,
|
|
25
|
-
opId: "createTemplate",
|
|
26
|
-
expectedContentType: "application/json",
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Delete template
|
|
31
|
-
* Delete a template (soft delete)
|
|
32
|
-
*/
|
|
33
|
-
async deleteTemplate(params) {
|
|
34
|
-
return this.client.request({
|
|
35
|
-
method: "DELETE",
|
|
36
|
-
path: "/templates/:template_id",
|
|
37
|
-
pathParams: params.path,
|
|
38
|
-
headers: params.headers,
|
|
39
|
-
opId: "deleteTemplate",
|
|
40
|
-
expectedContentType: "application/json",
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Get template
|
|
45
|
-
* Get a specific template by ID
|
|
46
|
-
*/
|
|
47
|
-
async getTemplate(params) {
|
|
48
|
-
return this.client.request({
|
|
49
|
-
method: "GET",
|
|
50
|
-
path: "/templates/:template_id",
|
|
51
|
-
pathParams: params.path,
|
|
52
|
-
headers: params.headers,
|
|
53
|
-
opId: "getTemplate",
|
|
54
|
-
expectedContentType: "application/json",
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* List templates
|
|
59
|
-
* Get a list of dashboard templates with optional filtering
|
|
60
|
-
*/
|
|
61
|
-
async getTemplates(params) {
|
|
62
|
-
return this.client.request({
|
|
63
|
-
method: "GET",
|
|
64
|
-
path: "/templates",
|
|
65
|
-
query: params.query,
|
|
66
|
-
headers: params.headers,
|
|
67
|
-
opId: "getTemplates",
|
|
68
|
-
expectedContentType: "application/json",
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Search template dashboards
|
|
73
|
-
* Search for dashboards in the template org scope (TEMPLATE_ORG_SCOPE_ID).
|
|
74
|
-
* Template dashboards are dashboards that are stored in the template org scope
|
|
75
|
-
* and can be used as templates for creating new dashboards.
|
|
76
|
-
*
|
|
77
|
-
* If database_id or database_alias are not provided, only dashboards with database_id = null
|
|
78
|
-
* (standalone template dashboards) are returned.
|
|
79
|
-
*
|
|
80
|
-
*/
|
|
81
|
-
async searchTemplateDashboards(params) {
|
|
82
|
-
return this.client.request({
|
|
83
|
-
method: "GET",
|
|
84
|
-
path: "/templates/dashboards",
|
|
85
|
-
query: params.query,
|
|
86
|
-
headers: params.headers,
|
|
87
|
-
opId: "searchTemplateDashboards",
|
|
88
|
-
expectedContentType: "application/json",
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Search template databases
|
|
93
|
-
* Search for databases in the template org scope (TEMPLATE_ORG_SCOPE_ID).
|
|
94
|
-
* Template databases are databases that are stored in the template org scope
|
|
95
|
-
* and can be used as templates for creating new databases.
|
|
96
|
-
*
|
|
97
|
-
*/
|
|
98
|
-
async searchTemplateDatabases(params) {
|
|
99
|
-
return this.client.request({
|
|
100
|
-
method: "GET",
|
|
101
|
-
path: "/templates/databases",
|
|
102
|
-
query: params.query,
|
|
103
|
-
headers: params.headers,
|
|
104
|
-
opId: "searchTemplateDatabases",
|
|
105
|
-
expectedContentType: "application/json",
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* Update template
|
|
110
|
-
* Update an existing template
|
|
111
|
-
*/
|
|
112
|
-
async updateTemplate(params) {
|
|
113
|
-
return this.client.request({
|
|
114
|
-
method: "PUT",
|
|
115
|
-
path: "/templates/:template_id",
|
|
116
|
-
pathParams: params.path,
|
|
117
|
-
headers: params.headers,
|
|
118
|
-
body: params.body,
|
|
119
|
-
opId: "updateTemplate",
|
|
120
|
-
expectedContentType: "application/json",
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
exports.TemplatesApi = TemplatesApi;
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Base event interface
|
|
3
|
-
* All events must extend this interface
|
|
4
|
-
*/
|
|
5
|
-
export interface EventBase<T extends string = string, P = unknown> {
|
|
6
|
-
type: T;
|
|
7
|
-
payload: P;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Dashboard event types
|
|
11
|
-
*/
|
|
12
|
-
export declare const EVENTS: {
|
|
13
|
-
readonly DATABASE_CREATED: "database:created";
|
|
14
|
-
readonly DASHBOARD_CREATED: "dashboard:created";
|
|
15
|
-
readonly DASHBOARD_DELETED: "dashboard:deleted";
|
|
16
|
-
readonly DASHBOARD_ROW_CREATED: "dashboard:row_created";
|
|
17
|
-
readonly DASHBOARD_ROW_COLUMN_UPDATED: "dashboard:row_column_updated";
|
|
18
|
-
readonly DASHBOARD_RELATION_UPDATED: "dashboard:relation_updated";
|
|
19
|
-
readonly DASHBOARD_RELATION_DELETED: "dashboard:relation_deleted";
|
|
20
|
-
};
|
|
21
|
-
export type DashboardEventType = (typeof EVENTS)[keyof typeof EVENTS];
|
|
22
|
-
/**
|
|
23
|
-
* Event payload interfaces
|
|
24
|
-
*/
|
|
25
|
-
export interface DatabaseCreatedPayload {
|
|
26
|
-
orgId: string;
|
|
27
|
-
databaseId: string;
|
|
28
|
-
}
|
|
29
|
-
export interface DashboardCreatedPayload {
|
|
30
|
-
orgId: string;
|
|
31
|
-
dashboardId: string;
|
|
32
|
-
databaseId?: string;
|
|
33
|
-
}
|
|
34
|
-
export interface DashboardRowCreatedPayload {
|
|
35
|
-
orgId: string;
|
|
36
|
-
dashboardId: string;
|
|
37
|
-
rowUuids: string[];
|
|
38
|
-
}
|
|
39
|
-
export interface DashboardRowColumnUpdatedPayload {
|
|
40
|
-
orgId: string;
|
|
41
|
-
dashboardId: string;
|
|
42
|
-
viewId: string;
|
|
43
|
-
rootIndexValue: string;
|
|
44
|
-
itemKey: string;
|
|
45
|
-
valueBefore: null | string | number | boolean | object | Date;
|
|
46
|
-
alias: null | string;
|
|
47
|
-
render: {
|
|
48
|
-
type: string;
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
export interface DashboardRelationPayload {
|
|
52
|
-
globalId: string;
|
|
53
|
-
sourceDashboardId: string;
|
|
54
|
-
targetDashboardId: string;
|
|
55
|
-
beforeRows: object[];
|
|
56
|
-
afterRows: object[];
|
|
57
|
-
}
|
|
58
|
-
export interface DashboardDeletedPayload {
|
|
59
|
-
dashboardId: string;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Event interfaces
|
|
63
|
-
*/
|
|
64
|
-
export type DatabaseCreatedEvent = EventBase<typeof EVENTS.DATABASE_CREATED, DatabaseCreatedPayload>;
|
|
65
|
-
export type DashboardCreatedEvent = EventBase<typeof EVENTS.DASHBOARD_CREATED, DashboardCreatedPayload>;
|
|
66
|
-
export type DashboardRowCreatedEvent = EventBase<typeof EVENTS.DASHBOARD_ROW_CREATED, DashboardRowCreatedPayload>;
|
|
67
|
-
export type DashboardRowColumnUpdatedEvent = EventBase<typeof EVENTS.DASHBOARD_RELATION_UPDATED, DashboardRowColumnUpdatedPayload>;
|
|
68
|
-
export type DashboardRelationUpdatedEvent = EventBase<typeof EVENTS.DASHBOARD_RELATION_DELETED, DashboardRelationPayload>;
|
|
69
|
-
export type DashboardRelationDeletedEvent = EventBase<typeof EVENTS.DASHBOARD_ROW_COLUMN_UPDATED, DashboardRelationPayload>;
|
|
70
|
-
export type DashboardDeletedEvent = EventBase<typeof EVENTS.DASHBOARD_DELETED, DashboardDeletedPayload>;
|
|
71
|
-
/**
|
|
72
|
-
* Union type of all dashboard events
|
|
73
|
-
* Will be extended when more events are added
|
|
74
|
-
*/
|
|
75
|
-
export type DashboardEvent = DatabaseCreatedEvent | DashboardCreatedEvent | DashboardRowCreatedEvent | DashboardRowColumnUpdatedEvent | DashboardDeletedEvent | DashboardRelationUpdatedEvent | DashboardRelationDeletedEvent;
|
|
76
|
-
/**
|
|
77
|
-
* Helper: Extract payload type by event type string
|
|
78
|
-
*/
|
|
79
|
-
export type DashboardEventPayload<T extends DashboardEvent["type"]> = Extract<DashboardEvent, {
|
|
80
|
-
type: T;
|
|
81
|
-
}>["payload"];
|
package/dist/extras/messaging.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Do not import anything in this file, messaging.ts copy in sdk-client
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.EVENTS = void 0;
|
|
5
|
-
/**
|
|
6
|
-
* Dashboard event types
|
|
7
|
-
*/
|
|
8
|
-
exports.EVENTS = {
|
|
9
|
-
DATABASE_CREATED: "database:created",
|
|
10
|
-
DASHBOARD_CREATED: "dashboard:created",
|
|
11
|
-
DASHBOARD_DELETED: "dashboard:deleted",
|
|
12
|
-
DASHBOARD_ROW_CREATED: "dashboard:row_created",
|
|
13
|
-
DASHBOARD_ROW_COLUMN_UPDATED: "dashboard:row_column_updated",
|
|
14
|
-
DASHBOARD_RELATION_UPDATED: "dashboard:relation_updated",
|
|
15
|
-
DASHBOARD_RELATION_DELETED: "dashboard:relation_deleted",
|
|
16
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Portal-form Schemas
|
|
3
|
-
*
|
|
4
|
-
* Generated from OpenAPI specification
|
|
5
|
-
* Source: schemas/common/portal-form.yaml
|
|
6
|
-
*/
|
|
7
|
-
import type { StandardApiResponseContract } from "../shared/common";
|
|
8
|
-
export interface PortalFormInfoContract {
|
|
9
|
-
id?: string;
|
|
10
|
-
name?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface PortalFormInfoListResponseContract extends StandardApiResponseContract {
|
|
13
|
-
data: PortalFormInfoContract[];
|
|
14
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Custom-item Schemas
|
|
3
|
-
*
|
|
4
|
-
* Generated from OpenAPI specification
|
|
5
|
-
* Source: schemas/dashboard/custom-item.yaml
|
|
6
|
-
*/
|
|
7
|
-
export type DecimalSeparatorEnumContract = "period" | "comma";
|
|
8
|
-
export interface SchemaItemSourceCustomContract {
|
|
9
|
-
type: "custom";
|
|
10
|
-
_type_custom: true;
|
|
11
|
-
custom_type?: "number" | "string" | "boolean" | "link" | "email" | "phone" | "date" | "currency" | "label" | "files" | "assignee" | "child-table-link";
|
|
12
|
-
/**
|
|
13
|
-
* Function name for data enrichment (e.g., getCustomUsers for users type)
|
|
14
|
-
*/
|
|
15
|
-
func_name?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Optional arguments for the enrichment function
|
|
18
|
-
*/
|
|
19
|
-
func_args?: string[];
|
|
20
|
-
/**
|
|
21
|
-
* Template configuration for child-table-link type
|
|
22
|
-
*/
|
|
23
|
-
template?: SourceCustomTemplateContract;
|
|
24
|
-
/**
|
|
25
|
-
* Default representation template id for created child table views
|
|
26
|
-
*/
|
|
27
|
-
default_representation_template_id?: string;
|
|
28
|
-
}
|
|
29
|
-
export interface SourceCustomTemplateContract {
|
|
30
|
-
dashboard_alias?: string;
|
|
31
|
-
dashboard_id?: string;
|
|
32
|
-
database_alias?: string;
|
|
33
|
-
database_id?: string;
|
|
34
|
-
/**
|
|
35
|
-
* Search for the dashboard in the template organization if true
|
|
36
|
-
*/
|
|
37
|
-
search_in_template_org?: boolean;
|
|
38
|
-
}
|
|
39
|
-
export type ThousandSeparatorEnumContract = "space" | "period" | "comma";
|
|
40
|
-
export type UnitPositionEnumContract = "prefix" | "suffix";
|
|
41
|
-
export declare const DecimalSeparatorEnumContract: {
|
|
42
|
-
readonly Period: "period";
|
|
43
|
-
readonly Comma: "comma";
|
|
44
|
-
};
|
|
45
|
-
export declare const ThousandSeparatorEnumContract: {
|
|
46
|
-
readonly Space: "space";
|
|
47
|
-
readonly Period: "period";
|
|
48
|
-
readonly Comma: "comma";
|
|
49
|
-
};
|
|
50
|
-
export declare const UnitPositionEnumContract: {
|
|
51
|
-
readonly Prefix: "prefix";
|
|
52
|
-
readonly Suffix: "suffix";
|
|
53
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Custom-item Schemas
|
|
4
|
-
*
|
|
5
|
-
* Generated from OpenAPI specification
|
|
6
|
-
* Source: schemas/dashboard/custom-item.yaml
|
|
7
|
-
*/
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.UnitPositionEnumContract = exports.ThousandSeparatorEnumContract = exports.DecimalSeparatorEnumContract = void 0;
|
|
10
|
-
exports.DecimalSeparatorEnumContract = {
|
|
11
|
-
Period: "period",
|
|
12
|
-
Comma: "comma"
|
|
13
|
-
};
|
|
14
|
-
exports.ThousandSeparatorEnumContract = {
|
|
15
|
-
Space: "space",
|
|
16
|
-
Period: "period",
|
|
17
|
-
Comma: "comma"
|
|
18
|
-
};
|
|
19
|
-
exports.UnitPositionEnumContract = {
|
|
20
|
-
Prefix: "prefix",
|
|
21
|
-
Suffix: "suffix"
|
|
22
|
-
};
|