UNPKG

@arcgis/core

Version:

ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API

6 lines (5 loc) 1.86 kB
/* All material copyright ESRI, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.33/esri/copyright.txt for details. */ import{_ as e}from"../../../../chunks/tslib.es6.js";import{JSONMap as t}from"../../../../core/jsonMap.js";import o from"../../../../core/JSONSupport.js";import{property as r}from"../../../../core/accessorSupport/decorators/property.js";import"../../../../core/has.js";import"../../../../core/Logger.js";import"../../../../core/RandomLCG.js";import{subclass as s}from"../../../../core/accessorSupport/decorators/subclass.js";import{writer as i}from"../../../../core/accessorSupport/decorators/writer.js";import p from"../../../../geometry/SpatialReference.js";const n=new t({objectIds:"object-ids",features:"features"});let a=class extends o{constructor(e){super(e),this.sessionId=null,this.resultType="object-ids",this.layers=null,this.outSpatialReference=null,this.fromMoment=null,this.moment=null}writeOutSR(e,t,o){if(null!=e){const{wkid:r,latestWkid:s,wkt:i,wkt2:p}=e;t[o]=JSON.stringify({wkid:r??void 0,latestWkid:s??void 0,wkt:i??void 0,wkt2:p??void 0})}}};e([r({type:String,json:{write:!0}})],a.prototype,"sessionId",void 0),e([r({type:n.apiValues,json:{type:n.jsonValues,read:n.read,write:n.write}})],a.prototype,"resultType",void 0),e([r({type:[Number],json:{write:!0}})],a.prototype,"layers",void 0),e([r({type:p,json:{write:{target:"outSR"}}})],a.prototype,"outSpatialReference",void 0),e([i("outSpatialReference")],a.prototype,"writeOutSR",null),e([r({type:Date,json:{type:Number,write:{writer:(e,t)=>{t.moment=e?e.getTime():null}}}})],a.prototype,"fromMoment",void 0),e([r({type:Date,json:{type:Number,write:{writer:(e,t)=>{t.moment=e?e.getTime():null}}}})],a.prototype,"moment",void 0),a=e([s("esri.rest.versionManagement.gdbVersion.support.DifferencesParameters")],a);const m=a;export{m as default};