@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.
Files changed (79) hide show
  1. package/README.md +8 -10
  2. package/dist/apis/OrgUsersApi.d.ts +12 -1
  3. package/dist/apis/OrgUsersApi.js +15 -0
  4. package/dist/apis/SystemApi.d.ts +20 -0
  5. package/dist/apis/SystemApi.js +29 -0
  6. package/dist/index.d.ts +1 -0
  7. package/dist/index.js +3 -1
  8. package/dist/types/index.d.ts +2 -20
  9. package/dist/types/index.js +1 -6
  10. package/dist/types/org-user/org-user.d.ts +33 -8
  11. package/dist/types/org-user/org-user.js +0 -4
  12. package/dist/types/shared/common.d.ts +0 -69
  13. package/dist/types/shared/common.js +0 -6
  14. package/dist/types/shared/enums.d.ts +1 -22
  15. package/dist/types/shared/enums.js +1 -7
  16. package/dist/types/shared/health.d.ts +0 -6
  17. package/dist/types/shared/health.js +0 -6
  18. package/dist/types/shared/parameters.d.ts +0 -54
  19. package/dist/types/system/system.d.ts +26 -0
  20. package/dist/types/system/system.js +7 -0
  21. package/dist/types/token/token.d.ts +0 -127
  22. package/dist/types/token/token.js +0 -6
  23. package/package.json +2 -2
  24. package/dist/apis/CustomDashboardRowsApi.d.ts +0 -113
  25. package/dist/apis/CustomDashboardRowsApi.js +0 -122
  26. package/dist/apis/DashboardDataApi.d.ts +0 -98
  27. package/dist/apis/DashboardDataApi.js +0 -91
  28. package/dist/apis/DashboardRelationsApi.d.ts +0 -92
  29. package/dist/apis/DashboardRelationsApi.js +0 -117
  30. package/dist/apis/DashboardsApi.d.ts +0 -405
  31. package/dist/apis/DashboardsApi.js +0 -507
  32. package/dist/apis/DatabasesApi.d.ts +0 -134
  33. package/dist/apis/DatabasesApi.js +0 -162
  34. package/dist/apis/ResolveApi.d.ts +0 -20
  35. package/dist/apis/ResolveApi.js +0 -29
  36. package/dist/apis/TemplatesApi.d.ts +0 -100
  37. package/dist/apis/TemplatesApi.js +0 -124
  38. package/dist/extras/messaging.d.ts +0 -81
  39. package/dist/extras/messaging.js +0 -16
  40. package/dist/types/common/portal-form.d.ts +0 -14
  41. package/dist/types/common/portal-form.js +0 -8
  42. package/dist/types/dashboard/custom-item.d.ts +0 -53
  43. package/dist/types/dashboard/custom-item.js +0 -22
  44. package/dist/types/dashboard/dashboard.d.ts +0 -421
  45. package/dist/types/dashboard/dashboard.js +0 -8
  46. package/dist/types/dashboard/dashboards.d.ts +0 -19
  47. package/dist/types/dashboard/dashboards.js +0 -8
  48. package/dist/types/dashboard/data.d.ts +0 -10
  49. package/dist/types/dashboard/data.js +0 -8
  50. package/dist/types/dashboard/export.d.ts +0 -11
  51. package/dist/types/dashboard/export.js +0 -8
  52. package/dist/types/dashboard/index.d.ts +0 -215
  53. package/dist/types/dashboard/index.js +0 -34
  54. package/dist/types/dashboard/intent.d.ts +0 -243
  55. package/dist/types/dashboard/intent.js +0 -8
  56. package/dist/types/dashboard/items.d.ts +0 -14
  57. package/dist/types/dashboard/items.js +0 -8
  58. package/dist/types/dashboard/metadata.d.ts +0 -12
  59. package/dist/types/dashboard/metadata.js +0 -8
  60. package/dist/types/dashboard/render.d.ts +0 -188
  61. package/dist/types/dashboard/render.js +0 -51
  62. package/dist/types/dashboard/rows.d.ts +0 -77
  63. package/dist/types/dashboard/rows.js +0 -14
  64. package/dist/types/dashboard/schema.d.ts +0 -172
  65. package/dist/types/dashboard/schema.js +0 -17
  66. package/dist/types/dashboard/values.d.ts +0 -187
  67. package/dist/types/dashboard/values.js +0 -8
  68. package/dist/types/dashboard/view.d.ts +0 -249
  69. package/dist/types/dashboard/view.js +0 -8
  70. package/dist/types/database/database.d.ts +0 -203
  71. package/dist/types/database/database.js +0 -8
  72. package/dist/types/database/export.d.ts +0 -11
  73. package/dist/types/database/export.js +0 -8
  74. package/dist/types/relations/relations.d.ts +0 -138
  75. package/dist/types/relations/relations.js +0 -14
  76. package/dist/types/resolve/resolve.d.ts +0 -86
  77. package/dist/types/resolve/resolve.js +0 -20
  78. package/dist/types/template/template.d.ts +0 -74
  79. package/dist/types/template/template.js +0 -8
