@octostar/platform-types 0.2.1 → 0.2.3
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/docs/assets/navigation.js +1 -1
- package/dist/docs/assets/search.js +1 -1
- package/dist/docs/enums/SortOrder.html +3 -3
- package/dist/docs/enums/WorkspacePermissionValue.html +3 -3
- package/dist/docs/hierarchy.html +1 -1
- package/dist/docs/index.html +2 -2
- package/dist/docs/interfaces/ActionContext.html +4 -4
- package/dist/docs/interfaces/Colorful.html +3 -3
- package/dist/docs/interfaces/Concept.html +12 -12
- package/dist/docs/interfaces/Desktop.html +82 -80
- package/dist/docs/interfaces/DesktopActionContext.html +7 -7
- package/dist/docs/interfaces/DesktopSettings.html +5 -5
- package/dist/docs/interfaces/GetAttachmentOptions.html +5 -5
- package/dist/docs/interfaces/IDataTransfer.html +11 -11
- package/dist/docs/interfaces/Inheritance.html +5 -5
- package/dist/docs/interfaces/Ontology.html +20 -20
- package/dist/docs/interfaces/Property.html +5 -5
- package/dist/docs/interfaces/QueryObjectFilterClause.html +3 -3
- 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/SearchProps.html +4 -4
- package/dist/docs/interfaces/SearchXperienceModalProps.html +9 -9
- package/dist/docs/interfaces/SearchXperienceProps.html +7 -7
- package/dist/docs/interfaces/SemanticBindingProps.html +9 -0
- package/dist/docs/interfaces/StylerContext.html +11 -11
- package/dist/docs/interfaces/TagAttributes.html +7 -7
- 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 +9 -2
- 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/CommentWorkspaceItem.html +2 -2
- package/dist/docs/types/Comparator.html +2 -2
- package/dist/docs/types/ConceptFilter.html +3 -3
- package/dist/docs/types/ConceptMap.html +2 -2
- package/dist/docs/types/ConceptName.html +1 -0
- 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/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 +12 -0
- 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 +3 -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/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/EntityEdge.html +2 -2
- package/dist/docs/types/EntityOTM.html +2 -2
- package/dist/docs/types/EntityPasteContext.html +2 -2
- 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/FileCode.html +2 -2
- package/dist/docs/types/FileTreeOptions.html +2 -2
- 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/FilterReference.html +2 -2
- package/dist/docs/types/FocusListItem.html +2 -2
- package/dist/docs/types/FolderPasteOptions.html +2 -2
- package/dist/docs/types/GraphDataSpec.html +1 -0
- 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 +2 -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/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 +2 -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 +4 -3
- package/dist/docs/types/Point.html +2 -2
- package/dist/docs/types/ProvidedFilterDefinition.html +2 -2
- package/dist/docs/types/ProvidedTransformDefinition.html +2 -2
- package/dist/docs/types/PythonFileStylerDefinition.html +2 -2
- package/dist/docs/types/PythonFileTransformDefinition.html +2 -2
- package/dist/docs/types/PythonFilterDefinition.html +2 -2
- package/dist/docs/types/PythonInlineStylerDefinition.html +2 -2
- package/dist/docs/types/PythonInlineTransformDefinition.html +2 -2
- package/dist/docs/types/PythonType.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/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/RefCallback.html +2 -2
- package/dist/docs/types/RelationshipCountResult.html +2 -2
- package/dist/docs/types/SaveAsModalProps.html +2 -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/SemanticBinding.html +5 -0
- package/dist/docs/types/SemanticBindingType.html +2 -2
- package/dist/docs/types/SemanticBindings.html +2 -2
- package/dist/docs/types/SemanticallyBoundApp.html +3 -0
- 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/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/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 +4 -3
- 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/UserProfile.html +2 -2
- package/dist/docs/types/Watcher.html +2 -2
- package/dist/docs/types/Whoami.html +3 -2
- package/dist/docs/types/WithProgressBarOptions.html +2 -2
- package/dist/docs/types/Workspace.html +3 -3
- package/dist/docs/types/WorkspaceFlags.html +2 -0
- 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/WorkspaceItemIdentifier.html +2 -2
- package/dist/docs/types/WorkspaceItemModel.html +7 -4
- 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/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/platform-types.d.ts +127 -8
- package/lib/action.d.ts +130 -0
- package/lib/action.d.ts.map +1 -0
- package/lib/action.js +2 -0
- package/lib/action.js.map +1 -0
- package/lib/api.d.ts +30 -0
- package/lib/api.d.ts.map +1 -0
- package/lib/api.js +2 -0
- package/lib/api.js.map +1 -0
- package/lib/app.d.ts +65 -0
- package/lib/app.d.ts.map +1 -0
- package/lib/app.js +2 -0
- package/lib/app.js.map +1 -0
- package/lib/behaviour.d.ts +45 -0
- package/lib/behaviour.d.ts.map +1 -0
- package/lib/behaviour.js +14 -0
- package/lib/behaviour.js.map +1 -0
- package/lib/callback.d.ts +22 -0
- package/lib/callback.d.ts.map +1 -0
- package/lib/callback.js +2 -0
- package/lib/callback.js.map +1 -0
- package/lib/desktop.d.ts +1112 -0
- package/lib/desktop.d.ts.map +1 -0
- package/lib/desktop.js +16 -0
- package/lib/desktop.js.map +1 -0
- package/lib/event.d.ts +90 -0
- package/lib/event.d.ts.map +1 -0
- package/lib/event.js +2 -0
- package/lib/event.js.map +1 -0
- package/lib/filters.d.ts +49 -0
- package/lib/filters.d.ts.map +1 -0
- package/lib/filters.js +2 -0
- package/lib/filters.js.map +1 -0
- package/lib/graph.d.ts +107 -0
- package/lib/graph.d.ts.map +1 -0
- package/lib/graph.js +2 -0
- package/lib/graph.js.map +1 -0
- package/lib/index.d.ts +21 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -0
- package/lib/jobManifestTypes.d.ts +272 -0
- package/lib/jobManifestTypes.d.ts.map +1 -0
- package/lib/jobManifestTypes.js +2 -0
- package/lib/jobManifestTypes.js.map +1 -0
- package/lib/model.d.ts +660 -0
- package/lib/model.d.ts.map +1 -0
- package/lib/model.js +11 -0
- package/lib/model.js.map +1 -0
- package/lib/ontology.d.ts +176 -0
- package/lib/ontology.d.ts.map +1 -0
- package/lib/ontology.js +2 -0
- package/lib/ontology.js.map +1 -0
- package/lib/query.d.ts +70 -0
- package/lib/query.d.ts.map +1 -0
- package/lib/query.js +2 -0
- package/lib/query.js.map +1 -0
- package/lib/react-types.d.ts +31 -0
- package/lib/react-types.d.ts.map +1 -0
- package/lib/react-types.js +2 -0
- package/lib/react-types.js.map +1 -0
- package/lib/search.d.ts +49 -0
- package/lib/search.d.ts.map +1 -0
- package/lib/search.js +2 -0
- package/lib/search.js.map +1 -0
- package/lib/semantic.d.ts +40 -0
- package/lib/semantic.d.ts.map +1 -0
- package/lib/semantic.js +2 -0
- package/lib/semantic.js.map +1 -0
- package/lib/styling.d.ts +87 -0
- package/lib/styling.d.ts.map +1 -0
- package/lib/styling.js +2 -0
- package/lib/styling.js.map +1 -0
- package/lib/templates.d.ts +110 -0
- package/lib/templates.d.ts.map +1 -0
- package/lib/templates.js +2 -0
- package/lib/templates.js.map +1 -0
- package/lib/user.d.ts +15 -0
- package/lib/user.d.ts.map +1 -0
- package/lib/user.js +2 -0
- package/lib/user.js.map +1 -0
- package/lib/workspace.d.ts +193 -0
- package/lib/workspace.d.ts.map +1 -0
- package/lib/workspace.js +12 -0
- package/lib/workspace.js.map +1 -0
- package/package.json +13 -12
package/lib/user.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @beta
|
|
3
|
+
* Type representing a user profile.
|
|
4
|
+
*/
|
|
5
|
+
export type UserProfile = {
|
|
6
|
+
/** The first name of the user. */
|
|
7
|
+
firstName: string;
|
|
8
|
+
/** The last name of the user. */
|
|
9
|
+
lastName: string;
|
|
10
|
+
/** The email address of the user. */
|
|
11
|
+
email: string;
|
|
12
|
+
/** The username of the user. */
|
|
13
|
+
username: string;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=user.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../src/user.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,kCAAkC;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,iCAAiC;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,qCAAqC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,gCAAgC;IAChC,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
package/lib/user.js
ADDED
package/lib/user.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.js","sourceRoot":"","sources":["../src/user.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import { AddListener, Callback, Unsubscribe } from './callback';
|
|
2
|
+
import { Entity, OsTag, WorkspaceItem, WorkspaceItems, WorkspaceRelationship } from './model';
|
|
3
|
+
/**
|
|
4
|
+
* @beta
|
|
5
|
+
* Type representing information about a tag.
|
|
6
|
+
*/
|
|
7
|
+
export type TagInfo = {
|
|
8
|
+
/** The tag string. */
|
|
9
|
+
tag: string;
|
|
10
|
+
/** The workspace associated with the tag. */
|
|
11
|
+
os_workspace: string;
|
|
12
|
+
/** The count of entities associated with the tag. */
|
|
13
|
+
count: number;
|
|
14
|
+
/** A sample of entities associated with the tag. */
|
|
15
|
+
sample: Entity[];
|
|
16
|
+
/** The entity representing the tag. */
|
|
17
|
+
entity: OsTag;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* @beta
|
|
21
|
+
* Type representing a tag with its associated relationship.
|
|
22
|
+
*/
|
|
23
|
+
export type TagWithRelationship = {
|
|
24
|
+
/** The workspace relationship associated with the tag. */
|
|
25
|
+
os_workspace_relationship: WorkspaceRelationship;
|
|
26
|
+
/** The tag entity. */
|
|
27
|
+
os_tag: OsTag;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @beta
|
|
31
|
+
* Type representing a permission for a workspace item.
|
|
32
|
+
*/
|
|
33
|
+
export type Permission = WorkspaceItem & {
|
|
34
|
+
/** The username associated with the permission. */
|
|
35
|
+
os_username?: string;
|
|
36
|
+
/** The permission value. */
|
|
37
|
+
os_permission: number;
|
|
38
|
+
/** The role associated with the permission. */
|
|
39
|
+
os_role?: string;
|
|
40
|
+
/** The flags associated with the permission */
|
|
41
|
+
os_flags?: number;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* @beta
|
|
45
|
+
* Enum representing the possible values for workspace permissions.
|
|
46
|
+
*/
|
|
47
|
+
export declare enum WorkspacePermissionValue {
|
|
48
|
+
None = 0,
|
|
49
|
+
Read = 1,
|
|
50
|
+
Write = 2,
|
|
51
|
+
Admin = 4
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* @beta
|
|
55
|
+
* Type representing a workspace permission.
|
|
56
|
+
*/
|
|
57
|
+
export type WorkspacePermission = {
|
|
58
|
+
/** The value of the permission. */
|
|
59
|
+
value: WorkspacePermissionValue;
|
|
60
|
+
/** The label for the permission. */
|
|
61
|
+
label: string;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @beta
|
|
66
|
+
* Type representing a workspace flags.
|
|
67
|
+
*/
|
|
68
|
+
export type WorkspaceFlags = {
|
|
69
|
+
autoOpen?: boolean;
|
|
70
|
+
isHidden?: boolean;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* @beta
|
|
74
|
+
* Type representing information about records in a workspace.
|
|
75
|
+
*/
|
|
76
|
+
export type WorkspaceRecordInfo = {
|
|
77
|
+
/** The concept associated with the records. */
|
|
78
|
+
concept: string;
|
|
79
|
+
/** The count of records. */
|
|
80
|
+
count: number;
|
|
81
|
+
/** The last updated timestamp for the records. */
|
|
82
|
+
max_last_updated: string;
|
|
83
|
+
/** The entities associated with the records. */
|
|
84
|
+
entities: Entity[];
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* @beta
|
|
88
|
+
* Type representing a collection of workspace records.
|
|
89
|
+
*/
|
|
90
|
+
export type WorkspaceRecords = {
|
|
91
|
+
[key: string]: WorkspaceRecordInfo;
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* @beta
|
|
95
|
+
* Type representing a workspace.
|
|
96
|
+
*/
|
|
97
|
+
export type Workspace = {
|
|
98
|
+
/** The workspace item. */
|
|
99
|
+
workspace: WorkspaceItem;
|
|
100
|
+
/** The items in the workspace. */
|
|
101
|
+
items: WorkspaceItems;
|
|
102
|
+
/** Optional records in the workspace. */
|
|
103
|
+
workspace_records?: WorkspaceRecords;
|
|
104
|
+
/** Optional tags in the workspace. */
|
|
105
|
+
tags?: TagInfo[];
|
|
106
|
+
/** Optional permission for the workspace. */
|
|
107
|
+
permission?: WorkspacePermission;
|
|
108
|
+
/** Whether the workspace is active. */
|
|
109
|
+
isActive?: boolean;
|
|
110
|
+
os_flags?: number;
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* @beta
|
|
114
|
+
* Type representing a UUID.
|
|
115
|
+
*/
|
|
116
|
+
export type uuid = string;
|
|
117
|
+
/**
|
|
118
|
+
* @beta
|
|
119
|
+
* Type representing a workspace identifier, which can be a UUID or a workspace item.
|
|
120
|
+
* @template T - The type of the workspace item.
|
|
121
|
+
*/
|
|
122
|
+
export type WorkspaceIdentifier<T = any> = uuid | WorkspaceItem<T>;
|
|
123
|
+
/**
|
|
124
|
+
* @beta
|
|
125
|
+
* Type representing a workspace item identifier, which is the same as a workspace identifier.
|
|
126
|
+
* @template T - The type of the workspace item.
|
|
127
|
+
*/
|
|
128
|
+
export type WorkspaceItemIdentifier<T = any> = WorkspaceIdentifier<T>;
|
|
129
|
+
/**
|
|
130
|
+
* @beta
|
|
131
|
+
* Type representing a workspace record with its relationships.
|
|
132
|
+
*/
|
|
133
|
+
export type WorkspaceRecordWithRelationships = {
|
|
134
|
+
/** The workspace item. */
|
|
135
|
+
entity: WorkspaceItem;
|
|
136
|
+
/** The name of the relationship. */
|
|
137
|
+
relationship_name?: string;
|
|
138
|
+
/** The relationships associated with the workspace record. */
|
|
139
|
+
relationships?: [WorkspaceRecordWithRelationships];
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* @beta
|
|
143
|
+
* Interface representing a workspace change emitter.
|
|
144
|
+
*/
|
|
145
|
+
export interface WorkspaceChangeEmitter {
|
|
146
|
+
/**
|
|
147
|
+
* Subscribes to changes for a given workspace.
|
|
148
|
+
* @param ws - The workspace identifier.
|
|
149
|
+
* @param callback - The callback to invoke on changes.
|
|
150
|
+
* @returns A promise that resolves to an unsubscribe function.
|
|
151
|
+
*/
|
|
152
|
+
onWorkspaceChanged: (ws: WorkspaceIdentifier, callback: Callback<Workspace>) => Promise<Unsubscribe>;
|
|
153
|
+
/**
|
|
154
|
+
* Subscribes to changes for a given workspace item.
|
|
155
|
+
* @param item - The workspace item identifier.
|
|
156
|
+
* @param callback - The callback to invoke on changes.
|
|
157
|
+
* @returns A promise that resolves to an unsubscribe function.
|
|
158
|
+
*/
|
|
159
|
+
onWorkspaceItemChanged: (item: WorkspaceItemIdentifier, callback: Callback<WorkspaceItem>) => Promise<Unsubscribe>;
|
|
160
|
+
/**
|
|
161
|
+
* Subscribes to changes for the currently open workspaces.
|
|
162
|
+
* @param callback - The callback to invoke with the current open workspaces.
|
|
163
|
+
* @returns A promise that resolves to an unsubscribe function.
|
|
164
|
+
*/
|
|
165
|
+
onOpenWorkspacesChanged: AddListener<Workspace[]>;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* @beta
|
|
169
|
+
* Type representing settings for a workspace.
|
|
170
|
+
*/
|
|
171
|
+
export type WorkspaceSettings = {
|
|
172
|
+
/** Whether the workspace is the master workspace. */
|
|
173
|
+
isMaster?: boolean;
|
|
174
|
+
/** The icon for the workspace. */
|
|
175
|
+
os_icon?: string;
|
|
176
|
+
};
|
|
177
|
+
/**
|
|
178
|
+
* @beta
|
|
179
|
+
* Type representing a workspace item with its settings.
|
|
180
|
+
*/
|
|
181
|
+
export type OsWorkspacePickerProps = {
|
|
182
|
+
onChange: (value: string) => void;
|
|
183
|
+
desktop: any;
|
|
184
|
+
openWorkspacesOnly?: boolean;
|
|
185
|
+
defaultWorkspace?: string;
|
|
186
|
+
checkActiveWorkspace?: boolean;
|
|
187
|
+
permissions?: WorkspacePermissionValue;
|
|
188
|
+
dashboardOptions?: {
|
|
189
|
+
value: string;
|
|
190
|
+
label: string;
|
|
191
|
+
}[];
|
|
192
|
+
};
|
|
193
|
+
//# sourceMappingURL=workspace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../src/workspace.ts"],"names":[],"mappings":"AAAA,OA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AE,CAAC,gCAAgC,CAAC,CAAC;CACpD,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC;;;;;OAKG;IACH,kBAAkB,EAAE,CAClB,EAAE,EAAE,mBAAmB,EACvB,QAAQ,EAAE,QAAQ,CAAC,SAAS,CAAC,KAC1B,OAAO,CAAC,WAAW,CAAC,CAAC;IAE1B;;;;;OAKG;IACH,sBAAsB,EAAE,CACtB,IAAI,EAAE,uBAAuB,EAC7B,QAAQ,EAAE,QAAQ,CAAC,aAAa,CAAC,KAC9B,OAAO,CAAC,WAAW,CAAC,CAAC;IAE1B;;;;OAIG;IACH,uBAAuB,EAAE,WAAW,CAAC,SAAS,EAAE,CAAC,CAAC;CACnD;AAED;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,qDAAqD;IACrD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kCAAkC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,OAAO,EAAE,GAAG,CAAC;IACb,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,WAAW,CAAC,EAAE,wBAAwB,CAAC;IACvC,gBAAgB,CAAC,EAAE;QACjB,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;KACf,EAAE,CAAC;CACL,CAAC"}
|
package/lib/workspace.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @beta
|
|
3
|
+
* Enum representing the possible values for workspace permissions.
|
|
4
|
+
*/
|
|
5
|
+
export var WorkspacePermissionValue;
|
|
6
|
+
(function (WorkspacePermissionValue) {
|
|
7
|
+
WorkspacePermissionValue[WorkspacePermissionValue["None"] = 0] = "None";
|
|
8
|
+
WorkspacePermissionValue[WorkspacePermissionValue["Read"] = 1] = "Read";
|
|
9
|
+
WorkspacePermissionValue[WorkspacePermissionValue["Write"] = 2] = "Write";
|
|
10
|
+
WorkspacePermissionValue[WorkspacePermissionValue["Admin"] = 4] = "Admin";
|
|
11
|
+
})(WorkspacePermissionValue || (WorkspacePermissionValue = {}));
|
|
12
|
+
//# sourceMappingURL=workspace.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace.js","sourceRoot":"","sources":["../src/workspace.ts"],"names":[],"mappings":"AAoDA;;;GAGG;AACH,MAAM,CAAN,IAAY,wBAKX;AALD,WAAY,wBAAwB;IAClC,uEAAQ,CAAA;IACR,uEAAQ,CAAA;IACR,yEAAS,CAAA;IACT,yEAAS,CAAA;AACX,CAAC,EALW,wBAAwB,KAAxB,wBAAwB,QAKnC"}
|
package/package.json
CHANGED
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octostar/platform-types",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"exports": {
|
|
5
|
-
".": {
|
|
6
|
-
"import": "./lib/index.js",
|
|
7
|
-
"require": "./lib/index.js",
|
|
8
|
-
"types": "./dist/platform-types.d.ts"
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
"main": "lib/index.js",
|
|
12
|
-
"module": "lib/index.js",
|
|
13
|
-
"types": "dist/platform-types.d.ts",
|
|
3
|
+
"version": "0.2.3",
|
|
14
4
|
"description": "Types for the API exposed by Octostar platform to third parties",
|
|
15
5
|
"keywords": [
|
|
16
6
|
"octostar",
|
|
@@ -23,7 +13,18 @@
|
|
|
23
13
|
},
|
|
24
14
|
"license": "MIT",
|
|
25
15
|
"author": "",
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"import": "./lib/index.js",
|
|
19
|
+
"require": "./lib/index.js",
|
|
20
|
+
"types": "./dist/platform-types.d.ts"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"main": "lib/index.js",
|
|
24
|
+
"module": "lib/index.js",
|
|
25
|
+
"types": "dist/platform-types.d.ts",
|
|
26
26
|
"files": [
|
|
27
|
+
"lib",
|
|
27
28
|
"dist/platform-types.d.ts",
|
|
28
29
|
"dist/docs"
|
|
29
30
|
],
|
|
@@ -52,5 +53,5 @@
|
|
|
52
53
|
"publishConfig": {
|
|
53
54
|
"access": "public"
|
|
54
55
|
},
|
|
55
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "722fe76364305d2b75a87ca2fb6d6fb4d58b1677"
|
|
56
57
|
}
|