@redonvn/redai-backend-api-sdk 0.5.20 → 0.5.21

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.
@@ -1,6 +1,7 @@
1
- import { ProviderEnum } from '../shared-types';
2
- export type { ACB_BANK, ACTIVE, AGENT_DESKTOP_SDK_EXE, AGRIBANK_BANK, AHAMOVE, ALIBABA_CODING_PLAN, ANTHROPIC, ApiResponseDto, ARCHIVED, ARRAY, ASC, AZURE_AI, BIDV_BANK, BINARY, BOOLEAN, CENTER, CLOUD_AWS_S3, CLOUD_AZURE_BLOB, CLOUD_BACKBLAZE_B2, CLOUD_CLOUDFLARE_R2, CLOUD_GOOGLE_CLOUD_STORAGE, CLOUD_MINIO, CLOUD_WASABI, COMPLETED, CREATE, CUSTOM, DATABASE_MARIADB, DATABASE_MONGODB, DATABASE_MSSQL, DATABASE_MYSQL, DATABASE_ORACLE, DATABASE_POSTGRESQL, DATABASE_REDIS, DATABASE_SQLITE, DATE, DEEPSEEK, DELETE, DESC, DISABLED, EMAIL, EMAIL_GMAIL, EMAIL_OUTLOOK, EMAIL_SMTP, EMAIL_TWILIO_SENDGRID, FACEBOOK_ADS, FACEBOOK_BUSINESS, FACEBOOK_PAGE, FACEBOOK_PERSONAL, FAILED, FORMULA, GET, GETFLY_CRM, GHN, GHTK, GOOGLE_ADS, GOOGLE_AI_STUDIO, GOOGLE_CALENDAR, GOOGLE_CLOUD_PROJECT, GOOGLE_DOCS, GOOGLE_DRIVE, GOOGLE_SHEETS, GRID, HDB_BANK, JSON, KL_BANK, MB_BANK, NONE, NUMBER, OCB_BANK, OPENAI, OPENAI_OAUTH, OPENROUTER, PATCH, PENDING, PERPLEXITY_AI, POST, PROXY, PUT, REDAI, REDAI_EXTENSION, REDAI_LLM, SCB_BANK, SHB_BANK, SMS_ESMS, SMS_ESMS_ADVERTISING, SMS_ESMS_CUSTOMER_CARE, SMS_ESMS_VIBER, SMS_FPT, SMS_SPEED, SMS_TWILIO, SMS_VONAGE, STB_BANK, T, TCB_BANK, TELEGRAM, TELEGRAM_BOT, TEXT, TPB_BANK, UPDATE, URL, USER, VCB_BANK, VIB_BANK, VPB_BANK, VTB_BANK, WEBSITE, XAI, ZALO_BOT, ZALO_OA, ZALO_PERSONAL } from '../shared-types';
3
- export { ProviderEnum } from '../shared-types';
1
+ import type { FieldConfig, TableMeta, TableSettings, ViewMeta } from '../shared-types';
2
+ import { ExternalDataType, FieldType, ModelType, ProviderEnum, ReferentialAction, RelationType, RollupFunction, RowColoringMode, StorageMode, ViewLockType, ViewType } from '../shared-types';
3
+ export type { ACB_BANK, ACTION, ACTIVE, AGENT_DESKTOP_SDK_EXE, AGRIBANK_BANK, AHAMOVE, AI, ALIBABA_CODING_PLAN, ANTHROPIC, API_TOKEN_CREATE, API_TOKEN_DELETE, API_TOKEN_UPDATE, ApiResponseDto, ARCHIVED, ARRAY, ASC, ATTACHMENT, AUTONUMBER, AVG, AVG_DISTINCT, AZURE_AI, BARCODE, BASE, BELONGS_TO, BIDV_BANK, BIGINT, BIGSERIAL, BINARY, BIT, BLOB, BOOLEAN, BUTTON, BYTEA, CALENDAR, CALENDAR_CREATE, CALENDAR_DELETE, CALENDAR_UPDATE, CASCADE, CENTER, CHAR, CIDR, CLOUD_AWS_S3, CLOUD_AZURE_BLOB, CLOUD_BACKBLAZE_B2, CLOUD_CLOUDFLARE_R2, CLOUD_GOOGLE_CLOUD_STORAGE, CLOUD_MINIO, CLOUD_WASABI, COLLABORATIVE, ColumnResponseDto, COMMENT_CREATE, COMMENT_DELETE, COMMENT_UPDATE, COMPLETED, COUNT, COUNT_DISTINCT, CREATE, CREATED_BY, CREATED_TIME, CURRENCY, CUSTOM, DASHBOARD, DASHBOARD_CREATE, DASHBOARD_DELETE, DASHBOARD_UPDATE, DATA_CREATE, DATA_DELETE, DATA_EXPORT, DATA_IMPORT, DATA_UPDATE, DATABASE_MARIADB, DATABASE_MONGODB, DATABASE_MSSQL, DATABASE_MYSQL, DATABASE_ORACLE, DATABASE_POSTGRESQL, DATABASE_REDIS, DATABASE_SQLITE, DATE, DATETIME, DATETIME2, DECIMAL, DEEPSEEK, DEFAULT, DELETE, DESC, DISABLED, DOCUMENT, DOUBLE, DURATION, EAV, EMAIL, EMAIL_GMAIL, EMAIL_OUTLOOK, EMAIL_SMTP, EMAIL_TWILIO_SENDGRID, ENUM, ExternalSyncConfig, FACEBOOK_ADS, FACEBOOK_BUSINESS, FACEBOOK_PAGE, FACEBOOK_PERSONAL, FAILED, FieldConfig, FieldMeta, FILTER, FLOAT, FORM, FORMULA, GALLERY, GEOGRAPHY, GEOMETRY, GET, GETFLY_CRM, GHN, GHTK, GOOGLE_ADS, GOOGLE_AI_STUDIO, GOOGLE_CALENDAR, GOOGLE_CLOUD_PROJECT, GOOGLE_DOCS, GOOGLE_DRIVE, GOOGLE_SHEETS, GRID, HAS_MANY, HDB_BANK, HSTORE, IMAGE, INET, INT, INTEGER, INTEGRATION_CREATE, INTEGRATION_DELETE, INTEGRATION_UPDATE, INTERVAL, JSON, JSONB, KANBAN, KL_BANK, LINK_TO_ANOTHER_RECORD, LINKS, LOCKED, LONG_TEXT, LONGTEXT, LOOKUP, LookupConfigResponseDto, MACADDR, MANY_TO_MANY, MAP, MAX, MB_BANK, MEDIUMINT, MEDIUMTEXT, MIN, MODIFIED_BY, MODIFIED_TIME, MONEY, MULTI_SELECT, NCHAR, NO, NO_ACTION, NONE, NULL, NUMBER, NUMERIC, NVARCHAR, OBJECT_ID, OCB_BANK, ONE_TO_ONE, OPENAI, OPENAI_OAUTH, OPENROUTER, ORDER, PATCH, PENDING, PERCENT, PERMISSION_CREATE, PERMISSION_DELETE, PERMISSION_UPDATE, PERPLEXITY_AI, PERSONAL, PHONE, PHYSICAL, POINT, POST, PROJECT_CREATE, PROJECT_DELETE, PROJECT_UPDATE, PROXY, PUT, QR_CODE, RATING, READ, REAL, REDAI, REDAI_EXTENSION, REDAI_LLM, RELATION, RelationConfigResponseDto, RESTRICT, ROLLUP, RollupConfigResponseDto, SCB_BANK, SELECT, SERIAL, SET, SET_DEFAULT, SET_NULL, SHB_BANK, SMALLDATETIME, SMALLINT, SMALLMONEY, SMS_ESMS, SMS_ESMS_ADVERTISING, SMS_ESMS_CUSTOMER_CARE, SMS_ESMS_VIBER, SMS_FPT, SMS_SPEED, SMS_TWILIO, SMS_VONAGE, SOURCE_CREATE, SOURCE_DELETE, SOURCE_UPDATE, STB_BANK, SUM, SUM_DISTINCT, T, TABLE, TABLE_CREATE, TABLE_DELETE, TABLE_UPDATE, TableMeta, TableResponseDto, TableSettings, TCB_BANK, TELEGRAM, TELEGRAM_BOT, TEST, TEXT, TIME, TIMESTAMP, TIMESTAMPTZ, TINYINT, TINYTEXT, TPB_BANK, UNIQUEIDENTIFIER, UPDATE, URL, USER, UUID, VARBINARY, VARCHAR, VCB_BANK, VIB_BANK, VIEW, VIEW_CREATE, VIEW_DELETE, VIEW_UPDATE, ViewMeta, ViewResponseDto, VPB_BANK, VTB_BANK, WEBSITE, WORKFLOW, XAI, XML, YEAR, ZALO_BOT, ZALO_OA, ZALO_PERSONAL } from '../shared-types';
4
+ export { ExternalDataType, FieldType, ModelType, ProviderEnum, ReferentialAction, RelationType, RollupFunction, RowColoringMode, StorageMode, ViewLockType, ViewType } from '../shared-types';
4
5
  export interface AcceptWorkspaceInviteDto {
5
6
  token: string;
6
7
  }
