/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{__decorate as e}from"tslib";import{JSONMap as t}from"../../../../core/jsonMap.js";import{JSONSupport as o}from"../../../../core/JSONSupport.js";import{property as r,subclass as s}from"../../../../core/accessorSupport/decorators.js";import i from"../../../../geometry/SpatialReference.js";import{writer as p}from"../../../../core/accessorSupport/decorators/writer.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:i,json:{write:{target:"outSR"}}})],a.prototype,"outSpatialReference",void 0),e([p("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 l=a;export{l as default};
