@pilotdev/pilot-web-sdk 26.14.0 → 26.16.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 (196) hide show
  1. package/fesm2022/pilotdev-pilot-web-sdk.mjs +4 -0
  2. package/fesm2022/pilotdev-pilot-web-sdk.mjs.map +1 -1
  3. package/package.json +8 -9
  4. package/types/pilotdev-pilot-web-sdk.d.ts +2104 -0
  5. package/esm2022/lib/base/disposable.mjs +0 -14
  6. package/esm2022/lib/base/index.mjs +0 -3
  7. package/esm2022/lib/base/initializable.mjs +0 -14
  8. package/esm2022/lib/commands/command-builder.mjs +0 -2
  9. package/esm2022/lib/commands/index.mjs +0 -2
  10. package/esm2022/lib/contexts/bim-element-panel-context.mjs +0 -16
  11. package/esm2022/lib/contexts/bim-right-panel-context.mjs +0 -16
  12. package/esm2022/lib/contexts/context.mjs +0 -32
  13. package/esm2022/lib/contexts/dialog-context.mjs +0 -10
  14. package/esm2022/lib/contexts/document-annotations-list-context.mjs +0 -16
  15. package/esm2022/lib/contexts/index.mjs +0 -10
  16. package/esm2022/lib/contexts/object-card-context.mjs +0 -63
  17. package/esm2022/lib/contexts/page-context.mjs +0 -3
  18. package/esm2022/lib/contexts/render-context.mjs +0 -24
  19. package/esm2022/lib/contexts/settings-feature-context.mjs +0 -21
  20. package/esm2022/lib/data/access.mjs +0 -29
  21. package/esm2022/lib/data/annotations.mjs +0 -34
  22. package/esm2022/lib/data/attribute.mjs +0 -35
  23. package/esm2022/lib/data/bim-features/bim-compare-diff.mjs +0 -9
  24. package/esm2022/lib/data/bim-features/bim-search-set.mjs +0 -2
  25. package/esm2022/lib/data/bim-features/index.mjs +0 -3
  26. package/esm2022/lib/data/cades-type.mjs +0 -13
  27. package/esm2022/lib/data/certificate.mjs +0 -2
  28. package/esm2022/lib/data/data-object.mjs +0 -19
  29. package/esm2022/lib/data/expected-error.mjs +0 -9
  30. package/esm2022/lib/data/file.mjs +0 -2
  31. package/esm2022/lib/data/files-snapshot.mjs +0 -2
  32. package/esm2022/lib/data/index.mjs +0 -21
  33. package/esm2022/lib/data/organisation-unit.mjs +0 -7
  34. package/esm2022/lib/data/person.mjs +0 -2
  35. package/esm2022/lib/data/relation.mjs +0 -2
  36. package/esm2022/lib/data/signature-custom-state.mjs +0 -2
  37. package/esm2022/lib/data/signature-verification-result.mjs +0 -2
  38. package/esm2022/lib/data/signature-verification-status.mjs +0 -11
  39. package/esm2022/lib/data/subscription-type.mjs +0 -6
  40. package/esm2022/lib/data/theme.mjs +0 -6
  41. package/esm2022/lib/data/user-state-machine.mjs +0 -2
  42. package/esm2022/lib/data/user-state.mjs +0 -12
  43. package/esm2022/lib/icrypto-provider.mjs +0 -96
  44. package/esm2022/lib/idata.plugin.mjs +0 -11
  45. package/esm2022/lib/injectable/bim-features/bim-compare-diff-service.mjs +0 -2
  46. package/esm2022/lib/injectable/bim-features/bim-features.mjs +0 -2
  47. package/esm2022/lib/injectable/bim-features/bim-search-set-service.mjs +0 -2
  48. package/esm2022/lib/injectable/bim-features/index.mjs +0 -4
  49. package/esm2022/lib/injectable/command-builder-provider.mjs +0 -2
  50. package/esm2022/lib/injectable/dialog-service.mjs +0 -2
  51. package/esm2022/lib/injectable/index.mjs +0 -12
  52. package/esm2022/lib/injectable/injection-source.mjs +0 -55
  53. package/esm2022/lib/injectable/ipersonal-settings.mjs +0 -2
  54. package/esm2022/lib/injectable/modifier-provider.mjs +0 -2
  55. package/esm2022/lib/injectable/objects-repository.mjs +0 -2
  56. package/esm2022/lib/injectable/progress-service.mjs +0 -8
  57. package/esm2022/lib/injectable/render-context-provider.mjs +0 -2
  58. package/esm2022/lib/injectable/repository-events.mjs +0 -2
  59. package/esm2022/lib/injectable/theme-service.mjs +0 -2
  60. package/esm2022/lib/menu/checkable-menu.builder.mjs +0 -14
  61. package/esm2022/lib/menu/index.mjs +0 -5
  62. package/esm2022/lib/menu/menu-item.builder.mjs +0 -39
  63. package/esm2022/lib/menu/menu.builder.mjs +0 -68
  64. package/esm2022/lib/menu/menu.mjs +0 -23
  65. package/esm2022/lib/modifier/attribute-modifier.mjs +0 -2
  66. package/esm2022/lib/modifier/index.mjs +0 -5
  67. package/esm2022/lib/modifier/modifier.mjs +0 -2
  68. package/esm2022/lib/modifier/object-builder.mjs +0 -2
  69. package/esm2022/lib/modifier/signature-modifier.mjs +0 -2
  70. package/esm2022/lib/object-card/attribute-value-changed-event-args.mjs +0 -20
  71. package/esm2022/lib/object-card/index.mjs +0 -3
  72. package/esm2022/lib/object-card/object-card-handler.mjs +0 -30
  73. package/esm2022/lib/openspace/index.mjs +0 -2
  74. package/esm2022/lib/openspace/openspace-view.mjs +0 -29
  75. package/esm2022/lib/page-navigation/index.mjs +0 -5
  76. package/esm2022/lib/page-navigation/page-navigation-section-element.builder.mjs +0 -42
  77. package/esm2022/lib/page-navigation/page-navigation-section.builder.mjs +0 -47
  78. package/esm2022/lib/page-navigation/page-navigation.builder.mjs +0 -40
  79. package/esm2022/lib/page-navigation/page-navigation.mjs +0 -15
  80. package/esm2022/lib/personal-settings/index.mjs +0 -4
  81. package/esm2022/lib/personal-settings/isettings-feature.mjs +0 -42
  82. package/esm2022/lib/personal-settings/isettings-value-provider.mjs +0 -27
  83. package/esm2022/lib/personal-settings/system-settings-keys.mjs +0 -83
  84. package/esm2022/lib/tabs/index.mjs +0 -4
  85. package/esm2022/lib/tabs/tab-item.builder.mjs +0 -35
  86. package/esm2022/lib/tabs/tabs.builder.mjs +0 -40
  87. package/esm2022/lib/tabs/tabs.mjs +0 -15
  88. package/esm2022/lib/toolbar/index.mjs +0 -7
  89. package/esm2022/lib/toolbar/toolbar-item-submenu.handler.mjs +0 -11
  90. package/esm2022/lib/toolbar/toolbar-item.builder.mjs +0 -41
  91. package/esm2022/lib/toolbar/toolbar-menu-item.builder.mjs +0 -15
  92. package/esm2022/lib/toolbar/toolbar-toggle-item.builder.mjs +0 -14
  93. package/esm2022/lib/toolbar/toolbar.builder.mjs +0 -88
  94. package/esm2022/lib/toolbar/toolbar.mjs +0 -28
  95. package/esm2022/lib/tools/attribute-permission.info.mjs +0 -45
  96. package/esm2022/lib/tools/guid.mjs +0 -53
  97. package/esm2022/lib/tools/index.mjs +0 -4
  98. package/esm2022/lib/tools/utils.mjs +0 -8
  99. package/esm2022/pilotdev-pilot-web-sdk.mjs +0 -5
  100. package/esm2022/public-api.mjs +0 -20
  101. package/index.d.ts +0 -5
  102. package/lib/base/disposable.d.ts +0 -7
  103. package/lib/base/index.d.ts +0 -2
  104. package/lib/base/initializable.d.ts +0 -8
  105. package/lib/commands/command-builder.d.ts +0 -15
  106. package/lib/commands/index.d.ts +0 -1
  107. package/lib/contexts/bim-element-panel-context.d.ts +0 -8
  108. package/lib/contexts/bim-right-panel-context.d.ts +0 -8
  109. package/lib/contexts/context.d.ts +0 -22
  110. package/lib/contexts/dialog-context.d.ts +0 -5
  111. package/lib/contexts/document-annotations-list-context.d.ts +0 -12
  112. package/lib/contexts/index.d.ts +0 -9
  113. package/lib/contexts/object-card-context.d.ts +0 -41
  114. package/lib/contexts/page-context.d.ts +0 -2
  115. package/lib/contexts/render-context.d.ts +0 -17
  116. package/lib/contexts/settings-feature-context.d.ts +0 -11
  117. package/lib/data/access.d.ts +0 -38
  118. package/lib/data/annotations.d.ts +0 -113
  119. package/lib/data/attribute.d.ts +0 -48
  120. package/lib/data/bim-features/bim-compare-diff.d.ts +0 -15
  121. package/lib/data/bim-features/bim-search-set.d.ts +0 -13
  122. package/lib/data/bim-features/index.d.ts +0 -2
  123. package/lib/data/cades-type.d.ts +0 -11
  124. package/lib/data/certificate.d.ts +0 -29
  125. package/lib/data/data-object.d.ts +0 -77
  126. package/lib/data/expected-error.d.ts +0 -5
  127. package/lib/data/file.d.ts +0 -31
  128. package/lib/data/files-snapshot.d.ts +0 -8
  129. package/lib/data/index.d.ts +0 -20
  130. package/lib/data/organisation-unit.d.ts +0 -20
  131. package/lib/data/person.d.ts +0 -17
  132. package/lib/data/relation.d.ts +0 -8
  133. package/lib/data/signature-custom-state.d.ts +0 -23
  134. package/lib/data/signature-verification-result.d.ts +0 -18
  135. package/lib/data/signature-verification-status.d.ts +0 -9
  136. package/lib/data/subscription-type.d.ts +0 -4
  137. package/lib/data/theme.d.ts +0 -7
  138. package/lib/data/user-state-machine.d.ts +0 -10
  139. package/lib/data/user-state.d.ts +0 -20
  140. package/lib/icrypto-provider.d.ts +0 -82
  141. package/lib/idata.plugin.d.ts +0 -6
  142. package/lib/injectable/bim-features/bim-compare-diff-service.d.ts +0 -4
  143. package/lib/injectable/bim-features/bim-features.d.ts +0 -6
  144. package/lib/injectable/bim-features/bim-search-set-service.d.ts +0 -39
  145. package/lib/injectable/bim-features/index.d.ts +0 -3
  146. package/lib/injectable/command-builder-provider.d.ts +0 -10
  147. package/lib/injectable/dialog-service.d.ts +0 -5
  148. package/lib/injectable/index.d.ts +0 -11
  149. package/lib/injectable/injection-source.d.ts +0 -26
  150. package/lib/injectable/ipersonal-settings.d.ts +0 -48
  151. package/lib/injectable/modifier-provider.d.ts +0 -10
  152. package/lib/injectable/objects-repository.d.ts +0 -87
  153. package/lib/injectable/progress-service.d.ts +0 -18
  154. package/lib/injectable/render-context-provider.d.ts +0 -10
  155. package/lib/injectable/repository-events.d.ts +0 -31
  156. package/lib/injectable/theme-service.d.ts +0 -6
  157. package/lib/menu/checkable-menu.builder.d.ts +0 -11
  158. package/lib/menu/index.d.ts +0 -4
  159. package/lib/menu/menu-item.builder.d.ts +0 -27
  160. package/lib/menu/menu.builder.d.ts +0 -49
  161. package/lib/menu/menu.d.ts +0 -20
  162. package/lib/modifier/attribute-modifier.d.ts +0 -9
  163. package/lib/modifier/index.d.ts +0 -4
  164. package/lib/modifier/modifier.d.ts +0 -30
  165. package/lib/modifier/object-builder.d.ts +0 -140
  166. package/lib/modifier/signature-modifier.d.ts +0 -87
  167. package/lib/object-card/attribute-value-changed-event-args.d.ts +0 -10
  168. package/lib/object-card/index.d.ts +0 -2
  169. package/lib/object-card/object-card-handler.d.ts +0 -25
  170. package/lib/openspace/index.d.ts +0 -1
  171. package/lib/openspace/openspace-view.d.ts +0 -20
  172. package/lib/page-navigation/index.d.ts +0 -4
  173. package/lib/page-navigation/page-navigation-section-element.builder.d.ts +0 -29
  174. package/lib/page-navigation/page-navigation-section.builder.d.ts +0 -33
  175. package/lib/page-navigation/page-navigation.builder.d.ts +0 -28
  176. package/lib/page-navigation/page-navigation.d.ts +0 -9
  177. package/lib/personal-settings/index.d.ts +0 -3
  178. package/lib/personal-settings/isettings-feature.d.ts +0 -31
  179. package/lib/personal-settings/isettings-value-provider.d.ts +0 -17
  180. package/lib/personal-settings/system-settings-keys.d.ts +0 -82
  181. package/lib/tabs/index.d.ts +0 -3
  182. package/lib/tabs/tab-item.builder.d.ts +0 -24
  183. package/lib/tabs/tabs.builder.d.ts +0 -28
  184. package/lib/tabs/tabs.d.ts +0 -14
  185. package/lib/toolbar/index.d.ts +0 -6
  186. package/lib/toolbar/toolbar-item-submenu.handler.d.ts +0 -9
  187. package/lib/toolbar/toolbar-item.builder.d.ts +0 -28
  188. package/lib/toolbar/toolbar-menu-item.builder.d.ts +0 -13
  189. package/lib/toolbar/toolbar-toggle-item.builder.d.ts +0 -11
  190. package/lib/toolbar/toolbar.builder.d.ts +0 -65
  191. package/lib/toolbar/toolbar.d.ts +0 -21
  192. package/lib/tools/attribute-permission.info.d.ts +0 -9
  193. package/lib/tools/guid.d.ts +0 -7
  194. package/lib/tools/index.d.ts +0 -3
  195. package/lib/tools/utils.d.ts +0 -3
  196. package/public-api.d.ts +0 -16
