@evoke-platform/context 1.0.0-dev.93 → 1.0.0-dev.95

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.
@@ -32,6 +32,9 @@ export type Obj = {
32
32
  properties?: Property[];
33
33
  actions?: Action[];
34
34
  };
35
+ export type ObjWithRoot = Obj & {
36
+ rootObjectId: string;
37
+ };
35
38
  export type PropertyType = 'address' | 'array' | 'boolean' | 'collection' | 'date' | 'date-time' | 'image' | 'integer' | 'number' | 'object' | 'richText' | 'string' | 'time' | 'user';
36
39
  export type NumericValidation = {
37
40
  errorMessage?: string;
@@ -215,7 +218,7 @@ export type ActionInput = {
215
218
  json?: string;
216
219
  show?: boolean;
217
220
  when?: string;
218
- eq?: string | number;
221
+ eq?: string | number | boolean;
219
222
  };
220
223
  property?: {
221
224
  id: string;
@@ -283,9 +286,9 @@ export declare class ObjectStore {
283
286
  private services;
284
287
  private objectId;
285
288
  constructor(services: ApiServices, objectId: string);
286
- get(options?: ObjectOptions): Promise<Obj>;
287
- get(cb?: Callback<Obj>): void;
288
- get(options: ObjectOptions, cb?: Callback<Obj>): void;
289
+ get(options?: ObjectOptions): Promise<ObjWithRoot>;
290
+ get(cb?: Callback<ObjWithRoot>): void;
291
+ get(options: ObjectOptions, cb?: Callback<ObjWithRoot>): void;
289
292
  findInstances<T extends ObjectInstance = ObjectInstance>(filter?: Filter): Promise<T[]>;
290
293
  findInstances<T extends ObjectInstance = ObjectInstance>(cb: Callback<T[]>): void;
291
294
  findInstances<T extends ObjectInstance = ObjectInstance>(filter: Filter, cb: Callback<T[]>): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evoke-platform/context",
3
- "version": "1.0.0-dev.93",
3
+ "version": "1.0.0-dev.95",
4
4
  "description": "Utilities that provide context to Evoke platform widgets",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",