@intentius/chant-lexicon-azure 0.124.30 → 0.124.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/appservice.js +7 -0
- package/dist/actions/compute.js +9 -0
- package/dist/actions/container.js +14 -0
- package/dist/actions/identity.js +11 -0
- package/dist/actions/index.js +11 -0
- package/dist/actions/keyvault.js +12 -0
- package/dist/actions/network.js +9 -0
- package/dist/actions/sql.js +9 -0
- package/dist/actions/storage.js +15 -0
- package/dist/api/read-client.js +146 -0
- package/dist/codegen/docs-cli.js +2 -0
- package/dist/codegen/docs.js +83 -0
- package/dist/codegen/generate-cli.js +11 -0
- package/dist/codegen/generate-lexicon.js +77 -0
- package/dist/codegen/generate-typescript.js +163 -0
- package/dist/codegen/generate.js +106 -0
- package/dist/codegen/naming.js +139 -0
- package/dist/codegen/package.js +64 -0
- package/dist/composites/aks-cluster.js +68 -0
- package/dist/composites/app-service.js +62 -0
- package/dist/composites/application-gateway.js +107 -0
- package/dist/composites/catalog.js +856 -0
- package/dist/composites/container-instance.js +36 -0
- package/dist/composites/container-registry.js +62 -0
- package/dist/composites/cosmos-database.js +56 -0
- package/dist/composites/from-arm.js +47 -0
- package/dist/composites/function-app.js +57 -0
- package/dist/composites/index.js +16 -0
- package/dist/composites/keyvault.js +69 -0
- package/dist/composites/landing-zone.js +119 -0
- package/dist/composites/private-endpoint.js +61 -0
- package/dist/composites/redis-cache.js +21 -0
- package/dist/composites/service-bus-pipeline.js +54 -0
- package/dist/composites/sql-database.js +62 -0
- package/dist/composites/storage-account.js +59 -0
- package/dist/composites/vm-linux.js +139 -0
- package/dist/composites/vnet-default.js +102 -0
- package/dist/coverage.js +28 -0
- package/dist/deep-observe.js +356 -0
- package/dist/default-tags.js +50 -0
- package/dist/deploy-scopes.d.ts.map +1 -1
- package/dist/deploy-scopes.js +157 -0
- package/dist/describe-resources.js +187 -0
- package/dist/detect.js +17 -0
- package/dist/export-resources.js +108 -0
- package/dist/generated/index.js +16598 -0
- package/dist/generated/runtime.js +4 -0
- package/dist/governance.js +144 -0
- package/dist/import/generator.js +140 -0
- package/dist/import/live-export.js +39 -0
- package/dist/import/parser.js +192 -0
- package/dist/index.js +44 -0
- package/dist/integrity.json +2 -2
- package/dist/intrinsics.js +179 -0
- package/dist/lint/audit-catalog.js +36 -0
- package/dist/lint/audit-lineage.js +71 -0
- package/dist/lint/post-synth/arm-refs.js +94 -0
- package/dist/lint/post-synth/azr010.js +45 -0
- package/dist/lint/post-synth/azr011.js +43 -0
- package/dist/lint/post-synth/azr012.js +41 -0
- package/dist/lint/post-synth/azr013.js +50 -0
- package/dist/lint/post-synth/azr014.js +49 -0
- package/dist/lint/post-synth/azr015.js +66 -0
- package/dist/lint/post-synth/azr016.js +37 -0
- package/dist/lint/post-synth/azr017.js +37 -0
- package/dist/lint/post-synth/azr018.js +42 -0
- package/dist/lint/post-synth/azr019.js +41 -0
- package/dist/lint/post-synth/azr020.js +37 -0
- package/dist/lint/post-synth/azr021.js +36 -0
- package/dist/lint/post-synth/azr022.js +39 -0
- package/dist/lint/post-synth/azr023.js +39 -0
- package/dist/lint/post-synth/azr024.js +39 -0
- package/dist/lint/post-synth/azr025.js +37 -0
- package/dist/lint/post-synth/azr026.js +38 -0
- package/dist/lint/post-synth/azr027.js +37 -0
- package/dist/lint/post-synth/azr028.js +37 -0
- package/dist/lint/post-synth/azr029.js +38 -0
- package/dist/lint/post-synth/azr030.js +44 -0
- package/dist/lint/post-synth/azr031.js +36 -0
- package/dist/lint/post-synth/azr032.js +53 -0
- package/dist/lint/post-synth/azr033.js +35 -0
- package/dist/lint/post-synth/index.js +50 -0
- package/dist/lint/rules/hardcoded-location.js +82 -0
- package/dist/lint/rules/index.js +6 -0
- package/dist/lint/rules/nsg-wildcard.js +44 -0
- package/dist/lint/rules/storage-https.js +62 -0
- package/dist/lsp/completions.d.ts.map +1 -1
- package/dist/lsp/completions.js +18 -0
- package/dist/lsp/hover.d.ts.map +1 -1
- package/dist/lsp/hover.js +44 -0
- package/dist/manifest.json +1 -1
- package/dist/op/activities/az-apply.js +563 -0
- package/dist/op/activities/azure.js +48 -0
- package/dist/op/activities/floci-az.js +37 -0
- package/dist/op/activities/index.js +10 -0
- package/dist/op/builders.js +70 -0
- package/dist/ownership.js +13 -0
- package/dist/package-cli.js +21 -0
- package/dist/parameter.js +13 -0
- package/dist/plugin.d.ts.map +1 -1
- package/dist/plugin.js +472 -0
- package/dist/pseudo.js +40 -0
- package/dist/serializer.js +457 -0
- package/dist/spec/api-versions.js +130 -0
- package/dist/spec/fetch.js +196 -0
- package/dist/spec/parse.js +308 -0
- package/dist/taggable.js +34 -0
- package/dist/validate-cli.js +16 -0
- package/dist/validate.js +53 -0
- package/package.json +8 -8
- package/src/codegen/package.ts +2 -2
- package/src/deploy-scopes.ts +2 -1
- package/src/lsp/completions.ts +2 -1
- package/src/lsp/hover.ts +2 -1
- package/src/plugin.ts +3 -2
- package/src/serializer.ts +2 -2
- package/src/taggable.ts +2 -2
package/src/codegen/package.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { readFileSync } from "fs";
|
|
7
7
|
import { azurePlugin } from "../plugin";
|
|
8
8
|
import { dirname } from "path";
|
|
9
|
-
import {
|
|
9
|
+
import { moduleSourceDir } from "@intentius/chant/module-source";
|
|
10
10
|
import type { IntrinsicDef } from "@intentius/chant/lexicon";
|
|
11
11
|
import {
|
|
12
12
|
packagePipeline,
|
|
@@ -18,7 +18,7 @@ import { generate } from "./generate";
|
|
|
18
18
|
|
|
19
19
|
export type { PackageOptions, PackageResult };
|
|
20
20
|
|
|
21
|
-
const pkgDir = dirname(
|
|
21
|
+
const pkgDir = dirname(moduleSourceDir(import.meta.url));
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* Map intrinsic name to its ARM output key.
|
package/src/deploy-scopes.ts
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
import { readFileSync } from "fs";
|
|
15
15
|
import { join, dirname } from "path";
|
|
16
16
|
import { fileURLToPath } from "url";
|
|
17
|
+
import { moduleSourceDir } from "@intentius/chant/module-source";
|
|
17
18
|
import { DECLARABLE_MARKER, type Declarable } from "@intentius/chant/declarable";
|
|
18
19
|
|
|
19
20
|
export type DeployScope = "resourceGroup" | "subscription" | "managementGroup" | "tenant";
|
|
@@ -94,7 +95,7 @@ let _cached: Map<string, DeployScope[]> | undefined;
|
|
|
94
95
|
*/
|
|
95
96
|
function moduleDir(): string | undefined {
|
|
96
97
|
try {
|
|
97
|
-
return
|
|
98
|
+
return moduleSourceDir(import.meta.url);
|
|
98
99
|
} catch {
|
|
99
100
|
return undefined;
|
|
100
101
|
}
|
package/src/lsp/completions.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { createRequire } from "module";
|
|
2
|
+
import { moduleSourceUrl } from "@intentius/chant/module-source";
|
|
2
3
|
import type { CompletionContext, CompletionItem } from "@intentius/chant/lsp/types";
|
|
3
4
|
import { LexiconIndex, lexiconCompletions, type LexiconEntry } from "@intentius/chant/lsp/lexicon-providers";
|
|
4
|
-
const require = createRequire(import.meta.url);
|
|
5
|
+
const require = createRequire(moduleSourceUrl(import.meta.url));
|
|
5
6
|
|
|
6
7
|
let cachedIndex: LexiconIndex | null = null;
|
|
7
8
|
|
package/src/lsp/hover.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { createRequire } from "module";
|
|
2
|
+
import { moduleSourceUrl } from "@intentius/chant/module-source";
|
|
2
3
|
import type { HoverContext, HoverInfo } from "@intentius/chant/lsp/types";
|
|
3
4
|
import { LexiconIndex, lexiconHover, type LexiconEntry } from "@intentius/chant/lsp/lexicon-providers";
|
|
4
|
-
const require = createRequire(import.meta.url);
|
|
5
|
+
const require = createRequire(moduleSourceUrl(import.meta.url));
|
|
5
6
|
|
|
6
7
|
let cachedIndex: LexiconIndex | null = null;
|
|
7
8
|
|
package/src/plugin.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { createSkillsLoader } from "@intentius/chant/lexicon-plugin-helpers";
|
|
|
13
13
|
import { readFileSync, readdirSync, existsSync } from "fs";
|
|
14
14
|
import { join, dirname } from "path";
|
|
15
15
|
import { fileURLToPath } from "url";
|
|
16
|
+
import { moduleSourceDir } from "@intentius/chant/module-source";
|
|
16
17
|
import { azureSerializer } from "./serializer";
|
|
17
18
|
import { hardcodedLocationRule } from "./lint/rules/hardcoded-location";
|
|
18
19
|
import { storageHttpsRule } from "./lint/rules/storage-https";
|
|
@@ -373,7 +374,7 @@ export const tags = defaultTags([
|
|
|
373
374
|
required: ["query"],
|
|
374
375
|
},
|
|
375
376
|
handler: async (args: Record<string, unknown>) => {
|
|
376
|
-
const dir =
|
|
377
|
+
const dir = moduleSourceDir(import.meta.url);
|
|
377
378
|
try {
|
|
378
379
|
const lexicon = JSON.parse(
|
|
379
380
|
readFileSync(join(dir, "generated", "lexicon-azure.json"), "utf-8"),
|
|
@@ -398,7 +399,7 @@ export const tags = defaultTags([
|
|
|
398
399
|
description: "All available Azure resource types",
|
|
399
400
|
mimeType: "application/json",
|
|
400
401
|
handler: async () => {
|
|
401
|
-
const dir =
|
|
402
|
+
const dir = moduleSourceDir(import.meta.url);
|
|
402
403
|
try {
|
|
403
404
|
return readFileSync(join(dir, "generated", "lexicon-azure.json"), "utf-8");
|
|
404
405
|
} catch {
|
package/src/serializer.ts
CHANGED
|
@@ -20,7 +20,7 @@ import { walkValue, type SerializerVisitor } from "@intentius/chant/serializer-w
|
|
|
20
20
|
import { isChildProject, type ChildProjectInstance } from "@intentius/chant/child-project";
|
|
21
21
|
import { existsSync, readFileSync } from "fs";
|
|
22
22
|
import { dirname, join } from "path";
|
|
23
|
-
import {
|
|
23
|
+
import { moduleSourceDir } from "@intentius/chant/module-source";
|
|
24
24
|
import { isStackOutput, type StackOutput } from "@intentius/chant/stack-output";
|
|
25
25
|
import { isAttrRefLike } from "@intentius/chant/utils";
|
|
26
26
|
import { resolveDependsOn } from "@intentius/chant/resource-attributes";
|
|
@@ -87,7 +87,7 @@ const RESOURCE_LEVEL_FIELDS = new Set([
|
|
|
87
87
|
* silently bypasses the per-provider pins in spec/api-versions.ts.
|
|
88
88
|
*/
|
|
89
89
|
function resolveDir(): string {
|
|
90
|
-
return
|
|
90
|
+
return moduleSourceDir(import.meta.url);
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
export function apiVersionRegistryCandidates(dir: string = resolveDir()): string[] {
|
package/src/taggable.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import { readFileSync } from "fs";
|
|
8
8
|
import { join, dirname } from "path";
|
|
9
|
-
import {
|
|
9
|
+
import { moduleSourceDir } from "@intentius/chant/module-source";
|
|
10
10
|
|
|
11
11
|
interface LexiconEntry {
|
|
12
12
|
kind: string;
|
|
@@ -17,7 +17,7 @@ interface LexiconEntry {
|
|
|
17
17
|
|
|
18
18
|
let _cached: Set<string> | undefined;
|
|
19
19
|
|
|
20
|
-
const __dirname_ =
|
|
20
|
+
const __dirname_ = moduleSourceDir(import.meta.url);
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Load taggable resource types from the lexicon JSON.
|