@esri/arcgis-rest-types
Advanced tools
Comparing version 3.2.1 to 3.3.0
@@ -111,3 +111,12 @@ import { ISpatialReference, IExtent } from "./geometry"; | ||
export interface IServiceInfo extends Record<string, unknown> { | ||
adminServiceInfo?: Record<string, unknown>; | ||
adminServiceInfo: { | ||
name: string; | ||
type: string; | ||
status: string; | ||
database: { | ||
datasource: { | ||
name: string; | ||
}; | ||
}; | ||
}; | ||
layers: Record<string, unknown>[]; | ||
@@ -114,0 +123,0 @@ } |
@@ -20,3 +20,3 @@ export interface IStatisticDefinition { | ||
*/ | ||
outStatisticFieldName: string; | ||
outStatisticFieldName?: string; | ||
} |
@@ -9,2 +9,34 @@ import { IExtent, ISpatialReference, GeometryType, IHasZM, IGeometry, IPoint } from "./geometry"; | ||
/** | ||
* Domain types | ||
*/ | ||
export declare type DomainType = "range" | "codedValue" | "inherited"; | ||
/** | ||
* CodedValue type | ||
*/ | ||
export declare type ICodedValue = { | ||
/** User-friendly name for what the code means. */ | ||
name: string; | ||
/** The value stored in the feature attribute. */ | ||
code: string | number; | ||
}; | ||
/** | ||
* Information for a field with a domain | ||
*/ | ||
export declare type IDomain = { | ||
/** A string defining the domain type. */ | ||
type: DomainType; | ||
/** A string defining the field name. */ | ||
name?: string; | ||
/** A 2 element array defining the range of possible values. */ | ||
range?: [number, number]; | ||
/** An array of CodedValues for domains of type codedValue. */ | ||
codedValues?: ICodedValue[]; | ||
/** Description of the domain */ | ||
description?: string; | ||
/** Merge policy */ | ||
mergePolicy?: string; | ||
/** Split Policy */ | ||
splitPolicy?: string; | ||
}; | ||
/** | ||
* Contains information about an attribute field. | ||
@@ -26,3 +58,3 @@ * | ||
/** The domain objects if applicable. */ | ||
domain?: any; | ||
domain?: IDomain; | ||
/** A Boolean defining whether this field is editable. */ | ||
@@ -29,0 +61,0 @@ editable?: boolean; |
{ | ||
"name": "@esri/arcgis-rest-types", | ||
"version": "3.2.1", | ||
"version": "3.3.0", | ||
"description": "Shared TypeScript types for @esri/arcgis-rest-js", | ||
@@ -5,0 +5,0 @@ "types": "dist/types/index.d.ts", |
@@ -120,3 +120,12 @@ /* Copyright (c) 2018 Environmental Systems Research Institute, Inc. | ||
export interface IServiceInfo extends Record<string, unknown> { | ||
adminServiceInfo?: Record<string, unknown>; | ||
adminServiceInfo: { | ||
name: string; | ||
type: string; | ||
status: string; | ||
database: { | ||
datasource: { | ||
name: string; | ||
}; | ||
}; | ||
}; | ||
layers: Record<string, unknown>[]; | ||
@@ -123,0 +132,0 @@ } |
@@ -32,3 +32,3 @@ /* Copyright (c) 2017-2018 Environmental Systems Research Institute, Inc. | ||
*/ | ||
outStatisticFieldName: string; | ||
outStatisticFieldName?: string; | ||
} |
@@ -41,2 +41,40 @@ /* Copyright (c) 2018 Environmental Systems Research Institute, Inc. | ||
/** | ||
* Domain types | ||
*/ | ||
export type DomainType = | ||
| "range" | ||
| "codedValue" | ||
| "inherited"; | ||
/** | ||
* CodedValue type | ||
*/ | ||
export type ICodedValue = { | ||
/** User-friendly name for what the code means. */ | ||
name: string; | ||
/** The value stored in the feature attribute. */ | ||
code: string | number; | ||
} | ||
/** | ||
* Information for a field with a domain | ||
*/ | ||
export type IDomain = { | ||
/** A string defining the domain type. */ | ||
type: DomainType; | ||
/** A string defining the field name. */ | ||
name?: string; | ||
/** A 2 element array defining the range of possible values. */ | ||
range?: [number, number]; | ||
/** An array of CodedValues for domains of type codedValue. */ | ||
codedValues?: ICodedValue[]; | ||
/** Description of the domain */ | ||
description?: string, | ||
/** Merge policy */ | ||
mergePolicy?: string, | ||
/** Split Policy */ | ||
splitPolicy?: string | ||
} | ||
/** | ||
* Contains information about an attribute field. | ||
@@ -58,3 +96,3 @@ * | ||
/** The domain objects if applicable. */ | ||
domain?: any; | ||
domain?: IDomain; | ||
/** A Boolean defining whether this field is editable. */ | ||
@@ -61,0 +99,0 @@ editable?: boolean; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
170876
4095