@redonvn/redai-backend-api-sdk 0.1.17 → 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.17",
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
+ }
@@ -346,6 +346,38 @@ export interface CommandPaletteSearchQueryDto {
346
346
  limit?: number;
347
347
  workspaceId?: string;
348
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
+ }
349
381
  export interface CreateApiTokenDto {
350
382
  fkWorkspaceId?: string | null;
351
383
  fkBaseId?: string | null;
@@ -396,6 +428,16 @@ export interface CreateColumnDto {
396
428
  externalColumnName?: string | null;
397
429
  externalDataType?: ExternalDataType | null;
398
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
+ }
399
441
  export type CreateFormViewDto = CreateViewDto & {
400
442
  heading?: string | null;
401
443
  subheading?: string | null;
@@ -994,6 +1036,50 @@ export enum HookVersion {
994
1036
  V2 = 'v2',
995
1037
  V3 = 'v3',
996
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
+ }
997
1083
  export interface InternalOperationDto {
998
1084
  payload?: Record<string, unknown>;
999
1085
  }
@@ -1003,6 +1089,20 @@ export interface InvalidateCacheDto {
1003
1089
  records?: string[];
1004
1090
  reason?: string;
1005
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
+ }
1006
1106
  export type JsonArray = JsonValue[];
1007
1107
  export type JsonObject = { [key: string]: JsonValue };
1008
1108
  export type JsonPrimitive = string | number | boolean | null;
@@ -1052,6 +1152,12 @@ export type ListBasesQueryDto = PaginationQueryDto & {
1052
1152
  isMeta?: boolean;
1053
1153
  deleted?: boolean;
1054
1154
  };
1155
+ export interface ListCommentsQueryDto {
1156
+ workspaceId?: string;
1157
+ baseId?: string;
1158
+ fkModelId: string;
1159
+ rowId: string;
1160
+ }
1055
1161
  export type ListHookLogsQueryDto = PaginationQueryDto & {
1056
1162
  status?: HookLogStatus;
1057
1163
  event?: AppEvents;
@@ -1061,6 +1167,12 @@ export type ListHooksQueryDto = PaginationQueryDto & {
1061
1167
  operation?: HookOperation;
1062
1168
  active?: boolean;
1063
1169
  };
1170
+ export type ListJobsQueryDto = LimitOffsetQueryDto & {
1171
+ workspaceId?: string;
1172
+ baseId?: string;
1173
+ job?: string;
1174
+ status?: JobStatus;
1175
+ };
1064
1176
  export type ListSourcesQueryDto = PaginationQueryDto & {
1065
1177
  workspaceId?: string;
1066
1178
  baseId?: string;
@@ -1159,6 +1271,14 @@ export interface PinCommandPaletteDto {
1159
1271
  id: string;
1160
1272
  label: string;
1161
1273
  }
1274
+ export interface PreviewImportDto {
1275
+ fileId: string;
1276
+ format: ImportFileFormat;
1277
+ sheet?: string;
1278
+ delimiter?: string;
1279
+ hasHeader?: boolean;
1280
+ sampleSize?: number;
1281
+ }
1162
1282
  export type RecordAggregateQueryDto = RecordListQueryDto & {
1163
1283
  aggregations?: string;
1164
1284
  };
@@ -1330,6 +1450,22 @@ export enum SourceType {
1330
1450
  MARIADB = 'MARIADB',
1331
1451
  SQLITE = 'SQLITE',
1332
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
+ }
1333
1469
  export enum StorageMode {
1334
1470
  JSONB = 'JSONB',
1335
1471
  EAV = 'EAV',
@@ -1417,6 +1553,9 @@ export type UpdateBaseMemberDto = Partial<AddBaseMemberDto> & {
1417
1553
  };
1418
1554
  export type UpdateCalendarViewDto = Partial<CalendarViewConfigDto>;
1419
1555
  export type UpdateColumnDto = Partial<CreateColumnDto>;
1556
+ export interface UpdateCommentDto {
1557
+ commentText: string;
1558
+ }
1420
1559
  export type UpdateFormViewDto = Partial<FormViewConfigDto>;
1421
1560
  export type UpdateGalleryViewDto = Partial<GalleryViewConfigDto>;
1422
1561
  export type UpdateGridViewDto = Partial<GridViewConfigDto>;
@@ -1480,6 +1619,10 @@ export interface UploadAttachmentDto {
1480
1619
  fkModelId?: string;
1481
1620
  fkColumnId?: string;
1482
1621
  }
1622
+ export interface UploadImportFileDto {
1623
+ workspaceId?: string;
1624
+ baseId?: string;
1625
+ }
1483
1626
  export interface UserUiPreferencesRawDto {
1484
1627
  defaultWorkspaceId: string | null;
1485
1628
  defaultBaseId: string | null;
@@ -1723,6 +1866,9 @@ export interface WorkspaceSettings {
1723
1866
  customDomainVerified?: boolean;
1724
1867
  }
1725
1868
 
1869
+ export interface AbortImportJobParams {
1870
+ jobId: string;
1871
+ }
1726
1872
  export interface AcceptInviteParams {
1727
1873
  body: AcceptWorkspaceInviteDto;
1728
1874
  }
@@ -1734,6 +1880,10 @@ export interface AddMemberParams {
1734
1880
  workspaceId: string;
1735
1881
  body: AddWorkspaceInviteDto;
1736
1882
  }
1883
+ export interface AddReactionParams {
1884
+ commentId: string;
1885
+ body: CreateCommentReactionDto;
1886
+ }
1737
1887
  export interface AggregateRecordsParams {
1738
1888
  tableId: string;
1739
1889
  query?: RecordAggregateQueryDto;
@@ -1758,6 +1908,9 @@ export interface BulkUpdateViewColumnsParams {
1758
1908
  viewId: string;
1759
1909
  body: BulkUpdateViewColumnsDto;
1760
1910
  }
1911
+ export interface CancelJobParams {
1912
+ jobId: string;
1913
+ }
1761
1914
  export interface ClearRowColorParams {
1762
1915
  viewId: string;
1763
1916
  }
@@ -1766,6 +1919,9 @@ export interface CountByDateParams {
1766
1919
  viewId: string;
1767
1920
  query?: CalendarDataQueryDto;
1768
1921
  }
1922
+ export interface CountCommentsParams {
1923
+ query?: CountCommentsQueryDto;
1924
+ }
1769
1925
  export interface CountRangeParams {
1770
1926
  tableId: string;
1771
1927
  viewId: string;
@@ -1790,6 +1946,9 @@ export interface CreateColumnParams {
1790
1946
  tableId: string;
1791
1947
  body: CreateColumnDto;
1792
1948
  }
1949
+ export interface CreateCommentParams {
1950
+ body: CreateCommentDto;
1951
+ }
1793
1952
  export interface CreateFilterParams {
1794
1953
  viewId: string;
1795
1954
  body: CreateViewFilterDto;
@@ -1867,6 +2026,9 @@ export interface DeleteBaseParams {
1867
2026
  export interface DeleteColumnParams {
1868
2027
  columnId: string;
1869
2028
  }
2029
+ export interface DeleteCommentParams {
2030
+ commentId: string;
2031
+ }
1870
2032
  export interface DeleteFilterParams {
1871
2033
  filterId: string;
1872
2034
  }
@@ -1929,9 +2091,15 @@ export interface GetFormViewParams {
1929
2091
  export interface GetGalleryViewParams {
1930
2092
  galleryViewId: string;
1931
2093
  }
2094
+ export interface GetImportJobParams {
2095
+ jobId: string;
2096
+ }
1932
2097
  export interface GetInviteLinkParams {
1933
2098
  workspaceId: string;
1934
2099
  }
2100
+ export interface GetJobParams {
2101
+ jobId: string;
2102
+ }
1935
2103
  export interface GetKanbanViewParams {
1936
2104
  kanbanViewId: string;
1937
2105
  }
@@ -2031,6 +2199,9 @@ export interface HookUpdateParams {
2031
2199
  hookId: string;
2032
2200
  body: UpdateHookDto;
2033
2201
  }
2202
+ export interface ImportFromUrlParams {
2203
+ body: ImportFromUrlDto;
2204
+ }
2034
2205
  export interface InvalidateParams {
2035
2206
  body: InvalidateCacheDto;
2036
2207
  }
@@ -2064,6 +2235,12 @@ export interface ListCalendarRecordsParams {
2064
2235
  export interface ListChildrenParams {
2065
2236
  filterParentId: string;
2066
2237
  }
2238
+ export interface ListCommentsParams {
2239
+ query?: ListCommentsQueryDto;
2240
+ }
2241
+ export interface ListenParams {
2242
+ body: JobListenDto;
2243
+ }
2067
2244
  export interface ListFiltersParams {
2068
2245
  viewId: string;
2069
2246
  }
@@ -2075,6 +2252,9 @@ export interface ListGroupedRecordsParams {
2075
2252
  viewId: string;
2076
2253
  query?: RecordListQueryDto;
2077
2254
  }
2255
+ export interface ListJobsParams {
2256
+ query?: ListJobsQueryDto;
2257
+ }
2078
2258
  export interface ListLinkedRecordsParams {
2079
2259
  tableId: string;
2080
2260
  fieldId: string;
@@ -2126,6 +2306,9 @@ export interface PermissionsParams {
2126
2306
  export interface PinParams {
2127
2307
  body: PinCommandPaletteDto;
2128
2308
  }
2309
+ export interface PreviewImportFileParams {
2310
+ body: PreviewImportDto;
2311
+ }
2129
2312
  export interface RecentParams {
2130
2313
  _?: never;
2131
2314
  }
@@ -2150,6 +2333,10 @@ export interface RemoveMemberParams {
2150
2333
  workspaceId: string;
2151
2334
  memberId: string;
2152
2335
  }
2336
+ export interface RemoveReactionParams {
2337
+ commentId: string;
2338
+ reaction: string;
2339
+ }
2153
2340
  export interface ReorderColumnsParams {
2154
2341
  tableId: string;
2155
2342
  body: ReorderColumnsDto;
@@ -2166,6 +2353,9 @@ export interface RequestJoinParams {
2166
2353
  linkId: string;
2167
2354
  body: RequestJoinByInviteLinkDto;
2168
2355
  }
2356
+ export interface RetryJobParams {
2357
+ jobId: string;
2358
+ }
2169
2359
  export interface RunOperationParams {
2170
2360
  name: string;
2171
2361
  body: InternalOperationDto;
@@ -2182,6 +2372,9 @@ export interface SetPrimaryColumnParams {
2182
2372
  export interface ShowViewParams {
2183
2373
  viewId: string;
2184
2374
  }
2375
+ export interface StartImportParams {
2376
+ body: StartImportDto;
2377
+ }
2185
2378
  export interface StatsParams {
2186
2379
  _?: never;
2187
2380
  }
@@ -2227,6 +2420,10 @@ export interface UpdateColumnParams {
2227
2420
  columnId: string;
2228
2421
  body: UpdateColumnDto;
2229
2422
  }
2423
+ export interface UpdateCommentParams {
2424
+ commentId: string;
2425
+ body: UpdateCommentDto;
2426
+ }
2230
2427
  export interface UpdateFilterParams {
2231
2428
  filterId: string;
2232
2429
  body: UpdateViewFilterDto;
@@ -2311,6 +2508,9 @@ export interface UpdateWorkspaceParams {
2311
2508
  workspaceId: string;
2312
2509
  body: UpdateWorkspaceDto;
2313
2510
  }
2511
+ export interface UploadImportFileParams {
2512
+ body: UploadImportFileDto;
2513
+ }
2314
2514
  export interface UploadParams {
2315
2515
  body: UploadAttachmentDto;
2316
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
  }