import { IExplanationMap } from "@zowe/imperative" ; import { explainProvisionedInstanceActionsFull , explainProvisionedInstanceActionsSummary , IProvisionedInstanceActions } from "./IProvisionedInstanceActions" ; import { explainProvisionedInstanceVariable , IProvisionedInstanceVariable } from "./IProvisionedInstanceVariable" ; export interface export interface IProvisionedInstance { type { string } memberof type : string ; type { string } memberof system : string ; type { string } memberof sysplex : string ; type { string } memberof vendor : string ; type { string } memberof version : string ; type { string } memberof description : string ; type { string } memberof owner : string ; type { string } memberof provider : string ; type { string } memberof state : string ; type { string } memberof ssin ? : string ; type { string } memberof email ? : string ; type { string } memberof "object-id" : string ; type { string } memberof "object-name" : string ; type { string } memberof "object-uri" ? : string ; type { string } memberof "registry-type" : string ; type { string } memberof "external-name" : string ; type { string } memberof "system-nickname" : string ; type { string } memberof "catalog-object-id" : string ; type { string } memberof "catalog-object-name" : string ; type { string } memberof "workflow-key" ? : string ; type { string } memberof "workflow-clean-after-provisioned" ? : string ; type { string } memberof "jobs-disposition" ? : string ; type { string } memberof "created-time" : string ; type { string } memberof "last-modified-time" : string ; type { string } memberof "created-by-user" : string ; type { string } memberof "last-modified-by-user" : string ; type { string } memberof "last-action-name" : string ; type { string } memberof "last-action-object-id" : string ; type { string } memberof "last-action-state" : string ; type { string } memberof "user-data" ? : string ; type { string } memberof "user-data-id" : string ; type { string } memberof "tenant-id" : string ; type { string } memberof "tenant-name" : string ; type { string } memberof "domain-id" : string ; type { string } memberof "domain-name" : string ; type { string } memberof "job-statement" ? : string ; type { string } memberof "account-info" ? : string ; type { boolean } memberof "runAsUser-audit" ? : boolean ; type { string } memberof "workflow-start-time" ? : string ; type { string } memberof "workflow-stop-time" ? : string ; type { IProvisionedInstanceVariable [ ] } memberof variables ? : IProvisionedInstanceVariable [ ] ; type { IProvisionedInstanceActions [ ] } memberof actions ? : IProvisionedInstanceActions [ ] ; } const prettySummary = { "external-name" : "Name" , "state" : "State" , "object-id" : "Object Id" , "type" : "Type" , "system" : "System" , "sysplex" : "Sysplex" , "version" : "Version" , "description" : "Description" , "owner" : "Owner" , "variables" : "Variables" , "actions" : "Actions" } ; const prettyFull = { ... prettySummary , "vendor" : "Vendor" , "provider" : "Provider" , "ssin" : "SSIN" , "object-name" : "Object Name" , "version" : "Version" , "email" : "E-Mail" , "object-uri" : "Object URI" , "registry-type" : "Registry Type" , "system-nickname" : "System Nickname" , "catalog-object-id" : "Catalog Object ID" , "catalog-object-name" : "Catalog Object Name" , "workflow-key" : "Workflow Key" , "workflow-clean-after-provisioned" : "Workflow Clean After Provisioned" , "jobs-disposition" : "Jobs Disposition" , "created-time" : "Created Time" , "last-modified-time" : "Last Modified Time" , "created-by-user" : "Created By User" , "last-modified-by-user" : "Last Modified By User" , "last-action-name" : "Last Action Name" , "last-action-object-id" : "Last Action Object ID" , "last-action-state" : "Last Action State" , "user-data" : "User Data" , "user-data-id" : "User Data ID" , "tenant-id" : "Tenant ID" , "tenant-name" : "Tenant Name" , "domain-id" : "Domain ID" , "domain-name" : "Domain Name" , "job-statement" : "Job Statement" , "account-info" : "Account Info" , "runAsUser-audit" : "Run As User Audit" , "workflow-start-time" : "Workflow Start Time" , "workflow-stop-time" : "Workflow Stop Time" } ; type IExplanationMap see { IExplanationMap } memberof export const explainProvisionedInstanceSummary = { ... prettySummary , ignoredKeys : "variables,actions" , explainedParentKey : null } ; type IExplanationMap see { IExplanationMap } memberof export const explainProvisionedInstanceSummaryWithVars = { ... prettySummary , explainedParentKey : null , variables : explainProvisionedInstanceVariable , ignoredKeys : "actions" } ; type IExplanationMap see { IExplanationMap } memberof export const explainProvisionedInstanceSummaryWithActions = { ... prettySummary , explainedParentKey : null , actions : explainProvisionedInstanceActionsSummary , ignoredKeys : "variables" } ; type IExplanationMap see { IExplanationMap } memberof export const explainProvisionedInstanceExtended = { ... prettyFull , explainedParentKey : null , actions : explainProvisionedInstanceActionsSummary , ignoredKeys : "variables" } ; type IExplanationMap see { IExplanationMap } memberof export const explainProvisionedInstanceFull = { ... prettyFull , explainedParentKey : null , ignoredKeys : null , variables : explainProvisionedInstanceVariable , actions : explainProvisionedInstanceActionsFull } ;