@donotdev/core 0.0.25 → 0.0.26
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/index.d.ts +31 -4
- package/index.js +2 -2
- package/package.json +1 -1
- package/server.d.ts +28 -1
- package/server.js +1 -1
package/package.json
CHANGED
package/server.d.ts
CHANGED
|
@@ -4596,7 +4596,7 @@ declare const LIST_SCHEMA_TYPE: {
|
|
|
4596
4596
|
readonly LIST_CARD: "listCard";
|
|
4597
4597
|
};
|
|
4598
4598
|
type ListSchemaType = (typeof LIST_SCHEMA_TYPE)[keyof typeof LIST_SCHEMA_TYPE];
|
|
4599
|
-
declare const FIELD_TYPES: readonly ["address", "array", "avatar", "badge", "boolean", "checkbox", "color", "combobox", "date", "datetime-local", "document", "documents", "duration", "email", "file", "files", "gdprConsent", "geopoint", "hidden", "iban", "image", "images", "map", "month", "multiselect", "number", "currency", "price", "password", "radio", "reference", "range", "rating", "reset", "richtext", "select", "submit", "switch", "tel", "text", "textarea", "time", "timestamp", "url", "week", "year"];
|
|
4599
|
+
declare const FIELD_TYPES: readonly ["address", "array", "avatar", "badge", "boolean", "checkbox", "color", "combobox", "date", "datetime-local", "document", "documents", "duration", "email", "field-array", "file", "files", "gdprConsent", "geopoint", "hidden", "iban", "image", "images", "map", "month", "multiselect", "number", "currency", "price", "password", "radio", "reference", "range", "rating", "reset", "richtext", "select", "submit", "switch", "tel", "text", "textarea", "time", "timestamp", "url", "week", "year"];
|
|
4600
4600
|
|
|
4601
4601
|
/**
|
|
4602
4602
|
* @fileoverview Schema-Related Type Definitions
|
|
@@ -4906,6 +4906,7 @@ type FieldTypeToValue = {
|
|
|
4906
4906
|
document: FileAsset | null;
|
|
4907
4907
|
documents: FileAsset[];
|
|
4908
4908
|
email: string;
|
|
4909
|
+
'field-array': Record<string, unknown>[];
|
|
4909
4910
|
file: FileAsset | null;
|
|
4910
4911
|
files: FileAsset[];
|
|
4911
4912
|
geopoint: {
|
|
@@ -5590,6 +5591,32 @@ interface BusinessEntity {
|
|
|
5590
5591
|
* ```
|
|
5591
5592
|
*/
|
|
5592
5593
|
security?: SecurityEntityConfig;
|
|
5594
|
+
/**
|
|
5595
|
+
* Client-side search config for `useCrudList`/`useCrudCardList` `searchQuery` option.
|
|
5596
|
+
* If omitted, all text-like visible fields are searched automatically.
|
|
5597
|
+
*
|
|
5598
|
+
* @example
|
|
5599
|
+
* ```typescript
|
|
5600
|
+
* search: { fields: ['name', 'description', 'sku'] }
|
|
5601
|
+
* ```
|
|
5602
|
+
*/
|
|
5603
|
+
search?: {
|
|
5604
|
+
fields?: string[];
|
|
5605
|
+
};
|
|
5606
|
+
/**
|
|
5607
|
+
* Default client-side sort for list hooks.
|
|
5608
|
+
* Applied when no explicit `clientSort` option is passed and no `orderBy` in `queryOptions`.
|
|
5609
|
+
* Pass `clientSort: null` in hook options to disable.
|
|
5610
|
+
*
|
|
5611
|
+
* @example
|
|
5612
|
+
* ```typescript
|
|
5613
|
+
* defaultSort: { field: 'createdAt', direction: 'desc' }
|
|
5614
|
+
* ```
|
|
5615
|
+
*/
|
|
5616
|
+
defaultSort?: {
|
|
5617
|
+
field: string;
|
|
5618
|
+
direction?: 'asc' | 'desc';
|
|
5619
|
+
};
|
|
5593
5620
|
}
|
|
5594
5621
|
/**
|
|
5595
5622
|
* Complete entity definition including base fields
|