UNPKG

@arcgis/core

Version:

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

3 lines (2 loc) 1.58 kB
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.8/LICENSE.txt */ import{__decorate as e}from"tslib";import{ClonableMixin as o}from"../../core/Clonable.js";import{JSONMap as t}from"../../core/jsonMap.js";import{JSONSupport as i}from"../../core/JSONSupport.js";import{property as r,subclass as l}from"../../core/accessorSupport/decorators.js";const n=new t({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),a=new t({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let s=class extends(o(i)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};e([r({json:{read:n.read,write:n.write}})],s.prototype,"cardinality",void 0),e([r({json:{name:"catalogID"}})],s.prototype,"catalogId",void 0),e([r({json:{read:!0,write:!0}})],s.prototype,"composite",void 0),e([r({json:{read:!0,write:!0}})],s.prototype,"id",void 0),e([r({json:{read:!0,write:!0}})],s.prototype,"keyField",void 0),e([r({json:{read:!0,write:!0}})],s.prototype,"keyFieldInRelationshipTable",void 0),e([r({json:{read:!0,write:!0}})],s.prototype,"name",void 0),e([r({json:{read:!0,write:!0}})],s.prototype,"relatedTableId",void 0),e([r({json:{read:!0,write:!0}})],s.prototype,"relationshipTableId",void 0),e([r({json:{read:a.read,write:a.write}})],s.prototype,"role",void 0),s=e([l("esri.layers.support.Relationship")],s);export{s as default};