@steedos-widgets/amis-lib 1.2.1 → 1.2.2

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.
@@ -118,6 +118,7 @@ export function getObjectDetail(objectSchema: any, recordId: any, ctx: any): Pro
118
118
  value?: undefined;
119
119
  };
120
120
  data: {
121
+ objectName: string;
121
122
  record: string;
122
123
  };
123
124
  } | {
@@ -118,6 +118,7 @@ export function getViewSchema(objectName: any, recordId: any, ctx: any): Promise
118
118
  value?: undefined;
119
119
  };
120
120
  data: {
121
+ objectName: string;
121
122
  record: string;
122
123
  };
123
124
  } | {
@@ -287,6 +288,19 @@ export function getRecordDetailSchema(objectName: any, appId: any, props?: {}):
287
288
  onEvent: any;
288
289
  };
289
290
  }>;
291
+ export function getRecordServiceSchema(objectName: any, appId: any, props?: {}): Promise<{
292
+ uiSchema: any;
293
+ amisSchema: {
294
+ type: string;
295
+ body: any[];
296
+ data: {
297
+ "_master.objectName": string;
298
+ "_master.recordId": string;
299
+ };
300
+ style: any;
301
+ onEvent: any;
302
+ };
303
+ }>;
290
304
  export function getObjectRelated({ appName, masterObjectName, objectName, relatedFieldName, recordId, formFactor }: {
291
305
  appName: any;
292
306
  masterObjectName: any;
@@ -22,6 +22,7 @@ export function getSchema(uiSchema: any, ctx: any): Promise<{
22
22
  context: string;
23
23
  global: string;
24
24
  listViewId: string;
25
+ displayAs: string;
25
26
  uiSchema: string;
26
27
  isLookup: string;
27
28
  listName: string;
@@ -25,6 +25,7 @@ export namespace StandardButtons {
25
25
  context: string;
26
26
  global: string;
27
27
  listViewId: string;
28
+ displayAs: string;
28
29
  uiSchema: string;
29
30
  isLookup: string;
30
31
  listName: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@steedos-widgets/amis-lib",
3
3
  "private": false,
4
- "version": "1.2.1",
4
+ "version": "1.2.2",
5
5
  "unpkg": "./dist/index.umd.js",
6
6
  "main": "./dist/index.cjs.js",
7
7
  "module": "./dist/index.esm.js",
@@ -59,5 +59,5 @@
59
59
  "dependencies": {
60
60
  "lodash": "^4.17.21"
61
61
  },
62
- "gitHead": "d8e60ef2a76a1e83b11ba2d0d0788098f90576f7"
62
+ "gitHead": "f4b1da936f66360718b4b05de60e6076cd357f7e"
63
63
  }