@pilotdev/pilot-web-sdk 26.10.0 → 26.11.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.
Files changed (274) hide show
  1. package/esm2022/lib/base/disposable.mjs +14 -0
  2. package/esm2022/lib/base/index.mjs +3 -0
  3. package/esm2022/lib/base/initializable.mjs +14 -0
  4. package/esm2022/lib/commands/command-builder.mjs +2 -0
  5. package/esm2022/lib/commands/index.mjs +2 -0
  6. package/esm2022/lib/contexts/bim-element-panel-context.mjs +16 -0
  7. package/esm2022/lib/contexts/bim-right-panel-context.mjs +16 -0
  8. package/esm2022/lib/contexts/context.mjs +32 -0
  9. package/esm2022/lib/contexts/dialog-context.mjs +10 -0
  10. package/esm2022/lib/contexts/document-annotations-list-context.mjs +16 -0
  11. package/esm2022/lib/contexts/index.mjs +10 -0
  12. package/esm2022/lib/contexts/object-card-context.mjs +63 -0
  13. package/esm2022/lib/contexts/page-context.mjs +3 -0
  14. package/esm2022/lib/contexts/render-context.mjs +24 -0
  15. package/esm2022/lib/contexts/settings-feature-context.mjs +21 -0
  16. package/esm2022/lib/data/access.mjs +26 -0
  17. package/esm2022/lib/data/annotations.mjs +34 -0
  18. package/esm2022/lib/data/attribute.mjs +17 -0
  19. package/esm2022/lib/data/bim-features/bim-compare-diff.mjs +9 -0
  20. package/esm2022/lib/data/bim-features/bim-search-set.mjs +2 -0
  21. package/esm2022/lib/data/bim-features/index.mjs +3 -0
  22. package/esm2022/lib/data/cades-type.mjs +13 -0
  23. package/esm2022/lib/data/certificate.mjs +2 -0
  24. package/esm2022/lib/data/data-object.mjs +19 -0
  25. package/esm2022/lib/data/expected-error.mjs +9 -0
  26. package/esm2022/lib/data/file.mjs +2 -0
  27. package/esm2022/lib/data/files-snapshot.mjs +2 -0
  28. package/esm2022/lib/data/index.mjs +21 -0
  29. package/esm2022/lib/data/organisation-unit.mjs +7 -0
  30. package/esm2022/lib/data/person.mjs +2 -0
  31. package/esm2022/lib/data/relation.mjs +2 -0
  32. package/esm2022/lib/data/signature-custom-state.mjs +2 -0
  33. package/esm2022/lib/data/signature-verification-result.mjs +2 -0
  34. package/esm2022/lib/data/signature-verification-status.mjs +11 -0
  35. package/esm2022/lib/data/subscription-type.mjs +6 -0
  36. package/esm2022/lib/data/theme.mjs +6 -0
  37. package/esm2022/lib/data/user-state-machine.mjs +2 -0
  38. package/esm2022/lib/data/user-state.mjs +12 -0
  39. package/esm2022/lib/icrypto-provider.mjs +96 -0
  40. package/esm2022/lib/idata.plugin.mjs +11 -0
  41. package/esm2022/lib/injectable/bim-features/bim-compare-diff-service.mjs +2 -0
  42. package/esm2022/lib/injectable/bim-features/bim-features.mjs +2 -0
  43. package/esm2022/lib/injectable/bim-features/bim-search-set-service.mjs +2 -0
  44. package/esm2022/lib/injectable/bim-features/index.mjs +4 -0
  45. package/esm2022/lib/injectable/command-builder-provider.mjs +2 -0
  46. package/esm2022/lib/injectable/dialog-service.mjs +2 -0
  47. package/esm2022/lib/injectable/index.mjs +12 -0
  48. package/esm2022/lib/injectable/injection-source.mjs +55 -0
  49. package/esm2022/lib/injectable/ipersonal-settings.mjs +2 -0
  50. package/esm2022/lib/injectable/modifier-provider.mjs +2 -0
  51. package/esm2022/lib/injectable/objects-repository.mjs +2 -0
  52. package/esm2022/lib/injectable/progress-service.mjs +8 -0
  53. package/esm2022/lib/injectable/render-context-provider.mjs +2 -0
  54. package/esm2022/lib/injectable/repository-events.mjs +2 -0
  55. package/esm2022/lib/injectable/theme-service.mjs +2 -0
  56. package/esm2022/lib/menu/checkable-menu.builder.mjs +14 -0
  57. package/esm2022/lib/menu/index.mjs +5 -0
  58. package/esm2022/lib/menu/menu-item.builder.mjs +39 -0
  59. package/esm2022/lib/menu/menu.builder.mjs +68 -0
  60. package/esm2022/lib/menu/menu.mjs +23 -0
  61. package/esm2022/lib/modifier/attribute-modifier.mjs +2 -0
  62. package/esm2022/lib/modifier/index.mjs +5 -0
  63. package/esm2022/lib/modifier/modifier.mjs +2 -0
  64. package/esm2022/lib/modifier/object-builder.mjs +2 -0
  65. package/esm2022/lib/modifier/signature-modifier.mjs +2 -0
  66. package/esm2022/lib/object-card/attribute-value-changed-event-args.mjs +20 -0
  67. package/esm2022/lib/object-card/index.mjs +3 -0
  68. package/esm2022/lib/object-card/object-card-handler.mjs +30 -0
  69. package/esm2022/lib/openspace/index.mjs +2 -0
  70. package/esm2022/lib/openspace/openspace-view.mjs +29 -0
  71. package/esm2022/lib/page-navigation/index.mjs +5 -0
  72. package/esm2022/lib/page-navigation/page-navigation-section-element.builder.mjs +42 -0
  73. package/esm2022/lib/page-navigation/page-navigation-section.builder.mjs +47 -0
  74. package/esm2022/lib/page-navigation/page-navigation.builder.mjs +40 -0
  75. package/esm2022/lib/page-navigation/page-navigation.mjs +15 -0
  76. package/esm2022/lib/personal-settings/index.mjs +4 -0
  77. package/esm2022/lib/personal-settings/isettings-feature.mjs +42 -0
  78. package/esm2022/lib/personal-settings/isettings-value-provider.mjs +27 -0
  79. package/esm2022/lib/personal-settings/system-settings-keys.mjs +83 -0
  80. package/esm2022/lib/tabs/index.mjs +4 -0
  81. package/esm2022/lib/tabs/tab-item.builder.mjs +35 -0
  82. package/esm2022/lib/tabs/tabs.builder.mjs +40 -0
  83. package/esm2022/lib/tabs/tabs.mjs +15 -0
  84. package/esm2022/lib/toolbar/index.mjs +7 -0
  85. package/esm2022/lib/toolbar/toolbar-item-submenu.handler.mjs +11 -0
  86. package/esm2022/lib/toolbar/toolbar-item.builder.mjs +41 -0
  87. package/esm2022/lib/toolbar/toolbar-menu-item.builder.mjs +15 -0
  88. package/esm2022/lib/toolbar/toolbar-toggle-item.builder.mjs +14 -0
  89. package/esm2022/lib/toolbar/toolbar.builder.mjs +88 -0
  90. package/esm2022/lib/toolbar/toolbar.mjs +28 -0
  91. package/esm2022/lib/tools/attribute-permission.info.mjs +45 -0
  92. package/esm2022/lib/tools/guid.mjs +53 -0
  93. package/esm2022/lib/tools/index.mjs +4 -0
  94. package/esm2022/lib/tools/utils.mjs +8 -0
  95. package/esm2022/pilotdev-pilot-web-sdk.mjs +5 -0
  96. package/esm2022/public-api.mjs +20 -0
  97. package/extensions.config.schema.json +171 -132
  98. package/fesm2022/pilotdev-pilot-web-sdk.mjs +1487 -0
  99. package/fesm2022/pilotdev-pilot-web-sdk.mjs.map +1 -0
  100. package/index.d.ts +5 -0
  101. package/lib/base/disposable.d.ts +7 -0
  102. package/{src/lib/base/index.ts → lib/base/index.d.ts} +2 -2
  103. package/lib/base/initializable.d.ts +8 -0
  104. package/lib/commands/command-builder.d.ts +15 -0
  105. package/lib/commands/index.d.ts +1 -0
  106. package/lib/contexts/bim-element-panel-context.d.ts +8 -0
  107. package/lib/contexts/bim-right-panel-context.d.ts +8 -0
  108. package/lib/contexts/context.d.ts +22 -0
  109. package/lib/contexts/dialog-context.d.ts +5 -0
  110. package/lib/contexts/document-annotations-list-context.d.ts +12 -0
  111. package/{src/lib/contexts/index.ts → lib/contexts/index.d.ts} +1 -1
  112. package/lib/contexts/object-card-context.d.ts +41 -0
  113. package/lib/contexts/page-context.d.ts +2 -0
  114. package/lib/contexts/render-context.d.ts +17 -0
  115. package/lib/contexts/settings-feature-context.d.ts +11 -0
  116. package/lib/data/access.d.ts +35 -0
  117. package/lib/data/annotations.d.ts +113 -0
  118. package/lib/data/attribute.d.ts +30 -0
  119. package/lib/data/bim-features/bim-compare-diff.d.ts +15 -0
  120. package/lib/data/bim-features/bim-search-set.d.ts +13 -0
  121. package/lib/data/cades-type.d.ts +11 -0
  122. package/lib/data/certificate.d.ts +29 -0
  123. package/lib/data/data-object.d.ts +77 -0
  124. package/lib/data/expected-error.d.ts +5 -0
  125. package/lib/data/file.d.ts +30 -0
  126. package/lib/data/files-snapshot.d.ts +8 -0
  127. package/lib/data/organisation-unit.d.ts +20 -0
  128. package/lib/data/person.d.ts +17 -0
  129. package/lib/data/relation.d.ts +8 -0
  130. package/{src/lib/data/signature-custom-state.ts → lib/data/signature-custom-state.d.ts} +4 -4
  131. package/{src/lib/data/signature-verification-result.ts → lib/data/signature-verification-result.d.ts} +9 -13
  132. package/lib/data/signature-verification-status.d.ts +9 -0
  133. package/lib/data/subscription-type.d.ts +4 -0
  134. package/lib/data/theme.d.ts +7 -0
  135. package/lib/data/user-state-machine.d.ts +10 -0
  136. package/lib/data/user-state.d.ts +20 -0
  137. package/lib/icrypto-provider.d.ts +82 -0
  138. package/lib/idata.plugin.d.ts +6 -0
  139. package/lib/injectable/bim-features/bim-compare-diff-service.d.ts +4 -0
  140. package/{src/lib/injectable/bim-features/bim-features.ts → lib/injectable/bim-features/bim-features.d.ts} +6 -8
  141. package/lib/injectable/bim-features/bim-search-set-service.d.ts +39 -0
  142. package/{src/lib/injectable/bim-features/index.ts → lib/injectable/bim-features/index.d.ts} +3 -3
  143. package/{src/lib/injectable/command-builder-provider.ts → lib/injectable/command-builder-provider.d.ts} +6 -7
  144. package/{src/lib/injectable/dialog-service.ts → lib/injectable/dialog-service.d.ts} +1 -2
  145. package/lib/injectable/injection-source.d.ts +26 -0
  146. package/lib/injectable/ipersonal-settings.d.ts +48 -0
  147. package/{src/lib/injectable/modifier-provider.ts → lib/injectable/modifier-provider.d.ts} +5 -6
  148. package/lib/injectable/objects-repository.d.ts +87 -0
  149. package/lib/injectable/progress-service.d.ts +18 -0
  150. package/lib/injectable/render-context-provider.d.ts +10 -0
  151. package/lib/injectable/repository-events.d.ts +31 -0
  152. package/{src/lib/injectable/theme-service.ts → lib/injectable/theme-service.d.ts} +3 -4
  153. package/lib/menu/checkable-menu.builder.d.ts +11 -0
  154. package/{src/lib/menu/index.ts → lib/menu/index.d.ts} +1 -2
  155. package/lib/menu/menu-item.builder.d.ts +27 -0
  156. package/lib/menu/menu.builder.d.ts +49 -0
  157. package/lib/menu/menu.d.ts +20 -0
  158. package/lib/modifier/attribute-modifier.d.ts +9 -0
  159. package/{src/lib/modifier/index.ts → lib/modifier/index.d.ts} +1 -1
  160. package/lib/modifier/modifier.d.ts +30 -0
  161. package/lib/modifier/object-builder.d.ts +140 -0
  162. package/lib/modifier/signature-modifier.d.ts +87 -0
  163. package/lib/object-card/attribute-value-changed-event-args.d.ts +10 -0
  164. package/{src/lib/object-card/index.ts → lib/object-card/index.d.ts} +2 -2
  165. package/lib/object-card/object-card-handler.d.ts +25 -0
  166. package/lib/openspace/openspace-view.d.ts +20 -0
  167. package/{src/lib/page-navigation/index.ts → lib/page-navigation/index.d.ts} +4 -4
  168. package/lib/page-navigation/page-navigation-section-element.builder.d.ts +29 -0
  169. package/lib/page-navigation/page-navigation-section.builder.d.ts +33 -0
  170. package/lib/page-navigation/page-navigation.builder.d.ts +28 -0
  171. package/lib/page-navigation/page-navigation.d.ts +9 -0
  172. package/lib/personal-settings/isettings-feature.d.ts +31 -0
  173. package/lib/personal-settings/isettings-value-provider.d.ts +17 -0
  174. package/lib/personal-settings/system-settings-keys.d.ts +82 -0
  175. package/lib/tabs/tab-item.builder.d.ts +24 -0
  176. package/lib/tabs/tabs.builder.d.ts +28 -0
  177. package/lib/tabs/tabs.d.ts +14 -0
  178. package/{src/lib/toolbar/index.ts → lib/toolbar/index.d.ts} +1 -2
  179. package/lib/toolbar/toolbar-item-submenu.handler.d.ts +9 -0
  180. package/lib/toolbar/toolbar-item.builder.d.ts +28 -0
  181. package/lib/toolbar/toolbar-menu-item.builder.d.ts +13 -0
  182. package/lib/toolbar/toolbar-toggle-item.builder.d.ts +11 -0
  183. package/lib/toolbar/toolbar.builder.d.ts +65 -0
  184. package/lib/toolbar/toolbar.d.ts +21 -0
  185. package/lib/tools/attribute-permission.info.d.ts +9 -0
  186. package/lib/tools/guid.d.ts +7 -0
  187. package/lib/tools/index.d.ts +3 -0
  188. package/lib/tools/utils.d.ts +3 -0
  189. package/package.json +17 -4
  190. package/{src/public-api.ts → public-api.d.ts} +0 -3
  191. package/.eslintrc.json +0 -31
  192. package/ng-package.json +0 -10
  193. package/src/lib/base/disposable.ts +0 -14
  194. package/src/lib/base/initializable.ts +0 -16
  195. package/src/lib/commands/command-builder.ts +0 -19
  196. package/src/lib/commands/index.ts +0 -1
  197. package/src/lib/contexts/bim-element-panel-context.ts +0 -22
  198. package/src/lib/contexts/bim-right-panel-context.ts +0 -22
  199. package/src/lib/contexts/context.ts +0 -38
  200. package/src/lib/contexts/dialog-context.ts +0 -10
  201. package/src/lib/contexts/document-annotations-list-context.ts +0 -21
  202. package/src/lib/contexts/object-card-context.ts +0 -81
  203. package/src/lib/contexts/page-context.ts +0 -1
  204. package/src/lib/contexts/render-context.ts +0 -28
  205. package/src/lib/contexts/settings-feature-context.ts +0 -26
  206. package/src/lib/data/access.ts +0 -40
  207. package/src/lib/data/annotations.ts +0 -160
  208. package/src/lib/data/attribute.ts +0 -33
  209. package/src/lib/data/bim-features/bim-compare-diff.ts +0 -16
  210. package/src/lib/data/bim-features/bim-search-set.ts +0 -16
  211. package/src/lib/data/cades-type.ts +0 -11
  212. package/src/lib/data/certificate.ts +0 -34
  213. package/src/lib/data/data-object.ts +0 -83
  214. package/src/lib/data/expected-error.ts +0 -10
  215. package/src/lib/data/file.ts +0 -33
  216. package/src/lib/data/files-snapshot.ts +0 -9
  217. package/src/lib/data/organisation-unit.ts +0 -22
  218. package/src/lib/data/person.ts +0 -17
  219. package/src/lib/data/relation.ts +0 -9
  220. package/src/lib/data/signature-verification-status.ts +0 -10
  221. package/src/lib/data/subscription-type.ts +0 -5
  222. package/src/lib/data/theme.ts +0 -9
  223. package/src/lib/data/user-state-machine.ts +0 -11
  224. package/src/lib/data/user-state.ts +0 -21
  225. package/src/lib/icrypto-provider.ts +0 -106
  226. package/src/lib/idata.plugin.ts +0 -10
  227. package/src/lib/injectable/bim-features/bim-compare-diff-service.ts +0 -5
  228. package/src/lib/injectable/bim-features/bim-search-set-service.ts +0 -44
  229. package/src/lib/injectable/injection-source.ts +0 -66
  230. package/src/lib/injectable/ipersonal-settings.ts +0 -53
  231. package/src/lib/injectable/objects-repository.ts +0 -88
  232. package/src/lib/injectable/progress-service.ts +0 -20
  233. package/src/lib/injectable/render-context-provider.ts +0 -11
  234. package/src/lib/injectable/repository-events.ts +0 -33
  235. package/src/lib/menu/checkable-menu.builder.ts +0 -15
  236. package/src/lib/menu/menu-item.builder.ts +0 -45
  237. package/src/lib/menu/menu.builder.ts +0 -79
  238. package/src/lib/menu/menu.ts +0 -26
  239. package/src/lib/modifier/attribute-modifier.ts +0 -9
  240. package/src/lib/modifier/modifier.ts +0 -31
  241. package/src/lib/modifier/object-builder.ts +0 -143
  242. package/src/lib/modifier/signature-modifier.ts +0 -99
  243. package/src/lib/object-card/attribute-value-changed-event-args.ts +0 -25
  244. package/src/lib/object-card/object-card-handler.ts +0 -36
  245. package/src/lib/openspace/openspace-view.ts +0 -32
  246. package/src/lib/page-navigation/page-navigation-section-element.builder.ts +0 -45
  247. package/src/lib/page-navigation/page-navigation-section.builder.ts +0 -53
  248. package/src/lib/page-navigation/page-navigation.builder.ts +0 -45
  249. package/src/lib/page-navigation/page-navigation.ts +0 -17
  250. package/src/lib/personal-settings/isettings-feature.ts +0 -43
  251. package/src/lib/personal-settings/isettings-value-provider.ts +0 -28
  252. package/src/lib/personal-settings/system-settings-keys.ts +0 -101
  253. package/src/lib/tabs/tab-item.builder.ts +0 -37
  254. package/src/lib/tabs/tabs.builder.ts +0 -45
  255. package/src/lib/tabs/tabs.ts +0 -17
  256. package/src/lib/toolbar/toolbar-item-submenu.handler.ts +0 -12
  257. package/src/lib/toolbar/toolbar-item.builder.ts +0 -45
  258. package/src/lib/toolbar/toolbar-menu-item.builder.ts +0 -16
  259. package/src/lib/toolbar/toolbar-toggle-item.builder.ts +0 -15
  260. package/src/lib/toolbar/toolbar.builder.ts +0 -104
  261. package/src/lib/toolbar/toolbar.ts +0 -33
  262. package/src/lib/tools/attribute-permission.info.ts +0 -54
  263. package/src/lib/tools/guid.ts +0 -63
  264. package/src/lib/tools/index.ts +0 -3
  265. package/src/lib/tools/utils.ts +0 -8
  266. package/src/typegen.ts +0 -149
  267. package/tsconfig.lib.json +0 -15
  268. package/tsconfig.lib.prod.json +0 -10
  269. /package/{src/lib/data/bim-features/index.ts → lib/data/bim-features/index.d.ts} +0 -0
  270. /package/{src/lib/data/index.ts → lib/data/index.d.ts} +0 -0
  271. /package/{src/lib/injectable/index.ts → lib/injectable/index.d.ts} +0 -0
  272. /package/{src/lib/openspace/index.ts → lib/openspace/index.d.ts} +0 -0
  273. /package/{src/lib/personal-settings/index.ts → lib/personal-settings/index.d.ts} +0 -0
  274. /package/{src/lib/tabs/index.ts → lib/tabs/index.d.ts} +0 -0
