@itwin/core-common 5.1.0-dev.4 → 5.1.0-dev.41

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 (158) hide show
  1. package/CHANGELOG.md +80 -1
  2. package/lib/cjs/BackgroundMapSettings.d.ts +2 -2
  3. package/lib/cjs/BackgroundMapSettings.js.map +1 -1
  4. package/lib/cjs/ClipStyle.d.ts +1 -1
  5. package/lib/cjs/ClipStyle.d.ts.map +1 -1
  6. package/lib/cjs/ClipStyle.js.map +1 -1
  7. package/lib/cjs/ConcurrentQuery.d.ts +3 -3
  8. package/lib/cjs/ConcurrentQuery.js +1 -1
  9. package/lib/cjs/ConcurrentQuery.js.map +1 -1
  10. package/lib/cjs/ElementProps.d.ts +42 -42
  11. package/lib/cjs/ElementProps.js +6 -6
  12. package/lib/cjs/ElementProps.js.map +1 -1
  13. package/lib/cjs/EntityProps.d.ts +10 -10
  14. package/lib/cjs/EntityProps.js +2 -2
  15. package/lib/cjs/EntityProps.js.map +1 -1
  16. package/lib/cjs/Fonts.d.ts +2 -2
  17. package/lib/cjs/Fonts.js +1 -1
  18. package/lib/cjs/Fonts.js.map +1 -1
  19. package/lib/cjs/GeoCoordinateServices.d.ts +1 -1
  20. package/lib/cjs/GeoCoordinateServices.js +1 -1
  21. package/lib/cjs/GeoCoordinateServices.js.map +1 -1
  22. package/lib/cjs/GeometryParams.d.ts +3 -1
  23. package/lib/cjs/GeometryParams.d.ts.map +1 -1
  24. package/lib/cjs/GeometryParams.js +3 -1
  25. package/lib/cjs/GeometryParams.js.map +1 -1
  26. package/lib/cjs/GraphicParams.d.ts +1 -0
  27. package/lib/cjs/GraphicParams.d.ts.map +1 -1
  28. package/lib/cjs/GraphicParams.js +1 -0
  29. package/lib/cjs/GraphicParams.js.map +1 -1
  30. package/lib/cjs/IModel.d.ts +3 -3
  31. package/lib/cjs/IModel.js.map +1 -1
  32. package/lib/cjs/ITwinCoreErrors.d.ts +1 -1
  33. package/lib/cjs/ITwinCoreErrors.d.ts.map +1 -1
  34. package/lib/cjs/ITwinCoreErrors.js.map +1 -1
  35. package/lib/cjs/MassProperties.d.ts +2 -2
  36. package/lib/cjs/MassProperties.js.map +1 -1
  37. package/lib/cjs/MaterialProps.d.ts +1 -1
  38. package/lib/cjs/MaterialProps.js.map +1 -1
  39. package/lib/cjs/RenderTexture.d.ts +1 -1
  40. package/lib/cjs/RenderTexture.d.ts.map +1 -1
  41. package/lib/cjs/RenderTexture.js.map +1 -1
  42. package/lib/cjs/TerrainSettings.d.ts +1 -1
  43. package/lib/cjs/TerrainSettings.d.ts.map +1 -1
  44. package/lib/cjs/TerrainSettings.js.map +1 -1
  45. package/lib/cjs/annotation/TextAnnotation.d.ts +33 -1
  46. package/lib/cjs/annotation/TextAnnotation.d.ts.map +1 -1
  47. package/lib/cjs/annotation/TextAnnotation.js +18 -4
  48. package/lib/cjs/annotation/TextAnnotation.js.map +1 -1
  49. package/lib/cjs/annotation/TextBlockGeometryProps.d.ts +1 -1
  50. package/lib/cjs/annotation/TextBlockGeometryProps.js.map +1 -1
  51. package/lib/cjs/geometry/ElementGeometry.d.ts +1 -1
  52. package/lib/cjs/geometry/ElementGeometry.d.ts.map +1 -1
  53. package/lib/cjs/geometry/ElementGeometry.js +2 -2
  54. package/lib/cjs/geometry/ElementGeometry.js.map +1 -1
  55. package/lib/cjs/internal/BackendTypes.d.ts +3 -3
  56. package/lib/cjs/internal/BackendTypes.d.ts.map +1 -1
  57. package/lib/cjs/internal/BackendTypes.js.map +1 -1
  58. package/lib/cjs/rpc/IModelReadRpcInterface.d.ts +1 -1
  59. package/lib/cjs/rpc/IModelReadRpcInterface.d.ts.map +1 -1
  60. package/lib/cjs/rpc/IModelReadRpcInterface.js +1 -1
  61. package/lib/cjs/rpc/IModelReadRpcInterface.js.map +1 -1
  62. package/lib/cjs/rpc/SnapshotIModelRpcInterface.d.ts +4 -4
  63. package/lib/cjs/rpc/SnapshotIModelRpcInterface.js +4 -4
  64. package/lib/cjs/rpc/SnapshotIModelRpcInterface.js.map +1 -1
  65. package/lib/cjs/rpc/core/RpcConstants.d.ts +6 -6
  66. package/lib/cjs/rpc/core/RpcConstants.d.ts.map +1 -1
  67. package/lib/cjs/rpc/core/RpcConstants.js +6 -6
  68. package/lib/cjs/rpc/core/RpcConstants.js.map +1 -1
  69. package/lib/cjs/rpc/web/OpenAPI.d.ts +1 -1
  70. package/lib/cjs/rpc/web/OpenAPI.js.map +1 -1
  71. package/lib/cjs/rpc/web/WebAppRpcProtocol.d.ts +2 -2
  72. package/lib/cjs/rpc/web/WebAppRpcProtocol.js.map +1 -1
  73. package/lib/cjs/tile/IModelTileIO.d.ts +2 -2
  74. package/lib/cjs/tile/IModelTileIO.js +2 -2
  75. package/lib/cjs/tile/IModelTileIO.js.map +1 -1
  76. package/lib/cjs/tile/TileMetadata.d.ts +6 -2
  77. package/lib/cjs/tile/TileMetadata.d.ts.map +1 -1
  78. package/lib/cjs/tile/TileMetadata.js +10 -4
  79. package/lib/cjs/tile/TileMetadata.js.map +1 -1
  80. package/lib/esm/BackgroundMapSettings.d.ts +2 -2
  81. package/lib/esm/BackgroundMapSettings.js.map +1 -1
  82. package/lib/esm/ClipStyle.d.ts +1 -1
  83. package/lib/esm/ClipStyle.d.ts.map +1 -1
  84. package/lib/esm/ClipStyle.js.map +1 -1
  85. package/lib/esm/ConcurrentQuery.d.ts +3 -3
  86. package/lib/esm/ConcurrentQuery.js +1 -1
  87. package/lib/esm/ConcurrentQuery.js.map +1 -1
  88. package/lib/esm/ElementProps.d.ts +42 -42
  89. package/lib/esm/ElementProps.js +6 -6
  90. package/lib/esm/ElementProps.js.map +1 -1
  91. package/lib/esm/EntityProps.d.ts +10 -10
  92. package/lib/esm/EntityProps.js +2 -2
  93. package/lib/esm/EntityProps.js.map +1 -1
  94. package/lib/esm/Fonts.d.ts +2 -2
  95. package/lib/esm/Fonts.js +1 -1
  96. package/lib/esm/Fonts.js.map +1 -1
  97. package/lib/esm/GeoCoordinateServices.d.ts +1 -1
  98. package/lib/esm/GeoCoordinateServices.js +1 -1
  99. package/lib/esm/GeoCoordinateServices.js.map +1 -1
  100. package/lib/esm/GeometryParams.d.ts +3 -1
  101. package/lib/esm/GeometryParams.d.ts.map +1 -1
  102. package/lib/esm/GeometryParams.js +3 -1
  103. package/lib/esm/GeometryParams.js.map +1 -1
  104. package/lib/esm/GraphicParams.d.ts +1 -0
  105. package/lib/esm/GraphicParams.d.ts.map +1 -1
  106. package/lib/esm/GraphicParams.js +1 -0
  107. package/lib/esm/GraphicParams.js.map +1 -1
  108. package/lib/esm/IModel.d.ts +3 -3
  109. package/lib/esm/IModel.js.map +1 -1
  110. package/lib/esm/ITwinCoreErrors.d.ts +1 -1
  111. package/lib/esm/ITwinCoreErrors.d.ts.map +1 -1
  112. package/lib/esm/ITwinCoreErrors.js.map +1 -1
  113. package/lib/esm/MassProperties.d.ts +2 -2
  114. package/lib/esm/MassProperties.js.map +1 -1
  115. package/lib/esm/MaterialProps.d.ts +1 -1
  116. package/lib/esm/MaterialProps.js.map +1 -1
  117. package/lib/esm/RenderTexture.d.ts +1 -1
  118. package/lib/esm/RenderTexture.d.ts.map +1 -1
  119. package/lib/esm/RenderTexture.js.map +1 -1
  120. package/lib/esm/TerrainSettings.d.ts +1 -1
  121. package/lib/esm/TerrainSettings.d.ts.map +1 -1
  122. package/lib/esm/TerrainSettings.js.map +1 -1
  123. package/lib/esm/annotation/TextAnnotation.d.ts +33 -1
  124. package/lib/esm/annotation/TextAnnotation.d.ts.map +1 -1
  125. package/lib/esm/annotation/TextAnnotation.js +18 -4
  126. package/lib/esm/annotation/TextAnnotation.js.map +1 -1
  127. package/lib/esm/annotation/TextBlockGeometryProps.d.ts +1 -1
  128. package/lib/esm/annotation/TextBlockGeometryProps.js.map +1 -1
  129. package/lib/esm/geometry/ElementGeometry.d.ts +1 -1
  130. package/lib/esm/geometry/ElementGeometry.d.ts.map +1 -1
  131. package/lib/esm/geometry/ElementGeometry.js +2 -2
  132. package/lib/esm/geometry/ElementGeometry.js.map +1 -1
  133. package/lib/esm/internal/BackendTypes.d.ts +3 -3
  134. package/lib/esm/internal/BackendTypes.d.ts.map +1 -1
  135. package/lib/esm/internal/BackendTypes.js.map +1 -1
  136. package/lib/esm/rpc/IModelReadRpcInterface.d.ts +1 -1
  137. package/lib/esm/rpc/IModelReadRpcInterface.d.ts.map +1 -1
  138. package/lib/esm/rpc/IModelReadRpcInterface.js +1 -1
  139. package/lib/esm/rpc/IModelReadRpcInterface.js.map +1 -1
  140. package/lib/esm/rpc/SnapshotIModelRpcInterface.d.ts +4 -4
  141. package/lib/esm/rpc/SnapshotIModelRpcInterface.js +4 -4
  142. package/lib/esm/rpc/SnapshotIModelRpcInterface.js.map +1 -1
  143. package/lib/esm/rpc/core/RpcConstants.d.ts +6 -6
  144. package/lib/esm/rpc/core/RpcConstants.d.ts.map +1 -1
  145. package/lib/esm/rpc/core/RpcConstants.js +6 -6
  146. package/lib/esm/rpc/core/RpcConstants.js.map +1 -1
  147. package/lib/esm/rpc/web/OpenAPI.d.ts +1 -1
  148. package/lib/esm/rpc/web/OpenAPI.js.map +1 -1
  149. package/lib/esm/rpc/web/WebAppRpcProtocol.d.ts +2 -2
  150. package/lib/esm/rpc/web/WebAppRpcProtocol.js.map +1 -1
  151. package/lib/esm/tile/IModelTileIO.d.ts +2 -2
  152. package/lib/esm/tile/IModelTileIO.js +2 -2
  153. package/lib/esm/tile/IModelTileIO.js.map +1 -1
  154. package/lib/esm/tile/TileMetadata.d.ts +6 -2
  155. package/lib/esm/tile/TileMetadata.d.ts.map +1 -1
  156. package/lib/esm/tile/TileMetadata.js +10 -4
  157. package/lib/esm/tile/TileMetadata.js.map +1 -1
  158. package/package.json +6 -6
@@ -4,10 +4,10 @@
4
4
  import type { Readable, Writable } from "stream";
5
5
  import type { Buffer } from "buffer";
6
6
  /** BackendReadable and BackendWritable are not tagged internal for deprecated public RPC APIs which reference these types. */
7
- /** @public @deprecated in 3.x. This type was mistakenly made public in the common scope. */
7
+ /** @public @deprecated in 3.x - might be removed in next major version. This type was mistakenly made public in the common scope. */
8
8
  export type BackendReadable = Readable;
9
- /** @public @deprecated in 3.x. This type was mistakenly made public in the common scope. */
9
+ /** @public @deprecated in 3.x - might be removed in next major version. This type was mistakenly made public in the common scope. */
10
10
  export type BackendWritable = Writable;
11
- /** @internal @deprecated in 3.x. This type was mistakenly made public in the common scope. */
11
+ /** @internal @deprecated in 3.x - might be removed in next major version. This type was mistakenly made public in the common scope. */
12
12
  export type BackendBuffer = Buffer;
13
13
  //# sourceMappingURL=BackendTypes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BackendTypes.d.ts","sourceRoot":"","sources":["../../../src/internal/BackendTypes.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AACjD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AASrC,8HAA8H;AAC9H,4FAA4F;AAC5F,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC;AAEvC,4FAA4F;AAC5F,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC;AAEvC,8FAA8F;AAC9F,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC"}
1
+ {"version":3,"file":"BackendTypes.d.ts","sourceRoot":"","sources":["../../../src/internal/BackendTypes.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AACjD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AASrC,8HAA8H;AAC9H,qIAAqI;AACrI,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC;AAEvC,qIAAqI;AACrI,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC;AAEvC,uIAAuI;AACvI,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"BackendTypes.js","sourceRoot":"","sources":["../../../src/internal/BackendTypes.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Utils\n */\n\nimport type { Readable, Writable } from \"stream\"; // Must be \"import type\" to avoid webpack polyfill errors\nimport type { Buffer } from \"buffer\"; // Must be \"import type\" to avoid webpack polyfill errors\n\n/*\nIMPORTANT:\nThis is a temporary source file for backwards compatibility only.\nDo not add any new types to this file.\nAll types here will be removed in 4.0\n*/\n\n/** BackendReadable and BackendWritable are not tagged internal for deprecated public RPC APIs which reference these types. */\n/** @public @deprecated in 3.x. This type was mistakenly made public in the common scope. */\nexport type BackendReadable = Readable;\n\n/** @public @deprecated in 3.x. This type was mistakenly made public in the common scope. */\nexport type BackendWritable = Writable;\n\n/** @internal @deprecated in 3.x. This type was mistakenly made public in the common scope. */\nexport type BackendBuffer = Buffer;\n"]}
1
+ {"version":3,"file":"BackendTypes.js","sourceRoot":"","sources":["../../../src/internal/BackendTypes.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Utils\n */\n\nimport type { Readable, Writable } from \"stream\"; // Must be \"import type\" to avoid webpack polyfill errors\nimport type { Buffer } from \"buffer\"; // Must be \"import type\" to avoid webpack polyfill errors\n\n/*\nIMPORTANT:\nThis is a temporary source file for backwards compatibility only.\nDo not add any new types to this file.\nAll types here will be removed in 4.0\n*/\n\n/** BackendReadable and BackendWritable are not tagged internal for deprecated public RPC APIs which reference these types. */\n/** @public @deprecated in 3.x - might be removed in next major version. This type was mistakenly made public in the common scope. */\nexport type BackendReadable = Readable;\n\n/** @public @deprecated in 3.x - might be removed in next major version. This type was mistakenly made public in the common scope. */\nexport type BackendWritable = Writable;\n\n/** @internal @deprecated in 3.x - might be removed in next major version. This type was mistakenly made public in the common scope. */\nexport type BackendBuffer = Buffer;\n"]}
@@ -81,7 +81,7 @@ export declare abstract class IModelReadRpcInterface extends RpcInterface {
81
81
  getViewStateData(_iModelToken: IModelRpcProps, _viewDefinitionId: string, _options?: ViewStateLoadProps): Promise<ViewStateProps>;
82
82
  readFontJson(_iModelToken: IModelRpcProps): Promise<FontMapProps>;
83
83
  getToolTipMessage(_iModelToken: IModelRpcProps, _elementId: string): Promise<string[]>;
84
- /** @deprecated in 3.x use ViewStore apis. */
84
+ /** @deprecated in 3.x - might be removed in next major version. Use ViewStore apis. */
85
85
  getViewThumbnail(_iModelToken: IModelRpcProps, _viewId: string): Promise<Uint8Array>;
86
86
  getDefaultViewId(_iModelToken: IModelRpcProps): Promise<Id64String>;
87
87
  getCustomViewState3dData(_iModelToken: IModelRpcProps, _options: CustomViewState3dCreatorOptions): Promise<CustomViewState3dProps>;
@@ -1 +1 @@
1
- {"version":3,"file":"IModelReadRpcInterface.d.ts","sourceRoot":"","sources":["../../../src/rpc/IModelReadRpcInterface.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC9F,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACpG,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,i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cAAc,EAAE,kBAAkB,EAAE,UAAU,GAAG,UAAU,GAAG,SAAS,EAAE,QAAQ,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,YAAY,GAAG,SAAS,CAAC;IAGzK,qBAAqB,CAAC,YAAY,EAAE,cAAc,EAAE,MAAM,EAAE,uBAAuB,GAAG,OAAO,CAAC,UAAU,CAAC;IAGtH,gBAAgB;IACH,aAAa,CAAC,YAAY,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC;CACnJ"}
@@ -63,7 +63,7 @@ class IModelReadRpcInterface extends RpcInterface_1.RpcInterface {
63
63
  async getViewStateData(_iModelToken, _viewDefinitionId, _options) { return this.forward(arguments); }
64
64
  async readFontJson(_iModelToken) { return this.forward(arguments); } // eslint-disable-line @typescript-eslint/no-deprecated
65
65
  async getToolTipMessage(_iModelToken, _elementId) { return this.forward(arguments); }
66
- /** @deprecated in 3.x use ViewStore apis. */
66
+ /** @deprecated in 3.x - might be removed in next major version. Use ViewStore apis. */
67
67
  async getViewThumbnail(_iModelToken, _viewId) { return this.forward(arguments); }
68
68
  async getDefaultViewId(_iModelToken) { return this.forward(arguments); }
69
69
  async getCustomViewState3dData(_iModelToken, _options) { return this.forward(arguments); }
@@ -1 +1 @@
1
- {"version":3,"file":"IModelReadRpcInterface.js","sourceRoot":"","sources":["../../../src/rpc/IModelReadRpcInterface.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;;;;;;;AAoBH,kDAA+C;AAC/C,8CAA2C;AAO3C,sDAA8D;AAC9D,kDAAwD;AACxD,sDAAmD;AAGnD;;;GAGG;AACH,MAAa,sBAAuB,SAAQ,gCAAmB;IACtD,wBAAwB,GAAY,IAAI,CAAC;IAChC,OAAO,GAAG,kBAAkB,CAAC;CAC9C;AAHD,wDAGC;A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CAAC,SAAS,CAAC;8DAC4E;AAEpI;IADZ,2BAAY,CAAC,oBAAoB,CAAC,sCAAuB,CAAC,SAAS,CAAC;+DACkF;AAM1I;IADZ,2BAAY,CAAC,oBAAoB,CAAC,sCAAuB,CAAC,SAAS,CAAC;+DACuE;AAG/H;IADZ,2BAAY,CAAC,oBAAoB,CAAC,sCAAuB,CAAC,SAAS,CAAC;8DAC6G;AAMrK;IADZ,2BAAY,CAAC,oBAAoB,CAAC,sCAAuB,CAAC,SAAS,CAAC;8DAC+C;AAEvG;IADZ,2BAAY,CAAC,oBAAoB,CAAC,sCAAuB,CAAC,SAAS,CAAC;sEAC8G;AAEtK;IADZ,2BAAY,CAAC,oBAAoB,CAAC,sCAAuB,CAAC,SAAS,CAAC;8DAC0G;AAQlK;IADZ,2BAAY,CAAC,oBAAoB,CAAC,sCAAuB,CAAC,SAAS,CAAC;oFAC0H","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module RpcInterface\n */\n\nimport { CompressedId64Set, GuidString, Id64String, IModelStatus } from \"@itwin/core-bentley\";\nimport { Range3dProps } from \"@itwin/core-geometry\";\nimport { CodeProps } from \"../Code\";\nimport { DbBlobRequest, DbBlobResponse, DbQueryRequest, DbQueryResponse } from \"../ConcurrentQuery\";\nimport { ElementMeshRequestProps } from \"../ElementMesh\";\nimport { ElementLoadOptions, ElementProps } from \"../ElementProps\";\nimport { EntityQueryParams } from \"../EntityProps\";\nimport { FontMapProps } from \"../Fonts\";\nimport {\n GeoCoordinatesRequestProps, GeoCoordinatesResponseProps, IModelCoordinatesRequestProps, IModelCoordinatesResponseProps,\n} from \"../GeoCoordinateServices\";\nimport { GeometryContainmentRequestProps, GeometryContainmentResponseProps } from \"../GeometryContainment\";\nimport { GeometrySummaryRequestProps } from \"../GeometrySummary\";\nimport { IModelConnectionProps, IModelRpcOpenProps, IModelRpcProps } from \"../IModel\";\nimport {\n MassPropertiesPerCandidateRequestProps, MassPropertiesPerCandidateResponseProps, MassPropertiesRequestProps, MassPropertiesResponseProps,\n} from \"../MassProperties\";\nimport { ModelProps } from \"../ModelProps\";\nimport { RpcInterface } from \"../RpcInterface\";\nimport { RpcManager } from \"../RpcManager\";\nimport { SnapRequestProps, SnapResponseProps } from \"../internal/Snapping\";\nimport { TextureData, TextureLoadProps } from \"../TextureProps\";\nimport {\n CustomViewState3dCreatorOptions, CustomViewState3dProps, HydrateViewStateRequestProps, HydrateViewStateResponseProps, SubCategoryResultRow,\n ViewStateLoadProps, ViewStateProps,\n} from \"../ViewProps\";\nimport { RpcResponseCacheControl } from \"./core/RpcConstants\";\nimport { RpcNotFoundResponse } from \"./core/RpcControl\";\nimport { RpcOperation } from \"./core/RpcOperation\";\nimport { RpcRoutingToken } from \"./core/RpcRoutingToken\";\n\n/** Response if the IModelDb was not found at the backend\n * (if the service has moved)\n * @public\n */\nexport class IModelNotFoundResponse extends RpcNotFoundResponse {\n public isIModelNotFoundResponse: boolean = true;\n public override message = \"iModel not found\";\n}\n\n/** Describes the volume of geometry contained with a [GeometricModel]($backend) as returned by\n * [IModelConnection.Models.queryExtents]($frontend) and [IModelDb.Models.queryExtents]($backend).\n * @public\n */\nexport interface ModelExtentsProps {\n /** The Id of the model, or [Id64.invalid]($bentley) if the input model Id was not a well-formed [Id64String]($bentley). */\n id: Id64String;\n /** The volume of geometry contained within the model.\n * This range will be null (@see [Range3d.isNull]($geometry)) if [[status]] is not [IModelStatus.Success]($bentley) or the model contains no geometry.\n */\n extents: Range3dProps;\n /** A status code indicating what if any error occurred obtaining the model's extents. For example:\n * - [IModelStatus.InvalidId]($bentley) if the input model Id was not a well-formed [Id64String]($bentley);\n * - [IModelStatus.NotFound]($bentley) if no model with the specified Id exists in the [[IModel]];\n * - [IModelStatus.WrongModel]($bentley) if the specified model is not a [GeometricModel]($backend); or\n * - [IModelStatus.Success]($bentley) if the extents were successfully obtained.\n *\n * If `status` is anything other than [IModelStatus.Success]($bentley), [[extents]] will be a null range.\n */\n status: IModelStatus;\n}\n\n/** The RPC interface for reading from an iModel.\n * All operations only require read-only access.\n * This interface is not normally used directly. See IModelConnection for higher-level and more convenient API for accessing iModels from a frontend.\n * @internal\n */\nexport abstract class IModelReadRpcInterface extends RpcInterface {\n /** Returns the IModelReadRpcInterface instance for the frontend. */\n public static getClient(): IModelReadRpcInterface { return RpcManager.getClientForInterface(IModelReadRpcInterface); }\n\n /** Returns the IModelReadRpcInterface instance for a custom RPC routing configuration. */\n public static getClientForRouting(token: RpcRoutingToken): IModelReadRpcInterface { return RpcManager.getClientForInterface(IModelReadRpcInterface, token); }\n\n /** The immutable name of the interface. */\n public static readonly interfaceName = \"IModelReadRpcInterface\";\n\n /** The semantic version of the interface. */\n public static interfaceVersion = \"3.7.0\";\n\n /*===========================================================================================\n NOTE: Any add/remove/change to the methods below requires an update of the interface version.\n NOTE: Please consult the README in this folder for the semantic versioning rules.\n ===========================================================================================*/\n @RpcOperation.allowResponseCaching(RpcResponseCacheControl.Immutable)\n public async getConnectionProps(_iModelToken: IModelRpcOpenProps): Promise<IModelConnectionProps> { return this.forward(arguments); }\n public async queryRows(_iModelToken: IModelRpcProps, _request: DbQueryRequest): Promise<DbQueryResponse> { return this.forward(arguments); }\n @RpcOperation.allowResponseCaching(RpcResponseCacheControl.Immutable)\n public async querySubCategories(_iModelToken: IModelRpcProps, _categoryIds: CompressedId64Set): Promise<SubCategoryResultRow[]> { return this.forward(arguments); }\n @RpcOperation.allowResponseCaching(RpcResponseCacheControl.Immutable)\n public async queryAllUsedSpatialSubCategories(_iModelToken: IModelRpcProps): Promise<SubCategoryResultRow[]> { return this.forward(arguments); }\n public async queryBlob(_iModelToken: IModelRpcProps, _request: DbBlobRequest): Promise<DbBlobResponse> { return this.forward(arguments); }\n @RpcOperation.allowResponseCaching(RpcResponseCacheControl.Immutable)\n public async getModelProps(_iModelToken: IModelRpcProps, _modelIds: Id64String[]): Promise<ModelProps[]> { return this.forward(arguments); }\n @RpcOperation.allowResponseCaching(RpcResponseCacheControl.Immutable)\n public async queryModelRanges(_iModelToken: IModelRpcProps, _modelIds: Id64String[]): Promise<Range3dProps[]> { return this.forward(arguments); }\n @RpcOperation.allowResponseCaching(RpcResponseCacheControl.Immutable)\n public async queryModelExtents(_iModelToken: IModelRpcProps, _modelIds: Id64String[]): Promise<ModelExtentsProps[]> { return this.forward(arguments); }\n public async queryModelProps(_iModelToken: IModelRpcProps, _params: EntityQueryParams): Promise<ModelProps[]> { return this.forward(arguments); }\n public async getElementProps(_iModelToken: IModelRpcProps, _elementIds: Id64String[]): Promise<ElementProps[]> { return this.forward(arguments); }\n public async queryElementProps(_iModelToken: IModelRpcProps, _params: EntityQueryParams): Promise<ElementProps[]> { return this.forward(arguments); }\n public async queryEntityIds(_iModelToken: IModelRpcProps, _params: EntityQueryParams): Promise<Id64String[]> { return this.forward(arguments); }\n @RpcOperation.allowResponseCaching(RpcResponseCacheControl.Immutable)\n public async getClassHierarchy(_iModelToken: IModelRpcProps, _startClassName: string): Promise<string[]> { return this.forward(arguments); }\n public async getAllCodeSpecs(_iModelToken: IModelRpcProps): Promise<any[]> { return this.forward(arguments); }\n @RpcOperation.allowResponseCaching(RpcResponseCacheControl.Immutable)\n public async getViewStateData(_iModelToken: IModelRpcProps, _viewDefinitionId: string, _options?: ViewStateLoadProps): Promise<ViewStateProps> { return this.forward(arguments); }\n public async readFontJson(_iModelToken: IModelRpcProps): Promise<FontMapProps> { return this.forward(arguments); } // eslint-disable-line @typescript-eslint/no-deprecated\n public async getToolTipMessage(_iModelToken: IModelRpcProps, _elementId: string): Promise<string[]> { return this.forward(arguments); }\n /** @deprecated in 3.x use ViewStore apis. */\n public async getViewThumbnail(_iModelToken: IModelRpcProps, _viewId: string): Promise<Uint8Array> { return this.forward(arguments); }\n @RpcOperation.allowResponseCaching(RpcResponseCacheControl.Immutable)\n public async getDefaultViewId(_iModelToken: IModelRpcProps): Promise<Id64String> { return this.forward(arguments); }\n @RpcOperation.allowResponseCaching(RpcResponseCacheControl.Immutable)\n public async getCustomViewState3dData(_iModelToken: IModelRpcProps, _options: CustomViewState3dCreatorOptions): Promise<CustomViewState3dProps> { return this.forward(arguments); }\n @RpcOperation.allowResponseCaching(RpcResponseCacheControl.Immutable)\n public async hydrateViewState(_iModelToken: IModelRpcProps, _options: HydrateViewStateRequestProps): Promise<HydrateViewStateResponseProps> { return this.forward(arguments); }\n public async requestSnap(_iModelToken: IModelRpcProps, _sessionId: string, _props: SnapRequestProps): Promise<SnapResponseProps> { return this.forward(arguments); }\n public async cancelSnap(_iModelToken: IModelRpcProps, _sessionId: string): Promise<void> { return this.forward(arguments); }\n public async getGeometryContainment(_iModelToken: IModelRpcProps, _props: GeometryContainmentRequestProps): Promise<GeometryContainmentResponseProps> { return this.forward(arguments); }\n public async getMassProperties(_iModelToken: IModelRpcProps, _props: MassPropertiesRequestProps): Promise<MassPropertiesResponseProps> { return this.forward(arguments); }\n public async getMassPropertiesPerCandidate(_iModelToken: IModelRpcProps, _props: MassPropertiesPerCandidateRequestProps): Promise<MassPropertiesPerCandidateResponseProps[]> { return this.forward(arguments); } // eslint-disable-line @typescript-eslint/no-deprecated\n public async getIModelCoordinatesFromGeoCoordinates(_iModelToken: IModelRpcProps, _props: IModelCoordinatesRequestProps): Promise<IModelCoordinatesResponseProps> { return this.forward(arguments); }\n @RpcOperation.allowResponseCaching(RpcResponseCacheControl.Immutable)\n public async getGeoCoordinatesFromIModelCoordinates(_iModelToken: IModelRpcProps, _props: GeoCoordinatesRequestProps): Promise<GeoCoordinatesResponseProps> { return this.forward(arguments); }\n public async getGeometrySummary(_iModelToken: IModelRpcProps, _props: GeometrySummaryRequestProps): Promise<string> { return this.forward(arguments); }\n public async queryTextureData(_iModelToken: IModelRpcProps, _textureLoadProps: TextureLoadProps): Promise<TextureData | undefined> { return this.forward(arguments); }\n public async loadElementProps(_iModelToken: IModelRpcProps, _elementIdentifier: Id64String | GuidString | CodeProps, _options?: ElementLoadOptions): Promise<ElementProps | undefined> {\n return this.forward(arguments);\n }\n public async generateElementMeshes(_iModelToken: IModelRpcProps, _props: ElementMeshRequestProps): Promise<Uint8Array> {\n return this.forward(arguments);\n }\n /** @internal */\n public async callViewStore(_iModelToken: IModelRpcProps, _version: string, _forWrite: boolean, _methodName: string, ..._args: any[]): Promise<any> { return this.forward(arguments); }\n}\n"]}
1
+ {"version":3,"file":"IModelReadRpcInterface.js","sourceRoot":"","sources":["../../../src/rpc/IModelReadRpcInterface.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;;;;;;;AAoBH,kDAA+C;AAC/C,8CAA2C;AAO3C,sDAA8D;AAC9D,kDAAwD;AACxD,sDAAmD;AAGnD;;;GAGG;AACH,MAAa,sBAAuB,SAAQ,gCAAmB;IACtD,wBAAwB,GAAY,IAAI,CAAC;IAChC,OAAO,GAAG,kBAAkB,CAAC;CAC9C;AAHD,wDAGC;AAwBD;;;;GAIG;AACH,MAAsB,sBAAuB,SAAQ,2BAAY;IAC/D,oEAAoE;IAC7D,MAAM,CAAC,SAAS,KAA6B,OAAO,uBAAU,CAAC,qBAAqB,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC;IAEtH,0FAA0F;IACnF,MAAM,CAAC,mBAAmB,CAAC,KAAsB,IAA4B,OAAO,uBAAU,CAAC,qBAAqB,CAAC,sBAAsB,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;IAE7J,2CAA2C;IACpC,MAAM,CAAU,aAAa,GAAG,wBAAwB,CAAC;IAEhE,6CAA6C;IACtC,MAAM,CAAC,gBAAgB,GAAG,OAAO,CAAC;IAEzC;;;iGAG6F;IAEhF,AAAN,KAAK,CAAC,kBAAkB,CAAC,YAAgC,IAAoC,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IAC9H,KAAK,CAAC,SAAS,CAAC,YAA4B,EA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bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module RpcInterface\n */\n\nimport { CompressedId64Set, GuidString, Id64String, IModelStatus } from \"@itwin/core-bentley\";\nimport { Range3dProps } from \"@itwin/core-geometry\";\nimport { CodeProps } from \"../Code\";\nimport { DbBlobRequest, DbBlobResponse, DbQueryRequest, DbQueryResponse } from \"../ConcurrentQuery\";\nimport { ElementMeshRequestProps } from \"../ElementMesh\";\nimport { ElementLoadOptions, ElementProps } from \"../ElementProps\";\nimport { EntityQueryParams } from \"../EntityProps\";\nimport { FontMapProps } from \"../Fonts\";\nimport {\n GeoCoordinatesRequestProps, GeoCoordinatesResponseProps, IModelCoordinatesRequestProps, IModelCoordinatesResponseProps,\n} from \"../GeoCoordinateServices\";\nimport { GeometryContainmentRequestProps, GeometryContainmentResponseProps } from \"../GeometryContainment\";\nimport { GeometrySummaryRequestProps } from \"../GeometrySummary\";\nimport { IModelConnectionProps, IModelRpcOpenProps, IModelRpcProps } from \"../IModel\";\nimport {\n MassPropertiesPerCandidateRequestProps, MassPropertiesPerCandidateResponseProps, MassPropertiesRequestProps, MassPropertiesResponseProps,\n} from \"../MassProperties\";\nimport { ModelProps } from \"../ModelProps\";\nimport { RpcInterface } from \"../RpcInterface\";\nimport { RpcManager } from \"../RpcManager\";\nimport { SnapRequestProps, SnapResponseProps } from \"../internal/Snapping\";\nimport { TextureData, TextureLoadProps } from \"../TextureProps\";\nimport {\n CustomViewState3dCreatorOptions, CustomViewState3dProps, HydrateViewStateRequestProps, HydrateViewStateResponseProps, SubCategoryResultRow,\n ViewStateLoadProps, ViewStateProps,\n} from \"../ViewProps\";\nimport { RpcResponseCacheControl } from \"./core/RpcConstants\";\nimport { RpcNotFoundResponse } from \"./core/RpcControl\";\nimport { RpcOperation } from \"./core/RpcOperation\";\nimport { RpcRoutingToken } from \"./core/RpcRoutingToken\";\n\n/** Response if the IModelDb was not found at the backend\n * (if the service has moved)\n * @public\n */\nexport class IModelNotFoundResponse extends RpcNotFoundResponse {\n public isIModelNotFoundResponse: boolean = true;\n public override message = \"iModel not found\";\n}\n\n/** Describes the volume of geometry contained with a [GeometricModel]($backend) as returned by\n * [IModelConnection.Models.queryExtents]($frontend) and [IModelDb.Models.queryExtents]($backend).\n * @public\n */\nexport interface ModelExtentsProps {\n /** The Id of the model, or [Id64.invalid]($bentley) if the input model Id was not a well-formed [Id64String]($bentley). */\n id: Id64String;\n /** The volume of geometry contained within the model.\n * This range will be null (@see [Range3d.isNull]($geometry)) if [[status]] is not [IModelStatus.Success]($bentley) or the model contains no geometry.\n */\n extents: Range3dProps;\n /** A status code indicating what if any error occurred obtaining the model's extents. For example:\n * - [IModelStatus.InvalidId]($bentley) if the input model Id was not a well-formed [Id64String]($bentley);\n * - [IModelStatus.NotFound]($bentley) if no model with the specified Id exists in the [[IModel]];\n * - [IModelStatus.WrongModel]($bentley) if the specified model is not a [GeometricModel]($backend); or\n * - [IModelStatus.Success]($bentley) if the extents were successfully obtained.\n *\n * If `status` is anything other than [IModelStatus.Success]($bentley), [[extents]] will be a null range.\n */\n status: IModelStatus;\n}\n\n/** The RPC interface for reading from an iModel.\n * All operations only require read-only access.\n * This interface is not normally used directly. See IModelConnection for higher-level and more convenient API for accessing iModels from a frontend.\n * @internal\n */\nexport abstract class IModelReadRpcInterface extends RpcInterface {\n /** Returns the IModelReadRpcInterface instance for the frontend. */\n public static getClient(): IModelReadRpcInterface { return RpcManager.getClientForInterface(IModelReadRpcInterface); }\n\n /** Returns the IModelReadRpcInterface instance for a custom RPC routing configuration. */\n public static getClientForRouting(token: RpcRoutingToken): IModelReadRpcInterface { return RpcManager.getClientForInterface(IModelReadRpcInterface, token); }\n\n /** The immutable name of the interface. */\n public static readonly interfaceName = \"IModelReadRpcInterface\";\n\n /** The semantic version of the interface. */\n public static interfaceVersion = \"3.7.0\";\n\n /*===========================================================================================\n NOTE: Any add/remove/change to the methods below requires an update of the interface version.\n NOTE: Please consult the README in this folder for the semantic versioning rules.\n ===========================================================================================*/\n @RpcOperation.allowResponseCaching(RpcResponseCacheControl.Immutable)\n public async getConnectionProps(_iModelToken: IModelRpcOpenProps): Promise<IModelConnectionProps> { return this.forward(arguments); }\n public async queryRows(_iModelToken: IModelRpcProps, _request: DbQueryRequest): Promise<DbQueryResponse> { return this.forward(arguments); }\n @RpcOperation.allowResponseCaching(RpcResponseCacheControl.Immutable)\n public async querySubCategories(_iModelToken: IModelRpcProps, _categoryIds: CompressedId64Set): Promise<SubCategoryResultRow[]> { return this.forward(arguments); }\n @RpcOperation.allowResponseCaching(RpcResponseCacheControl.Immutable)\n public async queryAllUsedSpatialSubCategories(_iModelToken: IModelRpcProps): Promise<SubCategoryResultRow[]> { return this.forward(arguments); }\n public async queryBlob(_iModelToken: IModelRpcProps, _request: DbBlobRequest): Promise<DbBlobResponse> { return this.forward(arguments); }\n @RpcOperation.allowResponseCaching(RpcResponseCacheControl.Immutable)\n public async getModelProps(_iModelToken: IModelRpcProps, _modelIds: Id64String[]): Promise<ModelProps[]> { return this.forward(arguments); }\n @RpcOperation.allowResponseCaching(RpcResponseCacheControl.Immutable)\n public async queryModelRanges(_iModelToken: IModelRpcProps, _modelIds: Id64String[]): Promise<Range3dProps[]> { return this.forward(arguments); }\n @RpcOperation.allowResponseCaching(RpcResponseCacheControl.Immutable)\n public async queryModelExtents(_iModelToken: IModelRpcProps, _modelIds: Id64String[]): Promise<ModelExtentsProps[]> { return this.forward(arguments); }\n public async queryModelProps(_iModelToken: IModelRpcProps, _params: EntityQueryParams): Promise<ModelProps[]> { return this.forward(arguments); }\n public async getElementProps(_iModelToken: IModelRpcProps, _elementIds: Id64String[]): Promise<ElementProps[]> { return this.forward(arguments); }\n public async queryElementProps(_iModelToken: IModelRpcProps, _params: EntityQueryParams): Promise<ElementProps[]> { return this.forward(arguments); }\n public async queryEntityIds(_iModelToken: IModelRpcProps, _params: EntityQueryParams): Promise<Id64String[]> { return this.forward(arguments); }\n @RpcOperation.allowResponseCaching(RpcResponseCacheControl.Immutable)\n public async getClassHierarchy(_iModelToken: IModelRpcProps, _startClassName: string): Promise<string[]> { return this.forward(arguments); }\n public async getAllCodeSpecs(_iModelToken: IModelRpcProps): Promise<any[]> { return this.forward(arguments); }\n @RpcOperation.allowResponseCaching(RpcResponseCacheControl.Immutable)\n public async getViewStateData(_iModelToken: IModelRpcProps, _viewDefinitionId: string, _options?: ViewStateLoadProps): Promise<ViewStateProps> { return this.forward(arguments); }\n public async readFontJson(_iModelToken: IModelRpcProps): Promise<FontMapProps> { return this.forward(arguments); } // eslint-disable-line @typescript-eslint/no-deprecated\n public async getToolTipMessage(_iModelToken: IModelRpcProps, _elementId: string): Promise<string[]> { return this.forward(arguments); }\n /** @deprecated in 3.x - might be removed in next major version. Use ViewStore apis. */\n public async getViewThumbnail(_iModelToken: IModelRpcProps, _viewId: string): Promise<Uint8Array> { return this.forward(arguments); }\n @RpcOperation.allowResponseCaching(RpcResponseCacheControl.Immutable)\n public async getDefaultViewId(_iModelToken: IModelRpcProps): Promise<Id64String> { return this.forward(arguments); }\n @RpcOperation.allowResponseCaching(RpcResponseCacheControl.Immutable)\n public async getCustomViewState3dData(_iModelToken: IModelRpcProps, _options: CustomViewState3dCreatorOptions): Promise<CustomViewState3dProps> { return this.forward(arguments); }\n @RpcOperation.allowResponseCaching(RpcResponseCacheControl.Immutable)\n public async hydrateViewState(_iModelToken: IModelRpcProps, _options: HydrateViewStateRequestProps): Promise<HydrateViewStateResponseProps> { return this.forward(arguments); }\n public async requestSnap(_iModelToken: IModelRpcProps, _sessionId: string, _props: SnapRequestProps): Promise<SnapResponseProps> { return this.forward(arguments); }\n public async cancelSnap(_iModelToken: IModelRpcProps, _sessionId: string): Promise<void> { return this.forward(arguments); }\n public async getGeometryContainment(_iModelToken: IModelRpcProps, _props: GeometryContainmentRequestProps): Promise<GeometryContainmentResponseProps> { return this.forward(arguments); }\n public async getMassProperties(_iModelToken: IModelRpcProps, _props: MassPropertiesRequestProps): Promise<MassPropertiesResponseProps> { return this.forward(arguments); }\n public async getMassPropertiesPerCandidate(_iModelToken: IModelRpcProps, _props: MassPropertiesPerCandidateRequestProps): Promise<MassPropertiesPerCandidateResponseProps[]> { return this.forward(arguments); } // eslint-disable-line @typescript-eslint/no-deprecated\n public async getIModelCoordinatesFromGeoCoordinates(_iModelToken: IModelRpcProps, _props: IModelCoordinatesRequestProps): Promise<IModelCoordinatesResponseProps> { return this.forward(arguments); }\n @RpcOperation.allowResponseCaching(RpcResponseCacheControl.Immutable)\n public async getGeoCoordinatesFromIModelCoordinates(_iModelToken: IModelRpcProps, _props: GeoCoordinatesRequestProps): Promise<GeoCoordinatesResponseProps> { return this.forward(arguments); }\n public async getGeometrySummary(_iModelToken: IModelRpcProps, _props: GeometrySummaryRequestProps): Promise<string> { return this.forward(arguments); }\n public async queryTextureData(_iModelToken: IModelRpcProps, _textureLoadProps: TextureLoadProps): Promise<TextureData | undefined> { return this.forward(arguments); }\n public async loadElementProps(_iModelToken: IModelRpcProps, _elementIdentifier: Id64String | GuidString | CodeProps, _options?: ElementLoadOptions): Promise<ElementProps | undefined> {\n return this.forward(arguments);\n }\n public async generateElementMeshes(_iModelToken: IModelRpcProps, _props: ElementMeshRequestProps): Promise<Uint8Array> {\n return this.forward(arguments);\n }\n /** @internal */\n public async callViewStore(_iModelToken: IModelRpcProps, _version: string, _forWrite: boolean, _methodName: string, ..._args: any[]): Promise<any> { return this.forward(arguments); }\n}\n"]}
@@ -7,7 +7,7 @@ import { RpcRoutingToken } from "./core/RpcRoutingToken";
7
7
  /** The RPC interface for working with *snapshot* iModels.
8
8
  * This interface is intended for desktop and mobile products. Web products are discouraged from registering this interface.
9
9
  * @internal
10
- * @deprecated in 5.0. Check [[IpcAppFunctions]] or [[CheckpointConnection]] for replacements.
10
+ * @deprecated in 5.0 - will not be removed until after 2026-06-13. Check [[IpcAppFunctions]] or [[CheckpointConnection]] for replacements.
11
11
  */
12
12
  export declare abstract class SnapshotIModelRpcInterface extends RpcInterface {
13
13
  /** Returns the SnapshotIModelRpcInterface client instance for the frontend. */
@@ -19,15 +19,15 @@ export declare abstract class SnapshotIModelRpcInterface extends RpcInterface {
19
19
  /** The version of the interface. */
20
20
  static interfaceVersion: string;
21
21
  /**
22
- * @deprecated in 5.0. Use [[IpcAppFunctions.openSnapshot]] in IPC applications, no replacement for Web applications.
22
+ * @deprecated in 5.0 - will not be removed until after 2026-06-13. Use [[IpcAppFunctions.openSnapshot]] in IPC applications, no replacement for Web applications.
23
23
  */
24
24
  openFile(_filePath: string, _opts?: SnapshotOpenOptions): Promise<IModelConnectionProps>;
25
25
  /**
26
- * @deprecated in 4.10. Use [[CheckpointConnection.openRemote]].
26
+ * @deprecated in 4.10 - will not be removed until after 2026-06-13. Use [[CheckpointConnection.openRemote]].
27
27
  */
28
28
  openRemote(_key: string, _opts?: SnapshotOpenOptions): Promise<IModelConnectionProps>;
29
29
  /**
30
- * @deprecated in 5.0. Use [[IpcAppFunctions.closeIModel]] in IPC applications, no replacement for Web applications.
30
+ * @deprecated in 5.0 - will not be removed until after 2026-06-13. Use [[IpcAppFunctions.closeIModel]] in IPC applications, no replacement for Web applications.
31
31
  */
32
32
  close(_iModelRpcProps: IModelRpcProps): Promise<boolean>;
33
33
  }
@@ -21,7 +21,7 @@ const unknownIModelId = (req) => ({ iModelId: "undefined", key: req.parameters[0
21
21
  /** The RPC interface for working with *snapshot* iModels.
22
22
  * This interface is intended for desktop and mobile products. Web products are discouraged from registering this interface.
23
23
  * @internal
24
- * @deprecated in 5.0. Check [[IpcAppFunctions]] or [[CheckpointConnection]] for replacements.
24
+ * @deprecated in 5.0 - will not be removed until after 2026-06-13. Check [[IpcAppFunctions]] or [[CheckpointConnection]] for replacements.
25
25
  */
26
26
  class SnapshotIModelRpcInterface extends RpcInterface_1.RpcInterface {
27
27
  /** Returns the SnapshotIModelRpcInterface client instance for the frontend. */
@@ -37,15 +37,15 @@ class SnapshotIModelRpcInterface extends RpcInterface_1.RpcInterface {
37
37
  NOTE: Please consult the README in this folder for the semantic versioning rules.
38
38
  ===========================================================================================*/
39
39
  /**
40
- * @deprecated in 5.0. Use [[IpcAppFunctions.openSnapshot]] in IPC applications, no replacement for Web applications.
40
+ * @deprecated in 5.0 - will not be removed until after 2026-06-13. Use [[IpcAppFunctions.openSnapshot]] in IPC applications, no replacement for Web applications.
41
41
  */
42
42
  async openFile(_filePath, _opts) { return this.forward(arguments); }
43
43
  /**
44
- * @deprecated in 4.10. Use [[CheckpointConnection.openRemote]].
44
+ * @deprecated in 4.10 - will not be removed until after 2026-06-13. Use [[CheckpointConnection.openRemote]].
45
45
  */
46
46
  async openRemote(_key, _opts) { return this.forward(arguments); }
47
47
  /**
48
- * @deprecated in 5.0. Use [[IpcAppFunctions.closeIModel]] in IPC applications, no replacement for Web applications.
48
+ * @deprecated in 5.0 - will not be removed until after 2026-06-13. Use [[IpcAppFunctions.closeIModel]] in IPC applications, no replacement for Web applications.
49
49
  */
50
50
  async close(_iModelRpcProps) { return this.forward(arguments); }
51
51
  }
@@ -1 +1 @@
1
- {"version":3,"file":"SnapshotIModelRpcInterface.js","sourceRoot":"","sources":["../../../src/rpc/SnapshotIModelRpcInterface.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;;;;;;;AAKH,kDAA+C;AAC/C,8CAA2C;AAC3C,sDAAmD;AAInD,MAAM,eAAe,GAA8B,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,GAAG,EAAE,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AAEhH;;;;GAIG;AACH,MAAsB,0BAA2B,SAAQ,2BAAY;IACnE,+EAA+E;IACxE,MAAM,CAAC,SAAS,KAAiC,OAAO,uBAAU,CAAC,qBAAqB,CAAC,0BAA0B,CAAC,CAAC,CAAC,CAAC;IAE9H,qGAAqG;IAC9F,MAAM,CAAC,mBAAmB,CAAC,KAAsB,IAAgC,OAAO,uBAAU,CAAC,qBAAqB,CAAC,0BAA0B,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;IAErK,2CAA2C;IACpC,MAAM,CAAU,aAAa,GAAG,4BAA4B,CAAC;IAEpE,oCAAoC;IAC7B,MAAM,CAAC,gBAAgB,GAAG,OAAO,CAAC;IAEzC;;;iGAG6F;IAE7F;;OAEG;IAEU,AAAN,KAAK,CAAC,QAAQ,CAAC,SAAiB,EAAE,KAA2B,IAAoC,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IAEzI;;OAEG;IAEU,AAAN,KAAK,CAAC,UAAU,CAAC,IAAY,EAAE,KAA2B,IAAoC,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IAEtI;;OAEG;IACI,KAAK,CAAC,KAAK,CAAC,eAA+B,IAAsB,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;;AAjC3G,gEAkCC;AAZc;IADZ,2BAAY,CAAC,eAAe,CAAC,eAAe,CAAC;0DAC2F;AAM5H;IADZ,2BAAY,CAAC,eAAe,CAAC,eAAe,CAAC;4DACwF","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module RpcInterface\n */\n\n/* eslint-disable @typescript-eslint/no-deprecated */\n\nimport { IModelConnectionProps, IModelRpcProps, SnapshotOpenOptions } from \"../IModel\";\nimport { RpcInterface } from \"../RpcInterface\";\nimport { RpcManager } from \"../RpcManager\";\nimport { RpcOperation } from \"./core/RpcOperation\";\nimport { RpcRequestTokenSupplier_T } from \"./core/RpcRequest\";\nimport { RpcRoutingToken } from \"./core/RpcRoutingToken\";\n\nconst unknownIModelId: RpcRequestTokenSupplier_T = (req) => ({ iModelId: \"undefined\", key: req.parameters[0] });\n\n/** The RPC interface for working with *snapshot* iModels.\n * This interface is intended for desktop and mobile products. Web products are discouraged from registering this interface.\n * @internal\n * @deprecated in 5.0. Check [[IpcAppFunctions]] or [[CheckpointConnection]] for replacements.\n */\nexport abstract class SnapshotIModelRpcInterface extends RpcInterface {\n /** Returns the SnapshotIModelRpcInterface client instance for the frontend. */\n public static getClient(): SnapshotIModelRpcInterface { return RpcManager.getClientForInterface(SnapshotIModelRpcInterface); }\n\n /** Returns the SnapshotIModelRpcInterface client instance for a custom RPC routing configuration. */\n public static getClientForRouting(token: RpcRoutingToken): SnapshotIModelRpcInterface { return RpcManager.getClientForInterface(SnapshotIModelRpcInterface, token); }\n\n /** The immutable name of the interface. */\n public static readonly interfaceName = \"SnapshotIModelRpcInterface\";\n\n /** The version of the interface. */\n public static interfaceVersion = \"2.0.0\";\n\n /*===========================================================================================\n NOTE: Any add/remove/change to the methods below requires an update of the interface version.\n NOTE: Please consult the README in this folder for the semantic versioning rules.\n ===========================================================================================*/\n\n /**\n * @deprecated in 5.0. Use [[IpcAppFunctions.openSnapshot]] in IPC applications, no replacement for Web applications.\n */\n @RpcOperation.setRoutingProps(unknownIModelId)\n public async openFile(_filePath: string, _opts?: SnapshotOpenOptions): Promise<IModelConnectionProps> { return this.forward(arguments); }\n\n /**\n * @deprecated in 4.10. Use [[CheckpointConnection.openRemote]].\n */\n @RpcOperation.setRoutingProps(unknownIModelId)\n public async openRemote(_key: string, _opts?: SnapshotOpenOptions): Promise<IModelConnectionProps> { return this.forward(arguments); }\n\n /**\n * @deprecated in 5.0. Use [[IpcAppFunctions.closeIModel]] in IPC applications, no replacement for Web applications.\n */\n public async close(_iModelRpcProps: IModelRpcProps): Promise<boolean> { return this.forward(arguments); }\n}\n"]}
1
+ {"version":3,"file":"SnapshotIModelRpcInterface.js","sourceRoot":"","sources":["../../../src/rpc/SnapshotIModelRpcInterface.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;;;;;;;AAKH,kDAA+C;AAC/C,8CAA2C;AAC3C,sDAAmD;AAInD,MAAM,eAAe,GAA8B,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,GAAG,EAAE,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AAEhH;;;;GAIG;AACH,MAAsB,0BAA2B,SAAQ,2BAAY;IACnE,+EAA+E;IACxE,MAAM,CAAC,SAAS,KAAiC,OAAO,uBAAU,CAAC,qBAAqB,CAAC,0BAA0B,CAAC,CAAC,CAAC,CAAC;IAE9H,qGAAqG;IAC9F,MAAM,CAAC,mBAAmB,CAAC,KAAsB,IAAgC,OAAO,uBAAU,CAAC,qBAAqB,CAAC,0BAA0B,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;IAErK,2CAA2C;IACpC,MAAM,CAAU,aAAa,GAAG,4BAA4B,CAAC;IAEpE,oCAAoC;IAC7B,MAAM,CAAC,gBAAgB,GAAG,OAAO,CAAC;IAEzC;;;iGAG6F;IAE7F;;OAEG;IAEU,AAAN,KAAK,CAAC,QAAQ,CAAC,SAAiB,EAAE,KAA2B,IAAoC,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IAEzI;;OAEG;IAEU,AAAN,KAAK,CAAC,UAAU,CAAC,IAAY,EAAE,KAA2B,IAAoC,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IAEtI;;OAEG;IACI,KAAK,CAAC,KAAK,CAAC,eAA+B,IAAsB,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;;AAjC3G,gEAkCC;AAZc;IADZ,2BAAY,CAAC,eAAe,CAAC,eAAe,CAAC;0DAC2F;AAM5H;IADZ,2BAAY,CAAC,eAAe,CAAC,eAAe,CAAC;4DACwF","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module RpcInterface\n */\n\n/* eslint-disable @typescript-eslint/no-deprecated */\n\nimport { IModelConnectionProps, IModelRpcProps, SnapshotOpenOptions } from \"../IModel\";\nimport { RpcInterface } from \"../RpcInterface\";\nimport { RpcManager } from \"../RpcManager\";\nimport { RpcOperation } from \"./core/RpcOperation\";\nimport { RpcRequestTokenSupplier_T } from \"./core/RpcRequest\";\nimport { RpcRoutingToken } from \"./core/RpcRoutingToken\";\n\nconst unknownIModelId: RpcRequestTokenSupplier_T = (req) => ({ iModelId: \"undefined\", key: req.parameters[0] });\n\n/** The RPC interface for working with *snapshot* iModels.\n * This interface is intended for desktop and mobile products. Web products are discouraged from registering this interface.\n * @internal\n * @deprecated in 5.0 - will not be removed until after 2026-06-13. Check [[IpcAppFunctions]] or [[CheckpointConnection]] for replacements.\n */\nexport abstract class SnapshotIModelRpcInterface extends RpcInterface {\n /** Returns the SnapshotIModelRpcInterface client instance for the frontend. */\n public static getClient(): SnapshotIModelRpcInterface { return RpcManager.getClientForInterface(SnapshotIModelRpcInterface); }\n\n /** Returns the SnapshotIModelRpcInterface client instance for a custom RPC routing configuration. */\n public static getClientForRouting(token: RpcRoutingToken): SnapshotIModelRpcInterface { return RpcManager.getClientForInterface(SnapshotIModelRpcInterface, token); }\n\n /** The immutable name of the interface. */\n public static readonly interfaceName = \"SnapshotIModelRpcInterface\";\n\n /** The version of the interface. */\n public static interfaceVersion = \"2.0.0\";\n\n /*===========================================================================================\n NOTE: Any add/remove/change to the methods below requires an update of the interface version.\n NOTE: Please consult the README in this folder for the semantic versioning rules.\n ===========================================================================================*/\n\n /**\n * @deprecated in 5.0 - will not be removed until after 2026-06-13. Use [[IpcAppFunctions.openSnapshot]] in IPC applications, no replacement for Web applications.\n */\n @RpcOperation.setRoutingProps(unknownIModelId)\n public async openFile(_filePath: string, _opts?: SnapshotOpenOptions): Promise<IModelConnectionProps> { return this.forward(arguments); }\n\n /**\n * @deprecated in 4.10 - will not be removed until after 2026-06-13. Use [[CheckpointConnection.openRemote]].\n */\n @RpcOperation.setRoutingProps(unknownIModelId)\n public async openRemote(_key: string, _opts?: SnapshotOpenOptions): Promise<IModelConnectionProps> { return this.forward(arguments); }\n\n /**\n * @deprecated in 5.0 - will not be removed until after 2026-06-13. Use [[IpcAppFunctions.closeIModel]] in IPC applications, no replacement for Web applications.\n */\n public async close(_iModelRpcProps: IModelRpcProps): Promise<boolean> { return this.forward(arguments); }\n}\n"]}
@@ -10,7 +10,7 @@ export declare enum RpcResponseCacheControl {
10
10
  }
11
11
  /** RPC protocol event types.
12
12
  * @public
13
- * @deprecated in 3.6. The RPC system will be significantly refactored (or replaced) in the future.
13
+ * @deprecated in 3.6 - might be removed in next major version. The RPC system will be significantly refactored (or replaced) in the future.
14
14
  */
15
15
  export declare enum RpcProtocolEvent {
16
16
  RequestCreated = 0,
@@ -29,7 +29,7 @@ export declare enum RpcProtocolEvent {
29
29
  }
30
30
  /** The status of an RPC operation request.
31
31
  * @public
32
- * @deprecated in 3.6. The RPC system will be significantly refactored (or replaced) in the future.
32
+ * @deprecated in 3.6 - might be removed in next major version. The RPC system will be significantly refactored (or replaced) in the future.
33
33
  */
34
34
  export declare enum RpcRequestStatus {
35
35
  Unknown = 0,
@@ -48,13 +48,13 @@ export declare enum RpcRequestStatus {
48
48
  RequestTimeout = 13,
49
49
  TooManyRequests = 14
50
50
  }
51
- /** @public @deprecated in 3.6. The RPC system will be significantly refactored (or replaced) in the future. */
51
+ /** @public @deprecated in 3.6 - might be removed in next major version. The RPC system will be significantly refactored (or replaced) in the future. */
52
52
  export declare namespace RpcRequestStatus {
53
53
  function isTransientError(status: RpcRequestStatus): status is RpcRequestStatus.BadGateway | RpcRequestStatus.ServiceUnavailable | RpcRequestStatus.GatewayTimeout | RpcRequestStatus.RequestTimeout | RpcRequestStatus.TooManyRequests;
54
54
  }
55
55
  /** RPC request event types.
56
56
  * @public
57
- * @deprecated in 3.6. The RPC system will be significantly refactored (or replaced) in the future.
57
+ * @deprecated in 3.6 - might be removed in next major version. The RPC system will be significantly refactored (or replaced) in the future.
58
58
  */
59
59
  export declare enum RpcRequestEvent {
60
60
  StatusChanged = 0,
@@ -63,7 +63,7 @@ export declare enum RpcRequestEvent {
63
63
  }
64
64
  /** RPC content types.
65
65
  * @public
66
- * @deprecated in 3.6. The RPC system will be significantly refactored (or replaced) in the future.
66
+ * @deprecated in 3.6 - might be removed in next major version. The RPC system will be significantly refactored (or replaced) in the future.
67
67
  */
68
68
  export declare enum RpcContentType {
69
69
  Unknown = 0,
@@ -74,7 +74,7 @@ export declare enum RpcContentType {
74
74
  }
75
75
  /** Endpoints for RPC protocols.
76
76
  * @public
77
- * @deprecated in 3.6. The RPC system will be significantly refactored (or replaced) in the future.
77
+ * @deprecated in 3.6 - might be removed in next major version. The RPC system will be significantly refactored (or replaced) in the future.
78
78
  */
79
79
  export declare enum RpcEndpoint {
80
80
  Frontend = 0,
@@ -1 +1 @@
1
- {"version":3,"file":"RpcConstants.d.ts","sourceRoot":"","sources":["../../../../src/rpc/core/RpcConstants.ts"],"names":[],"mappings":"AAIA;;GAEG;AAIH;;GAEG;AACH,oBAAY,uBAAuB;IACjC,IAAI,IAAA;IACJ,SAAS,IAAA;CACV;AAED;;;GAGG;AACH,oBAAY,gBAAgB;IAC1B,cAAc,IAAA;IACd,cAAc,IAAA;IACd,eAAe,IAAA;IACf,uBAAuB,IAAA;IACvB,oBAAoB,IAAA;IACpB,oBAAoB,IAAA;IACpB,iBAAiB,IAAA;IACjB,eAAe,IAAA;IACf,sBAAsB,IAAA;IACtB,sBAAsB,IAAA;IACtB,uBAAuB,KAAA;IACvB,oBAAoB,KAAA;IACpB,wBAAwB,KAAA;CACzB;AAED;;;GAGG;AACH,oBAAY,gBAAgB;IAC1B,OAAO,IAAA;IACP,OAAO,IAAA;IACP,SAAS,IAAA;IACT,OAAO,IAAA;IACP,QAAQ,IAAA;IACR,QAAQ,IAAA;IACR,QAAQ,IAAA;IACR,QAAQ,IAAA;IACR,SAAS,IAAA;IACT,SAAS,IAAA;IACT,UAAU,KAAA;IACV,kBAAkB,KAAA;IAClB,cAAc,KAAA;IACd,cAAc,KAAA;IACd,eAAe,KAAA;CAChB;AAED,+GAA+G;AAC/G,yBAAiB,gBAAgB,CAAC;IAChC,SAAgB,gBAAgB,CAAC,MAAM,EAAE,gBAAgB,sLAGxD;CACF;AAED;;;GAGG;AACH,oBAAY,eAAe;IACzB,aAAa,IAAA;IACb,qBAAqB,IAAA;IACrB,sBAAsB,IAAA;CACvB;AAED;;;GAGG;AACH,oBAAY,cAAc;IACxB,OAAO,IAAA;IACP,IAAI,IAAA;IACJ,MAAM,IAAA;IACN,SAAS,IAAA;IACT,MAAM,IAAA;CACP;AAED;;;GAGG;AACH,oBAAY,WAAW;IACrB,QAAQ,IAAA;IACR,OAAO,IAAA;CACR;AAID,gBAAgB;AAChB,eAAO,MAAM,iBAAiB;;;;;;CAM7B,CAAC"}
1
+ {"version":3,"file":"RpcConstants.d.ts","sourceRoot":"","sources":["../../../../src/rpc/core/RpcConstants.ts"],"names":[],"mappings":"AAIA;;GAEG;AAIH;;GAEG;AACH,oBAAY,uBAAuB;IACjC,IAAI,IAAA;IACJ,SAAS,IAAA;CACV;AAED;;;GAGG;AACH,oBAAY,gBAAgB;IAC1B,cAAc,IAAA;IACd,cAAc,IAAA;IACd,eAAe,IAAA;IACf,uBAAuB,IAAA;IACvB,oBAAoB,IAAA;IACpB,oBAAoB,IAAA;IACpB,iBAAiB,IAAA;IACjB,eAAe,IAAA;IACf,sBAAsB,IAAA;IACtB,sBAAsB,IAAA;IACtB,uBAAuB,KAAA;IACvB,oBAAoB,KAAA;IACpB,wBAAwB,KAAA;CACzB;AAED;;;GAGG;AACH,oBAAY,gBAAgB;IAC1B,OAAO,IAAA;IACP,OAAO,IAAA;IACP,SAAS,IAAA;IACT,OAAO,IAAA;IACP,QAAQ,IAAA;IACR,QAAQ,IAAA;IACR,QAAQ,IAAA;IACR,QAAQ,IAAA;IACR,SAAS,IAAA;IACT,SAAS,IAAA;IACT,UAAU,KAAA;IACV,kBAAkB,KAAA;IAClB,cAAc,KAAA;IACd,cAAc,KAAA;IACd,eAAe,KAAA;CAChB;AAED,wJAAwJ;AACxJ,yBAAiB,gBAAgB,CAAC;IAChC,SAAgB,gBAAgB,CAAC,MAAM,EAAE,gBAAgB,sLAGxD;CACF;AAED;;;GAGG;AACH,oBAAY,eAAe;IACzB,aAAa,IAAA;IACb,qBAAqB,IAAA;IACrB,sBAAsB,IAAA;CACvB;AAED;;;GAGG;AACH,oBAAY,cAAc;IACxB,OAAO,IAAA;IACP,IAAI,IAAA;IACJ,MAAM,IAAA;IACN,SAAS,IAAA;IACT,MAAM,IAAA;CACP;AAED;;;GAGG;AACH,oBAAY,WAAW;IACrB,QAAQ,IAAA;IACR,OAAO,IAAA;CACR;AAID,gBAAgB;AAChB,eAAO,MAAM,iBAAiB;;;;;;CAM7B,CAAC"}
@@ -19,7 +19,7 @@ var RpcResponseCacheControl;
19
19
  })(RpcResponseCacheControl || (exports.RpcResponseCacheControl = RpcResponseCacheControl = {}));
20
20
  /** RPC protocol event types.
21
21
  * @public
22
- * @deprecated in 3.6. The RPC system will be significantly refactored (or replaced) in the future.
22
+ * @deprecated in 3.6 - might be removed in next major version. The RPC system will be significantly refactored (or replaced) in the future.
23
23
  */
24
24
  var RpcProtocolEvent;
25
25
  (function (RpcProtocolEvent) {
@@ -39,7 +39,7 @@ var RpcProtocolEvent;
39
39
  })(RpcProtocolEvent || (exports.RpcProtocolEvent = RpcProtocolEvent = {}));
40
40
  /** The status of an RPC operation request.
41
41
  * @public
42
- * @deprecated in 3.6. The RPC system will be significantly refactored (or replaced) in the future.
42
+ * @deprecated in 3.6 - might be removed in next major version. The RPC system will be significantly refactored (or replaced) in the future.
43
43
  */
44
44
  var RpcRequestStatus;
45
45
  (function (RpcRequestStatus) {
@@ -59,7 +59,7 @@ var RpcRequestStatus;
59
59
  RpcRequestStatus[RpcRequestStatus["RequestTimeout"] = 13] = "RequestTimeout";
60
60
  RpcRequestStatus[RpcRequestStatus["TooManyRequests"] = 14] = "TooManyRequests";
61
61
  })(RpcRequestStatus || (exports.RpcRequestStatus = RpcRequestStatus = {}));
62
- /** @public @deprecated in 3.6. The RPC system will be significantly refactored (or replaced) in the future. */
62
+ /** @public @deprecated in 3.6 - might be removed in next major version. The RPC system will be significantly refactored (or replaced) in the future. */
63
63
  (function (RpcRequestStatus) {
64
64
  function isTransientError(status) {
65
65
  return status === RpcRequestStatus.BadGateway || status === RpcRequestStatus.ServiceUnavailable || status === RpcRequestStatus.GatewayTimeout
@@ -69,7 +69,7 @@ var RpcRequestStatus;
69
69
  })(RpcRequestStatus || (exports.RpcRequestStatus = RpcRequestStatus = {}));
70
70
  /** RPC request event types.
71
71
  * @public
72
- * @deprecated in 3.6. The RPC system will be significantly refactored (or replaced) in the future.
72
+ * @deprecated in 3.6 - might be removed in next major version. The RPC system will be significantly refactored (or replaced) in the future.
73
73
  */
74
74
  var RpcRequestEvent;
75
75
  (function (RpcRequestEvent) {
@@ -79,7 +79,7 @@ var RpcRequestEvent;
79
79
  })(RpcRequestEvent || (exports.RpcRequestEvent = RpcRequestEvent = {}));
80
80
  /** RPC content types.
81
81
  * @public
82
- * @deprecated in 3.6. The RPC system will be significantly refactored (or replaced) in the future.
82
+ * @deprecated in 3.6 - might be removed in next major version. The RPC system will be significantly refactored (or replaced) in the future.
83
83
  */
84
84
  var RpcContentType;
85
85
  (function (RpcContentType) {
@@ -91,7 +91,7 @@ var RpcContentType;
91
91
  })(RpcContentType || (exports.RpcContentType = RpcContentType = {}));
92
92
  /** Endpoints for RPC protocols.
93
93
  * @public
94
- * @deprecated in 3.6. The RPC system will be significantly refactored (or replaced) in the future.
94
+ * @deprecated in 3.6 - might be removed in next major version. The RPC system will be significantly refactored (or replaced) in the future.
95
95
  */
96
96
  var RpcEndpoint;
97
97
  (function (RpcEndpoint) {
@@ -1 +1 @@
1
- {"version":3,"file":"RpcConstants.js","sourceRoot":"","sources":["../../../../src/rpc/core/RpcConstants.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,qDAAqD;AAErD;;GAEG;AACH,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IACjC,qEAAI,CAAA;IACJ,+EAAS,CAAA;AACX,CAAC,EAHW,uBAAuB,uCAAvB,uBAAuB,QAGlC;AAED;;;GAGG;AACH,IAAY,gBAcX;AAdD,WAAY,gBAAgB;IAC1B,2EAAc,CAAA;IACd,2EAAc,CAAA;IACd,6EAAe,CAAA;IACf,6FAAuB,CAAA;IACvB,uFAAoB,CAAA;IACpB,uFAAoB,CAAA;IACpB,iFAAiB,CAAA;IACjB,6EAAe,CAAA;IACf,2FAAsB,CAAA;IACtB,2FAAsB,CAAA;IACtB,8FAAuB,CAAA;IACvB,wFAAoB,CAAA;IACpB,gGAAwB,CAAA;AAC1B,CAAC,EAdW,gBAAgB,gCAAhB,gBAAgB,QAc3B;AAED;;;GAGG;AACH,IAAY,gBAgBX;AAhBD,WAAY,gBAAgB;IAC1B,6DAAO,CAAA;IACP,6DAAO,CAAA;IACP,iEAAS,CAAA;IACT,6DAAO,CAAA;IACP,+DAAQ,CAAA;IACR,+DAAQ,CAAA;IACR,+DAAQ,CAAA;IACR,+DAAQ,CAAA;IACR,iEAAS,CAAA;IACT,iEAAS,CAAA;IACT,oEAAU,CAAA;IACV,oFAAkB,CAAA;IAClB,4EAAc,CAAA;IACd,4EAAc,CAAA;IACd,8EAAe,CAAA;AACjB,CAAC,EAhBW,gBAAgB,gCAAhB,gBAAgB,QAgB3B;AAED,+GAA+G;AAC/G,WAAiB,gBAAgB;IAC/B,SAAgB,gBAAgB,CAAC,MAAwB;QACvD,OAAO,MAAM,KAAK,gBAAgB,CAAC,UAAU,IAAI,MAAM,KAAK,gBAAgB,CAAC,kBAAkB,IAAI,MAAM,KAAK,gBAAgB,CAAC,cAAc;eACxI,MAAM,KAAK,gBAAgB,CAAC,cAAc,IAAI,MAAM,KAAK,gBAAgB,CAAC,eAAe,CAAC;IACjG,CAAC;IAHe,iCAAgB,mBAG/B,CAAA;AACH,CAAC,EALgB,gBAAgB,gCAAhB,gBAAgB,QAKhC;AAED;;;GAGG;AACH,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,uEAAa,CAAA;IACb,uFAAqB,CAAA;IACrB,yFAAsB,CAAA;AACxB,CAAC,EAJW,eAAe,+BAAf,eAAe,QAI1B;AAED;;;GAGG;AACH,IAAY,cAMX;AAND,WAAY,cAAc;IACxB,yDAAO,CAAA;IACP,mDAAI,CAAA;IACJ,uDAAM,CAAA;IACN,6DAAS,CAAA;IACT,uDAAM,CAAA;AACR,CAAC,EANW,cAAc,8BAAd,cAAc,QAMzB;AAED;;;GAGG;AACH,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,qDAAQ,CAAA;IACR,mDAAO,CAAA;AACT,CAAC,EAHW,WAAW,2BAAX,WAAW,QAGtB;AAED,yDAAyD;AAEzD,gBAAgB;AACH,QAAA,iBAAiB,GAAG;IAC/B,OAAO,EAAE,cAAc;IACvB,IAAI,EAAE,YAAY;IAClB,QAAQ,EAAE,OAAO;IACjB,MAAM,EAAE,0BAA0B;IAClC,SAAS,EAAE,qBAAqB;CACjC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module RpcInterface\n */\n\n/* eslint-disable @typescript-eslint/no-deprecated */\n\n/** Describes available options for RPC response caching.\n * @public\n */\nexport enum RpcResponseCacheControl {\n None,\n Immutable,\n}\n\n/** RPC protocol event types.\n * @public\n * @deprecated in 3.6. The RPC system will be significantly refactored (or replaced) in the future.\n */\nexport enum RpcProtocolEvent {\n RequestCreated,\n ResponseLoaded,\n ResponseLoading,\n ConnectionErrorReceived,\n UnknownErrorReceived,\n BackendErrorReceived,\n ConnectionAborted,\n RequestReceived,\n BackendResponseCreated,\n BackendReportedPending,\n BackendReportedNotFound,\n BackendErrorOccurred,\n BackendReportedNoContent,\n}\n\n/** The status of an RPC operation request.\n * @public\n * @deprecated in 3.6. The RPC system will be significantly refactored (or replaced) in the future.\n */\nexport enum RpcRequestStatus {\n Unknown,\n Created,\n Submitted,\n Pending,\n Resolved,\n Rejected,\n Disposed,\n NotFound,\n Cancelled,\n NoContent,\n BadGateway,\n ServiceUnavailable,\n GatewayTimeout,\n RequestTimeout,\n TooManyRequests\n}\n\n/** @public @deprecated in 3.6. The RPC system will be significantly refactored (or replaced) in the future. */\nexport namespace RpcRequestStatus {\n export function isTransientError(status: RpcRequestStatus) {\n return status === RpcRequestStatus.BadGateway || status === RpcRequestStatus.ServiceUnavailable || status === RpcRequestStatus.GatewayTimeout\n || status === RpcRequestStatus.RequestTimeout || status === RpcRequestStatus.TooManyRequests;\n }\n}\n\n/** RPC request event types.\n * @public\n * @deprecated in 3.6. The RPC system will be significantly refactored (or replaced) in the future.\n */\nexport enum RpcRequestEvent {\n StatusChanged,\n PendingUpdateReceived,\n TransientErrorReceived\n}\n\n/** RPC content types.\n * @public\n * @deprecated in 3.6. The RPC system will be significantly refactored (or replaced) in the future.\n */\nexport enum RpcContentType {\n Unknown,\n Text,\n Binary,\n Multipart,\n Stream,\n}\n\n/** Endpoints for RPC protocols.\n * @public\n * @deprecated in 3.6. The RPC system will be significantly refactored (or replaced) in the future.\n */\nexport enum RpcEndpoint {\n Frontend,\n Backend,\n}\n\n/* eslint-disable @typescript-eslint/naming-convention */\n\n/** @internal */\nexport const WEB_RPC_CONSTANTS = {\n CONTENT: \"Content-Type\",\n TEXT: \"text/plain\",\n ANY_TEXT: \"text/\",\n BINARY: \"application/octet-stream\",\n MULTIPART: \"multipart/form-data\",\n};\n"]}
1
+ {"version":3,"file":"RpcConstants.js","sourceRoot":"","sources":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gBAAgB,CAAC,eAAe,CAAC;IACjG,CAAC;IAHe,iCAAgB,mBAG/B,CAAA;AACH,CAAC,EALgB,gBAAgB,gCAAhB,gBAAgB,QAKhC;AAED;;;GAGG;AACH,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,uEAAa,CAAA;IACb,uFAAqB,CAAA;IACrB,yFAAsB,CAAA;AACxB,CAAC,EAJW,eAAe,+BAAf,eAAe,QAI1B;AAED;;;GAGG;AACH,IAAY,cAMX;AAND,WAAY,cAAc;IACxB,yDAAO,CAAA;IACP,mDAAI,CAAA;IACJ,uDAAM,CAAA;IACN,6DAAS,CAAA;IACT,uDAAM,CAAA;AACR,CAAC,EANW,cAAc,8BAAd,cAAc,QAMzB;AAED;;;GAGG;AACH,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,qDAAQ,CAAA;IACR,mDAAO,CAAA;AACT,CAAC,EAHW,WAAW,2BAAX,WAAW,QAGtB;AAED,yDAAyD;AAEzD,gBAAgB;AACH,QAAA,iBAAiB,GAAG;IAC/B,OAAO,EAAE,cAAc;IACvB,IAAI,EAAE,YAAY;IAClB,QAAQ,EAAE,OAAO;IACjB,MAAM,EAAE,0BAA0B;IAClC,SAAS,EAAE,qBAAqB;CACjC,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module RpcInterface\n */\n\n/* eslint-disable @typescript-eslint/no-deprecated */\n\n/** Describes available options for RPC response caching.\n * @public\n */\nexport enum RpcResponseCacheControl {\n None,\n Immutable,\n}\n\n/** RPC protocol event types.\n * @public\n * @deprecated in 3.6 - might be removed in next major version. The RPC system will be significantly refactored (or replaced) in the future.\n */\nexport enum RpcProtocolEvent {\n RequestCreated,\n ResponseLoaded,\n ResponseLoading,\n ConnectionErrorReceived,\n UnknownErrorReceived,\n BackendErrorReceived,\n ConnectionAborted,\n RequestReceived,\n BackendResponseCreated,\n BackendReportedPending,\n BackendReportedNotFound,\n BackendErrorOccurred,\n BackendReportedNoContent,\n}\n\n/** The status of an RPC operation request.\n * @public\n * @deprecated in 3.6 - might be removed in next major version. The RPC system will be significantly refactored (or replaced) in the future.\n */\nexport enum RpcRequestStatus {\n Unknown,\n Created,\n Submitted,\n Pending,\n Resolved,\n Rejected,\n Disposed,\n NotFound,\n Cancelled,\n NoContent,\n BadGateway,\n ServiceUnavailable,\n GatewayTimeout,\n RequestTimeout,\n TooManyRequests\n}\n\n/** @public @deprecated in 3.6 - might be removed in next major version. The RPC system will be significantly refactored (or replaced) in the future. */\nexport namespace RpcRequestStatus {\n export function isTransientError(status: RpcRequestStatus) {\n return status === RpcRequestStatus.BadGateway || status === RpcRequestStatus.ServiceUnavailable || status === RpcRequestStatus.GatewayTimeout\n || status === RpcRequestStatus.RequestTimeout || status === RpcRequestStatus.TooManyRequests;\n }\n}\n\n/** RPC request event types.\n * @public\n * @deprecated in 3.6 - might be removed in next major version. The RPC system will be significantly refactored (or replaced) in the future.\n */\nexport enum RpcRequestEvent {\n StatusChanged,\n PendingUpdateReceived,\n TransientErrorReceived\n}\n\n/** RPC content types.\n * @public\n * @deprecated in 3.6 - might be removed in next major version. The RPC system will be significantly refactored (or replaced) in the future.\n */\nexport enum RpcContentType {\n Unknown,\n Text,\n Binary,\n Multipart,\n Stream,\n}\n\n/** Endpoints for RPC protocols.\n * @public\n * @deprecated in 3.6 - might be removed in next major version. The RPC system will be significantly refactored (or replaced) in the future.\n */\nexport enum RpcEndpoint {\n Frontend,\n Backend,\n}\n\n/* eslint-disable @typescript-eslint/naming-convention */\n\n/** @internal */\nexport const WEB_RPC_CONSTANTS = {\n CONTENT: \"Content-Type\",\n TEXT: \"text/plain\",\n ANY_TEXT: \"text/\",\n BINARY: \"application/octet-stream\",\n MULTIPART: \"multipart/form-data\",\n};\n"]}
@@ -12,7 +12,7 @@ export interface OpenAPIDocument {
12
12
  }
13
13
  /** An OpenAPI 3.0 info object.
14
14
  * @public
15
- * @deprecated in 3.6. The RPC system will be significantly refactored (or replaced) in the future.
15
+ * @deprecated in 3.6 - might be removed in next major version. The RPC system will be significantly refactored (or replaced) in the future.
16
16
  */
17
17
  export interface OpenAPIInfo {
18
18
  title: string;
@@ -1 +1 @@
1
- {"version":3,"file":"OpenAPI.js","sourceRoot":"","sources":["../../../../src/rpc/web/OpenAPI.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,uDAAoD;AAwIpD;;GAEG;AACH,MAAa,qBAAqB;IAChC,yCAAyC;IACzB,QAAQ,CAAoB;IAE5C,iDAAiD;IACjD,IAAW,KAAK;QACd,MAAM,KAAK,GAAiB,EAAE,CAAC;QAE/B,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,EAAE;YAC9D,2BAAY,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC,SAAS,EAAE,EAAE;gBAC7C,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,sBAAsB,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;gBACxE,KAAK,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC;YACpD,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;QAEH,OAAO,KAAK,CAAC;IACf,CAAC;IAED,oGAAoG;IACpG,IAAW,QAAQ;QACjB,OAAO;YACL,OAAO,EAAE,OAAO;YAChB,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI;YACxB,KAAK,EAAE,IAAI,CAAC,KAAK;SAClB,CAAC;IACJ,CAAC;IAED,yDAAyD;IACzD,YAAmB,QAA2B;QAC5C,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;IAED,wBAAwB;IACjB,MAAM;QACX,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAEO,mBAAmB,CAAC,SAAuB;QACjD,MAAM,cAAc,GAAsB,EAAE,kBAAkB,EAAE,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;QAChG,MAAM,eAAe,GAAsB,EAAE,kBAAkB,EAAE,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC;QAElG,MAAM,WAAW,GAAoB,EAAE,CAAC;QAExC,WAAW,CAAC,IAAI,GAAG;YACjB,WAAW,EAAE,EAAE,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,IAAI,EAAE;YACxD,SAAS,EAAE;gBACT,GAAG,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,eAAe,EAAE;gBACzD,OAAO,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE;aAC5D;SACF,CAAC;QAEF,MAAM,UAAU,GAAG,IAAI,CAAC,QAAQ,CAAC,gCAAgC,CAAC,SAAS,CAAC,CAAC;QAC7E,IAAI,UAAU,CAAC,MAAM;YACnB,WAAW,CAAC,UAAU,GAAG,UAAU,CAAC;QAEtC,OAAO,WAAW,CAAC;IACrB,CAAC;CACF;AAzDD,sDAyDC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module RpcInterface\n */\n\nimport { RpcOperation } from \"../core/RpcOperation\";\nimport { WebAppRpcProtocol } from \"./WebAppRpcProtocol\";\n\n/* eslint-disable @typescript-eslint/no-deprecated */\n\n/** An OpenAPI 3.0 root document object.\n * @internal\n */\nexport interface OpenAPIDocument {\n openapi: \"3.0.0\";\n info: OpenAPIInfo;\n paths: OpenAPIPaths;\n}\n\n/** An OpenAPI 3.0 info object.\n * @public\n * @deprecated in 3.6. The RPC system will be significantly refactored (or replaced) in the future.\n */\nexport interface OpenAPIInfo {\n title: string;\n version: string;\n}\n\n/** An OpenAPI 3.0 paths object.\n * @internal\n */\nexport interface OpenAPIPaths {\n [index: string]: OpenAPIPathItem;\n}\n\n/** An OpenAPI 3.0 path item object.\n * @internal\n */\nexport interface OpenAPIPathItem {\n summary?: string;\n get?: OpenAPIOperation;\n put?: OpenAPIOperation;\n post?: OpenAPIOperation;\n delete?: OpenAPIOperation;\n options?: OpenAPIOperation;\n head?: OpenAPIOperation;\n patch?: OpenAPIOperation;\n trace?: OpenAPIOperation;\n parameters?: OpenAPIParameter[];\n}\n\n/** An OpenAPI 3.0 operation object.\n * @internal\n */\nexport interface OpenAPIOperation {\n summary?: string;\n operationId?: string;\n parameters?: OpenAPIParameter[];\n requestBody?: OpenAPIRequestBody;\n responses: OpenAPIResponses;\n}\n\n/** An OpenAPI 3.0 content map.\n * @internal\n */\nexport interface OpenAPIContentMap {\n [index: string]: OpenAPIMediaType;\n}\n\n/** An OpenAPI 3.0 parameter object.\n * @internal\n */\nexport interface OpenAPIParameter {\n name: string;\n in: \"query\" | \"header\" | \"path\" | \"cookie\";\n description?: string;\n required?: boolean;\n allowEmptyValue?: boolean;\n style?: \"matrix\" | \"label\" | \"form\" | \"simple\" | \"spaceDelimited\" | \"pipeDelimited\" | \"deepObject\";\n explode?: boolean;\n allowReserved?: boolean;\n schema?: OpenAPISchema;\n content?: OpenAPIContentMap;\n}\n\n/** An OpenAPI 3.0 media type object.\n * @internal\n */\nexport interface OpenAPIMediaType {\n schema?: OpenAPISchema;\n}\n\n/** An OpenAPI 3.0 schema object.\n * @internal\n */\nexport interface OpenAPISchema {\n type?: \"boolean\" | \"object\" | \"array\" | \"number\" | \"string\";\n nullable?: boolean;\n description?: string;\n}\n\n/** An OpenAPI 3.0 encoding object.\n * @internal\n */\nexport interface OpenAPIEncoding {\n contentType?: string;\n style?: string;\n explode?: boolean;\n allowReserved?: boolean;\n}\n\n/** An OpenAPI 3.0 parameter object.\n * @internal\n */\nexport interface OpenAPIRequestBody {\n description?: string;\n content: OpenAPIContentMap;\n required?: boolean;\n}\n\n/** An OpenAPI 3.0 responses object.\n * @internal\n */\nexport interface OpenAPIResponses {\n default?: OpenAPIResponse;\n \"200\"?: OpenAPIResponse;\n \"301\"?: OpenAPIResponse;\n \"302\"?: OpenAPIResponse;\n \"400\"?: OpenAPIResponse;\n \"404\"?: OpenAPIResponse;\n \"500\"?: OpenAPIResponse;\n}\n\n/** An OpenAPI 3.0 response object.\n * @internal\n */\nexport interface OpenAPIResponse {\n description: string;\n content?: { [index: string]: OpenAPIMediaType };\n}\n\n/** An OpenAPI-compatible description of an RPC protocol.\n * @internal\n */\nexport class RpcOpenAPIDescription {\n /** The protocol for this description. */\n public readonly protocol: WebAppRpcProtocol;\n\n /** The OpenAPI paths object for the protocol. */\n public get paths(): OpenAPIPaths {\n const paths: OpenAPIPaths = {};\n\n this.protocol.configuration.interfaces().forEach((definition) => {\n RpcOperation.forEach(definition, (operation) => {\n const path = this.protocol.supplyPathForOperation(operation, undefined);\n paths[path] = this.generateDescription(operation);\n });\n });\n\n return paths;\n }\n\n /** An OpenAPI 3.0 (Swagger) description of the RESTful API that is exposed through the protocol. */\n public get document(): OpenAPIDocument {\n return {\n openapi: \"3.0.0\",\n info: this.protocol.info,\n paths: this.paths,\n };\n }\n\n /** Creates an OpenAPI description of an RPC protocol. */\n public constructor(protocol: WebAppRpcProtocol) {\n this.protocol = protocol;\n }\n\n /** Converts to JSON. */\n public toJSON() {\n return this.document;\n }\n\n private generateDescription(operation: RpcOperation): OpenAPIPathItem {\n const requestContent: OpenAPIContentMap = { \"application/json\": { schema: { type: \"array\" } } };\n const responseContent: OpenAPIContentMap = { \"application/json\": { schema: { type: \"object\" } } };\n\n const description: OpenAPIPathItem = {};\n\n description.head = {\n requestBody: { content: requestContent, required: true },\n responses: {\n 200: { description: \"Success\", content: responseContent },\n default: { description: \"Error\", content: responseContent },\n },\n };\n\n const parameters = this.protocol.supplyPathParametersForOperation(operation);\n if (parameters.length)\n description.parameters = parameters;\n\n return description;\n }\n}\n"]}
1
+ {"version":3,"file":"OpenAPI.js","sourceRoot":"","sources":["../../../../src/rpc/web/OpenAPI.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,uDAAoD;AAwIpD;;GAEG;AACH,MAAa,qBAAqB;IAChC,yCAAyC;IACzB,QAAQ,CAAoB;IAE5C,iDAAiD;IACjD,IAAW,KAAK;QACd,MAAM,KAAK,GAAiB,EAAE,CAAC;QAE/B,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,EAAE;YAC9D,2BAAY,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC,SAAS,EAAE,EAAE;gBAC7C,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,sBAAsB,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;gBACxE,KAAK,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC;YACpD,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;QAEH,OAAO,KAAK,CAAC;IACf,CAAC;IAED,oGAAoG;IACpG,IAAW,QAAQ;QACjB,OAAO;YACL,OAAO,EAAE,OAAO;YAChB,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI;YACxB,KAAK,EAAE,IAAI,CAAC,KAAK;SAClB,CAAC;IACJ,CAAC;IAED,yDAAyD;IACzD,YAAmB,QAA2B;QAC5C,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;IAED,wBAAwB;IACjB,MAAM;QACX,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAEO,mBAAmB,CAAC,SAAuB;QACjD,MAAM,cAAc,GAAsB,EAAE,kBAAkB,EAAE,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;QAChG,MAAM,eAAe,GAAsB,EAAE,kBAAkB,EAAE,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC;QAElG,MAAM,WAAW,GAAoB,EAAE,CAAC;QAExC,WAAW,CAAC,IAAI,GAAG;YACjB,WAAW,EAAE,EAAE,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,IAAI,EAAE;YACxD,SAAS,EAAE;gBACT,GAAG,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,eAAe,EAAE;gBACzD,OAAO,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE;aAC5D;SACF,CAAC;QAEF,MAAM,UAAU,GAAG,IAAI,CAAC,QAAQ,CAAC,gCAAgC,CAAC,SAAS,CAAC,CAAC;QAC7E,IAAI,UAAU,CAAC,MAAM;YACnB,WAAW,CAAC,UAAU,GAAG,UAAU,CAAC;QAEtC,OAAO,WAAW,CAAC;IACrB,CAAC;CACF;AAzDD,sDAyDC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module RpcInterface\n */\n\nimport { RpcOperation } from \"../core/RpcOperation\";\nimport { WebAppRpcProtocol } from \"./WebAppRpcProtocol\";\n\n/* eslint-disable @typescript-eslint/no-deprecated */\n\n/** An OpenAPI 3.0 root document object.\n * @internal\n */\nexport interface OpenAPIDocument {\n openapi: \"3.0.0\";\n info: OpenAPIInfo;\n paths: OpenAPIPaths;\n}\n\n/** An OpenAPI 3.0 info object.\n * @public\n * @deprecated in 3.6 - might be removed in next major version. The RPC system will be significantly refactored (or replaced) in the future.\n */\nexport interface OpenAPIInfo {\n title: string;\n version: string;\n}\n\n/** An OpenAPI 3.0 paths object.\n * @internal\n */\nexport interface OpenAPIPaths {\n [index: string]: OpenAPIPathItem;\n}\n\n/** An OpenAPI 3.0 path item object.\n * @internal\n */\nexport interface OpenAPIPathItem {\n summary?: string;\n get?: OpenAPIOperation;\n put?: OpenAPIOperation;\n post?: OpenAPIOperation;\n delete?: OpenAPIOperation;\n options?: OpenAPIOperation;\n head?: OpenAPIOperation;\n patch?: OpenAPIOperation;\n trace?: OpenAPIOperation;\n parameters?: OpenAPIParameter[];\n}\n\n/** An OpenAPI 3.0 operation object.\n * @internal\n */\nexport interface OpenAPIOperation {\n summary?: string;\n operationId?: string;\n parameters?: OpenAPIParameter[];\n requestBody?: OpenAPIRequestBody;\n responses: OpenAPIResponses;\n}\n\n/** An OpenAPI 3.0 content map.\n * @internal\n */\nexport interface OpenAPIContentMap {\n [index: string]: OpenAPIMediaType;\n}\n\n/** An OpenAPI 3.0 parameter object.\n * @internal\n */\nexport interface OpenAPIParameter {\n name: string;\n in: \"query\" | \"header\" | \"path\" | \"cookie\";\n description?: string;\n required?: boolean;\n allowEmptyValue?: boolean;\n style?: \"matrix\" | \"label\" | \"form\" | \"simple\" | \"spaceDelimited\" | \"pipeDelimited\" | \"deepObject\";\n explode?: boolean;\n allowReserved?: boolean;\n schema?: OpenAPISchema;\n content?: OpenAPIContentMap;\n}\n\n/** An OpenAPI 3.0 media type object.\n * @internal\n */\nexport interface OpenAPIMediaType {\n schema?: OpenAPISchema;\n}\n\n/** An OpenAPI 3.0 schema object.\n * @internal\n */\nexport interface OpenAPISchema {\n type?: \"boolean\" | \"object\" | \"array\" | \"number\" | \"string\";\n nullable?: boolean;\n description?: string;\n}\n\n/** An OpenAPI 3.0 encoding object.\n * @internal\n */\nexport interface OpenAPIEncoding {\n contentType?: string;\n style?: string;\n explode?: boolean;\n allowReserved?: boolean;\n}\n\n/** An OpenAPI 3.0 parameter object.\n * @internal\n */\nexport interface OpenAPIRequestBody {\n description?: string;\n content: OpenAPIContentMap;\n required?: boolean;\n}\n\n/** An OpenAPI 3.0 responses object.\n * @internal\n */\nexport interface OpenAPIResponses {\n default?: OpenAPIResponse;\n \"200\"?: OpenAPIResponse;\n \"301\"?: OpenAPIResponse;\n \"302\"?: OpenAPIResponse;\n \"400\"?: OpenAPIResponse;\n \"404\"?: OpenAPIResponse;\n \"500\"?: OpenAPIResponse;\n}\n\n/** An OpenAPI 3.0 response object.\n * @internal\n */\nexport interface OpenAPIResponse {\n description: string;\n content?: { [index: string]: OpenAPIMediaType };\n}\n\n/** An OpenAPI-compatible description of an RPC protocol.\n * @internal\n */\nexport class RpcOpenAPIDescription {\n /** The protocol for this description. */\n public readonly protocol: WebAppRpcProtocol;\n\n /** The OpenAPI paths object for the protocol. */\n public get paths(): OpenAPIPaths {\n const paths: OpenAPIPaths = {};\n\n this.protocol.configuration.interfaces().forEach((definition) => {\n RpcOperation.forEach(definition, (operation) => {\n const path = this.protocol.supplyPathForOperation(operation, undefined);\n paths[path] = this.generateDescription(operation);\n });\n });\n\n return paths;\n }\n\n /** An OpenAPI 3.0 (Swagger) description of the RESTful API that is exposed through the protocol. */\n public get document(): OpenAPIDocument {\n return {\n openapi: \"3.0.0\",\n info: this.protocol.info,\n paths: this.paths,\n };\n }\n\n /** Creates an OpenAPI description of an RPC protocol. */\n public constructor(protocol: WebAppRpcProtocol) {\n this.protocol = protocol;\n }\n\n /** Converts to JSON. */\n public toJSON() {\n return this.document;\n }\n\n private generateDescription(operation: RpcOperation): OpenAPIPathItem {\n const requestContent: OpenAPIContentMap = { \"application/json\": { schema: { type: \"array\" } } };\n const responseContent: OpenAPIContentMap = { \"application/json\": { schema: { type: \"object\" } } };\n\n const description: OpenAPIPathItem = {};\n\n description.head = {\n requestBody: { content: requestContent, required: true },\n responses: {\n 200: { description: \"Success\", content: responseContent },\n default: { description: \"Error\", content: responseContent },\n },\n };\n\n const parameters = this.protocol.supplyPathParametersForOperation(operation);\n if (parameters.length)\n description.parameters = parameters;\n\n return description;\n }\n}\n"]}
@@ -10,7 +10,7 @@ import { OpenAPIInfo, OpenAPIParameter, RpcOpenAPIDescription } from "./OpenAPI"
10
10
  import { WebAppRpcRequest } from "./WebAppRpcRequest";
11
11
  /** An HTTP server request object.
12
12
  * @public
13
- * @deprecated in 3.6. The RPC system will be significantly refactored (or replaced) in the future.
13
+ * @deprecated in 3.6 - might be removed in next major version. The RPC system will be significantly refactored (or replaced) in the future.
14
14
  */
15
15
  export interface HttpServerRequest extends BackendReadable {
16
16
  aborted: boolean;
@@ -44,7 +44,7 @@ export interface HttpServerRequest extends BackendReadable {
44
44
  }
45
45
  /** An HTTP server response object.
46
46
  * @public
47
- * @deprecated in 3.6. The RPC system will be significantly refactored (or replaced) in the future.
47
+ * @deprecated in 3.6 - might be removed in next major version. The RPC system will be significantly refactored (or replaced) in the future.
48
48
  */
49
49
  export interface HttpServerResponse extends BackendWritable {
50
50
  send(body?: any): HttpServerResponse;
@@ -1 +1 @@
1
- {"version":3,"file":"WebAppRpcProtocol.js","sourceRoot":"","sources":["../../../../src/rpc/web/WebAppRpcProtocol.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,sDAA2D;AAC3D,qEAAkE;AAGlE,uDAA2F;AAE3F,qDAAwE;AACxE,uCAAiF;AACjF,yDAAsD;AACtD,yDAAsD;AA6CtD;;GAEG;AACH,MAAsB,iBAAkB,SAAQ,yBAAW;IACzC,eAAe,GAAG,IAAI,CAAC;IAEvC,+EAA+E;IACxE,KAAK,CAAC,yBAAyB,CAAC,GAAsB,EAAE,GAAuB;QACpF,OAAO,IAAI,CAAC,0BAA0B,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IACnD,CAAC;IAED,gFAAgF;IACzE,KAAK,CAAC,0BAA0B,CAAC,GAAsB,EAAE,GAAuB;QACrF,IAAI,OAA6B,CAAC;QAClC,IAAI,CAAC;YACH,OAAO,GAAG,MAAM,mCAAgB,CAAC,YAAY,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;QAC3D,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,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1C,KAAK,+BAAgB,CAAC,QAAQ,CAAC,CAAC,OAAO,GAAG,CAAC;YAC3C,KAAK,+BAAgB,CAAC,QAAQ,CAAC,CAAC,OAAO,GAAG,CAAC;YAC3C,KAAK,+BAAgB,CAAC,SAAS,CAAC,CAAC,OAAO,GAAG,CAAC;YAC5C,KAAK,+BAAgB,CAAC,UAAU,CAAC,CAAC,OAAO,GAAG,CAAC;YAC7C,KAAK,+BAAgB,CAAC,kBAAkB,CAAC,CAAC,OAAO,GAAG,CAAC;YACrD,KAAK,+BAAgB,CAAC,cAAc,CAAC,CAAC,OAAO,GAAG,CAAC;YACjD,KAAK,+BAAgB,CAAC,cAAc,CAAC,CAAC,OAAO,GAAG,CAAC;YACjD,KAAK,+BAAgB,CAAC,eAAe,CAAC,CAAC,OAAO,GAAG,CAAC;YAClD,OAAO,CAAC,CAAC,OAAO,GAAG,CAAC;QACtB,CAAC;IACH,CAAC;IAEe,sBAAsB,GAAG,IAAI,CAAC;IAE9C,+DAA+D;IACxD,SAAS,CAAC,IAAY;QAC3B,OAAO,IAAI,KAAK,GAAG,CAAC;IACtB,CAAC;IAED;;OAEG;IACH,IAAW,kBAAkB,KAAK,OAAO,IAAI,+BAAqB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAO3E,mCAAmC;IACnC,YAAmB,aAA+B;QAChD,KAAK,CAAC,aAAa,CAAC,CAAC;QACrB,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC,mCAAgB,CAAC,gBAAgB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;IACrG,CAAC;CACF;AA/GD,8CA+GC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module RpcInterface\n */\n\nimport { BentleyError, Logger } from \"@itwin/core-bentley\";\nimport { CommonLoggerCategory } from \"../../CommonLoggerCategory\";\nimport { BackendReadable, BackendWritable } from \"../../internal/BackendTypes\";\nimport { RpcConfiguration } from \"../core/RpcConfiguration\";\nimport { RpcContentType, RpcRequestStatus, WEB_RPC_CONSTANTS } from \"../core/RpcConstants\";\nimport { RpcOperation } from \"../core/RpcOperation\";\nimport { RpcProtocol, SerializedRpcRequest } from \"../core/RpcProtocol\";\nimport { OpenAPIInfo, OpenAPIParameter, RpcOpenAPIDescription } from \"./OpenAPI\";\nimport { WebAppRpcLogging } from \"./WebAppRpcLogging\";\nimport { WebAppRpcRequest } from \"./WebAppRpcRequest\";\n\n/* eslint-disable @typescript-eslint/no-deprecated */\n\n/** An HTTP server request object.\n * @public\n * @deprecated in 3.6. The RPC system will be significantly refactored (or replaced) in the future.\n */\nexport interface HttpServerRequest extends BackendReadable {\n aborted: boolean;\n httpVersion: string;\n httpVersionMajor: number;\n httpVersionMinor: number;\n complete: boolean;\n connection: any;\n headers: { [header: string]: string | string[] | undefined };\n rawHeaders: string[];\n trailers: { [key: string]: string | undefined };\n trailersDistinct: NodeJS.Dict<string[]>;\n rawTrailers: string[];\n setTimeout(msecs: number, callback: () => void): void;\n setTimeout(msecs: number, callback: () => void): this;\n url?: string;\n statusCode?: number;\n statusMessage?: string;\n socket: any;\n destroy(error?: Error): this;\n body: string | Buffer;\n path: string;\n method: string;\n ip?: string;\n header: (field: string) => string | undefined;\n headersDistinct: NodeJS.Dict<string[]>;\n}\n\n/** An HTTP server response object.\n * @public\n * @deprecated in 3.6. The RPC system will be significantly refactored (or replaced) in the future.\n */\nexport interface HttpServerResponse extends BackendWritable {\n send(body?: any): HttpServerResponse;\n status(code: number): HttpServerResponse;\n set(field: string, value: string): void;\n}\n\n/** The HTTP application protocol.\n * @internal\n */\nexport abstract class WebAppRpcProtocol extends RpcProtocol {\n public override preserveStreams = true;\n\n /** Convenience handler for an RPC operation get request for an HTTP server. */\n public async handleOperationGetRequest(req: HttpServerRequest, res: HttpServerResponse) {\n return this.handleOperationPostRequest(req, res);\n }\n\n /** Convenience handler for an RPC operation post request for an HTTP server. */\n public async handleOperationPostRequest(req: HttpServerRequest, res: HttpServerResponse) {\n let request: SerializedRpcRequest;\n try {\n request = await WebAppRpcRequest.parseRequest(this, req);\n } catch (error) {\n const message = BentleyError.getErrorMessage(error);\n Logger.logError(CommonLoggerCategory.RpcInterfaceBackend, `Failed to parse request: ${message}`, BentleyError.getErrorMetadata(error));\n res.status(400);\n res.send(JSON.stringify({ message, isError: true }));\n return;\n }\n const fulfillment = await this.fulfill(request);\n await WebAppRpcRequest.sendResponse(this, request, fulfillment, req, res);\n }\n\n /** Convenience handler for an OpenAPI description request for an HTTP server. */\n public handleOpenApiDescriptionRequest(_req: HttpServerRequest, res: HttpServerResponse) {\n const description = JSON.stringify(this.openAPIDescription);\n res.send(description);\n }\n\n /** Converts an HTTP content type value to an RPC content type value. */\n public static computeContentType(httpType: string | null | undefined): RpcContentType {\n if (!httpType)\n return RpcContentType.Unknown;\n\n if (httpType.indexOf(WEB_RPC_CONSTANTS.ANY_TEXT) === 0) {\n return RpcContentType.Text;\n } else if (httpType.indexOf(WEB_RPC_CONSTANTS.BINARY) === 0) {\n return RpcContentType.Binary;\n } else if (httpType.indexOf(WEB_RPC_CONSTANTS.MULTIPART) === 0) {\n return RpcContentType.Multipart;\n } else {\n return RpcContentType.Unknown;\n }\n }\n\n /** The OpenAPI-compatible info object for this protocol. */\n public abstract info: OpenAPIInfo;\n\n /** An optional prefix for RPC operation URI paths. */\n public pathPrefix: string = \"\";\n\n /** The RPC request class for this protocol. */\n public readonly requestType = WebAppRpcRequest;\n\n /** Supplies the status corresponding to a protocol-specific code value. */\n public override getStatus(code: number): RpcRequestStatus {\n switch (code) {\n case 404: return RpcRequestStatus.NotFound;\n case 202: return RpcRequestStatus.Pending;\n case 200: return RpcRequestStatus.Resolved;\n case 500: return RpcRequestStatus.Rejected;\n case 204: return RpcRequestStatus.NoContent;\n case 502: return RpcRequestStatus.BadGateway;\n case 503: return RpcRequestStatus.ServiceUnavailable;\n case 504: return RpcRequestStatus.GatewayTimeout;\n case 408: return RpcRequestStatus.RequestTimeout;\n case 429: return RpcRequestStatus.TooManyRequests;\n default: return RpcRequestStatus.Unknown;\n }\n }\n\n /** Supplies the protocol-specific code corresponding to a status value. */\n public override getCode(status: RpcRequestStatus): number {\n switch (status) {\n case RpcRequestStatus.NotFound: return 404;\n case RpcRequestStatus.Pending: return 202;\n case RpcRequestStatus.Resolved: return 200;\n case RpcRequestStatus.Rejected: return 500;\n case RpcRequestStatus.NoContent: return 204;\n case RpcRequestStatus.BadGateway: return 502;\n case RpcRequestStatus.ServiceUnavailable: return 503;\n case RpcRequestStatus.GatewayTimeout: return 504;\n case RpcRequestStatus.RequestTimeout: return 408;\n case RpcRequestStatus.TooManyRequests: return 429;\n default: return 501;\n }\n }\n\n public override supportsStatusCategory = true;\n\n /** Whether an HTTP status code indicates a request timeout. */\n public isTimeout(code: number): boolean {\n return code === 504;\n }\n\n /** An OpenAPI-compatible description of this protocol.\n * @internal\n */\n public get openAPIDescription() { return new RpcOpenAPIDescription(this); }\n\n /** Returns the OpenAPI-compatible URI path parameters for an RPC operation.\n * @internal\n */\n public abstract supplyPathParametersForOperation(_operation: RpcOperation): OpenAPIParameter[];\n\n /** Constructs an HTTP protocol. */\n public constructor(configuration: RpcConfiguration) {\n super(configuration);\n this.events.addListener(async (event, object) => WebAppRpcLogging.logProtocolEvent(event, object));\n }\n}\n"]}
1
+ {"version":3,"file":"WebAppRpcProtocol.js","sourceRoot":"","sources":["../../../../src/rpc/web/WebAppRpcProtocol.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,sDAA2D;AAC3D,qEAAkE;AAGlE,uDAA2F;AAE3F,qDAAwE;AACxE,uCAAiF;AACjF,yDAAsD;AACtD,yDAAsD;AA6CtD;;GAEG;AACH,MAAsB,iBAAkB,SAAQ,yBAAW;IACzC,eAAe,G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,KAAK,CAAC,aAAa,CAAC,CAAC;QACrB,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC,mCAAgB,CAAC,gBAAgB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;IACrG,CAAC;CACF;AA/GD,8CA+GC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module RpcInterface\n */\n\nimport { BentleyError, Logger } from \"@itwin/core-bentley\";\nimport { CommonLoggerCategory } from \"../../CommonLoggerCategory\";\nimport { BackendReadable, BackendWritable } from \"../../internal/BackendTypes\";\nimport { RpcConfiguration } from \"../core/RpcConfiguration\";\nimport { RpcContentType, RpcRequestStatus, WEB_RPC_CONSTANTS } from \"../core/RpcConstants\";\nimport { RpcOperation } from \"../core/RpcOperation\";\nimport { RpcProtocol, SerializedRpcRequest } from \"../core/RpcProtocol\";\nimport { OpenAPIInfo, OpenAPIParameter, RpcOpenAPIDescription } from \"./OpenAPI\";\nimport { WebAppRpcLogging } from \"./WebAppRpcLogging\";\nimport { WebAppRpcRequest } from \"./WebAppRpcRequest\";\n\n/* eslint-disable @typescript-eslint/no-deprecated */\n\n/** An HTTP server request object.\n * @public\n * @deprecated in 3.6 - might be removed in next major version. The RPC system will be significantly refactored (or replaced) in the future.\n */\nexport interface HttpServerRequest extends BackendReadable {\n aborted: boolean;\n httpVersion: string;\n httpVersionMajor: number;\n httpVersionMinor: number;\n complete: boolean;\n connection: any;\n headers: { [header: string]: string | string[] | undefined };\n rawHeaders: string[];\n trailers: { [key: string]: string | undefined };\n trailersDistinct: NodeJS.Dict<string[]>;\n rawTrailers: string[];\n setTimeout(msecs: number, callback: () => void): void;\n setTimeout(msecs: number, callback: () => void): this;\n url?: string;\n statusCode?: number;\n statusMessage?: string;\n socket: any;\n destroy(error?: Error): this;\n body: string | Buffer;\n path: string;\n method: string;\n ip?: string;\n header: (field: string) => string | undefined;\n headersDistinct: NodeJS.Dict<string[]>;\n}\n\n/** An HTTP server response object.\n * @public\n * @deprecated in 3.6 - might be removed in next major version. The RPC system will be significantly refactored (or replaced) in the future.\n */\nexport interface HttpServerResponse extends BackendWritable {\n send(body?: any): HttpServerResponse;\n status(code: number): HttpServerResponse;\n set(field: string, value: string): void;\n}\n\n/** The HTTP application protocol.\n * @internal\n */\nexport abstract class WebAppRpcProtocol extends RpcProtocol {\n public override preserveStreams = true;\n\n /** Convenience handler for an RPC operation get request for an HTTP server. */\n public async handleOperationGetRequest(req: HttpServerRequest, res: HttpServerResponse) {\n return this.handleOperationPostRequest(req, res);\n }\n\n /** Convenience handler for an RPC operation post request for an HTTP server. */\n public async handleOperationPostRequest(req: HttpServerRequest, res: HttpServerResponse) {\n let request: SerializedRpcRequest;\n try {\n request = await WebAppRpcRequest.parseRequest(this, req);\n } catch (error) {\n const message = BentleyError.getErrorMessage(error);\n Logger.logError(CommonLoggerCategory.RpcInterfaceBackend, `Failed to parse request: ${message}`, BentleyError.getErrorMetadata(error));\n res.status(400);\n res.send(JSON.stringify({ message, isError: true }));\n return;\n }\n const fulfillment = await this.fulfill(request);\n await WebAppRpcRequest.sendResponse(this, request, fulfillment, req, res);\n }\n\n /** Convenience handler for an OpenAPI description request for an HTTP server. */\n public handleOpenApiDescriptionRequest(_req: HttpServerRequest, res: HttpServerResponse) {\n const description = JSON.stringify(this.openAPIDescription);\n res.send(description);\n }\n\n /** Converts an HTTP content type value to an RPC content type value. */\n public static computeContentType(httpType: string | null | undefined): RpcContentType {\n if (!httpType)\n return RpcContentType.Unknown;\n\n if (httpType.indexOf(WEB_RPC_CONSTANTS.ANY_TEXT) === 0) {\n return RpcContentType.Text;\n } else if (httpType.indexOf(WEB_RPC_CONSTANTS.BINARY) === 0) {\n return RpcContentType.Binary;\n } else if (httpType.indexOf(WEB_RPC_CONSTANTS.MULTIPART) === 0) {\n return RpcContentType.Multipart;\n } else {\n return RpcContentType.Unknown;\n }\n }\n\n /** The OpenAPI-compatible info object for this protocol. */\n public abstract info: OpenAPIInfo;\n\n /** An optional prefix for RPC operation URI paths. */\n public pathPrefix: string = \"\";\n\n /** The RPC request class for this protocol. */\n public readonly requestType = WebAppRpcRequest;\n\n /** Supplies the status corresponding to a protocol-specific code value. */\n public override getStatus(code: number): RpcRequestStatus {\n switch (code) {\n case 404: return RpcRequestStatus.NotFound;\n case 202: return RpcRequestStatus.Pending;\n case 200: return RpcRequestStatus.Resolved;\n case 500: return RpcRequestStatus.Rejected;\n case 204: return RpcRequestStatus.NoContent;\n case 502: return RpcRequestStatus.BadGateway;\n case 503: return RpcRequestStatus.ServiceUnavailable;\n case 504: return RpcRequestStatus.GatewayTimeout;\n case 408: return RpcRequestStatus.RequestTimeout;\n case 429: return RpcRequestStatus.TooManyRequests;\n default: return RpcRequestStatus.Unknown;\n }\n }\n\n /** Supplies the protocol-specific code corresponding to a status value. */\n public override getCode(status: RpcRequestStatus): number {\n switch (status) {\n case RpcRequestStatus.NotFound: return 404;\n case RpcRequestStatus.Pending: return 202;\n case RpcRequestStatus.Resolved: return 200;\n case RpcRequestStatus.Rejected: return 500;\n case RpcRequestStatus.NoContent: return 204;\n case RpcRequestStatus.BadGateway: return 502;\n case RpcRequestStatus.ServiceUnavailable: return 503;\n case RpcRequestStatus.GatewayTimeout: return 504;\n case RpcRequestStatus.RequestTimeout: return 408;\n case RpcRequestStatus.TooManyRequests: return 429;\n default: return 501;\n }\n }\n\n public override supportsStatusCategory = true;\n\n /** Whether an HTTP status code indicates a request timeout. */\n public isTimeout(code: number): boolean {\n return code === 504;\n }\n\n /** An OpenAPI-compatible description of this protocol.\n * @internal\n */\n public get openAPIDescription() { return new RpcOpenAPIDescription(this); }\n\n /** Returns the OpenAPI-compatible URI path parameters for an RPC operation.\n * @internal\n */\n public abstract supplyPathParametersForOperation(_operation: RpcOperation): OpenAPIParameter[];\n\n /** Constructs an HTTP protocol. */\n public constructor(configuration: RpcConfiguration) {\n super(configuration);\n this.events.addListener(async (event, object) => WebAppRpcLogging.logProtocolEvent(event, object));\n }\n}\n"]}
@@ -27,13 +27,13 @@ export declare enum CurrentImdlVersion {
27
27
  * front-end is not capable of reading the tile content. Otherwise, this front-end can read the tile content even if the header specifies a
28
28
  * greater minor version than CurrentVersion.Minor, although some data may be skipped.
29
29
  */
30
- Major = 36,
30
+ Major = 37,
31
31
  /** The unsigned 16-bit minor version number. If the major version in the tile header is equal to CurrentVersion.Major, then this package can
32
32
  * read the tile content even if the minor version in the tile header is greater than this value, although some data may be skipped.
33
33
  */
34
34
  Minor = 0,
35
35
  /** The unsigned 32-bit version number derived from the 16-bit major and minor version numbers. */
36
- Combined = 2359296
36
+ Combined = 2424832
37
37
  }
38
38
  /** Header embedded at the beginning of binary tile data in iMdl format describing its contents.
39
39
  * @internal
@@ -36,13 +36,13 @@ var CurrentImdlVersion;
36
36
  * front-end is not capable of reading the tile content. Otherwise, this front-end can read the tile content even if the header specifies a
37
37
  * greater minor version than CurrentVersion.Minor, although some data may be skipped.
38
38
  */
39
- CurrentImdlVersion[CurrentImdlVersion["Major"] = 36] = "Major";
39
+ CurrentImdlVersion[CurrentImdlVersion["Major"] = 37] = "Major";
40
40
  /** The unsigned 16-bit minor version number. If the major version in the tile header is equal to CurrentVersion.Major, then this package can
41
41
  * read the tile content even if the minor version in the tile header is greater than this value, although some data may be skipped.
42
42
  */
43
43
  CurrentImdlVersion[CurrentImdlVersion["Minor"] = 0] = "Minor";
44
44
  /** The unsigned 32-bit version number derived from the 16-bit major and minor version numbers. */
45
- CurrentImdlVersion[CurrentImdlVersion["Combined"] = 2359296] = "Combined";
45
+ CurrentImdlVersion[CurrentImdlVersion["Combined"] = 2424832] = "Combined";
46
46
  })(CurrentImdlVersion || (exports.CurrentImdlVersion = CurrentImdlVersion = {}));
47
47
  /** Header embedded at the beginning of binary tile data in iMdl format describing its contents.
48
48
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AkB;IAC7B,iDAAiD;IACjC,MAAM,CAAS;IAC/B,4CAA4C;IAC5C,wIAAwI;IACxH,gBAAgB,CAAS;IACzC,uCAAuC;IACvB,KAAK,CAAS;IAEvB,MAAM,CAAC,QAAQ,CAAC,MAAkB;QACvC,MAAM,MAAM,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;QACnC,MAAM,WAAW,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;QACxC,MAAM,KAAK,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;QAClC,OAAO,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,kBAAkB,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC;IAC9F,CAAC;IAEM,MAAM,CAAC,WAAW,GAAG,EAAE,CAAC;IAE/B,YAAoB,MAAc,EAAE,gBAAwB,EAAE,KAAa;QACzE,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;QACzC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;;AAtBH,gDAuBC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Tile\n */\n\nimport { assert, ByteStream } from \"@itwin/core-bentley\";\nimport { Range3d } from \"@itwin/core-geometry\";\nimport { ElementAlignedBox3d } from \"../geometry/Placement\";\nimport { nextPoint3d64FromByteStream, TileFormat, TileHeader } from \"./TileIO\";\n\n/** Flags describing the geometry contained within a tile in iMdl format.\n * @internal\n */\nexport enum ImdlFlags {\n /** No special flags */\n None = 0,\n /** The tile contains some curved geometry */\n ContainsCurves = 1 << 0,\n /** Some geometry within the tile range was omitted based on its size */\n Incomplete = 1 << 2,\n /** The tile must be refined by sub-division, not magnification. */\n DisallowMagnification = 1 << 3,\n /** The tile's feature table contains features from multiple models. */\n MultiModelFeatureTable = 1 << 4,\n}\n\n/** Describes the maximum major and minor version of the iMdl tile format supported by this version of this package.\n * @internal\n */\nexport enum CurrentImdlVersion {\n /** The unsigned 16-bit major version number. If the major version specified in the tile header is greater than this value, then this\n * front-end is not capable of reading the tile content. Otherwise, this front-end can read the tile content even if the header specifies a\n * greater minor version than CurrentVersion.Minor, although some data may be skipped.\n */\n Major = 36,\n /** The unsigned 16-bit minor version number. If the major version in the tile header is equal to CurrentVersion.Major, then this package can\n * read the tile content even if the minor version in the tile header is greater than this value, although some data may be skipped.\n */\n Minor = 0,\n /** The unsigned 32-bit version number derived from the 16-bit major and minor version numbers. */\n Combined = (Major << 0x10) | Minor,\n}\n\n/** Header embedded at the beginning of binary tile data in iMdl format describing its contents.\n * @internal\n */\nexport class ImdlHeader extends TileHeader {\n /** The size of this header in bytes. */\n public readonly headerLength: number;\n /** Flags describing the geometry contained within the tile */\n public readonly flags: ImdlFlags;\n /** A bounding box no larger than the tile's range, tightly enclosing the tile's geometry; or a null range if the tile is empty */\n public readonly contentRange: ElementAlignedBox3d;\n /** The chord tolerance in meters at which the tile's geometry was faceted */\n public readonly tolerance: number;\n /** The number of elements which contributed at least some geometry to the tile content */\n public readonly numElementsIncluded: number;\n /** The number of elements within the tile range which contributed no geometry to the tile content */\n public readonly numElementsExcluded: number;\n /** The total number of bytes in the binary tile data, including this header */\n public readonly tileLength: number;\n /** A bitfield wherein each set bit indicates an empty sub-volume. */\n public readonly emptySubRanges: number;\n\n public get versionMajor(): number { return this.version >>> 0x10; }\n public get versionMinor(): number { return (this.version & 0xffff) >>> 0; }\n\n public get isValid(): boolean { return TileFormat.IModel === this.format; }\n public get isReadableVersion(): boolean { return this.versionMajor <= CurrentImdlVersion.Major; }\n\n /** Deserialize a header from the binary data at the stream's current position.\n * If the binary data does not contain a valid header, the Header will be marked 'invalid'.\n */\n public constructor(stream: ByteStream) {\n super(stream);\n this.headerLength = stream.readUint32();\n this.flags = stream.readUint32();\n\n this.contentRange = new Range3d();\n nextPoint3d64FromByteStream(stream, this.contentRange.low);\n nextPoint3d64FromByteStream(stream, this.contentRange.high);\n\n this.tolerance = stream.readFloat64();\n this.numElementsIncluded = stream.readUint32();\n this.numElementsExcluded = stream.readUint32();\n this.tileLength = stream.readUint32();\n\n // empty sub-volume bit field introduced in format v02.00\n this.emptySubRanges = this.versionMajor >= 2 ? stream.readUint32() : 0;\n\n // Skip any unprocessed bytes in header\n const remainingHeaderBytes = this.headerLength - stream.curPos;\n assert(remainingHeaderBytes >= 0);\n stream.advance(remainingHeaderBytes);\n\n if (stream.isPastTheEnd)\n this.invalidate();\n }\n}\n\n/** Header preceding the feature table embedded in an iMdl tile's content.\n * @internal\n */\nexport class FeatureTableHeader {\n // The number of bytes the entire table occupies.\n public readonly length: number;\n // The number of subcategories in the table.\n // NOTE: This used to be \"max features\" which was useless and unused. It is only accurate if ImdlFlags.HasMultiModelFeatureTable is set.\n public readonly numSubCategories: number;\n // The number of features in the table.\n public readonly count: number;\n\n public static readFrom(stream: ByteStream) {\n const length = stream.readUint32();\n const maxFeatures = stream.readUint32();\n const count = stream.readUint32();\n return stream.isPastTheEnd ? undefined : new FeatureTableHeader(length, maxFeatures, count);\n }\n\n public static sizeInBytes = 12;\n\n private constructor(length: number, numSubCategories: number, count: number) {\n this.length = length;\n this.numSubCategories = numSubCategories;\n this.count = count;\n }\n}\n"]}
1
+ {"version":3,"file":"IModelTileIO.js","sourceRoot":"","sources":["../../../src/tile/IModelTileIO.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,sDAAyD;AACzD,wDAA+C;AAE/C,qCAA+E;AAE/E;;GAEG;AACH,IAAY,SAWX;AAXD,WAAY,SAAS;IACnB,uBAAuB;IACvB,yCAAQ,CAAA;IACR,6CAA6C;IAC7C,6DAAuB,CAAA;IACvB,wEAAwE;IACxE,qDAAmB,CAAA;IACnB,mEAAmE;IACnE,2E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AC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,kBAAkB,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC;IAC9F,CAAC;IAEM,MAAM,CAAC,WAAW,GAAG,EAAE,CAAC;IAE/B,YAAoB,MAAc,EAAE,gBAAwB,EAAE,KAAa;QACzE,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;QACzC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;;AAtBH,gDAuBC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Tile\n */\n\nimport { assert, ByteStream } from \"@itwin/core-bentley\";\nimport { Range3d } from \"@itwin/core-geometry\";\nimport { ElementAlignedBox3d } from \"../geometry/Placement\";\nimport { nextPoint3d64FromByteStream, TileFormat, TileHeader } from \"./TileIO\";\n\n/** Flags describing the geometry contained within a tile in iMdl format.\n * @internal\n */\nexport enum ImdlFlags {\n /** No special flags */\n None = 0,\n /** The tile contains some curved geometry */\n ContainsCurves = 1 << 0,\n /** Some geometry within the tile range was omitted based on its size */\n Incomplete = 1 << 2,\n /** The tile must be refined by sub-division, not magnification. */\n DisallowMagnification = 1 << 3,\n /** The tile's feature table contains features from multiple models. */\n MultiModelFeatureTable = 1 << 4,\n}\n\n/** Describes the maximum major and minor version of the iMdl tile format supported by this version of this package.\n * @internal\n */\nexport enum CurrentImdlVersion {\n /** The unsigned 16-bit major version number. If the major version specified in the tile header is greater than this value, then this\n * front-end is not capable of reading the tile content. Otherwise, this front-end can read the tile content even if the header specifies a\n * greater minor version than CurrentVersion.Minor, although some data may be skipped.\n */\n Major = 37,\n /** The unsigned 16-bit minor version number. If the major version in the tile header is equal to CurrentVersion.Major, then this package can\n * read the tile content even if the minor version in the tile header is greater than this value, although some data may be skipped.\n */\n Minor = 0,\n /** The unsigned 32-bit version number derived from the 16-bit major and minor version numbers. */\n Combined = (Major << 0x10) | Minor,\n}\n\n/** Header embedded at the beginning of binary tile data in iMdl format describing its contents.\n * @internal\n */\nexport class ImdlHeader extends TileHeader {\n /** The size of this header in bytes. */\n public readonly headerLength: number;\n /** Flags describing the geometry contained within the tile */\n public readonly flags: ImdlFlags;\n /** A bounding box no larger than the tile's range, tightly enclosing the tile's geometry; or a null range if the tile is empty */\n public readonly contentRange: ElementAlignedBox3d;\n /** The chord tolerance in meters at which the tile's geometry was faceted */\n public readonly tolerance: number;\n /** The number of elements which contributed at least some geometry to the tile content */\n public readonly numElementsIncluded: number;\n /** The number of elements within the tile range which contributed no geometry to the tile content */\n public readonly numElementsExcluded: number;\n /** The total number of bytes in the binary tile data, including this header */\n public readonly tileLength: number;\n /** A bitfield wherein each set bit indicates an empty sub-volume. */\n public readonly emptySubRanges: number;\n\n public get versionMajor(): number { return this.version >>> 0x10; }\n public get versionMinor(): number { return (this.version & 0xffff) >>> 0; }\n\n public get isValid(): boolean { return TileFormat.IModel === this.format; }\n public get isReadableVersion(): boolean { return this.versionMajor <= CurrentImdlVersion.Major; }\n\n /** Deserialize a header from the binary data at the stream's current position.\n * If the binary data does not contain a valid header, the Header will be marked 'invalid'.\n */\n public constructor(stream: ByteStream) {\n super(stream);\n this.headerLength = stream.readUint32();\n this.flags = stream.readUint32();\n\n this.contentRange = new Range3d();\n nextPoint3d64FromByteStream(stream, this.contentRange.low);\n nextPoint3d64FromByteStream(stream, this.contentRange.high);\n\n this.tolerance = stream.readFloat64();\n this.numElementsIncluded = stream.readUint32();\n this.numElementsExcluded = stream.readUint32();\n this.tileLength = stream.readUint32();\n\n // empty sub-volume bit field introduced in format v02.00\n this.emptySubRanges = this.versionMajor >= 2 ? stream.readUint32() : 0;\n\n // Skip any unprocessed bytes in header\n const remainingHeaderBytes = this.headerLength - stream.curPos;\n assert(remainingHeaderBytes >= 0);\n stream.advance(remainingHeaderBytes);\n\n if (stream.isPastTheEnd)\n this.invalidate();\n }\n}\n\n/** Header preceding the feature table embedded in an iMdl tile's content.\n * @internal\n */\nexport class FeatureTableHeader {\n // The number of bytes the entire table occupies.\n public readonly length: number;\n // The number of subcategories in the table.\n // NOTE: This used to be \"max features\" which was useless and unused. It is only accurate if ImdlFlags.HasMultiModelFeatureTable is set.\n public readonly numSubCategories: number;\n // The number of features in the table.\n public readonly count: number;\n\n public static readFrom(stream: ByteStream) {\n const length = stream.readUint32();\n const maxFeatures = stream.readUint32();\n const count = stream.readUint32();\n return stream.isPastTheEnd ? undefined : new FeatureTableHeader(length, maxFeatures, count);\n }\n\n public static sizeInBytes = 12;\n\n private constructor(length: number, numSubCategories: number, count: number) {\n this.length = length;\n this.numSubCategories = numSubCategories;\n this.count = count;\n }\n}\n"]}