Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

consolidate feature-service-admin and feature-service packages #513

Merged
merged 5 commits into from
Apr 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@ packages/*/debug/
# no idea
/packages/*/.rpt2_cache

# packages in development
packages/arcgis-rest-portal/

#
test.html
test.js
Expand Down
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,9 @@ Some useful commands include:
* [`@esri/arcgis-rest-request`](./packages/arcgis-rest-request/) - Underpins other packages and supports making low-level requests.
* [`@esri/arcgis-rest-auth`](./packages/arcgis-rest-auth) - Provides methods for authenticating named users and applications.
* [`@esri/arcgis-rest-common`](./packages/arcgis-rest-common-types) - - Stores shared methods and types used throughout the ArcGIS API.
* [`@esri/arcgis-rest-items`](./packages/arcgis-rest-items) - Methods for working with ArcGIS Online/Enterprise content.
* [`@esri/arcgis-rest-groups`](./packages/arcgis-rest-groups) - Methods for working with ArcGIS Online/Enterprise groups.
* [`@esri/arcgis-rest-users`](./packages/arcgis-rest-users) - Methods for working with ArcGIS Online/Enterprise users.
* [`@esri/arcgis-rest-sharing`](./packages/arcgis-rest-sharing) - Methods for updating permissions for ArcGIS Online/Enterprise content.
* [`@esri/arcgis-rest-feature-service`](./packages/arcgis-rest-feature-service) - Functions for querying and editing the features inside feature services.
* [`@esri/arcgis-rest-portal`](./packages/arcgis-rest-portal) - Methods for working with ArcGIS Online/Enterprise content and users.
* [`@esri/arcgis-rest-feature-service`](./packages/arcgis-rest-feature-service) - Functions for creating and updating feature services and querying and editing the features they contain.
* [`@esri/arcgis-rest-geocoder`](./packages/arcgis-rest-geocoder) - Geocoding wrapper for `@esri/arcgis-rest-js`
* [`@esri/arcgis-rest-feature-service-admin`](./packages/arcgis-rest-feature-service-admin) - Functions for creating and updating feature services.
* [`@esri/arcgis-rest-routing`](./packages/arcgis-rest-routing) - Routing and directions wrapper for `@esri/arcgis-rest-js`.

### Frequently Asked Questions
Expand Down
2 changes: 1 addition & 1 deletion demos/ago-node-cli/lib/item-export-command.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { getItem, getItemData } = require("@esri/arcgis-rest-items");
const { getItem, getItemData } = require("@esri/arcgis-rest-portal");
const jsonfile = require('jsonfile');

