@twinfinity/twin 5.0.3-ci.27942

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 (168) hide show
  1. package/dist/BuildInfo.d.ts +25 -0
  2. package/dist/BuildInfo.d.ts.map +1 -0
  3. package/dist/BuildInfo.js +15 -0
  4. package/dist/BuildInfo.js.map +1 -0
  5. package/dist/TwinClient.d.ts +156 -0
  6. package/dist/TwinClient.d.ts.map +1 -0
  7. package/dist/TwinClient.js +682 -0
  8. package/dist/TwinClient.js.map +1 -0
  9. package/dist/errors.d.ts +51 -0
  10. package/dist/errors.d.ts.map +1 -0
  11. package/dist/errors.js +79 -0
  12. package/dist/errors.js.map +1 -0
  13. package/dist/index.d.ts +4 -0
  14. package/dist/index.d.ts.map +1 -0
  15. package/dist/index.js +4 -0
  16. package/dist/index.js.map +1 -0
  17. package/dist/tsconfig.tsbuildinfo +1 -0
  18. package/dist/types/Twin.d.ts +7 -0
  19. package/dist/types/Twin.d.ts.map +1 -0
  20. package/dist/types/Twin.js +6 -0
  21. package/dist/types/Twin.js.map +1 -0
  22. package/dist/types/TwinGeometryInfo.d.ts +7 -0
  23. package/dist/types/TwinGeometryInfo.d.ts.map +1 -0
  24. package/dist/types/TwinGeometryInfo.js +2 -0
  25. package/dist/types/TwinGeometryInfo.js.map +1 -0
  26. package/dist/types/asset-api.d.ts +57 -0
  27. package/dist/types/asset-api.d.ts.map +1 -0
  28. package/dist/types/asset-api.js +2 -0
  29. package/dist/types/asset-api.js.map +1 -0
  30. package/dist/types/asset-batch-api.d.ts +71 -0
  31. package/dist/types/asset-batch-api.d.ts.map +1 -0
  32. package/dist/types/asset-batch-api.js +2 -0
  33. package/dist/types/asset-batch-api.js.map +1 -0
  34. package/dist/types/common.d.ts +10 -0
  35. package/dist/types/common.d.ts.map +1 -0
  36. package/dist/types/common.js +2 -0
  37. package/dist/types/common.js.map +1 -0
  38. package/dist/types/generated.d.ts +388 -0
  39. package/dist/types/generated.d.ts.map +1 -0
  40. package/dist/types/generated.js +2 -0
  41. package/dist/types/generated.js.map +1 -0
  42. package/dist/types/index.d.ts +7 -0
  43. package/dist/types/index.d.ts.map +1 -0
  44. package/dist/types/index.js +7 -0
  45. package/dist/types/index.js.map +1 -0
  46. package/dist/types/twin-api.d.ts +88 -0
  47. package/dist/types/twin-api.d.ts.map +1 -0
  48. package/dist/types/twin-api.js +2 -0
  49. package/dist/types/twin-api.js.map +1 -0
  50. package/dist/types/twin-file-api.d.ts +61 -0
  51. package/dist/types/twin-file-api.d.ts.map +1 -0
  52. package/dist/types/twin-file-api.js +2 -0
  53. package/dist/types/twin-file-api.js.map +1 -0
  54. package/docs/.nojekyll +1 -0
  55. package/docs/assets/hierarchy.js +1 -0
  56. package/docs/assets/highlight.css +22 -0
  57. package/docs/assets/icons.js +18 -0
  58. package/docs/assets/icons.svg +1 -0
  59. package/docs/assets/main.js +60 -0
  60. package/docs/assets/navigation.js +1 -0
  61. package/docs/assets/search.js +1 -0
  62. package/docs/assets/style.css +1633 -0
  63. package/docs/classes/AssetBatchError.html +3 -0
  64. package/docs/classes/AssetConflictError.html +3 -0
  65. package/docs/classes/AssetNotFoundError.html +2 -0
  66. package/docs/classes/AssetValidationError.html +2 -0
  67. package/docs/classes/ProcessorNotFoundError.html +2 -0
  68. package/docs/classes/TwinClient.html +59 -0
  69. package/docs/classes/TwinConflictError.html +3 -0
  70. package/docs/classes/TwinFileConflictError.html +3 -0
  71. package/docs/classes/TwinFileNotFoundError.html +2 -0
  72. package/docs/classes/TwinFileValidationError.html +3 -0
  73. package/docs/classes/TwinNotFoundError.html +2 -0
  74. package/docs/classes/TwinValidationError.html +3 -0
  75. package/docs/hierarchy.html +1 -0
  76. package/docs/index.html +1 -0
  77. package/docs/interfaces/AssetBatchDeleteOperation.html +4 -0
  78. package/docs/interfaces/AssetBatchGetRequest.html +2 -0
  79. package/docs/interfaces/AssetBatchGetResponse.html +3 -0
  80. package/docs/interfaces/AssetBatchRequest.html +2 -0
  81. package/docs/interfaces/AssetBatchResponse.html +3 -0
  82. package/docs/interfaces/AssetBatchRestoreOperation.html +4 -0
  83. package/docs/interfaces/AssetBatchUpsertItem.html +10 -0
  84. package/docs/interfaces/AssetBatchUpsertOperation.html +4 -0
  85. package/docs/interfaces/AssetGet.html +16 -0
  86. package/docs/interfaces/AssetListItem.html +11 -0
  87. package/docs/interfaces/AssetPosition.html +4 -0
  88. package/docs/interfaces/AssetPost.html +10 -0
  89. package/docs/interfaces/AssetPut.html +10 -0
  90. package/docs/interfaces/BatchItemError.html +4 -0
  91. package/docs/interfaces/BatchItemResult.html +6 -0
  92. package/docs/interfaces/BatchSummary.html +4 -0
  93. package/docs/interfaces/Diagnostics.html +4 -0
  94. package/docs/interfaces/DiagnosticsSummary.html +4 -0
  95. package/docs/interfaces/ElementQuantities.html +3 -0
  96. package/docs/interfaces/EntityCollection.html +10 -0
  97. package/docs/interfaces/Facility.html +15 -0
  98. package/docs/interfaces/FacilityPart.html +14 -0
  99. package/docs/interfaces/FilePatch.html +7 -0
  100. package/docs/interfaces/FilePatchSet.html +5 -0
  101. package/docs/interfaces/GenericDiagnosticEntry.html +4 -0
  102. package/docs/interfaces/ITwinClient.html +34 -0
  103. package/docs/interfaces/IfcDiagnosticEntry.html +5 -0
  104. package/docs/interfaces/IfcDiagnosticNode.html +6 -0
  105. package/docs/interfaces/IfcDiagnosticNodeData.html +6 -0
  106. package/docs/interfaces/ListTwinItem.html +14 -0
  107. package/docs/interfaces/Location.html +10 -0
  108. package/docs/interfaces/PaginatedResponse.html +3 -0
  109. package/docs/interfaces/Pagination.html +4 -0
  110. package/docs/interfaces/Property.html +4 -0
  111. package/docs/interfaces/PropertySet.html +6 -0
  112. package/docs/interfaces/SimpleQuantity.html +6 -0
  113. package/docs/interfaces/SinglePropertyValue.html +5 -0
  114. package/docs/interfaces/Site.html +18 -0
  115. package/docs/interfaces/Space.html +11 -0
  116. package/docs/interfaces/TwinComputedPropertySetsResponse.html +4 -0
  117. package/docs/interfaces/TwinContentResponse.html +6 -0
  118. package/docs/interfaces/TwinDelete.html +2 -0
  119. package/docs/interfaces/TwinDiagnosticEntry.html +5 -0
  120. package/docs/interfaces/TwinDiagnosticNode.html +4 -0
  121. package/docs/interfaces/TwinDiagnosticNodeData.html +9 -0
  122. package/docs/interfaces/TwinDiagnosticsResponse.html +5 -0
  123. package/docs/interfaces/TwinErrorBody.html +4 -0
  124. package/docs/interfaces/TwinFileDelete.html +2 -0
  125. package/docs/interfaces/TwinFileGet.html +15 -0
  126. package/docs/interfaces/TwinFileListOptions.html +6 -0
  127. package/docs/interfaces/TwinFilePut.html +8 -0
  128. package/docs/interfaces/TwinFileReference.html +4 -0
  129. package/docs/interfaces/TwinFileRestore.html +2 -0
  130. package/docs/interfaces/TwinFileSource.html +4 -0
  131. package/docs/interfaces/TwinFileTransform.html +11 -0
  132. package/docs/interfaces/TwinFileVersionListOptions.html +4 -0
  133. package/docs/interfaces/TwinGet.html +30 -0
  134. package/docs/interfaces/TwinProcessorEvent.html +7 -0
  135. package/docs/interfaces/TwinProcessorResponse.html +5 -0
  136. package/docs/interfaces/TwinPut.html +23 -0
  137. package/docs/interfaces/TwinSpecification.html +20 -0
  138. package/docs/interfaces/TwinVersionContentResponse.html +7 -0
  139. package/docs/types/AssetBatchGetStatus.html +1 -0
  140. package/docs/types/AssetBatchOperation.html +1 -0
  141. package/docs/types/AssetBatchOperationStatus.html +1 -0
  142. package/docs/types/DiagnosticCategory.html +2 -0
  143. package/docs/types/DiagnosticLevel.html +2 -0
  144. package/docs/types/EpsgType.html +1 -0
  145. package/docs/types/FacilityClass.html +3 -0
  146. package/docs/types/FacilityPartClass.html +3 -0
  147. package/docs/types/IfcDiagnosticCode.html +1 -0
  148. package/docs/types/Op.html +2 -0
  149. package/docs/types/SinglePropertyValueType.html +3 -0
  150. package/docs/types/SingleQuantityValueType.html +3 -0
  151. package/docs/types/SiteType.html +3 -0
  152. package/docs/types/SpaceType.html +2 -0
  153. package/docs/types/TwinDiagnosticCode.html +1 -0
  154. package/package.json +56 -0
  155. package/src/BuildInfo.ts +41 -0
  156. package/src/TwinClient.ts +1274 -0
  157. package/src/errors.ts +107 -0
  158. package/src/index.ts +3 -0
  159. package/src/tsconfig.json +13 -0
  160. package/src/types/Twin.ts +7 -0
  161. package/src/types/TwinGeometryInfo.ts +7 -0
  162. package/src/types/asset-api.ts +60 -0
  163. package/src/types/asset-batch-api.ts +88 -0
  164. package/src/types/common.ts +10 -0
  165. package/src/types/generated.ts +574 -0
  166. package/src/types/index.ts +6 -0
  167. package/src/types/twin-api.ts +99 -0
  168. package/src/types/twin-file-api.ts +67 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asset-batch-api.d.ts","sourceRoot":"","sources":["../../src/types/asset-batch-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE3D,MAAM,MAAM,mBAAmB,GAAG,yBAAyB,GAAG,yBAAyB,GAAG,0BAA0B,CAAC;AAErH,MAAM,WAAW,yBAAyB;IACtC,SAAS,EAAE,QAAQ,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,oBAAoB,CAAC;CAC9B;AAED,MAAM,WAAW,yBAAyB;IACtC,SAAS,EAAE,QAAQ,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CAC1B;AAED,MAAM,WAAW,0BAA0B;IACvC,SAAS,EAAE,SAAS,CAAC;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CAC1B;AAED,MAAM,WAAW,oBAAoB;IACjC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,C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O,EAAE,eAAe,CAAC,yBAAyB,CAAC,EAAE,CAAC;CACzD;AAED,MAAM,WAAW,qBAAqB;IAClC,OAAO,EAAE,YAAY,CAAC;IACtB,OAAO,EAAE,eAAe,CAAC,mBAAmB,CAAC,EAAE,CAAC;CACnD"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=asset-batch-api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asset-batch-api.js","sourceRoot":"","sources":["../../src/types/asset-batch-api.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ export interface Pagination {
2
+ limit: number;
3
+ maxLimit: number;
4
+ nextPage: string;
5
+ }
6
+ export interface PaginatedResponse<T> {
7
+ data: T[];
8
+ pagination: Pagination;
9
+ }
10
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/types/common.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAChC,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,UAAU,EAAE,UAAU,CAAC;CAC1B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/types/common.ts"],"names":[],"mappings":""}
@@ -0,0 +1,388 @@
1
+ export interface Diagnostics {
2
+ generic?: GenericDiagnosticEntry[];
3
+ ifc?: {
4
+ [key: string]: IfcDiagnosticNode;
5
+ };
6
+ twin?: TwinDiagnosticNode[];
7
+ [property: string]: any;
8
+ }
9
+ export interface GenericDiagnosticEntry {
10
+ category: DiagnosticCategory;
11
+ level: DiagnosticLevel;
12
+ message: string;
13
+ }
14
+ /**
15
+ * The category of the diagnostic event.
16
+ */
17
+ export type DiagnosticCategory = 'InvalidData' | 'Geometry';
18
+ /**
19
+ * The severity level of the diagnostic event.
20
+ */
21
+ export type DiagnosticLevel = 'Fatal' | 'Error' | 'Warning' | 'Information' | 'Debug';
22
+ /**
23
+ * A diagnostic node for an IFC file.
24
+ */
25
+ export interface IfcDiagnosticNode {
26
+ data: IfcDiagnosticNodeData;
27
+ entries: IfcDiagnosticEntry[];
28
+ incomingConnections: string[];
29
+ outgoingConnections: string[];
30
+ [property: string]: any;
31
+ }
32
+ export interface IfcDiagnosticNodeData {
33
+ /**
34
+ * The globally unique identifier of the entity in the IFC file.
35
+ */
36
+ gid?: string;
37
+ /**
38
+ * The local identifier of the entity in the IFC file.
39
+ */
40
+ id: string;
41
+ ifcType: string;
42
+ [property: string]: any;
43
+ }
44
+ export interface IfcDiagnosticEntry {
45
+ category: DiagnosticCategory;
46
+ code: IfcDiagnosticCode;
47
+ level: DiagnosticLevel;
48
+ message?: string;
49
+ }
50
+ export type IfcDiagnosticCode = 'CompletelyTransparent' | 'HighVertexCount' | 'IncorrectAttributeDataType' | 'InvalidBound' | 'InvalidColor' | 'InvalidElementQuantity' | 'InvalidEnumValue' | 'InvalidFace' | 'InvalidMesh' | 'InvalidObjectReference' | 'InvalidPosition' | 'InvalidProperty' | 'InvalidPropertySet' | 'InvalidQuantity' | 'InvalidRelation' | 'InvalidSpecularHighlight' | 'InvalidWorldCoordinateSystem' | 'InvalidUnit' | 'LargeMeshNotHealed' | 'MappedItemWithoutTarget' | 'MaterialHasMultipleStyles' | 'MeshFarFromOrigo' | 'MeshOmitted' | 'MissingOrInvalidSurfaceColor' | 'MissingPlacement' | 'MultipleProjects' | 'NamedUnitWithoutName' | 'NonUnitEntityReferredAsUnit' | 'NoProject' | 'NotEnoughAttributes' | 'OpenSpace' | 'PropertySetWithoutName' | 'PropertyWithoutName' | 'QuantityWithoutName' | 'RepresentationItemWithoutContext' | 'StyleContainsMultipleSurfaceStyles' | 'SubContextInProjectRepresentationContexts' | 'UnitWithoutType' | 'UnknownMaterialType' | 'UnknownPrefix' | 'UnknownUnitType' | 'UnsupportedRepresentationItem' | 'UnsupportedStyleElement' | 'UnsupportedUnitType';
51
+ /**
52
+ * A diagnostic node for a Twin file.
53
+ */
54
+ export interface TwinDiagnosticNode {
55
+ data: TwinDiagnosticNodeData;
56
+ entries: TwinDiagnosticEntry[];
57
+ [property: string]: any;
58
+ }
59
+ export interface TwinDiagnosticNodeData {
60
+ /**
61
+ * The identifier of the entity in the Twin file.
62
+ */
63
+ gid?: string;
64
+ /**
65
+ * The identifier of the model this entity belongs to.
66
+ */
67
+ modelId?: string;
68
+ /**
69
+ * The name of the entity.
70
+ */
71
+ name?: string;
72
+ /**
73
+ * Incoming identifier from the IFC file.
74
+ */
75
+ originalGid?: string;
76
+ [property: string]: any;
77
+ }
78
+ export interface TwinDiagnosticEntry {
79
+ category: DiagnosticCategory;
80
+ code?: TwinDiagnosticCode;
81
+ level: DiagnosticLevel;
82
+ message: string;
83
+ }
84
+ export type TwinDiagnosticCode = 'CircularHierarchy' | 'FacilityPartNotMapped' | 'GeometryReferenceEmpty' | 'GeometryReferenceShadowed' | 'InvalidInsertionPoint' | 'InvalidStructure' | 'MissingElement' | 'MissingFile' | 'PatchTargetNotFound';
85
+ /**
86
+ * Specification of a Twinfinity Twin
87
+ */
88
+ export interface TwinSpecification {
89
+ /**
90
+ * Spaces that are not part of any facility
91
+ */
92
+ aggregatedSpaces?: string[];
93
+ /**
94
+ * Ids of Twins that are part of this Twin
95
+ */
96
+ aggregatedTwins?: string[];
97
+ elementQuantities?: ElementQuantities[];
98
+ /**
99
+ * Collection of entities that are part of the twin
100
+ */
101
+ entities: EntityCollection;
102
+ /**
103
+ * Per-file patch operations applied to model products before merge
104
+ */
105
+ filePatches?: {
106
+ [key: string]: FilePatchSet;
107
+ };
108
+ /**
109
+ * Unique identifier for the twin
110
+ */
111
+ id?: string;
112
+ /**
113
+ * Twin location in WGS84
114
+ */
115
+ location?: Location;
116
+ /**
117
+ * Name of the Twin
118
+ */
119
+ name: string;
120
+ propertySets?: PropertySet[];
121
+ /**
122
+ * The site of the Twin
123
+ */
124
+ site?: string;
125
+ }
126
+ export interface ElementQuantities {
127
+ name: string;
128
+ simpleQuantities?: SimpleQuantity[];
129
+ }
130
+ export interface SimpleQuantity {
131
+ name: string;
132
+ /**
133
+ * Type of value (e.g IfcQuantityArea, IfcQuantityNumber)
134
+ */
135
+ type?: SingleQuantityValueType;
136
+ /**
137
+ * Value of the quantity given in SI units
138
+ */
139
+ value?: number;
140
+ }
141
+ /**
142
+ * Type of value (e.g IfcQuantityArea, IfcQuantityNumber)
143
+ *
144
+ * Types of qunatity values that consists of a single value
145
+ */
146
+ export type SingleQuantityValueType = 'IfcQuantityArea' | 'IfcQuantityCount' | 'IfcQuantityLength' | 'IfcQuantityNumber' | 'IfcQuantityVolume' | 'IfcQuantityTime' | 'IfcQuantityWeight';
147
+ /**
148
+ * Collection of entities that are part of the twin
149
+ */
150
+ export interface EntityCollection {
151
+ /**
152
+ * Facility entities in the Twin
153
+ */
154
+ facilities?: {
155
+ [key: string]: Facility;
156
+ };
157
+ /**
158
+ * Facility part entities in the Twin
159
+ */
160
+ facilityParts?: {
161
+ [key: string]: FacilityPart;
162
+ };
163
+ /**
164
+ * Site entities in the Twin
165
+ */
166
+ sites?: {
167
+ [key: string]: Site;
168
+ };
169
+ /**
170
+ * Space entities in the Twin
171
+ */
172
+ spaces?: {
173
+ [key: string]: Space;
174
+ };
175
+ [property: string]: any;
176
+ }
177
+ /**
178
+ * Facility (e.g. building or bridge)
179
+ */
180
+ export interface Facility {
181
+ /**
182
+ * Facilities that are part of the facility (e.g. when a building is a complex of buildings)
183
+ */
184
+ aggregatedFacilities?: string[];
185
+ /**
186
+ * Distinct parts of the facility (e.g. storey or railway part)
187
+ */
188
+ aggregatedFacilityParts?: string[];
189
+ /**
190
+ * Spaces in the facility that do not belong to a facility part
191
+ */
192
+ aggregatedSpaces?: string[];
193
+ /**
194
+ * Type of facility (e.g. IfcBuilding)
195
+ */
196
+ class: FacilityClass;
197
+ elementQuantities?: ElementQuantities[];
198
+ /**
199
+ * Unique identifier for the building
200
+ */
201
+ id: string;
202
+ name?: string;
203
+ propertySets?: PropertySet[];
204
+ }
205
+ /**
206
+ * Type of facility (e.g. IfcBuilding)
207
+ *
208
+ * Types of facilities
209
+ */
210
+ export type FacilityClass = 'IfcBridge' | 'IfcBuilding' | 'IfcMarineFacility' | 'IfcRailway' | 'IfcRoad';
211
+ export interface PropertySet {
212
+ name: string;
213
+ /**
214
+ * Properties contained in the set
215
+ */
216
+ properties?: Property[];
217
+ /**
218
+ * Properties that in themselves are sets of properties
219
+ */
220
+ propertySets?: PropertySet[];
221
+ }
222
+ export interface Property {
223
+ name: string;
224
+ /**
225
+ * Property value for simple single value properties
226
+ */
227
+ value?: SinglePropertyValue;
228
+ }
229
+ /**
230
+ * Property value for simple single value properties
231
+ */
232
+ export interface SinglePropertyValue {
233
+ /**
234
+ * Type of value (e.g IfcDate, IfcAreaMeasure, IfcInteger, IfcElectricCurrentMeasure)
235
+ */
236
+ type: SinglePropertyValueType;
237
+ value: number | string;
238
+ }
239
+ /**
240
+ * Type of value (e.g IfcDate, IfcAreaMeasure, IfcInteger, IfcElectricCurrentMeasure)
241
+ *
242
+ * Types of property values that consists of a single value
243
+ */
244
+ export type SinglePropertyValueType = 'IfcAbsorbedDoseMeasure' | 'IfcAccelerationMeasure' | 'IfcAmountOfSubstanceMeasure' | 'IfcAngularVelocityMeasure' | 'IfcAreaMeasure' | 'IfcBinary' | 'IfcBoolean' | 'IfcCountMeasure' | 'IfcDate' | 'IfcDateTime' | 'IfcDescriptiveMeasure' | 'IfcDoseEquivalentMeasure' | 'IfcDuration' | 'IfcDynamicViscosityMeasure' | 'IfcElectricCapacitanceMeasure' | 'IfcElectricChargeMeasure' | 'IfcElectricConductanceMeasure' | 'IfcElectricCurrentMeasure' | 'IfcElectricResistanceMeasure' | 'IfcElectricVoltageMeasure' | 'IfcEnergyMeasure' | 'IfcForceMeasure' | 'IfcFrequencyMeasure' | 'IfcHeatFluxDensityMeasure' | 'IfcHeatingValueMeasure' | 'IfcIdentifier' | 'IfcIlluminanceMeasure' | 'IfcInductanceMeasure' | 'IfcInteger' | 'IfcIntegerCountRateMeasure' | 'IfcIonConcentrationMeasure' | 'IfcIsothermalMoistureCapacityMeasure' | 'IfcKinematicViscosityMeasure' | 'IfcLabel' | 'IfcLengthMeasure' | 'IfcLinearForceMeasure' | 'IfcLinearMomentMeasure' | 'IfcLinearStiffnessMeasure' | 'IfcLinearVelocityMeasure' | 'IfcLogical' | 'IfcLuminousFluxMeasure' | 'IfcLuminousIntensityDistributionMeasure' | 'IfcLuminousIntensityMeasure' | 'IfcMagneticFluxDensityMeasure' | 'IfcMagneticFluxMeasure' | 'IfcMassDensityMeasure' | 'IfcMassFlowRateMeasure' | 'IfcMassMeasure' | 'IfcMassPerLengthMeasure' | 'IfcModulusOfElasticityMeasure' | 'IfcModulusOfLinearSubgradeReactionMeasure' | 'IfcModulusOfRotationalSubgradeReactionMeasure' | 'IfcModulusOfSubgradeReactionMeasure' | 'IfcMoistureDiffusivityMeasure' | 'IfcMolecularWeightMeasure' | 'IfcMomentOfInertiaMeasure' | 'IfcMonetaryMeasure' | 'IfcNonNegativeLengthMeasure' | 'IfcNormalisedRatioMeasure' | 'IfcNumericMeasure' | 'IfcParameterValue' | 'IfcPHMeasure' | 'IfcPlanarForceMeasure' | 'IfcPlaneAngleMeasure' | 'IfcPositiveInteger' | 'IfcPositiveLengthMeasure' | 'IfcPositivePlaneAngleMeasure' | 'IfcPositiveRatioMeasure' | 'IfcPowerMeasure' | 'IfcPressureMeasure' | 'IfcRadioActivityMeasure' | 'IfcRatioMeasure' | 'IfcReal' | 'IfcRotationalFrequencyMeasure' | 'IfcRotationalMassMeasure' | 'IfcRotationalStiffnessMeasure' | 'IfcSectionModulusMeasure' | 'IfcSolidAngleMeasure' | 'IfcSoundPowerMeasure' | 'IfcSoundPressureLevelMeasure' | 'IfcSoundPressureMeasure' | 'IfcSpecificHeatCapacityMeasure' | 'IfcTemperatureGradientMeasure' | 'IfcTemperatureRateOfChangeMeasure' | 'IfcText' | 'IfcThermalAdmittanceMeasure' | 'IfcThermalConductivityMeasure' | 'IfcThermalExpansionCoefficientMeasure' | 'IfcThermalResistanceMeasure' | 'IfcThermalTransmittanceMeasure' | 'IfcThermodynamicTemperatureMeasure' | 'IfcTime' | 'IfcTimeMeasure' | 'IfcTimeStamp' | 'IfcTorqueMeasure' | 'IfcURIReference' | 'IfcVaporPermeabilityMeasure' | 'IfcVolumeMeasure' | 'IfcVolumetricFlowRateMeasure' | 'IfcWarpingConstantMeasure' | 'IfcWarpingMomentMeasure';
245
+ /**
246
+ * Distinct part of the facility (e.g. storey or railway part)
247
+ */
248
+ export interface FacilityPart {
249
+ /**
250
+ * Facility parts that are parts of this part (e.g multiple floor 3 in on different height
251
+ * that are in different parts of the building)
252
+ */
253
+ aggregatedFacilityParts?: string[];
254
+ /**
255
+ * Spaces that are part of the facility part
256
+ */
257
+ aggregatedSpaces?: string[];
258
+ /**
259
+ * Type of facility part (e.g. IfcBuildingStorey)
260
+ */
261
+ class: FacilityPartClass;
262
+ elementQuantities?: ElementQuantities[];
263
+ /**
264
+ * Unique identifier for the facility part
265
+ */
266
+ id: string;
267
+ name?: string;
268
+ propertySets?: PropertySet[];
269
+ }
270
+ /**
271
+ * Type of facility part (e.g. IfcBuildingStorey)
272
+ *
273
+ * Types of facility parts
274
+ */
275
+ export type FacilityPartClass = 'IfcBridgePart' | 'IfcBuildingStorey' | 'IfcMarinePart' | 'IfcRailwayPart' | 'IfcRoadPart';
276
+ /**
277
+ * A site is a defined area of land, possibly covered with water, upon which constructions
278
+ * are located
279
+ */
280
+ export interface Site {
281
+ /**
282
+ * Facilities (e.g. buildings) in Twin
283
+ */
284
+ aggregatedFacilities?: string[];
285
+ /**
286
+ * Sites are part of this site
287
+ */
288
+ aggregatedSites?: string[];
289
+ /**
290
+ * Spaces that are not part of any facility
291
+ */
292
+ aggregatedSpaces?: string[];
293
+ /**
294
+ * Type of site (i.e. IfcSite)
295
+ */
296
+ class?: SiteType;
297
+ elementQuantities?: ElementQuantities[];
298
+ /**
299
+ * Unique identifier for the site
300
+ */
301
+ id?: string;
302
+ /**
303
+ * Name of the site
304
+ */
305
+ name: string;
306
+ /**
307
+ * Sets of properties describing the Twin (e.g. AreaType = Residential)
308
+ */
309
+ propertySets?: PropertySet[];
310
+ }
311
+ /**
312
+ * Type of site (i.e. IfcSite)
313
+ *
314
+ * Types of Twins
315
+ */
316
+ export type SiteType = 'IfcSite';
317
+ /**
318
+ * A volume defining part of a Twin or facility
319
+ */
320
+ export interface Space {
321
+ /**
322
+ * Spaces that are part of this space
323
+ */
324
+ aggregatedSpaces?: string[];
325
+ /**
326
+ * Type of space (e.g. IfcSpace)
327
+ */
328
+ class: SpaceType;
329
+ elementQuantities?: ElementQuantities[];
330
+ /**
331
+ * Unique identifier for the space
332
+ */
333
+ id: string;
334
+ name?: string;
335
+ propertySets?: PropertySet[];
336
+ }
337
+ /**
338
+ * Type of space (e.g. IfcSpace)
339
+ */
340
+ export type SpaceType = 'IfcSpace';
341
+ export interface FilePatchSet {
342
+ /**
343
+ * Ordered list of patch operations to apply
344
+ */
345
+ patches: FilePatch[];
346
+ /**
347
+ * Format version of the patch view. Currently only version 1 is supported.
348
+ */
349
+ viewVersion: number;
350
+ }
351
+ export interface FilePatch {
352
+ /**
353
+ * The patch operation type
354
+ */
355
+ op: Op;
356
+ /**
357
+ * JSON Pointer-style path: /entities/{ifcGid} or /entities/{ifcGid}/(name|description)
358
+ */
359
+ path: string;
360
+ /**
361
+ * New value for replace operations. Must be omitted for remove operations.
362
+ */
363
+ value?: string;
364
+ }
365
+ /**
366
+ * The patch operation type
367
+ */
368
+ export type Op = 'replace' | 'remove';
369
+ /**
370
+ * Twin location in WGS84
371
+ *
372
+ * A location in WGS84
373
+ */
374
+ export interface Location {
375
+ /**
376
+ * Metres above sea level
377
+ */
378
+ elevation?: number;
379
+ epsg: EpsgType;
380
+ latitude: number;
381
+ longitude: number;
382
+ /**
383
+ * Vector pointing to the true north
384
+ */
385
+ trueNorth?: number[];
386
+ }
387
+ export type EpsgType = '4326';
388
+ //# sourceMappingURL=generated.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generated.d.ts","sourceRoot":"","sources":["../../src/types/generated.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IACxB,OAAO,CAAC,EAAE,sBAAsB,EAAE,CAAC;IACnC,GAAG,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,iBAAiB,CAAA;KAAE,CAAC;IAC3C,IAAI,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC5B,CAAC,QAAQ,EAAE,MAAM,GAAG,GAAG,CAAC;CAC3B;AAED,MAAM,WAAW,sBAAsB;IACnC,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,KAAK,EAAE,eAAe,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAAG,UAAU,CAAC;AAE5D;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,GAAG,aAAa,GAAG,OAAO,CAAC;AAEtF;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAC9B,IAAI,EAAE,qBAAqB,CAAC;IAC5B,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAC9B,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAC9B,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAC9B,CAAC,QAAQ,EAAE,MAAM,GAAG,GAAG,CAAC;CAC3B;AAED,MAAM,WAAW,qBAAqB;IAClC;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IACh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CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB;AAED,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=generated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generated.js","sourceRoot":"","sources":["../../src/types/generated.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ export * from './common';
2
+ export * from './twin-api';
3
+ export * from './asset-api';
4
+ export * from './asset-batch-api';
5
+ export * from './twin-file-api';
6
+ export * from './generated';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC"}
@@ -0,0 +1,7 @@
1
+ export * from './common';
2
+ export * from './twin-api';
3
+ export * from './asset-api';
4
+ export * from './asset-batch-api';
5
+ export * from './twin-file-api';
6
+ export * from './generated';
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC"}
@@ -0,0 +1,88 @@
1
+ import type { PropertySet, ElementQuantities, TwinSpecification, Diagnostics } from './generated';
2
+ export interface TwinFileReference {
3
+ fileId: string;
4
+ fileVersion: number;
5
+ twinNodeId?: string;
6
+ }
7
+ export interface ListTwinItem {
8
+ id: string;
9
+ name: string;
10
+ etag: string;
11
+ propertySets?: PropertySet[];
12
+ computedPropertySets?: PropertySet[];
13
+ elementQuantities?: ElementQuantities[];
14
+ relatedContainerIds: string[];
15
+ version: number;
16
+ isDeleted?: boolean;
17
+ createdBy: string;
18
+ createdUtc: string;
19
+ modifiedBy: string;
20
+ modifiedUtc: string;
21
+ }
22
+ export interface TwinGet extends TwinSpecification {
23
+ id: string;
24
+ etag: string;
25
+ relatedContainerIds: string[];
26
+ version: number;
27
+ isDeleted?: boolean;
28
+ createdBy: string;
29
+ createdUtc: string;
30
+ modifiedBy: string;
31
+ modifiedUtc: string;
32
+ fileReferences: TwinFileReference[];
33
+ computedPropertySets?: PropertySet[];
34
+ }
35
+ export interface TwinPut extends TwinSpecification {
36
+ etag?: string;
37
+ relatedContainerIds: string[];
38
+ fileReferences?: TwinFileReference[];
39
+ }
40
+ export interface TwinDelete {
41
+ etag: string;
42
+ }
43
+ export interface TwinVersionContentResponse {
44
+ twinId: string;
45
+ twinVersion: number;
46
+ status: string;
47
+ processors: TwinProcessorResponse[];
48
+ content: TwinContentResponse[];
49
+ computedPropertySets: TwinComputedPropertySetsResponse[];
50
+ }
51
+ export interface TwinProcessorResponse {
52
+ processorId: string;
53
+ processorName: string;
54
+ processorDescription?: string;
55
+ status: string;
56
+ }
57
+ export interface TwinContentResponse {
58
+ id: string;
59
+ processorId: string;
60
+ format: string;
61
+ description?: string;
62
+ receivedAt: string;
63
+ }
64
+ export interface TwinComputedPropertySetsResponse {
65
+ processorId: string;
66
+ propertySets: PropertySet[];
67
+ receivedAt: string;
68
+ }
69
+ export interface TwinProcessorEvent {
70
+ id: string;
71
+ processorId: string;
72
+ eventType: string;
73
+ eventTimestampUtc: string;
74
+ details?: unknown;
75
+ message?: string;
76
+ }
77
+ export interface DiagnosticsSummary {
78
+ fatalCount: number;
79
+ errorCount: number;
80
+ warningCount: number;
81
+ }
82
+ export interface TwinDiagnosticsResponse {
83
+ twinId: string;
84
+ twinVersion: number;
85
+ summary: DiagnosticsSummary;
86
+ diagnostics: Diagnostics;
87
+ }
88
+ //# sourceMappingURL=twin-api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"twin-api.d.ts","sourceRoot":"","sources":["../../src/types/twin-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAElG,MAAM,WAAW,iBAAiB;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,YAAY;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;IAC7B,oBAAoB,CAAC,EAAE,WAAW,EAAE,CAAC;IACrC,iBAAiB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACxC,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,OAAQ,SAAQ,iBAAiB;IAC9C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,iBAAiB,EAAE,CAAC;I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W,kBAAkB;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,uBAAuB;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,kBAAkB,CAAC;IAC5B,WAAW,EAAE,WAAW,CAAC;CAC5B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=twin-api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"twin-api.js","sourceRoot":"","sources":["../../src/types/twin-api.ts"],"names":[],"mappings":""}
@@ -0,0 +1,61 @@
1
+ export interface TwinFileTransform {
2
+ qx?: number;
3
+ qy?: number;
4
+ qz?: number;
5
+ qw?: number;
6
+ sx?: number;
7
+ sy?: number;
8
+ sz?: number;
9
+ x?: number;
10
+ y?: number;
11
+ z?: number;
12
+ }
13
+ export interface TwinFileGet {
14
+ id: string;
15
+ twinId: string;
16
+ version: number;
17
+ source: TwinFileSource;
18
+ name: string;
19
+ comment?: string;
20
+ quality: number;
21
+ etag: string;
22
+ isDeleted: boolean;
23
+ createdBy: string;
24
+ createdUtc: string;
25
+ modifiedBy: string;
26
+ modifiedUtc: string;
27
+ transform?: TwinFileTransform;
28
+ }
29
+ export interface TwinFileSource {
30
+ changeId: string;
31
+ changeVersion: number;
32
+ sourceType: string;
33
+ }
34
+ export interface TwinFilePut {
35
+ source: TwinFileSource;
36
+ name: string;
37
+ comment?: string;
38
+ quality: number | null;
39
+ etag?: string;
40
+ isDeleted?: boolean;
41
+ transform?: TwinFileTransform;
42
+ }
43
+ export interface TwinFileDelete {
44
+ etag: string;
45
+ }
46
+ export interface TwinFileRestore {
47
+ etag: string;
48
+ }
49
+ export interface TwinFileListOptions {
50
+ includeDeleted?: boolean;
51
+ checkedIn?: boolean;
52
+ version?: number;
53
+ page?: string;
54
+ limit?: number;
55
+ }
56
+ export interface TwinFileVersionListOptions {
57
+ includeDeleted?: boolean;
58
+ offset?: number;
59
+ limit?: number;
60
+ }
61
+ //# sourceMappingURL=twin-file-api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"twin-file-api.d.ts","sourceRoot":"","sources":["../../src/types/twin-file-api.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAC9B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,WAAW;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,cAAc,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,iBAAiB,CAAC;CACjC;AAED,MAAM,WAAW,cAAc;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,WAAW;IACxB,MAAM,EAAE,cAAc,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,iBAAiB,CAAC;CACjC;AAED,MAAM,WAAW,cAAc;IAC3B,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,eAAe;IAC5B,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,mBAAmB;IAChC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,0BAA0B;IACvC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=twin-file-api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"twin-file-api.js","sourceRoot":"","sources":["../../src/types/twin-file-api.ts"],"names":[],"mappings":""}
package/docs/.nojekyll ADDED
@@ -0,0 +1 @@
1
+ TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
@@ -0,0 +1 @@
1
+ window.hierarchyData = "eJyVkDFvwjAQhf/Lm4+i2ISAVwbUDalsiCFyLsKq4yDbUQfk/47cAoIspMsNp3ffp3cX+L6PAeqwWBckhTgSPLeWdTS9C1AXiCpPV3cMhf2PcVuOIHwb10CJckkYvIWCcZF9W2sO81vq4xQ7C4K2dQhQiKGZ5bPZI4pEKIsRfzdM4e+GiXwpxEjwdWZtWqPr3HGC6iU/QUrQJ2Mbzw7qICoqi2MiLNbPRT8zeGMNu3dln5L/dVdSZnMl5egDI3EhVnfxL/rW+430b5FSugLItL86"