@octostar/platform-types 0.0.2-alpha.0 → 0.0.4-alpha.0

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.
@@ -228,7 +228,7 @@ export declare type CreateEntityFormProps = {
228
228
  concept?: string;
229
229
  };
230
230
 
231
- export declare type CreateLinkChartFn = (params: CreateLinkChartParams) => Promise<void>;
231
+ export declare type CreateLinkChartFn = (params: CreateLinkChartParams) => Promise<WorkspaceItem | undefined>;
232
232
 
233
233
  export declare type CreateLinkChartParams = {
234
234
  path?: string;
@@ -800,6 +800,13 @@ declare class DropInfo {
800
800
  constructor(node: Node_2 & IDropTarget, rect: Rect, location: DockLocation, index: number, className: string);
801
801
  }
802
802
 
803
+ export declare type DropZoneRequestFn = (args: any[]) => Promise<DropZoneRequestResult>;
804
+
805
+ export declare type DropZoneRequestResult = {
806
+ to: any;
807
+ data: any;
808
+ };
809
+
803
810
  export declare type EConnection = {
804
811
  entity1: Entity;
805
812
  entity2: Entity;
@@ -2390,6 +2397,8 @@ declare interface ObsoleteProperties<TLength = (string & {}) | 0, TTime = string
2390
2397
  WebkitBoxPack?: Property_2.BoxPack | undefined;
2391
2398
  }
2392
2399
 
2400
+ export declare type OnDragStartFn = (callback: Callback<unknown>) => Unsubscribe;
2401
+
2393
2402
  export declare interface Ontology {
2394
2403
  cancelQueries: (context: string) => Promise<void>;
2395
2404
  getAvailableOntologies: () => Promise<string[]>;
@@ -4386,6 +4395,14 @@ export declare type RelationshipCountResult = {
4386
4395
  expired?: boolean;
4387
4396
  };
4388
4397
 
4398
+ export declare type RemoteAppApi = {
4399
+ subscribeToContext: SubscribeToContextFn;
4400
+ unsubscribeFromContext: UnsubscribeFromContextFn;
4401
+ onDragStart: OnDragStartFn;
4402
+ dropZoneRequest: DropZoneRequestFn;
4403
+ setTransformResult: SetTransformResultFn;
4404
+ };
4405
+
4389
4406
  declare interface RenderIconInfo {
4390
4407
  isSelected?: boolean;
4391
4408
  isOpen?: boolean;
@@ -4483,6 +4500,8 @@ declare type SetQueryObjectFilterClause = BaseQueryObjectFilterClause & {
4483
4500
  formattedVal?: string[];
4484
4501
  };
4485
4502
 
4503
+ export declare type SetTransformResultFn = (args: any[]) => Promise<void>;
4504
+
4486
4505
  export declare type ShowOntology = {
4487
4506
  concept: string;
4488
4507
  properties: string | undefined;
@@ -10666,6 +10685,8 @@ declare interface SubMenuType extends ItemSharedProps {
10666
10685
  onTitleMouseLeave?: MenuHoverEventHandler;
10667
10686
  }
10668
10687
 
10688
+ export declare type SubscribeToContextFn = (id: string, callback: Callback<unknown>) => void;
10689
+
10669
10690
  declare interface SvgProperties<TLength = (string & {}) | 0, TTime = string & {}> {
10670
10691
  alignmentBaseline?: Property_2.AlignmentBaseline | undefined;
10671
10692
  baselineShift?: Property_2.BaselineShift<TLength> | undefined;
@@ -10898,6 +10919,8 @@ declare type UnaryQueryObjectFilterClause = BaseQueryObjectFilterClause & {
10898
10919
 
10899
10920
  export declare type Unsubscribe = () => Promise<void>;
10900
10921
 
10922
+ export declare type UnsubscribeFromContextFn = (id: string) => void;
10923
+
10901
10924
  export declare type UserProfile = {
10902
10925
  firstName: string;
10903
10926
  lastName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octostar/platform-types",
3
- "version": "0.0.2-alpha.0",
3
+ "version": "0.0.4-alpha.0",
4
4
  "description": "Types for the API exposed by Octostar platform to third parties",
5
5
  "keywords": [
6
6
  "octostar",
@@ -40,5 +40,5 @@
40
40
  "publishConfig": {
41
41
  "access": "public"
42
42
  },
43
- "gitHead": "3c66984cab2d4035b09eec776c871937a5ec8b18"
43
+ "gitHead": "d095564c26cc5c917a74b6f42c9c0d83a12c16a3"
44
44
  }