module.exports = {
Expand Down
4 changes: 2 additions & 2 deletions demos/ago-node-cli/lib/item-search-command.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
/**
* Bring in searchItems fn
*/
const { searchItems } = require("@esri/arcgis-rest-items");
const { searchItems } = require("@esri/arcgis-rest-portal");

module.exports = {
/**
* Execute the command
*/
execute: function (query) {
// construct the search call..
return searchItems({
return searchItems({
searchForm: {
q: query,
start: 1,
Expand Down
2 changes: 1 addition & 1 deletion demos/ago-node-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"license": "Apache-2.0",
"dependencies": {
"@esri/arcgis-rest-auth": "^1.19.2",
"@esri/arcgis-rest-items": "^1.19.2",
"@esri/arcgis-rest-portal": "^1.19.2",
"@esri/arcgis-rest-request": "^1.19.2",
"chalk": "^2.3.0",
"commander": "^2.12.2",
Expand Down
2 changes: 1 addition & 1 deletion demos/jsapi-integration/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

<script src="node_modules/@esri/arcgis-rest-request/dist/umd/request.umd.js"></script>
<script src="node_modules/@esri/arcgis-rest-auth/dist/umd/auth.umd.js"></script>
<script src="node_modules/@esri/arcgis-rest-items/dist/umd/items.umd.js"></script>
<script src="node_modules/@esri/arcgis-rest-portal/dist/umd/portal.umd.js"></script>

<!--
NOTE: rather than include the ArcGIS API for JavaScript via a <script> tag
Expand Down
2 changes: 1 addition & 1 deletion demos/jsapi-integration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"license": "Apache-2.0",
"dependencies": {
"@esri/arcgis-rest-auth": "^1.19.2",
"@esri/arcgis-rest-items": "^1.19.2",
"@esri/arcgis-rest-portal": "^1.19.2",
"@esri/arcgis-rest-request": "^1.19.2"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion demos/node-cli-item-management/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require("isomorphic-form-data");
const prompts = require("prompts");
const chalk = require("chalk");
const { UserSession } = require("@esri/arcgis-rest-auth");
const { searchItems, removeItem } = require("@esri/arcgis-rest-items");
const { searchItems, removeItem } = require("@esri/arcgis-rest-portal");

// 1. Promt the user for sign in. Create a `UserSession`
authenticate()
Expand Down
2 changes: 1 addition & 1 deletion demos/node-cli-item-management/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
"dependencies": {
"@esri/arcgis-rest-auth": "^1.19.2",
"@esri/arcgis-rest-items": "^1.19.2",
"@esri/arcgis-rest-portal": "^1.19.2",
"@esri/arcgis-rest-request": "^1.19.2",
"chalk": "^2.3.0",
"isomorphic-fetch": "^2.2.1",
Expand Down
2 changes: 1 addition & 1 deletion demos/tree-shaking-rollup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"rollup-plugin-node-resolve": "^4.0.1"
},
"dependencies": {
"@esri/arcgis-rest-items": "^1.19.2",
"@esri/arcgis-rest-portal": "^1.19.2",
"@esri/arcgis-rest-request": "^1.19.2"
}
}
2 changes: 1 addition & 1 deletion demos/tree-shaking-rollup/src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { searchItems } from "@esri/arcgis-rest-items";
import { searchItems } from "@esri/arcgis-rest-portal";

let element = document.createElement("div");
document.body.appendChild(element);
Expand Down
2 changes: 1 addition & 1 deletion demos/tree-shaking-webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"webpack-cli": "^3.3.0"
},
"dependencies": {
"@esri/arcgis-rest-items": "^1.19.2",
"@esri/arcgis-rest-portal": "^1.19.2",
"@esri/arcgis-rest-request": "^1.19.2"
}
}
2 changes: 1 addition & 1 deletion demos/tree-shaking-webpack/src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { searchItems } from "@esri/arcgis-rest-items";
import { searchItems } from "@esri/arcgis-rest-portal";

let element = document.createElement('div');
document.body.appendChild(element);
Expand Down
3 changes: 1 addition & 2 deletions demos/webmap-checker-sapper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@
},
"dependencies": {
"@esri/arcgis-rest-auth": "^1.19.2",
"@esri/arcgis-rest-items": "^1.19.2",
"@esri/arcgis-rest-portal": "^1.19.2",
"@esri/arcgis-rest-request": "^1.19.2",
"@esri/arcgis-rest-users": "^1.19.2",
"compression": "^1.7.1",
"cookies": "^0.7.3",
"dotenv": "^6.2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ <h2>{item.title}</h2>

<script>
import { UserSession } from "@esri/arcgis-rest-auth";
import { getItem, getItemData } from "@esri/arcgis-rest-items";
import { getItem, getItemData } from "@esri/arcgis-rest-portal";
import { retryWithNewSession } from "../../utils.js";
import LayerStatus from "../../components/LayerStatus.html";
import WebMap from "../../components/WebMap.html";
Expand Down
2 changes: 1 addition & 1 deletion demos/webmap-checker-sapper/src/routes/webmaps/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ <h1>Webmaps</h1>

<script>
import { UserSession } from "@esri/arcgis-rest-auth";
import { searchItems } from "@esri/arcgis-rest-items";
import { searchItems } from "@esri/arcgis-rest-portal";
import { retryWithNewSession } from "../../utils.js";

export default {
Expand Down
2 changes: 1 addition & 1 deletion demos/webmap-checker-sapper/src/userInfoMiddleware.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { getSelf } from "@esri/arcgis-rest-request";
// we could use UserSession.getUser() instead
import { getUser } from "@esri/arcgis-rest-users";
import { getUser } from "@esri/arcgis-rest-portal";

// this middleware checks for a session and if we find a session add
// additional info to that session from the getUser and getSelf calls
Expand Down
73 changes: 0 additions & 73 deletions packages/arcgis-rest-feature-service-admin/README.md

This file was deleted.

65 changes: 0 additions & 65 deletions packages/arcgis-rest-feature-service-admin/package.json

This file was deleted.

2 changes: 0 additions & 2 deletions packages/arcgis-rest-feature-service-admin/src/index.ts

This file was deleted.

69 changes: 0 additions & 69 deletions packages/arcgis-rest-feature-service-admin/test/mocks/service.ts

This file was deleted.

9 changes: 7 additions & 2 deletions packages/arcgis-rest-feature-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,17 @@
"tslib": "^1.9.3"
},
"devDependencies": {
"@esri/arcgis-rest-request": "^1.19.2",
"@esri/arcgis-rest-common": "^1.19.2",
"@esri/arcgis-rest-request": "^1.19.2"
"@esri/arcgis-rest-auth": "^1.19.2",
"@esri/arcgis-rest-portal": "^1.19.2"

},
"peerDependencies": {
"@esri/arcgis-rest-request": "^1.19.2",
"@esri/arcgis-rest-common": "^1.19.2",
"@esri/arcgis-rest-request": "^1.19.2"
"@esri/arcgis-rest-auth": "^1.19.2",
"@esri/arcgis-rest-portal": "^1.19.2"
},
"scripts": {
"prepare": "npm run build",
Expand Down
Loading