Version 8.21.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 

Module Import:

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

CDN:

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

CDN with SRI: