Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@esri/arcgis-rest-feature-service

Package Overview
Dependencies
Maintainers
17
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@esri/arcgis-rest-feature-service - npm Package Compare versions

Comparing version 1.13.0 to 1.13.1

dist/esm/features.d.ts

3

dist/esm/add.js
/* Copyright (c) 2017 Environmental Systems Research Institute, Inc.
* Apache-2.0 */
import * as tslib_1 from "tslib";
import { request } from "@esri/arcgis-rest-request";
import { appendCustomParams } from "./helpers";
import { request, appendCustomParams } from "@esri/arcgis-rest-request";
/**

@@ -7,0 +6,0 @@ * Add features request. See the [REST Documentation](https://developers.arcgis.com/rest/services-reference/add-features.htm) for more information.

/* Copyright (c) 2017 Environmental Systems Research Institute, Inc.
* Apache-2.0 */
import * as tslib_1 from "tslib";
import { request } from "@esri/arcgis-rest-request";
import { appendCustomParams } from "./helpers";
import { request, appendCustomParams } from "@esri/arcgis-rest-request";
/**

@@ -7,0 +6,0 @@ * Delete features request. See the [REST Documentation](https://developers.arcgis.com/rest/services-reference/delete-features.htm) for more information.

@@ -0,8 +1,3 @@

import { appendCustomParams } from "@esri/arcgis-rest-request";
import { esriGeometryType, SpatialRelationship, IGeometry, ISpatialReference } from "@esri/arcgis-rest-common-types";
import { IRequestOptions } from "@esri/arcgis-rest-request";
import { IQueryFeaturesRequestOptions } from "./query";
import { IAddFeaturesRequestOptions } from "./add";
import { IUpdateFeaturesRequestOptions } from "./update";
import { IDeleteFeaturesRequestOptions } from "./delete";
import { IQueryRelatedRequestOptions } from "./queryRelated";
export interface ISharedQueryParams {

@@ -40,5 +35,2 @@ where?: string;

}
/**
* Used internally by the package to ensure that first order request options are passed through as request parameters.
*/
export declare function appendCustomParams(oldOptions: IQueryFeaturesRequestOptions | IAddFeaturesRequestOptions | IUpdateFeaturesRequestOptions | IDeleteFeaturesRequestOptions | IQueryRelatedRequestOptions, newOptions: IRequestOptions): void;
export { appendCustomParams };
/* Copyright (c) 2017-2018 Environmental Systems Research Institute, Inc.
* Apache-2.0 */
/**
* Used internally by the package to ensure that first order request options are passed through as request parameters.
*/
export function appendCustomParams(oldOptions, newOptions) {
// only pass query parameters through in the request, not generic IRequestOptions props
Object.keys(oldOptions).forEach(function (key) {
if (key !== "url" &&
key !== "params" &&
key !== "authentication" &&
key !== "httpMethod" &&
key !== "fetch" &&
key !== "portal" &&
key !== "maxUrlLength") {
newOptions.params[key] = oldOptions[key];
}
});
}
import { appendCustomParams } from "@esri/arcgis-rest-request";
// this function has been moved into @esri/request. it is re-exported here for backwards compatibility
export { appendCustomParams };
//# sourceMappingURL=helpers.js.map

@@ -0,3 +1,3 @@

import { IRequestOptions } from "@esri/arcgis-rest-request";
import { ISpatialReference, IFeatureSet, IFeature, esriUnits, IExtent } from "@esri/arcgis-rest-common-types";
import { IRequestOptions } from "@esri/arcgis-rest-request";
import { ISharedQueryParams } from "./helpers";

@@ -4,0 +4,0 @@ /**

/* Copyright (c) 2017 Environmental Systems Research Institute, Inc.
* Apache-2.0 */
import * as tslib_1 from "tslib";
import { request } from "@esri/arcgis-rest-request";
import { appendCustomParams } from "./helpers";
import { request, appendCustomParams } from "@esri/arcgis-rest-request";
/**

@@ -7,0 +6,0 @@ * Get a feature by id.

@@ -0,3 +1,3 @@

import { IRequestOptions } from "@esri/arcgis-rest-request";
import { ISpatialReference, IFeature, IHasZM, esriGeometryType, IField } from "@esri/arcgis-rest-common-types";
import { IRequestOptions } from "@esri/arcgis-rest-request";
/**

@@ -4,0 +4,0 @@ * Related record query request options. Additional arguments can be passed via the [params](/arcgis-rest-js/api/feature-service/IQueryRelatedRequestOptions/#params) property. See the [REST Documentation](https://developers.arcgis.com/rest/services-reference/query-related-feature-service-.htm) for more information and a full list of parameters.

/* Copyright (c) 2018 Environmental Systems Research Institute, Inc.
* Apache-2.0 */
import * as tslib_1 from "tslib";
import { request } from "@esri/arcgis-rest-request";
import { appendCustomParams } from "./helpers";
import { request, appendCustomParams } from "@esri/arcgis-rest-request";
/**

@@ -7,0 +6,0 @@ * Query the related records for a feature service. See the [REST Documentation](https://developers.arcgis.com/rest/services-reference/query-related-records-feature-service-.htm) for more information.

/* Copyright (c) 2017 Environmental Systems Research Institute, Inc.
* Apache-2.0 */
import * as tslib_1 from "tslib";
import { request } from "@esri/arcgis-rest-request";
import { appendCustomParams } from "./helpers";
import { request, appendCustomParams } from "@esri/arcgis-rest-request";
/**

@@ -7,0 +6,0 @@ * Update features request. See the [REST Documentation](https://developers.arcgis.com/rest/services-reference/update-features.htm) for more information.

@@ -7,3 +7,2 @@ "use strict";

var arcgis_rest_request_1 = require("@esri/arcgis-rest-request");
var helpers_1 = require("./helpers");
/**

@@ -33,3 +32,3 @@ * Add features request. See the [REST Documentation](https://developers.arcgis.com/rest/services-reference/add-features.htm) for more information.

var options = tslib_1.__assign({ params: {} }, requestOptions);
helpers_1.appendCustomParams(requestOptions, options);
arcgis_rest_request_1.appendCustomParams(requestOptions, options);
// mixin, don't overwrite

@@ -36,0 +35,0 @@ options.params.features = requestOptions.adds;

@@ -7,3 +7,2 @@ "use strict";

var arcgis_rest_request_1 = require("@esri/arcgis-rest-request");
var helpers_1 = require("./helpers");
/**

@@ -30,3 +29,3 @@ * Delete features request. See the [REST Documentation](https://developers.arcgis.com/rest/services-reference/delete-features.htm) for more information.

var options = tslib_1.__assign({ params: {} }, requestOptions);
helpers_1.appendCustomParams(requestOptions, options);
arcgis_rest_request_1.appendCustomParams(requestOptions, options);
// mixin, don't overwrite

@@ -33,0 +32,0 @@ options.params.objectIds = requestOptions.deletes;

@@ -5,20 +5,4 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
/**
* Used internally by the package to ensure that first order request options are passed through as request parameters.
*/
function appendCustomParams(oldOptions, newOptions) {
// only pass query parameters through in the request, not generic IRequestOptions props
Object.keys(oldOptions).forEach(function (key) {
if (key !== "url" &&
key !== "params" &&
key !== "authentication" &&
key !== "httpMethod" &&
key !== "fetch" &&
key !== "portal" &&
key !== "maxUrlLength") {
newOptions.params[key] = oldOptions[key];
}
});
}
exports.appendCustomParams = appendCustomParams;
var arcgis_rest_request_1 = require("@esri/arcgis-rest-request");
exports.appendCustomParams = arcgis_rest_request_1.appendCustomParams;
//# sourceMappingURL=helpers.js.map

@@ -7,3 +7,2 @@ "use strict";

var arcgis_rest_request_1 = require("@esri/arcgis-rest-request");
var helpers_1 = require("./helpers");
/**

@@ -57,3 +56,3 @@ * Get a feature by id.

var options = tslib_1.__assign({ params: {}, httpMethod: "GET", url: requestOptions.url }, requestOptions);
helpers_1.appendCustomParams(requestOptions, options);
arcgis_rest_request_1.appendCustomParams(requestOptions, options);
// set default query parameters

@@ -60,0 +59,0 @@ if (!options.params.where) {

@@ -7,3 +7,2 @@ "use strict";

var arcgis_rest_request_1 = require("@esri/arcgis-rest-request");
var helpers_1 = require("./helpers");
/**

@@ -32,3 +31,3 @@ * Query the related records for a feature service. See the [REST Documentation](https://developers.arcgis.com/rest/services-reference/query-related-records-feature-service-.htm) for more information.

var options = tslib_1.__assign({ params: {}, httpMethod: "GET", url: requestOptions.url }, requestOptions);
helpers_1.appendCustomParams(requestOptions, options);
arcgis_rest_request_1.appendCustomParams(requestOptions, options);
if (!options.params.definitionExpression) {

@@ -35,0 +34,0 @@ options.params.definitionExpression = "1=1";

@@ -7,3 +7,2 @@ "use strict";

var arcgis_rest_request_1 = require("@esri/arcgis-rest-request");
var helpers_1 = require("./helpers");
/**

@@ -33,3 +32,3 @@ * Update features request. See the [REST Documentation](https://developers.arcgis.com/rest/services-reference/update-features.htm) for more information.

var options = tslib_1.__assign({ params: {} }, requestOptions);
helpers_1.appendCustomParams(requestOptions, options);
arcgis_rest_request_1.appendCustomParams(requestOptions, options);
// mixin, don't overwrite

@@ -36,0 +35,0 @@ options.params.features = requestOptions.updates;

/* @preserve
* @esri/arcgis-rest-feature-service - v1.13.0 - Apache-2.0
* @esri/arcgis-rest-feature-service - v1.13.1 - Apache-2.0
* Copyright (c) 2017-2018 Esri, Inc.
* Tue Oct 09 2018 07:54:12 GMT-0700 (PDT)
* Mon Oct 15 2018 12:06:20 GMT-0700 (Pacific Daylight Time)
*/

@@ -38,22 +38,2 @@ (function (global, factory) {

/* Copyright (c) 2017-2018 Environmental Systems Research Institute, Inc.
* Apache-2.0 */
/**
* Used internally by the package to ensure that first order request options are passed through as request parameters.
*/
function appendCustomParams(oldOptions, newOptions) {
// only pass query parameters through in the request, not generic IRequestOptions props
Object.keys(oldOptions).forEach(function (key) {
if (key !== "url" &&
key !== "params" &&
key !== "authentication" &&
key !== "httpMethod" &&
key !== "fetch" &&
key !== "portal" &&
key !== "maxUrlLength") {
newOptions.params[key] = oldOptions[key];
}
});
}
/* Copyright (c) 2017 Environmental Systems Research Institute, Inc.

@@ -108,3 +88,3 @@ * Apache-2.0 */

var options = __assign({ params: {}, httpMethod: "GET", url: requestOptions.url }, requestOptions);
appendCustomParams(requestOptions, options);
arcgisRestRequest.appendCustomParams(requestOptions, options);
// set default query parameters

@@ -146,3 +126,3 @@ if (!options.params.where) {

var options = __assign({ params: {} }, requestOptions);
appendCustomParams(requestOptions, options);
arcgisRestRequest.appendCustomParams(requestOptions, options);
// mixin, don't overwrite

@@ -180,3 +160,3 @@ options.params.features = requestOptions.adds;

var options = __assign({ params: {} }, requestOptions);
appendCustomParams(requestOptions, options);
arcgisRestRequest.appendCustomParams(requestOptions, options);
// mixin, don't overwrite

@@ -211,3 +191,3 @@ options.params.features = requestOptions.updates;

var options = __assign({ params: {} }, requestOptions);
appendCustomParams(requestOptions, options);
arcgisRestRequest.appendCustomParams(requestOptions, options);
// mixin, don't overwrite

@@ -343,3 +323,3 @@ options.params.objectIds = requestOptions.deletes;

var options = __assign({ params: {}, httpMethod: "GET", url: requestOptions.url }, requestOptions);
appendCustomParams(requestOptions, options);
arcgisRestRequest.appendCustomParams(requestOptions, options);
if (!options.params.definitionExpression) {

@@ -346,0 +326,0 @@ options.params.definitionExpression = "1=1";

/* @preserve
* @esri/arcgis-rest-feature-service - v1.13.0 - Apache-2.0
* @esri/arcgis-rest-feature-service - v1.13.1 - Apache-2.0
* Copyright (c) 2017-2018 Esri, Inc.
* Tue Oct 09 2018 07:54:16 GMT-0700 (PDT)
* Mon Oct 15 2018 12:06:23 GMT-0700 (Pacific Daylight Time)
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@esri/arcgis-rest-request")):"function"==typeof define&&define.amd?define(["exports","@esri/arcgis-rest-request"],t):t(e.arcgisRest=e.arcgisRest||{},e.arcgisRest)}(this,function(e,t){"use strict";var r=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e};function a(e,t){Object.keys(e).forEach(function(r){"url"!==r&&"params"!==r&&"authentication"!==r&&"httpMethod"!==r&&"fetch"!==r&&"portal"!==r&&"maxUrlLength"!==r&&(t.params[r]=e[r])})}e.getFeature=function(e){var a=e.url+"/"+e.id,s=r({httpMethod:"GET"},e);return t.request(a,s).then(function(e){return e.feature})},e.queryFeatures=function(e){var s=r({params:{},httpMethod:"GET",url:e.url},e);return a(e,s),s.params.where||(s.params.where="1=1"),s.params.outFields||(s.params.outFields="*"),t.request(s.url+"/query",s)},e.addFeatures=function(e){var s=e.url+"/addFeatures",u=r({params:{}},e);return a(e,u),u.params.features=e.adds,delete u.params.adds,t.request(s,u)},e.updateFeatures=function(e){var s=e.url+"/updateFeatures",u=r({params:{}},e);return a(e,u),u.params.features=e.updates,delete u.params.updates,t.request(s,u)},e.deleteFeatures=function(e){var s=e.url+"/deleteFeatures",u=r({params:{}},e);return a(e,u),u.params.objectIds=e.deletes,delete u.params.deletes,t.request(s,u)},e.getAttachments=function(e){return t.request(e.url+"/"+e.featureId+"/attachments",e)},e.addAttachment=function(e){var a=r({params:{}},e);return a.params.attachment=e.attachment,t.request(a.url+"/"+a.featureId+"/addAttachment",a)},e.updateAttachment=function(e){var a=r({params:{}},e);return a.params.attachment=e.attachment,a.params.attachmentId=e.attachmentId,t.request(a.url+"/"+a.featureId+"/updateAttachment",a)},e.deleteAttachments=function(e){var a=r({params:{}},e);return a.params.attachmentIds=e.attachmentIds,t.request(a.url+"/"+a.featureId+"/deleteAttachments",a)},e.queryRelated=function(e){var s=r({params:{},httpMethod:"GET",url:e.url},e);return a(e,s),s.params.definitionExpression||(s.params.definitionExpression="1=1"),s.params.outFields||(s.params.outFields="*"),s.params.relationshipId||(s.params.relationshipId=0),t.request(s.url+"/queryRelatedRecords",s)},Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@esri/arcgis-rest-request")):"function"==typeof define&&define.amd?define(["exports","@esri/arcgis-rest-request"],t):t(e.arcgisRest=e.arcgisRest||{},e.arcgisRest)}(this,function(e,t){"use strict";var a=Object.assign||function(e){for(var t,a=1,r=arguments.length;a<r;a++)for(var s in t=arguments[a])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e};e.getFeature=function(e){var r=e.url+"/"+e.id,s=a({httpMethod:"GET"},e);return t.request(r,s).then(function(e){return e.feature})},e.queryFeatures=function(e){var r=a({params:{},httpMethod:"GET",url:e.url},e);return t.appendCustomParams(e,r),r.params.where||(r.params.where="1=1"),r.params.outFields||(r.params.outFields="*"),t.request(r.url+"/query",r)},e.addFeatures=function(e){var r=e.url+"/addFeatures",s=a({params:{}},e);return t.appendCustomParams(e,s),s.params.features=e.adds,delete s.params.adds,t.request(r,s)},e.updateFeatures=function(e){var r=e.url+"/updateFeatures",s=a({params:{}},e);return t.appendCustomParams(e,s),s.params.features=e.updates,delete s.params.updates,t.request(r,s)},e.deleteFeatures=function(e){var r=e.url+"/deleteFeatures",s=a({params:{}},e);return t.appendCustomParams(e,s),s.params.objectIds=e.deletes,delete s.params.deletes,t.request(r,s)},e.getAttachments=function(e){return t.request(e.url+"/"+e.featureId+"/attachments",e)},e.addAttachment=function(e){var r=a({params:{}},e);return r.params.attachment=e.attachment,t.request(r.url+"/"+r.featureId+"/addAttachment",r)},e.updateAttachment=function(e){var r=a({params:{}},e);return r.params.attachment=e.attachment,r.params.attachmentId=e.attachmentId,t.request(r.url+"/"+r.featureId+"/updateAttachment",r)},e.deleteAttachments=function(e){var r=a({params:{}},e);return r.params.attachmentIds=e.attachmentIds,t.request(r.url+"/"+r.featureId+"/deleteAttachments",r)},e.queryRelated=function(e){var r=a({params:{},httpMethod:"GET",url:e.url},e);return t.appendCustomParams(e,r),r.params.definitionExpression||(r.params.definitionExpression="1=1"),r.params.outFields||(r.params.outFields="*"),r.params.relationshipId||(r.params.relationshipId=0),t.request(r.url+"/queryRelatedRecords",r)},Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=feature-service.umd.min.js.map
{
"name": "@esri/arcgis-rest-feature-service",
"version": "1.13.0",
"version": "1.13.1",
"description": "Feature service helpers for @esri/arcgis-rest-request",

@@ -22,4 +22,4 @@ "main": "dist/node/index.js",

"devDependencies": {
"@esri/arcgis-rest-common-types": "^1.13.0",
"@esri/arcgis-rest-request": "^1.13.0"
"@esri/arcgis-rest-common-types": "^1.13.1",
"@esri/arcgis-rest-request": "^1.13.1"
},

@@ -26,0 +26,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc