Socket
Socket
Sign inDemoInstall

@forestadmin/forestadmin-client

Package Overview
Dependencies
Maintainers
4
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@forestadmin/forestadmin-client - npm Package Compare versions

Comparing version 1.5.10 to 1.6.0-alpha-widgets.1

33

dist/schema/types.d.ts

@@ -48,7 +48,15 @@ import type { PrimitiveTypes } from '@forestadmin/datasource-toolkit';

};
export type ForestServerActionField = {
export type ForestServerActionFieldWidgetEditBase<TType = string, TConfig = unknown> = {
name: TType;
parameters: TConfig;
};
export type WidgetEditConfiguration = {
name: string;
parameters: Record<string, unknown>;
};
export type ForestServerActionFieldCommon<TType extends ForestServerColumnType = ForestServerColumnType, TWidgetEdit extends WidgetEditConfiguration = null> = {
type: TType;
value: unknown;
defaultValue: unknown;
description: string | null;
enums: string[];
field: string;

@@ -58,6 +66,23 @@ hook: string;

isRequired: boolean;
enums: null | string[];
widgetEdit: TWidgetEdit;
};
export type ForestServerActionFieldBase = ForestServerActionFieldCommon & {
reference: string | null;
type: ForestServerColumnType;
widget: null | 'belongsto select' | 'file picker';
};
export type ForestServerActionFieldDropdownOptions<TValue = string> = {
name: 'dropdown';
parameters: {
placeholder?: string | null;
isSearchable?: boolean;
static: {
options: Array<{
label: TValue;
value: string;
}>;
};
};
};
export type ForestServerActionFieldDropdown = ForestServerActionFieldCommon<'String' | 'Dateonly' | 'Date' | 'Timeonly', ForestServerActionFieldDropdownOptions<string>> | ForestServerActionFieldCommon<'Number', ForestServerActionFieldDropdownOptions<number>>;
export type ForestServerActionField = ForestServerActionFieldDropdown | ForestServerActionFieldBase;
export type ForestServerField = Partial<{

@@ -64,0 +89,0 @@ field: string;

4

package.json
{
"name": "@forestadmin/forestadmin-client",
"version": "1.5.10",
"version": "1.6.0-alpha-widgets.1",
"main": "dist/index.js",

@@ -34,3 +34,3 @@ "license": "GPL-3.0",

"devDependencies": {
"@forestadmin/datasource-toolkit": "1.9.0",
"@forestadmin/datasource-toolkit": "1.9.0-alpha-widgets.1",
"@types/json-api-serializer": "^2.6.3",

@@ -37,0 +37,0 @@ "@types/jsonwebtoken": "^9.0.1",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc