@esri/arcgis-rest-service-admin
Advanced tools
Comparing version 3.6.0 to 3.7.0
/* @preserve | ||
* @esri/arcgis-rest-service-admin - v3.6.0 - Apache-2.0 | ||
* @esri/arcgis-rest-service-admin - v3.7.0 - Apache-2.0 | ||
* Copyright (c) 2017-2023 Esri, Inc. | ||
* Fri Jan 13 2023 14:56:23 GMT-0700 (Mountain Standard Time) | ||
* Thu Sep 07 2023 17:22:07 GMT-0700 (Pacific Daylight Time) | ||
*/ | ||
@@ -6,0 +6,0 @@ (function (global, factory) { |
/* @preserve | ||
* @esri/arcgis-rest-service-admin - v3.6.0 - Apache-2.0 | ||
* @esri/arcgis-rest-service-admin - v3.7.0 - Apache-2.0 | ||
* Copyright (c) 2017-2023 Esri, Inc. | ||
* Fri Jan 13 2023 14:56:25 GMT-0700 (Mountain Standard Time) | ||
* Thu Sep 07 2023 17:22:09 GMT-0700 (Pacific Daylight Time) | ||
*/ | ||
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("@esri/arcgis-rest-request"),require("@esri/arcgis-rest-portal")):"function"==typeof define&&define.amd?define(["exports","@esri/arcgis-rest-request","@esri/arcgis-rest-portal"],r):r((e="undefined"!=typeof globalThis?globalThis:e||self).arcgisRest=e.arcgisRest||{},e.arcgisRest,e.arcgisRest)}(this,function(e,i,s){"use strict";var n=function(){return(n=Object.assign||function(e){for(var r,t=1,i=arguments.length;t<i;t++)for(var s in r=arguments[t])Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e}).apply(this,arguments)};e.addToServiceDefinition=function(e,r){return e=i.cleanUrl(e).replace("/rest/services","/rest/admin/services")+"/addToDefinition",r.params=n({addToDefinition:{}},r.params),r.layers&&0<r.layers.length&&(r.params.addToDefinition.layers=r.layers),r.tables&&0<r.tables.length&&(r.params.addToDefinition.tables=r.tables),i.request(e,r)},e.createFeatureService=function(t){return s.determineOwner(t).then(function(e){var r=n(n({},t),{rawResponse:!1}),e=s.getPortalUrl(t)+"/content/users/"+e+(r.folderId&&"/"!==r.folderId?"/"+r.folderId:"")+"/createService";return r.params=n({createParameters:r.item,outputType:"featureService"},r.params),i.request(e,r)})},e.getServiceAdminInfo=function(e,r){return e=e.replace("/rest/services","/rest/admin/services"),i.request(e,{authentication:r,params:{f:"json"}})},e.getViewSources=function(e,r){return i.request(e+"/sources",{authentication:r})},e.updateServiceDefinition=function(e,r){return e=i.cleanUrl(e).replace("/rest/services","/rest/admin/services")+"/updateDefinition",r.params=n({updateDefinition:{}},r.params),r.updateDefinition&&(r.params.updateDefinition=r.updateDefinition),i.request(e,r)},Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=service-admin.umd.min.js.map |
{ | ||
"name": "@esri/arcgis-rest-service-admin", | ||
"version": "3.6.0", | ||
"version": "3.7.0", | ||
"description": "Service administration helpers for @esri/arcgis-rest-js", | ||
@@ -16,9 +16,9 @@ "main": "dist/node/index.js", | ||
"dependencies": { | ||
"@esri/arcgis-rest-types": "^3.6.0", | ||
"@esri/arcgis-rest-types": "^3.7.0", | ||
"tslib": "^1.13.0" | ||
}, | ||
"devDependencies": { | ||
"@esri/arcgis-rest-auth": "^3.6.0", | ||
"@esri/arcgis-rest-portal": "^3.6.0", | ||
"@esri/arcgis-rest-request": "^3.6.0" | ||
"@esri/arcgis-rest-auth": "^3.7.0", | ||
"@esri/arcgis-rest-portal": "^3.7.0", | ||
"@esri/arcgis-rest-request": "^3.7.0" | ||
}, | ||
@@ -25,0 +25,0 @@ "peerDependencies": { |
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
68501