@arcgis/core 5.0.0-next.35 → 5.0.0-next.36

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 (169) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/06462b267ff8d5984882.js +1 -0
  3. package/assets/esri/core/workers/chunks/{b48bb38e5d60fc7a9097.js → 08ef90e3fcfd4eda4301.js} +1 -1
  4. package/assets/esri/core/workers/chunks/0a58b57e1777a8b0ea23.js +1 -0
  5. package/assets/esri/core/workers/chunks/{7115c52e22b7becff8de.js → 103153951ba312dc5e9e.js} +1 -1
  6. package/assets/esri/core/workers/chunks/{f55328aabf84770c8e6a.js → 1817cf11e85afca947d3.js} +1 -1
  7. package/assets/esri/core/workers/chunks/20e4243ea563d05a5256.js +1 -0
  8. package/assets/esri/core/workers/chunks/24a3c6f0154787968724.js +1 -0
  9. package/assets/esri/core/workers/chunks/{fafbacf2467e6883b6c9.js → 28db329528def851efd7.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{2367bd1cb34799a3f08a.js → 30184e39129d9c66ea54.js} +1 -1
  11. package/assets/esri/core/workers/chunks/3f03165487c1c2340fff.js +1 -0
  12. package/assets/esri/core/workers/chunks/48e2737182c75005fb8f.js +1 -0
  13. package/assets/esri/core/workers/chunks/{05e55118dc0023d500fc.js → 5000a37fba27464d10ca.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{fa01d1813fa78034526e.js → 51355866a0dcf41cfded.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{a372d9af43ade7c6314c.js → 52c8687b473c9953c2f2.js} +1 -1
  16. package/assets/esri/core/workers/chunks/640085b5ade5c7f16228.js +1 -0
  17. package/assets/esri/core/workers/chunks/727804cf901094b1d620.js +1 -0
  18. package/assets/esri/core/workers/chunks/{0446562aee0639c61485.js → 7420fa18ba12014b22ea.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{c9c2e00fed979c21e2f0.js → 8a946cbc816f373c136b.js} +1 -1
  20. package/assets/esri/core/workers/chunks/8c271e9272e4eaf1325a.js +1 -0
  21. package/assets/esri/core/workers/chunks/{2a0fe1aede5c68374ccf.js → 8ec238b5b59ef18a1713.js} +1 -1
  22. package/assets/esri/core/workers/chunks/{f1dfb1323d50247e80f9.js → 9110287f272141f60c35.js} +1 -1
  23. package/assets/esri/core/workers/chunks/951a3442d4342539f2ea.js +1 -0
  24. package/assets/esri/core/workers/chunks/9664d9e679abc41f6c42.js +1 -0
  25. package/assets/esri/core/workers/chunks/{2921f05a40fda12f9f81.js → a00bba1c7cbf8cd7892c.js} +1 -1
  26. package/assets/esri/core/workers/chunks/a716b8fdeda4e16f03ab.js +1 -0
  27. package/assets/esri/core/workers/chunks/aead7c9830fa310e5b53.js +1 -0
  28. package/assets/esri/core/workers/chunks/{483dc4ee5d73cdfe6229.js → b075d3714fab0591d67c.js} +1 -1
  29. package/assets/esri/core/workers/chunks/{82cc758bddd9f8397b9f.js → b451dc416eebd0931ef8.js} +4 -4
  30. package/assets/esri/core/workers/chunks/b59be95949445ff5afab.js +1 -0
  31. package/assets/esri/core/workers/chunks/b6dec5dfdeca54bae88d.js +1 -0
  32. package/assets/esri/core/workers/chunks/{4356274cfa477eb6d749.js → bfb9cbe59d36d18f9157.js} +1 -1
  33. package/assets/esri/core/workers/chunks/{6afd59412bfc134bdf75.js → c052fb8c952cda0b5d13.js} +1 -1
  34. package/assets/esri/core/workers/chunks/{f2ebd6471e1259a6eac0.js → c9e7cc5d853908ab5b2f.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{97650ee3d0eecb69ccbb.js → d8623f5f13a084e439c2.js} +5 -5
  36. package/assets/esri/core/workers/chunks/dd105d6e0fcedee32644.js +1 -0
  37. package/assets/esri/core/workers/chunks/e1148067ceae7d9eaaf8.js +1 -0
  38. package/assets/esri/core/workers/chunks/{b536fdb655ad293d9024.js → eb6218634a492667506a.js} +1 -1
  39. package/assets/esri/core/workers/chunks/{7804be2f5b3d86188a24.js → edc3d98f33d7bf959154.js} +1 -1
  40. package/assets/esri/core/workers/chunks/eefad79be500667af96e.js +1 -0
  41. package/assets/esri/core/workers/chunks/{63933cbcb5c12df09715.js → f1ac1c8b1331ec79e898.js} +1 -1
  42. package/assets/esri/core/workers/chunks/{2b7f9a57a2cfbc108673.js → f1b99529e2055873b65a.js} +1 -1
  43. package/assets/esri/core/workers/chunks/f693a4d97b2762d0e6ff.js +1 -0
  44. package/assets/esri/core/workers/chunks/f8caceeaa14d99c35526.js +1 -0
  45. package/assets/esri/core/workers/chunks/febce0d80f019dc2a427.js +1 -0
  46. package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core-simd.wasm +0 -0
  47. package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core.wasm +0 -0
  48. package/assets/esri/themes/base/widgets/_Attribution.scss +1 -0
  49. package/assets/esri/themes/dark/main.css +1 -1
  50. package/assets/esri/themes/light/main.css +1 -1
  51. package/assets/esri/themes/light/view.css +1 -1
  52. package/chunks/Magnifier.glsl.js +1 -1
  53. package/chunks/arcgis-knowledge-client-core-simd.js +1 -1
  54. package/chunks/arcgis-knowledge-client-core.js +1 -1
  55. package/chunks/cameraUtilsSpherical.js +1 -1
  56. package/chunks/vec42.js +1 -1
  57. package/config.js +1 -1
  58. package/core/libs/gl-matrix-2/math/quat.js +1 -1
  59. package/core/libs/gl-matrix-2/math/vec4.js +1 -1
  60. package/geometry/support/aaBoundingRect.js +1 -1
  61. package/geometry/support/buffer/BufferView.js +1 -1
  62. package/geometry/support/buffer/internals/Vec4.js +1 -1
  63. package/interfaces.d.ts +108 -0
  64. package/kernel.js +1 -1
  65. package/layers/GaussianSplatLayer.js +1 -1
  66. package/layers/IntegratedMesh3DTilesLayer.js +1 -1
  67. package/layers/IntegratedMeshLayer.js +1 -1
  68. package/package.json +1 -1
  69. package/rest/knowledgeGraph/DataModel.js +1 -1
  70. package/rest/knowledgeGraph/GraphDataModelSingletonOperationResult.d.ts +4 -0
  71. package/rest/knowledgeGraph/GraphDataModelSingletonOperationResult.js +5 -0
  72. package/rest/knowledgeGraph/GraphProperty.js +1 -1
  73. package/rest/knowledgeGraph/wasmInterface/WasmDataModelWrapperInterfaces.js +1 -1
  74. package/rest/knowledgeGraph/wasmInterface/updateToWasmEncodedFactories.js +1 -1
  75. package/rest/knowledgeGraph/wasmInterface/wasmToDataModelChangeResponseFactories.js +1 -1
  76. package/rest/knowledgeGraph/wasmInterface/wasmToDataModelFactories.js +1 -1
  77. package/rest/knowledgeGraphService.d.ts +3 -0
  78. package/rest/knowledgeGraphService.js +1 -1
  79. package/support/revision.js +1 -1
  80. package/views/3d/GroundView3D.js +1 -1
  81. package/views/3d/analysis/ElevationProfile/ElevationProfileLineSceneComputation.js +1 -1
  82. package/views/3d/analysis/LineOfSight/LineOfSightRayIntersector.js +1 -1
  83. package/views/3d/environment/ChapmanAtmosphere.js +1 -1
  84. package/views/3d/environment/Fog.js +1 -1
  85. package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
  86. package/views/3d/interactive/visualElements/MeasurementAreaVisualElement.js +1 -1
  87. package/views/3d/interactive/visualElements/MeasurementArrowVisualElement.js +1 -1
  88. package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
  89. package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
  90. package/views/3d/interactive/visualElements/PointVisualElement.js +1 -1
  91. package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
  92. package/views/3d/interactive/visualElements/SlicePlaneVisualElement.js +1 -1
  93. package/views/3d/interactive/visualElements/VerticesVisualElement.js +1 -1
  94. package/views/3d/layers/DrapedSubView3D.js +1 -1
  95. package/views/3d/layers/I3SMeshView3D.js +1 -1
  96. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  97. package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
  98. package/views/3d/layers/graphics/Deconflictor.js +1 -1
  99. package/views/3d/layers/graphics/Graphics3DFrustumVisibility.js +1 -1
  100. package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
  101. package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
  102. package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
  103. package/views/3d/layers/graphics/graphicUtils.js +1 -1
  104. package/views/3d/layers/i3s/PointCloudRenderer.js +1 -1
  105. package/views/3d/layers/support/FastSymbolUpdates.js +1 -1
  106. package/views/3d/layers/support/Tiles3DIntersectionHandler.js +1 -1
  107. package/views/3d/state/ConstraintsManager.js +1 -1
  108. package/views/3d/state/ViewStateManager.js +1 -1
  109. package/views/3d/support/flow/FlowSubViewTiles3D.js +1 -1
  110. package/views/3d/support/gaussianSplatting/GaussianSplatFadeTexture.js +1 -1
  111. package/views/3d/support/gaussianSplatting/GaussianSplatOrderTexture.js +1 -1
  112. package/views/3d/support/gaussianSplatting/GaussianSplatTextureAtlas.js +1 -1
  113. package/views/3d/support/pointsOfInterest/CenterOnSurface.js +1 -1
  114. package/views/3d/support/pointsOfInterest/PointsOfInterest.js +1 -1
  115. package/views/3d/support/pointsOfInterest/StableSurfaceCenter.js +1 -1
  116. package/views/3d/terrain/Overlay.js +1 -1
  117. package/views/3d/terrain/OverlayManager.js +1 -1
  118. package/views/3d/terrain/PatchRenderData.js +1 -1
  119. package/views/3d/terrain/ScaleRangeQueries.js +1 -1
  120. package/views/3d/terrain/TerrainSurface.js +1 -1
  121. package/views/3d/terrain/TextureFader.js +1 -1
  122. package/views/3d/terrain/TextureReference.js +1 -1
  123. package/views/3d/terrain/Tile.js +1 -1
  124. package/views/3d/webgl/RenderCamera.js +1 -1
  125. package/views/3d/webgl-engine/collections/Component/Material/ComponentData.glsl.js +1 -1
  126. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VerticalOffset.glsl.js +1 -1
  127. package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateAmbientLighting.glsl.js +1 -1
  128. package/views/3d/webgl-engine/core/shaderLibrary/shading/WaterDistortion.glsl.js +1 -1
  129. package/views/3d/webgl-engine/core/shaderLibrary/util/CameraSpace.glsl.js +2 -2
  130. package/views/3d/webgl-engine/effects/haze/Haze.js +1 -1
  131. package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
  132. package/views/3d/webgl-engine/lib/MainFramebuffer.js +1 -1
  133. package/views/3d/webgl-engine/lib/PathGeometryData.js +1 -1
  134. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  135. package/views/3d/webgl-engine/lib/ShadowCastRenderer.js +1 -1
  136. package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
  137. package/views/3d/webgl-engine/lib/TextTextureAtlas.js +1 -1
  138. package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBackedBuffer.js +1 -1
  139. package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
  140. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  141. package/views/3d/webgl-engine/shaders/AnimatedLine.glsl.js +1 -1
  142. package/views/3d/webgl-engine/shaders/ensureColor4.js +1 -1
  143. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/EdgeUtil.glsl.js +5 -5
  144. package/views/SceneView.js +1 -1
  145. package/views/interactive/coordinateHelper.js +1 -1
  146. package/views/interactive/sketch/constraints.js +1 -1
  147. package/views/support/GroundElevationSampler.js +1 -1
  148. package/widgets/support/SelectionList.js +1 -1
  149. package/assets/esri/core/workers/chunks/032444974011118127d7.js +0 -1
  150. package/assets/esri/core/workers/chunks/089221bac1f019692f48.js +0 -1
  151. package/assets/esri/core/workers/chunks/1bfe0b2bf38d4dee7fd6.js +0 -1
  152. package/assets/esri/core/workers/chunks/27bd88e1101873d4ce12.js +0 -1
  153. package/assets/esri/core/workers/chunks/53d95ba86d010231fc4e.js +0 -1
  154. package/assets/esri/core/workers/chunks/7d3e665613927904ba4f.js +0 -1
  155. package/assets/esri/core/workers/chunks/a5f2da24497349239648.js +0 -1
  156. package/assets/esri/core/workers/chunks/a7b1b42bdb9cb9ecac45.js +0 -1
  157. package/assets/esri/core/workers/chunks/acaaefd4997316d319b8.js +0 -1
  158. package/assets/esri/core/workers/chunks/ad138b989c2c7a1168ac.js +0 -1
  159. package/assets/esri/core/workers/chunks/cc7c37f9ed3f831fd25c.js +0 -1
  160. package/assets/esri/core/workers/chunks/d14bd320f72d8e8a0ad8.js +0 -1
  161. package/assets/esri/core/workers/chunks/d86e59da76eea888ba86.js +0 -1
  162. package/assets/esri/core/workers/chunks/de99c4fd1582a8e610cf.js +0 -1
  163. package/assets/esri/core/workers/chunks/ded3ef385d5a3a2ec8ca.js +0 -1
  164. package/assets/esri/core/workers/chunks/e3a994587f9b2e88db85.js +0 -1
  165. package/assets/esri/core/workers/chunks/eab0938d4ad7d7cc7309.js +0 -1
  166. package/assets/esri/core/workers/chunks/ed1dabed10ff9f4e0369.js +0 -1
  167. package/assets/esri/core/workers/chunks/ef5b13ee3362763c1096.js +0 -1
  168. package/assets/esri/core/workers/chunks/effbc4d240752e8ba0ab.js +0 -1
  169. package/assets/esri/core/workers/chunks/f403d8e414766fab2936.js +0 -1
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import{getFloat16ArrayConstructor as e,hasNativeFloat16Array as t}from"../float16.js";import{BufferViewMat3Impl as s}from"./internals/Mat3.js";import{BufferViewMat4Impl as r}from"./internals/Mat4.js";import{BufferViewScalarImpl as i}from"./internals/Scalar.js";import{BufferViewVec2Impl as n}from"./internals/Vec2.js";import{BufferViewVec3Impl as c}from"./internals/Vec3.js";import{BufferViewVec4Impl as l}from"./internals/Vec4.js";import{assert as u}from"../../../views/3d/webgl-engine/lib/Util.js";class a extends i{constructor(s,r=0,i,n){u(t),super(e(),s,r,i,n),this.elementType="f16"}static{this.ElementType="f16"}}class f extends i{constructor(e,t=0,s,r){super(Float32Array,e,t,s,r),this.elementType="f32"}static{this.ElementType="f32"}}class p extends n{constructor(s,r=0,i,n){u(t),super(e(),s,r,i,n),this.elementType="f16"}slice(e,t){return this.sliceBuffer(p,e,t)}static{this.ElementType="f16"}}class y extends n{constructor(e,t=0,s,r){super(Float32Array,e,t,s,r),this.elementType="f32"}slice(e,t){return this.sliceBuffer(y,e,t)}static{this.ElementType="f32"}}class h extends c{constructor(s,r=0,i,n){u(t),super(e(),s,r,i,n),this.elementType="f16"}slice(e,t){return this.sliceBuffer(h,e,t)}static{this.ElementType="f16"}}class o extends c{constructor(e,t=0,s,r){super(Float32Array,e,t,s,r),this.elementType="f32"}slice(e,t){return this.sliceBuffer(o,e,t)}static fromTypedArray(e,t){return new o(e.buffer,e.byteOffset,t,e.byteOffset+e.byteLength)}static{this.ElementType="f32"}}class m extends l{constructor(s,r=0,i,n){u(t),super(e(),s,r,i,n),this.elementType="f16"}slice(e,t){return this.sliceBuffer(m,e,t)}static{this.ElementType="f16"}}class T extends l{constructor(e,t=0,s,r){super(Float32Array,e,t,s,r),this.elementType="f32"}slice(e,t){return this.sliceBuffer(T,e,t)}static{this.ElementType="f32"}}class d extends s{constructor(e,t=0,s,r){super(Float32Array,e,t,s,r),this.elementType="f32"}slice(e,t){return this.sliceBuffer(d,e,t)}static{this.ElementType="f32"}}class x extends s{constructor(e,t=0,s,r){super(Float64Array,e,t,s,r),this.elementType="f64"}slice(e,t){return this.sliceBuffer(x,e,t)}static{this.ElementType="f64"}}class E extends r{constructor(e,t=0,s,r){super(Float32Array,e,t,s,r),this.elementType="f32"}slice(e,t){return this.sliceBuffer(E,e,t)}static{this.ElementType="f32"}}class A extends r{constructor(e,t=0,s,r){super(Float64Array,e,t,s,r),this.elementType="f64"}slice(e,t){return this.sliceBuffer(A,e,t)}static{this.ElementType="f64"}}class B extends i{constructor(e,t=0,s,r){super(Float64Array,e,t,s,r),this.elementType="f64"}slice(e,t){return this.sliceBuffer(B,e,t)}static{this.ElementType="f64"}}class b extends n{constructor(e,t=0,s,r){super(Float64Array,e,t,s,r),this.elementType="f64"}slice(e,t){return this.sliceBuffer(b,e,t)}static{this.ElementType="f64"}}class U extends c{constructor(e,t=0,s,r){super(Float64Array,e,t,s,r),this.elementType="f64"}slice(e,t){return this.sliceBuffer(U,e,t)}static fromTypedArray(e,t){return new U(e.buffer,e.byteOffset,t,e.byteOffset+e.byteLength)}static{this.ElementType="f64"}}class F extends l{constructor(e,t=0,s,r){super(Float64Array,e,t,s,r),this.elementType="f64"}slice(e,t){return this.sliceBuffer(F,e,t)}static{this.ElementType="f64"}}class I extends i{constructor(e,t=0,s,r){super(Uint8Array,e,t,s,r),this.elementType="u8"}slice(e,t){return this.sliceBuffer(I,e,t)}static{this.ElementType="u8"}}class j extends n{constructor(e,t=0,s,r){super(Uint8Array,e,t,s,r),this.elementType="u8"}slice(e,t){return this.sliceBuffer(j,e,t)}static{this.ElementType="u8"}}class O extends c{constructor(e,t=0,s,r){super(Uint8Array,e,t,s,r),this.elementType="u8"}slice(e,t){return this.sliceBuffer(O,e,t)}static fromTypedArray(e,t){return new O(e.buffer,e.byteOffset,t,e.byteOffset+e.byteLength)}static{this.ElementType="u8"}}class g extends l{constructor(e,t=0,s,r){super(Uint8Array,e,t,s,r),this.elementType="u8"}slice(e,t){return this.sliceBuffer(g,e,t)}static{this.ElementType="u8"}}class w extends i{constructor(e,t=0,s,r){super(Uint16Array,e,t,s,r),this.elementType="u16"}slice(e,t){return this.sliceBuffer(w,e,t)}static{this.ElementType="u16"}}class L extends n{constructor(e,t=0,s,r){super(Uint16Array,e,t,s,r),this.elementType="u16"}slice(e,t){return this.sliceBuffer(L,e,t)}static{this.ElementType="u16"}}class V extends c{constructor(e,t=0,s,r){super(Uint16Array,e,t,s,r),this.elementType="u16"}slice(e,t){return this.sliceBuffer(V,e,t)}static{this.ElementType="u16"}}class M extends l{constructor(e,t=0,s,r){super(Uint16Array,e,t,s,r),this.elementType="u16"}slice(e,t){return this.sliceBuffer(M,e,t)}static{this.ElementType="u16"}}class v extends i{constructor(e,t=0,s,r){super(Uint32Array,e,t,s,r),this.elementType="u32"}slice(e,t){return this.sliceBuffer(v,e,t)}static{this.ElementType="u32"}}class S extends n{constructor(e,t=0,s,r){super(Uint32Array,e,t,s,r),this.elementType="u32"}slice(e,t){return this.sliceBuffer(S,e,t)}static{this.ElementType="u32"}}class k extends c{constructor(e,t=0,s,r){super(Uint32Array,e,t,s,r),this.elementType="u32"}slice(e,t){return this.sliceBuffer(k,e,t)}static{this.ElementType="u32"}}class q extends l{constructor(e,t=0,s,r){super(Uint32Array,e,t,s,r),this.elementType="u32"}slice(e,t){return this.sliceBuffer(q,e,t)}static{this.ElementType="u32"}}class z extends i{constructor(e,t=0,s,r){super(Int8Array,e,t,s,r),this.elementType="i8"}slice(e,t){return this.sliceBuffer(z,e,t)}static{this.ElementType="i8"}}class C extends n{constructor(e,t=0,s,r){super(Int8Array,e,t,s,r),this.elementType="i8"}slice(e,t){return this.sliceBuffer(C,e,t)}static{this.ElementType="i8"}}class D extends c{constructor(e,t=0,s,r){super(Int8Array,e,t,s,r),this.elementType="i8"}slice(e,t){return this.sliceBuffer(D,e,t)}static{this.ElementType="i8"}}class G extends l{constructor(e,t=0,s,r){super(Int8Array,e,t,s,r),this.elementType="i8"}slice(e,t){return this.sliceBuffer(G,e,t)}static{this.ElementType="i8"}}class H extends i{constructor(e,t=0,s,r){super(Int16Array,e,t,s,r),this.elementType="i16"}slice(e,t){return this.sliceBuffer(H,e,t)}static{this.ElementType="i16"}}class J extends n{constructor(e,t=0,s,r){super(Int16Array,e,t,s,r),this.elementType="i16"}slice(e,t){return this.sliceBuffer(J,e,t)}static{this.ElementType="i16"}}class K extends c{constructor(e,t=0,s,r){super(Int16Array,e,t,s,r),this.elementType="i16"}slice(e,t){return this.sliceBuffer(K,e,t)}static{this.ElementType="i16"}}class N extends l{constructor(e,t=0,s,r){super(Int16Array,e,t,s,r),this.elementType="i16"}slice(e,t){return this.sliceBuffer(N,e,t)}static{this.ElementType="i16"}}class P extends i{constructor(e,t=0,s,r){super(Int32Array,e,t,s,r),this.elementType="i32"}slice(e,t){return this.sliceBuffer(P,e,t)}static{this.ElementType="i32"}}class Q extends n{constructor(e,t=0,s,r){super(Int32Array,e,t,s,r),this.elementType="i32"}slice(e,t){return this.sliceBuffer(Q,e,t)}static{this.ElementType="i32"}}class R extends c{constructor(e,t=0,s,r){super(Int32Array,e,t,s,r),this.elementType="i32"}slice(e,t){return this.sliceBuffer(R,e,t)}static{this.ElementType="i32"}}class W extends l{constructor(e,t=0,s,r){super(Int32Array,e,t,s,r),this.elementType="i32"}slice(e,t){return this.sliceBuffer(W,e,t)}static{this.ElementType="i32"}}export{f as BufferViewFloat,a as BufferViewFloat16,B as BufferViewFloat64,H as BufferViewInt16,P as BufferViewInt32,z as BufferViewInt8,d as BufferViewMat3f,x as BufferViewMat3f64,E as BufferViewMat4f,A as BufferViewMat4f64,w as BufferViewUint16,v as BufferViewUint32,I as BufferViewUint8,y as BufferViewVec2f,p as BufferViewVec2f16,b as BufferViewVec2f64,J as BufferViewVec2i16,Q as BufferViewVec2i32,C as BufferViewVec2i8,L as BufferViewVec2u16,S as BufferViewVec2u32,j as BufferViewVec2u8,o as BufferViewVec3f,h as BufferViewVec3f16,U as BufferViewVec3f64,K as BufferViewVec3i16,R as BufferViewVec3i32,D as BufferViewVec3i8,V as BufferViewVec3u16,k as BufferViewVec3u32,O as BufferViewVec3u8,T as BufferViewVec4f,m as BufferViewVec4f16,F as BufferViewVec4f64,N as BufferViewVec4i16,W as BufferViewVec4i32,G as BufferViewVec4i8,M as BufferViewVec4u16,q as BufferViewVec4u32,g as BufferViewVec4u8};
5
+ import{clamp as e}from"../../../core/mathUtils.js";import{s as t,m as s,b as r,r as i,c}from"../../../chunks/vec42.js";import{ONES as n,ZEROS as l,create as u}from"../../../core/libs/gl-matrix-2/factories/vec4f64.js";import{getFloat16ArrayConstructor as a,hasNativeFloat16Array as f}from"../float16.js";import{BufferViewMat3Impl as p}from"./internals/Mat3.js";import{BufferViewMat4Impl as y}from"./internals/Mat4.js";import{BufferViewScalarImpl as h}from"./internals/Scalar.js";import{BufferViewVec2Impl as o}from"./internals/Vec2.js";import{BufferViewVec3Impl as m}from"./internals/Vec3.js";import{BufferViewVec4Impl as T}from"./internals/Vec4.js";import{assert as d}from"../../../views/3d/webgl-engine/lib/Util.js";class x extends h{constructor(e,t=0,s,r){d(f),super(a(),e,t,s,r),this.elementType="f16"}static{this.ElementType="f16"}}class B extends h{constructor(e,t=0,s,r){super(Float32Array,e,t,s,r),this.elementType="f32"}static{this.ElementType="f32"}}class E extends o{constructor(e,t=0,s,r){d(f),super(a(),e,t,s,r),this.elementType="f16"}slice(e,t){return this.sliceBuffer(E,e,t)}static{this.ElementType="f16"}}class A extends o{constructor(e,t=0,s,r){super(Float32Array,e,t,s,r),this.elementType="f32"}slice(e,t){return this.sliceBuffer(A,e,t)}static{this.ElementType="f32"}}class b extends m{constructor(e,t=0,s,r){d(f),super(a(),e,t,s,r),this.elementType="f16"}slice(e,t){return this.sliceBuffer(b,e,t)}static{this.ElementType="f16"}}class U extends m{constructor(e,t=0,s,r){super(Float32Array,e,t,s,r),this.elementType="f32"}slice(e,t){return this.sliceBuffer(U,e,t)}static fromTypedArray(e,t){return new U(e.buffer,e.byteOffset,t,e.byteOffset+e.byteLength)}static{this.ElementType="f32"}}class F extends T{constructor(e,t=0,s,r){d(f),super(a(),e,t,s,r),this.elementType="f16"}slice(e,t){return this.sliceBuffer(F,e,t)}static{this.ElementType="f16"}}class I extends T{constructor(e,t=0,s,r){super(Float32Array,e,t,s,r),this.elementType="f32"}slice(e,t){return this.sliceBuffer(I,e,t)}static{this.ElementType="f32"}}class g extends p{constructor(e,t=0,s,r){super(Float32Array,e,t,s,r),this.elementType="f32"}slice(e,t){return this.sliceBuffer(g,e,t)}static{this.ElementType="f32"}}class j extends p{constructor(e,t=0,s,r){super(Float64Array,e,t,s,r),this.elementType="f64"}slice(e,t){return this.sliceBuffer(j,e,t)}static{this.ElementType="f64"}}class V extends y{constructor(e,t=0,s,r){super(Float32Array,e,t,s,r),this.elementType="f32"}slice(e,t){return this.sliceBuffer(V,e,t)}static{this.ElementType="f32"}}class O extends y{constructor(e,t=0,s,r){super(Float64Array,e,t,s,r),this.elementType="f64"}slice(e,t){return this.sliceBuffer(O,e,t)}static{this.ElementType="f64"}}class w extends h{constructor(e,t=0,s,r){super(Float64Array,e,t,s,r),this.elementType="f64"}slice(e,t){return this.sliceBuffer(w,e,t)}static{this.ElementType="f64"}}class M extends o{constructor(e,t=0,s,r){super(Float64Array,e,t,s,r),this.elementType="f64"}slice(e,t){return this.sliceBuffer(M,e,t)}static{this.ElementType="f64"}}class v extends m{constructor(e,t=0,s,r){super(Float64Array,e,t,s,r),this.elementType="f64"}slice(e,t){return this.sliceBuffer(v,e,t)}static fromTypedArray(e,t){return new v(e.buffer,e.byteOffset,t,e.byteOffset+e.byteLength)}static{this.ElementType="f64"}}class L extends T{constructor(e,t=0,s,r){super(Float64Array,e,t,s,r),this.elementType="f64"}slice(e,t){return this.sliceBuffer(L,e,t)}static{this.ElementType="f64"}}class S extends h{constructor(e,t=0,s,r){super(Uint8Array,e,t,s,r),this.elementType="u8"}slice(e,t){return this.sliceBuffer(S,e,t)}static{this.ElementType="u8"}}class k extends o{constructor(e,t=0,s,r){super(Uint8Array,e,t,s,r),this.elementType="u8"}slice(e,t){return this.sliceBuffer(k,e,t)}static{this.ElementType="u8"}}class q extends m{constructor(e,t=0,s,r){super(Uint8Array,e,t,s,r),this.elementType="u8"}slice(e,t){return this.sliceBuffer(q,e,t)}static fromTypedArray(e,t){return new q(e.buffer,e.byteOffset,t,e.byteOffset+e.byteLength)}static{this.ElementType="u8"}}class z extends T{constructor(e,t=0,s,r){super(Uint8Array,e,t,s,r),this.elementType="u8"}slice(e,t){return this.sliceBuffer(z,e,t)}static{this.ElementType="u8"}}class C extends h{constructor(e,t=0,s,r){super(Uint16Array,e,t,s,r),this.elementType="u16"}slice(e,t){return this.sliceBuffer(C,e,t)}static{this.ElementType="u16"}}class D extends o{constructor(e,t=0,s,r){super(Uint16Array,e,t,s,r),this.elementType="u16"}slice(e,t){return this.sliceBuffer(D,e,t)}static{this.ElementType="u16"}}class G extends m{constructor(e,t=0,s,r){super(Uint16Array,e,t,s,r),this.elementType="u16"}slice(e,t){return this.sliceBuffer(G,e,t)}static{this.ElementType="u16"}}class H extends T{constructor(e,t=0,s,r){super(Uint16Array,e,t,s,r),this.elementType="u16"}slice(e,t){return this.sliceBuffer(H,e,t)}static{this.ElementType="u16"}}class J extends h{constructor(e,t=0,s,r){super(Uint32Array,e,t,s,r),this.elementType="u32"}slice(e,t){return this.sliceBuffer(J,e,t)}static{this.ElementType="u32"}}class K extends o{constructor(e,t=0,s,r){super(Uint32Array,e,t,s,r),this.elementType="u32"}slice(e,t){return this.sliceBuffer(K,e,t)}static{this.ElementType="u32"}}class N extends m{constructor(e,t=0,s,r){super(Uint32Array,e,t,s,r),this.elementType="u32"}slice(e,t){return this.sliceBuffer(N,e,t)}static{this.ElementType="u32"}}class P extends T{constructor(e,t=0,s,r){super(Uint32Array,e,t,s,r),this.elementType="u32"}slice(e,t){return this.sliceBuffer(P,e,t)}static{this.ElementType="u32"}}class Q extends h{constructor(e,t=0,s,r){super(Int8Array,e,t,s,r),this.elementType="i8"}slice(e,t){return this.sliceBuffer(Q,e,t)}static{this.ElementType="i8"}}class R extends o{constructor(e,t=0,s,r){super(Int8Array,e,t,s,r),this.elementType="i8"}slice(e,t){return this.sliceBuffer(R,e,t)}static{this.ElementType="i8"}}class W extends m{constructor(e,t=0,s,r){super(Int8Array,e,t,s,r),this.elementType="i8"}slice(e,t){return this.sliceBuffer(W,e,t)}static{this.ElementType="i8"}}class X extends T{constructor(e,t=0,s,r){super(Int8Array,e,t,s,r),this.elementType="i8"}slice(e,t){return this.sliceBuffer(X,e,t)}static{this.ElementType="i8"}}class Y extends h{constructor(e,t=0,s,r){super(Int16Array,e,t,s,r),this.elementType="i16"}slice(e,t){return this.sliceBuffer(Y,e,t)}static{this.ElementType="i16"}}class Z extends o{constructor(e,t=0,s,r){super(Int16Array,e,t,s,r),this.elementType="i16"}slice(e,t){return this.sliceBuffer(Z,e,t)}static{this.ElementType="i16"}}class $ extends m{constructor(e,t=0,s,r){super(Int16Array,e,t,s,r),this.elementType="i16"}slice(e,t){return this.sliceBuffer($,e,t)}static{this.ElementType="i16"}}class _ extends T{constructor(e,t=0,s,r){super(Int16Array,e,t,s,r),this.elementType="i16"}slice(e,t){return this.sliceBuffer(_,e,t)}static{this.ElementType="i16"}}class ee extends h{constructor(e,t=0,s,r){super(Int32Array,e,t,s,r),this.elementType="i32"}slice(e,t){return this.sliceBuffer(ee,e,t)}static{this.ElementType="i32"}}class te extends o{constructor(e,t=0,s,r){super(Int32Array,e,t,s,r),this.elementType="i32"}slice(e,t){return this.sliceBuffer(te,e,t)}static{this.ElementType="i32"}}class se extends m{constructor(e,t=0,s,r){super(Int32Array,e,t,s,r),this.elementType="i32"}slice(e,t){return this.sliceBuffer(se,e,t)}static{this.ElementType="i32"}}class re extends T{constructor(e,t=0,s,r){super(Int32Array,e,t,s,r),this.elementType="i32"}slice(e,t){return this.sliceBuffer(re,e,t)}static{this.ElementType="i32"}}class ie extends S{constructor(e,t=0,s,r){super(e,t,s,r)}get(e){return this.typedBuffer[e*this.typedBufferStride]/255}set(t,s){this.typedBuffer[t*this.typedBufferStride]=Math.round(255*e(s,0,1))}slice(e,t){return this.sliceBuffer(ie,e,t)}}class ce extends z{constructor(e,t=0,s,r){super(e,t,s,r)}getVec(e,s){return t(s,super.getVec(e,s),1/255)}setVec(e,c){s(ne,r(ne,c,l),n),t(ne,ne,255),i(ne,ne),super.setVec(e,ne)}get(e,t){return super.get(e,t)/255}set(t,s,r){super.set(t,s,Math.round(255*e(r,0,1)))}setValues(e,t,s,r,i){c(ne,t,s,r,i),this.setVec(e,ne)}slice(e,t){return this.sliceBuffer(ce,e,t)}}const ne=u();export{B as BufferViewFloat,x as BufferViewFloat16,w as BufferViewFloat64,Y as BufferViewInt16,ee as BufferViewInt32,Q as BufferViewInt8,g as BufferViewMat3f,j as BufferViewMat3f64,V as BufferViewMat4f,O as BufferViewMat4f64,C as BufferViewUint16,J as BufferViewUint32,S as BufferViewUint8,ie as BufferViewUnorm8,A as BufferViewVec2f,E as BufferViewVec2f16,M as BufferViewVec2f64,Z as BufferViewVec2i16,te as BufferViewVec2i32,R as BufferViewVec2i8,D as BufferViewVec2u16,K as BufferViewVec2u32,k as BufferViewVec2u8,U as BufferViewVec3f,b as BufferViewVec3f16,v as BufferViewVec3f64,$ as BufferViewVec3i16,se as BufferViewVec3i32,W as BufferViewVec3i8,G as BufferViewVec3u16,N as BufferViewVec3u32,q as BufferViewVec3u8,ce as BufferViewVec4Unorm8,I as BufferViewVec4f,F as BufferViewVec4f16,L as BufferViewVec4f64,_ as BufferViewVec4i16,re as BufferViewVec4i32,X as BufferViewVec4i8,H as BufferViewVec4u16,P as BufferViewVec4u32,z as BufferViewVec4u8};
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import{s as t}from"../../../../chunks/vec42.js";class e{static{this.ElementCount=4}constructor(t,e,r=0,f,s){this.TypedArrayConstructor=t,this.start=r,this.elementCount=4;const i=this.TypedArrayConstructor;void 0===f&&(f=4*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=f/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const f=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,f,this.stride,f+r*this.stride)}getVec(e,r){return e*=this.typedBufferStride,t(r,this.typedBuffer[e++],this.typedBuffer[e++],this.typedBuffer[e++],this.typedBuffer[e])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t++]=e[1],this.typedBuffer[t++]=e[2],this.typedBuffer[t]=e[3]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r,f,s){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t++]=r,this.typedBuffer[t++]=f,this.typedBuffer[t]=s}copyFrom(t,e,r){const f=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,u=r*e.typedBufferStride;f[i++]=s[u++],f[i++]=s[u++],f[i++]=s[u++],f[i]=s[u]}get buffer(){return this.typedBuffer.buffer}}export{e as BufferViewVec4Impl};
5
+ import{c as t}from"../../../../chunks/vec42.js";class e{static{this.ElementCount=4}constructor(t,e,r=0,f,s){this.TypedArrayConstructor=t,this.start=r,this.elementCount=4;const i=this.TypedArrayConstructor;void 0===f&&(f=4*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=f/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const f=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,f,this.stride,f+r*this.stride)}getVec(e,r){return e*=this.typedBufferStride,t(r,this.typedBuffer[e++],this.typedBuffer[e++],this.typedBuffer[e++],this.typedBuffer[e])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t++]=e[1],this.typedBuffer[t++]=e[2],this.typedBuffer[t]=e[3]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r,f,s){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t++]=r,this.typedBuffer[t++]=f,this.typedBuffer[t]=s}copyFrom(t,e,r){const f=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,u=r*e.typedBufferStride;f[i++]=s[u++],f[i++]=s[u++],f[i++]=s[u++],f[i]=s[u]}get buffer(){return this.typedBuffer.buffer}}export{e as BufferViewVec4Impl};
package/interfaces.d.ts CHANGED
@@ -65412,6 +65412,13 @@ declare namespace __esri {
65412
65412
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-DataModel.html Read more...}
65413
65413
  */
65414
65414
  constructor(properties?: DataModelProperties);
65415
+ /**
65416
+ * Specifies a default value for the object type.
65417
+ *
65418
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-DataModel.html#domains Read more...}
65419
+ */
65420
+ get domains(): Domain[];
65421
+ set domains(value: DomainProperties[]);
65415
65422
  /**
65416
65423
  * Converts an instance of this class to its [ArcGIS portal JSON](https://developers.arcgis.com/documentation/common-data-types/geometry-objects.htm) representation.
65417
65424
  *
@@ -65431,6 +65438,12 @@ declare namespace __esri {
65431
65438
  }
65432
65439
 
65433
65440
  interface DataModelProperties {
65441
+ /**
65442
+ * Specifies a default value for the object type.
65443
+ *
65444
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-DataModel.html#domains Read more...}
65445
+ */
65446
+ domains?: DomainProperties[];
65434
65447
  }
65435
65448
 
65436
65449
  export interface DataModelIdentifierInfo {
@@ -66001,6 +66014,37 @@ declare namespace __esri {
66001
66014
  error?: Error | nullish;
66002
66015
  }
66003
66016
 
66017
+ export class GraphDataModelSingletonOperationResult extends Accessor {
66018
+ /**
66019
+ * Any errors encountered while decoding the results.
66020
+ *
66021
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphDataModelSingletonOperationResult.html#decoderError Read more...}
66022
+ */
66023
+ decoderError: Error | nullish;
66024
+ /**
66025
+ * The updated knowledge graph with the applied additions, updates, and deletions.
66026
+ *
66027
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphDataModelSingletonOperationResult.html#updatedKnowledgeGraph Read more...}
66028
+ */
66029
+ updatedKnowledgeGraph: KnowledgeGraph | nullish;
66030
+ constructor(properties?: GraphDataModelSingletonOperationResultProperties);
66031
+ }
66032
+
66033
+ interface GraphDataModelSingletonOperationResultProperties {
66034
+ /**
66035
+ * Any errors encountered while decoding the results.
66036
+ *
66037
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphDataModelSingletonOperationResult.html#decoderError Read more...}
66038
+ */
66039
+ decoderError?: Error | nullish;
66040
+ /**
66041
+ * The updated knowledge graph with the applied additions, updates, and deletions.
66042
+ *
66043
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphDataModelSingletonOperationResult.html#updatedKnowledgeGraph Read more...}
66044
+ */
66045
+ updatedKnowledgeGraph?: KnowledgeGraph | nullish;
66046
+ }
66047
+
66004
66048
  export class GraphDeleteFieldIndexResult extends GraphDataModelOperationResult {
66005
66049
  /**
66006
66050
  * Result returned when {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraphService.html#executeDeleteGraphFieldIndex deleting a field index} from a knowledge graph data model.
@@ -66238,6 +66282,12 @@ declare namespace __esri {
66238
66282
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphProperty.html#defaultVisibility Read more...}
66239
66283
  */
66240
66284
  defaultVisibility: boolean;
66285
+ /**
66286
+ * The name of the domain for values of this property, if applicable.
66287
+ *
66288
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphProperty.html#domain Read more...}
66289
+ */
66290
+ domain: string | nullish;
66241
66291
  /**
66242
66292
  * Specifies whether the property is editable.
66243
66293
  *
@@ -66379,6 +66429,12 @@ declare namespace __esri {
66379
66429
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphProperty.html#defaultVisibility Read more...}
66380
66430
  */
66381
66431
  defaultVisibility?: boolean;
66432
+ /**
66433
+ * The name of the domain for values of this property, if applicable.
66434
+ *
66435
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphProperty.html#domain Read more...}
66436
+ */
66437
+ domain?: string | nullish;
66382
66438
  /**
66383
66439
  * Specifies whether the property is editable.
66384
66440
  *
@@ -67848,6 +67904,23 @@ declare namespace __esri {
67848
67904
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraphService.html Read more...}
67849
67905
  */
67850
67906
  interface knowledgeGraphService {
67907
+ executeAddDomain(graph: KnowledgeGraph, domain: RangeDomain | CodedValueDomain, fieldType: | "esriFieldTypeSmallInteger"
67908
+ | "esriFieldTypeInteger"
67909
+ | "esriFieldTypeSingle"
67910
+ | "esriFieldTypeDouble"
67911
+ | "esriFieldTypeString"
67912
+ | "esriFieldTypeDate"
67913
+ | "esriFieldTypeOID"
67914
+ | "esriFieldTypeGeometry"
67915
+ | "esriFieldTypeBlob"
67916
+ | "esriFieldTypeRaster"
67917
+ | "esriFieldTypeGUID"
67918
+ | "esriFieldTypeGlobalID"
67919
+ | "esriFieldTypeXML"
67920
+ | "esriFieldTypeBigInteger"
67921
+ | "esriFieldTypeDateOnly"
67922
+ | "esriFieldTypeTimeOnly"
67923
+ | "esriFieldTypeTimestampOffset", domainOptions?: DomainOptions, requestOptions?: RequestOptions): Promise<GraphDataModelSingletonOperationResult>;
67851
67924
  /**
67852
67925
  * Adds a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-FieldIndex.html field index} for a particular property on an
67853
67926
  * entity type or relationship type in a graph.
@@ -67893,6 +67966,7 @@ declare namespace __esri {
67893
67966
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraphService.html#executeApplyEdits Read more...}
67894
67967
  */
67895
67968
  executeApplyEdits(graph: KnowledgeGraph, edits: GraphApplyEdits, requestOptions?: RequestOptions): Promise<GraphApplyEditsResult>;
67969
+ executeDeleteDomain(graph: KnowledgeGraph, domainName: string, requestOptions?: RequestOptions): Promise<GraphDataModelSingletonOperationResult>;
67896
67970
  /**
67897
67971
  * Deletes the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-FieldIndex.html field index} for a particular property on an
67898
67972
  * entity type or relationship type in a graph.
@@ -67987,6 +68061,23 @@ declare namespace __esri {
67987
68061
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraphService.html#executeSearchStreaming Read more...}
67988
68062
  */
67989
68063
  executeSearchStreaming(graph: KnowledgeGraph, searchArguments: GraphSearchStreaming, requestOptions?: RequestOptions): Promise<GraphQueryStreamingResult>;
68064
+ executeUpdateDomain(graph: KnowledgeGraph, updatedDomain: RangeDomain | CodedValueDomain, fieldType: | "esriFieldTypeSmallInteger"
68065
+ | "esriFieldTypeInteger"
68066
+ | "esriFieldTypeSingle"
68067
+ | "esriFieldTypeDouble"
68068
+ | "esriFieldTypeString"
68069
+ | "esriFieldTypeDate"
68070
+ | "esriFieldTypeOID"
68071
+ | "esriFieldTypeGeometry"
68072
+ | "esriFieldTypeBlob"
68073
+ | "esriFieldTypeRaster"
68074
+ | "esriFieldTypeGUID"
68075
+ | "esriFieldTypeGlobalID"
68076
+ | "esriFieldTypeXML"
68077
+ | "esriFieldTypeBigInteger"
68078
+ | "esriFieldTypeDateOnly"
68079
+ | "esriFieldTypeTimeOnly"
68080
+ | "esriFieldTypeTimestampOffset", domainOptions?: DomainOptions, requestOptions?: RequestOptions): Promise<GraphDataModelSingletonOperationResult>;
67990
68081
  /**
67991
68082
  * Update a {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-GraphProperty.html GraphProperty} for a particular entity type or relationship type in the graph.
67992
68083
  *
@@ -68141,6 +68232,22 @@ declare namespace __esri {
68141
68232
  countWaypointsExpansionQueries?: number;
68142
68233
  }
68143
68234
 
68235
+ /**
68236
+ * Options for adding or updating a domain on a knowledge graph service.
68237
+ *
68238
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraphService.html#DomainOptions Read more...}
68239
+ */
68240
+ export interface DomainOptions {
68241
+ splitPolicy: | "esriSplitPolicyTypeDefaultValue"
68242
+ | "esriSplitPolicyType_UNSPECIFIED"
68243
+ | "esriSplitPolicyTypeGeometryRatio"
68244
+ | "esriSplitPolicyTypeDuplicate";
68245
+ mergePolicy: | "esriMergePolicyTypeDefaultValue"
68246
+ | "esriMergePolicyType_UNSPECIFIED"
68247
+ | "esriMergePolicyTypeSumValues"
68248
+ | "esriMergePolicyTypeAreaWeighted";
68249
+ }
68250
+
68144
68251
  export interface knowledgeGraphServiceExecuteAddNamedTypesNamedTypes {
68145
68252
  newEntityTypes: EntityType[];
68146
68253
  newRelationshipTypes: RelationshipType[];
@@ -68166,6 +68273,7 @@ declare namespace __esri {
68166
68273
  editable?: boolean;
68167
68274
  required?: boolean;
68168
68275
  defaultVisibility?: boolean;
68276
+ domain?: any;
68169
68277
  defaultValue?: any;
68170
68278
  }
68171
68279
 
package/kernel.js CHANGED
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import has from"./core/has.js";import{addQueryParameter as o}from"./core/urlUtils.js";export{buildDate,commitHash as revision}from"./support/revision.js";Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");const e="5.0";let s,r=e;function i(o){s=o}function t(e){const r=s?.findCredential(e);return r?.token?o(e,"token",r.token):e}r="5.0.0-next.35",has("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),has("host-webworker");export{t as addTokenParameter,r as fullVersion,s as id,i as setId,e as version};
5
+ import has from"./core/has.js";import{addQueryParameter as o}from"./core/urlUtils.js";export{buildDate,commitHash as revision}from"./support/revision.js";Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");const e="5.0";let s,r=e;function i(o){s=o}function t(e){const r=s?.findCredential(e);return r?.token?o(e,"token",r.token):e}r="5.0.0-next.36",has("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),has("host-webworker");export{t as addTokenParameter,r as fullVersion,s as id,i as setId,e as version};
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as e}from"tslib";import t from"../request.js";import i from"../core/Error.js";import has from"../core/has.js";import r from"../core/Logger.js";import{MultiOriginJSONMixin as s}from"../core/MultiOriginJSONSupport.js";import{throwIfAbortError as o}from"../core/promiseUtils.js";import{property as a,subclass as l}from"../core/accessorSupport/decorators.js";import n from"../geometry/Extent.js";import p from"../geometry/SpatialReference.js";import m from"./Layer.js";import{APIKeyMixin as u}from"./mixins/APIKeyMixin.js";import{ArcGISService as y}from"./mixins/ArcGISService.js";import{CustomParametersMixin as c}from"./mixins/CustomParametersMixin.js";import{OperationalLayer as f}from"./mixins/OperationalLayer.js";import{PortalLayer as h}from"./mixins/PortalLayer.js";import{ScaleRangeLayer as d}from"./mixins/ScaleRangeLayer.js";import{url as S,elevationInfo as x}from"./support/commonProperties.js";import{hasEsriCrs as v,initFullExtent as g}from"./support/tiles3DUtils.js";import{logInvalidElevationInfoWarning as j,elevationModeRequiredMessage as w,featureExpressionUnsupportedMessage as E}from"../support/elevationInfoUtils.js";let R=class extends(y(f(h(d(s(c(u(m)))))))){constructor(e){super(e),this.operationalLayerType="GaussianSplatLayer",this.type="gaussian-splat",this.opacity=1,this.minScale=0,this.maxScale=0,this.url=null,this.rootTilesetJSON=null,this.fullExtent=new n(-180,-90,180,90,this.spatialReference),this.spatialReference=new p({wkid:4326,vcsWkid:115700}),this.esriCrsSpatialReference=null,this.esriCrsFullExtent=null}get supportedSpatialReferences(){return this.initialized&&this.esriCrsSpatialReference?[this.spatialReference,this.esriCrsSpatialReference]:[this.spatialReference]}get fullExtents(){return this.initialized&&this.esriCrsFullExtent?[this.fullExtent,this.esriCrsFullExtent]:[this.fullExtent]}set elevationInfo(e){null!=e&&"absolute-height"!==e.mode||this._set("elevationInfo",e),this._validateElevationInfo(e)}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}async _doLoad(e){const r=null!=e?e.signal:null;if(!has("enable-feature:gaussianSplatLayer"))throw new i("GaussianSplatLayer-init:not-supported","This layer is currently not supported.");try{await this.loadFromPortal({supportedTypes:["3DTiles Service"],validateItem:e=>{if(e.typeKeywords?.includes("GaussianSplat"))return!0;throw new i("portal:invalid-layer-item-type","Invalid layer item, expected '${expectedType}' ",{expectedType:"3DTiles Service"})}},e)}catch(s){o(s)}if(this.url){const e=t(this.url,{query:{...this.customParameters,token:this.apiKey},responseType:"json",signal:r}).then(e=>{this.rootTilesetJSON=e.data;const t=v(this.rootTilesetJSON);this.fullExtent=g(this.rootTilesetJSON,!1),this.spatialReference=this.fullExtent.spatialReference,t&&(this.esriCrsFullExtent=g(this.rootTilesetJSON,!0),this.esriCrsSpatialReference=this.esriCrsFullExtent.spatialReference)},e=>{o(e)});await e}}_validateElevationInfo(e){const t="Gaussian Splat layers";j(r.getLogger(this),w(t,"absolute-height",e)),j(r.getLogger(this),E(t,e))}};e([a({type:["GaussianSplatLayer"]})],R.prototype,"operationalLayerType",void 0),e([a({readOnly:!0})],R.prototype,"type",void 0),e([a({readOnly:!0,json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}}})],R.prototype,"opacity",void 0),e([a({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:!1,write:!1}}}})],R.prototype,"minScale",void 0),e([a({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:!1,write:!1}}}})],R.prototype,"maxScale",void 0),e([a(S)],R.prototype,"url",void 0),e([a({type:n})],R.prototype,"fullExtent",void 0),e([a({type:p})],R.prototype,"spatialReference",void 0),e([a({readOnly:!0})],R.prototype,"supportedSpatialReferences",null),e([a({type:[n]})],R.prototype,"fullExtents",null),e([a({type:["show","hide"]})],R.prototype,"listMode",void 0),e([a(x)],R.prototype,"elevationInfo",null),R=e([l("esri.layers.GaussianSplatLayer")],R);const L=R;export{L as default};
5
+ import{__decorate as e}from"tslib";import t from"../request.js";import i from"../core/Error.js";import r from"../core/Logger.js";import{MultiOriginJSONMixin as s}from"../core/MultiOriginJSONSupport.js";import{throwIfAbortError as o}from"../core/promiseUtils.js";import{property as a,subclass as l}from"../core/accessorSupport/decorators.js";import n from"../geometry/Extent.js";import p from"../geometry/SpatialReference.js";import m from"./Layer.js";import{APIKeyMixin as c}from"./mixins/APIKeyMixin.js";import{ArcGISService as u}from"./mixins/ArcGISService.js";import{CustomParametersMixin as y}from"./mixins/CustomParametersMixin.js";import{OperationalLayer as f}from"./mixins/OperationalLayer.js";import{PortalLayer as h}from"./mixins/PortalLayer.js";import{ScaleRangeLayer as d}from"./mixins/ScaleRangeLayer.js";import{url as S,elevationInfo as x}from"./support/commonProperties.js";import{hasEsriCrs as v,initFullExtent as g}from"./support/tiles3DUtils.js";import{logInvalidElevationInfoWarning as j,elevationModeRequiredMessage as w,featureExpressionUnsupportedMessage as E}from"../support/elevationInfoUtils.js";let R=class extends(u(f(h(d(s(y(c(m)))))))){constructor(e){super(e),this.operationalLayerType="GaussianSplatLayer",this.type="gaussian-splat",this.opacity=1,this.minScale=0,this.maxScale=0,this.url=null,this.rootTilesetJSON=null,this.fullExtent=new n(-180,-90,180,90,this.spatialReference),this.spatialReference=new p({wkid:4326,vcsWkid:115700}),this.esriCrsSpatialReference=null,this.esriCrsFullExtent=null}get supportedSpatialReferences(){return this.initialized&&this.esriCrsSpatialReference?[this.spatialReference,this.esriCrsSpatialReference]:[this.spatialReference]}get fullExtents(){return this.initialized&&this.esriCrsFullExtent?[this.fullExtent,this.esriCrsFullExtent]:[this.fullExtent]}set elevationInfo(e){null!=e&&"absolute-height"!==e.mode||this._set("elevationInfo",e),this._validateElevationInfo(e)}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}async _doLoad(e){const r=null!=e?e.signal:null;try{await this.loadFromPortal({supportedTypes:["3DTiles Service"],validateItem:e=>{if(e.typeKeywords?.includes("GaussianSplat"))return!0;throw new i("portal:invalid-layer-item-type","Invalid layer item, expected '${expectedType}' ",{expectedType:"3DTiles Service"})}},e)}catch(s){o(s)}if(this.url){const e=t(this.url,{query:{...this.customParameters,token:this.apiKey},responseType:"json",signal:r}).then(e=>{this.rootTilesetJSON=e.data;const t=v(this.rootTilesetJSON);this.fullExtent=g(this.rootTilesetJSON,!1),this.spatialReference=this.fullExtent.spatialReference,t&&(this.esriCrsFullExtent=g(this.rootTilesetJSON,!0),this.esriCrsSpatialReference=this.esriCrsFullExtent.spatialReference)},e=>{o(e)});await e}}_validateElevationInfo(e){const t="Gaussian Splat layers";j(r.getLogger(this),w(t,"absolute-height",e)),j(r.getLogger(this),E(t,e))}};e([a({type:["GaussianSplatLayer"]})],R.prototype,"operationalLayerType",void 0),e([a({readOnly:!0})],R.prototype,"type",void 0),e([a({readOnly:!0,json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}}})],R.prototype,"opacity",void 0),e([a({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:!1,write:!1}}}})],R.prototype,"minScale",void 0),e([a({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:!1,write:!1}}}})],R.prototype,"maxScale",void 0),e([a(S)],R.prototype,"url",void 0),e([a({type:n})],R.prototype,"fullExtent",void 0),e([a({type:p})],R.prototype,"spatialReference",void 0),e([a({readOnly:!0})],R.prototype,"supportedSpatialReferences",null),e([a({type:[n]})],R.prototype,"fullExtents",null),e([a({type:["show","hide"]})],R.prototype,"listMode",void 0),e([a(x)],R.prototype,"elevationInfo",null),R=e([l("esri.layers.GaussianSplatLayer")],R);const L=R;export{L as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as e}from"tslib";import t from"../request.js";import r from"../core/Error.js";import has from"../core/has.js";import o from"../core/Logger.js";import{MultiOriginJSONMixin as i}from"../core/MultiOriginJSONSupport.js";import{throwIfAbortError as s}from"../core/promiseUtils.js";import{on as a,sync as n}from"../core/reactiveUtils.js";import{property as l,subclass as p}from"../core/accessorSupport/decorators.js";import{persistable as m}from"../core/accessorSupport/decorators/persistable.js";import d from"../geometry/Extent.js";import u from"../geometry/SpatialReference.js";import c from"./Layer.js";import{APIKeyMixin as h}from"./mixins/APIKeyMixin.js";import{ArcGISService as f}from"./mixins/ArcGISService.js";import{CustomParametersMixin as y}from"./mixins/CustomParametersMixin.js";import{OperationalLayer as g}from"./mixins/OperationalLayer.js";import{PortalLayer as _}from"./mixins/PortalLayer.js";import{ScaleRangeLayer as S}from"./mixins/ScaleRangeLayer.js";import{elevationInfo as j,url as T}from"./support/commonProperties.js";import v from"./support/SceneModifications.js";import{initFullExtent as w}from"./support/tiles3DUtils.js";import b from"../portal/Portal.js";import{logInvalidElevationInfoWarning as x,elevationModeRequiredMessage as L,featureExpressionUnsupportedMessage as P}from"../support/elevationInfoUtils.js";import{f as I}from"../chunks/persistableUrlUtils.js";import{isBasemap as k}from"../support/userTypeGuards/isBasemap.js";import{reader as R}from"../core/accessorSupport/decorators/reader.js";let U=class extends(f(g(_(S(i(y(h(c)))))))){readModifications(e,t,r){this._modificationsSource={url:I(e,r),context:r}}initialize(){this.addHandles(a(()=>this.modifications,"after-changes",()=>this.modifications=this.modifications,n))}constructor(e){super(e),this.operationalLayerType="IntegratedMesh3DTilesLayer",this.modifications=null,this._modificationsSource=null,this.spatialReference=new u({wkid:4326,vcsWkid:115700}),this.fullExtent=new d(-180,-90,180,90,this.spatialReference),this.url=null,this.type="integrated-mesh-3dtiles",this.path=null,this.minScale=0,this.maxScale=0,this._rootTilesetJSON=null,this._rootTileset=null,this._key=null,this._session=null,this._rootRequestPromise=null}set elevationInfo(e){null!=e&&"absolute-height"!==e.mode||this._set("elevationInfo",e),this._validateElevationInfo(e)}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}get rootTilesetJSON(){return this._rootTilesetJSON}get rootTileset(){return this._rootTileset}get key(){return this._key}get session(){return this._session}_findSessionParameter(e){const t=[e];for(;t?.length>0;){const e=t.pop();if(!e)return;for(const[o,i]of Object.entries(e)){if("uri"===o)try{const e=new URL("https://tmp"+i).searchParams.get("session");if(e)return e}catch(r){}"object"==typeof i&&null!==i&&t.push(i)}}return null}async requestRootAndSession(e){const i=(e,t)=>new r("3dtiles-init:"+e,t);return this._rootRequestPromise||(this._rootRequestPromise=new Promise((r,a)=>{this.url||a(i("url-missing","Layer url missing")),this._key=this.customParameters?this.customParameters.key:null;new Promise((e,r)=>{if(this.replacesTerrain&&!this._key){const o=this.portalItem?.portal||this.parent?.portalItem?.portal||b.getDefault();o.signIn().then(()=>{o.g3dTilesEnabled?t(o.restUrl+"/portals/self/modules/g3dtiles",{responseType:"json",query:{f:"json"}}).then(t=>{this._key=t.data.keyString,e()},()=>r(i("g3dtiles-key-error","Error fetching Google 3D Tiles key from portal"))):r(i("g3dTilesEnabled-false","Google 3D Tiles are not enabled on Portal "+o.url))},()=>r(i("sign-in-failed","Error signing in to Portal")))}else e()}).then(()=>{t(this.url,{query:this._key?{key:this._key,token:this.apiKey}:{token:this.apiKey},responseType:"array-buffer",signal:e}).then(e=>{try{this._rootTilesetJSON=JSON.parse((new TextDecoder).decode(e.data))}catch(t){return void a(i("root-parse-failed","Error parsing root tile, details: "+t))}this._rootTilesetJSON?(this._session=this._findSessionParameter(this._rootTilesetJSON),this._rootTileset=e.data,this.fullExtent=w(this._rootTilesetJSON),r(),this._rootRequestPromise=null):a(i("root-is-null","Root tile is null."))},e=>{s(e),a(i("root-load-failed","Error loading root tile")),this._rootRequestPromise=null,o.getLogger("IntegratedMesh3DTilesLayer").error("Layer loading failed",e)})},e=>a(e))})),this._rootRequestPromise}async _doLoad(e){const t=null!=e?e.signal:null;if(this._isUsedAsGroundLayer&&!has("enable-feature:basemap-groundlayers"))throw new r("3dtiles-init:not-supported-in-groundlayers","Layer is not supported in basemap.");try{await this.loadFromPortal({supportedTypes:["3DTiles Service"],validateItem:e=>{if(e.typeKeywords?.includes("IntegratedMesh"))return!0;throw new r("portal:invalid-layer-item-type","Invalid layer item, expected '${expectedType}' ",{expectedType:"3DTiles Service containing IntegratedMesh"})}},e)}catch(o){s(o)}if(null!=this._modificationsSource){const t=await v.fromUrl(this._modificationsSource.url,this.spatialReference,e);this.setAtOrigin("modifications",t,this._modificationsSource.context.origin),this._modificationsSource=null}await this.requestRootAndSession(t)}beforeSave(){if(null!=this._modificationsSource)return this.load().then(()=>{},()=>{})}get hasAttributionData(){return!1}_validateElevationInfo(e){const t="Integrated mesh 3d tiles layers";x(o.getLogger(this),L(t,"absolute-height",e)),x(o.getLogger(this),P(t,e))}get replacesTerrain(){return!!has("enable-feature:basemap-groundlayers")&&this.hasGoogleUrl&&this._isUsedAsGroundLayer}get _isUsedAsGroundLayer(){return k(this.parent)}get hasGoogleUrl(){return!!this.url?.match(/.+\.googleapis.com/)}};e([l({type:["IntegratedMesh3DTilesLayer"]})],U.prototype,"operationalLayerType",void 0),e([l({type:v,clonable:e=>e.clone()}),m({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],U.prototype,"modifications",void 0),e([R(["web-scene","portal-item"],"modifications")],U.prototype,"readModifications",null),e([l({type:u})],U.prototype,"spatialReference",void 0),e([l({type:d})],U.prototype,"fullExtent",void 0),e([l(j)],U.prototype,"elevationInfo",null),e([l({type:["show","hide"]})],U.prototype,"listMode",void 0),e([l(T)],U.prototype,"url",void 0),e([l({readOnly:!0})],U.prototype,"type",void 0),e([l({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],U.prototype,"path",void 0),e([l({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:!1,write:!1}}}})],U.prototype,"minScale",void 0),e([l({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:!1,write:!1}}}})],U.prototype,"maxScale",void 0),e([l({readOnly:!0})],U.prototype,"hasAttributionData",null),e([l()],U.prototype,"replacesTerrain",null),e([l()],U.prototype,"_isUsedAsGroundLayer",null),e([l()],U.prototype,"hasGoogleUrl",null),U=e([p("esri.layers.IntegratedMesh3DTilesLayer")],U);const D=U;export{D as default};
5
+ import{__decorate as e}from"tslib";import t from"../request.js";import r from"../core/Error.js";import has from"../core/has.js";import o from"../core/Logger.js";import{MultiOriginJSONMixin as i}from"../core/MultiOriginJSONSupport.js";import{throwIfAbortError as s}from"../core/promiseUtils.js";import{on as a,sync as n}from"../core/reactiveUtils.js";import{property as l,subclass as p}from"../core/accessorSupport/decorators.js";import{persistable as m}from"../core/accessorSupport/decorators/persistable.js";import d from"../geometry/Extent.js";import u from"../geometry/SpatialReference.js";import c from"./Layer.js";import{APIKeyMixin as h}from"./mixins/APIKeyMixin.js";import{ArcGISService as f}from"./mixins/ArcGISService.js";import{CustomParametersMixin as y}from"./mixins/CustomParametersMixin.js";import{OperationalLayer as g}from"./mixins/OperationalLayer.js";import{PortalLayer as S}from"./mixins/PortalLayer.js";import{ScaleRangeLayer as _}from"./mixins/ScaleRangeLayer.js";import{elevationInfo as j,url as T}from"./support/commonProperties.js";import v from"./support/SceneModifications.js";import{initFullExtent as w}from"./support/tiles3DUtils.js";import b from"../portal/Portal.js";import{logInvalidElevationInfoWarning as x,elevationModeRequiredMessage as L,featureExpressionUnsupportedMessage as P}from"../support/elevationInfoUtils.js";import{f as I}from"../chunks/persistableUrlUtils.js";import{isBasemap as k}from"../support/userTypeGuards/isBasemap.js";import{reader as R}from"../core/accessorSupport/decorators/reader.js";let U=class extends(f(g(S(_(i(y(h(c)))))))){readModifications(e,t,r){this._modificationsSource={url:I(e,r),context:r}}initialize(){this.addHandles(a(()=>this.modifications,"after-changes",()=>this.modifications=this.modifications,n))}constructor(e){super(e),this.operationalLayerType="IntegratedMesh3DTilesLayer",this.modifications=null,this._modificationsSource=null,this.spatialReference=new u({wkid:4326,vcsWkid:115700}),this.fullExtent=new d(-180,-90,180,90,this.spatialReference),this.url=null,this.type="integrated-mesh-3dtiles",this.path=null,this.minScale=0,this.maxScale=0,this._rootTilesetJSON=null,this._rootTileset=null,this._key=null,this._session=null,this._rootRequestPromise=null}set elevationInfo(e){null!=e&&"absolute-height"!==e.mode||this._set("elevationInfo",e),this._validateElevationInfo(e)}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}get rootTilesetJSON(){return this._rootTilesetJSON}get rootTileset(){return this._rootTileset}get key(){return this._key}get session(){return this._session}_findSessionParameter(e){const t=[e];for(;t?.length>0;){const e=t.pop();if(!e)return;for(const[o,i]of Object.entries(e)){if("uri"===o)try{const e=new URL("https://tmp"+i).searchParams.get("session");if(e)return e}catch(r){}"object"==typeof i&&null!==i&&t.push(i)}}return null}async requestRootAndSession(e){const i=(e,t)=>new r("3dtiles-init:"+e,t);return this._rootRequestPromise||(this._rootRequestPromise=new Promise((r,a)=>{this.url||a(i("url-missing","Layer url missing")),this._key=this.customParameters?this.customParameters.key:null;new Promise((e,r)=>{if(this.replacesTerrain&&!this._key){const o=this.portalItem?.portal||this.parent?.portalItem?.portal||b.getDefault();o.signIn().then(()=>{o.g3dTilesEnabled?t(o.restUrl+"/portals/self/modules/g3dtiles",{responseType:"json",query:{f:"json"}}).then(t=>{this._key=t.data.keyString,e()},()=>r(i("g3dtiles-key-error","Error fetching Google 3D Tiles key from portal"))):r(i("g3dTilesEnabled-false","Google 3D Tiles are not enabled on Portal "+o.url))},()=>r(i("sign-in-failed","Error signing in to Portal")))}else e()}).then(()=>{t(this.url,{query:this._key?{key:this._key,token:this.apiKey}:{token:this.apiKey},responseType:"array-buffer",signal:e}).then(e=>{try{this._rootTilesetJSON=JSON.parse((new TextDecoder).decode(e.data))}catch(t){return void a(i("root-parse-failed","Error parsing root tile, details: "+t))}this._rootTilesetJSON?(this._session=this._findSessionParameter(this._rootTilesetJSON),this._rootTileset=e.data,this.fullExtent=w(this._rootTilesetJSON),r(),this._rootRequestPromise=null):a(i("root-is-null","Root tile is null."))},e=>{s(e),a(i("root-load-failed","Error loading root tile")),this._rootRequestPromise=null,o.getLogger("IntegratedMesh3DTilesLayer").error("Layer loading failed",e)})},e=>a(e))})),this._rootRequestPromise}async _doLoad(e){const t=null!=e?e.signal:null;if(this.isUsedAsGroundLayer&&!has("enable-feature:basemap-groundlayers"))throw new r("3dtiles-init:not-supported-in-groundlayers","Layer is not supported in basemap.");try{await this.loadFromPortal({supportedTypes:["3DTiles Service"],validateItem:e=>{if(e.typeKeywords?.includes("IntegratedMesh"))return!0;throw new r("portal:invalid-layer-item-type","Invalid layer item, expected '${expectedType}' ",{expectedType:"3DTiles Service containing IntegratedMesh"})}},e)}catch(o){s(o)}if(null!=this._modificationsSource){const t=await v.fromUrl(this._modificationsSource.url,this.spatialReference,e);this.setAtOrigin("modifications",t,this._modificationsSource.context.origin),this._modificationsSource=null}await this.requestRootAndSession(t)}beforeSave(){if(null!=this._modificationsSource)return this.load().then(()=>{},()=>{})}get hasAttributionData(){return!1}_validateElevationInfo(e){const t="Integrated mesh 3d tiles layers";x(o.getLogger(this),L(t,"absolute-height",e)),x(o.getLogger(this),P(t,e))}get replacesTerrain(){return!!has("enable-feature:basemap-groundlayers")&&this.hasGoogleUrl&&this.isUsedAsGroundLayer}get isUsedAsGroundLayer(){return k(this.parent)}get hasGoogleUrl(){return!!this.url?.match(/.+\.googleapis.com/)}};e([l({type:["IntegratedMesh3DTilesLayer"]})],U.prototype,"operationalLayerType",void 0),e([l({type:v,clonable:e=>e.clone()}),m({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],U.prototype,"modifications",void 0),e([R(["web-scene","portal-item"],"modifications")],U.prototype,"readModifications",null),e([l({type:u})],U.prototype,"spatialReference",void 0),e([l({type:d})],U.prototype,"fullExtent",void 0),e([l(j)],U.prototype,"elevationInfo",null),e([l({type:["show","hide"]})],U.prototype,"listMode",void 0),e([l(T)],U.prototype,"url",void 0),e([l({readOnly:!0})],U.prototype,"type",void 0),e([l({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],U.prototype,"path",void 0),e([l({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:!1,write:!1}}}})],U.prototype,"minScale",void 0),e([l({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:!1,write:!1}}}})],U.prototype,"maxScale",void 0),e([l({readOnly:!0})],U.prototype,"hasAttributionData",null),e([l()],U.prototype,"replacesTerrain",null),e([l()],U.prototype,"isUsedAsGroundLayer",null),e([l()],U.prototype,"hasGoogleUrl",null),U=e([p("esri.layers.IntegratedMesh3DTilesLayer")],U);const D=U;export{D as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as e}from"tslib";import{ClonableMixin as t}from"../core/Clonable.js";import r from"../core/Error.js";import o from"../core/Logger.js";import{MultiOriginJSONMixin as i}from"../core/MultiOriginJSONSupport.js";import{throwIfAbortError as s}from"../core/promiseUtils.js";import{on as n,sync as a}from"../core/reactiveUtils.js";import{property as p,subclass as l}from"../core/accessorSupport/decorators.js";import{persistable as d}from"../core/accessorSupport/decorators/persistable.js";import m from"./Layer.js";import{APIKeyMixin as c}from"./mixins/APIKeyMixin.js";import{ArcGISService as y}from"./mixins/ArcGISService.js";import{CustomParametersMixin as h}from"./mixins/CustomParametersMixin.js";import{OperationalLayer as f}from"./mixins/OperationalLayer.js";import{PortalLayer as u}from"./mixins/PortalLayer.js";import{ScaleRangeLayer as v}from"./mixins/ScaleRangeLayer.js";import{SceneService as g}from"./mixins/SceneService.js";import{elevationInfo as S}from"./support/commonProperties.js";import{I3SNodePageDefinition as j,I3SMaterialDefinition as T,I3STextureSetDefinition as _,I3SGeometryDefinition as w}from"./support/I3SLayerDefinitions.js";import L from"./support/SceneModifications.js";import{logInvalidElevationInfoWarning as x,elevationModeRequiredMessage as I,featureExpressionUnsupportedMessage as b}from"../support/elevationInfoUtils.js";import{f as M}from"../chunks/persistableUrlUtils.js";import{isBasemap as O}from"../support/userTypeGuards/isBasemap.js";import{reader as U}from"../core/accessorSupport/decorators/reader.js";let A=class extends(g(y(f(u(v(i(h(c(t(m)))))))))){constructor(...e){super(...e),this.geometryType="mesh",this.operationalLayerType="IntegratedMeshLayer",this.type="integrated-mesh",this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.profile="mesh-pyramids",this.modifications=null,this.path=null,this.definitionExpression=null,this._canReplaceTerrain=!1}initialize(){this.addHandles(n(()=>this.modifications,"after-changes",()=>this.modifications=this.modifications,a))}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}readModifications(e,t,r){this._modificationsSource={url:M(e,r),context:r}}set elevationInfo(e){null!=e&&"absolute-height"!==e.mode||this._set("elevationInfo",e),this._validateElevationInfo(e)}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}async _doLoad(e){const t=e?.signal;try{await this.loadFromPortal({supportedTypes:["Scene Service"]},e)}catch(r){s(r)}if(await this._fetchService(t),null!=this._modificationsSource){const t=await L.fromUrl(this._modificationsSource.url,this.spatialReference,e);this.setAtOrigin("modifications",t,this._modificationsSource.context.origin),this._modificationsSource=null}await this._fetchIndexAndUpdateExtent(this.nodePages,t)}beforeSave(){if(null!=this._modificationsSource)return this.load().then(()=>{},()=>{})}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"};return this._debouncedSaveOperations(0,e)}validateLayer(e){if(e.layerType&&"IntegratedMesh"!==e.layerType)throw new r("integrated-mesh-layer:layer-type-not-supported","IntegratedMeshLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new r("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"});if(this.version.major>1)throw new r("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"})}_getTypeKeywords(){return["IntegratedMeshLayer"]}_validateElevationInfo(e){const t="Integrated mesh layers";x(o.getLogger(this),I(t,"absolute-height",e)),x(o.getLogger(this),b(t,e))}get replacesTerrain(){return this._canReplaceTerrain&&this._isUsedAsGroundLayer}get _isUsedAsGroundLayer(){return O(this.parent)}};e([p({type:String,readOnly:!0})],A.prototype,"geometryType",void 0),e([p({type:["show","hide"]})],A.prototype,"listMode",void 0),e([p({type:["IntegratedMeshLayer"]})],A.prototype,"operationalLayerType",void 0),e([p({json:{read:!1},readOnly:!0})],A.prototype,"type",void 0),e([p({type:j,readOnly:!0,clonable:!1})],A.prototype,"nodePages",void 0),e([p({type:[T],readOnly:!0,clonable:!1})],A.prototype,"materialDefinitions",void 0),e([p({type:[_],readOnly:!0,clonable:!1})],A.prototype,"textureSetDefinitions",void 0),e([p({type:[w],readOnly:!0,clonable:!1})],A.prototype,"geometryDefinitions",void 0),e([p({readOnly:!0})],A.prototype,"serviceUpdateTimeStamp",void 0),e([p({type:L,clonable:e=>e?.clone()??e}),d({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],A.prototype,"modifications",void 0),e([U(["web-scene","portal-item"],"modifications")],A.prototype,"readModifications",null),e([p(S)],A.prototype,"elevationInfo",null),e([p({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],A.prototype,"path",void 0),e([p()],A.prototype,"replacesTerrain",null),e([p()],A.prototype,"_isUsedAsGroundLayer",null),e([p()],A.prototype,"_canReplaceTerrain",void 0),A=e([l("esri.layers.IntegratedMeshLayer")],A);const P=A;export{P as default};
5
+ import{__decorate as e}from"tslib";import{ClonableMixin as t}from"../core/Clonable.js";import o from"../core/Error.js";import i from"../core/Logger.js";import{MultiOriginJSONMixin as r}from"../core/MultiOriginJSONSupport.js";import{throwIfAbortError as s}from"../core/promiseUtils.js";import{on as n,sync as a}from"../core/reactiveUtils.js";import{property as p,subclass as l}from"../core/accessorSupport/decorators.js";import{persistable as m}from"../core/accessorSupport/decorators/persistable.js";import d from"./Layer.js";import{APIKeyMixin as c}from"./mixins/APIKeyMixin.js";import{ArcGISService as y}from"./mixins/ArcGISService.js";import{CustomParametersMixin as h}from"./mixins/CustomParametersMixin.js";import{OperationalLayer as f}from"./mixins/OperationalLayer.js";import{PortalLayer as u}from"./mixins/PortalLayer.js";import{ScaleRangeLayer as v}from"./mixins/ScaleRangeLayer.js";import{SceneService as g}from"./mixins/SceneService.js";import{elevationInfo as S}from"./support/commonProperties.js";import{I3SNodePageDefinition as j,I3SMaterialDefinition as w,I3STextureSetDefinition as x,I3SGeometryDefinition as L}from"./support/I3SLayerDefinitions.js";import I from"./support/SceneModifications.js";import{logInvalidElevationInfoWarning as T,elevationModeRequiredMessage as _,featureExpressionUnsupportedMessage as b}from"../support/elevationInfoUtils.js";import{f as M}from"../chunks/persistableUrlUtils.js";import{reader as O}from"../core/accessorSupport/decorators/reader.js";let P=class extends(g(y(f(u(v(r(h(c(t(d)))))))))){constructor(...e){super(...e),this.geometryType="mesh",this.operationalLayerType="IntegratedMeshLayer",this.type="integrated-mesh",this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.profile="mesh-pyramids",this.modifications=null,this.path=null,this.definitionExpression=null}initialize(){this.addHandles(n(()=>this.modifications,"after-changes",()=>this.modifications=this.modifications,a))}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}readModifications(e,t,o){this._modificationsSource={url:M(e,o),context:o}}set elevationInfo(e){null!=e&&"absolute-height"!==e.mode||this._set("elevationInfo",e),this._validateElevationInfo(e)}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}async _doLoad(e){const t=e?.signal;try{await this.loadFromPortal({supportedTypes:["Scene Service"]},e)}catch(o){s(o)}if(await this._fetchService(t),null!=this._modificationsSource){const t=await I.fromUrl(this._modificationsSource.url,this.spatialReference,e);this.setAtOrigin("modifications",t,this._modificationsSource.context.origin),this._modificationsSource=null}await this._fetchIndexAndUpdateExtent(this.nodePages,t)}beforeSave(){if(null!=this._modificationsSource)return this.load().then(()=>{},()=>{})}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"};return this._debouncedSaveOperations(0,e)}validateLayer(e){if(e.layerType&&"IntegratedMesh"!==e.layerType)throw new o("integrated-mesh-layer:layer-type-not-supported","IntegratedMeshLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new o("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"});if(this.version.major>1)throw new o("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"})}_getTypeKeywords(){return["IntegratedMeshLayer"]}_validateElevationInfo(e){const t="Integrated mesh layers";T(i.getLogger(this),_(t,"absolute-height",e)),T(i.getLogger(this),b(t,e))}};e([p({type:String,readOnly:!0})],P.prototype,"geometryType",void 0),e([p({type:["show","hide"]})],P.prototype,"listMode",void 0),e([p({type:["IntegratedMeshLayer"]})],P.prototype,"operationalLayerType",void 0),e([p({json:{read:!1},readOnly:!0})],P.prototype,"type",void 0),e([p({type:j,readOnly:!0,clonable:!1})],P.prototype,"nodePages",void 0),e([p({type:[w],readOnly:!0,clonable:!1})],P.prototype,"materialDefinitions",void 0),e([p({type:[x],readOnly:!0,clonable:!1})],P.prototype,"textureSetDefinitions",void 0),e([p({type:[L],readOnly:!0,clonable:!1})],P.prototype,"geometryDefinitions",void 0),e([p({readOnly:!0})],P.prototype,"serviceUpdateTimeStamp",void 0),e([p({type:I,clonable:e=>e?.clone()??e}),m({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],P.prototype,"modifications",void 0),e([O(["web-scene","portal-item"],"modifications")],P.prototype,"readModifications",null),e([p(S)],P.prototype,"elevationInfo",null),e([p({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],P.prototype,"path",void 0),P=e([l("esri.layers.IntegratedMeshLayer")],P);const U=P;export{U as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/core",
3
- "version": "5.0.0-next.35",
3
+ "version": "5.0.0-next.36",
4
4
  "homepage": "https://js.arcgis.com",
5
5
  "description": "ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API",
6
6
  "keywords": [
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as e}from"tslib";import{JSONSupport as t}from"../../core/JSONSupport.js";import{property as o,subclass as i}from"../../core/accessorSupport/decorators.js";import r from"../../geometry/SpatialReference.js";import p from"./EntityType.js";import s from"./RelationshipType.js";import n from"./SourceTypeValueBehavior.js";let a=class extends t{constructor(e){super(e),this.timestamp=null,this.spatialReference=null,this.strict=null,this.objectIdField=null,this.globalIdField=null,this.arcgisManaged=null,this.identifierInfo=null,this.searchIndexes=[],this.entityTypes=[],this.relationshipTypes=[],this.metaEntityTypes=[],this.provenanceSourceTypeValues=[]}};e([o({type:Date,json:{type:Number,write:{writer:(e,t)=>{t.timestamp=e?.getTime()}}}})],a.prototype,"timestamp",void 0),e([o({type:r,json:{write:!0}})],a.prototype,"spatialReference",void 0),e([o({type:Boolean,json:{write:!0}})],a.prototype,"strict",void 0),e([o({type:String,json:{write:!0}})],a.prototype,"objectIdField",void 0),e([o({type:String,json:{write:!0}})],a.prototype,"globalIdField",void 0),e([o()],a.prototype,"arcgisManaged",void 0),e([o()],a.prototype,"identifierInfo",void 0),e([o()],a.prototype,"searchIndexes",void 0),e([o({type:[p],json:{write:!0}})],a.prototype,"entityTypes",void 0),e([o({type:[s],json:{write:!0}})],a.prototype,"relationshipTypes",void 0),e([o({type:[p],json:{write:!0}})],a.prototype,"metaEntityTypes",void 0),e([o({type:[n],json:{write:!0}})],a.prototype,"provenanceSourceTypeValues",void 0),a=e([i("esri.rest.knowledgeGraph.DataModel")],a);export{a as default};
5
+ import{__decorate as e}from"tslib";import{JSONSupport as t}from"../../core/JSONSupport.js";import{property as o,subclass as i}from"../../core/accessorSupport/decorators.js";import r from"../../geometry/SpatialReference.js";import p from"./EntityType.js";import s from"./RelationshipType.js";import n from"./SourceTypeValueBehavior.js";let a=class extends t{constructor(e){super(e),this.timestamp=null,this.spatialReference=null,this.strict=null,this.objectIdField=null,this.globalIdField=null,this.arcgisManaged=null,this.identifierInfo=null,this.searchIndexes=[],this.entityTypes=[],this.relationshipTypes=[],this.metaEntityTypes=[],this.provenanceSourceTypeValues=[],this.domains=[]}};e([o({type:Date,json:{type:Number,write:{writer:(e,t)=>{t.timestamp=e?.getTime()}}}})],a.prototype,"timestamp",void 0),e([o({type:r,json:{write:!0}})],a.prototype,"spatialReference",void 0),e([o({type:Boolean,json:{write:!0}})],a.prototype,"strict",void 0),e([o({type:String,json:{write:!0}})],a.prototype,"objectIdField",void 0),e([o({type:String,json:{write:!0}})],a.prototype,"globalIdField",void 0),e([o()],a.prototype,"arcgisManaged",void 0),e([o()],a.prototype,"identifierInfo",void 0),e([o()],a.prototype,"searchIndexes",void 0),e([o({type:[p],json:{write:!0}})],a.prototype,"entityTypes",void 0),e([o({type:[s],json:{write:!0}})],a.prototype,"relationshipTypes",void 0),e([o({type:[p],json:{write:!0}})],a.prototype,"metaEntityTypes",void 0),e([o({type:[n],json:{write:!0}})],a.prototype,"provenanceSourceTypeValues",void 0),e([o({json:{write:!0}})],a.prototype,"domains",void 0),a=e([i("esri.rest.knowledgeGraph.DataModel")],a);export{a as default};
@@ -0,0 +1,4 @@
1
+ import "../../interfaces";
2
+
3
+ import GraphDataModelSingletonOperationResult = __esri.GraphDataModelSingletonOperationResult;
4
+ export default GraphDataModelSingletonOperationResult;
@@ -0,0 +1,5 @@
1
+ /*
2
+ All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
+ See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
+ */
5
+ import{__decorate as r}from"tslib";import o from"../../core/Accessor.js";import{property as e,subclass as t}from"../../core/accessorSupport/decorators.js";let s=class extends o{constructor(r){super(r),this.decoderError=null,this.updatedKnowledgeGraph=null}};r([e()],s.prototype,"decoderError",void 0),r([e()],s.prototype,"updatedKnowledgeGraph",void 0),s=r([t("esri.rest.knowledgeGraph.GraphDataModelSingletonOperationResult")],s);const p=s;export{p as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import{__decorate as t}from"tslib";import{JSONSupport as e}from"../../core/JSONSupport.js";import{property as o,subclass as i}from"../../core/accessorSupport/decorators.js";let r=class extends e{constructor(t){super(t),this.name=null,this.alias=null,this.fieldType=null,this.geometryType=null,this.hasM=null,this.hasZ=null,this.nullable=null,this.editable=!0,this.required=!1,this.defaultVisibility=!0,this.systemMaintained=null,this.role="esriGraphPropertyUNSPECIFIED",this.defaultValue=null}};t([o({type:String,json:{write:!0}})],r.prototype,"name",void 0),t([o({type:String,json:{write:!0}})],r.prototype,"alias",void 0),t([o({type:String,json:{write:!0}})],r.prototype,"fieldType",void 0),t([o({type:String,json:{write:!0}})],r.prototype,"geometryType",void 0),t([o({type:Boolean,json:{write:!0}})],r.prototype,"hasM",void 0),t([o({type:Boolean,json:{write:!0}})],r.prototype,"hasZ",void 0),t([o({type:Boolean,json:{write:!0}})],r.prototype,"nullable",void 0),t([o({type:Boolean,json:{write:!0}})],r.prototype,"editable",void 0),t([o({type:Boolean,json:{write:!0}})],r.prototype,"required",void 0),t([o({type:Boolean,json:{write:!0}})],r.prototype,"defaultVisibility",void 0),t([o({type:Boolean,json:{write:!0}})],r.prototype,"systemMaintained",void 0),t([o({type:String,json:{write:!0}})],r.prototype,"role",void 0),t([o({json:{write:!0}})],r.prototype,"defaultValue",void 0),r=t([i("esri.rest.knowledgeGraph.GraphProperty")],r);export{r as default};
5
+ import{__decorate as t}from"tslib";import{JSONSupport as e}from"../../core/JSONSupport.js";import{property as o,subclass as i}from"../../core/accessorSupport/decorators.js";let r=class extends e{constructor(t){super(t),this.name=null,this.alias=null,this.fieldType=null,this.geometryType=null,this.hasM=null,this.hasZ=null,this.nullable=null,this.editable=!0,this.required=!1,this.defaultVisibility=!0,this.systemMaintained=null,this.role="esriGraphPropertyUNSPECIFIED",this.domain=null,this.defaultValue=null}};t([o({type:String,json:{write:!0}})],r.prototype,"name",void 0),t([o({type:String,json:{write:!0}})],r.prototype,"alias",void 0),t([o({type:String,json:{write:!0}})],r.prototype,"fieldType",void 0),t([o({type:String,json:{write:!0}})],r.prototype,"geometryType",void 0),t([o({type:Boolean,json:{write:!0}})],r.prototype,"hasM",void 0),t([o({type:Boolean,json:{write:!0}})],r.prototype,"hasZ",void 0),t([o({type:Boolean,json:{write:!0}})],r.prototype,"nullable",void 0),t([o({type:Boolean,json:{write:!0}})],r.prototype,"editable",void 0),t([o({type:Boolean,json:{write:!0}})],r.prototype,"required",void 0),t([o({type:Boolean,json:{write:!0}})],r.prototype,"defaultVisibility",void 0),t([o({type:Boolean,json:{write:!0}})],r.prototype,"systemMaintained",void 0),t([o({type:String,json:{write:!0}})],r.prototype,"role",void 0),t([o({type:String,json:{write:!0}})],r.prototype,"domain",void 0),t([o({json:{write:!0}})],r.prototype,"defaultValue",void 0),r=t([i("esri.rest.knowledgeGraph.GraphProperty")],r);export{r as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- const e={Regular:0,Provenance:1,Document:2},r={esriFieldTypeSmallInteger:0,esriFieldTypeInteger:1,esriFieldTypeSingle:2,esriFieldTypeDouble:3,esriFieldTypeString:4,esriFieldTypeDate:5,esriFieldTypeOID:6,esriFieldTypeGeometry:7,esriFieldTypeBlob:8,esriFieldTypeRaster:9,esriFieldTypeGUID:10,esriFieldTypeGlobalID:11,esriFieldTypeXML:12,esriFieldTypeBigInteger:13,esriFieldTypeDateOnly:14,esriFieldTypeTimeOnly:15,esriFieldTypeTimestampOffset:16},i={esriGeometryNull:0,esriGeometryPoint:1,esriGeometryMultipoint:2,esriGeometryPolyline:3,esriGeometryPolygon:4,esriGeometryEnvelope:5,esriGeometryAny:7,esriGeometryMultiPatch:9},t={esriMethodHintUNSPECIFIED:0,esriUUIDESRI:1,esriUUIDRFC4122:2},o={esriTypeUNSPECIFIED:0,esriTypeEntity:1,esriTypeRelationship:2,esriTypeBoth:4,esriTypeMetaEntityProvenance:8},p={esriGraphPropertyUNSPECIFIED:0,esriGraphPropertyRegular:1,esriGraphPropertyDocumentName:2,esriGraphPropertyDocumentTitle:3,esriGraphPropertyDocumentUrl:4,esriGraphPropertyDocumentText:5,esriGraphPropertyDocumentKeywords:6,esriGraphPropertyDocumentContentType:7,esriGraphPropertyDocumentMetadata:8,esriGraphPropertyDocumentFileExtension:9,esriGraphPropertyProvenanceInstanceId:10,esriGraphPropertyProvenanceSourceType:11,esriGraphPropertyProvenanceSourceName:12,esriGraphPropertyProvenanceSource:13,esriGraphPropertyProvenanceComment:14,esriGraphPropertyProvenanceTypeName:15,esriGraphPropertyProvenancePropertyName:16},y={esriIdentifierInfoTypeUNSPECIFIED:0,esriIdentifierInfoTypeDatabaseNative:1,esriIdentifierInfoTypeUniformProperty:2};export{r as EsriFieldTypes,i as EsriGeometryTypes,p as EsriGraphPropertyRole,y as EsriIdentifierInfoType,o as EsriNamedTypeCategory,t as EsriUuidMethodHintTypes,e as NamedObjectTypes};
5
+ const e={Regular:0,Provenance:1,Document:2},r={esriFieldTypeSmallInteger:0,esriFieldTypeInteger:1,esriFieldTypeSingle:2,esriFieldTypeDouble:3,esriFieldTypeString:4,esriFieldTypeDate:5,esriFieldTypeOID:6,esriFieldTypeGeometry:7,esriFieldTypeBlob:8,esriFieldTypeRaster:9,esriFieldTypeGUID:10,esriFieldTypeGlobalID:11,esriFieldTypeXML:12,esriFieldTypeBigInteger:13,esriFieldTypeDateOnly:14,esriFieldTypeTimeOnly:15,esriFieldTypeTimestampOffset:16},i={esriGeometryNull:0,esriGeometryPoint:1,esriGeometryMultipoint:2,esriGeometryPolyline:3,esriGeometryPolygon:4,esriGeometryEnvelope:5,esriGeometryAny:7,esriGeometryMultiPatch:9},t={esriMethodHintUNSPECIFIED:0,esriUUIDESRI:1,esriUUIDRFC4122:2},p={esriTypeUNSPECIFIED:0,esriTypeEntity:1,esriTypeRelationship:2,esriTypeBoth:4,esriTypeMetaEntityProvenance:8},o={esriGraphPropertyUNSPECIFIED:0,esriGraphPropertyRegular:1,esriGraphPropertyDocumentName:2,esriGraphPropertyDocumentTitle:3,esriGraphPropertyDocumentUrl:4,esriGraphPropertyDocumentText:5,esriGraphPropertyDocumentKeywords:6,esriGraphPropertyDocumentContentType:7,esriGraphPropertyDocumentMetadata:8,esriGraphPropertyDocumentFileExtension:9,esriGraphPropertyProvenanceInstanceId:10,esriGraphPropertyProvenanceSourceType:11,esriGraphPropertyProvenanceSourceName:12,esriGraphPropertyProvenanceSource:13,esriGraphPropertyProvenanceComment:14,esriGraphPropertyProvenanceTypeName:15,esriGraphPropertyProvenancePropertyName:16},y={esriIdentifierInfoTypeUNSPECIFIED:0,esriIdentifierInfoTypeDatabaseNative:1,esriIdentifierInfoTypeUniformProperty:2},s={unspecified:0,codedValue:1,range:2},n={esriMergePolicyType_UNSPECIFIED:0,esriMergePolicyTypeSumValues:1,esriMergePolicyTypeAreaWeighted:2,esriMergePolicyTypeDefaultValue:3},a={esriSplitPolicyType_UNSPECIFIED:0,esriSplitPolicyTypeGeometryRatio:1,esriSplitPolicyTypeDuplicate:2,esriSplitPolicyTypeDefaultValue:3};export{s as EsriDomainType,r as EsriFieldTypes,i as EsriGeometryTypes,o as EsriGraphPropertyRole,y as EsriIdentifierInfoType,n as EsriMergePolicyType,p as EsriNamedTypeCategory,a as EsriSplitPolicyType,t as EsriUuidMethodHintTypes,e as NamedObjectTypes};
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import e from"../../../core/Error.js";import t from"../../../geometry/Geometry.js";import{geometryToWasm as n}from"./queryToWasmEncodedFactories.js";import{EsriFieldTypes as i,EsriGeometryTypes as r,EsriGraphPropertyRole as a,NamedObjectTypes as o}from"./WasmDataModelWrapperInterfaces.js";function s(t,n){if(!t.typeName)throw new e("knowledge-graph:no-type-name","You must indicate the entity/relationship named object type to apply edits");if(!("originId"in t)){const e=new n.EntityValue;e.deleteLater(),e.type_name=t.typeName;for(const[i,r]of Object.entries(t.properties))e.set_key_value(i,w(r,n));return t.id&&e.set_id(t.id),e}if("originId"in t&&"destinationId"in t){const e=new n.RelationshipValue;e.deleteLater(),e.type_name=t.typeName;for(const[i,r]of Object.entries(t.properties))e.set_key_value(i,w(r,n));return t.id&&e.set_id(t.id),t.originId&&t.destinationId&&e.set_related_entity_ids(t.originId,t.destinationId),e}throw new e("knowledge-graph:applyEdits-encoding-failure","Could not determine the type of a named graph object passed to the encoder")}function l(e){return{xy_resolution:e.xyResolution,x_false_origin:e.xFalseOrigin,y_false_origin:e.yFalseOrigin,z_resolution:e.zResolution,z_false_origin:e.zFalseOrigin,m_resolution:e.mResolution,m_false_origin:e.mFalseOrigin}}function d(e,t){const n=new t.EntityType;return n.deleteLater(),g(e,t,n)}function u(e,t){const n=new t.RelationshipType;n.deleteLater();for(const i of e.endPoints){const e=new t.EndPoint;e.deleteLater(),e.origin_entity_type=i.originEntityType,e.dest_entity_type=i.destinationEntityType,n.add_end_point(e)}return g(e,t,n)}function p(e,t){const n=new t.EntityType;return n.deleteLater(),h(e,n)}function y(e,t){const n=new t.RelationshipType;return n.deleteLater(),h(e,n)}function f(e,t){const n=new t.GraphProperty;return n.deleteLater(),n.name=e.name,n.alias=e.alias??"",n.field_type={value:i[e.fieldType]},n.geometry_type={value:e.geometryType?r[e.geometryType]:r.esriGeometryNull},n.has_m=e.hasM??!1,n.has_z=e.hasZ??!1,n.nullable=e.nullable??!1,n.editable=e.editable,n.required=e.required,n.default_visibility=e.defaultVisibility,n.system_maintained=e.systemMaintained??!1,n.role={value:a[e.role]},n.default_value=w(e.defaultValue,t),n}function c(e,t){const n=new t.GraphProperty;return n.deleteLater(),e.hasOwnProperty("alias")&&(n.alias=e.alias),e.hasOwnProperty("editable")&&(n.editable=e.editable),e.hasOwnProperty("required")&&(n.required=e.required),e.hasOwnProperty("defaultVisibility")&&(n.default_visibility=e.defaultVisibility),e.hasOwnProperty("defaultValue")&&(n.default_value=w(e.defaultValue,t)),n}function m(e,t){const n=new t.SearchIndexProperties;n.deleteLater();for(const i of e.propertyNames)n.add_search_property_name(i);return n}function _(e,t){const n=new t.FieldIndex;n.deleteLater(),n.name=e.name,n.unique=e.unique,n.ascending=e.ascending,n.description=e.description??"";for(const i of e.fieldNames)n.add_field(i);return n}function g(e,t,n){n.name=e.name,n.alias=e.alias??"",n.role={value:o[e.role]},n.strict=e.strict;for(const i of e.properties){const e=f(i,t);n.add_property(e)}return n}function h(e,t){return e.hasOwnProperty("alias")&&(t.alias=e.alias),t}function w(e,i){return null==e?null:"object"!=typeof e||e instanceof Date?e:e instanceof t?n(e,i):null}export{d as entityTypeToWasm,_ as fieldIndexToWasm,f as graphPropertyToWasm,l as inputQuantizationParametersToWasmFormat,s as namedObjectToWasm,u as relationshipTypeToWasm,p as updateEntityTypeToWasm,c as updateGraphPropertyToWasm,y as updateRelationshipTypeToWasm,m as updateSearchPropertiesToWasm};
5
+ import e from"../../../core/Error.js";import t from"../../../geometry/Geometry.js";import{geometryToWasm as n}from"./queryToWasmEncodedFactories.js";import{EsriFieldTypes as i,EsriMergePolicyType as a,EsriSplitPolicyType as o,EsriGeometryTypes as r,EsriGraphPropertyRole as l,NamedObjectTypes as s}from"./WasmDataModelWrapperInterfaces.js";function d(t,n){if(!t.typeName)throw new e("knowledge-graph:no-type-name","You must indicate the entity/relationship named object type to apply edits");if(!("originId"in t)){const e=new n.EntityValue;e.deleteLater(),e.type_name=t.typeName;for(const[i,a]of Object.entries(t.properties))e.set_key_value(i,O(a,n));return t.id&&e.set_id(t.id),e}if("originId"in t&&"destinationId"in t){const e=new n.RelationshipValue;e.deleteLater(),e.type_name=t.typeName;for(const[i,a]of Object.entries(t.properties))e.set_key_value(i,O(a,n));return t.id&&e.set_id(t.id),t.originId&&t.destinationId&&e.set_related_entity_ids(t.originId,t.destinationId),e}throw new e("knowledge-graph:applyEdits-encoding-failure","Could not determine the type of a named graph object passed to the encoder")}function u(e){return{xy_resolution:e.xyResolution,x_false_origin:e.xFalseOrigin,y_false_origin:e.yFalseOrigin,z_resolution:e.zResolution,z_false_origin:e.zFalseOrigin,m_resolution:e.mResolution,m_false_origin:e.mFalseOrigin}}function p(e,t){const n=new t.EntityType;return n.deleteLater(),v(e,t,n)}function y(e,t){const n=new t.RelationshipType;n.deleteLater();for(const i of e.endPoints){const e=new t.EndPoint;e.deleteLater(),e.origin_entity_type=i.originEntityType,e.dest_entity_type=i.destinationEntityType,n.add_end_point(e)}return v(e,t,n)}function c(e,t){const n=new t.EntityType;return n.deleteLater(),b(e,n)}function f(e,t){const n=new t.RelationshipType;return n.deleteLater(),b(e,n)}function m(e,t){const n=new t.GraphProperty;return n.deleteLater(),n.name=e.name,n.alias=e.alias??"",n.field_type={value:i[e.fieldType]},n.geometry_type={value:e.geometryType?r[e.geometryType]:r.esriGeometryNull},n.has_m=e.hasM??!1,n.has_z=e.hasZ??!1,n.nullable=e.nullable??!1,n.editable=e.editable,n.required=e.required,n.default_visibility=e.defaultVisibility,n.system_maintained=e.systemMaintained??!1,n.role={value:l[e.role]},n.default_value=O(e.defaultValue,t),n.domain=e.domain??"",n}function _(e,t){const n=new t.GraphProperty;return n.deleteLater(),e.hasOwnProperty("alias")&&(n.alias=e.alias),e.hasOwnProperty("editable")&&(n.editable=e.editable),e.hasOwnProperty("required")&&(n.required=e.required),e.hasOwnProperty("defaultVisibility")&&(n.default_visibility=e.defaultVisibility),e.hasOwnProperty("defaultValue")&&(n.default_value=O(e.defaultValue,t)),e.hasOwnProperty("domain")&&(n.domain=e.domain),n}function g(e,t){const n=new t.SearchIndexProperties;n.deleteLater();for(const i of e.propertyNames)n.add_search_property_name(i);return n}function w(e,t){const n=new t.FieldIndex;n.deleteLater(),n.name=e.name,n.unique=e.unique,n.ascending=e.ascending,n.description=e.description??"";for(const i of e.fieldNames)n.add_field(i);return n}function h(e,t,n,r){const l=new t.Domain;l.deleteLater(),l.name=e.name;const s=i[n];l.field_type={value:s};let d=s;if(s!==i.esriFieldTypeTimeOnly&&s!==i.esriFieldTypeDateOnly&&s!==i.esriFieldTypeTimestampOffset||(d=i.esriFieldTypeString),r&&(l.merge_policy_type={value:a[r.mergePolicy]},l.split_policy_type={value:o[r.splitPolicy]}),"coded-value"===e.type){const n=e;l.type="codedValue";const i=new t.CodedValueDomain;i.deleteLater();for(const e of n.codedValues){const n=new t.CodedValue;n.deleteLater(),n.name=e.name,n.set_code(e.code,{value:d}),i.add_coded_value(n)}l.coded_value_domain=i}else if("range"===e.type){const n=e;l.type="range";const i=new t.RangeDomain;i.deleteLater(),i.add_value(n.minValue,{value:d}),i.add_value(n.maxValue,{value:d}),l.range_domain=i}else l.type=e.type??"unspecified";return l}function v(e,t,n){n.name=e.name,n.alias=e.alias??"",n.role={value:s[e.role]},n.strict=e.strict;for(const i of e.properties){const e=m(i,t);n.add_property(e)}return n}function b(e,t){return e.hasOwnProperty("alias")&&(t.alias=e.alias),t}function O(e,i){return null==e?null:"object"!=typeof e||e instanceof Date?e:e instanceof t?n(e,i):null}export{h as domainToWasm,p as entityTypeToWasm,w as fieldIndexToWasm,m as graphPropertyToWasm,u as inputQuantizationParametersToWasmFormat,d as namedObjectToWasm,y as relationshipTypeToWasm,c as updateEntityTypeToWasm,_ as updateGraphPropertyToWasm,f as updateRelationshipTypeToWasm,g as updateSearchPropertiesToWasm};
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import r from"../GraphAddFieldIndexResult.js";import e from"../GraphAddNamedTypesResult.js";import t from"../GraphAddPropertyResult.js";import s from"../GraphDeleteFieldIndexResult.js";import o from"../GraphDeleteNamedTypeResult.js";import n from"../GraphDeletePropertyResult.js";import u from"../GraphUpdateNamedTypesResult.js";import l from"../GraphUpdatePropertyResult.js";import d from"../GraphUpdateSearchIndexResult.js";import{wasmErrorToEsriError as _}from"./wasmUtils.js";function c(r,e){const t=[];for(let s=0;s<e;s++){const e=r.get_result_at(s);t.push({name:e.get_name(),error:_(e.get_error())})}return t}function p(r){const t=r.get_results_count(),s=r.get_entity_type_add_results_count(),o=r.get_relationship_type_add_results_count(),n=new e({resultsCount:t,results:c(r,t),decoderError:_(r.error),entityAddResultsCount:s,relationshipAddResultsCount:o});for(let e=0;e<s;e++){const t=r.get_entity_type_add_results_at(e),s=t.get_name(),o=t.get_error();n.entityAddResults.push({name:s,error:_(o)})}for(let e=0;e<o;e++){const t=r.get_relationship_type_add_results_at(e),s=t.get_name(),o=t.get_error();n.relationshipAddResults.push({name:s,error:_(o)})}return n}function i(r){const e=r.get_results_count();return new u({resultsCount:e,results:c(r,e),decoderError:_(r.error)})}function a(r){const e=r.get_results_count();return new o({resultsCount:e,results:c(r,e),decoderError:_(r.error)})}function m(r){const e=r.get_results_count();return new t({resultsCount:e,results:c(r,e),decoderError:_(r.error)})}function f(r){const e=r.get_results_count();return new n({resultsCount:e,results:c(r,e),decoderError:_(r.error)})}function g(r){const e=r.get_results_count();return new l({resultsCount:e,results:c(r,e),decoderError:_(r.error)})}function h(r){const e=r.get_results_count();return new d({resultsCount:e,results:c(r,e),decoderError:_(r.error)})}function y(e){const t=e.get_results_count();return new r({resultsCount:t,results:c(e,t),decoderError:_(e.error)})}function R(r){const e=r.get_results_count();return new s({resultsCount:e,results:c(r,e),decoderError:_(r.error)})}export{m as decoderToAddGraphPropertiesResult,p as decoderToAddNamedTypesResult,f as decoderToDeleteGraphPropertiesResult,a as decoderToDeleteNamedTypeResult,y as decoderToGraphAddIndexResult,R as decoderToGraphDeleteIndexResult,h as decoderToGraphUpdateSearchIndexResult,g as decoderToUpdateGraphPropertiesResult,i as decoderToUpdateNamedTypesResult};
5
+ import r from"../GraphAddFieldIndexResult.js";import e from"../GraphAddNamedTypesResult.js";import t from"../GraphAddPropertyResult.js";import o from"../GraphDataModelSingletonOperationResult.js";import s from"../GraphDeleteFieldIndexResult.js";import n from"../GraphDeleteNamedTypeResult.js";import u from"../GraphDeletePropertyResult.js";import l from"../GraphUpdateNamedTypesResult.js";import d from"../GraphUpdatePropertyResult.js";import c from"../GraphUpdateSearchIndexResult.js";import{wasmErrorToEsriError as _}from"./wasmUtils.js";function p(r,e){const t=[];for(let o=0;o<e;o++){const e=r.get_result_at(o);t.push({name:e.get_name(),error:_(e.get_error())})}return t}function i(r){const t=r.get_results_count(),o=r.get_entity_type_add_results_count(),s=r.get_relationship_type_add_results_count(),n=new e({resultsCount:t,results:p(r,t),decoderError:_(r.error),entityAddResultsCount:o,relationshipAddResultsCount:s});for(let e=0;e<o;e++){const t=r.get_entity_type_add_results_at(e),o=t.get_name(),s=t.get_error();n.entityAddResults.push({name:o,error:_(s)})}for(let e=0;e<s;e++){const t=r.get_relationship_type_add_results_at(e),o=t.get_name(),s=t.get_error();n.relationshipAddResults.push({name:o,error:_(s)})}return n}function a(r){const e=r.get_results_count();return new l({resultsCount:e,results:p(r,e),decoderError:_(r.error)})}function m(r){const e=r.get_results_count();return new n({resultsCount:e,results:p(r,e),decoderError:_(r.error)})}function f(r){const e=r.get_results_count();return new t({resultsCount:e,results:p(r,e),decoderError:_(r.error)})}function g(r){const e=r.get_results_count();return new u({resultsCount:e,results:p(r,e),decoderError:_(r.error)})}function h(r){const e=r.get_results_count();return new d({resultsCount:e,results:p(r,e),decoderError:_(r.error)})}function y(r){const e=r.get_results_count();return new c({resultsCount:e,results:p(r,e),decoderError:_(r.error)})}function R(e){const t=e.get_results_count();return new r({resultsCount:t,results:p(e,t),decoderError:_(e.error)})}function j(r){const e=r.get_results_count();return new s({resultsCount:e,results:p(r,e),decoderError:_(r.error)})}function w(r){return new o({decoderError:_(r.error)})}export{f as decoderToAddGraphPropertiesResult,i as decoderToAddNamedTypesResult,g as decoderToDeleteGraphPropertiesResult,m as decoderToDeleteNamedTypeResult,R as decoderToGraphAddIndexResult,w as decoderToGraphDataModelSingletonOperationResult,j as decoderToGraphDeleteIndexResult,y as decoderToGraphUpdateSearchIndexResult,h as decoderToUpdateGraphPropertiesResult,a as decoderToUpdateNamedTypesResult};
@@ -2,4 +2,4 @@
2
2
  All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
4
  */
5
- import e from"../../../core/Logger.js";import{getKey as t}from"../../../core/object.js";import i from"../../../geometry/SpatialReference.js";import r from"../DataModel.js";import n from"../EntityType.js";import o from"../FieldIndex.js";import a from"../GraphObjectType.js";import s from"../GraphProperty.js";import p from"../RelationshipType.js";import l from"../SearchIndex.js";import d from"../SourceTypeValueBehavior.js";import{EsriUuidMethodHintTypes as f,EsriIdentifierInfoType as u,EsriNamedTypeCategory as c,NamedObjectTypes as m,EsriGraphPropertyRole as y,EsriGeometryTypes as _,EsriFieldTypes as g}from"./WasmDataModelWrapperInterfaces.js";let h=!1;function v(n){n.deleteLater(),h=!1;const o=new r({timestamp:n.timestamp,spatialReference:new i(n.spatial_reference),strict:n.strict,objectIdField:n.objectid_property,globalIdField:n.globalid_property,arcgisManaged:n.arcgis_managed,identifierInfo:{identifierMappingInfo:{identifierInfoType:t(u,n.identifier_info?.identifier_mapping_info?.identifier_info_type?.value),databaseNativeIdentifier:n.identifier_info?.identifier_mapping_info?.database_native_identifier,uniformPropertyIdentifier:{identifierPropertyName:n.identifier_info?.identifier_mapping_info?.uniform_property_identifier?.identifier_property_name}},identifierGenerationInfo:{uuidMethodHint:t(f,n.identifier_info?.identifier_generation_info?.uuid_method_hint?.value)}},searchIndexes:k(n.search_indexes),entityTypes:x(n.entity_types),relationshipTypes:G(n.relationship_types),metaEntityTypes:x(n.meta_entity_types),provenanceSourceTypeValues:S(n.provenance_source_type_values.value_behavior_array)});return h&&e.getLogger("esri.rest.knowledgeGraph.knowledgeGraphService").warnOnce("A big integer field was detected in the retrieved data model. The `big-integer` field type is not fully supported in web clients. Please see https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html#type"),o}function b(e){return e.deleteLater(),new n(T(e))}function j(e){return e.deleteLater(),new o({name:e.name,unique:e.unique,ascending:e.ascending,description:e.description,fieldNames:M(e.fields)})}function z(e){return e.deleteLater(),new a(T(e))}function T(e){return{name:e.name,alias:e.alias,role:t(m,e.role.value),strict:e.strict,properties:P(e.properties),fieldIndexes:F(e.field_indexes)}}function w(e){return e.deleteLater(),new s({alias:e.alias,name:e.name,fieldType:t(g,e.field_type.value)??void 0,geometryType:t(_,e.geometry_type.value)??null,hasM:e.has_m,hasZ:e.has_z,nullable:e.nullable,editable:e.editable,required:e.required,defaultVisibility:e.default_visibility,systemMaintained:e.system_maintained,role:t(y,e.role.value),defaultValue:e.default_value})}function I(e){e.deleteLater();const t=T(e),i=[];for(let r=0;r<e.end_points.size();r++){const t=e.end_points.get(r);i.push({originEntityType:t.origin_entity_type,destinationEntityType:t.dest_entity_type})}return e.end_points.delete(),new p(Object.assign({endPoints:i},t))}function L(e){return new d({behavior:e.behavior,value:e.value})}function x(e){const t=[];for(let i=0;i<e.size();i++)t.push(b(e.get(i)));return e.delete(),t}function M(e){const t=[];for(let i=0;i<e.size();i++)t.push(e.get(i));return e.delete(),t}function P(e){const t=[];for(let i=0;i<e.size();i++){const r=w(e.get(i));"esriFieldTypeBigInteger"===r.fieldType&&(h=!0),t.push(r)}return e.delete(),t}function F(e){const t=[];for(let i=0;i<e.size();i++)t.push(j(e.get(i)));return e.delete(),t}function G(e){const t=[];for(let i=0;i<e.size();i++)t.push(I(e.get(i)));return e.delete(),t}function S(e){const t=[];for(let i=0;i<e.size();i++){const r=e.get(i);r.deleteLater(),t.push(L(r))}return e.delete(),t}function k(e){const i=[];for(let r=0;r<e.size();r++){const n=new l,o=e.get(r);n.name=o.name,n.supportedCategory=t(c,o.supported_category.value);const a=o.analyzers.size();for(let e=0;e<a;e++)n.analyzers.push({name:o.analyzers.get(e).name});o.analyzers.delete();for(let e=0;e<o.search_properties.keys().size();e++){const t=o.search_properties.keys().get(e),i=o.search_properties.get(t),r=[];for(let e=0;e<i.property_names.size();e++)r.push(i.property_names.get(e));n.searchProperties.set(t,{propertyNames:r})}i.push(n)}return e.delete(),i}export{v as wasmToDataModel,b as wasmToEntityType,j as wasmToFieldIndex,z as wasmToGraphObjectType,w as wasmToGraphProperty,I as wasmToRelationshipType,L as wasmToSourceTypeValueBehavior};
5
+ import e from"../../../core/Logger.js";import{getKey as t}from"../../../core/object.js";import i from"../../../geometry/SpatialReference.js";import{CodedValue as n}from"../../../layers/support/CodedValue.js";import r from"../../../layers/support/CodedValueDomain.js";import o from"../../../layers/support/Domain.js";import a from"../../../layers/support/RangeDomain.js";import s from"../DataModel.js";import p from"../EntityType.js";import d from"../FieldIndex.js";import l from"../GraphObjectType.js";import u from"../GraphProperty.js";import f from"../RelationshipType.js";import m from"../SearchIndex.js";import c from"../SourceTypeValueBehavior.js";import{EsriUuidMethodHintTypes as _,EsriIdentifierInfoType as y,EsriNamedTypeCategory as g,EsriDomainType as h,NamedObjectTypes as v,EsriGraphPropertyRole as j,EsriGeometryTypes as b,EsriFieldTypes as w}from"./WasmDataModelWrapperInterfaces.js";let z=!1;function T(n){n.deleteLater(),z=!1;const r=new s({timestamp:n.timestamp,spatialReference:new i(n.spatial_reference),strict:n.strict,objectIdField:n.objectid_property,globalIdField:n.globalid_property,arcgisManaged:n.arcgis_managed,identifierInfo:{identifierMappingInfo:{identifierInfoType:t(y,n.identifier_info?.identifier_mapping_info?.identifier_info_type?.value),databaseNativeIdentifier:n.identifier_info?.identifier_mapping_info?.database_native_identifier,uniformPropertyIdentifier:{identifierPropertyName:n.identifier_info?.identifier_mapping_info?.uniform_property_identifier?.identifier_property_name}},identifierGenerationInfo:{uuidMethodHint:t(_,n.identifier_info?.identifier_generation_info?.uuid_method_hint?.value)}},searchIndexes:R(n.search_indexes),entityTypes:G(n.entity_types),relationshipTypes:E(n.relationship_types),metaEntityTypes:G(n.meta_entity_types),provenanceSourceTypeValues:N(n.provenance_source_type_values.value_behavior_array),domains:C(n)});return z&&e.getLogger("esri.rest.knowledgeGraph.knowledgeGraphService").warnOnce("A big integer field was detected in the retrieved data model. The `big-integer` field type is not fully supported in web clients. Please see https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html#type"),r}function I(e){return e.deleteLater(),new p(x(e))}function L(e){return e.deleteLater(),new d({name:e.name,unique:e.unique,ascending:e.ascending,description:e.description,fieldNames:S(e.fields)})}function V(e){return e.deleteLater(),new l(x(e))}function x(e){return{name:e.name,alias:e.alias,role:t(v,e.role.value),strict:e.strict,properties:k(e.properties),fieldIndexes:q(e.field_indexes)}}function M(e){return e.deleteLater(),new u({alias:e.alias,name:e.name,fieldType:t(w,e.field_type.value)??void 0,geometryType:t(b,e.geometry_type.value)??null,hasM:e.has_m,hasZ:e.has_z,nullable:e.nullable,editable:e.editable,required:e.required,defaultVisibility:e.default_visibility,systemMaintained:e.system_maintained,role:t(j,e.role.value),defaultValue:e.default_value,domain:e.domain})}function P(e){return e.get_domain_type().value===h.range?new a({name:e.name,minValue:e.range_domain.value_at(0),maxValue:e.range_domain.value_at(1)}):e.get_domain_type().value===h.codedValue?new r({name:e.name,codedValues:O(e)}):new o({name:e.name})}function D(e){e.deleteLater();const t=x(e),i=[];for(let n=0;n<e.end_points.size();n++){const t=e.end_points.get(n);i.push({originEntityType:t.origin_entity_type,destinationEntityType:t.dest_entity_type})}return e.end_points.delete(),new f(Object.assign({endPoints:i},t))}function F(e){return new c({behavior:e.behavior,value:e.value})}function G(e){const t=[];for(let i=0;i<e.size();i++)t.push(I(e.get(i)));return e.delete(),t}function S(e){const t=[];for(let i=0;i<e.size();i++)t.push(e.get(i));return e.delete(),t}function k(e){const t=[];for(let i=0;i<e.size();i++){const n=M(e.get(i));"esriFieldTypeBigInteger"===n.fieldType&&(z=!0),t.push(n)}return e.delete(),t}function q(e){const t=[];for(let i=0;i<e.size();i++)t.push(L(e.get(i)));return e.delete(),t}function E(e){const t=[];for(let i=0;i<e.size();i++)t.push(D(e.get(i)));return e.delete(),t}function N(e){const t=[];for(let i=0;i<e.size();i++){const n=e.get(i);n.deleteLater(),t.push(F(n))}return e.delete(),t}function R(e){const i=[];for(let n=0;n<e.size();n++){const r=new m,o=e.get(n);r.name=o.name,r.supportedCategory=t(g,o.supported_category.value);const a=o.analyzers.size();for(let e=0;e<a;e++)r.analyzers.push({name:o.analyzers.get(e).name});o.analyzers.delete();for(let e=0;e<o.search_properties.keys().size();e++){const t=o.search_properties.keys().get(e),i=o.search_properties.get(t),n=[];for(let e=0;e<i.property_names.size();e++)n.push(i.property_names.get(e));r.searchProperties.set(t,{propertyNames:n})}i.push(r)}return e.delete(),i}function C(e){const t=[];for(let i=0;i<e.domains_count();i++){const n=e.domain_at(i);n.deleteLater(),t.push(P(n))}return t}function O(e){const t=[];for(let i=0;i<e.coded_value_domain.coded_values_count();i++){const r=e.coded_value_domain.coded_value_at(i);r.deleteLater(),t.push(new n({name:r.name,code:r.get_code()}))}return t}export{T as wasmToDataModel,P as wasmToDomain,I as wasmToEntityType,L as wasmToFieldIndex,V as wasmToGraphObjectType,M as wasmToGraphProperty,D as wasmToRelationshipType,F as wasmToSourceTypeValueBehavior};
@@ -1,9 +1,11 @@
1
1
  import "../interfaces";
2
2
 
3
+ export const executeAddDomain: __esri.knowledgeGraphService["executeAddDomain"];
3
4
  export const executeAddGraphFieldIndex: __esri.knowledgeGraphService["executeAddGraphFieldIndex"];
4
5
  export const executeAddGraphProperties: __esri.knowledgeGraphService["executeAddGraphProperties"];
5
6
  export const executeAddNamedTypes: __esri.knowledgeGraphService["executeAddNamedTypes"];
6
7
  export const executeApplyEdits: __esri.knowledgeGraphService["executeApplyEdits"];
8
+ export const executeDeleteDomain: __esri.knowledgeGraphService["executeDeleteDomain"];
7
9
  export const executeDeleteGraphFieldIndex: __esri.knowledgeGraphService["executeDeleteGraphFieldIndex"];
8
10
  export const executeDeleteGraphProperty: __esri.knowledgeGraphService["executeDeleteGraphProperty"];
9
11
  export const executeDeleteNamedType: __esri.knowledgeGraphService["executeDeleteNamedType"];
@@ -13,6 +15,7 @@ export const executeQuery: __esri.knowledgeGraphService["executeQuery"];
13
15
  export const executeQueryStreaming: __esri.knowledgeGraphService["executeQueryStreaming"];
14
16
  export const executeSearch: __esri.knowledgeGraphService["executeSearch"];
15
17
  export const executeSearchStreaming: __esri.knowledgeGraphService["executeSearchStreaming"];
18
+ export const executeUpdateDomain: __esri.knowledgeGraphService["executeUpdateDomain"];
16
19
  export const executeUpdateGraphProperty: __esri.knowledgeGraphService["executeUpdateGraphProperty"];
17
20
  export const executeUpdateNamedType: __esri.knowledgeGraphService["executeUpdateNamedType"];
18
21
  export const executeUpdateSearchIndex: __esri.knowledgeGraphService["executeUpdateSearchIndex"];