@redonvn/redai-backend-api-sdk 0.1.16 → 0.1.18

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redonvn/redai-backend-api-sdk",
3
- "version": "0.1.16",
3
+ "version": "0.1.18",
4
4
  "description": "Axios SDK for RedAI Dynamic Table APIs",
5
5
  "license": "UNLICENSED",
6
6
  "main": "src/index.ts",
@@ -0,0 +1,89 @@
1
+ /* eslint-disable */
2
+ import { HttpClient } from '../../../core/http-client';
3
+ import type {
4
+ AddReactionParams,
5
+ ApiResponseDto,
6
+ CommentCountItemResponseDto,
7
+ CommentReactionResponseDto,
8
+ CommentResponseDto,
9
+ CountCommentsParams,
10
+ CreateCommentParams,
11
+ DeleteCommentParams,
12
+ ListCommentsParams,
13
+ RemoveReactionParams,
14
+ UpdateCommentParams,
15
+ } from '../types';
16
+
17
+ export class CommentsService {
18
+ constructor(private readonly client: HttpClient) {}
19
+
20
+ async deleteComment(params: DeleteCommentParams): Promise<ApiResponseDto<null>> {
21
+ return this.client.request<ApiResponseDto<null>>({
22
+ method: 'DELETE',
23
+ url: `/v1/dynamic-table/db/meta/comment/${encodeURIComponent(String(params.commentId))}`,
24
+ params: undefined,
25
+ data: undefined,
26
+ headers: undefined,
27
+ });
28
+ }
29
+
30
+ async updateComment(params: UpdateCommentParams): Promise<ApiResponseDto<CommentResponseDto>> {
31
+ return this.client.request<ApiResponseDto<CommentResponseDto>>({
32
+ method: 'PATCH',
33
+ url: `/v1/dynamic-table/db/meta/comment/${encodeURIComponent(String(params.commentId))}`,
34
+ params: undefined,
35
+ data: params?.body,
36
+ headers: undefined,
37
+ });
38
+ }
39
+
40
+ async listComments(params?: ListCommentsParams): Promise<ApiResponseDto<CommentResponseDto[]>> {
41
+ return this.client.request<ApiResponseDto<CommentResponseDto[]>>({
42
+ method: 'GET',
43
+ url: `/v1/dynamic-table/db/meta/comments`,
44
+ params: params?.query,
45
+ data: undefined,
46
+ headers: undefined,
47
+ });
48
+ }
49
+
50
+ async createComment(params: CreateCommentParams): Promise<ApiResponseDto<CommentResponseDto>> {
51
+ return this.client.request<ApiResponseDto<CommentResponseDto>>({
52
+ method: 'POST',
53
+ url: `/v1/dynamic-table/db/meta/comments`,
54
+ params: undefined,
55
+ data: params?.body,
56
+ headers: undefined,
57
+ });
58
+ }
59
+
60
+ async addReaction(params: AddReactionParams): Promise<ApiResponseDto<CommentReactionResponseDto>> {
61
+ return this.client.request<ApiResponseDto<CommentReactionResponseDto>>({
62
+ method: 'POST',
63
+ url: `/v1/dynamic-table/db/meta/comments/${encodeURIComponent(String(params.commentId))}/reactions`,
64
+ params: undefined,
65
+ data: params?.body,
66
+ headers: undefined,
67
+ });
68
+ }
69
+
70
+ async removeReaction(params: RemoveReactionParams): Promise<ApiResponseDto<null>> {
71
+ return this.client.request<ApiResponseDto<null>>({
72
+ method: 'DELETE',
73
+ url: `/v1/dynamic-table/db/meta/comments/${encodeURIComponent(String(params.commentId))}/reactions/${encodeURIComponent(String(params.reaction))}`,
74
+ params: undefined,
75
+ data: undefined,
76
+ headers: undefined,
77
+ });
78
+ }
79
+
80
+ async countComments(params?: CountCommentsParams): Promise<ApiResponseDto<CommentCountItemResponseDto[]>> {
81
+ return this.client.request<ApiResponseDto<CommentCountItemResponseDto[]>>({
82
+ method: 'GET',
83
+ url: `/v1/dynamic-table/db/meta/comments/count`,
84
+ params: params?.query,
85
+ data: undefined,
86
+ headers: undefined,
87
+ });
88
+ }
89
+ }
@@ -0,0 +1,79 @@
1
+ /* eslint-disable */
2
+ import { HttpClient } from '../../../core/http-client';
3
+ import type {
4
+ AbortImportJobParams,
5
+ ApiResponseDto,
6
+ GetImportJobParams,
7
+ ImportFromUrlParams,
8
+ ImportJobResponseDto,
9
+ ImportPreviewResponseDto,
10
+ ImportStartResponseDto,
11
+ ImportUploadResponseDto,
12
+ PreviewImportFileParams,
13
+ StartImportParams,
14
+ UploadImportFileParams,
15
+ } from '../types';
16
+
17
+ export class DataImportsService {
18
+ constructor(private readonly client: HttpClient) {}
19
+
20
+ async startImport(params: StartImportParams): Promise<ApiResponseDto<ImportStartResponseDto>> {
21
+ return this.client.request<ApiResponseDto<ImportStartResponseDto>>({
22
+ method: 'POST',
23
+ url: `/v1/dynamic-table/db/data/imports`,
24
+ params: undefined,
25
+ data: params?.body,
26
+ headers: undefined,
27
+ });
28
+ }
29
+
30
+ async getImportJob(params: GetImportJobParams): Promise<ApiResponseDto<ImportJobResponseDto>> {
31
+ return this.client.request<ApiResponseDto<ImportJobResponseDto>>({
32
+ method: 'GET',
33
+ url: `/v1/dynamic-table/db/data/imports/${encodeURIComponent(String(params.jobId))}`,
34
+ params: undefined,
35
+ data: undefined,
36
+ headers: undefined,
37
+ });
38
+ }
39
+
40
+ async abortImportJob(params: AbortImportJobParams): Promise<ApiResponseDto<{ id: string; status: string; }>> {
41
+ return this.client.request<ApiResponseDto<{ id: string; status: string; }>>({
42
+ method: 'POST',
43
+ url: `/v1/dynamic-table/db/data/imports/${encodeURIComponent(String(params.jobId))}/abort`,
44
+ params: undefined,
45
+ data: undefined,
46
+ headers: undefined,
47
+ });
48
+ }
49
+
50
+ async previewImportFile(params: PreviewImportFileParams): Promise<ApiResponseDto<ImportPreviewResponseDto>> {
51
+ return this.client.request<ApiResponseDto<ImportPreviewResponseDto>>({
52
+ method: 'POST',
53
+ url: `/v1/dynamic-table/db/data/imports/preview`,
54
+ params: undefined,
55
+ data: params?.body,
56
+ headers: undefined,
57
+ });
58
+ }
59
+
60
+ async uploadImportFile(params: UploadImportFileParams): Promise<ApiResponseDto<ImportUploadResponseDto>> {
61
+ return this.client.request<ApiResponseDto<ImportUploadResponseDto>>({
62
+ method: 'POST',
63
+ url: `/v1/dynamic-table/db/data/imports/upload`,
64
+ params: undefined,
65
+ data: params?.body,
66
+ headers: undefined,
67
+ });
68
+ }
69
+
70
+ async importFromUrl(params: ImportFromUrlParams): Promise<ApiResponseDto<ImportUploadResponseDto>> {
71
+ return this.client.request<ApiResponseDto<ImportUploadResponseDto>>({
72
+ method: 'POST',
73
+ url: `/v1/dynamic-table/db/data/imports/url`,
74
+ params: undefined,
75
+ data: params?.body,
76
+ headers: undefined,
77
+ });
78
+ }
79
+ }
@@ -10,6 +10,8 @@ export { CalendarDataService } from './calendar-data.service';
10
10
  export { CalendarsService } from './calendars.service';