@@ -1,113 +0,0 @@
1
- import { IDataObject } from "./data-object";
2
- import { IUserState } from "./user-state";
3
- export interface IAnnotationContainerObject {
4
- get container(): IAnnotationContainer;
5
- get source(): IDataObject;
6
- get attributes(): any;
7
- get markups(): IMarkup[];
8
- get statesInfo(): IAnnotationStatesInfo;
9
- }
10
- export interface IAnnotationContainer {
11
- get annotationId(): string;
12
- get version(): string;
13
- get positionX(): number;
14
- get positionY(): number;
15
- get pageNumber(): number;
16
- get data(): string;
17
- get kind(): string;
18
- }
19
- export interface IMarkup {
20
- get annotationId(): string;
21
- get id(): number;
22
- get page(): number;
23
- get style(): IMarkupStyle | undefined;
24
- get subtype(): MarkupSubtype;
25
- }
26
- export interface IMarkupStyle {
27
- get colorRgb(): number | undefined;
28
- get strokeWidth(): number | undefined;
29
- get backgroundColorRgb(): number | undefined;
30
- get lineStyle(): MarkupLineStyle | undefined;
31
- }
32
- export declare enum MarkupLineStyle {
33
- Solid = 0,
34
- Dashed = 1,
35
- Beveled = 2,
36
- Inset = 3,
37
- Underline = 4
38
- }
39
- export declare enum BorderEffect {
40
- None = 0,
41
- Cloud = 1
42
- }
43
- export interface IAnnotationStatesInfo {
44
- get states(): Map<string, IUserState>;
45
- get availableTransitions(): IStateTransitionCommandArg[];
46
- get metadataVersion(): number;
47
- }
48
- export interface IStateTransitionCommandArg {
49
- get stateTo(): IUserState;
50
- get transitionTitle(): string;
51
- get attrName(): string;
52
- }
53
- export interface IEllipseMarkup extends IMarkup {
54
- get center(): MarkupPoint;
55
- get radiusX(): number;
56
- get radiusY(): number;
57
- }
58
- export interface IRectangleMarkup extends IMarkup {
59
- get bounds(): MarkupRect;
60
- }
61
- export interface ILineMarkup extends IMarkup {
62
- get start(): MarkupPoint;
63
- get end(): MarkupPoint;
64
- get startEnding(): MarkupLineEndings;
65
- get endEnding(): MarkupLineEndings;
66
- }
67
- export interface IPolylineMarkup extends IMarkup {
68
- get points(): MarkupPoint[];
69
- get borderEffect(): BorderEffect;
70
- }
71
- export interface IPolygonMarkup extends IMarkup {
72
- get points(): MarkupPoint[];
73
- get borderEffect(): BorderEffect;
74
- }
75
- export interface IInkMarkup extends IMarkup {
76
- get points(): MarkupPoint[];
77
- }
78
- export interface IFreeTextMarkup extends IMarkup {
79
- get bounds(): MarkupRect;
80
- get text(): string;
81
- }
82
- export interface ITextDecorationMarkup extends IMarkup {
83
- get quadPoints(): MarkupPoint[];
84
- get kind(): MarkupTextDecorationKind;
85
- }
86
- export interface ITextMarkup extends IMarkup {
87
- get bounds(): MarkupRect;
88
- }
89
- export declare enum MarkupTextDecorationKind {
90
- Highlight = 0,
91
- Underline = 1,
92
- Squiggly = 2,
93
- StrikeOut = 3
94
- }
95
- export type MarkupPoint = {
96
- x: number;
97
- y: number;
98
- };
99
- export type MarkupRect = {
100
- x: number;
101
- y: number;
102
- width: number;
103
- height: number;
104
- };
105
- export declare enum MarkupLineEndings {
106
- None = 0,
107
- Square = 1,
108
- Circle = 2,
109
- Diamond = 3,
110
- OpenArrow = 4,
111
- ClosedArrow = 5
112
- }
113
- export type MarkupSubtype = 'Link' | 'Text' | 'Widget' | 'Popup' | 'FreeText' | 'Line' | 'Arrow' | 'Square' | 'Circle' | 'PolyLine' | 'Polygon' | 'Cloud' | 'Caret' | 'Ink' | 'Highlight' | 'Underline' | 'Squiggly' | 'StrikeOut' | 'Stamp' | 'FileAttachment';
@@ -1,48 +0,0 @@
1
- export interface IAttribute {
2
- get name(): string;
3
- get title(): string;
4
- get obligatory(): boolean;
5
- get type(): AttributeType;
6
- get displayHeight(): number;
7
- get showInTree(): boolean;
8
- get displaySortOrder(): number;
9
- get isService(): boolean;
10
- get configuration(): string;
11
- get joinWithPrevious(): boolean;
12
- get isUnique(): boolean;
13
- get groupTitle(): string;
14
- get editableForPositionsSource(): string[];
15
- get uniquenessType(): AttributeUniquenessType;
16
- }
17
- export declare enum AttributeType {
18
- Integer = 0,
19
- Double = 1,
20
- DateTime = 2,
21
- String = 3,
22
- Decimal = 4,
23
- Numerator = 5,
24
- Array = 6,
25
- UserState = 7,
26
- OrgUnit = 8,
27
- ElementBook = 9,
28
- Inherited = 10,
29
- Boolean = 11,
30
- ByteArray = 12
31
- }
32
- /**
33
- * Тип проверки уникальности.
34
- */
35
- export declare enum AttributeUniquenessType {
36
- /**
37
- * Не проверять.
38
- */
39
- NotUnique = 0,
40
- /**
41
- * Показывать предупреждение.
42
- */
43
- Warning = 1,
44
- /**
45
- * Запрещать создание дубликатов.
46
- */
47
- Prohibition = 2
48
- }
@@ -1,15 +0,0 @@
1
- export declare enum CompareResultType {
2
- Added = "added",
3
- Modified = "modified",
4
- AttributesModified = "attributesModified",
5
- Deleted = "deleted",
6
- Unchanged = "unchanged"
7
- }
8
- export interface IDisplayParam {
9
- visible: boolean;
10
- highlight: boolean;
11
- r: number;
12
- g: number;
13
- b: number;
14
- a: number;
15
- }
@@ -1,13 +0,0 @@
1
- import { IDataObject } from "../data-object";
2
- export interface IBimSearchSetData {
3
- get id(): string;
4
- get title(): string;
5
- get query(): string;
6
- get source(): IDataObject;
7
- get isFolder(): boolean;
8
- get isDeleted(): boolean;
9
- }
10
- export interface IBimModelSearchResult {
11
- get globalIdReadable(): string;
12
- get modelPartId(): string;
13
- }
@@ -1,2 +0,0 @@
1
- export * from './bim-search-set';
2
- export * from './bim-compare-diff';
@@ -1,11 +0,0 @@
1
- export declare enum CadesType {
2
- Unknown = 0,
3
- NotCades = 1,
4
- CadesBes = 2,
5
- CadesEpes = 3,
6
- CadesT = 4,
7
- CadesC = 5,
8
- CadesXLongType1 = 6,
9
- CadesXLongType2 = 7,
10
- CadesA = 8
11
- }
@@ -1,29 +0,0 @@
1
- /**
2
- * Represents a certificate with validity dates, issuer, and subject information.
3
- */
4
- export interface ICertificate {
5
- /**
6
- * the thumbprint of the certificate.
7
- */
8
- get thumbprint(): string;
9
- /**
10
- * Validity end date of the certificate.
11
- */
12
- get validToDate(): string;
13
- /**
14
- * Validity start date of the certificate.
15
- */
16
- get validFromDate(): string;
17
- /**
18
- * Issuer of the certificate.
19
- */
20
- get issuer(): string;
21
- /**
22
- * Subject of the certificate.
23
- */
24
- get subject(): string;
25
- /**
26
- * The signature algorithm used in the certificate.
27
- */
28
- get publicKeyOid(): string;
29
- }
@@ -1,77 +0,0 @@
1
- import { AccessLevel, IAccessRecord } from "./access";
2
- import { IAttribute } from "./attribute";
3
- import { IFileSnapshot } from "./files-snapshot";
4
- import { IPerson } from "./person";
5
- import { IRelation } from "./relation";
6
- export declare enum RelationType {
7
- SourceFiles = 1,
8
- TaskInitiatorAttachments = 2,
9
- TaskExecutorAttachments = 3,
10
- MessageAttachments = 4,
11
- Custom = 5,
12
- TaskAttachments = 6
13
- }
14
- export declare enum ObjectState {
15
- Alive = 0,
16
- InRecycleBin = 1,
17
- DeletedPermanently = 2,
18
- Frozen = 3,
19
- LockRequested = 4,
20
- LockAccepted = 5
21
- }
22
- export interface IDataObject {
23
- get id(): string;
24
- get parentId(): string;
25
- get title(): string;
26
- get type(): IType;
27
- get attributes(): {
28
- [key: string]: any;
29
- };
30
- get children(): IChild[];
31
- get creator(): IPerson;
32
- get modifiedBy(): IPerson;
33
- get created(): string;
34
- get modifiedDate(): string;
35
- get actualFileSnapshot(): IFileSnapshot;
36
- get previousFileSnapshots(): IFileSnapshot[];
37
- get context(): string[];
38
- get relations(): IRelation[];
39
- get access(): IAccessRecord[];
40
- get accessLevel(): AccessLevel;
41
- get allowedSubtypes(): number[];
42
- get stateInfo(): IStateInfo;
43
- get secretInfo(): ISecretInfo;
44
- get historyItems(): string[];
45
- get subscribers(): number[];
46
- }
47
- export interface IType {
48
- get id(): number;
49
- get title(): string;
50
- get name(): string;
51
- get icon(): string;
52
- get sort(): number;
53
- get hasFiles(): boolean;
54
- get children(): number[];
55
- get attributes(): IAttribute[];
56
- get isDeleted(): boolean;
57
- get kind(): number;
58
- get isMountable(): boolean;
59
- get isService(): boolean;
60
- get isProject(): boolean;
61
- get configuration(): string;
62
- }
63
- export interface IChild {
64
- get objectId(): string;
65
- get typeId(): number;
66
- }
67
- export interface ISecretInfo {
68
- get isSecret(): boolean;
69
- get secretParentId(): string;
70
- get secretChangedBy(): number;
71
- }
72
- export interface IStateInfo {
73
- get state(): ObjectState;
74
- get date(): string;
75
- get personId(): number;
76
- get positionId(): number;
77
- }
@@ -1,5 +0,0 @@
1
- export declare class ExpectedError extends Error {
2
- isSilent: boolean;
3
- isExpected: boolean;
4
- constructor(message: string, isSilent?: boolean);
5
- }
@@ -1,31 +0,0 @@
1
- import { CadesType } from "./cades-type";
2
- export interface IFile {
3
- get body(): IFileBody;
4
- get name(): string;
5
- get creatorId(): number;
6
- get stateId(): string;
7
- get signatureRequests(): ISignatureRequest[];
8
- }
9
- export interface IFileBody {
10
- get id(): string;
11
- get size(): number;
12
- get md5Hex(): string;
13
- get modified(): string;
14
- get created(): string;
15
- get accessed(): string;
16
- }
17
- export interface ISignatureRequest {
18
- get id(): string;
19
- /**
20
- * @deprecated
21
- */
22
- readonly databaseId?: string | undefined;
23
- get positionId(): number;
24
- get role(): string | undefined;
25
- get signs(): string[] | undefined;
26
- get requestedSigner(): string | undefined;
27
- get objectId(): string | undefined;
28
- get publicKeyOid(): string | undefined;
29
- get lastSignCadesType(): CadesType;
30
- get isAdvancementRequired(): boolean;
31
- }
@@ -1,8 +0,0 @@
1
- import { IFile } from "./file";
2
- export interface IFileSnapshot {
3
- get created(): string;
4
- get creatorId(): number;
5
- get reason(): string;
6
- get files(): IFile[];
7
- get hasAnnotations(): boolean;
8
- }
@@ -1,20 +0,0 @@
1
- export * from './access';
2
- export * from './annotations';
3
- export * from './attribute';
4
- export * from './certificate';
5
- export * from './expected-error';
6
- export * from './data-object';
7
- export * from './file';
8
- export * from './files-snapshot';
9
- export * from './person';
10
- export * from './relation';
11
- export * from './organisation-unit';
12
- export * from './cades-type';
13
- export * from './signature-verification-result';
14
- export * from './signature-verification-status';
15
- export * from './subscription-type';
16
- export * from './theme';
17
- export * from './signature-custom-state';
18
- export * from './bim-features';
19
- export * from './user-state-machine';
20
- export * from './user-state';
@@ -1,20 +0,0 @@
1
- export interface IOrganisationUnit {
2
- get id(): number;
3
- get title(): string;
4
- get kind(): OrgUnitKind;
5
- get children(): number[];
6
- get parentId(): number;
7
- get isDeleted(): boolean;
8
- get isBoss(): boolean;
9
- get version(): number;
10
- get person(): number;
11
- get vicePersons(): number[];
12
- get isCanceled(): boolean;
13
- get groupPersons(): number[];
14
- get permanentVicePersons(): number[];
15
- }
16
- export declare enum OrgUnitKind {
17
- Department = 0,
18
- Position = 1,
19
- Group = 2
20
- }
@@ -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,8 +0,0 @@
1
- import { RelationType } from "./data-object";
2
- export interface IRelation {
3
- get id(): string;
4
- get targetId(): string;
5
- get type(): RelationType;
6
- get name(): string;
7
- get versionId(): string;
8
- }
@@ -1,23 +0,0 @@
1
- /**
2
- * Sets for signature the custom icon and title to the tooltip
3
- * @interface ISignatureCustomState
4
- *
5
- * @property { string } icon - base64 string
6
- * @property { string } iconName - unique icon name with prefix of the plugin name `${unique_prefix}-${icon_name}`
7
- * @property { string } title - tooltip title
8
- * @property { string } description - tooltip description
9
- *
10
- * @example
11
- * const customState: ISignatureCustomState = {
12
- * icon: 'data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+DQogIC5zdC1yZWR7ZmlsbDogI2ZmYjgyOTt9DQogIC5zdC13aGl0ZXtmaWxsOiNmZmZmZmY7fQ0KPC9zdHlsZT4NCjxjaXJjbGUgY2xhc3M9InN0LXJlZCIgY3g9IjgiIGN5PSI4IiByPSI3Ii8+DQo8cGF0aCBjbGFzcz0ic3Qtd2hpdGUiIGQ9Im01LjcwNyA0LjI5My0xLjQxNDEgMS40MTQxIDIuMjkzIDIuMjkzLTIuMjkzIDIuMjkzIDEuNDE0MSAxLjQxNDEgMi4yOTMtMi4yOTMgMi4yOTMgMi4yOTMgMS40MTQxLTEuNDE0MS0yLjI5My0yLjI5MyAyLjI5My0yLjI5My0xLjQxNDEtMS40MTQxLTIuMjkzIDIuMjkzLTIuMjkzLTIuMjkzeiIvPg0KPC9zdmc+DQo=',
13
- * iconName: 'cryptoprovider_custom-error',
14
- * title: 'Custom state error',
15
- * description: 'Custom state error was thrown',
16
- * };
17
- */
18
- export interface ISignatureCustomState {
19
- icon: string;
20
- iconName: string;
21
- title: string;
22
- description: string;
23
- }
@@ -1,18 +0,0 @@
1
- import { SignatureVerificationStatus } from "./signature-verification-status";
2
- import { ISignatureCustomState } from "./signature-custom-state";
3
- import { CadesType } from "./cades-type";
4
- export interface ISignatureVerificationResultBase {
5
- verificationStatus: SignatureVerificationStatus;
6
- error?: string;
7
- signerName?: string;
8
- }
9
- export interface ISignatureVerificationResult extends ISignatureVerificationResultBase {
10
- issuerName?: string;
11
- signDate?: string;
12
- customState?: ISignatureCustomState;
13
- signerNameForeground?: string;
14
- }
15
- export interface IImportedSignatureVerificationResult extends ISignatureVerificationResultBase {
16
- publicKeyOid: string;
17
- cadesType: CadesType;
18
- }
@@ -1,9 +0,0 @@
1
- export declare enum SignatureVerificationStatus {
2
- Unknown = 0,
3
- Valid = 1,
4
- ValidWithWarnings = 2,
5
- CannotBeChecked = 3,
6
- Duplicate = 4,
7
- Invalid = 5,
8
- Error = 6
9
- }
@@ -1,4 +0,0 @@
1
- export declare enum SubscriptionType {
2
- Shallow = 0,
3
- Deep = 1
4
- }
@@ -1,7 +0,0 @@
1
- export declare enum Theme {
2
- Light = 0,
3
- Dark = 1
4
- }
5
- export interface Themes {
6
- get theme(): Theme;
7
- }
@@ -1,10 +0,0 @@
1
- export interface IUserStateMachine {
2
- get id(): string;
3
- get title(): string;
4
- get stateTransitions(): Map<string, ITransition[]>;
5
- }
6
- export interface ITransition {
7
- get stateTo(): string;
8
- get displayName(): string;
9
- get availableForPositionsSource(): string[];
10
- }
@@ -1,20 +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
- export declare enum UserStateColors {
12
- None = 0,
13
- Color1 = 1,
14
- Color2 = 2,
15
- Color3 = 3,
16
- Color4 = 4,
17
- Color5 = 5,
18
- Color6 = 6,
19
- Color7 = 7
20
- }
@@ -1,82 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { IFile, IImportedSignatureVerificationResult, ISignatureRequest, ISignatureVerificationResult } from './data';
3
- import { ICertificate } from './data/certificate';
4
- /**
5
- * Represents a cryptographic provider interface for signing, verifying, and retrieving certificates.
6
- * @exposedInterface
7
- */
8
- export declare abstract class ICryptoProvider {
9
- constructor();
10
- /**
11
- * Signs a file with a digital signature using the provided certificate.
12
- *
13
- * @param documentId The documentId, represented as string.
14
- * @param actualFile The actualFile for additional information, represented as an IFile.
15
- * @param arrayBuffer The file to be signed, represented as an ArrayBuffer.
16
- * @param certificate The digital certificate to use for signing, represented as an ArrayBuffer.
17
- * @param signatureRequestIds An array of IDs for the signature requests.
18
- * @returns An observable that resolves to the digital signature as a string.
19
- */
20
- sign(documentId: string, actualFile: IFile, arrayBuffer: ArrayBuffer, certificate: ICertificate, signatureRequestIds: string[]): Observable<string>;
21
- /**
22
- * Verifies the digital signature of a file.
23
- *
24
- * @param file - The file data to be verified. This should be the raw binary data of the file.
25
- * @param sign - The digital signature to be verified against the file. This should be the raw binary data of the signature.
26
- * @param signatureRequest - Description of signature's request.
27
- * @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.
28
- *
29
- * @example
30
- const fileData = new ArrayBuffer(1024);
31
- const signatureData = new ArrayBuffer(256);
32
- verify(fileData, signatureData, signatureRequest).subscribe(result => {
33
- if (result.verificationStatus === F.Valid) {
34
- console.log("Signature is valid");
35
- } else {
36
- console.log(`Signature is invalid: ${result.error}`);
37
- }
38
- });
39
- */
40
- verify(file: ArrayBuffer, sign: ArrayBuffer, signatureRequest: ISignatureRequest): Observable<ISignatureVerificationResult>;
41
- /**
42
- * Verifies the digital signature that being imported.
43
- *
44
- * @param file - The file data to be verified. This should be the raw binary data of the file.
45
- * @param sign - The digital signature to be verified against the file. This should be the raw binary data of the signature.
46
- * @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.
47
- *
48
- * @example
49
- const fileData = new ArrayBuffer(1024);
50
- const signatureData = new ArrayBuffer(256);
51
- verifyImportedSignature(fileData, signatureData).subscribe(result => {
52
- if (result.verificationStatus === F.Valid) {
53
- console.log("Signature is valid");
54
- } else {
55
- console.log(`Signature is invalid: ${result.error}`);
56
- }
57
- });
58
- */
59
- verifyImportedSignature(file: ArrayBuffer, sign: ArrayBuffer): Observable<IImportedSignatureVerificationResult>;
60
- /**
61
- * Retrieves a list of digital certificates.
62
- *
63
- * @returns An observable that resolves to an array of ICertificate objects.
64
- */
65
- getCertificates(): Observable<ICertificate[]>;
66
- /** Determines whether the cryptoprovider can process the specified algorithm(s).
67
- *
68
- * @param publicKeyOid public key's oid used to create digital signature.
69
- * @returns {boolean} True if the cryptoprovider can process the algorithm(s), false otherwise.
70
- *
71
- * @example
72
- * // When the client tries to determine if this provider can process algorithm
73
- * const can = canProcessAlgorithms("1.2.840.113549.1.1.1");
74
- */
75
- canProcessAlgorithms(publicKeyOid: string): boolean;
76
- /** Determines whether the cryptoprovider can process signature. The method is needed when the signature is being imported and the signature algorithm is unknown.
77
- *
78
- * @param signatureFile signature file.
79
- * @returns {boolean} True if the cryptoprovider can process the signature, false otherwise.
80
- */
81
- canProcessSignature(signatureFile: ArrayBuffer): boolean;
82
- }
@@ -1,6 +0,0 @@
1
- /**
2
- * @exposedInterface
3
- */
4
- export declare abstract class IDataPlugin {
5
- constructor();
6
- }
@@ -1,4 +0,0 @@
1
- import { CompareResultType, IDisplayParam } from "../../data/bim-features/bim-compare-diff";
2
- export interface IBimCompareDiffService {
3
- updateDiffDisplayParams(type: CompareResultType, func: (old: IDisplayParam) => IDisplayParam): void;
4
- }
@@ -1,6 +0,0 @@
1
- import { IBimCompareDiffService } from "./bim-compare-diff-service";
2
- import { IBimSearchSetService } from "./bim-search-set-service";
3
- export interface IBimFeatures {
4
- get searchSetService(): IBimSearchSetService;
5
- get compareDisplayParamsService(): IBimCompareDiffService;
6
- }