Version 9.8.0

@esri/hub-surveys

Module to interact with ArcGIS Hub Surveys in Node.js and modern browsers.

npm install:

npm install @esri/hub-surveys @esri/arcgis-rest-auth@^2.13.0 || 3  @esri/arcgis-rest-feature-layer@^2.13.0 || 3  @esri/arcgis-rest-portal@^2.13.0 || 3  @esri/arcgis-rest-request@^2.13.0 || 3  @esri/arcgis-rest-types@^2.13.0 || 3  @esri/hub-common@^8.0.0 || 9 

Module Import:

import {
  getDetailedSurveyStatus,
  getGroupSharingDetails,
  getSurveyStatus,
  getSurveyStatusFromSchedule,
  isDraft,
  isPublished,
  migrateFormPropertiesSettings,
  setAccess,
  setAccessRevertable,
  shareWithGroup,
  shareWithGroupRevertable,
  shouldDisplayResults,
  unshareWithGroup,
  unshareWithGroupRevertable,
} from "@esri/hub-surveys";

CDN:

<script src="https://unpkg.com/@esri/hub-surveys@9.8.0/dist/umd/surveys.umd.min.js"></script>

CDN with SRI: