@octostar/platform-types 0.5.30 → 0.5.34
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.
- package/dist/client.d.ts +12 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/desktop.d.ts +90 -6
- package/dist/desktop.d.ts.map +1 -1
- package/dist/desktop.js +1 -0
- package/dist/desktop.js.map +1 -1
- package/dist/docs/assets/navigation.js +1 -1
- package/dist/docs/assets/search.js +1 -1
- package/dist/docs/enums/ProcessingStatusCode.html +16 -16
- package/dist/docs/enums/SortOrder.html +3 -3
- package/dist/docs/enums/WorkspacePermissionValue.html +3 -3
- package/dist/docs/functions/isWorkspaceFileItem.html +1 -1
- package/dist/docs/hierarchy.html +1 -1
- package/dist/docs/index.html +2 -2
- package/dist/docs/interfaces/AIClient.html +4 -4
- package/dist/docs/interfaces/ActionContext.html +4 -4
- package/dist/docs/interfaces/BinaryObjectFilterClause.html +3 -3
- package/dist/docs/interfaces/ChartDataResponseResult.html +5 -5
- package/dist/docs/interfaces/ChatMessage.html +6 -6
- package/dist/docs/interfaces/Colorful.html +3 -3
- package/dist/docs/interfaces/Concept.html +12 -12
- package/dist/docs/interfaces/DeleteResponse.html +2 -2
- package/dist/docs/interfaces/Desktop.html +121 -105
- package/dist/docs/interfaces/DesktopActionContext.html +7 -7
- package/dist/docs/interfaces/DesktopSettings.html +9 -6
- package/dist/docs/interfaces/DeveloperSettings.html +6 -0
- package/dist/docs/interfaces/DownloadOptions.html +2 -2
- package/dist/docs/interfaces/EntityUiState.html +2 -2
- package/dist/docs/interfaces/FetchOptions.html +4 -4
- package/dist/docs/interfaces/FileListResponse.html +2 -2
- package/dist/docs/interfaces/FilesAPIClient.html +12 -12
- package/dist/docs/interfaces/GetAttachmentOptions.html +5 -5
- package/dist/docs/interfaces/IDataTransfer.html +11 -11
- package/dist/docs/interfaces/IndexSearchHitSource.html +3 -3
- package/dist/docs/interfaces/Inheritance.html +5 -5
- package/dist/docs/interfaces/LiveContext.html +11 -11
- package/dist/docs/interfaces/MoveOptions.html +2 -2
- package/dist/docs/interfaces/MoveResponse.html +70 -9
- package/dist/docs/interfaces/NativeFilterColumn.html +2 -2
- package/dist/docs/interfaces/NativeFilterScope.html +2 -2
- package/dist/docs/interfaces/NativeFilterTarget.html +2 -2
- package/dist/docs/interfaces/Ontology.html +28 -26
- package/dist/docs/interfaces/OsAPIClient.html +15 -7
- package/dist/docs/interfaces/ProcessingStatus.html +7 -7
- package/dist/docs/interfaces/Property.html +5 -5
- package/dist/docs/interfaces/RecordData.html +5 -5
- package/dist/docs/interfaces/RecordProvider.html +6 -6
- package/dist/docs/interfaces/RefObject.html +3 -3
- package/dist/docs/interfaces/Relationship.html +20 -20
- package/dist/docs/interfaces/S3Headers.html +2 -2
- package/dist/docs/interfaces/S3UploadResponse.html +2 -2
- package/dist/docs/interfaces/SavedDatasource.html +2 -2
- package/dist/docs/interfaces/SavedSearchAPIInterface.html +2 -2
- package/dist/docs/interfaces/SavedSearchContent.html +2 -2
- package/dist/docs/interfaces/SavedSetContent.html +2 -2
- package/dist/docs/interfaces/SearchOptions.html +3 -3
- package/dist/docs/interfaces/SearchProps.html +10 -10
- package/dist/docs/interfaces/SearchXperienceModalProps.html +9 -9
- package/dist/docs/interfaces/SearchXperienceProps.html +7 -7
- package/dist/docs/interfaces/SemanticBindingProps.html +5 -5
- package/dist/docs/interfaces/StreamJsonOptions.html +5 -5
- package/dist/docs/interfaces/StreamTextOptions.html +5 -5
- package/dist/docs/interfaces/StylerContext.html +11 -11
- package/dist/docs/interfaces/TagAttributes.html +7 -7
- package/dist/docs/interfaces/UiStateManager.html +2 -2
- package/dist/docs/interfaces/UnaryObjectFilterClause.html +3 -3
- package/dist/docs/interfaces/UnzipOptions.html +2 -2
- package/dist/docs/interfaces/UploadOptions.html +2 -2
- package/dist/docs/interfaces/WorkspaceChangeEmitter.html +5 -5
- package/dist/docs/interfaces/WorkspaceItemConfig.html +6 -6
- package/dist/docs/interfaces/WorkspaceRecordIdentifier.html +5 -5
- package/dist/docs/modules.html +6 -3
- package/dist/docs/types/ActionHandler.html +2 -2
- package/dist/docs/types/AddCommentParams.html +2 -2
- package/dist/docs/types/AddListener.html +2 -2
- package/dist/docs/types/ApiErrorResult.html +2 -2
- package/dist/docs/types/ApiResult.html +2 -2
- package/dist/docs/types/ApiSuccessResult.html +2 -2
- package/dist/docs/types/App.html +2 -2
- package/dist/docs/types/AppRegistry.html +2 -2
- package/dist/docs/types/AppServiceCallOptions.html +2 -2
- package/dist/docs/types/AppServiceCallProps.html +2 -2
- package/dist/docs/types/AsyncFilter.html +2 -2
- package/dist/docs/types/AttachmentResponseType.html +2 -2
- package/dist/docs/types/AttachmentType.html +2 -2
- package/dist/docs/types/Behaviour.html +2 -2
- package/dist/docs/types/BinaryOperator.html +2 -2
- package/dist/docs/types/Callback.html +2 -2
- package/dist/docs/types/ChatApiResponse.html +1 -1
- package/dist/docs/types/ChatModel.html +2 -2
- package/dist/docs/types/CommentWorkspaceItem.html +2 -2
- package/dist/docs/types/CommonOptions.html +1 -1
- package/dist/docs/types/Comparator.html +2 -2
- package/dist/docs/types/ConceptFilter.html +2 -2
- package/dist/docs/types/ConceptMap.html +2 -2
- package/dist/docs/types/ConceptName.html +1 -1
- package/dist/docs/types/ConceptWithParents.html +2 -2
- package/dist/docs/types/ConnectedEntity.html +2 -2
- package/dist/docs/types/ContextMenuGroup.html +2 -2
- package/dist/docs/types/ContextMenuLabels.html +2 -2
- package/dist/docs/types/ContextMenuOptions.html +2 -2
- package/dist/docs/types/ContextMenuParams.html +2 -2
- package/dist/docs/types/ContextMenuRequest.html +2 -2
- package/dist/docs/types/CopyOptions.html +2 -2
- package/dist/docs/types/CreateEntityFormProps.html +2 -2
- package/dist/docs/types/CreateLinkChartFn.html +1 -1
- package/dist/docs/types/CreateLinkChartParams.html +1 -1
- package/dist/docs/types/CreateRelationsDialogProps.html +2 -2
- package/dist/docs/types/CustomEventListener.html +2 -2
- package/dist/docs/types/CustomTemplate.html +2 -2
- package/dist/docs/types/CustomTemplateIframeProps.html +2 -2
- package/dist/docs/types/DataContextType.html +2 -2
- package/dist/docs/types/DataMask.html +1 -1
- package/dist/docs/types/DefaultLiveContextData.html +1 -1
- package/dist/docs/types/DesktopAction.html +2 -2
- package/dist/docs/types/DesktopActionFilter.html +2 -2
- package/dist/docs/types/DesktopActionMenuItem.html +2 -2
- package/dist/docs/types/DesktopActionMenuItemGroup.html +2 -2
- package/dist/docs/types/DesktopActionOptions.html +2 -2
- package/dist/docs/types/DesktopOpenParams.html +2 -2
- package/dist/docs/types/DesktopStylerContext.html +2 -2
- package/dist/docs/types/DraftWorkspaceItem.html +2 -2
- package/dist/docs/types/DragEndParams.html +2 -2
- package/dist/docs/types/DragStartParams.html +2 -2
- package/dist/docs/types/DropZoneRequestFn.html +1 -1
- package/dist/docs/types/DropZoneRequestResult.html +1 -1
- package/dist/docs/types/EConnection.html +2 -2
- package/dist/docs/types/EdgeSpec.html +2 -2
- package/dist/docs/types/EmitEventTransformDefinition.html +2 -2
- package/dist/docs/types/Entity.html +2 -2
- package/dist/docs/types/EntityBase.html +2 -2
- package/dist/docs/types/EntityEdge.html +2 -2
- package/dist/docs/types/EntityOTM.html +2 -2
- package/dist/docs/types/EntityPasteContext.html +2 -2
- package/dist/docs/types/EvalContext.html +1 -1
- package/dist/docs/types/EventContextType.html +2 -2
- package/dist/docs/types/EventEmitterType.html +2 -2
- package/dist/docs/types/EventName.html +2 -2
- package/dist/docs/types/EventProducer.html +2 -2
- package/dist/docs/types/EventPublisher.html +2 -2
- package/dist/docs/types/EventSubscriber.html +2 -2
- package/dist/docs/types/EventUnsubscriber.html +2 -2
- package/dist/docs/types/ExportOptions.html +2 -2
- package/dist/docs/types/ExtractEntitiesOptions.html +2 -2
- package/dist/docs/types/ExtrasApi.html +1 -1
- package/dist/docs/types/FetchEntityOptions.html +2 -2
- package/dist/docs/types/FileCode.html +2 -2
- package/dist/docs/types/FileTreeOptions.html +2 -2
- package/dist/docs/types/Filter.html +1 -1
- package/dist/docs/types/FilterDefinition.html +2 -2
- package/dist/docs/types/FilterDefinitions.html +2 -2
- package/dist/docs/types/FilterName.html +2 -2
- package/dist/docs/types/FilterQuery.html +2 -2
- package/dist/docs/types/FilterReference.html +2 -2
- package/dist/docs/types/FilterState.html +1 -1
- package/dist/docs/types/FilterValue.html +2 -2
- package/dist/docs/types/FocusListItem.html +2 -2
- package/dist/docs/types/FolderPasteOptions.html +2 -2
- package/dist/docs/types/GetSystemSettingResponse.html +1 -1
- package/dist/docs/types/GraphDataSpec.html +1 -1
- package/dist/docs/types/GraphSpec.html +2 -2
- package/dist/docs/types/HttpTransformDefinition.html +2 -2
- package/dist/docs/types/Icon.html +2 -2
- package/dist/docs/types/IconProps.html +2 -2
- package/dist/docs/types/IframeTransformDefinition.html +3 -2
- package/dist/docs/types/ImageInfo.html +2 -2
- package/dist/docs/types/ImportZipOptions.html +2 -2
- package/dist/docs/types/InlineCode.html +2 -2
- package/dist/docs/types/JavascriptFileStylerDefinition.html +2 -2
- package/dist/docs/types/JavascriptFileTransformDefinition.html +2 -2
- package/dist/docs/types/JavascriptFilterDefinition.html +2 -2
- package/dist/docs/types/JavascriptInlineStylerDefinition.html +2 -2
- package/dist/docs/types/JavascriptInlineTransformDefinition.html +2 -2
- package/dist/docs/types/JavascriptType.html +2 -2
- package/dist/docs/types/JobManifest.html +2 -2
- package/dist/docs/types/KnownCounts.html +2 -2
- package/dist/docs/types/ListByParentFolder.html +1 -1
- package/dist/docs/types/ListByPath.html +1 -1
- package/dist/docs/types/ListFolderOptions.html +1 -1
- package/dist/docs/types/LiveContextAPISetParams.html +1 -1
- package/dist/docs/types/LiveContextListener.html +1 -1
- package/dist/docs/types/ManifestSecrets.html +1 -1
- package/dist/docs/types/MkdirResponse.html +1 -1
- package/dist/docs/types/ModalTemplateProps.html +2 -2
- package/dist/docs/types/NamedEntityGroup.html +2 -2
- package/dist/docs/types/NunjucksFileTransformDefinition.html +2 -2
- package/dist/docs/types/NunjucksInlineTransformDefinition.html +2 -2
- package/dist/docs/types/NunjucksType.html +2 -2
- package/dist/docs/types/OS_CONFIRM_MODAL_RESPONSE.html +2 -2
- package/dist/docs/types/OntologyTags.html +2 -2
- package/dist/docs/types/OsAuditFields.html +2 -2
- package/dist/docs/types/OsConfirmProps.html +2 -2
- package/dist/docs/types/OsNotification.html +3 -2
- package/dist/docs/types/OsProgress.html +2 -2
- package/dist/docs/types/OsTag.html +2 -2
- package/dist/docs/types/OsWorkspaceEntity.html +2 -2
- package/dist/docs/types/OsWorkspacePickerProps.html +2 -2
- package/dist/docs/types/PasteContextOptions.html +2 -2
- package/dist/docs/types/Permission.html +2 -2
- package/dist/docs/types/Point.html +2 -2
- package/dist/docs/types/PromptOptions.html +2 -2
- package/dist/docs/types/ProvidedFilterDefinition.html +2 -2
- package/dist/docs/types/ProvidedTransformDefinition.html +2 -2
- package/dist/docs/types/Query.html +2 -2
- package/dist/docs/types/QueryBatchResult.html +2 -2
- package/dist/docs/types/QueryErrorResult.html +2 -2
- package/dist/docs/types/QueryExecutor.html +2 -2
- package/dist/docs/types/QueryObjectFilterClause.html +2 -2
- package/dist/docs/types/QueryResponse.html +2 -2
- package/dist/docs/types/QueryResult.html +2 -2
- package/dist/docs/types/QuerySuccessResult.html +2 -2
- package/dist/docs/types/ReactCssProperties.html +2 -2
- package/dist/docs/types/ReactNode.html +2 -2
- package/dist/docs/types/ReactRef.html +2 -2
- package/dist/docs/types/ReasonedBoolean.html +2 -2
- package/dist/docs/types/RecordFetchOptions.html +1 -1
- package/dist/docs/types/RefCallback.html +2 -2
- package/dist/docs/types/RelationshipCountResult.html +2 -2
- package/dist/docs/types/RemoteAppApi.html +1 -1
- package/dist/docs/types/RenameTabProps.html +3 -0
- package/dist/docs/types/SaveAsModalProps.html +4 -2
- package/dist/docs/types/SaveFileOptions.html +2 -2
- package/dist/docs/types/SaveOptions.html +2 -2
- package/dist/docs/types/SavedTemplate.html +2 -2
- package/dist/docs/types/SearchFilter.html +2 -2
- package/dist/docs/types/SemanticBinding.html +2 -2
- package/dist/docs/types/SemanticBindingType.html +2 -2
- package/dist/docs/types/SemanticBindings.html +2 -2
- package/dist/docs/types/SemanticallyBoundApp.html +2 -2
- package/dist/docs/types/SemanticallyBoundFilterDefinition.html +2 -2
- package/dist/docs/types/SendQueryOptions.html +2 -2
- package/dist/docs/types/ServiceDefinition.html +2 -2
- package/dist/docs/types/ServiceDefinitions.html +2 -2
- package/dist/docs/types/ServiceRole.html +2 -2
- package/dist/docs/types/SetTransformResultFn.html +1 -1
- package/dist/docs/types/SetsOptions.html +8 -2
- package/dist/docs/types/ShowOntology.html +2 -2
- package/dist/docs/types/ShowTabProps.html +2 -2
- package/dist/docs/types/Styler.html +2 -2
- package/dist/docs/types/StylerConfig.html +2 -2
- package/dist/docs/types/StylerDefinition.html +2 -2
- package/dist/docs/types/StylerDefinitions.html +2 -2
- package/dist/docs/types/StylerOption.html +2 -2
- package/dist/docs/types/StylerProducer.html +2 -2
- package/dist/docs/types/SubscribeDragStartFn.html +1 -1
- package/dist/docs/types/SubscribeToContextFn.html +1 -1
- package/dist/docs/types/Tag.html +2 -2
- package/dist/docs/types/TagInfo.html +2 -2
- package/dist/docs/types/TagWithRelationship.html +2 -2
- package/dist/docs/types/TaskCleanupReason.html +2 -2
- package/dist/docs/types/TemplateMetadata.html +2 -2
- package/dist/docs/types/TemplateType.html +2 -2
- package/dist/docs/types/TemplateVariant.html +2 -2
- package/dist/docs/types/TransformAction.html +2 -2
- package/dist/docs/types/TransformActionContext.html +2 -2
- package/dist/docs/types/TransformDefinition.html +2 -2
- package/dist/docs/types/TransformDefinitions.html +2 -2
- package/dist/docs/types/Unsubscribe.html +2 -2
- package/dist/docs/types/UnsubscribeFn.html +1 -1
- package/dist/docs/types/UnsubscribeFromContextFn.html +1 -1
- package/dist/docs/types/UnsubscribeFromDragStartFn.html +1 -1
- package/dist/docs/types/UserProfile.html +2 -2
- package/dist/docs/types/VirtualEntity.html +2 -2
- package/dist/docs/types/Watcher.html +11 -12
- package/dist/docs/types/Whoami.html +5 -2
- package/dist/docs/types/WithProgressBarOptions.html +2 -2
- package/dist/docs/types/Workspace.html +2 -2
- package/dist/docs/types/WorkspaceConfig.html +2 -2
- package/dist/docs/types/WorkspaceFlags.html +2 -2
- package/dist/docs/types/WorkspaceIdentifier.html +2 -2
- package/dist/docs/types/WorkspaceItem.html +2 -2
- package/dist/docs/types/WorkspaceItemBase.html +2 -2
- package/dist/docs/types/WorkspaceItemDocumentFields.html +1 -1
- package/dist/docs/types/WorkspaceItemIdentifier.html +2 -2
- package/dist/docs/types/WorkspaceItemModel.html +2 -2
- package/dist/docs/types/WorkspaceItemTitleProps.html +2 -2
- package/dist/docs/types/WorkspaceItems.html +2 -2
- package/dist/docs/types/WorkspacePermission.html +2 -2
- package/dist/docs/types/WorkspaceRecord.html +2 -2
- package/dist/docs/types/WorkspaceRecordInfo.html +2 -2
- package/dist/docs/types/WorkspaceRecordWithRelationships.html +2 -2
- package/dist/docs/types/WorkspaceRecords.html +2 -2
- package/dist/docs/types/WorkspaceRelationship.html +2 -2
- package/dist/docs/types/WorkspaceSettings.html +2 -2
- package/dist/docs/types/trigger.html +2 -2
- package/dist/docs/types/uuid.html +2 -2
- package/dist/docs/variables/ORIGINAL_OS_PARENT_FOLDER.html +1 -0
- package/dist/docs/variables/OS_CONFIRM_MODAL_CANCEL.html +2 -2
- package/dist/docs/variables/OS_CONFIRM_MODAL_NO.html +2 -2
- package/dist/docs/variables/OS_CONFIRM_MODAL_YES.html +2 -2
- package/dist/docs/variables/SAVED_SEARCH_MESSAGE_TYPES.html +1 -1
- package/dist/docs/variables/SAVED_SEARCH_PREFIX.html +1 -1
- package/dist/files.d.ts +3 -3
- package/dist/files.d.ts.map +1 -1
- package/dist/jobManifestTypes.d.ts +2 -0
- package/dist/jobManifestTypes.d.ts.map +1 -1
- package/dist/ontology.d.ts +8 -4
- package/dist/ontology.d.ts.map +1 -1
- package/dist/platform-types.d.ts +115 -10
- package/package.json +4 -4
package/dist/platform-types.d.ts
CHANGED
|
@@ -761,6 +761,10 @@ export declare interface Desktop extends DesktopSettings, WorkspaceChangeEmitter
|
|
|
761
761
|
* Copies an item.
|
|
762
762
|
*/
|
|
763
763
|
copy: (source: WorkspaceItem, target: WorkspaceItem, options?: CopyOptions) => Promise<WorkspaceItem[]>;
|
|
764
|
+
/**
|
|
765
|
+
* Lists the workspaces currently open on the desktop.
|
|
766
|
+
*/
|
|
767
|
+
listOpenWorkspaces: () => Promise<WorkspaceItem[]>;
|
|
764
768
|
/**
|
|
765
769
|
* Lists all workspaces with optional permissions.
|
|
766
770
|
*/
|
|
@@ -775,6 +779,10 @@ export declare interface Desktop extends DesktopSettings, WorkspaceChangeEmitter
|
|
|
775
779
|
* @returns a promise that resolves to the current ontology
|
|
776
780
|
*/
|
|
777
781
|
getOntology: () => Promise<Ontology>;
|
|
782
|
+
/**
|
|
783
|
+
* Checks if an entity is a set.
|
|
784
|
+
*/
|
|
785
|
+
checkIsSet: (entity: WorkspaceItem) => Promise<boolean>;
|
|
778
786
|
/**
|
|
779
787
|
* Fetches an attachment based on the provided workspace identifier and path or ID.
|
|
780
788
|
*
|
|
@@ -861,6 +869,12 @@ export declare interface Desktop extends DesktopSettings, WorkspaceChangeEmitter
|
|
|
861
869
|
* Gets the named app if it is on the desktop and in a running state.
|
|
862
870
|
*/
|
|
863
871
|
getApp: (name: string) => Promise<WorkspaceItem | undefined>;
|
|
872
|
+
/**
|
|
873
|
+
* Gets the context of an app by its octostar channel id.
|
|
874
|
+
* @param octostarChannelId the id assigned to the app by the octostar platform
|
|
875
|
+
* @returns the context if the app is found otherwise undefined
|
|
876
|
+
*/
|
|
877
|
+
getAppContext: (octostarChannelId: string) => Promise<Record<string, any>>;
|
|
864
878
|
/**
|
|
865
879
|
* Query workspace items by content type directly from the database.
|
|
866
880
|
* This ensures all items are retrieved, not just those loaded in memory.
|
|
@@ -878,6 +892,9 @@ export declare interface Desktop extends DesktopSettings, WorkspaceChangeEmitter
|
|
|
878
892
|
* Connects two entities with a relationship in a workspace.
|
|
879
893
|
*/
|
|
880
894
|
connect: (relationship: Relationship | string, from: Entity, to: Entity, os_workspace?: string) => Promise<WorkspaceItem>;
|
|
895
|
+
moveOrRename: (item: WorkspaceItem & {
|
|
896
|
+
[ORIGINAL_OS_PARENT_FOLDER]?: string;
|
|
897
|
+
}) => Promise<MoveResponse>;
|
|
881
898
|
/**
|
|
882
899
|
* Saves an item with optional save options.
|
|
883
900
|
*/
|
|
@@ -949,6 +966,10 @@ export declare interface Desktop extends DesktopSettings, WorkspaceChangeEmitter
|
|
|
949
966
|
* Shows a tab with given properties.
|
|
950
967
|
*/
|
|
951
968
|
showTab: (props: ShowTabProps) => Promise<void>;
|
|
969
|
+
/**
|
|
970
|
+
* Renames a tab by its id.
|
|
971
|
+
*/
|
|
972
|
+
renameTab: (tabId: string, newName: string) => Promise<void>;
|
|
952
973
|
/**
|
|
953
974
|
* Closes a tab with given properties.
|
|
954
975
|
*/
|
|
@@ -1002,13 +1023,17 @@ export declare interface Desktop extends DesktopSettings, WorkspaceChangeEmitter
|
|
|
1002
1023
|
*/
|
|
1003
1024
|
showSaveAsModal: (props: SaveAsModalProps) => Promise<WorkspaceItem | undefined>;
|
|
1004
1025
|
/**
|
|
1005
|
-
*
|
|
1026
|
+
* @deprecated This method is deprecated and will be removed in a future version. Use {@link createSetsFromItems} or {@link expandSet} instead.
|
|
1006
1027
|
*/
|
|
1007
1028
|
getPasteContext: (options: PasteContextOptions) => Promise<Entity[]>;
|
|
1008
1029
|
/**
|
|
1009
1030
|
* Expands a set with optional options.
|
|
1010
1031
|
*/
|
|
1011
1032
|
expandSet: (options: SetsOptions) => Promise<WorkspaceItem[]>;
|
|
1033
|
+
/**
|
|
1034
|
+
* Converts items to sets.
|
|
1035
|
+
*/
|
|
1036
|
+
createSetsFromItems: (items: WorkspaceItem[]) => Promise<WorkspaceItem[]>;
|
|
1012
1037
|
/**
|
|
1013
1038
|
* Gets the open search query for a set with optional options.
|
|
1014
1039
|
*/
|
|
@@ -1302,6 +1327,11 @@ export declare interface DesktopSettings {
|
|
|
1302
1327
|
* Listener for changes in open workspace IDs list (list gets updated on eg close / open event)
|
|
1303
1328
|
*/
|
|
1304
1329
|
onOpenWorkspaceIdsChanged: AddListener<string[]>;
|
|
1330
|
+
/**
|
|
1331
|
+
* Gets developer settings for micro-frontends.
|
|
1332
|
+
* Returns settings like API server URL overrides.
|
|
1333
|
+
*/
|
|
1334
|
+
getDeveloperSettings: () => Promise<DeveloperSettings>;
|
|
1305
1335
|
}
|
|
1306
1336
|
|
|
1307
1337
|
/**
|
|
@@ -1319,6 +1349,21 @@ export declare type DesktopStylerContext = {
|
|
|
1319
1349
|
selected?: GraphSpec;
|
|
1320
1350
|
};
|
|
1321
1351
|
|
|
1352
|
+
/**
|
|
1353
|
+
* Developer settings exposed to micro-frontends.
|
|
1354
|
+
* @beta
|
|
1355
|
+
*/
|
|
1356
|
+
export declare interface DeveloperSettings {
|
|
1357
|
+
/**
|
|
1358
|
+
* Override URL for the API server.
|
|
1359
|
+
*/
|
|
1360
|
+
octostarAPIServer?: string;
|
|
1361
|
+
/**
|
|
1362
|
+
* Override URL for the search app.
|
|
1363
|
+
*/
|
|
1364
|
+
searchAppUrl?: string;
|
|
1365
|
+
}
|
|
1366
|
+
|
|
1322
1367
|
export declare interface DownloadOptions {
|
|
1323
1368
|
content_type?: string;
|
|
1324
1369
|
content_disposition?: 'inline' | 'attachment';
|
|
@@ -2053,6 +2098,8 @@ export declare type IframeTransformDefinition = {
|
|
|
2053
2098
|
icon: string;
|
|
2054
2099
|
/** Whether to reuse the tab for the iframe. */
|
|
2055
2100
|
reuse_tab?: boolean;
|
|
2101
|
+
/** The template string to get the tab name. Supports Nunjucks templates (e.g., "{{ record.entity_label }}"). */
|
|
2102
|
+
tab_name?: string;
|
|
2056
2103
|
};
|
|
2057
2104
|
|
|
2058
2105
|
/**
|
|
@@ -2528,8 +2575,8 @@ export declare interface MoveOptions {
|
|
|
2528
2575
|
force?: boolean;
|
|
2529
2576
|
}
|
|
2530
2577
|
|
|
2531
|
-
export declare interface MoveResponse extends
|
|
2532
|
-
new_path
|
|
2578
|
+
export declare interface MoveResponse extends WorkspaceItem {
|
|
2579
|
+
new_path?: string;
|
|
2533
2580
|
}
|
|
2534
2581
|
|
|
2535
2582
|
/**
|
|
@@ -2746,10 +2793,14 @@ export declare interface Ontology {
|
|
|
2746
2793
|
getLocalEntityEdges: (entities: Entity[]) => Promise<EntityEdge[]>;
|
|
2747
2794
|
/**
|
|
2748
2795
|
* Discovers edges on adding nodes.
|
|
2749
|
-
* @param
|
|
2750
|
-
* @
|
|
2796
|
+
* @param newEntities - The new entities being added.
|
|
2797
|
+
* @param oldEntities - The existing entities already in the graph.
|
|
2798
|
+
* @returns A promise that resolves to an object containing entity edges and enriched entities (with labels).
|
|
2751
2799
|
*/
|
|
2752
|
-
discoverEdgesOnAddingNodes: (newEntities: Entity[], oldEntities: Entity[]) => Promise<
|
|
2800
|
+
discoverEdgesOnAddingNodes: (newEntities: Entity[], oldEntities: Entity[]) => Promise<{
|
|
2801
|
+
edges: EntityEdge[];
|
|
2802
|
+
enrichedEntities: Entity[];
|
|
2803
|
+
}>;
|
|
2753
2804
|
/**
|
|
2754
2805
|
* Subscribes to changes for a given entity.
|
|
2755
2806
|
* @param entity - The entity to subscribe to.
|
|
@@ -2788,6 +2839,8 @@ export declare type OntologyTags = {
|
|
|
2788
2839
|
tag_value: string;
|
|
2789
2840
|
};
|
|
2790
2841
|
|
|
2842
|
+
export declare const ORIGINAL_OS_PARENT_FOLDER = "#original_os_parent_folder";
|
|
2843
|
+
|
|
2791
2844
|
/**
|
|
2792
2845
|
* Option to get out of the confirmation modal.
|
|
2793
2846
|
* @beta
|
|
@@ -2841,6 +2894,18 @@ export declare interface OsAPIClient {
|
|
|
2841
2894
|
* @returns A promise that resolves when the streaming is complete.
|
|
2842
2895
|
*/
|
|
2843
2896
|
streamJson<T>(options: StreamJsonOptions<T>): Promise<void>;
|
|
2897
|
+
/**
|
|
2898
|
+
* Gets the configured base URL
|
|
2899
|
+
* @returns A promise that resoves to the api base URL
|
|
2900
|
+
*/
|
|
2901
|
+
getBaseUrl(): Promise<string>;
|
|
2902
|
+
/**
|
|
2903
|
+
* Fetch method that matches the standard fetch API.
|
|
2904
|
+
* @param input - The resource to fetch (RequestInfo | URL).
|
|
2905
|
+
* @param init - Optional request initialization options.
|
|
2906
|
+
* @returns A promise that resolves with the Response object.
|
|
2907
|
+
*/
|
|
2908
|
+
fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
|
|
2844
2909
|
}
|
|
2845
2910
|
|
|
2846
2911
|
/**
|
|
@@ -2958,6 +3023,10 @@ export declare type OsNotification = string | {
|
|
|
2958
3023
|
* Whether the notification should persist until manually closed.
|
|
2959
3024
|
*/
|
|
2960
3025
|
persistent?: boolean;
|
|
3026
|
+
/**
|
|
3027
|
+
* Test identifier to be applied as data-testid attribute for E2E testing.
|
|
3028
|
+
*/
|
|
3029
|
+
data_test_id?: string;
|
|
2961
3030
|
};
|
|
2962
3031
|
|
|
2963
3032
|
/**
|
|
@@ -3455,6 +3524,17 @@ export declare type RemoteAppApi = {
|
|
|
3455
3524
|
setTransformResult: SetTransformResultFn;
|
|
3456
3525
|
};
|
|
3457
3526
|
|
|
3527
|
+
export declare type RenameTabProps = {
|
|
3528
|
+
/**
|
|
3529
|
+
* ID of the tab.
|
|
3530
|
+
*/
|
|
3531
|
+
tabId: string;
|
|
3532
|
+
/**
|
|
3533
|
+
* New name for the tab.
|
|
3534
|
+
*/
|
|
3535
|
+
newName: string;
|
|
3536
|
+
};
|
|
3537
|
+
|
|
3458
3538
|
declare type RootOption = {
|
|
3459
3539
|
path?: never;
|
|
3460
3540
|
os_parent_folder?: never;
|
|
@@ -3491,6 +3571,14 @@ export declare type SaveAsModalProps = {
|
|
|
3491
3571
|
* Default path for the item.
|
|
3492
3572
|
*/
|
|
3493
3573
|
defaultPath?: string;
|
|
3574
|
+
/**
|
|
3575
|
+
* Exclude workspaces from the modal.
|
|
3576
|
+
*/
|
|
3577
|
+
excludeWorkspaces?: string[];
|
|
3578
|
+
/**
|
|
3579
|
+
* Omit the filename from the modal.
|
|
3580
|
+
*/
|
|
3581
|
+
omitFilename?: boolean;
|
|
3494
3582
|
};
|
|
3495
3583
|
|
|
3496
3584
|
export declare const SAVED_SEARCH_MESSAGE_TYPES: Readonly<{
|
|
@@ -3836,6 +3924,18 @@ export declare type SetsOptions = {
|
|
|
3836
3924
|
* OS exact concept filter for the context.
|
|
3837
3925
|
*/
|
|
3838
3926
|
os_exact_concept_filter?: string[];
|
|
3927
|
+
/**
|
|
3928
|
+
* When limit1 and limit2 are provided,
|
|
3929
|
+
* the user will be prompted to choose the number of records to add
|
|
3930
|
+
* if the count is greater than limit1.
|
|
3931
|
+
*/
|
|
3932
|
+
limit1?: number;
|
|
3933
|
+
/**
|
|
3934
|
+
* When limit1 and limit2 are provided,
|
|
3935
|
+
* the user will be prompted to choose the number of records to add
|
|
3936
|
+
* if the count is greater than limit1.
|
|
3937
|
+
*/
|
|
3938
|
+
limit2?: number;
|
|
3839
3939
|
};
|
|
3840
3940
|
|
|
3841
3941
|
export declare type SetTransformResultFn = (args: any[]) => Promise<void>;
|
|
@@ -4260,10 +4360,6 @@ export declare type VirtualEntity = Entity & {
|
|
|
4260
4360
|
'#virtual': true;
|
|
4261
4361
|
};
|
|
4262
4362
|
|
|
4263
|
-
/**
|
|
4264
|
-
* Represents a watcher.
|
|
4265
|
-
* @beta
|
|
4266
|
-
*/
|
|
4267
4363
|
export declare type Watcher = {
|
|
4268
4364
|
/**
|
|
4269
4365
|
* Application ID.
|
|
@@ -4336,6 +4432,15 @@ export declare type Whoami = {
|
|
|
4336
4432
|
* Whether the user is a superuser (having the ADMIN_ALL_WORKSPACES username or role)
|
|
4337
4433
|
*/
|
|
4338
4434
|
is_superuser: boolean;
|
|
4435
|
+
/**
|
|
4436
|
+
* Seconds until frontend should call whoami again to keep session alive.
|
|
4437
|
+
* Null for legacy tokens without session management.
|
|
4438
|
+
*/
|
|
4439
|
+
refresh_in_seconds: number | null;
|
|
4440
|
+
/**
|
|
4441
|
+
* Unix timestamp when session hits hard cap (absolute limit). Null for legacy tokens.
|
|
4442
|
+
*/
|
|
4443
|
+
session_expires_at: number | null;
|
|
4339
4444
|
};
|
|
4340
4445
|
|
|
4341
4446
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octostar/platform-types",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.34",
|
|
4
4
|
"description": "Types for the API exposed by Octostar platform to third parties",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"octostar",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
],
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "",
|
|
11
|
+
"url": "https://github.com/Octostarco/octostar-frontend.git",
|
|
12
12
|
"directory": "packages/octostar-platform-types"
|
|
13
13
|
},
|
|
14
14
|
"license": "MIT",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"rimraf": "^5.0.5",
|
|
42
42
|
"typedoc": "^0.26.5",
|
|
43
43
|
"typescript": "~5.7.2",
|
|
44
|
-
"@repo/
|
|
45
|
-
"@repo/
|
|
44
|
+
"@repo/typescript-config": "0.0.0",
|
|
45
|
+
"@repo/eslint-config": "0.0.0"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"antd": "^5.27.2",
|