@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.
Files changed (299) hide show
  1. package/dist/docs/assets/navigation.js +1 -1
  2. package/dist/docs/assets/search.js +1 -1
  3. package/dist/docs/enums/SortOrder.html +3 -3
  4. package/dist/docs/enums/WorkspacePermissionValue.html +3 -3
  5. package/dist/docs/hierarchy.html +1 -1
  6. package/dist/docs/index.html +2 -2
  7. package/dist/docs/interfaces/ActionContext.html +4 -4
  8. package/dist/docs/interfaces/Colorful.html +3 -3
  9. package/dist/docs/interfaces/Concept.html +12 -12
  10. package/dist/docs/interfaces/Desktop.html +82 -80
  11. package/dist/docs/interfaces/DesktopActionContext.html +7 -7
  12. package/dist/docs/interfaces/DesktopSettings.html +5 -5
  13. package/dist/docs/interfaces/GetAttachmentOptions.html +5 -5
  14. package/dist/docs/interfaces/IDataTransfer.html +11 -11
  15. package/dist/docs/interfaces/Inheritance.html +5 -5
  16. package/dist/docs/interfaces/Ontology.html +20 -20
  17. package/dist/docs/interfaces/Property.html +5 -5
  18. package/dist/docs/interfaces/QueryObjectFilterClause.html +3 -3
  19. package/dist/docs/interfaces/RecordProvider.html +6 -6
  20. package/dist/docs/interfaces/RefObject.html +3 -3
  21. package/dist/docs/interfaces/Relationship.html +20 -20
  22. package/dist/docs/interfaces/SearchProps.html +4 -4
  23. package/dist/docs/interfaces/SearchXperienceModalProps.html +9 -9
  24. package/dist/docs/interfaces/SearchXperienceProps.html +7 -7
  25. package/dist/docs/interfaces/SemanticBindingProps.html +9 -0
  26. package/dist/docs/interfaces/StylerContext.html +11 -11
  27. package/dist/docs/interfaces/TagAttributes.html +7 -7
  28. package/dist/docs/interfaces/WorkspaceChangeEmitter.html +5 -5
  29. package/dist/docs/interfaces/WorkspaceItemConfig.html +6 -6
  30. package/dist/docs/interfaces/WorkspaceRecordIdentifier.html +5 -5
  31. package/dist/docs/modules.html +9 -2
  32. package/dist/docs/types/ActionHandler.html +2 -2
  33. package/dist/docs/types/AddCommentParams.html +2 -2
  34. package/dist/docs/types/AddListener.html +2 -2
  35. package/dist/docs/types/ApiErrorResult.html +2 -2
  36. package/dist/docs/types/ApiResult.html +2 -2
  37. package/dist/docs/types/ApiSuccessResult.html +2 -2
  38. package/dist/docs/types/App.html +2 -2
  39. package/dist/docs/types/AppRegistry.html +2 -2
  40. package/dist/docs/types/AppServiceCallOptions.html +2 -2
  41. package/dist/docs/types/AppServiceCallProps.html +2 -2
  42. package/dist/docs/types/AsyncFilter.html +2 -2
  43. package/dist/docs/types/AttachmentResponseType.html +2 -2
  44. package/dist/docs/types/AttachmentType.html +2 -2
  45. package/dist/docs/types/Behaviour.html +2 -2
  46. package/dist/docs/types/BinaryOperator.html +2 -2
  47. package/dist/docs/types/Callback.html +2 -2
  48. package/dist/docs/types/CommentWorkspaceItem.html +2 -2
  49. package/dist/docs/types/Comparator.html +2 -2
  50. package/dist/docs/types/ConceptFilter.html +3 -3
  51. package/dist/docs/types/ConceptMap.html +2 -2
  52. package/dist/docs/types/ConceptName.html +1 -0
  53. package/dist/docs/types/ConceptWithParents.html +2 -2
  54. package/dist/docs/types/ConnectedEntity.html +2 -2
  55. package/dist/docs/types/ContextMenuGroup.html +2 -2
  56. package/dist/docs/types/ContextMenuLabels.html +2 -2
  57. package/dist/docs/types/ContextMenuOptions.html +2 -2
  58. package/dist/docs/types/ContextMenuParams.html +2 -2
  59. package/dist/docs/types/ContextMenuRequest.html +2 -2
  60. package/dist/docs/types/CopyOptions.html +2 -2
  61. package/dist/docs/types/CreateEntityFormProps.html +2 -2
  62. package/dist/docs/types/CreateRelationsDialogProps.html +2 -2
  63. package/dist/docs/types/CustomEventListener.html +2 -2
  64. package/dist/docs/types/CustomTemplate.html +2 -2
  65. package/dist/docs/types/CustomTemplateIframeProps.html +2 -2
  66. package/dist/docs/types/DataContextType.html +12 -0
  67. package/dist/docs/types/DesktopAction.html +2 -2
  68. package/dist/docs/types/DesktopActionFilter.html +2 -2
  69. package/dist/docs/types/DesktopActionMenuItem.html +2 -2
  70. package/dist/docs/types/DesktopActionMenuItemGroup.html +2 -2
  71. package/dist/docs/types/DesktopActionOptions.html +3 -2
  72. package/dist/docs/types/DesktopOpenParams.html +2 -2
  73. package/dist/docs/types/DesktopStylerContext.html +2 -2
  74. package/dist/docs/types/DraftWorkspaceItem.html +2 -2
  75. package/dist/docs/types/DragEndParams.html +2 -2
  76. package/dist/docs/types/DragStartParams.html +2 -2
  77. package/dist/docs/types/EConnection.html +2 -2
  78. package/dist/docs/types/EdgeSpec.html +2 -2
  79. package/dist/docs/types/EmitEventTransformDefinition.html +2 -2
  80. package/dist/docs/types/Entity.html +2 -2
  81. package/dist/docs/types/EntityEdge.html +2 -2
  82. package/dist/docs/types/EntityOTM.html +2 -2
  83. package/dist/docs/types/EntityPasteContext.html +2 -2
  84. package/dist/docs/types/EventContextType.html +2 -2
  85. package/dist/docs/types/EventEmitterType.html +2 -2
  86. package/dist/docs/types/EventName.html +2 -2
  87. package/dist/docs/types/EventProducer.html +2 -2
  88. package/dist/docs/types/EventPublisher.html +2 -2
  89. package/dist/docs/types/EventSubscriber.html +2 -2
  90. package/dist/docs/types/EventUnsubscriber.html +2 -2
  91. package/dist/docs/types/ExportOptions.html +2 -2
  92. package/dist/docs/types/ExtractEntitiesOptions.html +2 -2
  93. package/dist/docs/types/FileCode.html +2 -2
  94. package/dist/docs/types/FileTreeOptions.html +2 -2
  95. package/dist/docs/types/FilterDefinition.html +2 -2
  96. package/dist/docs/types/FilterDefinitions.html +2 -2
  97. package/dist/docs/types/FilterName.html +2 -2
  98. package/dist/docs/types/FilterReference.html +2 -2
  99. package/dist/docs/types/FocusListItem.html +2 -2
  100. package/dist/docs/types/FolderPasteOptions.html +2 -2
  101. package/dist/docs/types/GraphDataSpec.html +1 -0
  102. package/dist/docs/types/GraphSpec.html +2 -2
  103. package/dist/docs/types/HttpTransformDefinition.html +2 -2
  104. package/dist/docs/types/Icon.html +2 -2
  105. package/dist/docs/types/IconProps.html +2 -2
  106. package/dist/docs/types/IframeTransformDefinition.html +2 -2
  107. package/dist/docs/types/ImageInfo.html +2 -2
  108. package/dist/docs/types/ImportZipOptions.html +2 -2
  109. package/dist/docs/types/InlineCode.html +2 -2
  110. package/dist/docs/types/JavascriptFileStylerDefinition.html +2 -2
  111. package/dist/docs/types/JavascriptFileTransformDefinition.html +2 -2
  112. package/dist/docs/types/JavascriptFilterDefinition.html +2 -2
  113. package/dist/docs/types/JavascriptInlineStylerDefinition.html +2 -2
  114. package/dist/docs/types/JavascriptInlineTransformDefinition.html +2 -2
  115. package/dist/docs/types/JavascriptType.html +2 -2
  116. package/dist/docs/types/JobManifest.html +2 -2
  117. package/dist/docs/types/KnownCounts.html +2 -2
  118. package/dist/docs/types/ModalTemplateProps.html +2 -2
  119. package/dist/docs/types/NamedEntityGroup.html +2 -2
  120. package/dist/docs/types/NunjucksFileTransformDefinition.html +2 -2
  121. package/dist/docs/types/NunjucksInlineTransformDefinition.html +2 -2
  122. package/dist/docs/types/NunjucksType.html +2 -2
  123. package/dist/docs/types/OS_CONFIRM_MODAL_RESPONSE.html +2 -2
  124. package/dist/docs/types/OntologyTags.html +2 -2
  125. package/dist/docs/types/OsAuditFields.html +2 -2
  126. package/dist/docs/types/OsConfirmProps.html +2 -2
  127. package/dist/docs/types/OsNotification.html +2 -2
  128. package/dist/docs/types/OsProgress.html +2 -2
  129. package/dist/docs/types/OsTag.html +2 -2
  130. package/dist/docs/types/OsWorkspaceEntity.html +2 -2
  131. package/dist/docs/types/OsWorkspacePickerProps.html +2 -2
  132. package/dist/docs/types/PasteContextOptions.html +2 -2
  133. package/dist/docs/types/Permission.html +4 -3
  134. package/dist/docs/types/Point.html +2 -2
  135. package/dist/docs/types/ProvidedFilterDefinition.html +2 -2
  136. package/dist/docs/types/ProvidedTransformDefinition.html +2 -2
  137. package/dist/docs/types/PythonFileStylerDefinition.html +2 -2
  138. package/dist/docs/types/PythonFileTransformDefinition.html +2 -2
  139. package/dist/docs/types/PythonFilterDefinition.html +2 -2
  140. package/dist/docs/types/PythonInlineStylerDefinition.html +2 -2
  141. package/dist/docs/types/PythonInlineTransformDefinition.html +2 -2
  142. package/dist/docs/types/PythonType.html +2 -2
  143. package/dist/docs/types/Query.html +2 -2
  144. package/dist/docs/types/QueryBatchResult.html +2 -2
  145. package/dist/docs/types/QueryErrorResult.html +2 -2
  146. package/dist/docs/types/QueryExecutor.html +2 -2
  147. package/dist/docs/types/QueryResponse.html +2 -2
  148. package/dist/docs/types/QueryResult.html +2 -2
  149. package/dist/docs/types/QuerySuccessResult.html +2 -2
  150. package/dist/docs/types/ReactCssProperties.html +2 -2
  151. package/dist/docs/types/ReactNode.html +2 -2
  152. package/dist/docs/types/ReactRef.html +2 -2
  153. package/dist/docs/types/ReasonedBoolean.html +2 -2
  154. package/dist/docs/types/RefCallback.html +2 -2
  155. package/dist/docs/types/RelationshipCountResult.html +2 -2
  156. package/dist/docs/types/SaveAsModalProps.html +2 -2
  157. package/dist/docs/types/SaveFileOptions.html +2 -2
  158. package/dist/docs/types/SaveOptions.html +2 -2
  159. package/dist/docs/types/SavedTemplate.html +2 -2
  160. package/dist/docs/types/SemanticBinding.html +5 -0
  161. package/dist/docs/types/SemanticBindingType.html +2 -2
  162. package/dist/docs/types/SemanticBindings.html +2 -2
  163. package/dist/docs/types/SemanticallyBoundApp.html +3 -0
  164. package/dist/docs/types/SemanticallyBoundFilterDefinition.html +2 -2
  165. package/dist/docs/types/SendQueryOptions.html +2 -2
  166. package/dist/docs/types/ServiceDefinition.html +2 -2
  167. package/dist/docs/types/ServiceDefinitions.html +2 -2
  168. package/dist/docs/types/ServiceRole.html +2 -2
  169. package/dist/docs/types/ShowOntology.html +2 -2
  170. package/dist/docs/types/ShowTabProps.html +2 -2
  171. package/dist/docs/types/Styler.html +2 -2
  172. package/dist/docs/types/StylerConfig.html +2 -2
  173. package/dist/docs/types/StylerDefinition.html +2 -2
  174. package/dist/docs/types/StylerDefinitions.html +2 -2
  175. package/dist/docs/types/StylerOption.html +2 -2
  176. package/dist/docs/types/StylerProducer.html +2 -2
  177. package/dist/docs/types/Tag.html +2 -2
  178. package/dist/docs/types/TagInfo.html +2 -2
  179. package/dist/docs/types/TagWithRelationship.html +2 -2
  180. package/dist/docs/types/TaskCleanupReason.html +2 -2
  181. package/dist/docs/types/TemplateMetadata.html +4 -3
  182. package/dist/docs/types/TemplateType.html +2 -2
  183. package/dist/docs/types/TemplateVariant.html +2 -2
  184. package/dist/docs/types/TransformAction.html +2 -2
  185. package/dist/docs/types/TransformActionContext.html +2 -2
  186. package/dist/docs/types/TransformDefinition.html +2 -2
  187. package/dist/docs/types/TransformDefinitions.html +2 -2
  188. package/dist/docs/types/Unsubscribe.html +2 -2
  189. package/dist/docs/types/UserProfile.html +2 -2
  190. package/dist/docs/types/Watcher.html +2 -2
  191. package/dist/docs/types/Whoami.html +3 -2
  192. package/dist/docs/types/WithProgressBarOptions.html +2 -2
  193. package/dist/docs/types/Workspace.html +3 -3
  194. package/dist/docs/types/WorkspaceFlags.html +2 -0
  195. package/dist/docs/types/WorkspaceIdentifier.html +2 -2
  196. package/dist/docs/types/WorkspaceItem.html +2 -2
  197. package/dist/docs/types/WorkspaceItemBase.html +2 -2
  198. package/dist/docs/types/WorkspaceItemIdentifier.html +2 -2
  199. package/dist/docs/types/WorkspaceItemModel.html +7 -4
  200. package/dist/docs/types/WorkspaceItemTitleProps.html +2 -2
  201. package/dist/docs/types/WorkspaceItems.html +2 -2
  202. package/dist/docs/types/WorkspacePermission.html +2 -2
  203. package/dist/docs/types/WorkspaceRecord.html +2 -2
  204. package/dist/docs/types/WorkspaceRecordInfo.html +2 -2
  205. package/dist/docs/types/WorkspaceRecordWithRelationships.html +2 -2
  206. package/dist/docs/types/WorkspaceRecords.html +2 -2
  207. package/dist/docs/types/WorkspaceRelationship.html +2 -2
  208. package/dist/docs/types/WorkspaceSettings.html +2 -2
  209. package/dist/docs/types/trigger.html +2 -2
  210. package/dist/docs/types/uuid.html +2 -2
  211. package/dist/docs/variables/OS_CONFIRM_MODAL_CANCEL.html +2 -2
  212. package/dist/docs/variables/OS_CONFIRM_MODAL_NO.html +2 -2
  213. package/dist/docs/variables/OS_CONFIRM_MODAL_YES.html +2 -2
  214. package/dist/platform-types.d.ts +127 -8
  215. package/lib/action.d.ts +130 -0
  216. package/lib/action.d.ts.map +1 -0
  217. package/lib/action.js +2 -0
  218. package/lib/action.js.map +1 -0
  219. package/lib/api.d.ts +30 -0
  220. package/lib/api.d.ts.map +1 -0
  221. package/lib/api.js +2 -0
  222. package/lib/api.js.map +1 -0
  223. package/lib/app.d.ts +65 -0
  224. package/lib/app.d.ts.map +1 -0
  225. package/lib/app.js +2 -0
  226. package/lib/app.js.map +1 -0
  227. package/lib/behaviour.d.ts +45 -0
  228. package/lib/behaviour.d.ts.map +1 -0
  229. package/lib/behaviour.js +14 -0
  230. package/lib/behaviour.js.map +1 -0
  231. package/lib/callback.d.ts +22 -0
  232. package/lib/callback.d.ts.map +1 -0
  233. package/lib/callback.js +2 -0
  234. package/lib/callback.js.map +1 -0
  235. package/lib/desktop.d.ts +1112 -0
  236. package/lib/desktop.d.ts.map +1 -0
  237. package/lib/desktop.js +16 -0
  238. package/lib/desktop.js.map +1 -0
  239. package/lib/event.d.ts +90 -0
  240. package/lib/event.d.ts.map +1 -0
  241. package/lib/event.js +2 -0
  242. package/lib/event.js.map +1 -0
  243. package/lib/filters.d.ts +49 -0
  244. package/lib/filters.d.ts.map +1 -0
  245. package/lib/filters.js +2 -0
  246. package/lib/filters.js.map +1 -0
  247. package/lib/graph.d.ts +107 -0
  248. package/lib/graph.d.ts.map +1 -0
  249. package/lib/graph.js +2 -0
  250. package/lib/graph.js.map +1 -0
  251. package/lib/index.d.ts +21 -0
  252. package/lib/index.d.ts.map +1 -0
  253. package/lib/index.js +1 -0
  254. package/lib/index.js.map +1 -0
  255. package/lib/jobManifestTypes.d.ts +272 -0
  256. package/lib/jobManifestTypes.d.ts.map +1 -0
  257. package/lib/jobManifestTypes.js +2 -0
  258. package/lib/jobManifestTypes.js.map +1 -0
  259. package/lib/model.d.ts +660 -0
  260. package/lib/model.d.ts.map +1 -0
  261. package/lib/model.js +11 -0
  262. package/lib/model.js.map +1 -0
  263. package/lib/ontology.d.ts +176 -0
  264. package/lib/ontology.d.ts.map +1 -0
  265. package/lib/ontology.js +2 -0
  266. package/lib/ontology.js.map +1 -0
  267. package/lib/query.d.ts +70 -0
  268. package/lib/query.d.ts.map +1 -0
  269. package/lib/query.js +2 -0
  270. package/lib/query.js.map +1 -0
  271. package/lib/react-types.d.ts +31 -0
  272. package/lib/react-types.d.ts.map +1 -0
  273. package/lib/react-types.js +2 -0
  274. package/lib/react-types.js.map +1 -0
  275. package/lib/search.d.ts +49 -0
  276. package/lib/search.d.ts.map +1 -0
  277. package/lib/search.js +2 -0
  278. package/lib/search.js.map +1 -0
  279. package/lib/semantic.d.ts +40 -0
  280. package/lib/semantic.d.ts.map +1 -0
  281. package/lib/semantic.js +2 -0
  282. package/lib/semantic.js.map +1 -0
  283. package/lib/styling.d.ts +87 -0
  284. package/lib/styling.d.ts.map +1 -0
  285. package/lib/styling.js +2 -0
  286. package/lib/styling.js.map +1 -0
  287. package/lib/templates.d.ts +110 -0
  288. package/lib/templates.d.ts.map +1 -0
  289. package/lib/templates.js +2 -0
  290. package/lib/templates.js.map +1 -0
  291. package/lib/user.d.ts +15 -0
  292. package/lib/user.d.ts.map +1 -0
  293. package/lib/user.js +2 -0
  294. package/lib/user.js.map +1 -0
  295. package/lib/workspace.d.ts +193 -0
  296. package/lib/workspace.d.ts.map +1 -0
  297. package/lib/workspace.js +12 -0
  298. package/lib/workspace.js.map +1 -0
  299. 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
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=user.js.map
@@ -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,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAChE,OAAO,EACL,MAAM,EACN,KAAK,EACL,aAAa,EACb,cAAc,EACd,qBAAqB,EACtB,MAAM,SAAS,CAAC;AAEjB;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB,sBAAsB;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,6CAA6C;IAC7C,YAAY,EAAE,MAAM,CAAC;IACrB,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAC;IACd,oDAAoD;IACpD,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,uCAAuC;IACvC,MAAM,EAAE,KAAK,CAAC;CACf,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,0DAA0D;IAC1D,yBAAyB,EAAE,qBAAqB,CAAC;IACjD,sBAAsB;IACtB,MAAM,EAAE,KAAK,CAAC;CACf,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,aAAa,GAAG;IACvC,mDAAmD;IACnD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4BAA4B;IAC5B,aAAa,EAAE,MAAM,CAAC;IACtB,+CAA+C;IAC/C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,+CAA+C;IAC/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AM,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"}
@@ -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.1",
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": "dbae1ec7ebfd589874280dbb134e8eba37ba6dee"
56
+ "gitHead": "722fe76364305d2b75a87ca2fb6d6fb4d58b1677"
56
57
  }