π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix: type issue
mertmit3f96786148a4
diff --git a/packages/nocodb-sdk/src/lib/Api.ts b/packages/nocodb-sdk/src/lib/Api.tsindex c8913c7d81..e75792f6e3 100644--- a/packages/nocodb-sdk/src/lib/Api.ts+++ b/packages/nocodb-sdk/src/lib/Api.ts@@ -948,13 +948,49 @@ export interface FieldOptionsLongTextV3Type {generate_text_using_ai?: boolean;}+export type FieldBaseCreateV3Type = FieldBaseV3Type;+export interface FieldBaseV3Type {/** Unique identifier for the field. */id?: string;/** Title of the field. */title: string;/** Field data type. */- type: string;+ type?:+ | 'SingleLineText'+ | 'LongText'+ | 'PhoneNumber'+ | 'URL'+ | 'Email'+ | 'Number'+ | 'Decimal'+ | 'Currency'+ | 'Percent'+ | 'Duration'+ | 'Date'+ | 'DateTime'+ | 'Time'+ | 'SingleSelect'+ | 'MultiSelect'+ | 'Rating'+ | 'Checkbox'+ | 'Attachment'+ | 'Geometry'+ | 'Links'+ | 'Lookup'+ | 'Rollup'+ | 'Button'+ | 'Formula'+ | 'Barcode'+ | 'Year'+ | 'QrCode'+ | 'CreatedAt'+ | 'LastModifiedAt'+ | 'CreatedBy'+ | 'LastModifiedBy'+ | 'LinkToAnotherRecord'+ | 'User'+ | 'JSON';/** Description of the field. */description?: string | null;/** Default value for the field. Applicable for SingleLineText, LongText, PhoneNumber, URL, Email, Number, Decimal, Currency, Percent, Duration, Date, DateTime, Time, SingleSelect, MultiSelect, Rating, Checkbox, User and JSON fields. */@@ -1318,7 +1354,7 @@ export interface TableV3Type {views: ViewSummaryV3Type[];}-export type CreateFieldV3Type = FieldBaseV3Type;+export type CreateFieldV3Type = FieldBaseCreateV3Type;export type FieldOptionsV3Type = any;diff --git a/packages/nocodb-sdk/src/lib/index.ts b/packages/nocodb-sdk/src/lib/index.tsindex bbf287876d..4400449654 100644--- a/packages/nocodb-sdk/src/lib/index.ts+++ b/packages/nocodb-sdk/src/lib/index.ts@@ -11,6 +11,7 @@ export * from '~/lib/regex';export * from '~/lib/payment';export * from '~/lib/permission';export * from '~/lib/realtime';+export * from '~/lib/scripts';export {default as UITypes,UITypesName,diff --git a/packages/nocodb-sdk/src/lib/scripts/index.ts b/packages/nocodb-sdk/src/lib/scripts/index.tsnew file mode 100644index 0000000000..f0d1d65ed3--- /dev/null+++ b/packages/nocodb-sdk/src/lib/scripts/index.ts@@ -0,0 +1,6 @@+// Placeholder fns for scripts++export const hasInputCalls = (_scriptContent: string): boolean => {+ return false+}+