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

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.14",
3
+ "version": "0.1.16",
4
4
  "description": "Axios SDK for RedAI Dynamic Table APIs",
5
5
  "license": "UNLICENSED",
6
6
  "main": "src/index.ts",
@@ -20,6 +20,7 @@ import type {
20
20
  TableRecord,
21
21
  UnlinkRecordsBulkParams,
22
22
  UnlinkRecordsParams,
23
+ UpdateRecordFieldParams,
23
24
  UpdateRecordsParams,
24
25
  } from '../types';
25
26
 
@@ -166,6 +167,16 @@ export class DataTableService {
166
167
  });
167
168
  }
168
169
 
170
+ async updateRecordField(params: UpdateRecordFieldParams): Promise<ApiResponseDto<TableRecord>> {
171
+ return this.client.request<ApiResponseDto<TableRecord>>({
172
+ method: 'PATCH',
173
+ url: `/v1/dynamic-table/tables/${encodeURIComponent(String(params.tableId))}/records/${encodeURIComponent(String(params.recordId))}/fields/${encodeURIComponent(String(params.fieldId))}`,
174
+ params: undefined,
175
+ data: params?.body,
176
+ headers: undefined,
177
+ });
178
+ }
179
+
169
180
  async moveRecord(params: MoveRecordParams): Promise<ApiResponseDto<TableRecord>> {
170
181
  return this.client.request<ApiResponseDto<TableRecord>>({
171
182
  method: 'POST',
@@ -306,6 +306,7 @@ export interface ColumnResponseDto {
306
306
  baseId: string | null;
307
307
  sourceId: string | null;
308
308
  name: string;
309
+ keyName: string;
309
310
  description: string | null;
310
311
  type: FieldType;
311
312
  order: number | null;
@@ -1324,6 +1325,7 @@ export interface TableResponseDto {
1324
1325
  createdAt: number;
1325
1326
  updatedAt: number | null;
1326
1327
  fields?: ColumnResponseDto[];
1328
+ views?: ViewResponseDto[];
1327
1329
  }
1328
1330
  export interface TableSettings {
1329
1331
  icon?: string;
@@ -1378,6 +1380,9 @@ export type UpdateGridViewDto = Partial<GridViewConfigDto>;
1378
1380
  export type UpdateHookDto = Partial<CreateHookDto>;
1379
1381
  export type UpdateKanbanViewDto = Partial<KanbanViewConfigDto>;
1380
1382
  export type UpdateMapViewDto = Partial<MapViewConfigDto>;
1383
+ export interface UpdateRecordFieldDto {
1384
+ value: JsonValue;
1385
+ }
1381
1386
  export type UpdateRowColorConditionDto = Partial<CreateRowColorConditionDto>;
1382
1387
  export interface UpdateRowColorModeDto {
1383
1388
  rowColoringMode: RowColoringMode;
@@ -2219,6 +2224,12 @@ export interface UpdateMemberParams {
2219
2224
  export interface UpdateMeUiPreferencesParams {
2220
2225
  body: UpdateUserUiPreferencesDto;
2221
2226
  }
2227
+ export interface UpdateRecordFieldParams {
2228
+ tableId: string;
2229
+ recordId: string;
2230
+ fieldId: string;
2231
+ body: UpdateRecordFieldDto;
2232
+ }
2222
2233
  export interface UpdateRecordsParams {
2223
2234
  tableId: string;
2224
2235
  body: TableRecordInput | TableRecordInput[];
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "moduleName": "dynamic-table",
3
3
  "mode": "ts",
4
- "totalOperations": 161,
4
+ "totalOperations": 162,
5
5
  "resolvedByOpenapi": 0,
6
- "resolvedByTs": 161,
6
+ "resolvedByTs": 162,
7
7
  "unresolved": [],
8
8
  "conflicts": []
9
9
  }