@@ -1,17 +0,0 @@
1
- export interface IPerson {
2
- get id(): number;
3
- get login(): string;
4
- get isInactive(): boolean;
5
- get displayName(): string;
6
- get positions(): number[];
7
- get groups(): number[];
8
- get bossOf(): number[];
9
- get allOrgUnits(): number[];
10
- get comment(): string;
11
- get email(): string;
12
- get sid(): string;
13
- get uidDn(): string;
14
- get isDeleted(): boolean;
15
- get isAdmin(): boolean;
16
- get version(): number;
17
- }
@@ -1,9 +0,0 @@
1
- import { RelationType } from "./data-object";
2
-
3
- export interface IRelation {
4
- get id(): string;
5
- get targetId(): string;
6
- get type(): RelationType;
7
- get name(): string;
8
- get versionId(): string;
9
- }
@@ -1,10 +0,0 @@
1
- export enum SignatureVerificationStatus
2
- {
3
- Unknown,
4
- Valid,
5
- ValidWithWarnings,
6
- CannotBeChecked,
7
- Duplicate,
8
- Invalid,
9
- Error,
10
- }
@@ -1,5 +0,0 @@
1
-
2
- export enum SubscriptionType {
3
- Shallow,
4
- Deep
5
- }
@@ -1,9 +0,0 @@
1
- export enum Theme {
2
- Light,
3
- Dark
4
- }
5
-
6
- export interface Themes {
7
- get theme(): Theme;
8
- }
9
-
@@ -1,11 +0,0 @@
1
- export interface IUserStateMachine {
2
- get id(): string;
3
- get title(): string;
4
- get stateTransitions(): Map<string, ITransition[]>;
5
- }
6
-
7
- export interface ITransition {
8
- get stateTo(): string;
9
- get displayName(): string;
10
- get availableForPositionsSource(): string[];
11
- }
@@ -1,21 +0,0 @@
1
- export interface IUserState {
2
- get id(): string;
3
- get name(): string;
4
- get title(): string;
5
- get icon(): string;
6
- get color(): UserStateColors;
7
- get isDeleted(): boolean;
8
- get isCompletionState(): boolean;
9
- get isSystemState(): boolean;
10
- }
11
-
12
- export enum UserStateColors {
13
- None = 0,
14
- Color1 = 1,
15
- Color2 = 2,
16
- Color3 = 3,
17
- Color4 = 4,
18
- Color5 = 5,
19
- Color6 = 6,
20
- Color7 = 7
21
- }
@@ -1,106 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { IFile, IImportedSignatureVerificationResult, ISignatureRequest, ISignatureVerificationResult } from './data';
3
- import { ICertificate } from './data/certificate';
4
-
5
- /**
6
- * Represents a cryptographic provider interface for signing, verifying, and retrieving certificates.
7
- * @exposedInterface
8
- */
9
- export abstract class ICryptoProvider {
10
-
11
- constructor() {
12
- if (this.constructor == ICryptoProvider) {
13
- throw new Error("Abstract classes can't be instantiated.");
14
- }
15
- }
16
-
17
- /**
18
- * Signs a file with a digital signature using the provided certificate.
19
- *
20
- * @param documentId The documentId, represented as string.
21
- * @param actualFile The actualFile for additional information, represented as an IFile.
22
- * @param arrayBuffer The file to be signed, represented as an ArrayBuffer.
23
- * @param certificate The digital certificate to use for signing, represented as an ArrayBuffer.
24
- * @param signatureRequestIds An array of IDs for the signature requests.
25
- * @returns An observable that resolves to the digital signature as a string.
26
- */
27
- sign(documentId: string, actualFile: IFile, arrayBuffer: ArrayBuffer, certificate: ICertificate, signatureRequestIds: string[]): Observable<string>{
28
- throw new Error("Method 'sign(document: IDataObject, file: ArrayBuffer, certificate: ICertificate, signatureRequestIds: string[])' must be implemented.");
29
- }
30
-
31
- /**
32
- * Verifies the digital signature of a file.
33
- *
34
- * @param file - The file data to be verified. This should be the raw binary data of the file.
35
- * @param sign - The digital signature to be verified against the file. This should be the raw binary data of the signature.
36
- * @param signatureRequest - Description of signature's request.
37
- * @returns - An observable that emits the result of the verification process. The result will indicate whether the signature is valid, and may include additional information such as error messages.
38
- *
39
- * @example
40
- const fileData = new ArrayBuffer(1024);
41
- const signatureData = new ArrayBuffer(256);
42
- verify(fileData, signatureData, signatureRequest).subscribe(result => {
43
- if (result.verificationStatus === F.Valid) {
44
- console.log("Signature is valid");
45
- } else {
46
- console.log(`Signature is invalid: ${result.error}`);
47
- }
48
- });
49
- */
50
- verify(file: ArrayBuffer, sign: ArrayBuffer, signatureRequest: ISignatureRequest): Observable<ISignatureVerificationResult> {
51
- throw new Error("Method 'verify(file: ArrayBuffer, sign: ArrayBuffer, signatureType: SignatureType)' must be implemented.");
52
- }
53
-
54
- /**
55
- * Verifies the digital signature that being imported.
56
- *
57
- * @param file - The file data to be verified. This should be the raw binary data of the file.
58
- * @param sign - The digital signature to be verified against the file. This should be the raw binary data of the signature.
59
- * @returns - An observable that emits the result of the verification process. The result will indicate whether the signature is valid, and may include additional information such as error messages.
60
- *
61
- * @example
62
- const fileData = new ArrayBuffer(1024);
63
- const signatureData = new ArrayBuffer(256);
64
- verifyImportedSignature(fileData, signatureData).subscribe(result => {
65
- if (result.verificationStatus === F.Valid) {
66
- console.log("Signature is valid");
67
- } else {
68
- console.log(`Signature is invalid: ${result.error}`);
69
- }
70
- });
71
- */
72
- verifyImportedSignature(file: ArrayBuffer, sign: ArrayBuffer): Observable<IImportedSignatureVerificationResult> {
73
- throw new Error("Method 'verifyImportedSignature(file: ArrayBuffer, sign: ArrayBuffer)' must be implemented.");
74
- }
75
-
76
- /**
77
- * Retrieves a list of digital certificates.
78
- *
79
- * @returns An observable that resolves to an array of ICertificate objects.
80
- */
81
- getCertificates(): Observable<ICertificate[]> {
82
- throw new Error("Method 'getCertificates()' must be implemented.");
83
- }
84
-
85
- /** Determines whether the cryptoprovider can process the specified algorithm(s).
86
- *
87
- * @param publicKeyOid public key's oid used to create digital signature.
88
- * @returns {boolean} True if the cryptoprovider can process the algorithm(s), false otherwise.
89
- *
90
- * @example
91
- * // When the client tries to determine if this provider can process algorithm
92
- * const can = canProcessAlgorithms("1.2.840.113549.1.1.1");
93
- */
94
- canProcessAlgorithms(publicKeyOid: string): boolean {
95
- throw new Error("Method 'canProcessAlgorithms(publicKeyOid: string)' must be implemented.");
96
- }
97
-
98
- /** Determines whether the cryptoprovider can process signature. The method is needed when the signature is being imported and the signature algorithm is unknown.
99
- *
100
- * @param signatureFile signature file.
101
- * @returns {boolean} True if the cryptoprovider can process the signature, false otherwise.
102
- */
103
- canProcessSignature(signatureFile: ArrayBuffer): boolean {
104
- throw new Error("Method 'canProcessSignature(signatureFile: ArrayBuffer)' must be implemented.");
105
- }
106
- }
@@ -1,10 +0,0 @@
1
- /**
2
- * @exposedInterface
3
- */
4
- export abstract class IDataPlugin {
5
- constructor() {
6
- if (this.constructor == IDataPlugin) {
7
- throw new Error("Abstract classes can't be instantiated.");
8
- }
9
- }
10
- }
@@ -1,5 +0,0 @@
1
- import { CompareResultType, IDisplayParam } from "../../data/bim-features/bim-compare-diff";
2
-
3
- export interface IBimCompareDiffService {
4
- updateDiffDisplayParams(type: CompareResultType, func: (old: IDisplayParam) => IDisplayParam): void;
5
- }
@@ -1,44 +0,0 @@
1
- import { Observable } from "rxjs";
2
- import { IBimModelSearchResult, IBimSearchSetData } from "../../data";
3
-
4
- export interface IBimSearchSetService {
5
- /**
6
- * Get the first-level search sets located directly under the hidden root folder of a model.
7
- * Does not traverse into subfolders; returns only immediate children.
8
- * @param {string} id Model identifier whose root search-set folder is queried.
9
- * @returns {Observable<IBimSearchSetData[]>} Emits the list of search sets at level 1, then completes.
10
- */
11
- getFromModel(id: string): Observable<IBimSearchSetData[]>;
12
-
13
- /**
14
- * Get all search sets from the hidden root folder of a model recursively.
15
- * Traverses all nested folders and aggregates every search set found.
16
- * @param {string} id Model identifier whose search sets are retrieved recursively.
17
- * @returns {Observable<IBimSearchSetData[]>} Emits the flattened list of all search sets from all levels, then completes.
18
- */
19
- getRecursivelyFromModel(id: string): Observable<IBimSearchSetData[]>;
20
-
21
- /**
22
- * Get search sets directly contained in a specific search-set folder by its ID.
23
- * Does not include items from child folders.
24
- * @param {string} id Search-set folder identifier to read from.
25
- * @returns {Observable<IBimSearchSetData[]>} Emits the list of immediate search sets in the folder, then completes.
26
- */
27
- getFromFolder(id: string): Observable<IBimSearchSetData[]>;
28
-
29
- /**
30
- * Execute a stored search set against specified model parts.
31
- * @param {string} id Identifier of the search set to execute.
32
- * @param {string[]} modelPartIds Identifiers of model parts to include in the search scope.
33
- * @returns {Observable<IBimModelSearchResult[]>} Emits matched items for the executed search set, then completes.
34
- */
35
- executeSearchSet(id: string, modelPartIds: string[]): Observable<IBimModelSearchResult[]>;
36
-
37
- /**
38
- * Execute an ad-hoc string-based query against specified model parts.
39
- * @param {string} query Query expression.
40
- * @param {string[]} modelPartIds Identifiers of model parts to include in the search scope.
41
- * @returns {Observable<IBimModelSearchResult[]>} Emits matched items for the query, then completes.
42
- */
43
- executeStringQuery(query: string, modelPartIds: string[]): Observable<IBimModelSearchResult[]>;
44
- }
@@ -1,66 +0,0 @@
1
- import {
2
- IModifierProvider,
3
- IObjectsRepository,
4
- IProgressService,
5
- IRenderContextProvider,
6
- IRepositoryEvents,
7
- IThemeService,
8
- IPersonalSettings, IDialogService,
9
- } from '../injectable';
10
- import { IBimFeatures } from './bim-features';
11
- import { ICommandBuilderProvider } from './command-builder-provider';
12
-
13
- export class InjectionSource {
14
- constructor(
15
- private _modifierProvider: IModifierProvider,
16
- private _objectsRepository: IObjectsRepository,
17
- private _renderContextProvider: IRenderContextProvider,
18
- private _repositoryEvents: IRepositoryEvents,
19
- private _progressService: IProgressService,
20
- private _themeService: IThemeService,
21
- private _commandBuilderProvider: ICommandBuilderProvider,
22
- private _personalSettings: IPersonalSettings,
23
- private _dialogService: IDialogService,
24
- private _bimFeatures: IBimFeatures
25
- ) {}
26
-
27
- get modifierProvider(): IModifierProvider {
28
- return this._modifierProvider;
29
- }
30
-
31
- get objectsRepository(): IObjectsRepository {
32
- return this._objectsRepository;
33
- }
34
-
35
- get renderContextProvider(): IRenderContextProvider {
36
- return this._renderContextProvider;
37
- }
38
-
39
- get repositoryEvents(): IRepositoryEvents {
40
- return this._repositoryEvents;
41
- }
42
-
43
- get progressService(): IProgressService {
44
- return this._progressService;
45
- }
46
-
47
- get themeService(): IThemeService {
48
- return this._themeService;
49
- }
50
-
51
- get personalSettings(): IPersonalSettings {
52
- return this._personalSettings;
53
- }
54
-
55
- get commandBuilderProvider(): ICommandBuilderProvider {
56
- return this._commandBuilderProvider;
57
- }
58
-
59
- get dialogService(): IDialogService {
60
- return this._dialogService;
61
- }
62
-
63
- get bimFeatures(): IBimFeatures {
64
- return this._bimFeatures;
65
- }
66
- }
@@ -1,53 +0,0 @@
1
- import { Observable } from "rxjs";
2
-
3
- /**
4
- * Interface for personal settings
5
- * @interface IPersonalSettings
6
- */
7
- export interface IPersonalSettings {
8
- /**
9
- * Retrieves the personal setting value for a given key
10
- * @method getPersonalSettingValue
11
- * @param {string} key - The key of the setting to retrieve
12
- * @returns {Observable<string | undefined>} An observable containing the setting value or undefined
13
- * @memberof IPersonalSettings
14
- */
15
- getPersonalSettingValue(key: string): Observable<string | undefined>;
16
-
17
- /**
18
- * Subscribes to the personal setting value changes for a given key
19
- * @method subscribePersonalSettingValueChange
20
- * @param {string} key - The key of the setting to retrieve
21
- * @returns {Observable<string | undefined>} An observable containing the setting value or undefined
22
- * @memberof IPersonalSettings
23
- */
24
- subscribePersonalSettingValueChange(key: string): Observable<string | undefined>;
25
-
26
- /**
27
- * Retrieves the common setting value for a given key
28
- * @method getCommonSettingValue
29
- * @param {string} key - The key of the setting to retrieve
30
- * @returns {Observable<string[]>} An observable containing the array of common setting values
31
- * @memberof IPersonalSettings
32
- */
33
- getCommonSettingValue(key: string): Observable<string[]>;
34
-
35
- /**
36
- * Subscribes to the common setting value changes for a given key
37
- * @method subscribeCommonSettingValueChange
38
- * @param {string} key - The key of the setting to retrieve
39
- * @returns {Observable<string[]>} An observable containing the setting value or undefined
40
- * @memberof IPersonalSettings
41
- */
42
- subscribeCommonSettingValueChange(key: string): Observable<string[]>;
43
-
44
- /**
45
- * Changes the value of a setting
46
- * @method changeSettingValue
47
- * @param {string} key - The key of the setting to change
48
- * @param {string} value - The new value of the setting
49
- * @returns {Observable<void>}
50
- * @memberof IPersonalSettings
51
- */
52
- changeSettingValue(key: string, value: string): Observable<void>;
53
- }
@@ -1,88 +0,0 @@
1
- import { Observable } from "rxjs";
2
- import { AccessLevel, IAccessRecord } from "../data/access";
3
- import { IDataObject, IPerson, IType, IOrganisationUnit } from "../data";
4
- import { IUserStateMachine } from "../data/user-state-machine";
5
-
6
- /**
7
- * Represents the repository that provides access to objects, types, organisation units and people
8
- */
9
- export interface IObjectsRepository {
10
- /**
11
- * Get objects with specified ids
12
- *
13
- * @param ids Ids of objects to subsribe
14
- * @returns
15
- */
16
- getObjects(ids: string[]): Observable<IDataObject[]>;
17
- /**
18
- * Get object's access for the person
19
- *
20
- * @param objectId Object id
21
- * @param personId Person Id
22
- * @returns Cold Observable
23
- */
24
- getCurrentAccess(objectId: string, personId: number): Observable<AccessLevel>
25
- /**
26
- * Get access records for the object
27
- *
28
- * @param objectId Object id
29
- * @param positions Person position ids
30
- * @returns Cold Observable
31
- */
32
- getAccessRecords(objectId: string, positions: number[]): Observable<IAccessRecord[]>;
33
- /**
34
- * Gets the person with specified id
35
- *
36
- * @param id Person id
37
- * @returns Person
38
- */
39
- getPerson(id: number): IPerson;
40
- /**
41
- * Gets the current person
42
- *
43
- * @returns Person
44
- */
45
- getCurrentPerson(): IPerson
46
- /**
47
- * Gets all the people registred in database
48
- *
49
- * @returns Person[]
50
- */
51
- getPeople(): IPerson[]
52
- /**
53
- * Gets type by identifier
54
- *
55
- * @returns Type
56
- */
57
- getType(id: number): IType
58
- /**
59
- * Gets type by name
60
- *
61
- * @returns Type
62
- */
63
- getTypeByName(name: string): IType
64
- /**
65
- * Gets all the types registered in database
66
- *
67
- * @returns Type[]
68
- */
69
- getTypes(): IType[];
70
- /**
71
- * Gets organisation unit by identifier
72
- *
73
- * @returns OrganisationUnit
74
- */
75
- getOrganisationUnit(id: number): IOrganisationUnit;
76
- /**
77
- * Get all the organisation units registered in database
78
- *
79
- * @returns OrganisationUnit
80
- */
81
- getOrganisationUnits(): IOrganisationUnit[];
82
- /**
83
- * Get all the user state machines registered in database
84
- *
85
- * @returns IUserStateMachine
86
- */
87
- getUserStateMachines(): Map<string, IUserStateMachine>;
88
- }
@@ -1,20 +0,0 @@
1
- import { Observable } from "rxjs";
2
-
3
- /**
4
- *
5
- */
6
- export interface IProgressService {
7
- get percentage(): Observable<number>;
8
- get isOpen(): boolean;
9
- open(mode: ProgressBarMode): void;
10
- update(percentage: number): void;
11
- reset(): void;
12
- close(): void;
13
- }
14
-
15
- export enum ProgressBarMode {
16
- Determinate,
17
- Indeterminate,
18
- Buffer,
19
- Query
20
- }
@@ -1,11 +0,0 @@
1
- import { RenderContext } from "../contexts/render-context";
2
-
3
- /**
4
- * Provides render context
5
- */
6
- export interface IRenderContextProvider {
7
- /**
8
- *
9
- */
10
- getRenderContext(): RenderContext;
11
- }
@@ -1,33 +0,0 @@
1
- import { Observable } from "rxjs";
2
- import { IDataObject, IPerson, IType, IOrganisationUnit } from "../data";
3
-
4
-
5
- /**
6
- * Notifies on change events
7
- */
8
- export interface IRepositoryEvents {
9
- /**
10
- * Subsribes to changes in objects with specified identifiers
11
- *
12
- * @returns Hot observable
13
- */
14
- subscribeObjects(ids: string[]): Observable<IDataObject>;
15
- /**
16
- * Subsribes to changes in people
17
- *
18
- * @returns Hot observable
19
- */
20
- subscribePeople(): Observable<IPerson>
21
- /**
22
- * Subsribes to changes in types
23
- *
24
- * @returns Hot observable
25
- */
26
- subscribeTypes(): Observable<IType>
27
- /**
28
- * Subsribes to changes in organisation units
29
- *
30
- * @returns Hot observable
31
- */
32
- subscribeOrganisationUnits(): Observable<IOrganisationUnit>
33
- }
@@ -1,15 +0,0 @@
1
- import { IMenuItemBuilder } from "./menu-item.builder";
2
-
3
- /**
4
- *
5
- */
6
- export abstract class ICheckableMenuItemBuilder extends IMenuItemBuilder {
7
-
8
- /**
9
- *
10
- * @param value
11
- */
12
- withIsChecked(value: boolean): ICheckableMenuItemBuilder {
13
- throw new Error("Method 'withIsChecked(value: boolean)' must be implemented.");
14
- }
15
- }
@@ -1,45 +0,0 @@
1
- import { IMenuBuilder } from "./menu.builder";
2
-
3
- /**
4
- * Represents a menu item and enables to set parametres to it
5
- */
6
- export abstract class IMenuItemBuilder {
7
-
8
- constructor() {
9
- if (this.constructor == IMenuItemBuilder) {
10
- throw new Error("Abstract classes can't be instantiated.");
11
- }
12
- }
13
-
14
- /**
15
- * Item's name to be displayed
16
- * @param header value
17
- */
18
- withHeader(header: string): IMenuItemBuilder {
19
- throw new Error("Method 'withHeader(header: string)' must be implemented.");
20
- }
21
-
22
- /**
23
- * Item's icon
24
- * @param name Icon name
25
- * @param iconSvg Url of icon or base64 string
26
- */
27
- withIcon(name: string, iconSvg: string): IMenuItemBuilder {
28
- throw new Error("Method 'withIcon(name: string, iconSvg: string)' must be implemented.");
29
- }
30
-
31
- /**
32
- * Enabled the item
33
- * @param value value
34
- */
35
- withIsEnabled(value: boolean): IMenuItemBuilder {
36
- throw new Error("Method 'withIsEnabled(value: boolean)' must be implemented.");
37
- }
38
-
39
- /**
40
- * Item's submenu
41
- */
42
- withSubmenu(): IMenuBuilder {
43
- throw new Error("Method 'withSubmenu()' must be implemented.");
44
- }
45
- }
@@ -1,79 +0,0 @@
1
- import { ICheckableMenuItemBuilder } from "./checkable-menu.builder";
2
- import { IMenuItemBuilder } from "./menu-item.builder";
3
-
4
- /**
5
- * Represents a menu and enables to add new items to it
6
- */
7
- export abstract class IMenuBuilder {
8
-
9
- constructor() {
10
- if (this.constructor == IMenuBuilder) {
11
- throw new Error("Abstract classes can't be instantiated.");
12
- }
13
- }
14
-
15
- /**
16
- * Gets the list of existing items of associated menu or subitems of an item
17
- * @returns Existing menu item names
18
- */
19
- get itemNames(): string[] {
20
- throw new Error("Getter 'itemNames()' must be implemented.");
21
- }
22
-
23
- /**
24
- * Gets count of menu items
25
- */
26
- get count(): number {
27
- throw new Error("Getter 'count()' must be implemented.");
28
- }
29
-
30
- /**
31
- * Adds a new separator to the associated menu
32
- * @param index The index to put the new item at
33
- */
34
- addSeparator(index: number): void {
35
- throw new Error("Method 'addSeparator(index: number)' must be implemented.");
36
- }
37
-
38
- /**
39
- * Adds a new item to the associated menu
40
- * @param name Item's internal name
41
- * @param index The index to put the new item at
42
- */
43
- addItem(name: string, index: number): IMenuItemBuilder {
44
- throw new Error("Method 'addItem(name: string, index: number)' must be implemented.");
45
- }
46
-
47
- /**
48
- * Adds a new checkable item to the associated menu
49
- * @param name Item's internal name
50
- * @param index The index to put the new item at
51
- */
52
- addCheckableItem(name: string, index: number): ICheckableMenuItemBuilder {
53
- throw new Error("Method 'addCheckableItem(name: string, index: number)' must be implemented.");
54
- }
55
-
56
- /**
57
- * Replaces the item to the associated menu
58
- * @param name Item's internal name
59
- */
60
- replaceItem(name: string): IMenuItemBuilder {
61
- throw new Error("Method 'replaceItem(name: string)' must be implemented.");
62
- }
63
-
64
- /**
65
- * Removes the item with the specified name
66
- * @param name Item's internal name
67
- */
68
- removeItem(name: string): void {
69
- throw new Error("Method 'removeItem(name: string)' must be implemented.");
70
- }
71
-
72
- /**
73
- * Gets the item
74
- * @param name Item's internal name
75
- */
76
- getItem(name: string): IMenuBuilder {
77
- throw new Error("Method 'getItem(name: string)' must be implemented.");
78
- }
79
- }