import { BaseManifestGenerator } from "../../BaseManifestGenerator" ; import { TabManifestUpdater } from "../generator19/TabManifestUpdater" ; import { BotManifestUpdater } from "../generator18/BotManifestUpdater" ; import { ConnectorManifestUpdater } from "../generator18/ConnectorManifestUpdater" ; import { MessageExtensionManifestUpdater } from "../generator18/MessageExtensionManifestUpdater" ; import { GeneratorTeamsAppOptions } from "../../../GeneratorTeamsAppOptions" ; import { LocalizationManifestUpdater } from "../generator18/LocalizationManifestUpdater" ; import * as chalk from 'chalk' ; export class ManifestGenerator extends BaseManifestGenerator { constructor ( ) { super ( ) ; this . tabUpdater = new TabManifestUpdater ( ) ; this . botUpdater = new BotManifestUpdater ( ) ; this . connectorUpdater = new ConnectorManifestUpdater ( ) ; this . messageExtensionUpdater = new MessageExtensionManifestUpdater ( ) ; this . localizationUpdater = new LocalizationManifestUpdater ( ) ; } public generateManifest ( options ) { const manifest = super . generateManifest ( options ) ; manifest [ "$schema" ] = "https://developer.microsoft.com/en-us/json-schemas/teams/v1.10/MicrosoftTeams.schema.json" ; manifest . manifestVersion = "1.10" ; return manifest ; } public supportsUpdateManifest ( from ) { return from === "1.8" || from === "1.9" ; } public updateManifest ( manifest , log ? ) { switch ( manifest . manifestVersion ) { case "1.8" : case "1.9" : manifest [ "$schema" ] = "https://developer.microsoft.com/en-us/json-schemas/teams/v1.10/MicrosoftTeams.schema.json" ; manifest . manifestVersion = "1.10" ; return manifest ; default : throw "Unable to update manifest" ; } } ; }