11
11
  export { ColumnsService } from './columns.service';
12
12
  export { CommandPaletteService } from './command-palette.service';
13
+ export { CommentsService } from './comments.service';
14
+ export { DataImportsService } from './data-imports.service';
13
15
  export { DataTableService } from './data-table.service';
14
16
  export { DynamicTableAuthService } from './dynamic-table-auth.service';
15
17
  export { FiltersService } from './filters.service';
@@ -18,6 +20,8 @@ export { GalleriesService } from './galleries.service';
18
20
  export { GridsService } from './grids.service';
19
21
  export { HooksService } from './hooks.service';
20
22
  export { InternalService } from './internal.service';
23
+ export { JobsService } from './jobs.service';
24
+ export { JobsMetaService } from './jobs-meta.service';
21
25
  export { KanbanDataService } from './kanban-data.service';
22
26
  export { KanbansService } from './kanbans.service';
23
27
  export { MapsService } from './maps.service';
@@ -0,0 +1,54 @@
1
+ /* eslint-disable */
2
+ import { HttpClient } from '../../../core/http-client';
3
+ import type {
4
+ ApiResponseDto,
5
+ CancelJobParams,
6
+ GetJobParams,
7
+ ImportJobResponseDto,
8
+ ListJobsParams,
9
+ RetryJobParams,
10
+ } from '../types';
11
+
12
+ export class JobsMetaService {
13
+ constructor(private readonly client: HttpClient) {}
14
+
15
+ async listJobs(params?: ListJobsParams): Promise<ApiResponseDto<ImportJobResponseDto[]>> {
16
+ return this.client.request<ApiResponseDto<ImportJobResponseDto[]>>({
17
+ method: 'GET',
18
+ url: `/v1/dynamic-table/db/meta/jobs`,
19
+ params: params?.query,
20
+ data: undefined,
21
+ headers: undefined,
22
+ });
23
+ }
24
+
25
+ async getJob(params: GetJobParams): Promise<ApiResponseDto<ImportJobResponseDto>> {
26
+ return this.client.request<ApiResponseDto<ImportJobResponseDto>>({
27
+ method: 'GET',
28
+ url: `/v1/dynamic-table/db/meta/jobs/${encodeURIComponent(String(params.jobId))}`,
29
+ params: undefined,
30
+ data: undefined,
31
+ headers: undefined,
32
+ });
33
+ }
34
+
35
+ async cancelJob(params: CancelJobParams): Promise<ApiResponseDto<{ id: string; status: string; }>> {
36
+ return this.client.request<ApiResponseDto<{ id: string; status: string; }>>({
37
+ method: 'POST',
38
+ url: `/v1/dynamic-table/db/meta/jobs/${encodeURIComponent(String(params.jobId))}/cancel`,
39
+ params: undefined,
40
+ data: undefined,
41
+ headers: undefined,
42
+ });
43
+ }
44
+
45
+ async retryJob(params: RetryJobParams): Promise<ApiResponseDto<{ id: string; status: string; }>> {
46
+ return this.client.request<ApiResponseDto<{ id: string; status: string; }>>({
47
+ method: 'POST',
48
+ url: `/v1/dynamic-table/db/meta/jobs/${encodeURIComponent(String(params.jobId))}/retry`,
49
+ params: undefined,
50
+ data: undefined,
51
+ headers: undefined,
52
+ });
53
+ }
54
+ }
@@ -0,0 +1,20 @@
1
+ /* eslint-disable */
2
+ import { HttpClient } from '../../../core/http-client';
3
+ import type {
4
+ ApiResponseDto,
5
+ ListenParams,
6
+ } from '../types';
7
+
8
+ export class JobsService {
9
+ constructor(private readonly client: HttpClient) {}
10
+
11
+ async listen(params: ListenParams): Promise<ApiResponseDto<unknown>> {
12
+ return this.client.request<ApiResponseDto<unknown>>({
13
+ method: 'POST',
14
+ url: `/v1/dynamic-table/jobs/listen`,
15
+ params: undefined,
16
+ data: params?.body,
17
+ headers: undefined,
18
+ });
19
+ }
20
+ }
@@ -308,10 +308,36 @@ export interface ColumnResponseDto {
308
308
  name: string;
309
309
  keyName: string;
310
310
  description: string | null;
311
+ columnName: string | null;
311
312
  type: FieldType;
312
313
  order: number | null;
313
314
  isPrimary: boolean | null;
315
+ isPrimaryValue: boolean | null;
316
+ isRequired: boolean | null;
317
+ isUnique: boolean | null;
318
+ isAutoIncrement: boolean | null;
319
+ isUnsigned: boolean | null;
320
+ isSystem: boolean | null;
321
+ isReadonly: boolean | null;
322
+ isVirtual: boolean | null;
323
+ uiDataType: string | null;
324
+ dataType: string | null;
325
+ numericPrecision: string | null;
326
+ numericScale: string | null;
327
+ characterLength: string | null;
328
+ columnDefault: string | null;
329
+ columnType: string | null;
330
+ columnComment: string | null;
331
+ columnSequenceName: string | null;
332
+ dataTypeExtra: string | null;
333
+ dataTypeExtraPrecision: string | null;
334
+ dataTypeExtraScale: string | null;
335
+ autoUpdated: boolean | null;
314
336
  config: FieldConfig | null;
337
+ meta: FieldMeta | null;
338
+ validation: string | null;
339
+ externalColumnName: string | null;
340
+ externalDataType: ExternalDataType | null;
315
341
  createdAt: number | null;
316
342
  updatedAt: number | null;
317
343
  }
