import { IModelTemplate , IHubRequestOptions , IModel } from "@esri/hub-common" ; import { _shareItemsToSiteGroups } from "./_share-items-to-site-groups" ; import { _updatePages } from "./_update-pages" ; param { object } siteModel param { Array } solutionModels param { IHubRequestOptions } hubRequestOptions export function siteSecondPass ( siteModel , solutionModels , hubRequestOptions ) { let secondPassPromises = [ ] ; secondPassPromises = secondPassPromises . concat ( _shareItemsToSiteGroups ( siteModel , ( solutionModels as unknown ) as IModel [ ] , hubRequestOptions ) ) ; secondPassPromises = secondPassPromises . concat ( _updatePages ( siteModel , solutionModels , hubRequestOptions ) ) ; return Promise . all ( secondPassPromises ) ; }