/*! * Copyright (C) Microsoft Corporation. All rights reserved. */ import { z } from 'zod'; export declare const VERSION = "1.0"; export declare const ShareLinkDetailsSchema: z.ZodObject<{ linkKind: z.ZodNumber; shareId: z.ZodString; url: z.ZodString; listId: z.ZodOptional; siteId: z.ZodOptional; }, "strip", z.ZodTypeAny, { url: string; linkKind: number; shareId: string; listId?: string | undefined; siteId?: string | undefined; }, { url: string; linkKind: number; shareId: string; listId?: string | undefined; siteId?: string | undefined; }>; /** * Per-table binding override. Indirects the table identifier through a Dataverse * environment variable, which the RP resolves to a concrete table name at launch, * so a config can be promoted across environments unchanged. */ export declare const TableNameOverrideSchema: z.ZodObject<{ environmentVariableName: z.ZodString; }, "strip", z.ZodTypeAny, { environmentVariableName: string; }, { environmentVariableName: string; }>; export declare const DataSetSchema: z.ZodObject<{ dataSources: z.ZodRecord; tableNameOverride: z.ZodOptional>; }, "strip", z.ZodTypeAny, { tableName?: string | undefined; tableNameOverride?: { environmentVariableName: string; } | undefined; }, { tableName?: string | undefined; tableNameOverride?: { environmentVariableName: string; } | undefined; }>>; datasetOverride: z.ZodOptional>; siteId: z.ZodOptional; }, "strip", z.ZodTypeAny, { dataSources: Record; siteId?: string | undefined; datasetOverride?: { environmentVariableName: string; } | undefined; }, { dataSources: Record; siteId?: string | undefined; datasetOverride?: { environmentVariableName: string; } | undefined; }>; export declare const WorkflowDetailsSchema: z.ZodObject<{ workflowEntityId: z.ZodString; workflowDisplayName: z.ZodString; workflowName: z.ZodString; dependencies: z.ZodOptional>; }, "strip", z.ZodTypeAny, { workflowEntityId: string; workflowDisplayName: string; workflowName: string; dependencies?: Record | undefined; }, { workflowEntityId: string; workflowDisplayName: string; workflowName: string; dependencies?: Record | undefined; }>; export declare const ConnectionReferenceSchema: z.ZodObject<{ id: z.ZodString; displayName: z.ZodString; dataSources: z.ZodOptional>; authenticationType: z.ZodOptional>; sharedConnectionId: z.ZodOptional>; dataSets: z.ZodOptional; tableNameOverride: z.ZodOptional>; }, "strip", z.ZodTypeAny, { tableName?: string | undefined; tableNameOverride?: { environmentVariableName: string; } | undefined; }, { tableName?: string | undefined; tableNameOverride?: { environmentVariableName: string; } | undefined; }>>; datasetOverride: z.ZodOptional>; siteId: z.ZodOptional; }, "strip", z.ZodTypeAny, { dataSources: Record; siteId?: string | undefined; datasetOverride?: { environmentVariableName: string; } | undefined; }, { dataSources: Record; siteId?: string | undefined; datasetOverride?: { environmentVariableName: string; } | undefined; }>>>; xrmConnectionReferenceLogicalName: z.ZodOptional; dataSourcesShareLinks: z.ZodOptional; siteId: z.ZodOptional; }, "strip", z.ZodTypeAny, { url: string; linkKind: number; shareId: string; listId?: string | undefined; siteId?: string | undefined; }, { url: string; linkKind: number; shareId: string; listId?: string | undefined; siteId?: string | undefined; }>>>; workflowDetails: z.ZodOptional>; }, "strip", z.ZodTypeAny, { workflowEntityId: string; workflowDisplayName: string; workflowName: string; dependencies?: Record | undefined; }, { workflowEntityId: string; workflowDisplayName: string; workflowName: string; dependencies?: Record | undefined; }>>; isOnPremiseConnection: z.ZodOptional; gatewayObjectIdHint: z.ZodOptional; }, "strip", z.ZodTypeAny, { displayName: string; id: string; dataSources?: string[] | undefined; authenticationType?: string | null | undefined; sharedConnectionId?: string | null | undefined; dataSets?: Record; siteId?: string | undefined; datasetOverride?: { environmentVariableName: string; } | undefined; }> | undefined; xrmConnectionReferenceLogicalName?: string | undefined; dataSourcesShareLinks?: Record | undefined; workflowDetails?: { workflowEntityId: string; workflowDisplayName: string; workflowName: string; dependencies?: Record | undefined; } | undefined; isOnPremiseConnection?: boolean | undefined; gatewayObjectIdHint?: string | undefined; }, { displayName: string; id: string; dataSources?: string[] | undefined; authenticationType?: string | null | undefined; sharedConnectionId?: string | null | undefined; dataSets?: Record; siteId?: string | undefined; datasetOverride?: { environmentVariableName: string; } | undefined; }> | undefined; xrmConnectionReferenceLogicalName?: string | undefined; dataSourcesShareLinks?: Record | undefined; workflowDetails?: { workflowEntityId: string; workflowDisplayName: string; workflowName: string; dependencies?: Record | undefined; } | undefined; isOnPremiseConnection?: boolean | undefined; gatewayObjectIdHint?: string | undefined; }>; export declare const DataverseDataSourceSchema: z.ZodObject<{ entitySetName: z.ZodString; logicalName: z.ZodString; isHidden: z.ZodDefault; }, "strip", z.ZodTypeAny, { logicalName: string; entitySetName: string; isHidden: boolean; }, { logicalName: string; entitySetName: string; isHidden?: boolean | undefined; }>; export declare const DatabaseReferenceSchema: z.ZodObject<{ dataSources: z.ZodRecord; }, "strip", z.ZodTypeAny, { logicalName: string; entitySetName: string; isHidden: boolean; }, { logicalName: string; entitySetName: string; isHidden?: boolean | undefined; }>>; environmentVariableName: z.ZodString; }, "strip", z.ZodTypeAny, { environmentVariableName: string; dataSources: Record; }, { environmentVariableName: string; dataSources: Record; }>; export declare const AppTypes: readonly ["CodeApp", "MobileApp"]; export type AppType = (typeof AppTypes)[number]; /** * Player/chrome settings authored in `power.config.json` under `appSettings`. * * These are host-facing settings (they control the Power Apps player chrome, not the app's own * logic). The publish pipeline flattens them into the app's metadata tags, and the web player * reads those tags at launch. All fields are optional; the player applies its own defaults when a * setting is absent. Kept permissive (`passthrough`) so newer CLI-authored settings round-trip * through an older schema without being dropped. */ export declare const AppSettingsSchema: z.ZodObject<{ /** Show or hide the default Power Apps header/navigation bar. Defaults to shown. */ showHeader: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ /** Show or hide the default Power Apps header/navigation bar. Defaults to shown. */ showHeader: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ /** Show or hide the default Power Apps header/navigation bar. Defaults to shown. */ showHeader: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>; export declare const ConfigSchemaV1: z.ZodObject<{ version: z.ZodOptional>; appId: z.ZodNullable>; appDisplayName: z.ZodOptional; appType: z.ZodOptional>; description: z.ZodOptional>; environmentId: z.ZodOptional; buildPath: z.ZodOptional; buildEntryPoint: z.ZodOptional; logoPath: z.ZodOptional; localAppUrl: z.ZodOptional; region: z.ZodOptional>; appSettings: z.ZodOptional; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ /** Show or hide the default Power Apps header/navigation bar. Defaults to shown. */ showHeader: z.ZodOptional; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ /** Show or hide the default Power Apps header/navigation bar. Defaults to shown. */ showHeader: z.ZodOptional; }, z.ZodTypeAny, "passthrough">>>; connectionReferences: z.ZodOptional>; authenticationType: z.ZodOptional>; sharedConnectionId: z.ZodOptional>; dataSets: z.ZodOptional; tableNameOverride: z.ZodOptional>; }, "strip", z.ZodTypeAny, { tableName?: string | undefined; tableNameOverride?: { environmentVariableName: string; } | undefined; }, { tableName?: string | undefined; tableNameOverride?: { environmentVariableName: string; } | undefined; }>>; datasetOverride: z.ZodOptional>; siteId: z.ZodOptional; }, "strip", z.ZodTypeAny, { dataSources: Record; siteId?: string | undefined; datasetOverride?: { environmentVariableName: string; } | undefined; }, { dataSources: Record; siteId?: string | undefined; datasetOverride?: { environmentVariableName: string; } | undefined; }>>>; xrmConnectionReferenceLogicalName: z.ZodOptional; dataSourcesShareLinks: z.ZodOptional; siteId: z.ZodOptional; }, "strip", z.ZodTypeAny, { url: string; linkKind: number; shareId: string; listId?: string | undefined; siteId?: string | undefined; }, { url: string; linkKind: number; shareId: string; listId?: string | undefined; siteId?: string | undefined; }>>>; workflowDetails: z.ZodOptional>; }, "strip", z.ZodTypeAny, { workflowEntityId: string; workflowDisplayName: string; workflowName: string; dependencies?: Record | undefined; }, { workflowEntityId: string; workflowDisplayName: string; workflowName: string; dependencies?: Record | undefined; }>>; isOnPremiseConnection: z.ZodOptional; gatewayObjectIdHint: z.ZodOptional; }, "strip", z.ZodTypeAny, { displayName: string; id: string; dataSources?: string[] | undefined; authenticationType?: string | null | undefined; sharedConnectionId?: string | null | undefined; dataSets?: Record; siteId?: string | undefined; datasetOverride?: { environmentVariableName: string; } | undefined; }> | undefined; xrmConnectionReferenceLogicalName?: string | undefined; dataSourcesShareLinks?: Record | undefined; workflowDetails?: { workflowEntityId: string; workflowDisplayName: string; workflowName: string; dependencies?: Record | undefined; } | undefined; isOnPremiseConnection?: boolean | undefined; gatewayObjectIdHint?: string | undefined; }, { displayName: string; id: string; dataSources?: string[] | undefined; authenticationType?: string | null | undefined; sharedConnectionId?: string | null | undefined; dataSets?: Record; siteId?: string | undefined; datasetOverride?: { environmentVariableName: string; } | undefined; }> | undefined; xrmConnectionReferenceLogicalName?: string | undefined; dataSourcesShareLinks?: Record | undefined; workflowDetails?: { workflowEntityId: string; workflowDisplayName: string; workflowName: string; dependencies?: Record | undefined; } | undefined; isOnPremiseConnection?: boolean | undefined; gatewayObjectIdHint?: string | undefined; }>>>; databaseReferences: z.ZodOptional; }, "strip", z.ZodTypeAny, { logicalName: string; entitySetName: string; isHidden: boolean; }, { logicalName: string; entitySetName: string; isHidden?: boolean | undefined; }>>; environmentVariableName: z.ZodString; }, "strip", z.ZodTypeAny, { environmentVariableName: string; dataSources: Record; }, { environmentVariableName: string; dataSources: Record; }>>>; }, "strip", z.ZodTypeAny, { region?: "local" | "dev" | "test" | "preprod" | "preview" | "prod" | "gccmoderate" | "gcchigh" | "dod" | "mooncake" | "ex" | "rx" | undefined; version?: "1.0" | undefined; description?: string | null | undefined; appId?: string | null | undefined; appDisplayName?: string | undefined; appType?: "CodeApp" | "MobileApp" | undefined; environmentId?: string | undefined; buildPath?: string | undefined; buildEntryPoint?: string | undefined; logoPath?: string | undefined; localAppUrl?: string | undefined; appSettings?: z.objectOutputType<{ /** Show or hide the default Power Apps header/navigation bar. Defaults to shown. */ showHeader: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; connectionReferences?: Record; siteId?: string | undefined; datasetOverride?: { environmentVariableName: string; } | undefined; }> | undefined; xrmConnectionReferenceLogicalName?: string | undefined; dataSourcesShareLinks?: Record | undefined; workflowDetails?: { workflowEntityId: string; workflowDisplayName: string; workflowName: string; dependencies?: Record | undefined; } | undefined; isOnPremiseConnection?: boolean | undefined; gatewayObjectIdHint?: string | undefined; }> | undefined; databaseReferences?: Record; }> | undefined; }, { region?: "local" | "dev" | "test" | "preprod" | "preview" | "prod" | "gccmoderate" | "gcchigh" | "dod" | "mooncake" | "ex" | "rx" | undefined; version?: "1.0" | undefined; description?: string | null | undefined; appId?: string | null | undefined; appDisplayName?: string | undefined; appType?: "CodeApp" | "MobileApp" | undefined; environmentId?: string | undefined; buildPath?: string | undefined; buildEntryPoint?: string | undefined; logoPath?: string | undefined; localAppUrl?: string | undefined; appSettings?: z.objectInputType<{ /** Show or hide the default Power Apps header/navigation bar. Defaults to shown. */ showHeader: z.ZodOptional; }, z.ZodTypeAny, "passthrough"> | undefined; connectionReferences?: Record; siteId?: string | undefined; datasetOverride?: { environmentVariableName: string; } | undefined; }> | undefined; xrmConnectionReferenceLogicalName?: string | undefined; dataSourcesShareLinks?: Record | undefined; workflowDetails?: { workflowEntityId: string; workflowDisplayName: string; workflowName: string; dependencies?: Record | undefined; } | undefined; isOnPremiseConnection?: boolean | undefined; gatewayObjectIdHint?: string | undefined; }> | undefined; databaseReferences?: Record; }> | undefined; }>; export type ShareLinkDetails = z.infer; export type DataSet = z.infer; export type WorkflowDetails = z.infer; export type ConnectionReference = z.infer; export type DataverseDataSource = z.infer; export type DatabaseReference = z.infer; export type RepoConfig = z.infer; /** * Partial app settings as stored in `power.config.json` — every field optional. Use * `resolveAppSettings` (in ../AppSettings) to fill in defaults for a fully-resolved view. */ export type StoredAppSettings = z.infer; //# sourceMappingURL=Schema.d.ts.map