@@ -1,421 +0,0 @@
1
- /**
2
- * Dashboard Schemas
3
- *
4
- * Generated from OpenAPI specification
5
- * Source: schemas/dashboard/dashboard.yaml
6
- */
7
- import type { DatabaseRefContract } from "../database/database";
8
- import type { AliasContract, GlobalIdsToReplaceMapContract, PaginatedResponseContract, ScopeContract, ScopeOrgContract, StandardApiResponseContract } from "../shared/common";
9
- import type { RootEntityContract, ScopeTypeOrgContract } from "../shared/enums";
10
- import type { TemplateContract } from "../template/template";
11
- import type { DashboardMetadataContract } from "./metadata";
12
- import type { SchemaItemRenderEditTypeContract, SchemaItemRenderTypeContract } from "./render";
13
- import type { DashboardSchemaContract } from "./schema";
14
- import type { DashboardValueExtended } from "./values";
15
- import type { DashboardViewItemContract } from "./view";
16
- export interface CopyDashboardFromDashboardRequestContract {
17
- /**
18
- * ID of the dashboard to copy from
19
- *
20
- * @format uuid
21
- */
22
- source_dashboard_id: string;
23
- /**
24
- * New dashboard ID
25
- *
26
- * @format uuid
27
- */
28
- global_id: string;
29
- alias?: AliasContract;
30
- /**
31
- * Optional new name (defaults to source name)
32
- *
33
- * @minLength 1
34
- * @maxLength 255
35
- */
36
- name?: string;
37
- /**
38
- * Optional new database ID
39
- *
40
- * @format uuid
41
- * @nullable true
42
- */
43
- database_id?: string | null;
44
- /**
45
- * Required new scopes for the copied dashboard, org scope required
46
- */
47
- scopes: ScopeContract[];
48
- /**
49
- * Optional predefined mapping of old global IDs to new global IDs
50
- */
51
- global_ids_to_replace_map?: GlobalIdsToReplaceMapContract;
52
- /**
53
- * Include dashboard values/data in the copy
54
- *
55
- * @default false
56
- */
57
- include_data?: boolean;
58
- }
59
- export interface CreateDashboardFromFormRequestContract {
60
- /**
61
- * @format uuid
62
- */
63
- global_id: string;
64
- alias?: AliasContract;
65
- /**
66
- * @minLength 1
67
- * @maxLength 255
68
- */
69
- name?: string;
70
- /**
71
- * @default true
72
- */
73
- readonly?: boolean;
74
- /**
75
- * org scope must be provided
76
- */
77
- scopes: ScopeContract[];
78
- metadata?: DashboardMetadataContract;
79
- }
80
- export interface CreateDashboardFromTemplateRequestContract {
81
- /**
82
- * @format uuid
83
- */
84
- global_id: string;
85
- alias?: AliasContract;
86
- /**
87
- * @format uuid
88
- */
89
- template_id: string;
90
- /**
91
- * @minLength 1
92
- * @maxLength 255
93
- */
94
- name: string;
95
- /**
96
- * org scope must be provided
97
- */
98
- scopes: ScopeContract[];
99
- /**
100
- * Optional database ID
101
- *
102
- * @format uuid
103
- * @nullable true
104
- */
105
- database_id?: string | null;
106
- /**
107
- * Regenerate custom item keys
108
- *
109
- * @default false
110
- */
111
- regenerate_custom_item_keys?: boolean;
112
- metadata?: DashboardMetadataContract;
113
- }
114
- export interface CreateDashboardRequestContract {
115
- /**
116
- * @format uuid
117
- */
118
- global_id: string;
119
- alias?: AliasContract;
120
- /**
121
- * Optional template ID
122
- *
123
- * @format uuid
124
- */
125
- template_id?: string;
126
- /**
127
- * Optional database ID
128
- *
129
- * @format uuid
130
- * @nullable true
131
- */
132
- database_id?: string | null;
133
- /**
134
- * @minLength 1
135
- * @maxLength 255
136
- */
137
- name: string;
138
- root_entity: RootEntityContract;
139
- schema: DashboardSchemaContract;
140
- /**
141
- * org scope must be provided
142
- */
143
- scopes: ScopeContract[];
144
- /**
145
- * Whether the dashboard is public
146
- *
147
- * @default false
148
- */
149
- is_public?: boolean;
150
- metadata?: DashboardMetadataContract;
151
- }
152
- export interface DashboardContract extends DashboardRefContract, DashboardPropertiesContract, DashboardExpandedViewsContract, DashboardExpandedContract {
153
- }
154
- export interface DashboardDataQueryContract {
155
- /**
156
- * JSON string of additional filters
157
- */
158
- filters?: string;
159
- /**
160
- * Comma-separated list of fields to select
161
- */
162
- select?: string;
163
- /**
164
- * JSON string of sort configuration
165
- */
166
- sort?: string;
167
- /**
168
- * @minimum 1
169
- * @default 1
170
- */
171
- page?: number;
172
- /**
173
- * @minimum 1
174
- * @maximum 100
175
- * @default 20
176
- */
177
- limit?: number;
178
- }
179
- export interface DashboardDataResponseContract extends PaginatedResponseContract {
180
- /**
181
- * Array of dashboard data rows, where each row contains root_index_value and item keys mapped to DashboardValueExtended
182
- */
183
- data: ({
184
- root_index_value: string;
185
- } & Record<string, DashboardValueExtended>)[];
186
- }
187
- export interface DashboardDescribeContract extends DashboardRefContract, DashboardPropertiesContract {
188
- schema: DashboardSchemaContract;
189
- }
190
- export interface DashboardDescribeResponseContract extends StandardApiResponseContract {
191
- data?: DashboardDescribeContract;
192
- }
193
- export interface DashboardExpandedContract {
194
- database?: DatabaseRefContract;
195
- /**
196
- * @nullable true
197
- */
198
- template?: TemplateContract;
199
- scopes?: ScopeContract[];
200
- }
201
- export interface DashboardExpandedScopesContract {
202
- scopes?: ScopeContract[];
203
- }
204
- export interface DashboardExpandedViewsContract {
205
- views?: DashboardViewItemContract[];
206
- views_count?: number;
207
- }
208
- export interface DashboardItemContract extends DashboardRefContract, DashboardExpandedViewsContract, DashboardExpandedScopesContract {
209
- }
210
- export interface DashboardListResponseContract extends StandardApiResponseContract {
211
- data?: DashboardContract[];
212
- }
213
- export interface DashboardPropertiesContract {
214
- /**
215
- * Template ID if created from template
216
- *
217
- * @format uuid
218
- * @nullable true
219
- */
220
- template_id?: string | null;
221
- /**
222
- * @format date-time
223
- */
224
- created_at: Date;
225
- /**
226
- * @format date-time
227
- */
228
- updated_at: Date;
229
- /**
230
- * @format date-time
231
- * @nullable true
232
- */
233
- deleted_at?: Date | null;
234
- metadata: DashboardMetadataContract;
235
- }
236
- export interface DashboardRefContract {
237
- /**
238
- * Unique identifier
239
- *
240
- * @format uuid
241
- */
242
- global_id: string;
243
- /**
244
- * Database ID if created from database
245
- *
246
- * @format uuid
247
- * @nullable true
248
- */
249
- database_id?: string | null;
250
- /**
251
- * Dashboard name
252
- */
253
- name: string;
254
- alias?: AliasContract;
255
- root_entity: RootEntityContract;
256
- /**
257
- * Whether the dashboard is public
258
- *
259
- * @default false
260
- */
261
- is_public?: boolean;
262
- views_count?: number;
263
- }
264
- export interface DashboardResponseContract extends StandardApiResponseContract {
265
- data?: DashboardContract;
266
- }
267
- export interface GetChildTableLinkDashboardRequestContract {
268
- /**
269
- * Target org scope type
270
- */
271
- scope_type: ScopeTypeOrgContract;
272
- /**
273
- * Target org scope ID
274
- */
275
- scope_id: string;
276
- /**
277
- * Parent dashboard ID containing the child-table-link cell
278
- *
279
- * @format uuid
280
- */
281
- dashboard_id: string;
282
- /**
283
- * Schema item key for the child-table-link column
284
- */
285
- item_key: string;
286
- /**
287
- * Row identifier (rowUuid) containing the cell
288
- */
289
- root_index_value: string;
290
- }
291
- export interface GetChildTableLinkDashboardResponseContract extends StandardApiResponseContract {
292
- /**
293
- * true if dashboard was created, false if it already existed
294
- */
295
- created: boolean;
296
- data: DashboardContract;
297
- /**
298
- * ID of the default view for the dashboard
299
- *
300
- * @format uuid
301
- */
302
- default_view_id?: string;
303
- }
304
- export interface GetOrCreateDashboardRequestContract {
305
- /**
306
- * Optional template globalId (mutually exclusive with template_alias)
307
- *
308
- * @format uuid
309
- */
310
- template_id?: string;
311
- /**
312
- * Optional template alias (mutually exclusive with template_id). Searches in template_scope first, then org scope from scopes array, then system org (from SYSTEM_ORG_SCOPE_ID env var).
313
- */
314
- template_alias?: AliasContract;
315
- /**
316
- * Optional orgainzation scope to search for template. If provided, org scope will be extracted from here first.
317
- */
318
- template_scope?: ScopeOrgContract;
319
- /**
320
- * Optional template database globalId (mutually exclusive with template_database_alias). Used to specify which database to copy from when creating dashboard from template.
321
- *
322
- * @format uuid
323
- */
324
- template_database_id?: string;
325
- /**
326
- * Optional template database alias (mutually exclusive with template_database_id). Used to specify which database to copy from when creating dashboard from template. Searches in template_scope first, then org scope from scopes array, then system org (from SYSTEM_ORG_SCOPE_ID env var).
327
- */
328
- template_database_alias?: AliasContract;
329
- /**
330
- * Optional predefined mapping of old global IDs to new global IDs (for template-based creation)
331
- */
332
- global_ids_to_replace_map?: GlobalIdsToReplaceMapContract;
333
- /**
334
- * Additional target scopes to add to the dashboard
335
- */
336
- additional_target_scopes?: ScopeContract[];
337
- }
338
- export interface GetOrCreateDashboardResponseContract extends StandardApiResponseContract {
339
- /**
340
- * true if created, false if found
341
- */
342
- created?: boolean;
343
- data?: DashboardContract;
344
- }
345
- /**
346
- * DEPRECATED: This type is no longer used for CSV import.
347
- * The endpoint now uses query parameters with deepObject style instead.
348
- * See the importDashboardFromCsv operation for the new request format.
349
- *
350
- */
351
- export interface ImportDashboardCsvColumnContract {
352
- /**
353
- * Column index in the CSV file (0-based)
354
- *
355
- * @minimum 0
356
- */
357
- index: number;
358
- /**
359
- * Schema item key/id for the column
360
- */
361
- id: string;
362
- /**
363
- * Render properties for the column
364
- */
365
- render: {
366
- type: SchemaItemRenderTypeContract;
367
- edit_type?: SchemaItemRenderEditTypeContract;
368
- };
369
- /**
370
- * Display name for the column
371
- */
372
- name?: string;
373
- }
374
- /**
375
- * DEPRECATED: This type is no longer used for CSV import.
376
- * The endpoint now uses query parameters (database_id and mapping) instead.
377
- * See the importDashboardFromCsv operation for the new request format.
378
- *
379
- */
380
- export interface ImportDashboardCsvRequestDataPartContract {
381
- scopes: ScopeContract[];
382
- /**
383
- * Database ID to import the data into
384
- *
385
- * @format uuid
386
- */
387
- databaseId: string;
388
- /**
389
- * Column mapping from CSV to dashboard schema
390
- */
391
- columns: ImportDashboardCsvColumnContract[];
392
- }
393
- export interface ImportDashboardRequestContract {
394
- /**
395
- * Required scopes for the imported dashboard, org scope required
396
- */
397
- scopes: ScopeContract[];
398
- /**
399
- * @format uuid
400
- */
401
- global_id?: string;
402
- alias?: AliasContract;
403
- name?: string;
404
- root_entity?: RootEntityContract;
405
- schema?: DashboardSchemaContract;
406
- metadata?: DashboardMetadataContract;
407
- }
408
- export interface UpdateDashboardRequestContract {
409
- /**
410
- * @minLength 1
411
- * @maxLength 255
412
- */
413
- name?: string;
414
- alias?: AliasContract;
415
- /**
416
- * Whether the dashboard is public
417
- */
418
- is_public?: boolean;
419
- metadata?: DashboardMetadataContract;
420
- view_order?: string[];
421
- }
@@ -1,8 +0,0 @@
1
- "use strict";
2
- /**
3
- * Dashboard Schemas
4
- *
5
- * Generated from OpenAPI specification
6
- * Source: schemas/dashboard/dashboard.yaml
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,19 +0,0 @@
1
- /**
2
- * Dashboards Schemas
3
- *
4
- * Generated from OpenAPI specification
5
- * Source: schemas/dashboard/dashboards.yaml
6
- */
7
- export interface DeleteDashboardSchemaItem200ResponseContract {
8
- /**
9
- * Whether the operation was successful
10
- */
11
- success: boolean;
12
- /**
13
- * Response message
14
- */
15
- message: string;
16
- data?: {
17
- deletedItemKeys: string[];
18
- };
19
- }
@@ -1,8 +0,0 @@
1
- "use strict";
2
- /**
3
- * Dashboards Schemas
4
- *
5
- * Generated from OpenAPI specification
6
- * Source: schemas/dashboard/dashboards.yaml
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- /**
2
- * Data Schemas
3
- *
4
- * Generated from OpenAPI specification
5
- * Source: schemas/dashboard/data.yaml
6
- */
7
- export interface ReindexDashboardData200ResponseContract {
8
- success?: boolean;
9
- message?: string;
10
- }
@@ -1,8 +0,0 @@
1
- "use strict";
2
- /**
3
- * Data Schemas
4
- *
5
- * Generated from OpenAPI specification
6
- * Source: schemas/dashboard/data.yaml
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- /**
2
- * Export Schemas
3
- *
4
- * Generated from OpenAPI specification
5
- * Source: schemas/dashboard/export.yaml
6
- */
7
- /**
8
- * Exported dashboard JSON structure
9
- */
10
- export interface ExportDashboardAsJson200ResponseContract {
11
- }
@@ -1,8 +0,0 @@
1
- "use strict";
2
- /**
3
- * Export Schemas
4
- *
5
- * Generated from OpenAPI specification
6
- * Source: schemas/dashboard/export.yaml
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });