UNPKG

sfdx-hardis

Version:

Swiss-army-knife Toolbox for Salesforce. Allows you to define a complete CD/CD Pipeline. Orchestrate base commands and assist users with interactive wizards

34 lines (33 loc) 1.43 kB
import { SfCommand } from '@salesforce/sf-plugins-core'; import { AnyJson } from '@salesforce/ts-types'; import Cloudflare from 'cloudflare'; export default class MkDocsToCloudflare extends SfCommand<any> { static title: string; static description: string; static examples: string[]; static flags: any; static requiresProject: boolean; protected debugMode: boolean; protected apiEmail: string | undefined; protected apiToken: string | undefined; protected accountId: string | undefined; protected client: Cloudflare; protected projectName: string | null; protected currentGitBranch: string; protected defaultLoginMethodType: string; protected defaultAccessEmailDomain: string; protected pagesProjectName: string; protected pagesProject: Cloudflare.Pages.Projects.Project; protected accessPolicyName: string; protected accessPolicy: Cloudflare.ZeroTrust.Access.Policies.PolicyGetResponse | null; protected extraPolicyIds: string[]; protected accessApp: Cloudflare.ZeroTrust.Access.Applications.ApplicationGetResponse.SelfHostedApplication | null; run(): Promise<AnyJson>; private getProjectName; private setupCloudflareClient; private ensureCloudflarePagesProject; private ensureCloudflareAccessPolicy; private ensureCloudflareAccessApplication; private ensureCloudflareAccessApplicationPolicy; private uploadHtmlPages; }