@forestadmin/forestadmin-client 1.25.2 → 1.25.4

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.
@@ -54,7 +54,7 @@ export type WidgetEditConfiguration = {
54
54
  parameters: Record<string, unknown>;
55
55
  };
56
56
  type ForestServerActionFieldType = ForestServerColumnType | 'File' | ['File'];
57
- export type ForestServerActionFieldCommon<TType extends ForestServerActionFieldType = ForestServerActionFieldType, TWidgetEdit extends WidgetEditConfiguration = null> = {
57
+ export type ForestServerActionFieldCommon<TType extends ForestServerActionFieldType = ForestServerActionFieldType, TWidgetEdit extends WidgetEditConfiguration | null = null> = {
58
58
  type: TType;
59
59
  value: unknown;
60
60
  defaultValue: unknown;
package/dist/types.d.ts CHANGED
@@ -18,10 +18,9 @@ export type ForestAdminClientOptions = {
18
18
  logger?: Logger;
19
19
  permissionsCacheDurationInSeconds?: number;
20
20
  instantCacheRefresh?: boolean;
21
- };
22
- export type ForestAdminClientOptionsWithDefaults = Required<ForestAdminClientOptions> & {
23
21
  experimental?: unknown;
24
22
  };
23
+ export type ForestAdminClientOptionsWithDefaults = Required<Omit<ForestAdminClientOptions, 'experimental'>> & Pick<ForestAdminClientOptions, 'experimental'>;
25
24
  export type ForestAdminAuthServiceInterface = {
26
25
  init: () => Promise<void>;
27
26
  getUserInfo: (renderingId: number, accessToken: string) => Promise<UserInfo>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forestadmin/forestadmin-client",
3
- "version": "1.25.2",
3
+ "version": "1.25.4",
4
4
  "main": "dist/index.js",
5
5
  "license": "GPL-3.0",
6
6
  "publishConfig": {
@@ -31,7 +31,7 @@
31
31
  "test": "jest"
32
32
  },
33
33
  "devDependencies": {
34
- "@forestadmin/datasource-toolkit": "1.29.1",
34
+ "@forestadmin/datasource-toolkit": "1.29.2",
35
35
  "@types/json-api-serializer": "^2.6.3",
36
36
  "@types/jsonwebtoken": "^9.0.1",
37
37
  "@types/superagent": "^4.1.16"