@@ -320,6 +346,38 @@ export interface CommandPaletteSearchQueryDto {
320
346
  limit?: number;
321
347
  workspaceId?: string;
322
348
  }
349
+ export interface CommentCountItemResponseDto {
350
+ rowId: string;
351
+ count: number;
352
+ }
353
+ export interface CommentReactionResponseDto {
354
+ id: string;
355
+ fkWorkspaceId: string | null;
356
+ baseId: string | null;
357
+ fkCommentId: string | null;
358
+ fkUserId: string | null;
359
+ reaction: string;
360
+ createdAt: number | null;
361
+ updatedAt: number | null;
362
+ }
363
+ export interface CommentResponseDto {
364
+ id: string;
365
+ fkWorkspaceId: string | null;
366
+ baseId: string | null;
367
+ fkModelId: string | null;
368
+ fkUserId: string | null;
369
+ rowId: string;
370
+ commentText: string;
371
+ isDeleted: boolean | null;
372
+ isEdit: boolean | null;
373
+ createdAt: number | null;
374
+ updatedAt: number | null;
375
+ reactions: CommentReactionResponseDto[];
376
+ }
377
+ export interface CountCommentsQueryDto {
378
+ fkModelId: string;
379
+ ids: string[];
380
+ }
323
381
  export interface CreateApiTokenDto {
324
382
  fkWorkspaceId?: string | null;
325
383
  fkBaseId?: string | null;
@@ -370,6 +428,16 @@ export interface CreateColumnDto {
370
428
  externalColumnName?: string | null;
371
429
  externalDataType?: ExternalDataType | null;
372
430
  }
431
+ export interface CreateCommentDto {
432
+ workspaceId: string;
433
+ baseId?: string;
434
+ fkModelId: string;
435
+ rowId: string;
436
+ commentText: string;
437
+ }
438
+ export interface CreateCommentReactionDto {
439
+ reaction: string;
440
+ }
373
441
  export type CreateFormViewDto = CreateViewDto & {
374
442
  heading?: string | null;
375
443
  subheading?: string | null;
@@ -638,6 +706,23 @@ export interface FieldConfig {
638
706
  aiModel?: string;
639
707
  aiConfig?: Record<string, any>;
640
708
  }
709
+ export type FieldMeta = {
710
+ placeholder?: string;
711
+ helpText?: string;
712
+ icon?: string;
713
+ color?: string;
714
+ display?: {
715
+ width?: number;
716
+ hidden?: boolean;
717
+ order?: number;
718
+ };
719
+ validation?: {
720
+ min?: number;
721
+ max?: number;
722
+ pattern?: string;
723
+ message?: string;
724
+ };
725
+ };
641
726
  export enum FieldType {
642
727
  TEXT = 'text',
643
728
  LONG_TEXT = 'long_text',
@@ -951,6 +1036,50 @@ export enum HookVersion {
951
1036
  V2 = 'v2',
952
1037
  V3 = 'v3',
953
1038
  }
1039
+ export interface ImportFieldMappingDto {
1040
+ source: string;
1041
+ targetFieldId?: string;
1042
+ targetFieldKey?: string;
1043
+ }
1044
+ export enum ImportFileFormat {
1045
+ CSV = 'csv',
1046
+ XLSX = 'xlsx',
1047
+ JSON = 'json',
1048
+ }
1049
+ export interface ImportFromUrlDto {
1050
+ url: string;
1051
+ workspaceId?: string;
1052
+ baseId?: string;
1053
+ }
1054
+ export interface ImportJobResponseDto {
1055
+ id: string;
1056
+ status: JobStatus;
1057
+ progress: number | null;
1058
+ result: string | null;
1059
+ errorMessage: string | null;
1060
+ startedAt: string | null;
1061
+ finishedAt: string | null;
1062
+ }
1063
+ export enum ImportMode {
1064
+ APPEND = 'append',
1065
+ }
1066
+ export interface ImportPreviewColumnDto {
1067
+ source: string;
1068
+ inferredType: string;
1069
+ }
1070
+ export interface ImportPreviewResponseDto {
1071
+ columns: ImportPreviewColumnDto[];
1072
+ sampleRows: Array<Record<string, unknown>>;
1073
+ }
1074
+ export interface ImportStartResponseDto {
1075
+ jobId: string;
1076
+ }
1077
+ export interface ImportUploadResponseDto {
1078
+ fileId: string;
1079
+ fileName: string;
1080
+ mimeType: string | null;
1081
+ size: number | null;
1082
+ }
954
1083
  export interface InternalOperationDto {
955
1084
  payload?: Record<string, unknown>;
956
1085
  }
@@ -960,6 +1089,20 @@ export interface InvalidateCacheDto {
960
1089
  records?: string[];
961
1090
  reason?: string;
962
1091
  }
1092
+ export interface JobListenDataDto {
1093
+ id: string;
1094
+ }
1095
+ export interface JobListenDto {
1096
+ _mid?: number;
1097
+ data: JobListenDataDto;
1098
+ }
1099
+ export enum JobStatus {
1100
+ PENDING = 'pending',
1101
+ RUNNING = 'running',
1102
+ COMPLETED = 'completed',
1103
+ FAILED = 'failed',
1104
+ CANCELED = 'canceled',
1105
+ }
963
1106
  export type JsonArray = JsonValue[];
964
1107
  export type JsonObject = { [key: string]: JsonValue };
965
1108
  export type JsonPrimitive = string | number | boolean | null;
@@ -1009,6 +1152,12 @@ export type ListBasesQueryDto = PaginationQueryDto & {
1009
1152
  isMeta?: boolean;
1010
1153
  deleted?: boolean;
1011
1154
  };
1155
+ export interface ListCommentsQueryDto {
1156
+ workspaceId?: string;
1157
+ baseId?: string;
1158
+ fkModelId: string;
1159
+ rowId: string;
1160
+ }
1012
1161
  export type ListHookLogsQueryDto = PaginationQueryDto & {
1013
1162
  status?: HookLogStatus;
1014
1163
  event?: AppEvents;
@@ -1018,6 +1167,12 @@ export type ListHooksQueryDto = PaginationQueryDto & {
1018
1167
  operation?: HookOperation;
1019
1168
  active?: boolean;
1020
1169
  };
1170
+ export type ListJobsQueryDto = LimitOffsetQueryDto & {
1171
+ workspaceId?: string;
1172
+ baseId?: string;
1173
+ job?: string;
1174
+ status?: JobStatus;
1175
+ };
1021
1176
  export type ListSourcesQueryDto = PaginationQueryDto & {
1022
1177
  workspaceId?: string;
1023
1178
  baseId?: string;
@@ -1116,6 +1271,14 @@ export interface PinCommandPaletteDto {
1116
1271
  id: string;
1117
1272
  label: string;
1118
1273
  }
1274
+ export interface PreviewImportDto {
1275
+ fileId: string;
1276
+ format: ImportFileFormat;
1277
+ sheet?: string;
1278
+ delimiter?: string;
1279
+ hasHeader?: boolean;
1280
+ sampleSize?: number;
1281
+ }
1119
1282
  export type RecordAggregateQueryDto = RecordListQueryDto & {
1120
1283
  aggregations?: string;
1121
1284
  };
@@ -1287,6 +1450,22 @@ export enum SourceType {
1287
1450
  MARIADB = 'MARIADB',
1288
1451
  SQLITE = 'SQLITE',
1289
1452
  }
1453
+ export interface StartImportDto {
1454
+ workspaceId: string;
1455
+ baseId: string;
1456
+ tableId: string;
1457
+ fileId: string;
1458
+ format: ImportFileFormat;
1459
+ mode?: ImportMode;
1460
+ mapping?: ImportFieldMappingDto[];
1461
+ options?: StartImportOptionsDto;
1462
+ }
1463
+ export interface StartImportOptionsDto {
1464
+ hasHeader?: boolean;
1465
+ delimiter?: string;
1466
+ sheet?: string;
1467
+ chunkSize?: number;
1468
+ }
1290
1469
  export enum StorageMode {
1291
1470
  JSONB = 'JSONB',
1292
1471
  EAV = 'EAV',
@@ -1374,6 +1553,9 @@ export type UpdateBaseMemberDto = Partial<AddBaseMemberDto> & {
1374
1553
  };
1375
1554
  export type UpdateCalendarViewDto = Partial<CalendarViewConfigDto>;
1376
1555
  export type UpdateColumnDto = Partial<CreateColumnDto>;
1556
+ export interface UpdateCommentDto {
1557
+ commentText: string;
1558
+ }
1377
1559
  export type UpdateFormViewDto = Partial<FormViewConfigDto>;
1378
1560
  export type UpdateGalleryViewDto = Partial<GalleryViewConfigDto>;
1379
1561
  export type UpdateGridViewDto = Partial<GridViewConfigDto>;
@@ -1437,6 +1619,10 @@ export interface UploadAttachmentDto {
1437
1619
  fkModelId?: string;
1438
1620
  fkColumnId?: string;
1439
1621
  }
1622
+ export interface UploadImportFileDto {
1623
+ workspaceId?: string;
1624
+ baseId?: string;
1625
+ }
1440
1626
  export interface UserUiPreferencesRawDto {
1441
1627
  defaultWorkspaceId: string | null;
1442
1628
  defaultBaseId: string | null;
@@ -1680,6 +1866,9 @@ export interface WorkspaceSettings {
1680
1866
  customDomainVerified?: boolean;
1681
1867
  }
1682
1868
 
1869
+ export interface AbortImportJobParams {
1870
+ jobId: string;
1871
+ }
1683
1872
  export interface AcceptInviteParams {
1684
1873
  body: AcceptWorkspaceInviteDto;
1685
1874
  }
@@ -1691,6 +1880,10 @@ export interface AddMemberParams {
1691
1880
  workspaceId: string;
1692
1881
  body: AddWorkspaceInviteDto;
1693
1882
  }
1883
+ export interface AddReactionParams {
1884
+ commentId: string;
1885
+ body: CreateCommentReactionDto;
1886
+ }
1694
1887
  export interface AggregateRecordsParams {
1695
1888
  tableId: string;
1696
1889
  query?: RecordAggregateQueryDto;
@@ -1715,6 +1908,9 @@ export interface BulkUpdateViewColumnsParams {
1715
1908
  viewId: string;
1716
1909
  body: BulkUpdateViewColumnsDto;
1717
1910
  }
1911
+ export interface CancelJobParams {
1912
+ jobId: string;
1913
+ }
1718
1914
  export interface ClearRowColorParams {
1719
1915
  viewId: string;
1720
1916
  }
@@ -1723,6 +1919,9 @@ export interface CountByDateParams {
1723
1919
  viewId: string;
1724
1920
  query?: CalendarDataQueryDto;
1725
1921
  }
1922
+ export interface CountCommentsParams {
1923
+ query?: CountCommentsQueryDto;
1924
+ }
1726
1925
  export interface CountRangeParams {
1727
1926
  tableId: string;
1728
1927
  viewId: string;
@@ -1747,6 +1946,9 @@ export interface CreateColumnParams {
1747
1946
  tableId: string;
1748
1947
  body: CreateColumnDto;
1749
1948
  }
1949
+ export interface CreateCommentParams {
1950
+ body: CreateCommentDto;
1951
+ }
1750
1952
  export interface CreateFilterParams {
1751
1953
  viewId: string;
1752
1954
  body: CreateViewFilterDto;
@@ -1824,6 +2026,9 @@ export interface DeleteBaseParams {
1824
2026
  export interface DeleteColumnParams {
1825
2027
  columnId: string;
1826
2028
  }
2029
+ export interface DeleteCommentParams {
2030
+ commentId: string;
2031
+ }
1827
2032
  export interface DeleteFilterParams {
1828
2033
  filterId: string;
1829
2034
  }
@@ -1886,9 +2091,15 @@ export interface GetFormViewParams {
1886
2091
  export interface GetGalleryViewParams {
1887
2092
  galleryViewId: string;
1888
2093
  }
2094
+ export interface GetImportJobParams {
2095
+ jobId: string;
2096
+ }
1889
2097
  export interface GetInviteLinkParams {
1890
2098
  workspaceId: string;
1891
2099
  }
2100
+ export interface GetJobParams {
2101
+ jobId: string;
2102
+ }
1892
2103
  export interface GetKanbanViewParams {
1893
2104
  kanbanViewId: string;
1894
2105
  }
@@ -1988,6 +2199,9 @@ export interface HookUpdateParams {
1988
2199
  hookId: string;
1989
2200
  body: UpdateHookDto;
1990
2201
  }
2202
+ export interface ImportFromUrlParams {
2203
+ body: ImportFromUrlDto;
2204
+ }
1991
2205
  export interface InvalidateParams {
1992
2206
  body: InvalidateCacheDto;
1993
2207
  }
@@ -2021,6 +2235,12 @@ export interface ListCalendarRecordsParams {
2021
2235
  export interface ListChildrenParams {
2022
2236
  filterParentId: string;
2023
2237
  }
2238
+ export interface ListCommentsParams {
2239
+ query?: ListCommentsQueryDto;
2240
+ }
2241
+ export interface ListenParams {
2242
+ body: JobListenDto;
2243
+ }
2024
2244
  export interface ListFiltersParams {
2025
2245
  viewId: string;
2026
2246
  }
@@ -2032,6 +2252,9 @@ export interface ListGroupedRecordsParams {
2032
2252
  viewId: string;
2033
2253
  query?: RecordListQueryDto;
2034
2254
  }
2255
+ export interface ListJobsParams {
2256
+ query?: ListJobsQueryDto;
2257
+ }
2035
2258
  export interface ListLinkedRecordsParams {
2036
2259
  tableId: string;
2037
2260
  fieldId: string;
@@ -2083,6 +2306,9 @@ export interface PermissionsParams {
2083
2306
  export interface PinParams {
2084
2307
  body: PinCommandPaletteDto;
2085
2308
  }
2309
+ export interface PreviewImportFileParams {
2310
+ body: PreviewImportDto;
2311
+ }
2086
2312
  export interface RecentParams {
2087
2313
  _?: never;
2088
2314
  }
@@ -2107,6 +2333,10 @@ export interface RemoveMemberParams {
2107
2333
  workspaceId: string;
2108
2334
  memberId: string;
2109
2335
  }
2336
+ export interface RemoveReactionParams {
2337
+ commentId: string;
2338
+ reaction: string;
2339
+ }
2110
2340
  export interface ReorderColumnsParams {
2111
2341
  tableId: string;
2112
2342
  body: ReorderColumnsDto;
@@ -2123,6 +2353,9 @@ export interface RequestJoinParams {
2123
2353
  linkId: string;
2124
2354
  body: RequestJoinByInviteLinkDto;
2125
2355
  }
2356
+ export interface RetryJobParams {
2357
+ jobId: string;
2358
+ }
2126
2359
  export interface RunOperationParams {
2127
2360
  name: string;
2128
2361
  body: InternalOperationDto;
@@ -2139,6 +2372,9 @@ export interface SetPrimaryColumnParams {
2139
2372
  export interface ShowViewParams {
2140
2373
  viewId: string;
2141
2374
  }
2375
+ export interface StartImportParams {
2376
+ body: StartImportDto;
2377
+ }
2142
2378
  export interface StatsParams {
2143
2379
  _?: never;
2144
2380
  }
@@ -2184,6 +2420,10 @@ export interface UpdateColumnParams {
2184
2420
  columnId: string;
2185
2421
  body: UpdateColumnDto;
2186
2422
  }
2423
+ export interface UpdateCommentParams {
2424
+ commentId: string;
2425
+ body: UpdateCommentDto;
2426
+ }
2187
2427
  export interface UpdateFilterParams {
2188
2428
  filterId: string;
2189
2429
  body: UpdateViewFilterDto;
@@ -2268,6 +2508,9 @@ export interface UpdateWorkspaceParams {
2268
2508
  workspaceId: string;
2269
2509
  body: UpdateWorkspaceDto;
2270
2510
  }
2511
+ export interface UploadImportFileParams {
2512
+ body: UploadImportFileDto;
2513
+ }
2271
2514
  export interface UploadParams {
2272
2515
  body: UploadAttachmentDto;
2273
2516
  }
package/src/index.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { DynamicTableAuth } from './core/auth';
2
2
  import { HttpClient } from './core/http-client';
3
3
  import { DynamicTableSdkConfig, DynamicTableTokenProvider } from './core/types';
4
- import { ApiDocsService, ApiTokensService, AttachmentsSecureService, AttachmentsService, BaseMembersService, BasesService, CachesService, CalendarDataService, CalendarsService, ColumnsService, CommandPaletteService, DataTableService, DynamicTableAuthService, FiltersService, FormsService, GalleriesService, GridsService, HooksService, InternalService, KanbanDataService, KanbansService, MapsService, RowColorService, SortsService, SourcesService, TablesService, UserUiPreferencesService, UtilsService, ViewColumnsService, ViewsService, WorkspaceInviteLinkSettingsService, WorkspaceInviteLinksService, WorkspaceInvitesService, WorkspaceJoinRequestsService, WorkspaceMembersService, WorkspacesService } from './generated/services';
4
+ import { ApiDocsService, ApiTokensService, AttachmentsSecureService, AttachmentsService, BaseMembersService, BasesService, CachesService, CalendarDataService, CalendarsService, ColumnsService, CommandPaletteService, CommentsService, DataImportsService, DataTableService, DynamicTableAuthService, FiltersService, FormsService, GalleriesService, GridsService, HooksService, InternalService, JobsMetaService, JobsService, KanbanDataService, KanbansService, MapsService, RowColorService, SortsService, SourcesService, TablesService, UserUiPreferencesService, UtilsService, ViewColumnsService, ViewsService, WorkspaceInviteLinkSettingsService, WorkspaceInviteLinksService, WorkspaceInvitesService, WorkspaceJoinRequestsService, WorkspaceMembersService, WorkspacesService } from './generated/services';
5
5
 
6
6
  export type { ApiResponseDto, DynamicTableSdkConfig, DynamicTableTokenProvider } from './core/types';
7
7
  export * from './generated';
@@ -48,6 +48,8 @@ export const createDynamicTableSdk = (config: DynamicTableSdkConfig) => {
48
48
  calendars: new CalendarsService(client),
49
49
  columns: new ColumnsService(client),
50
50
  commandPalette: new CommandPaletteService(client),
51
+ comments: new CommentsService(client),
52
+ dataImports: new DataImportsService(client),
51
53
  dataTable: new DataTableService(client),
52
54
  authService: new DynamicTableAuthService(client),
53
55
  filters: new FiltersService(client),
@@ -56,6 +58,8 @@ export const createDynamicTableSdk = (config: DynamicTableSdkConfig) => {
56
58
  grids: new GridsService(client),
57
59
  hooks: new HooksService(client),
58
60
  internal: new InternalService(client),
61
+ jobsMeta: new JobsMetaService(client),
62
+ jobs: new JobsService(client),
59
63
  kanbanData: new KanbanDataService(client),
60
64
  kanbans: new KanbansService(client),
61
65
  maps: new MapsService(client),
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "moduleName": "dynamic-table",
3
3
  "mode": "ts",
4
- "totalOperations": 162,
4
+ "totalOperations": 180,
5
5
  "resolvedByOpenapi": 0,
6
- "resolvedByTs": 162,
6
+ "resolvedByTs": 180,
7
7
  "unresolved": [],
8
8
  "conflicts": []
9
9
  }