@azure/arm-resourcesbicep 1.0.0-alpha.20250910.1
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/CHANGELOG.md +7 -0
- package/LICENSE +21 -0
- package/README.md +115 -0
- package/dist/browser/api/bicepContext.d.ts +19 -0
- package/dist/browser/api/bicepContext.js +38 -0
- package/dist/browser/api/bicepContext.js.map +1 -0
- package/dist/browser/api/decompileOperationGroup/index.d.ts +3 -0
- package/dist/browser/api/decompileOperationGroup/index.js +4 -0
- package/dist/browser/api/decompileOperationGroup/index.js.map +1 -0
- package/dist/browser/api/decompileOperationGroup/operations.d.ts +9 -0
- package/dist/browser/api/decompileOperationGroup/operations.js +37 -0
- package/dist/browser/api/decompileOperationGroup/operations.js.map +1 -0
- package/dist/browser/api/decompileOperationGroup/options.d.ts +5 -0
- package/dist/browser/api/decompileOperationGroup/options.js +4 -0
- package/dist/browser/api/decompileOperationGroup/options.js.map +1 -0
- package/dist/browser/api/index.d.ts +2 -0
- package/dist/browser/api/index.js +4 -0
- package/dist/browser/api/index.js.map +1 -0
- package/dist/browser/bicepClient.d.ts +15 -0
- package/dist/browser/bicepClient.js +25 -0
- package/dist/browser/bicepClient.js.map +1 -0
- package/dist/browser/classic/decompileOperationGroup/index.d.ts +10 -0
- package/dist/browser/classic/decompileOperationGroup/index.js +14 -0
- package/dist/browser/classic/decompileOperationGroup/index.js.map +1 -0
- package/dist/browser/classic/index.d.ts +2 -0
- package/dist/browser/classic/index.js +4 -0
- package/dist/browser/classic/index.js.map +1 -0
- package/dist/browser/index.d.ts +6 -0
- package/dist/browser/index.js +5 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/logger.d.ts +2 -0
- package/dist/browser/logger.js +5 -0
- package/dist/browser/logger.js.map +1 -0
- package/dist/browser/models/index.d.ts +2 -0
- package/dist/browser/models/index.js +4 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/models.d.ts +59 -0
- package/dist/browser/models/models.js +61 -0
- package/dist/browser/models/models.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/browser/static-helpers/urlTemplate.js +169 -0
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
- package/dist/commonjs/api/bicepContext.d.ts +19 -0
- package/dist/commonjs/api/bicepContext.js +41 -0
- package/dist/commonjs/api/bicepContext.js.map +1 -0
- package/dist/commonjs/api/decompileOperationGroup/index.d.ts +3 -0
- package/dist/commonjs/api/decompileOperationGroup/index.js +8 -0
- package/dist/commonjs/api/decompileOperationGroup/index.js.map +1 -0
- package/dist/commonjs/api/decompileOperationGroup/operations.d.ts +9 -0
- package/dist/commonjs/api/decompileOperationGroup/operations.js +42 -0
- package/dist/commonjs/api/decompileOperationGroup/operations.js.map +1 -0
- package/dist/commonjs/api/decompileOperationGroup/options.d.ts +5 -0
- package/dist/commonjs/api/decompileOperationGroup/options.js +5 -0
- package/dist/commonjs/api/decompileOperationGroup/options.js.map +1 -0
- package/dist/commonjs/api/index.d.ts +2 -0
- package/dist/commonjs/api/index.js +8 -0
- package/dist/commonjs/api/index.js.map +1 -0
- package/dist/commonjs/bicepClient.d.ts +15 -0
- package/dist/commonjs/bicepClient.js +29 -0
- package/dist/commonjs/bicepClient.js.map +1 -0
- package/dist/commonjs/classic/decompileOperationGroup/index.d.ts +10 -0
- package/dist/commonjs/classic/decompileOperationGroup/index.js +17 -0
- package/dist/commonjs/classic/decompileOperationGroup/index.js.map +1 -0
- package/dist/commonjs/classic/index.d.ts +2 -0
- package/dist/commonjs/classic/index.js +5 -0
- package/dist/commonjs/classic/index.js.map +1 -0
- package/dist/commonjs/index.d.ts +6 -0
- package/dist/commonjs/index.js +10 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/logger.d.ts +2 -0
- package/dist/commonjs/logger.js +8 -0
- package/dist/commonjs/logger.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +2 -0
- package/dist/commonjs/models/index.js +8 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/models.d.ts +59 -0
- package/dist/commonjs/models/models.js +73 -0
- package/dist/commonjs/models/models.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/commonjs/static-helpers/urlTemplate.js +172 -0
- package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/esm/api/bicepContext.d.ts +19 -0
- package/dist/esm/api/bicepContext.js +38 -0
- package/dist/esm/api/bicepContext.js.map +1 -0
- package/dist/esm/api/decompileOperationGroup/index.d.ts +3 -0
- package/dist/esm/api/decompileOperationGroup/index.js +4 -0
- package/dist/esm/api/decompileOperationGroup/index.js.map +1 -0
- package/dist/esm/api/decompileOperationGroup/operations.d.ts +9 -0
- package/dist/esm/api/decompileOperationGroup/operations.js +37 -0
- package/dist/esm/api/decompileOperationGroup/operations.js.map +1 -0
- package/dist/esm/api/decompileOperationGroup/options.d.ts +5 -0
- package/dist/esm/api/decompileOperationGroup/options.js +4 -0
- package/dist/esm/api/decompileOperationGroup/options.js.map +1 -0
- package/dist/esm/api/index.d.ts +2 -0
- package/dist/esm/api/index.js +4 -0
- package/dist/esm/api/index.js.map +1 -0
- package/dist/esm/bicepClient.d.ts +15 -0
- package/dist/esm/bicepClient.js +25 -0
- package/dist/esm/bicepClient.js.map +1 -0
- package/dist/esm/classic/decompileOperationGroup/index.d.ts +10 -0
- package/dist/esm/classic/decompileOperationGroup/index.js +14 -0
- package/dist/esm/classic/decompileOperationGroup/index.js.map +1 -0
- package/dist/esm/classic/index.d.ts +2 -0
- package/dist/esm/classic/index.js +4 -0
- package/dist/esm/classic/index.js.map +1 -0
- package/dist/esm/index.d.ts +6 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/logger.d.ts +2 -0
- package/dist/esm/logger.js +5 -0
- package/dist/esm/logger.js.map +1 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/models.d.ts +59 -0
- package/dist/esm/models/models.js +61 -0
- package/dist/esm/models/models.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/esm/static-helpers/urlTemplate.js +169 -0
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
- package/dist/react-native/api/bicepContext.d.ts +19 -0
- package/dist/react-native/api/bicepContext.js +38 -0
- package/dist/react-native/api/bicepContext.js.map +1 -0
- package/dist/react-native/api/decompileOperationGroup/index.d.ts +3 -0
- package/dist/react-native/api/decompileOperationGroup/index.js +4 -0
- package/dist/react-native/api/decompileOperationGroup/index.js.map +1 -0
- package/dist/react-native/api/decompileOperationGroup/operations.d.ts +9 -0
- package/dist/react-native/api/decompileOperationGroup/operations.js +37 -0
- package/dist/react-native/api/decompileOperationGroup/operations.js.map +1 -0
- package/dist/react-native/api/decompileOperationGroup/options.d.ts +5 -0
- package/dist/react-native/api/decompileOperationGroup/options.js +4 -0
- package/dist/react-native/api/decompileOperationGroup/options.js.map +1 -0
- package/dist/react-native/api/index.d.ts +2 -0
- package/dist/react-native/api/index.js +4 -0
- package/dist/react-native/api/index.js.map +1 -0
- package/dist/react-native/bicepClient.d.ts +15 -0
- package/dist/react-native/bicepClient.js +25 -0
- package/dist/react-native/bicepClient.js.map +1 -0
- package/dist/react-native/classic/decompileOperationGroup/index.d.ts +10 -0
- package/dist/react-native/classic/decompileOperationGroup/index.js +14 -0
- package/dist/react-native/classic/decompileOperationGroup/index.js.map +1 -0
- package/dist/react-native/classic/index.d.ts +2 -0
- package/dist/react-native/classic/index.js +4 -0
- package/dist/react-native/classic/index.js.map +1 -0
- package/dist/react-native/index.d.ts +6 -0
- package/dist/react-native/index.js +5 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/logger.d.ts +2 -0
- package/dist/react-native/logger.js +5 -0
- package/dist/react-native/logger.js.map +1 -0
- package/dist/react-native/models/index.d.ts +2 -0
- package/dist/react-native/models/index.js +4 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/models.d.ts +59 -0
- package/dist/react-native/models/models.js +61 -0
- package/dist/react-native/models/models.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/react-native/static-helpers/urlTemplate.js +169 -0
- package/dist/react-native/static-helpers/urlTemplate.js.map +1 -0
- package/package.json +192 -0
- package/review/arm-resourcesbicep-api-decompileOperationGroup-node.api.md +19 -0
- package/review/arm-resourcesbicep-api-node.api.md +27 -0
- package/review/arm-resourcesbicep-models-node.api.md +51 -0
- package/review/arm-resourcesbicep-node.api.md +77 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/classic/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { DecompileOperationGroupOperations } from \"./decompileOperationGroup/index.js\";\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { BicepClient } from "./bicepClient.js";
|
|
2
|
+
export { DecompileOperationRequest, DecompileOperationSuccessResponse, FileDefinition, ErrorResponse, ErrorDetail, ErrorAdditionalInfo, KnownVersions, } from "./models/index.js";
|
|
3
|
+
export { BicepClientOptionalParams } from "./api/index.js";
|
|
4
|
+
export { DecompileOperationGroupBicepOptionalParams } from "./api/decompileOperationGroup/index.js";
|
|
5
|
+
export { DecompileOperationGroupOperations } from "./classic/index.js";
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAOL,aAAa,GACd,MAAM,mBAAmB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { BicepClient } from \"./bicepClient.js\";\nexport {\n DecompileOperationRequest,\n DecompileOperationSuccessResponse,\n FileDefinition,\n ErrorResponse,\n ErrorDetail,\n ErrorAdditionalInfo,\n KnownVersions,\n} from \"./models/index.js\";\nexport { BicepClientOptionalParams } from \"./api/index.js\";\nexport { DecompileOperationGroupBicepOptionalParams } from \"./api/decompileOperationGroup/index.js\";\nexport { DecompileOperationGroupOperations } from \"./classic/index.js\";\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,MAAM,CAAC,MAAM,MAAM,GAAG,kBAAkB,CAAC,oBAAoB,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { createClientLogger } from \"@azure/logger\";\nexport const logger = createClientLogger(\"arm-resourcesbicep\");\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAOL,aAAa,GACd,MAAM,aAAa,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport {\n DecompileOperationRequest,\n DecompileOperationSuccessResponse,\n FileDefinition,\n ErrorResponse,\n ErrorDetail,\n ErrorAdditionalInfo,\n KnownVersions,\n} from \"./models.js\";\n"]}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/** The body of the request for the decompileBicep operation */
|
|
2
|
+
export interface DecompileOperationRequest {
|
|
3
|
+
/** The ARM json template to be decompiled into a Bicep file */
|
|
4
|
+
template: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function decompileOperationRequestSerializer(item: DecompileOperationRequest): any;
|
|
7
|
+
/** The response of the decompileBicep operation */
|
|
8
|
+
export interface DecompileOperationSuccessResponse {
|
|
9
|
+
/** An array of key-value pairs containing the entryPoint string as the key for the Bicep file decompiled from the ARM json template */
|
|
10
|
+
files: FileDefinition[];
|
|
11
|
+
/** The file path to the main Bicep file generated from the decompiled ARM json template. */
|
|
12
|
+
entryPoint: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function decompileOperationSuccessResponseDeserializer(item: any): DecompileOperationSuccessResponse;
|
|
15
|
+
export declare function fileDefinitionArrayDeserializer(result: Array<FileDefinition>): any[];
|
|
16
|
+
/** The definition of a file along with its contents */
|
|
17
|
+
export interface FileDefinition {
|
|
18
|
+
/** The file path of the Bicep file. */
|
|
19
|
+
path?: string;
|
|
20
|
+
/** The contents of the Bicep file. */
|
|
21
|
+
contents?: string;
|
|
22
|
+
}
|
|
23
|
+
export declare function fileDefinitionDeserializer(item: any): FileDefinition;
|
|
24
|
+
/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */
|
|
25
|
+
export interface ErrorResponse {
|
|
26
|
+
/** The error object. */
|
|
27
|
+
error?: ErrorDetail;
|
|
28
|
+
}
|
|
29
|
+
export declare function errorResponseDeserializer(item: any): ErrorResponse;
|
|
30
|
+
/** The error detail. */
|
|
31
|
+
export interface ErrorDetail {
|
|
32
|
+
/** The error code. */
|
|
33
|
+
readonly code?: string;
|
|
34
|
+
/** The error message. */
|
|
35
|
+
readonly message?: string;
|
|
36
|
+
/** The error target. */
|
|
37
|
+
readonly target?: string;
|
|
38
|
+
/** The error details. */
|
|
39
|
+
readonly details?: ErrorDetail[];
|
|
40
|
+
/** The error additional info. */
|
|
41
|
+
readonly additionalInfo?: ErrorAdditionalInfo[];
|
|
42
|
+
}
|
|
43
|
+
export declare function errorDetailDeserializer(item: any): ErrorDetail;
|
|
44
|
+
export declare function errorDetailArrayDeserializer(result: Array<ErrorDetail>): any[];
|
|
45
|
+
export declare function errorAdditionalInfoArrayDeserializer(result: Array<ErrorAdditionalInfo>): any[];
|
|
46
|
+
/** The resource management error additional info. */
|
|
47
|
+
export interface ErrorAdditionalInfo {
|
|
48
|
+
/** The additional info type. */
|
|
49
|
+
readonly type?: string;
|
|
50
|
+
/** The additional info. */
|
|
51
|
+
readonly info?: any;
|
|
52
|
+
}
|
|
53
|
+
export declare function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo;
|
|
54
|
+
/** The available API versions. */
|
|
55
|
+
export declare enum KnownVersions {
|
|
56
|
+
/** The 2023-11-01 API version. */
|
|
57
|
+
V20231101 = "2023-11-01"
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=models.d.ts.map
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
export function decompileOperationRequestSerializer(item) {
|
|
4
|
+
return { template: item["template"] };
|
|
5
|
+
}
|
|
6
|
+
export function decompileOperationSuccessResponseDeserializer(item) {
|
|
7
|
+
return {
|
|
8
|
+
files: fileDefinitionArrayDeserializer(item["files"]),
|
|
9
|
+
entryPoint: item["entryPoint"],
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export function fileDefinitionArrayDeserializer(result) {
|
|
13
|
+
return result.map((item) => {
|
|
14
|
+
return fileDefinitionDeserializer(item);
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
export function fileDefinitionDeserializer(item) {
|
|
18
|
+
return {
|
|
19
|
+
path: item["path"],
|
|
20
|
+
contents: item["contents"],
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export function errorResponseDeserializer(item) {
|
|
24
|
+
return {
|
|
25
|
+
error: !item["error"] ? item["error"] : errorDetailDeserializer(item["error"]),
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export function errorDetailDeserializer(item) {
|
|
29
|
+
return {
|
|
30
|
+
code: item["code"],
|
|
31
|
+
message: item["message"],
|
|
32
|
+
target: item["target"],
|
|
33
|
+
details: !item["details"] ? item["details"] : errorDetailArrayDeserializer(item["details"]),
|
|
34
|
+
additionalInfo: !item["additionalInfo"]
|
|
35
|
+
? item["additionalInfo"]
|
|
36
|
+
: errorAdditionalInfoArrayDeserializer(item["additionalInfo"]),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function errorDetailArrayDeserializer(result) {
|
|
40
|
+
return result.map((item) => {
|
|
41
|
+
return errorDetailDeserializer(item);
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
export function errorAdditionalInfoArrayDeserializer(result) {
|
|
45
|
+
return result.map((item) => {
|
|
46
|
+
return errorAdditionalInfoDeserializer(item);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
export function errorAdditionalInfoDeserializer(item) {
|
|
50
|
+
return {
|
|
51
|
+
type: item["type"],
|
|
52
|
+
info: item["info"],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
/** The available API versions. */
|
|
56
|
+
export var KnownVersions;
|
|
57
|
+
(function (KnownVersions) {
|
|
58
|
+
/** The 2023-11-01 API version. */
|
|
59
|
+
KnownVersions["V20231101"] = "2023-11-01";
|
|
60
|
+
})(KnownVersions || (KnownVersions = {}));
|
|
61
|
+
//# sourceMappingURL=models.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAQlC,MAAM,UAAU,mCAAmC,CAAC,IAA+B;IACjF,OAAO,EAAE,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;AACxC,CAAC;AAUD,MAAM,UAAU,6CAA6C,CAC3D,IAAS;IAET,OAAO;QACL,K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,CAAC,MAA0B;IACrE,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,uBAAuB,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,oCAAoC,CAAC,MAAkC;IACrF,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,+BAA+B,CAAC,IAAI,CAAC,CAAC;IAC/C,CAAC,CAAC,CAAC;AACL,CAAC;AAUD,MAAM,UAAU,+BAA+B,CAAC,IAAS;IACvD,OAAO;QACL,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;KACnB,CAAC;AACJ,CAAC;AAED,kCAAkC;AAClC,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,kCAAkC;IAClC,yCAAwB,CAAA;AAC1B,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/** The body of the request for the decompileBicep operation */\nexport interface DecompileOperationRequest {\n /** The ARM json template to be decompiled into a Bicep file */\n template: string;\n}\n\nexport function decompileOperationRequestSerializer(item: DecompileOperationRequest): any {\n return { template: item[\"template\"] };\n}\n\n/** The response of the decompileBicep operation */\nexport interface DecompileOperationSuccessResponse {\n /** An array of key-value pairs containing the entryPoint string as the key for the Bicep file decompiled from the ARM json template */\n files: FileDefinition[];\n /** The file path to the main Bicep file generated from the decompiled ARM json template. */\n entryPoint: string;\n}\n\nexport function decompileOperationSuccessResponseDeserializer(\n item: any,\n): DecompileOperationSuccessResponse {\n return {\n files: fileDefinitionArrayDeserializer(item[\"files\"]),\n entryPoint: item[\"entryPoint\"],\n };\n}\n\nexport function fileDefinitionArrayDeserializer(result: Array<FileDefinition>): any[] {\n return result.map((item) => {\n return fileDefinitionDeserializer(item);\n });\n}\n\n/** The definition of a file along with its contents */\nexport interface FileDefinition {\n /** The file path of the Bicep file. */\n path?: string;\n /** The contents of the Bicep file. */\n contents?: string;\n}\n\nexport function fileDefinitionDeserializer(item: any): FileDefinition {\n return {\n path: item[\"path\"],\n contents: item[\"contents\"],\n };\n}\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */\nexport interface ErrorResponse {\n /** The error object. */\n error?: ErrorDetail;\n}\n\nexport function errorResponseDeserializer(item: any): ErrorResponse {\n return {\n error: !item[\"error\"] ? item[\"error\"] : errorDetailDeserializer(item[\"error\"]),\n };\n}\n\n/** The error detail. */\nexport interface ErrorDetail {\n /** The error code. */\n readonly code?: string;\n /** The error message. */\n readonly message?: string;\n /** The error target. */\n readonly target?: string;\n /** The error details. */\n readonly details?: ErrorDetail[];\n /** The error additional info. */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\nexport function errorDetailDeserializer(item: any): ErrorDetail {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n target: item[\"target\"],\n details: !item[\"details\"] ? item[\"details\"] : errorDetailArrayDeserializer(item[\"details\"]),\n additionalInfo: !item[\"additionalInfo\"]\n ? item[\"additionalInfo\"]\n : errorAdditionalInfoArrayDeserializer(item[\"additionalInfo\"]),\n };\n}\n\nexport function errorDetailArrayDeserializer(result: Array<ErrorDetail>): any[] {\n return result.map((item) => {\n return errorDetailDeserializer(item);\n });\n}\n\nexport function errorAdditionalInfoArrayDeserializer(result: Array<ErrorAdditionalInfo>): any[] {\n return result.map((item) => {\n return errorAdditionalInfoDeserializer(item);\n });\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /** The additional info type. */\n readonly type?: string;\n /** The additional info. */\n readonly info?: any;\n}\n\nexport function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo {\n return {\n type: item[\"type\"],\n info: item[\"info\"],\n };\n}\n\n/** The available API versions. */\nexport enum KnownVersions {\n /** The 2023-11-01 API version. */\n V20231101 = \"2023-11-01\",\n}\n"]}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
// ---------------------
|
|
4
|
+
// helpers
|
|
5
|
+
// ---------------------
|
|
6
|
+
function encodeComponent(val, reserved, op) {
|
|
7
|
+
return (reserved ?? op === "+") || op === "#"
|
|
8
|
+
? encodeReservedComponent(val)
|
|
9
|
+
: encodeRFC3986URIComponent(val);
|
|
10
|
+
}
|
|
11
|
+
function encodeReservedComponent(str) {
|
|
12
|
+
return str
|
|
13
|
+
.split(/(%[0-9A-Fa-f]{2})/g)
|
|
14
|
+
.map((part) => (!/%[0-9A-Fa-f]/.test(part) ? encodeURI(part) : part))
|
|
15
|
+
.join("");
|
|
16
|
+
}
|
|
17
|
+
function encodeRFC3986URIComponent(str) {
|
|
18
|
+
return encodeURIComponent(str).replace(/[!'()*]/g, (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`);
|
|
19
|
+
}
|
|
20
|
+
function isDefined(val) {
|
|
21
|
+
return val !== undefined && val !== null;
|
|
22
|
+
}
|
|
23
|
+
function getNamedAndIfEmpty(op) {
|
|
24
|
+
return [!!op && [";", "?", "&"].includes(op), !!op && ["?", "&"].includes(op) ? "=" : ""];
|
|
25
|
+
}
|
|
26
|
+
function getFirstOrSep(op, isFirst = false) {
|
|
27
|
+
if (isFirst) {
|
|
28
|
+
return !op || op === "+" ? "" : op;
|
|
29
|
+
}
|
|
30
|
+
else if (!op || op === "+" || op === "#") {
|
|
31
|
+
return ",";
|
|
32
|
+
}
|
|
33
|
+
else if (op === "?") {
|
|
34
|
+
return "&";
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
return op;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
function getExpandedValue(option) {
|
|
41
|
+
let isFirst = option.isFirst;
|
|
42
|
+
const { op, varName, varValue: value, reserved } = option;
|
|
43
|
+
const vals = [];
|
|
44
|
+
const [named, ifEmpty] = getNamedAndIfEmpty(op);
|
|
45
|
+
if (Array.isArray(value)) {
|
|
46
|
+
for (const val of value.filter(isDefined)) {
|
|
47
|
+
// prepare the following parts: separator, varName, value
|
|
48
|
+
vals.push(`${getFirstOrSep(op, isFirst)}`);
|
|
49
|
+
if (named && varName) {
|
|
50
|
+
vals.push(`${encodeURIComponent(varName)}`);
|
|
51
|
+
val === "" ? vals.push(ifEmpty) : vals.push("=");
|
|
52
|
+
}
|
|
53
|
+
vals.push(encodeComponent(val, reserved, op));
|
|
54
|
+
isFirst = false;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
else if (typeof value === "object") {
|
|
58
|
+
for (const key of Object.keys(value)) {
|
|
59
|
+
const val = value[key];
|
|
60
|
+
if (!isDefined(val)) {
|
|
61
|
+
continue;
|
|
62
|
+
}
|
|
63
|
+
// prepare the following parts: separator, key, value
|
|
64
|
+
vals.push(`${getFirstOrSep(op, isFirst)}`);
|
|
65
|
+
if (key) {
|
|
66
|
+
vals.push(`${encodeURIComponent(key)}`);
|
|
67
|
+
named && val === "" ? vals.push(ifEmpty) : vals.push("=");
|
|
68
|
+
}
|
|
69
|
+
vals.push(encodeComponent(val, reserved, op));
|
|
70
|
+
isFirst = false;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return vals.join("");
|
|
74
|
+
}
|
|
75
|
+
function getNonExpandedValue(option) {
|
|
76
|
+
const { op, varName, varValue: value, isFirst, reserved } = option;
|
|
77
|
+
const vals = [];
|
|
78
|
+
const first = getFirstOrSep(op, isFirst);
|
|
79
|
+
const [named, ifEmpty] = getNamedAndIfEmpty(op);
|
|
80
|
+
if (named && varName) {
|
|
81
|
+
vals.push(encodeComponent(varName, reserved, op));
|
|
82
|
+
if (value === "") {
|
|
83
|
+
if (!ifEmpty) {
|
|
84
|
+
vals.push(ifEmpty);
|
|
85
|
+
}
|
|
86
|
+
return !vals.join("") ? undefined : `${first}${vals.join("")}`;
|
|
87
|
+
}
|
|
88
|
+
vals.push("=");
|
|
89
|
+
}
|
|
90
|
+
const items = [];
|
|
91
|
+
if (Array.isArray(value)) {
|
|
92
|
+
for (const val of value.filter(isDefined)) {
|
|
93
|
+
items.push(encodeComponent(val, reserved, op));
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
else if (typeof value === "object") {
|
|
97
|
+
for (const key of Object.keys(value)) {
|
|
98
|
+
if (!isDefined(value[key])) {
|
|
99
|
+
continue;
|
|
100
|
+
}
|
|
101
|
+
items.push(encodeRFC3986URIComponent(key));
|
|
102
|
+
items.push(encodeComponent(value[key], reserved, op));
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
vals.push(items.join(","));
|
|
106
|
+
return !vals.join(",") ? undefined : `${first}${vals.join("")}`;
|
|
107
|
+
}
|
|
108
|
+
function getVarValue(option) {
|
|
109
|
+
const { op, varName, modifier, isFirst, reserved, varValue: value } = option;
|
|
110
|
+
if (!isDefined(value)) {
|
|
111
|
+
return undefined;
|
|
112
|
+
}
|
|
113
|
+
else if (["string", "number", "boolean"].includes(typeof value)) {
|
|
114
|
+
let val = value.toString();
|
|
115
|
+
const [named, ifEmpty] = getNamedAndIfEmpty(op);
|
|
116
|
+
const vals = [getFirstOrSep(op, isFirst)];
|
|
117
|
+
if (named && varName) {
|
|
118
|
+
// No need to encode varName considering it is already encoded
|
|
119
|
+
vals.push(varName);
|
|
120
|
+
val === "" ? vals.push(ifEmpty) : vals.push("=");
|
|
121
|
+
}
|
|
122
|
+
if (modifier && modifier !== "*") {
|
|
123
|
+
val = val.substring(0, parseInt(modifier, 10));
|
|
124
|
+
}
|
|
125
|
+
vals.push(encodeComponent(val, reserved, op));
|
|
126
|
+
return vals.join("");
|
|
127
|
+
}
|
|
128
|
+
else if (modifier === "*") {
|
|
129
|
+
return getExpandedValue(option);
|
|
130
|
+
}
|
|
131
|
+
else {
|
|
132
|
+
return getNonExpandedValue(option);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
// ---------------------------------------------------------------------------------------------------
|
|
136
|
+
// This is an implementation of RFC 6570 URI Template: https://datatracker.ietf.org/doc/html/rfc6570.
|
|
137
|
+
// ---------------------------------------------------------------------------------------------------
|
|
138
|
+
export function expandUrlTemplate(template, context, option) {
|
|
139
|
+
return template.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g, (_, expr, text) => {
|
|
140
|
+
if (!expr) {
|
|
141
|
+
return encodeReservedComponent(text);
|
|
142
|
+
}
|
|
143
|
+
let op;
|
|
144
|
+
if (["+", "#", ".", "/", ";", "?", "&"].includes(expr[0])) {
|
|
145
|
+
((op = expr[0]), (expr = expr.slice(1)));
|
|
146
|
+
}
|
|
147
|
+
const varList = expr.split(/,/g);
|
|
148
|
+
const result = [];
|
|
149
|
+
for (const varSpec of varList) {
|
|
150
|
+
const varMatch = /([^:\*]*)(?::(\d+)|(\*))?/.exec(varSpec);
|
|
151
|
+
if (!varMatch || !varMatch[1]) {
|
|
152
|
+
continue;
|
|
153
|
+
}
|
|
154
|
+
const varValue = getVarValue({
|
|
155
|
+
isFirst: result.length === 0,
|
|
156
|
+
op,
|
|
157
|
+
varValue: context[varMatch[1]],
|
|
158
|
+
varName: varMatch[1],
|
|
159
|
+
modifier: varMatch[2] || varMatch[3],
|
|
160
|
+
reserved: option?.allowReserved,
|
|
161
|
+
});
|
|
162
|
+
if (varValue) {
|
|
163
|
+
result.push(varValue);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
return result.join("");
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
//# sourceMappingURL=urlTemplate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"urlTemplate.js","sourceRoot":"","sources":["../../../src/static-helpers/urlTemplate.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAmBlC,wBAAwB;AACxB,UAAU;AACV,wBAAwB;AACxB,SAAS,eAAe,CAAC,GAAW,EAAE,QAAkB,EAAE,EAAW;IACnE,OAAO,CAAC,QAAQ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C,CAAC;YAC3D,IAAI,CAAC,QAAQ,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC9B,SAAS;YACX,CAAC;YACD,MAAM,QAAQ,GAAG,WAAW,CAAC;gBAC3B,OAAO,EAAE,MAAM,CAAC,MAAM,KAAK,CAAC;gBAC5B,EAAE;gBACF,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;gBAC9B,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC;gBACpB,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,IAAI,QAAQ,CAAC,CAAC,CAAC;gBACpC,QAAQ,EAAE,MAAM,EAAE,aAAa;aAChC,CAAC,CAAC;YACH,IAAI,QAAQ,EAAE,CAAC;gBACb,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YACxB,CAAC;QACH,CAAC;QACD,OAAO,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACzB,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n//---------------------\n// interfaces\n//---------------------\ninterface ValueOptions {\n isFirst: boolean; // is first value in the expression\n op?: string; // operator\n varValue?: any; // variable value\n varName?: string; // variable name\n modifier?: string; // modifier e.g *\n reserved?: boolean; // if true we'll keep reserved words with not encoding\n}\n\nexport interface UrlTemplateOptions {\n // if set to true, reserved characters will not be encoded\n allowReserved?: boolean;\n}\n\n// ---------------------\n// helpers\n// ---------------------\nfunction encodeComponent(val: string, reserved?: boolean, op?: string) {\n return (reserved ?? op === \"+\") || op === \"#\"\n ? encodeReservedComponent(val)\n : encodeRFC3986URIComponent(val);\n}\n\nfunction encodeReservedComponent(str: string) {\n return str\n .split(/(%[0-9A-Fa-f]{2})/g)\n .map((part) => (!/%[0-9A-Fa-f]/.test(part) ? encodeURI(part) : part))\n .join(\"\");\n}\n\nfunction encodeRFC3986URIComponent(str: string) {\n return encodeURIComponent(str).replace(\n /[!'()*]/g,\n (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`,\n );\n}\n\nfunction isDefined(val: any) {\n return val !== undefined && val !== null;\n}\n\nfunction getNamedAndIfEmpty(op?: string): [boolean, string] {\n return [!!op && [\";\", \"?\", \"&\"].includes(op), !!op && [\"?\", \"&\"].includes(op) ? \"=\" : \"\"];\n}\n\nfunction getFirstOrSep(op?: string, isFirst = false) {\n if (isFirst) {\n return !op || op === \"+\" ? \"\" : op;\n } else if (!op || op === \"+\" || op === \"#\") {\n return \",\";\n } else if (op === \"?\") {\n return \"&\";\n } else {\n return op;\n }\n}\n\nfunction getExpandedValue(option: ValueOptions) {\n let isFirst = option.isFirst;\n const { op, varName, varValue: value, reserved } = option;\n const vals: string[] = [];\n const [named, ifEmpty] = getNamedAndIfEmpty(op);\n\n if (Array.isArray(value)) {\n for (const val of value.filter(isDefined)) {\n // prepare the following parts: separator, varName, value\n vals.push(`${getFirstOrSep(op, isFirst)}`);\n if (named && varName) {\n vals.push(`${encodeURIComponent(varName)}`);\n val === \"\" ? vals.push(ifEmpty) : vals.push(\"=\");\n }\n vals.push(encodeComponent(val, reserved, op));\n isFirst = false;\n }\n } else if (typeof value === \"object\") {\n for (const key of Object.keys(value)) {\n const val = value[key];\n if (!isDefined(val)) {\n continue;\n }\n // prepare the following parts: separator, key, value\n vals.push(`${getFirstOrSep(op, isFirst)}`);\n if (key) {\n vals.push(`${encodeURIComponent(key)}`);\n named && val === \"\" ? vals.push(ifEmpty) : vals.push(\"=\");\n }\n vals.push(encodeComponent(val, reserved, op));\n isFirst = false;\n }\n }\n return vals.join(\"\");\n}\n\nfunction getNonExpandedValue(option: ValueOptions) {\n const { op, varName, varValue: value, isFirst, reserved } = option;\n const vals: string[] = [];\n const first = getFirstOrSep(op, isFirst);\n const [named, ifEmpty] = getNamedAndIfEmpty(op);\n if (named && varName) {\n vals.push(encodeComponent(varName, reserved, op));\n if (value === \"\") {\n if (!ifEmpty) {\n vals.push(ifEmpty);\n }\n return !vals.join(\"\") ? undefined : `${first}${vals.join(\"\")}`;\n }\n vals.push(\"=\");\n }\n\n const items = [];\n if (Array.isArray(value)) {\n for (const val of value.filter(isDefined)) {\n items.push(encodeComponent(val, reserved, op));\n }\n } else if (typeof value === \"object\") {\n for (const key of Object.keys(value)) {\n if (!isDefined(value[key])) {\n continue;\n }\n items.push(encodeRFC3986URIComponent(key));\n items.push(encodeComponent(value[key], reserved, op));\n }\n }\n vals.push(items.join(\",\"));\n return !vals.join(\",\") ? undefined : `${first}${vals.join(\"\")}`;\n}\n\nfunction getVarValue(option: ValueOptions): string | undefined {\n const { op, varName, modifier, isFirst, reserved, varValue: value } = option;\n\n if (!isDefined(value)) {\n return undefined;\n } else if ([\"string\", \"number\", \"boolean\"].includes(typeof value)) {\n let val = value.toString();\n const [named, ifEmpty] = getNamedAndIfEmpty(op);\n const vals: string[] = [getFirstOrSep(op, isFirst)];\n if (named && varName) {\n // No need to encode varName considering it is already encoded\n vals.push(varName);\n val === \"\" ? vals.push(ifEmpty) : vals.push(\"=\");\n }\n if (modifier && modifier !== \"*\") {\n val = val.substring(0, parseInt(modifier, 10));\n }\n vals.push(encodeComponent(val, reserved, op));\n return vals.join(\"\");\n } else if (modifier === \"*\") {\n return getExpandedValue(option);\n } else {\n return getNonExpandedValue(option);\n }\n}\n\n// ---------------------------------------------------------------------------------------------------\n// This is an implementation of RFC 6570 URI Template: https://datatracker.ietf.org/doc/html/rfc6570.\n// ---------------------------------------------------------------------------------------------------\nexport function expandUrlTemplate(\n template: string,\n context: Record<string, any>,\n option?: UrlTemplateOptions,\n): string {\n return template.replace(/\\{([^\\{\\}]+)\\}|([^\\{\\}]+)/g, (_, expr, text) => {\n if (!expr) {\n return encodeReservedComponent(text);\n }\n let op;\n if ([\"+\", \"#\", \".\", \"/\", \";\", \"?\", \"&\"].includes(expr[0])) {\n ((op = expr[0]), (expr = expr.slice(1)));\n }\n const varList = expr.split(/,/g);\n const result = [];\n for (const varSpec of varList) {\n const varMatch = /([^:\\*]*)(?::(\\d+)|(\\*))?/.exec(varSpec);\n if (!varMatch || !varMatch[1]) {\n continue;\n }\n const varValue = getVarValue({\n isFirst: result.length === 0,\n op,\n varValue: context[varMatch[1]],\n varName: varMatch[1],\n modifier: varMatch[2] || varMatch[3],\n reserved: option?.allowReserved,\n });\n if (varValue) {\n result.push(varValue);\n }\n }\n return result.join(\"\");\n });\n}\n"]}
|
package/package.json
ADDED
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@azure/arm-resourcesbicep",
|
|
3
|
+
"version": "1.0.0-alpha.20250910.1",
|
|
4
|
+
"description": "A generated SDK for BicepClient.",
|
|
5
|
+
"engines": {
|
|
6
|
+
"node": ">=20.0.0"
|
|
7
|
+
},
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"autoPublish": false,
|
|
10
|
+
"tshy": {
|
|
11
|
+
"exports": {
|
|
12
|
+
"./package.json": "./package.json",
|
|
13
|
+
".": "./src/index.ts",
|
|
14
|
+
"./api": "./src/api/index.ts",
|
|
15
|
+
"./api/decompileOperationGroup": "./src/api/decompileOperationGroup/index.ts",
|
|
16
|
+
"./models": "./src/models/index.ts"
|
|
17
|
+
},
|
|
18
|
+
"dialects": [
|
|
19
|
+
"esm",
|
|
20
|
+
"commonjs"
|
|
21
|
+
],
|
|
22
|
+
"esmDialects": [
|
|
23
|
+
"browser",
|
|
24
|
+
"react-native"
|
|
25
|
+
],
|
|
26
|
+
"selfLink": false,
|
|
27
|
+
"project": "../../../tsconfig.src.build.json"
|
|
28
|
+
},
|
|
29
|
+
"type": "module",
|
|
30
|
+
"browser": "./dist/browser/index.js",
|
|
31
|
+
"react-native": "./dist/react-native/index.js",
|
|
32
|
+
"keywords": [
|
|
33
|
+
"node",
|
|
34
|
+
"azure",
|
|
35
|
+
"cloud",
|
|
36
|
+
"typescript",
|
|
37
|
+
"browser",
|
|
38
|
+
"isomorphic"
|
|
39
|
+
],
|
|
40
|
+
"author": "Microsoft Corporation",
|
|
41
|
+
"license": "MIT",
|
|
42
|
+
"files": [
|
|
43
|
+
"dist/",
|
|
44
|
+
"!dist/**/*.d.*ts.map",
|
|
45
|
+
"README.md",
|
|
46
|
+
"LICENSE",
|
|
47
|
+
"review/*",
|
|
48
|
+
"CHANGELOG.md"
|
|
49
|
+
],
|
|
50
|
+
"sdk-type": "mgmt",
|
|
51
|
+
"repository": "github:Azure/azure-sdk-for-js",
|
|
52
|
+
"bugs": {
|
|
53
|
+
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
|
|
54
|
+
},
|
|
55
|
+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resources/arm-resourcesbicep/README.md",
|
|
56
|
+
"prettier": "@azure/eslint-plugin-azure-sdk/prettier.json",
|
|
57
|
+
"//metadata": {
|
|
58
|
+
"constantPaths": [
|
|
59
|
+
{
|
|
60
|
+
"path": "src/api/bicepContext.ts",
|
|
61
|
+
"prefix": "userAgentInfo"
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
"dependencies": {
|
|
66
|
+
"@azure/core-util": "^1.11.0",
|
|
67
|
+
"@azure-rest/core-client": "^2.1.0",
|
|
68
|
+
"@azure/core-auth": "^1.9.0",
|
|
69
|
+
"@azure/core-rest-pipeline": "^1.18.2",
|
|
70
|
+
"@azure/logger": "^1.1.4",
|
|
71
|
+
"tslib": "^2.8.1"
|
|
72
|
+
},
|
|
73
|
+
"devDependencies": {
|
|
74
|
+
"@azure/identity": "4.11.1",
|
|
75
|
+
"@types/node": "^20.19.0",
|
|
76
|
+
"eslint": "^9.33.0",
|
|
77
|
+
"@vitest/browser": "^3.2.3",
|
|
78
|
+
"@vitest/coverage-istanbul": "^3.2.3",
|
|
79
|
+
"dotenv": "^16.0.0",
|
|
80
|
+
"playwright": "^1.50.1",
|
|
81
|
+
"typescript": "~5.8.3",
|
|
82
|
+
"vitest": "^3.2.3",
|
|
83
|
+
"@azure-tools/test-credential": "^2.1.2",
|
|
84
|
+
"@azure-tools/test-recorder": "^4.1.1",
|
|
85
|
+
"@azure/dev-tool": "^1.0.0",
|
|
86
|
+
"@azure-tools/test-utils-vitest": "^2.0.1",
|
|
87
|
+
"@azure/eslint-plugin-azure-sdk": "^3.0.0"
|
|
88
|
+
},
|
|
89
|
+
"//sampleConfiguration": {
|
|
90
|
+
"productName": "@azure/arm-resourcesbicep",
|
|
91
|
+
"productSlugs": [
|
|
92
|
+
"azure"
|
|
93
|
+
],
|
|
94
|
+
"disableDocsMs": true,
|
|
95
|
+
"apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-resourcesbicep?view=azure-node-preview"
|
|
96
|
+
},
|
|
97
|
+
"exports": {
|
|
98
|
+
"./package.json": "./package.json",
|
|
99
|
+
".": {
|
|
100
|
+
"browser": {
|
|
101
|
+
"types": "./dist/browser/index.d.ts",
|
|
102
|
+
"default": "./dist/browser/index.js"
|
|
103
|
+
},
|
|
104
|
+
"react-native": {
|
|
105
|
+
"types": "./dist/react-native/index.d.ts",
|
|
106
|
+
"default": "./dist/react-native/index.js"
|
|
107
|
+
},
|
|
108
|
+
"import": {
|
|
109
|
+
"types": "./dist/esm/index.d.ts",
|
|
110
|
+
"default": "./dist/esm/index.js"
|
|
111
|
+
},
|
|
112
|
+
"require": {
|
|
113
|
+
"types": "./dist/commonjs/index.d.ts",
|
|
114
|
+
"default": "./dist/commonjs/index.js"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"./api": {
|
|
118
|
+
"browser": {
|
|
119
|
+
"types": "./dist/browser/api/index.d.ts",
|
|
120
|
+
"default": "./dist/browser/api/index.js"
|
|
121
|
+
},
|
|
122
|
+
"react-native": {
|
|
123
|
+
"types": "./dist/react-native/api/index.d.ts",
|
|
124
|
+
"default": "./dist/react-native/api/index.js"
|
|
125
|
+
},
|
|
126
|
+
"import": {
|
|
127
|
+
"types": "./dist/esm/api/index.d.ts",
|
|
128
|
+
"default": "./dist/esm/api/index.js"
|
|
129
|
+
},
|
|
130
|
+
"require": {
|
|
131
|
+
"types": "./dist/commonjs/api/index.d.ts",
|
|
132
|
+
"default": "./dist/commonjs/api/index.js"
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"./api/decompileOperationGroup": {
|
|
136
|
+
"browser": {
|
|
137
|
+
"types": "./dist/browser/api/decompileOperationGroup/index.d.ts",
|
|
138
|
+
"default": "./dist/browser/api/decompileOperationGroup/index.js"
|
|
139
|
+
},
|
|
140
|
+
"react-native": {
|
|
141
|
+
"types": "./dist/react-native/api/decompileOperationGroup/index.d.ts",
|
|
142
|
+
"default": "./dist/react-native/api/decompileOperationGroup/index.js"
|
|
143
|
+
},
|
|
144
|
+
"import": {
|
|
145
|
+
"types": "./dist/esm/api/decompileOperationGroup/index.d.ts",
|
|
146
|
+
"default": "./dist/esm/api/decompileOperationGroup/index.js"
|
|
147
|
+
},
|
|
148
|
+
"require": {
|
|
149
|
+
"types": "./dist/commonjs/api/decompileOperationGroup/index.d.ts",
|
|
150
|
+
"default": "./dist/commonjs/api/decompileOperationGroup/index.js"
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"./models": {
|
|
154
|
+
"browser": {
|
|
155
|
+
"types": "./dist/browser/models/index.d.ts",
|
|
156
|
+
"default": "./dist/browser/models/index.js"
|
|
157
|
+
},
|
|
158
|
+
"react-native": {
|
|
159
|
+
"types": "./dist/react-native/models/index.d.ts",
|
|
160
|
+
"default": "./dist/react-native/models/index.js"
|
|
161
|
+
},
|
|
162
|
+
"import": {
|
|
163
|
+
"types": "./dist/esm/models/index.d.ts",
|
|
164
|
+
"default": "./dist/esm/models/index.js"
|
|
165
|
+
},
|
|
166
|
+
"require": {
|
|
167
|
+
"types": "./dist/commonjs/models/index.d.ts",
|
|
168
|
+
"default": "./dist/commonjs/models/index.js"
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"main": "./dist/commonjs/index.js",
|
|
173
|
+
"types": "./dist/commonjs/index.d.ts",
|
|
174
|
+
"module": "./dist/esm/index.js",
|
|
175
|
+
"scripts": {
|
|
176
|
+
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
|
|
177
|
+
"build:samples": "tsc -p tsconfig.samples.json",
|
|
178
|
+
"check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" \"samples-dev/*.ts\"",
|
|
179
|
+
"clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
|
|
180
|
+
"execute:samples": "dev-tool samples run samples-dev",
|
|
181
|
+
"extract-api": "dev-tool run vendored rimraf review && dev-tool run extract-api",
|
|
182
|
+
"format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" \"samples-dev/*.ts\"",
|
|
183
|
+
"generate:client": "echo skipped",
|
|
184
|
+
"lint": "echo skipped",
|
|
185
|
+
"lint:fix": "echo skipped",
|
|
186
|
+
"pack": "pnpm pack 2>&1",
|
|
187
|
+
"test": "npm run test:node && npm run test:browser",
|
|
188
|
+
"test:browser": "dev-tool run build-test && dev-tool run test:vitest --browser",
|
|
189
|
+
"test:node": "dev-tool run build-test --no-browser-test && dev-tool run test:vitest",
|
|
190
|
+
"update-snippets": "dev-tool run update-snippets"
|
|
191
|
+
}
|
|
192
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
## API Report File for "@azure/arm-resourcesbicep"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
import { Client } from '@azure-rest/core-client';
|
|
8
|
+
import { OperationOptions } from '@azure-rest/core-client';
|
|
9
|
+
|
|
10
|
+
// @public
|
|
11
|
+
export function bicep(context: BicepContext, decompileOperationRequest: DecompileOperationRequest, options?: DecompileOperationGroupBicepOptionalParams): Promise<DecompileOperationSuccessResponse>;
|
|
12
|
+
|
|
13
|
+
// @public
|
|
14
|
+
export interface DecompileOperationGroupBicepOptionalParams extends OperationOptions {
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// (No @packageDocumentation comment for this package)
|
|
18
|
+
|
|
19
|
+
```
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
## API Report File for "@azure/arm-resourcesbicep"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
import { Client } from '@azure-rest/core-client';
|
|
8
|
+
import { ClientOptions } from '@azure-rest/core-client';
|
|
9
|
+
import { TokenCredential } from '@azure/core-auth';
|
|
10
|
+
|
|
11
|
+
// @public
|
|
12
|
+
export interface BicepClientOptionalParams extends ClientOptions {
|
|
13
|
+
apiVersion?: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// @public
|
|
17
|
+
export interface BicepContext extends Client {
|
|
18
|
+
apiVersion: string;
|
|
19
|
+
subscriptionId: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// @public
|
|
23
|
+
export function createBicep(credential: TokenCredential, subscriptionId: string, options?: BicepClientOptionalParams): BicepContext;
|
|
24
|
+
|
|
25
|
+
// (No @packageDocumentation comment for this package)
|
|
26
|
+
|
|
27
|
+
```
|