@@ -340,54 +341,6 @@ export interface CalendarViewResponseDto {
340
341
  createdAt: number;
341
342
  updatedAt: number | null;
342
343
  }
343
- export interface ColumnResponseDto {
344
- id: string;
345
- tableId: string;
346
- workspaceId: string | null;
347
- baseId: string | null;
348
- sourceId: string | null;
349
- name: string;
350
- keyName: string;
351
- description: string | null;
352
- columnName: string | null;
353
- type: FieldType;
354
- order: number | null;
355
- isPrimary: boolean | null;
356
- isPrimaryValue: boolean | null;
357
- isRequired: boolean | null;
358
- isUnique: boolean | null;
359
- isAutoIncrement: boolean | null;
360
- isUnsigned: boolean | null;
361
- isSystem: boolean | null;
362
- isReadonly: boolean | null;
363
- isVirtual: boolean | null;
364
- uiDataType: string | null;
365
- dataType: string | null;
366
- numericPrecision: string | null;
367
- numericScale: string | null;
368
- characterLength: string | null;
369
- columnDefault: string | null;
370
- columnType: string | null;
371
- columnComment: string | null;
372
- columnSequenceName: string | null;
373
- dataTypeExtra: string | null;
374
- dataTypeExtraPrecision: string | null;
375
- dataTypeExtraScale: string | null;
376
- autoUpdated: boolean | null;
377
- config: FieldConfig | null;
378
- meta: FieldMeta | null;
379
- validation: string | null;
380
- externalColumnName: string | null;
381
- externalDataType: ExternalDataType | null;
382
- createdAt: number | null;
383
- updatedAt: number | null;
384
- relationConfig?: RelationConfigResponseDto | null;
385
- lookupConfig?: LookupConfigResponseDto | null;
386
- rollupConfig?: RollupConfigResponseDto | null;
387
- inverseFieldId?: string | null;
388
- inverseFieldKey?: string | null;
389
- inverseFieldName?: string | null;
390
- }
391
344
  export interface CommandPaletteSearchQueryDto {
392
345
  q: string;
393
346
  limit?: number;
@@ -715,180 +668,9 @@ export interface ExportOptionsDto {
715
668
  export interface ExportStartResponseDto {
716
669
  jobId: string;
717
670
  }
718
- export declare enum ExternalDataType {
719
- VARCHAR = "VARCHAR",
720
- CHAR = "CHAR",
721
- TEXT = "TEXT",
722
- NVARCHAR = "NVARCHAR",
723
- NCHAR = "NCHAR",
724
- LONGTEXT = "LONGTEXT",
725
- MEDIUMTEXT = "MEDIUMTEXT",
726
- TINYTEXT = "TINYTEXT",
727
- INTEGER = "INTEGER",
728
- INT = "INT",
729
- SMALLINT = "SMALLINT",
730
- BIGINT = "BIGINT",
731
- TINYINT = "TINYINT",
732
- MEDIUMINT = "MEDIUMINT",
733
- SERIAL = "SERIAL",
734
- BIGSERIAL = "BIGSERIAL",
735
- DECIMAL = "DECIMAL",
736
- NUMERIC = "NUMERIC",
737
- FLOAT = "FLOAT",
738
- DOUBLE = "DOUBLE",
739
- REAL = "REAL",
740
- MONEY = "MONEY",
741
- SMALLMONEY = "SMALLMONEY",
742
- BOOLEAN = "BOOLEAN",
743
- BIT = "BIT",
744
- DATE = "DATE",
745
- TIME = "TIME",
746
- DATETIME = "DATETIME",
747
- DATETIME2 = "DATETIME2",
748
- SMALLDATETIME = "SMALLDATETIME",
749
- TIMESTAMP = "TIMESTAMP",
750
- TIMESTAMPTZ = "TIMESTAMPTZ",
751
- YEAR = "YEAR",
752
- BINARY = "BINARY",
753
- VARBINARY = "VARBINARY",
754
- BLOB = "BLOB",
755
- BYTEA = "BYTEA",
756
- IMAGE = "IMAGE",
757
- JSON = "JSON",
758
- JSONB = "JSONB",
759
- ARRAY = "ARRAY",
760
- UUID = "UUID",
761
- UNIQUEIDENTIFIER = "UNIQUEIDENTIFIER",
762
- GEOMETRY = "GEOMETRY",
763
- GEOGRAPHY = "GEOGRAPHY",
764
- POINT = "POINT",
765
- XML = "XML",
766
- ENUM = "ENUM",
767
- SET = "SET",
768
- OBJECT_ID = "OBJECT_ID",
769
- DOCUMENT = "DOCUMENT",
770
- INTERVAL = "INTERVAL",
771
- CIDR = "CIDR",
772
- INET = "INET",
773
- MACADDR = "MACADDR",
774
- HSTORE = "HSTORE",
775
- CUSTOM = "CUSTOM"
776
- }
777
- export interface ExternalSyncConfig {
778
- source: 'google_sheets' | 'airtable' | 'notion' | 'api';
779
- sourceId?: string;
780
- syncInterval?: number;
781
- lastSyncAt?: Date;
782
- }
783
- export interface FieldConfig {
784
- options?: {
785
- id: string;
786
- label: string;
787
- color?: string;
788
- }[];
789
- precision?: number;
790
- currencySymbol?: string;
791
- currencyCode?: string;
792
- percentFormat?: 'decimal' | 'whole';
793
- maxRating?: number;
794
- ratingIcon?: 'star' | 'heart' | 'thumb';
795
- prefix?: string;
796
- startNumber?: number;
797
- digitCount?: number;
798
- dateFormat?: string;
799
- timeFormat?: '12h' | '24h';
800
- includeTime?: boolean;
801
- timezone?: string;
802
- durationFormat?: 'h:mm' | 'h:mm:ss' | 'days';
803
- targetTableId?: string;
804
- allowMultiple?: boolean;
805
- symmetricFieldId?: string;
806
- relationFieldId?: string;
807
- lookupFieldId?: string;
808
- rollupRelationFieldId?: string;
809
- rollupFieldId?: string;
810
- rollupFunction?: 'sum' | 'avg' | 'min' | 'max' | 'count' | 'counta' | 'countall';
811
- formulaExpression?: string;
812
- outputType?: 'number' | 'text' | 'date' | 'boolean';
813
- enableRichText?: boolean;
814
- maxLength?: number;
815
- defaultCountryCode?: string;
816
- urlType?: 'any' | 'image' | 'video';
817
- allowMultipleUsers?: boolean;
818
- notifyOnAssign?: boolean;
819
- allowedFileTypes?: string[];
820
- maxFileSize?: number;
821
- maxFiles?: number;
822
- qrValueFieldId?: string;
823
- barcodeValueFieldId?: string;
824
- barcodeFormat?: string;
825
- buttonLabel?: string;
826
- buttonType?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info';
827
- buttonActionType?: 'url' | 'api' | 'script' | 'email' | 'page';
828
- buttonActionConfig?: Record<string, any>;
829
- buttonIcon?: string;
830
- buttonTooltip?: string;
831
- buttonWidth?: number;
832
- buttonConfirmation?: string;
833
- aiPrompt?: string;
834
- aiModel?: string;
835
- aiConfig?: Record<string, any>;
836
- }
837
- export type FieldMeta = {
838
- placeholder?: string;
839
- helpText?: string;
840
- icon?: string;
841
- color?: string;
842
- display?: {
843
- width?: number;
844
- hidden?: boolean;
845
- order?: number;
846
- };
847
- validation?: {
848
- min?: number;
849
- max?: number;
850
- pattern?: string;
851
- message?: string;
852
- };
853
- };
854
671
  export type FieldRefWithTableDto = RelationFieldRefDto & {
855
672
  tableClientKey?: string;
856
673
  };
857
- export declare enum FieldType {
858
- TEXT = "text",
859
- LONG_TEXT = "long_text",
860
- EMAIL = "email",
861
- PHONE = "phone",
862
- URL = "url",
863
- NUMBER = "number",
864
- CURRENCY = "currency",
865
- PERCENT = "percent",
866
- RATING = "rating",
867
- AUTONUMBER = "autonumber",
868
- ORDER = "order",
869
- SELECT = "select",
870
- MULTI_SELECT = "multi_select",
871
- BOOLEAN = "boolean",
872
- DATE = "date",
873
- DATETIME = "datetime",
874
- DURATION = "duration",
875
- RELATION = "relation",
876
- LINK_TO_ANOTHER_RECORD = "link_to_another_record",
877
- LINKS = "links",
878
- LOOKUP = "lookup",
879
- ROLLUP = "rollup",
880
- FORMULA = "formula",
881
- CREATED_TIME = "created_time",
882
- MODIFIED_TIME = "modified_time",
883
- CREATED_BY = "created_by",
884
- MODIFIED_BY = "modified_by",
885
- ATTACHMENT = "attachment",
886
- QR_CODE = "qrcode",
887
- BARCODE = "barcode",
888
- BUTTON = "button",
889
- USER = "user",
890
- AI = "ai"
891
- }
892
674
  export declare enum FilterComparisonOp {
893
675
  EQ = "eq",
894
676
  NEQ = "neq",
@@ -1377,10 +1159,6 @@ export interface LookupConfigDto {
1377
1159
  relationFieldRef: RelationFieldRefDto;
1378
1160
  lookupFieldId: string;
1379
1161
  }
1380
- export interface LookupConfigResponseDto {
1381
- relationFieldId: string | null;
1382
- lookupFieldId: string | null;
1383
- }
1384
1162
  export interface LookupConfigWithRefsDto {
1385
1163
  relationFieldRef: RelationFieldRefDto;
1386
1164
  lookupFieldId?: string;
@@ -1427,11 +1205,6 @@ export declare enum MembershipScope {
1427
1205
  BASE = "base",
1428
1206
  TEAM = "team"
1429
1207
  }
1430
- export declare enum ModelType {
1431
- TABLE = "table",
1432
- VIEW = "view",
1433
- DASHBOARD = "dashboard"
1434
- }
1435
1208
  export interface PagedResponse<T> {
1436
1209
  list: T[];
1437
1210
  pageInfo: PageInfo;
@@ -1534,13 +1307,6 @@ export interface RecordMoveDto {
1534
1307
  beforeRecordId?: string | null;
1535
1308
  viewId?: string;
1536
1309
  }
1537
- export declare enum ReferentialAction {
1538
- NO_ACTION = "NO ACTION",
1539
- CASCADE = "CASCADE",
1540
- RESTRICT = "RESTRICT",
1541
- SET_NULL = "SET NULL",
1542
- SET_DEFAULT = "SET DEFAULT"
1543
- }
1544
1310
  export interface RelationConfigDto {
1545
1311
  relationType: RelationType;
1546
1312
  relatedTableId: string;
@@ -1556,23 +1322,6 @@ export interface RelationConfigDto {
1556
1322
  mmChildFieldId?: string | null;
1557
1323
  mmParentFieldId?: string | null;
1558
1324
  }
1559
- export interface RelationConfigResponseDto {
1560
- relationType: RelationType;
1561
- relatedTableId: string | null;
1562
- relatedBaseId: string | null;
1563
- relatedSourceId: string | null;
1564
- onUpdate: ReferentialAction | null;
1565
- onDelete: ReferentialAction | null;
1566
- isVirtual: boolean | null;
1567
- targetViewId: string | null;
1568
- parentFieldId: string | null;
1569
- childFieldId: string | null;
1570
- mmTableId: string | null;
1571
- mmBaseId: string | null;
1572
- mmSourceId: string | null;
1573
- mmChildFieldId: string | null;
1574
- mmParentFieldId: string | null;
1575
- }
1576
1325
  export interface RelationConfigWithRefsDto {
1577
1326
  relationType: RelationType;
1578
1327
  relatedTableId?: string;
@@ -1593,12 +1342,6 @@ export interface RelationFieldRefDto {
1593
1342
  fieldId?: string;
1594
1343
  fieldKey?: string;
1595
1344
  }
1596
- export declare enum RelationType {
1597
- HAS_MANY = "hm",
1598
- BELONGS_TO = "bt",
1599
- MANY_TO_MANY = "mm",
1600
- ONE_TO_ONE = "oo"
1601
- }
1602
1345
  export interface RelationUpdateDto {
1603
1346
  refRowIds: string[];
1604
1347
  }
@@ -1627,27 +1370,12 @@ export interface RollupConfigDto {
1627
1370
  rollupFieldId: string;
1628
1371
  rollupFunction?: RollupFunction | null;
1629
1372
  }
1630
- export interface RollupConfigResponseDto {
1631
- relationFieldId: string | null;
1632
- rollupFieldId: string | null;
1633
- rollupFunction: RollupFunction | null;
1634
- }
1635
1373
  export interface RollupConfigWithRefsDto {
1636
1374
  relationFieldRef: RelationFieldRefDto;
1637
1375
  rollupFieldId?: string;
1638
1376
  rollupFieldRef?: FieldRefWithTableDto;
1639
1377
  rollupFunction?: RollupFunction | null;
1640
1378
  }
1641
- export declare enum RollupFunction {
1642
- COUNT = "count",
1643
- SUM = "sum",
1644
- AVG = "avg",
1645
- MIN = "min",
1646
- MAX = "max",
1647
- COUNT_DISTINCT = "countDistinct",
1648
- SUM_DISTINCT = "sumDistinct",
1649
- AVG_DISTINCT = "avgDistinct"
1650
- }
1651
1379
  export interface RowColorConditionResponseDto {
1652
1380
  id: string;
1653
1381
  viewId: string;
@@ -1664,10 +1392,6 @@ export interface RowColorConfigResponseDto {
1664
1392
  mode: RowColoringMode | null;
1665
1393
  conditions: RowColorConditionResponseDto[];
1666
1394
  }
1667
- export declare enum RowColoringMode {
1668
- FILTER = "filter",
1669
- SELECT = "select"
1670
- }
1671
1395
  export interface SecureAttachmentTokenDto {
1672
1396
  ttlSeconds?: number;
1673
1397
  }
@@ -1754,22 +1478,8 @@ export interface StartImportOptionsDto {
1754
1478
  sheet?: string;
1755
1479
  chunkSize?: number;
1756
1480
  }
1757
- export declare enum StorageMode {
1758
- JSONB = "JSONB",
1759
- EAV = "EAV",
1760
- PHYSICAL = "PHYSICAL"
1761
- }
1762
1481
  export type SupportedPermissionResourceType = (typeof PERMISSION_RESOURCE_TYPES)[number];
1763
1482
  export type SupportedPermissionSubjectType = (typeof PERMISSION_SUBJECT_TYPES)[number];
1764
- export type TableMeta = {
1765
- icon?: string;
1766
- color?: string;
1767
- coverImage?: string;
1768
- tags?: string[];
1769
- primaryFieldId?: string;
1770
- displayFieldId?: string;
1771
- isTemplate?: boolean;
1772
- };
1773
1483
  export type TableRecord = Record<string, JsonValue> & {
1774
1484
  id?: string | number;
1775
1485
  };
@@ -1780,48 +1490,6 @@ export interface TableRefDto {
1780
1490
  tableId?: string;
1781
1491
  tableClientKey?: string;
1782
1492
  }
1783
- export interface TableResponseDto {
1784
- id: string;
1785
- workspaceId: string;
1786
- name: string;
1787
- slug: string;
1788
- description: string | null;
1789
- baseId: string | null;
1790
- sourceId: string | null;
1791
- tableName: string | null;
1792
- type: ModelType | null;
1793
- storageMode: StorageMode | null;
1794
- order: number | null;
1795
- meta: TableMeta;
1796
- settings: TableSettings;
1797
- isManyToMany: boolean | null;
1798
- isSynced: boolean | null;
1799
- isDeleted: boolean | null;
1800
- externalSchemaName: string | null;
1801
- externalTableName: string | null;
1802
- createdAt: number;
1803
- updatedAt: number | null;
1804
- fields?: ColumnResponseDto[];
1805
- views?: ViewResponseDto[];
1806
- }
1807
- export interface TableSettings {
1808
- icon?: string;
1809
- color?: string;
1810
- coverImage?: string;
1811
- defaultViewId?: string;
1812
- allowPublicAccess?: boolean;
1813
- allowAnonymousSubmit?: boolean;
1814
- recordPrefix?: string;
1815
- enableComments?: boolean;
1816
- enableHistory?: boolean;
1817
- enableAttachments?: boolean;
1818
- enableWebhooks?: boolean;
1819
- enableAutomations?: boolean;
1820
- externalSyncEnabled?: boolean;
1821
- externalSyncConfig?: ExternalSyncConfig;
1822
- maxRecords?: number;
1823
- maxAttachmentSize?: number;
1824
- }
1825
1493
  export interface TestHookDto {
1826
1494
  hook: CreateHookDto;
1827
1495
  rowId?: string;
@@ -1949,60 +1617,12 @@ export interface ViewColumnResponseDto {
1949
1617
  updatedAt: number | null;
1950
1618
  }
1951
1619
  export type ViewDetailQueryDto = ListViewsQueryDto;
1952
- export declare enum ViewLockType {
1953
- COLLABORATIVE = "collaborative",
1954
- LOCKED = "locked",
1955
- PERSONAL = "personal"
1956
- }
1957
- export type ViewMeta = {
1958
- icon?: string;
1959
- color?: string;
1960
- coverImage?: string;
1961
- tags?: string[];
1962
- isPinned?: boolean;
1963
- layout?: {
1964
- width?: number;
1965
- height?: number;
1966
- density?: 'compact' | 'normal' | 'comfortable';
1967
- };
1968
- };
1969
- export interface ViewResponseDto {
1970
- id: string;
1971
- tableId: string;
1972
- workspaceId: string | null;
1973
- baseId: string | null;
1974
- sourceId: string | null;
1975
- name: string;
1976
- description: string | null;
1977
- type: ViewType;
1978
- show: boolean;
1979
- order: number | null;
1980
- lockType: ViewLockType | null;
1981
- uuid: string | null;
1982
- showSystemFields: boolean;
1983
- meta: ViewMeta;
1984
- rowColoringMode: RowColoringMode | null;
1985
- createdBy: number | null;
1986
- ownedBy: number | null;
1987
- customUrlId: string | null;
1988
- isDefault: boolean;
1989
- createdAt: number;
1990
- updatedAt: number | null;
1991
- }
1992
1620
  export declare enum ViewSortDirection {
1993
1621
  ASC = "asc",
1994
1622
  DESC = "desc",
1995
1623
  COUNT_ASC = "count-asc",
1996
1624
  COUNT_DESC = "count-desc"
1997
1625
  }
1998
- export declare enum ViewType {
1999
- FORM = "form",
2000
- GALLERY = "gallery",
2001
- GRID = "grid",
2002
- KANBAN = "kanban",
2003
- CALENDAR = "calendar",
2004
- MAP = "map"
2005
- }
2006
1626
  export interface WarmupCacheDto {
2007
1627
  tableIds?: string[];
2008
1628
  ttlSeconds?: number;
@@ -2189,88 +1809,36 @@ export declare const PERMISSION_SUBJECT_TYPES: readonly unknown[];
2189
1809
  export declare const WORKSPACE_SYSTEM_ROLE_CODE: readonly unknown[];
2190
1810
  export declare const WORKSPACE: readonly unknown[];
2191
1811
  export type ACCEPTED = unknown;
2192
- export type ACTION = unknown;
2193
- export type AI = unknown;
2194
1812
  export type ALL_OF = unknown;
2195
1813
  export type AND = unknown;
2196
1814
  export type ANY_OF = unknown;
2197
- export type API_TOKEN_CREATE = unknown;
2198
- export type API_TOKEN_DELETE = unknown;
2199
- export type API_TOKEN_UPDATE = unknown;
2200
1815
  export type APIS_CREATED = unknown;
2201
1816
  export type APPEND = unknown;
2202
1817
  export type APPROVED = unknown;
2203
- export type ATTACHMENT = unknown;
2204
1818
  export type ATTACHMENT_UPLOAD = unknown;
2205
- export type AUTONUMBER = unknown;
2206
- export type AVG = unknown;
2207
- export type AVG_DISTINCT = unknown;
2208
- export type BARCODE = unknown;
2209
- export type BASE = unknown;
2210
1819
  export type BASE_DUPLICATE_COMPLETE = unknown;
2211
1820
  export type BASE_DUPLICATE_FAIL = unknown;
2212
1821
  export type BASE_DUPLICATE_START = unknown;
2213
- export type BELONGS_TO = unknown;
2214
1822
  export type BETWEEN = unknown;
2215
- export type BIGINT = unknown;
2216
- export type BIGSERIAL = unknown;
2217
- export type BIT = unknown;
2218
1823
  export type BLANK = unknown;
2219
- export type BLOB = unknown;
2220
- export type BUTTON = unknown;
2221
- export type BYTEA = unknown;
2222
- export type CALENDAR = unknown;
2223
- export type CALENDAR_CREATE = unknown;
2224
- export type CALENDAR_DELETE = unknown;
2225
- export type CALENDAR_UPDATE = unknown;
2226
1824
  export type CANCELED = unknown;
2227
- export type CASCADE = unknown;
2228
- export type CHAR = unknown;
2229
1825
  export type CHECKED = unknown;
2230
- export type CIDR = unknown;
2231
- export type COLLABORATIVE = unknown;
2232
1826
  export type COLUMN_CREATE = unknown;
2233
1827
  export type COLUMN_DELETE = unknown;
2234
1828
  export type COLUMN_DUPLICATE_COMPLETE = unknown;
2235
1829
  export type COLUMN_DUPLICATE_FAIL = unknown;
2236
1830
  export type COLUMN_DUPLICATE_START = unknown;
2237
1831
  export type COLUMN_UPDATE = unknown;
2238
- export type COMMENT_CREATE = unknown;
2239
- export type COMMENT_DELETE = unknown;
2240
- export type COMMENT_UPDATE = unknown;
2241
- export type COUNT = unknown;
2242
1832
  export type COUNT_ASC = unknown;
2243
1833
  export type COUNT_DESC = unknown;
2244
- export type COUNT_DISTINCT = unknown;
2245
- export type CREATED_BY = unknown;
2246
- export type CREATED_TIME = unknown;
2247
1834
  export type CSV = unknown;
2248
- export type CURRENCY = unknown;
2249
- export type DASHBOARD = unknown;
2250
- export type DASHBOARD_CREATE = unknown;
2251
- export type DASHBOARD_DELETE = unknown;
2252
1835
  export type DASHBOARD_DUPLICATE_COMPLETE = unknown;
2253
1836
  export type DASHBOARD_DUPLICATE_FAIL = unknown;
2254
1837
  export type DASHBOARD_DUPLICATE_START = unknown;
2255
- export type DASHBOARD_UPDATE = unknown;
2256
- export type DATA_CREATE = unknown;
2257
- export type DATA_DELETE = unknown;
2258
- export type DATA_EXPORT = unknown;
2259
- export type DATA_IMPORT = unknown;
2260
- export type DATA_UPDATE = unknown;
2261
- export type DATETIME = unknown;
2262
- export type DATETIME2 = unknown;
2263
1838
  export type DAYS_AGO = unknown;
2264
1839
  export type DAYS_FROM_NOW = unknown;
2265
- export type DECIMAL = unknown;
2266
- export type DEFAULT = unknown;
2267
1840
  export type DEV = unknown;
2268
- export type DOCUMENT = unknown;
2269
- export type DOUBLE = unknown;
2270
- export type DURATION = unknown;
2271
- export type EAV = unknown;
2272
1841
  export type EMPTY = unknown;
2273
- export type ENUM = unknown;
2274
1842
  export type EQ = unknown;
2275
1843
  export type EXACT_DATE = unknown;
2276
1844
  export type EXPIRED = unknown;
@@ -2279,24 +1847,18 @@ export type EXTENSION_DELETE = unknown;
2279
1847
  export type EXTENSION_UPDATE = unknown;
2280
1848
  export type EXTERNAL = unknown;
2281
1849
  export type EXTRA = unknown;
2282
- export type FILTER = unknown;
2283
1850
  export type FILTER_CREATE = unknown;
2284
1851
  export type FILTER_DELETE = unknown;
2285
1852
  export type FILTER_UPDATE = unknown;
2286
- export type FLOAT = unknown;
2287
- export type FORM = unknown;
2288
1853
  export type FORM_COLUMN_UPDATE = unknown;
2289
1854
  export type FORM_CREATE = unknown;
2290
1855
  export type FORM_DELETE = unknown;
2291
1856
  export type FORM_DUPLICATE = unknown;
2292
1857
  export type FORM_UPDATE = unknown;
2293
- export type GALLERY = unknown;
2294
1858
  export type GALLERY_CREATE = unknown;
2295
1859
  export type GALLERY_DELETE = unknown;
2296
1860
  export type GALLERY_DUPLICATE = unknown;
2297
1861
  export type GALLERY_UPDATE = unknown;
2298
- export type GEOGRAPHY = unknown;
2299
- export type GEOMETRY = unknown;
2300
1862
  export type GOOGLE = unknown;
2301
1863
  export type GRID_COLUMN_UPDATE = unknown;
2302
1864
  export type GRID_CREATE = unknown;
@@ -2307,22 +1869,10 @@ export type GROUP_BY_EQ = unknown;
2307
1869
  export type GROUP_BY_NULL = unknown;
2308
1870
  export type GT = unknown;
2309
1871
  export type GTE = unknown;
2310
- export type HAS_MANY = unknown;
2311
- export type HSTORE = unknown;
2312
- export type IMAGE = unknown;
2313
1872
  export type IMAGE_UPLOAD = unknown;
2314
- export type INET = unknown;
2315
- export type INT = unknown;
2316
- export type INTEGER = unknown;
2317
- export type INTEGRATION_CREATE = unknown;
2318
- export type INTEGRATION_DELETE = unknown;
2319
- export type INTEGRATION_UPDATE = unknown;
2320
- export type INTERVAL = unknown;
2321
1873
  export type IS = unknown;
2322
1874
  export type IS_NOT = unknown;
2323
1875
  export type IS_WITHIN = unknown;
2324
- export type JSONB = unknown;
2325
- export type KANBAN = unknown;
2326
1876
  export type KANBAN_CREATE = unknown;
2327
1877
  export type KANBAN_DELETE = unknown;
2328
1878
  export type KANBAN_DUPLICATE = unknown;
@@ -2330,45 +1880,25 @@ export type KANBAN_UPDATE = unknown;
2330
1880
  export type KNOWLEDGE_FILE = unknown;
2331
1881
  export type LEFT = unknown;
2332
1882
  export type LIKE = unknown;
2333
- export type LINK_TO_ANOTHER_RECORD = unknown;
2334
- export type LINKS = unknown;
2335
- export type LOCKED = unknown;
2336
- export type LONG_TEXT = unknown;
2337
- export type LONGTEXT = unknown;
2338
- export type LOOKUP = unknown;
2339
1883
  export type LT = unknown;
2340
1884
  export type LTE = unknown;
2341
- export type MACADDR = unknown;
2342
- export type MANY_TO_MANY = unknown;
2343
- export type MAP = unknown;
2344
1885
  export type MAP_CREATE = unknown;
2345
1886
  export type MAP_DELETE = unknown;
2346
1887
  export type MAP_UPDATE = unknown;
2347
1888
  export type MAPBOX = unknown;
2348
1889
  export type MARIADB = unknown;
2349
- export type MAX = unknown;
2350
1890
  export type MEDIA = unknown;
2351
1891
  export type MEDIUM = unknown;
2352
- export type MEDIUMINT = unknown;
2353
- export type MEDIUMTEXT = unknown;
2354
1892
  export type META_DIFF_SYNC = unknown;
2355
- export type MIN = unknown;
2356
- export type MODIFIED_BY = unknown;
2357
- export type MODIFIED_TIME = unknown;
2358
- export type MONEY = unknown;
2359
1893
  export type MONGODB = unknown;
2360
1894
  export type MSSQL = unknown;
2361
- export type MULTI_SELECT = unknown;
2362
1895
  export type MYSQL = unknown;
2363
- export type NCHAR = unknown;
2364
1896
  export type NEQ = unknown;
2365
1897
  export type NEXT_MONTH = unknown;
2366
1898
  export type NEXT_NUMBER_OF_DAYS = unknown;
2367
1899
  export type NEXT_WEEK = unknown;
2368
1900
  export type NEXT_YEAR = unknown;
2369
1901
  export type NLIKE = unknown;
2370
- export type NO = unknown;
2371
- export type NO_ACTION = unknown;
2372
1902
  export type NOT = unknown;
2373
1903
  export type NOT_ALL_OF = unknown;
2374
1904
  export type NOT_ANY_OF = unknown;
@@ -2377,18 +1907,12 @@ export type NOT_BLANK = unknown;
2377
1907
  export type NOT_CHECKED = unknown;
2378
1908
  export type NOT_EMPTY = unknown;
2379
1909
  export type NOT_NULL = unknown;
2380
- export type NULL = unknown;
2381
- export type NUMERIC = unknown;
2382
- export type NVARCHAR = unknown;
2383
- export type OBJECT_ID = unknown;
2384
1910
  export type ONE_MONTH_AGO = unknown;
2385
1911
  export type ONE_MONTH_FROM_NOW = unknown;
2386
- export type ONE_TO_ONE = unknown;
2387
1912
  export type ONE_WEEK_AGO = unknown;
2388
1913
  export type ONE_WEEK_FROM_NOW = unknown;
2389
1914
  export type OR = unknown;
2390
1915
  export type ORACLE = unknown;
2391
- export type ORDER = unknown;
2392
1916
  export type ORG_API_TOKEN_CREATE = unknown;
2393
1917
  export type ORG_API_TOKEN_DELETE = unknown;
2394
1918
  export type ORG_API_TOKEN_UPDATE = unknown;
@@ -2399,39 +1923,21 @@ export type PAST_MONTH = unknown;
2399
1923
  export type PAST_NUMBER_OF_DAYS = unknown;
2400
1924
  export type PAST_WEEK = unknown;
2401
1925
  export type PAST_YEAR = unknown;
2402
- export type PERCENT = unknown;
2403
- export type PERMISSION_CREATE = unknown;
2404
- export type PERMISSION_DELETE = unknown;
2405
- export type PERMISSION_UPDATE = unknown;
2406
- export type PERSONAL = unknown;
2407
- export type PHONE = unknown;
2408
- export type PHYSICAL = unknown;
2409
1926
  export type PLUGIN_INSTALL = unknown;
2410
1927
  export type PLUGIN_TEST = unknown;
2411
1928
  export type PLUGIN_UNINSTALL = unknown;
2412
- export type POINT = unknown;
2413
1929
  export type POSTGRESQL = unknown;
2414
1930
  export type PROD = unknown;
2415
1931
  export type PROJECT_CLONE = unknown;
2416
- export type PROJECT_CREATE = unknown;
2417
- export type PROJECT_DELETE = unknown;
2418
1932
  export type PROJECT_INVITE = unknown;
2419
- export type PROJECT_UPDATE = unknown;
2420
1933
  export type PROJECT_USER_DELETE = unknown;
2421
1934
  export type PROJECT_USER_RESEND_INVITE = unknown;
2422
1935
  export type PROJECT_USER_UPDATE = unknown;
2423
- export type QR_CODE = unknown;
2424
- export type RATING = unknown;
2425
- export type READ = unknown;
2426
- export type REAL = unknown;
2427
1936
  export type REJECTED = unknown;
2428
- export type RELATION = unknown;
2429
1937
  export type RELATION_CREATE = unknown;
2430
1938
  export type RELATION_DELETE = unknown;
2431
- export type RESTRICT = unknown;
2432
1939
  export type REVOKED = unknown;
2433
1940
  export type RIGHT = unknown;
2434
- export type ROLLUP = unknown;
2435
1941
  export type ROW_USER_MENTION = unknown;
2436
1942
  export type RUNNING = unknown;
2437
1943
  export type SCRIPT = unknown;
@@ -2439,11 +1945,6 @@ export type SCRIPT_CREATE = unknown;
2439
1945
  export type SCRIPT_DELETE = unknown;
2440
1946
  export type SCRIPT_DUPLICATE = unknown;
2441
1947
  export type SCRIPT_UPDATE = unknown;
2442
- export type SELECT = unknown;
2443
- export type SERIAL = unknown;
2444
- export type SET = unknown;
2445
- export type SET_DEFAULT = unknown;
2446
- export type SET_NULL = unknown;
2447
1948
  export type SHARED_BASE_DELETE_LINK = unknown;
2448
1949
  export type SHARED_BASE_GENERATE_LINK = unknown;
2449
1950
  export type SHARED_BASE_REVOKE_LINK = unknown;
@@ -2454,46 +1955,27 @@ export type SHARED_VIEW_CREATE = unknown;
2454
1955
  export type SHARED_VIEW_DELETE = unknown;
2455
1956
  export type SHARED_VIEW_UPDATE = unknown;
2456
1957
  export type SHORT = unknown;
2457
- export type SMALLDATETIME = unknown;
2458
- export type SMALLINT = unknown;
2459
- export type SMALLMONEY = unknown;
2460
1958
  export type SNAPSHOT_CREATE = unknown;
2461
1959
  export type SNAPSHOT_DELETE = unknown;
2462
1960
  export type SNAPSHOT_RESTORE = unknown;
2463
1961
  export type SORT_CREATE = unknown;
2464
1962
  export type SORT_DELETE = unknown;
2465
1963
  export type SORT_UPDATE = unknown;
2466
- export type SOURCE_CREATE = unknown;
2467
- export type SOURCE_DELETE = unknown;
2468
- export type SOURCE_UPDATE = unknown;
2469
1964
  export type SQLITE = unknown;
2470
1965
  export type STAGING = unknown;
2471
1966
  export type SUCCESS = unknown;
2472
- export type SUM = unknown;
2473
- export type SUM_DISTINCT = unknown;
2474
1967
  export type SYNC_SOURCE_CREATE = unknown;
2475
1968
  export type SYNC_SOURCE_DELETE = unknown;
2476
1969
  export type SYNC_SOURCE_UPDATE = unknown;
2477
- export type TABLE = unknown;
2478
- export type TABLE_CREATE = unknown;
2479
- export type TABLE_DELETE = unknown;
2480
1970
  export type TABLE_DUPLICATE_COMPLETE = unknown;
2481
1971
  export type TABLE_DUPLICATE_FAIL = unknown;
2482
1972
  export type TABLE_DUPLICATE_START = unknown;
2483
- export type TABLE_UPDATE = unknown;
2484
1973
  export type TALL = unknown;
2485
1974
  export type TEAM = unknown;
2486
- export type TEST = unknown;
2487
- export type TIME = unknown;
2488
- export type TIMESTAMP = unknown;
2489
- export type TIMESTAMPTZ = unknown;
2490
- export type TINYINT = unknown;
2491
- export type TINYTEXT = unknown;
2492
1975
  export type TODAY = unknown;
2493
1976
  export type TOMORROW = unknown;
2494
1977
  export type UI_ACL = unknown;
2495
1978
  export type UI_ACL_UPDATE = unknown;
2496
- export type UNIQUEIDENTIFIER = unknown;
2497
1979
  export type USER_DELETE = unknown;
2498
1980
  export type USER_EMAIL_VERIFICATION = unknown;
2499
1981
  export type USER_INVITE = unknown;
@@ -2505,22 +1987,15 @@ export type USER_SIGNIN = unknown;
2505
1987
  export type USER_SIGNOUT = unknown;
2506
1988
  export type USER_SIGNUP = unknown;
2507
1989
  export type USER_UPDATE = unknown;
2508
- export type UUID = unknown;
2509
1990
  export type V1 = unknown;
2510
1991
  export type V2 = unknown;
2511
1992
  export type V3 = unknown;
2512
- export type VARBINARY = unknown;
2513
- export type VARCHAR = unknown;
2514
1993
  export type VERTEX_AI = unknown;
2515
- export type VIEW = unknown;
2516
1994
  export type VIEW_COLUMN_CREATE = unknown;
2517
1995
  export type VIEW_COLUMN_UPDATE = unknown;
2518
- export type VIEW_CREATE = unknown;
2519
- export type VIEW_DELETE = unknown;
2520
1996
  export type VIEW_DUPLICATE_COMPLETE = unknown;
2521
1997
  export type VIEW_DUPLICATE_FAIL = unknown;
2522
1998
  export type VIEW_DUPLICATE_START = unknown;
2523
- export type VIEW_UPDATE = unknown;
2524
1999
  export type WEBHOOK = unknown;
2525
2000
  export type WEBHOOK_CREATE = unknown;
2526
2001
  export type WEBHOOK_DELETE = unknown;
@@ -2532,7 +2007,6 @@ export type WIDGET_CREATE = unknown;
2532
2007
  export type WIDGET_DELETE = unknown;
2533
2008
  export type WIDGET_DUPLICATE = unknown;
2534
2009
  export type WIDGET_UPDATE = unknown;
2535
- export type WORKFLOW = unknown;
2536
2010
  export type WORKSPACE_CREATE = unknown;
2537
2011
  export type WORKSPACE_DELETE = unknown;
2538
2012
  export type WORKSPACE_UPDATE = unknown;
@@ -2541,8 +2015,6 @@ export type WORKSPACE_USER_DELETE = unknown;
2541
2015
  export type WORKSPACE_USER_INVITE = unknown;
2542
2016
  export type WORKSPACE_USER_UPDATE = unknown;
2543
2017
  export type XLSX = unknown;
2544
- export type XML = unknown;
2545
- export type YEAR = unknown;
2546
2018
  export type YESTERDAY = unknown;
2547
2019
  export interface AclCreateAclEntryParams {
2548
2020
  body: CreateAclEntryDto;
@@ -2783,6 +2255,7 @@ export interface DataTableCountRecordsParams {
2783
2255
  }
2784
2256
  export interface DataTableCreateRecordsParams {
2785
2257
  tableId: string;
2258
+ query?: string;
2786
2259
  body: TableRecordInput | TableRecordInput[];
2787
2260
  }
2788
2261
  export interface DataTableDeleteRecordsParams {