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

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.17",
4
4
  "description": "Axios SDK for RedAI Dynamic Table APIs",
5
5
  "license": "UNLICENSED",
6
6
  "main": "src/index.ts",
@@ -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
  }
@@ -638,6 +664,23 @@ export interface FieldConfig {
638
664
  aiModel?: string;
639
665
  aiConfig?: Record<string, any>;
640
666
  }
667
+ export type FieldMeta = {
668
+ placeholder?: string;
669
+ helpText?: string;
670
+ icon?: string;
671
+ color?: string;
672
+ display?: {
673
+ width?: number;
674
+ hidden?: boolean;
675
+ order?: number;
676
+ };
677
+ validation?: {
678
+ min?: number;
679
+ max?: number;
680
+ pattern?: string;
681
+ message?: string;
682
+ };
683
+ };
641
684
  export enum FieldType {
642
685
  TEXT = 'text',
643
686
  LONG_TEXT = 'long_text',