push neon reactor

This commit is contained in:
2026-07-12 15:11:38 +02:00
parent 172e72dbcd
commit aeab5f7820
9597 changed files with 2407488 additions and 0 deletions
@@ -0,0 +1,34 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
import type * as V1 from './V1/Schema.js';
/**
* Supported data source types in the PowerDataRuntime
*/
export declare enum DataSources {
/** Dataverse data source */
Dataverse = "Dataverse",
/** Generic connector data source */
Connector = "Connector"
}
export interface ShareLinkDetailsByVersion {
V1: V1.ShareLinkDetails;
}
export interface DataSetByVersion {
V1: V1.DataSet;
}
export interface DatabaseReferenceByVersion {
V1: V1.DatabaseReference;
}
export interface ConnectionReferenceByVersion {
V1: V1.ConnectionReference;
}
export interface ConfigByVersion {
V1: V1.RepoConfig;
}
export type DataSet<V extends keyof DataSetByVersion = keyof DataSetByVersion> = DataSetByVersion[V];
export type ShareLinkDetails<V extends keyof ShareLinkDetailsByVersion = keyof ShareLinkDetailsByVersion> = ShareLinkDetailsByVersion[V];
export type DatabaseReference<V extends keyof DatabaseReferenceByVersion = keyof DatabaseReferenceByVersion> = DatabaseReferenceByVersion[V];
export type ConnectionReference<V extends keyof ConnectionReferenceByVersion = keyof ConnectionReferenceByVersion> = ConnectionReferenceByVersion[V];
export type PowerAppsRepoConfig<V extends keyof ConfigByVersion = keyof ConfigByVersion> = ConfigByVersion[V];
//# sourceMappingURL=Config.types.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"Config.types.d.ts","sourceRoot":"","sources":["../../src/Config/Config.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,KAAK,EAAE,MAAM,aAAa,CAAC;AAEvC;;GAEG;AACH,oBAAY,WAAW;IACrB,4BAA4B;IAC5B,SAAS,cAAc;IACvB,oCAAoC;IACpC,SAAS,cAAc;CACxB;AAED,MAAM,WAAW,yBAAyB;IACxC,EAAE,EAAE,EAAE,CAAC,gBAAgB,CAAC;CACzB;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,EAAE,CAAC,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,0BAA0B;IACzC,EAAE,EAAE,EAAE,CAAC,iBAAiB,CAAC;CAC1B;AAED,MAAM,WAAW,4BAA4B;IAC3C,EAAE,EAAE,EAAE,CAAC,mBAAmB,CAAC;CAC5B;AAED,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,EAAE,CAAC,UAAU,CAAC;CACnB;AAED,MAAM,MAAM,OAAO,CAAC,CAAC,SAAS,MAAM,gBAAgB,GAAG,MAAM,gBAAgB,IAC3E,gBAAgB,CAAC,CAAC,CAAC,CAAC;AAEtB,MAAM,MAAM,gBAAgB,CAC1B,CAAC,SAAS,MAAM,yBAAyB,GAAG,MAAM,yBAAyB,IACzE,yBAAyB,CAAC,CAAC,CAAC,CAAC;AAEjC,MAAM,MAAM,iBAAiB,CAC3B,CAAC,SAAS,MAAM,0BAA0B,GAAG,MAAM,0BAA0B,IAC3E,0BAA0B,CAAC,CAAC,CAAC,CAAC;AAElC,MAAM,MAAM,mBAAmB,CAC7B,CAAC,SAAS,MAAM,4BAA4B,GAAG,MAAM,4BAA4B,IAC/E,4BAA4B,CAAC,CAAC,CAAC,CAAC;AAEpC,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,MAAM,eAAe,GAAG,MAAM,eAAe,IACrF,eAAe,CAAC,CAAC,CAAC,CAAC"}
@@ -0,0 +1,14 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
/**
* Supported data source types in the PowerDataRuntime
*/
export var DataSources;
(function (DataSources) {
/** Dataverse data source */
DataSources["Dataverse"] = "Dataverse";
/** Generic connector data source */
DataSources["Connector"] = "Connector";
})(DataSources || (DataSources = {}));
//# sourceMappingURL=Config.types.js.map
@@ -0,0 +1 @@
{"version":3,"file":"Config.types.js","sourceRoot":"","sources":["../../src/Config/Config.types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH;;GAEG;AACH,MAAM,CAAN,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,4BAA4B;IAC5B,sCAAuB,CAAA;IACvB,oCAAoC;IACpC,sCAAuB,CAAA;AACzB,CAAC,EALW,WAAW,KAAX,WAAW,QAKtB"}
@@ -0,0 +1,7 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
import type { PowerAppsRepoConfig } from './Config.types.js';
export declare function readRepoConfig(configPath: string): Promise<PowerAppsRepoConfig>;
export declare function writeRepoConfig(configPath: string, config: PowerAppsRepoConfig): Promise<void>;
//# sourceMappingURL=ConfigManager.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"ConfigManager.d.ts","sourceRoot":"","sources":["../../src/Config/ConfigManager.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAE1D,wBAAsB,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAWrF;AAED,wBAAsB,eAAe,CACnC,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,mBAAmB,GAC1B,OAAO,CAAC,IAAI,CAAC,CAgBf"}
@@ -0,0 +1,29 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
import { getVfs } from '../VfsManager.js';
export async function readRepoConfig(configPath) {
const vfs = getVfs();
try {
const configContent = await vfs.readFile(configPath, 'utf-8');
return JSON.parse(configContent);
}
catch (error) {
throw new Error(`Failed to read repository configuration: ${error instanceof Error ? error.message : String(error)}`);
}
}
export async function writeRepoConfig(configPath, config) {
const vfs = getVfs();
// If we don't have a version, set it to '1.0' by default
if (!config.version) {
config.version = '1.0';
}
try {
const configContent = JSON.stringify(config, null, 2);
await vfs.writeFile(configPath, configContent, { encoding: 'utf-8' });
}
catch (error) {
throw new Error(`Failed to write repository configuration: ${error instanceof Error ? error.message : String(error)}`);
}
}
//# sourceMappingURL=ConfigManager.js.map
@@ -0,0 +1 @@
{"version":3,"file":"ConfigManager.js","sourceRoot":"","sources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@
/*!
* 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;
}, "strip", z.ZodTypeAny, {
url: string;
linkKind: number;
shareId: string;
}, {
url: string;
linkKind: number;
shareId: string;
}>;
export declare const DataSetSchema: z.ZodObject<{
dataSources: z.ZodRecord<z.ZodString, z.ZodObject<{
tableName: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
tableName?: string | undefined;
}, {
tableName?: string | undefined;
}>>;
datasetOverride: z.ZodOptional<z.ZodObject<{
environmentVariableName: z.ZodString;
}, "strip", z.ZodTypeAny, {
environmentVariableName: string;
}, {
environmentVariableName: string;
}>>;
siteId: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
dataSources: Record<string, {
tableName?: string | undefined;
}>;
datasetOverride?: {
environmentVariableName: string;
} | undefined;
siteId?: string | undefined;
}, {
dataSources: Record<string, {
tableName?: string | undefined;
}>;
datasetOverride?: {
environmentVariableName: string;
} | undefined;
siteId?: string | undefined;
}>;
export declare const WorkflowDetailsSchema: z.ZodObject<{
workflowEntityId: z.ZodString;
workflowDisplayName: z.ZodString;
workflowName: z.ZodString;
dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
}, "strip", z.ZodTypeAny, {
workflowEntityId: string;
workflowDisplayName: string;
workflowName: string;
dependencies?: Record<string, string> | undefined;
}, {
workflowEntityId: string;
workflowDisplayName: string;
workflowName: string;
dependencies?: Record<string, string> | undefined;
}>;
export declare const ConnectionReferenceSchema: z.ZodObject<{
id: z.ZodString;
displayName: z.ZodString;
dataSources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
authenticationType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
sharedConnectionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
dataSets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
dataSources: z.ZodRecord<z.ZodString, z.ZodObject<{
tableName: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
tableName?: string | undefined;
}, {
tableName?: string | undefined;
}>>;
datasetOverride: z.ZodOptional<z.ZodObject<{
environmentVariableName: z.ZodString;
}, "strip", z.ZodTypeAny, {
environmentVariableName: string;
}, {
environmentVariableName: string;
}>>;
siteId: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
dataSources: Record<string, {
tableName?: string | undefined;
}>;
datasetOverride?: {
environmentVariableName: string;
} | undefined;
siteId?: string | undefined;
}, {
dataSources: Record<string, {
tableName?: string | undefined;
}>;
datasetOverride?: {
environmentVariableName: string;
} | undefined;
siteId?: string | undefined;
}>>>;
xrmConnectionReferenceLogicalName: z.ZodOptional<z.ZodString>;
dataSourcesShareLinks: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
linkKind: z.ZodNumber;
shareId: z.ZodString;
url: z.ZodString;
}, "strip", z.ZodTypeAny, {
url: string;
linkKind: number;
shareId: string;
}, {
url: string;
linkKind: number;
shareId: string;
}>>>;
workflowDetails: z.ZodOptional<z.ZodObject<{
workflowEntityId: z.ZodString;
workflowDisplayName: z.ZodString;
workflowName: z.ZodString;
dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
}, "strip", z.ZodTypeAny, {
workflowEntityId: string;
workflowDisplayName: string;
workflowName: string;
dependencies?: Record<string, string> | undefined;
}, {
workflowEntityId: string;
workflowDisplayName: string;
workflowName: string;
dependencies?: Record<string, string> | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
id: string;
displayName: string;
dataSources?: string[] | undefined;
authenticationType?: string | null | undefined;
sharedConnectionId?: string | null | undefined;
dataSets?: Record<string, {
dataSources: Record<string, {
tableName?: string | undefined;
}>;
datasetOverride?: {
environmentVariableName: string;
} | undefined;
siteId?: string | undefined;
}> | undefined;
xrmConnectionReferenceLogicalName?: string | undefined;
dataSourcesShareLinks?: Record<string, {
url: string;
linkKind: number;
shareId: string;
}> | undefined;
workflowDetails?: {
workflowEntityId: string;
workflowDisplayName: string;
workflowName: string;
dependencies?: Record<string, string> | undefined;
} | undefined;
}, {
id: string;
displayName: string;
dataSources?: string[] | undefined;
authenticationType?: string | null | undefined;
sharedConnectionId?: string | null | undefined;
dataSets?: Record<string, {
dataSources: Record<string, {
tableName?: string | undefined;
}>;
datasetOverride?: {
environmentVariableName: string;
} | undefined;
siteId?: string | undefined;
}> | undefined;
xrmConnectionReferenceLogicalName?: string | undefined;
dataSourcesShareLinks?: Record<string, {
url: string;
linkKind: number;
shareId: string;
}> | undefined;
workflowDetails?: {
workflowEntityId: string;
workflowDisplayName: string;
workflowName: string;
dependencies?: Record<string, string> | undefined;
} | undefined;
}>;
export declare const DataverseDataSourceSchema: z.ZodObject<{
entitySetName: z.ZodString;
logicalName: z.ZodString;
isHidden: z.ZodDefault<z.ZodBoolean>;
}, "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<z.ZodString, z.ZodObject<{
entitySetName: z.ZodString;
logicalName: z.ZodString;
isHidden: z.ZodDefault<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
logicalName: string;
entitySetName: string;
isHidden: boolean;
}, {
logicalName: string;
entitySetName: string;
isHidden?: boolean | undefined;
}>>;
environmentVariableName: z.ZodString;
}, "strip", z.ZodTypeAny, {
dataSources: Record<string, {
logicalName: string;
entitySetName: string;
isHidden: boolean;
}>;
environmentVariableName: string;
}, {
dataSources: Record<string, {
logicalName: string;
entitySetName: string;
isHidden?: boolean | undefined;
}>;
environmentVariableName: string;
}>;
export declare const AppTypes: readonly ["CodeApp", "MobileApp"];
export type AppType = (typeof AppTypes)[number];
export declare const ConfigSchemaV1: z.ZodObject<{
version: z.ZodOptional<z.ZodLiteral<"1.0">>;
appId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
appDisplayName: z.ZodOptional<z.ZodString>;
appType: z.ZodOptional<z.ZodEnum<["CodeApp", "MobileApp"]>>;
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
environmentId: z.ZodOptional<z.ZodString>;
buildPath: z.ZodOptional<z.ZodString>;
buildEntryPoint: z.ZodOptional<z.ZodString>;
logoPath: z.ZodOptional<z.ZodString>;
localAppUrl: z.ZodOptional<z.ZodString>;
region: z.ZodOptional<z.ZodEnum<["local", "dev", "test", "preprod", "preview", "prod", "gccmoderate", "gcchigh", "dod", "mooncake", "ex", "rx"]>>;
connectionReferences: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
id: z.ZodString;
displayName: z.ZodString;
dataSources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
authenticationType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
sharedConnectionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
dataSets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
dataSources: z.ZodRecord<z.ZodString, z.ZodObject<{
tableName: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
tableName?: string | undefined;
}, {
tableName?: string | undefined;
}>>;
datasetOverride: z.ZodOptional<z.ZodObject<{
environmentVariableName: z.ZodString;
}, "strip", z.ZodTypeAny, {
environmentVariableName: string;
}, {
environmentVariableName: string;
}>>;
siteId: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
dataSources: Record<string, {
tableName?: string | undefined;
}>;
datasetOverride?: {
environmentVariableName: string;
} | undefined;
siteId?: string | undefined;
}, {
dataSources: Record<string, {
tableName?: string | undefined;
}>;
datasetOverride?: {
environmentVariableName: string;
} | undefined;
siteId?: string | undefined;
}>>>;
xrmConnectionReferenceLogicalName: z.ZodOptional<z.ZodString>;
dataSourcesShareLinks: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
linkKind: z.ZodNumber;
shareId: z.ZodString;
url: z.ZodString;
}, "strip", z.ZodTypeAny, {
url: string;
linkKind: number;
shareId: string;
}, {
url: string;
linkKind: number;
shareId: string;
}>>>;
workflowDetails: z.ZodOptional<z.ZodObject<{
workflowEntityId: z.ZodString;
workflowDisplayName: z.ZodString;
workflowName: z.ZodString;
dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
}, "strip", z.ZodTypeAny, {
workflowEntityId: string;
workflowDisplayName: string;
workflowName: string;
dependencies?: Record<string, string> | undefined;
}, {
workflowEntityId: string;
workflowDisplayName: string;
workflowName: string;
dependencies?: Record<string, string> | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
id: string;
displayName: string;
dataSources?: string[] | undefined;
authenticationType?: string | null | undefined;
sharedConnectionId?: string | null | undefined;
dataSets?: Record<string, {
dataSources: Record<string, {
tableName?: string | undefined;
}>;
datasetOverride?: {
environmentVariableName: string;
} | undefined;
siteId?: string | undefined;
}> | undefined;
xrmConnectionReferenceLogicalName?: string | undefined;
dataSourcesShareLinks?: Record<string, {
url: string;
linkKind: number;
shareId: string;
}> | undefined;
workflowDetails?: {
workflowEntityId: string;
workflowDisplayName: string;
workflowName: string;
dependencies?: Record<string, string> | undefined;
} | undefined;
}, {
id: string;
displayName: string;
dataSources?: string[] | undefined;
authenticationType?: string | null | undefined;
sharedConnectionId?: string | null | undefined;
dataSets?: Record<string, {
dataSources: Record<string, {
tableName?: string | undefined;
}>;
datasetOverride?: {
environmentVariableName: string;
} | undefined;
siteId?: string | undefined;
}> | undefined;
xrmConnectionReferenceLogicalName?: string | undefined;
dataSourcesShareLinks?: Record<string, {
url: string;
linkKind: number;
shareId: string;
}> | undefined;
workflowDetails?: {
workflowEntityId: string;
workflowDisplayName: string;
workflowName: string;
dependencies?: Record<string, string> | undefined;
} | undefined;
}>>>;
databaseReferences: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
dataSources: z.ZodRecord<z.ZodString, z.ZodObject<{
entitySetName: z.ZodString;
logicalName: z.ZodString;
isHidden: z.ZodDefault<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
logicalName: string;
entitySetName: string;
isHidden: boolean;
}, {
logicalName: string;
entitySetName: string;
isHidden?: boolean | undefined;
}>>;
environmentVariableName: z.ZodString;
}, "strip", z.ZodTypeAny, {
dataSources: Record<string, {
logicalName: string;
entitySetName: string;
isHidden: boolean;
}>;
environmentVariableName: string;
}, {
dataSources: Record<string, {
logicalName: string;
entitySetName: string;
isHidden?: boolean | undefined;
}>;
environmentVariableName: string;
}>>>;
}, "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;
connectionReferences?: Record<string, {
id: string;
displayName: string;
dataSources?: string[] | undefined;
authenticationType?: string | null | undefined;
sharedConnectionId?: string | null | undefined;
dataSets?: Record<string, {
dataSources: Record<string, {
tableName?: string | undefined;
}>;
datasetOverride?: {
environmentVariableName: string;
} | undefined;
siteId?: string | undefined;
}> | undefined;
xrmConnectionReferenceLogicalName?: string | undefined;
dataSourcesShareLinks?: Record<string, {
url: string;
linkKind: number;
shareId: string;
}> | undefined;
workflowDetails?: {
workflowEntityId: string;
workflowDisplayName: string;
workflowName: string;
dependencies?: Record<string, string> | undefined;
} | undefined;
}> | undefined;
databaseReferences?: Record<string, {
dataSources: Record<string, {
logicalName: string;
entitySetName: string;
isHidden: boolean;
}>;
environmentVariableName: string;
}> | 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;
connectionReferences?: Record<string, {
id: string;
displayName: string;
dataSources?: string[] | undefined;
authenticationType?: string | null | undefined;
sharedConnectionId?: string | null | undefined;
dataSets?: Record<string, {
dataSources: Record<string, {
tableName?: string | undefined;
}>;
datasetOverride?: {
environmentVariableName: string;
} | undefined;
siteId?: string | undefined;
}> | undefined;
xrmConnectionReferenceLogicalName?: string | undefined;
dataSourcesShareLinks?: Record<string, {
url: string;
linkKind: number;
shareId: string;
}> | undefined;
workflowDetails?: {
workflowEntityId: string;
workflowDisplayName: string;
workflowName: string;
dependencies?: Record<string, string> | undefined;
} | undefined;
}> | undefined;
databaseReferences?: Record<string, {
dataSources: Record<string, {
logicalName: string;
entitySetName: string;
isHidden?: boolean | undefined;
}>;
environmentVariableName: string;
}> | undefined;
}>;
export type ShareLinkDetails = z.infer<typeof ShareLinkDetailsSchema>;
export type DataSet = z.infer<typeof DataSetSchema>;
export type WorkflowDetails = z.infer<typeof WorkflowDetailsSchema>;
export type ConnectionReference = z.infer<typeof ConnectionReferenceSchema>;
export type DataverseDataSource = z.infer<typeof DataverseDataSourceSchema>;
export type DatabaseReference = z.infer<typeof DatabaseReferenceSchema>;
export type RepoConfig = z.infer<typeof ConfigSchemaV1>;
//# sourceMappingURL=Schema.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/Config/V1/Schema.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,OAAO,QAAQ,CAAC;AAE7B,eAAO,MAAM,sBAAsB;;;;;;;;;;;;EAIjC,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;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C,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
@@ -0,0 +1,68 @@
/*!
* Copyright (C) Microsoft Corporation. All rights reserved.
*/
import { Regions } from '@microsoft/power-apps-common/services';
import { z } from 'zod';
export const VERSION = '1.0';
export const ShareLinkDetailsSchema = z.object({
linkKind: z.number(),
shareId: z.string(),
url: z.string(),
});
export const DataSetSchema = z.object({
dataSources: z.record(z.string(), z.object({
tableName: z.string().optional(),
})),
datasetOverride: z
.object({
environmentVariableName: z.string(),
})
.optional(),
siteId: z.string().optional(),
});
export const WorkflowDetailsSchema = z.object({
workflowEntityId: z.string(),
workflowDisplayName: z.string(),
workflowName: z.string(),
// Maps flow connection reference (e.g. "shared_office365") to the UUID key of the
// dependency connection reference in the top-level connectionReferences record.
dependencies: z.record(z.string(), z.string()).optional(),
});
export const ConnectionReferenceSchema = z.object({
id: z.string(),
displayName: z.string(),
dataSources: z.array(z.string()).optional(),
authenticationType: z.string().nullable().optional(),
sharedConnectionId: z.string().nullable().optional(),
dataSets: z.record(z.string(), DataSetSchema).optional(),
xrmConnectionReferenceLogicalName: z.string().optional(),
dataSourcesShareLinks: z.record(z.string(), ShareLinkDetailsSchema).optional(),
workflowDetails: WorkflowDetailsSchema.optional(),
});
export const DataverseDataSourceSchema = z.object({
entitySetName: z.string(),
logicalName: z.string(),
isHidden: z.boolean().default(false),
});
export const DatabaseReferenceSchema = z.object({
dataSources: z.record(z.string(), DataverseDataSourceSchema),
environmentVariableName: z.string(),
});
export const AppTypes = ['CodeApp', 'MobileApp'];
export const ConfigSchemaV1 = z.object({
// Marking as optional for backward compatibility
version: z.literal(VERSION).optional(),
appId: z.string().optional().nullable(),
appDisplayName: z.string().optional(),
appType: z.enum(AppTypes).optional(),
description: z.string().nullable().optional(),
environmentId: z.string().optional(),
buildPath: z.string().optional(),
buildEntryPoint: z.string().optional(),
logoPath: z.string().optional(),
localAppUrl: z.string().optional(),
region: z.enum(Regions).optional(),
connectionReferences: z.record(z.string(), ConnectionReferenceSchema).optional(),
databaseReferences: z.record(z.string(), DatabaseReferenceSchema).optional(),
});
//# sourceMappingURL=Schema.js.map
@@ -0,0 +1 @@
{"version":3,"file":"Schema.js","sourceRoot":"","sources":["../../../src/Config/V1/Schema.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAChE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,CAAC;AAE7B,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,WAAW,EAAE,CAAC,CAAC,MAAM,CACnB,CAAC,CAAC,MAAM,EAAE,EACV,CAAC,CAAC,MAAM,CAAC;QACP,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACjC,CAAC,CACH;IACD,eAAe,EAAE,CAAC;SACf,MAAM,CAAC;QACN,uBAAuB,EAAE,CAAC,CAAC,MAAM,EAAE;KACpC,CAAC;SACD,QAAQ,EAAE;IACb,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAA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