-
Notifications
You must be signed in to change notification settings - Fork 120
/
item.ts
81 lines (76 loc) · 1.94 KB
/
item.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/* Copyright (c) 2018 Environmental Systems Research Institute, Inc.
* Apache-2.0 */
import { ISpatialReference } from "./geometry";
/**
* A Portal [Item](https://developers.arcgis.com/rest/users-groups-and-items/common-parameters.htm) that has not been created yet.
*
* `IItemAdd` can also be imported from the following packages:
*
* ```js
* import { IItemAdd } from "@esri/arcgis-rest-portal";
* ```
*/
export interface IItemAdd {
title: string;
type: string;
owner?: string;
typeKeywords?: string[];
description?: string;
snippet?: string;
documentation?: string;
extent?: number[][];
categories?: string[];
spatialReference?: ISpatialReference;
culture?: string;
properties?: any;
url?: string;
tags?: string[];
[key: string]: any;
}
/**
* A Portal [Item](https://developers.arcgis.com/rest/users-groups-and-items/common-parameters.htm) to be updated.
*
* `IItemUpdate` can also be imported from the following packages:
*
* ```js
* import { IItemUpdate } from "@esri/arcgis-rest-portal";
* ```
*/
export interface IItemUpdate {
id: string;
[key: string]: any;
}
/**
* Existing Portal [Item](https://developers.arcgis.com/rest/users-groups-and-items/item.htm).
*
* `IItem` can also be imported from the following packages:
*
* ```js
* import { IItem } from "@esri/arcgis-rest-portal";
* ```
*/
export interface IItem extends IItemAdd {
id: string;
owner: string;
tags: string[];
created: number;
modified: number;
numViews: number;
size: number;
protected?: boolean; // not present in search results
}
/**
* Used for organizing content. See [Create Folder](https://developers.arcgis.com/rest/users-groups-and-items/create-folder.htm) for more details.
*
* `IFolder` can also be imported from the following packages:
*
* ```js
* import { IFolder } from "@esri/arcgis-rest-portal";
* ```
*/
export interface IFolder {
username: string;
id: string;
title: string;
created?: number;
}