@microsoft/typespec-msgraph 0.0.1-Preview.4 → 0.0.1-Preview.6
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/src/components/alternate-keys-annotation.js +4 -4
- package/dist/src/components/alternate-keys-annotation.js.map +1 -1
- package/dist/src/components/annotations.d.ts +9 -0
- package/dist/src/components/annotations.d.ts.map +1 -0
- package/dist/src/components/annotations.js +45 -0
- package/dist/src/components/annotations.js.map +1 -0
- package/dist/src/components/common-elements.d.ts +17 -4
- package/dist/src/components/common-elements.d.ts.map +1 -1
- package/dist/src/components/common-elements.js +2 -2
- package/dist/src/components/common-elements.js.map +1 -1
- package/dist/src/components/computed-annotation.js +1 -1
- package/dist/src/components/computed-annotation.js.map +1 -1
- package/dist/src/components/count-restrictions-annotation.d.ts.map +1 -1
- package/dist/src/components/count-restrictions-annotation.js +3 -8
- package/dist/src/components/count-restrictions-annotation.js.map +1 -1
- package/dist/src/components/description-annotation.d.ts.map +1 -1
- package/dist/src/components/description-annotation.js +1 -0
- package/dist/src/components/description-annotation.js.map +1 -1
- package/dist/src/components/entity-container-element.d.ts +18 -3
- package/dist/src/components/entity-container-element.d.ts.map +1 -1
- package/dist/src/components/entity-container-element.js +6 -42
- package/dist/src/components/entity-container-element.js.map +1 -1
- package/dist/src/components/enum-type-element.js +1 -1
- package/dist/src/components/enum-type-element.js.map +1 -1
- package/dist/src/components/expand-restrictions-annotation.d.ts.map +1 -1
- package/dist/src/components/expand-restrictions-annotation.js +7 -13
- package/dist/src/components/expand-restrictions-annotation.js.map +1 -1
- package/dist/src/components/operation-element.js +3 -3
- package/dist/src/components/operation-element.js.map +1 -1
- package/dist/src/components/schema-element.d.ts.map +1 -1
- package/dist/src/components/schema-element.js +6 -3
- package/dist/src/components/schema-element.js.map +1 -1
- package/dist/src/components/search-restrictions-annotation.d.ts.map +1 -1
- package/dist/src/components/search-restrictions-annotation.js +3 -8
- package/dist/src/components/search-restrictions-annotation.js.map +1 -1
- package/dist/src/components/skip-supported-annotation.d.ts.map +1 -1
- package/dist/src/components/skip-supported-annotation.js +1 -6
- package/dist/src/components/skip-supported-annotation.js.map +1 -1
- package/dist/src/components/sort-restrictions-annotation.d.ts.map +1 -1
- package/dist/src/components/sort-restrictions-annotation.js +7 -13
- package/dist/src/components/sort-restrictions-annotation.js.map +1 -1
- package/dist/src/components/structured-type-element.d.ts +4 -7
- package/dist/src/components/structured-type-element.d.ts.map +1 -1
- package/dist/src/components/structured-type-element.js +21 -23
- package/dist/src/components/structured-type-element.js.map +1 -1
- package/dist/src/components/top-supported-annotation.d.ts.map +1 -1
- package/dist/src/components/top-supported-annotation.js +1 -4
- package/dist/src/components/top-supported-annotation.js.map +1 -1
- package/dist/src/components/update-restrictions-annotation.d.ts +5 -0
- package/dist/src/components/update-restrictions-annotation.d.ts.map +1 -0
- package/dist/src/components/update-restrictions-annotation.js +8 -0
- package/dist/src/components/update-restrictions-annotation.js.map +1 -0
- package/dist/src/decorators/{handlers/custom/additional-query-parameters.d.ts → additional-query-parameters.d.ts} +4 -3
- package/dist/src/decorators/additional-query-parameters.d.ts.map +1 -0
- package/dist/src/decorators/additional-query-parameters.js +21 -0
- package/dist/src/decorators/additional-query-parameters.js.map +1 -0
- package/dist/src/decorators/ags-attribute.d.ts +13 -0
- package/dist/src/decorators/ags-attribute.d.ts.map +1 -0
- package/dist/src/decorators/ags-attribute.js +68 -0
- package/dist/src/decorators/ags-attribute.js.map +1 -0
- package/dist/src/decorators/delta-collection.d.ts +8 -0
- package/dist/src/decorators/delta-collection.d.ts.map +1 -0
- package/dist/src/decorators/delta-collection.js +12 -0
- package/dist/src/decorators/delta-collection.js.map +1 -0
- package/dist/src/decorators/deprecated-definition.d.ts +3 -4
- package/dist/src/decorators/deprecated-definition.d.ts.map +1 -1
- package/dist/src/decorators/deprecated-definition.js +1 -7
- package/dist/src/decorators/deprecated-definition.js.map +1 -1
- package/dist/src/decorators/expand.d.ts +1 -2
- package/dist/src/decorators/expand.d.ts.map +1 -1
- package/dist/src/decorators/expand.js +1 -1
- package/dist/src/decorators/expand.js.map +1 -1
- package/dist/src/decorators/flags.d.ts +9 -0
- package/dist/src/decorators/flags.d.ts.map +1 -0
- package/dist/src/decorators/flags.js +13 -0
- package/dist/src/decorators/flags.js.map +1 -0
- package/dist/src/decorators/function.d.ts +1 -2
- package/dist/src/decorators/function.d.ts.map +1 -1
- package/dist/src/decorators/function.js +1 -1
- package/dist/src/decorators/function.js.map +1 -1
- package/dist/src/decorators/graph-route.d.ts +9 -0
- package/dist/src/decorators/graph-route.d.ts.map +1 -0
- package/dist/src/decorators/graph-route.js +84 -0
- package/dist/src/decorators/graph-route.js.map +1 -0
- package/dist/src/decorators/has-stream.d.ts +1 -2
- package/dist/src/decorators/has-stream.d.ts.map +1 -1
- package/dist/src/decorators/has-stream.js +1 -1
- package/dist/src/decorators/has-stream.js.map +1 -1
- package/dist/src/decorators/index.d.ts +10 -2
- package/dist/src/decorators/index.d.ts.map +1 -1
- package/dist/src/decorators/index.js +10 -2
- package/dist/src/decorators/index.js.map +1 -1
- package/dist/src/decorators/is-owner.d.ts +9 -0
- package/dist/src/decorators/is-owner.d.ts.map +1 -0
- package/dist/src/decorators/is-owner.js +14 -0
- package/dist/src/decorators/is-owner.js.map +1 -0
- package/dist/src/decorators/order-by.d.ts +1 -2
- package/dist/src/decorators/order-by.d.ts.map +1 -1
- package/dist/src/decorators/order-by.js +1 -1
- package/dist/src/decorators/order-by.js.map +1 -1
- package/dist/src/decorators/paged-collection.d.ts +8 -0
- package/dist/src/decorators/paged-collection.d.ts.map +1 -0
- package/dist/src/decorators/paged-collection.js +12 -0
- package/dist/src/decorators/paged-collection.js.map +1 -0
- package/dist/src/decorators/private-preview-definition.d.ts +3 -4
- package/dist/src/decorators/private-preview-definition.d.ts.map +1 -1
- package/dist/src/decorators/private-preview-definition.js +1 -6
- package/dist/src/decorators/private-preview-definition.js.map +1 -1
- package/dist/src/decorators/private-preview.d.ts +1 -2
- package/dist/src/decorators/private-preview.d.ts.map +1 -1
- package/dist/src/decorators/private-preview.js +1 -1
- package/dist/src/decorators/private-preview.js.map +1 -1
- package/dist/src/decorators/privileged.d.ts +9 -0
- package/dist/src/decorators/privileged.d.ts.map +1 -0
- package/dist/src/decorators/privileged.js +13 -0
- package/dist/src/decorators/privileged.js.map +1 -0
- package/dist/src/decorators/workload-name-msa.d.ts +9 -0
- package/dist/src/decorators/workload-name-msa.d.ts.map +1 -0
- package/dist/src/decorators/workload-name-msa.js +13 -0
- package/dist/src/decorators/workload-name-msa.js.map +1 -0
- package/dist/src/decorators/workload-name.d.ts +9 -0
- package/dist/src/decorators/workload-name.d.ts.map +1 -0
- package/dist/src/decorators/workload-name.js +13 -0
- package/dist/src/decorators/workload-name.js.map +1 -0
- package/dist/src/entities/annotations.d.ts +31 -0
- package/dist/src/entities/annotations.d.ts.map +1 -0
- package/dist/src/entities/annotations.js +99 -0
- package/dist/src/entities/annotations.js.map +1 -0
- package/dist/src/entities/entity-container.d.ts +4 -24
- package/dist/src/entities/entity-container.d.ts.map +1 -1
- package/dist/src/entities/entity-container.js +30 -120
- package/dist/src/entities/entity-container.js.map +1 -1
- package/dist/src/entities/enum.d.ts +1 -0
- package/dist/src/entities/enum.d.ts.map +1 -1
- package/dist/src/entities/enum.js +5 -3
- package/dist/src/entities/enum.js.map +1 -1
- package/dist/src/entities/model.d.ts +12 -22
- package/dist/src/entities/model.d.ts.map +1 -1
- package/dist/src/entities/model.js +64 -101
- package/dist/src/entities/model.js.map +1 -1
- package/dist/src/entities/namespace.d.ts +8 -3
- package/dist/src/entities/namespace.d.ts.map +1 -1
- package/dist/src/entities/namespace.js +31 -13
- package/dist/src/entities/namespace.js.map +1 -1
- package/dist/src/entities/operation.d.ts +2 -2
- package/dist/src/entities/operation.d.ts.map +1 -1
- package/dist/src/entities/operation.js +30 -14
- package/dist/src/entities/operation.js.map +1 -1
- package/dist/src/linter.d.ts.map +1 -1
- package/dist/src/linter.js +25 -25
- package/dist/src/linter.js.map +1 -1
- package/dist/src/rules/count.d.ts.map +1 -1
- package/dist/src/rules/count.js +3 -1
- package/dist/src/rules/count.js.map +1 -1
- package/dist/src/rules/entity.d.ts.map +1 -1
- package/dist/src/rules/entity.js +4 -1
- package/dist/src/rules/entity.js.map +1 -1
- package/dist/src/rules/expand.d.ts.map +1 -1
- package/dist/src/rules/expand.js +5 -7
- package/dist/src/rules/expand.js.map +1 -1
- package/dist/src/rules/index.d.ts.map +1 -1
- package/dist/src/rules/index.js +1 -0
- package/dist/src/rules/index.js.map +1 -1
- package/dist/src/rules/order-by.d.ts +1 -1
- package/dist/src/rules/order-by.d.ts.map +1 -1
- package/dist/src/rules/order-by.js +11 -10
- package/dist/src/rules/order-by.js.map +1 -1
- package/dist/src/rules/search.d.ts.map +1 -1
- package/dist/src/rules/search.js +3 -1
- package/dist/src/rules/search.js.map +1 -1
- package/dist/src/rules/skip.d.ts.map +1 -1
- package/dist/src/rules/skip.js +3 -1
- package/dist/src/rules/skip.js.map +1 -1
- package/dist/src/rules/top.d.ts.map +1 -1
- package/dist/src/rules/top.js +3 -1
- package/dist/src/rules/top.js.map +1 -1
- package/dist/src/utils.d.ts +16 -0
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/src/utils.js +87 -1
- package/dist/src/utils.js.map +1 -1
- package/lib/decorators.tsp +97 -14
- package/lib/deployment.tsp +18 -0
- package/lib/lib.tsp +9 -14
- package/lib/msgraph.tsp +4 -0
- package/lib/porcelain.tsp +135 -0
- package/lib/responses.tsp +82 -0
- package/lib/shared-models.tsp +74 -0
- package/package.json +1 -2
- package/dist/src/decorators/attribute-builder.d.ts +0 -2
- package/dist/src/decorators/attribute-builder.d.ts.map +0 -1
- package/dist/src/decorators/attribute-builder.js +0 -166
- package/dist/src/decorators/attribute-builder.js.map +0 -1
- package/dist/src/decorators/attributes.d.ts +0 -57
- package/dist/src/decorators/attributes.d.ts.map +0 -1
- package/dist/src/decorators/attributes.js +0 -50
- package/dist/src/decorators/attributes.js.map +0 -1
- package/dist/src/decorators/decorator-parameter.d.ts +0 -4
- package/dist/src/decorators/decorator-parameter.d.ts.map +0 -1
- package/dist/src/decorators/decorator-parameter.js +0 -2
- package/dist/src/decorators/decorator-parameter.js.map +0 -1
- package/dist/src/decorators/handlers/custom/additional-query-parameters.d.ts.map +0 -1
- package/dist/src/decorators/handlers/custom/additional-query-parameters.js +0 -38
- package/dist/src/decorators/handlers/custom/additional-query-parameters.js.map +0 -1
- package/dist/src/decorators/handlers/custom/ags-attribute.d.ts +0 -8
- package/dist/src/decorators/handlers/custom/ags-attribute.d.ts.map +0 -1
- package/dist/src/decorators/handlers/custom/ags-attribute.js +0 -36
- package/dist/src/decorators/handlers/custom/ags-attribute.js.map +0 -1
- package/dist/src/decorators/handlers/custom/index.d.ts +0 -3
- package/dist/src/decorators/handlers/custom/index.d.ts.map +0 -1
- package/dist/src/decorators/handlers/custom/index.js +0 -3
- package/dist/src/decorators/handlers/custom/index.js.map +0 -1
- package/dist/src/decorators/handlers/index.d.ts +0 -31
- package/dist/src/decorators/handlers/index.d.ts.map +0 -1
- package/dist/src/decorators/handlers/index.js +0 -121
- package/dist/src/decorators/handlers/index.js.map +0 -1
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { setRoute } from "@typespec/http";
|
|
2
|
+
import { getNavigationSourceType } from "../utils.js";
|
|
3
|
+
const graphRouteKey = Symbol("graphRoute");
|
|
4
|
+
/**
|
|
5
|
+
* `@graphRoute` - Allow us to define an HTTP route for an interface or operation.
|
|
6
|
+
* `@graphRoute` - Applies to interfaces and operations.
|
|
7
|
+
*/
|
|
8
|
+
export function $graphRoute(context, target, path) {
|
|
9
|
+
context.program.stateMap(graphRouteKey).set(target, path);
|
|
10
|
+
setRoute(context, target, {
|
|
11
|
+
path,
|
|
12
|
+
shared: true,
|
|
13
|
+
});
|
|
14
|
+
const routeParams = extractParamsFromPath(path);
|
|
15
|
+
// Modify the operations to inject path parameters and correct resource type from interface base interface.
|
|
16
|
+
// TODO: Using @graphRoute on an operation currently does not work due to the following TypeSpec core issue
|
|
17
|
+
// https://github.com/microsoft/typespec/issues/2106
|
|
18
|
+
// Disabling all related features while we await the outcome.
|
|
19
|
+
/*
|
|
20
|
+
if (target.kind === "Operation") {
|
|
21
|
+
const returnType = getNavigationSourceType(context.program, target as Operation);
|
|
22
|
+
if (returnType !== undefined) {
|
|
23
|
+
replaceParametersOnOperation(target as Operation, routeParams);
|
|
24
|
+
replaceResourceType(context.program, target as Operation, returnType);
|
|
25
|
+
}
|
|
26
|
+
} else */
|
|
27
|
+
if (target.kind === "Interface") {
|
|
28
|
+
target.operations.forEach((operation) => {
|
|
29
|
+
const returnType = getNavigationSourceType(context.program, operation);
|
|
30
|
+
if (returnType !== undefined) {
|
|
31
|
+
replaceParametersOnOperation(operation, routeParams);
|
|
32
|
+
replaceResourceType(context.program, operation, returnType);
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
function replaceResourceType(program, operation, resourceType) {
|
|
38
|
+
const [calculatedResourceType, _] = program.resolveTypeReference("TypeSpec.MsGraph.Automatic.CalculatedResourceType");
|
|
39
|
+
if (!calculatedResourceType) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
const resourceCoreType = getResourceCoreType(resourceType);
|
|
43
|
+
// Replace body, if any.
|
|
44
|
+
if (operation.parameters.properties.has("body")) {
|
|
45
|
+
const property = operation.parameters.properties.get("body");
|
|
46
|
+
if ((property === null || property === void 0 ? void 0 : property.type) === calculatedResourceType) {
|
|
47
|
+
property.type = resourceCoreType;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
function getResourceCoreType(resourceType) {
|
|
52
|
+
var _a;
|
|
53
|
+
return resourceType.indexer !== undefined ? (_a = resourceType.indexer) === null || _a === void 0 ? void 0 : _a.value : resourceType;
|
|
54
|
+
}
|
|
55
|
+
function replaceParametersOnOperation(operation, params) {
|
|
56
|
+
if (operation.parameters.properties.has("graphRouteParams")) {
|
|
57
|
+
operation.parameters.properties.delete("graphRouteParams");
|
|
58
|
+
params.forEach((param) => {
|
|
59
|
+
operation.parameters.properties.set(param, {
|
|
60
|
+
name: param,
|
|
61
|
+
kind: "ModelProperty",
|
|
62
|
+
type: { name: "string", kind: "Scalar" },
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Extract params to be interpolated(Wrapped in '{' and '}'}) from a path/url.
|
|
69
|
+
* @param path Path/Url
|
|
70
|
+
*
|
|
71
|
+
* @example "foo/{name}/bar" -> ["name"]
|
|
72
|
+
*/
|
|
73
|
+
function extractParamsFromPath(path) {
|
|
74
|
+
var _a;
|
|
75
|
+
const matchResults = path.match(/\{\w+\}/g);
|
|
76
|
+
return (_a = matchResults === null || matchResults === void 0 ? void 0 : matchResults.map((s) => s.slice(1, -1))) !== null && _a !== void 0 ? _a : [];
|
|
77
|
+
}
|
|
78
|
+
export function getGraphRoutePath(program, target) {
|
|
79
|
+
return program.stateMap(graphRouteKey).get(target);
|
|
80
|
+
}
|
|
81
|
+
export function hasGraphRoute(program, target) {
|
|
82
|
+
return program.stateMap(graphRouteKey).has(target);
|
|
83
|
+
}
|
|
84
|
+
//# sourceMappingURL=graph-route.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph-route.js","sourceRoot":"","sources":["../../../src/decorators/graph-route.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAEtD,MAAM,aAAa,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC;AAE3C;;;GAGG;AACH,MAAM,UAAU,WAAW,CACzB,OAAyB,EACzB,MAA6B,EAC7B,IAAY;IAEZ,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC,C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C,OAAgB,EAAE,MAAY;IAC1D,OAAO,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACrD,CAAC"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { DecoratorContext, Model, Program } from "@typespec/compiler";
|
|
2
|
-
import { DecoratorParameter } from "./decorator-parameter.js";
|
|
3
2
|
/**
|
|
4
3
|
* `@hasStream` - indicates that an `@entity` model has a stream.
|
|
5
4
|
*
|
|
6
5
|
* `mediaTypes` - list of media types supported by the stream. If not specified, the stream supports any media type.
|
|
7
6
|
*/
|
|
8
|
-
export declare function $hasStream(context: DecoratorContext, target: Model, args?:
|
|
7
|
+
export declare function $hasStream(context: DecoratorContext, target: Model, args?: string, ...mediaTypes: string[]): void;
|
|
9
8
|
export declare function hasStream(program: Program, target: Model): boolean;
|
|
10
9
|
export declare function getStreamTypes(program: Program, target: Model): string[];
|
|
11
10
|
//# sourceMappingURL=has-stream.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"has-stream.d.ts","sourceRoot":"","sources":["../../../src/decorators/has-stream.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"has-stream.d.ts","sourceRoot":"","sources":["../../../src/decorators/has-stream.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAItE;;;;GAIG;AACH,wBAAgB,UAAU,CACxB,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,EACb,IAAI,CAAC,EAAE,MAAM,EACb,GAAG,UAAU,EAAE,MAAM,EAAE,QAOxB;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,GAAG,OAAO,CAElE;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,GAAG,MAAM,EAAE,CAExE"}
|
|
@@ -5,7 +5,7 @@ const hasStreamKey = Symbol("hasStream");
|
|
|
5
5
|
* `mediaTypes` - list of media types supported by the stream. If not specified, the stream supports any media type.
|
|
6
6
|
*/
|
|
7
7
|
export function $hasStream(context, target, args, ...mediaTypes) {
|
|
8
|
-
const types = args ? [args
|
|
8
|
+
const types = args ? [args, ...mediaTypes] : [];
|
|
9
9
|
context.program.stateMap(hasStreamKey).set(target, types.filter((t) => t.trim()));
|
|
10
10
|
}
|
|
11
11
|
export function hasStream(program, target) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"has-stream.js","sourceRoot":"","sources":["../../../src/decorators/has-stream.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"has-stream.js","sourceRoot":"","sources":["../../../src/decorators/has-stream.ts"],"names":[],"mappings":"AAEA,MAAM,YAAY,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;AAEzC;;;;GAIG;AACH,MAAM,UAAU,UAAU,CACxB,OAAyB,EACzB,MAAa,EACb,IAAa,EACb,GAAG,UAAoB;IAEvB,MAAM,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAChD,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,GAAG,CACxC,MAAM,EACN,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAC9B,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,OAAgB,EAAE,MAAa;IACvD,OAAO,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACpD,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,OAAgB,EAAE,MAAa;IAC5D,OAAO,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;AAC1D,CAAC"}
|
|
@@ -1,25 +1,33 @@
|
|
|
1
1
|
export * from "./abstract.js";
|
|
2
|
+
export * from "./additional-query-parameters.js";
|
|
3
|
+
export * from "./ags-attribute.js";
|
|
2
4
|
export * from "./alternate-key.js";
|
|
3
5
|
export * from "./complex.js";
|
|
4
6
|
export * from "./computed.js";
|
|
5
7
|
export * from "./contains.js";
|
|
6
8
|
export * from "./count.js";
|
|
9
|
+
export * from "./delta-collection.js";
|
|
7
10
|
export * from "./deprecated-definition.js";
|
|
8
11
|
export * from "./entity.js";
|
|
9
12
|
export * from "./expand.js";
|
|
13
|
+
export * from "./flags.js";
|
|
10
14
|
export * from "./function.js";
|
|
11
|
-
export * from "./
|
|
12
|
-
export * from "./handlers/index.js";
|
|
15
|
+
export * from "./graph-route.js";
|
|
13
16
|
export * from "./has-stream.js";
|
|
17
|
+
export * from "./is-owner.js";
|
|
14
18
|
export * from "./open.js";
|
|
15
19
|
export * from "./operation-parameters.js";
|
|
16
20
|
export * from "./order-by.js";
|
|
21
|
+
export * from "./paged-collection.js";
|
|
17
22
|
export * from "./private-preview-definition.js";
|
|
18
23
|
export * from "./private-preview.js";
|
|
24
|
+
export * from "./privileged.js";
|
|
19
25
|
export * from "./read-only.js";
|
|
20
26
|
export * from "./references.js";
|
|
21
27
|
export * from "./search.js";
|
|
22
28
|
export * from "./skip.js";
|
|
23
29
|
export * from "./top.js";
|
|
30
|
+
export * from "./workload-name-msa.js";
|
|
31
|
+
export * from "./workload-name.js";
|
|
24
32
|
export * from "./write-only.js";
|
|
25
33
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,kCAAkC,CAAC;AACjD,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,iCAAiC,CAAC;AAChD,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC"}
|
|
@@ -1,25 +1,33 @@
|
|
|
1
1
|
export * from "./abstract.js";
|
|
2
|
+
export * from "./additional-query-parameters.js";
|
|
3
|
+
export * from "./ags-attribute.js";
|
|
2
4
|
export * from "./alternate-key.js";
|
|
3
5
|
export * from "./complex.js";
|
|
4
6
|
export * from "./computed.js";
|
|
5
7
|
export * from "./contains.js";
|
|
6
8
|
export * from "./count.js";
|
|
9
|
+
export * from "./delta-collection.js";
|
|
7
10
|
export * from "./deprecated-definition.js";
|
|
8
11
|
export * from "./entity.js";
|
|
9
12
|
export * from "./expand.js";
|
|
13
|
+
export * from "./flags.js";
|
|
10
14
|
export * from "./function.js";
|
|
11
|
-
export * from "./
|
|
12
|
-
export * from "./handlers/index.js";
|
|
15
|
+
export * from "./graph-route.js";
|
|
13
16
|
export * from "./has-stream.js";
|
|
17
|
+
export * from "./is-owner.js";
|
|
14
18
|
export * from "./open.js";
|
|
15
19
|
export * from "./operation-parameters.js";
|
|
16
20
|
export * from "./order-by.js";
|
|
21
|
+
export * from "./paged-collection.js";
|
|
17
22
|
export * from "./private-preview-definition.js";
|
|
18
23
|
export * from "./private-preview.js";
|
|
24
|
+
export * from "./privileged.js";
|
|
19
25
|
export * from "./read-only.js";
|
|
20
26
|
export * from "./references.js";
|
|
21
27
|
export * from "./search.js";
|
|
22
28
|
export * from "./skip.js";
|
|
23
29
|
export * from "./top.js";
|
|
30
|
+
export * from "./workload-name-msa.js";
|
|
31
|
+
export * from "./workload-name.js";
|
|
24
32
|
export * from "./write-only.js";
|
|
25
33
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,kCAAkC,CAAC;AACjD,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,iCAAiC,CAAC;AAChD,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DecoratorContext, Model, ModelProperty, Program, Type } from "@typespec/compiler";
|
|
2
|
+
/**
|
|
3
|
+
* `@isOwner` - specify that this workload is the primary owner of this entity model
|
|
4
|
+
*
|
|
5
|
+
* `@isOwner` can be applied to Model where the model also has an @entity decorator or a ModelProperty where it has either an @contains or @references decorator.
|
|
6
|
+
*/
|
|
7
|
+
export declare function $isOwner(context: DecoratorContext, target: Model | ModelProperty): void;
|
|
8
|
+
export declare function isIsOwner(program: Program, target: Type): boolean;
|
|
9
|
+
//# sourceMappingURL=is-owner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-owner.d.ts","sourceRoot":"","sources":["../../../src/decorators/is-owner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAK3F;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,KAAK,GAAG,aAAa,QAEhF;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAG,OAAO,CAEjE"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const isOwnerKey = Symbol("isOwner");
|
|
2
|
+
// ToDo: add unit tests for isOwner
|
|
3
|
+
/**
|
|
4
|
+
* `@isOwner` - specify that this workload is the primary owner of this entity model
|
|
5
|
+
*
|
|
6
|
+
* `@isOwner` can be applied to Model where the model also has an @entity decorator or a ModelProperty where it has either an @contains or @references decorator.
|
|
7
|
+
*/
|
|
8
|
+
export function $isOwner(context, target) {
|
|
9
|
+
context.program.stateSet(isOwnerKey).add(target);
|
|
10
|
+
}
|
|
11
|
+
export function isIsOwner(program, target) {
|
|
12
|
+
return program.stateSet(isOwnerKey).has(target);
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=is-owner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-owner.js","sourceRoot":"","sources":["../../../src/decorators/is-owner.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;AAErC,mCAAmC;AACnC;;;;GAIG;AACH,MAAM,UAAU,QAAQ,CAAC,OAAyB,EAAE,MAA6B;IAC/E,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACnD,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,OAAgB,EAAE,MAAY;IACtD,OAAO,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAClD,CAAC"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { DecoratorContext, Operation, Program } from "@typespec/compiler";
|
|
2
|
-
import { DecoratorParameter } from "./decorator-parameter.js";
|
|
3
2
|
/**
|
|
4
3
|
* `@orderBy` - Applies to: get operations that return collections of @entity or @complex models.
|
|
5
4
|
* Indicates that the get operation supports the OData $orderBy query parameter.
|
|
6
5
|
*
|
|
7
6
|
* `properties` - List of property names in the model returned from the get operation that can be used in a $orderBy query parameter.
|
|
8
7
|
*/
|
|
9
|
-
export declare function $orderBy(context: DecoratorContext, target: Operation, ...properties:
|
|
8
|
+
export declare function $orderBy(context: DecoratorContext, target: Operation, ...properties: string[]): void;
|
|
10
9
|
export declare function getOrderBy(program: Program, target: Operation): string[];
|
|
11
10
|
export declare function isOrderBy(program: Program, target: Operation): boolean;
|
|
12
11
|
//# sourceMappingURL=order-by.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order-by.d.ts","sourceRoot":"","sources":["../../../src/decorators/order-by.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"order-by.d.ts","sourceRoot":"","sources":["../../../src/decorators/order-by.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI1E;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,UAAU,EAAE,MAAM,EAAE,QAE7F;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,GAAG,MAAM,EAAE,CAExE;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,GAAG,OAAO,CAEtE"}
|
|
@@ -6,7 +6,7 @@ const orderByKey = Symbol("orderBy");
|
|
|
6
6
|
* `properties` - List of property names in the model returned from the get operation that can be used in a $orderBy query parameter.
|
|
7
7
|
*/
|
|
8
8
|
export function $orderBy(context, target, ...properties) {
|
|
9
|
-
context.program.stateMap(orderByKey).set(target, properties
|
|
9
|
+
context.program.stateMap(orderByKey).set(target, properties);
|
|
10
10
|
}
|
|
11
11
|
export function getOrderBy(program, target) {
|
|
12
12
|
return program.stateMap(orderByKey).get(target) || [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order-by.js","sourceRoot":"","sources":["../../../src/decorators/order-by.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"order-by.js","sourceRoot":"","sources":["../../../src/decorators/order-by.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;AAErC;;;;;GAKG;AACH,MAAM,UAAU,QAAQ,CAAC,OAAyB,EAAE,MAAiB,EAAE,GAAG,UAAoB;IAC5F,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,OAAgB,EAAE,MAAiB;IAC5D,OAAO,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;AACxD,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,OAAgB,EAAE,MAAiB;IAC3D,OAAO,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAClD,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DecoratorContext, Model, Program } from "@typespec/compiler";
|
|
2
|
+
/**
|
|
3
|
+
* `@pagedCollection` - Applies to: models.
|
|
4
|
+
* Indicates that the model is a body response containing a paged collection.
|
|
5
|
+
*/
|
|
6
|
+
export declare function $pagedCollection(context: DecoratorContext, target: Model): void;
|
|
7
|
+
export declare function isPagedCollection(program: Program, target: Model): boolean;
|
|
8
|
+
//# sourceMappingURL=paged-collection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paged-collection.d.ts","sourceRoot":"","sources":["../../../src/decorators/paged-collection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAItE;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,KAAK,QAExE;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,WAEhE"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const pagedCollectionKey = Symbol("pagedCollection");
|
|
2
|
+
/**
|
|
3
|
+
* `@pagedCollection` - Applies to: models.
|
|
4
|
+
* Indicates that the model is a body response containing a paged collection.
|
|
5
|
+
*/
|
|
6
|
+
export function $pagedCollection(context, target) {
|
|
7
|
+
context.program.stateSet(pagedCollectionKey).add(target);
|
|
8
|
+
}
|
|
9
|
+
export function isPagedCollection(program, target) {
|
|
10
|
+
return program.stateSet(pagedCollectionKey).has(target);
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=paged-collection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paged-collection.js","sourceRoot":"","sources":["../../../src/decorators/paged-collection.ts"],"names":[],"mappings":"AAEA,MAAM,kBAAkB,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAErD;;;GAGG;AACH,MAAM,UAAU,gBAAgB,CAAC,OAAyB,EAAE,MAAa;IACvE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC3D,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,OAAgB,EAAE,MAAa;IAC/D,OAAO,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC1D,CAAC"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { DecoratorContext, Namespace, Program } from "@typespec/compiler";
|
|
2
|
-
import { DecoratorParameter } from "./decorator-parameter.js";
|
|
3
2
|
/**
|
|
4
3
|
* `@privatePreviewDefinition` - create a reusable private preview definition.
|
|
5
4
|
*
|
|
6
5
|
* `@privatePreviewDefinition` can only be applied to namespaces.
|
|
7
6
|
*/
|
|
8
|
-
export interface
|
|
7
|
+
export interface PrivatePreviewDefinitionParameters {
|
|
9
8
|
name: string;
|
|
10
9
|
announcementDate: string;
|
|
11
10
|
removalDate: string;
|
|
@@ -15,6 +14,6 @@ export interface PrivatePreviewDecoratorParameters {
|
|
|
15
14
|
* `@privatePreviewDefinition` - Allow us create a reusable private preview definition.
|
|
16
15
|
* `@privatePreviewDefinition` - Applies only to namespaces.
|
|
17
16
|
*/
|
|
18
|
-
export declare function $privatePreviewDefinition(context: DecoratorContext, target: Namespace, name:
|
|
19
|
-
export declare function getPrivatePreviewDefinitions(program: Program, target: Namespace): Map<string,
|
|
17
|
+
export declare function $privatePreviewDefinition(context: DecoratorContext, target: Namespace, name: string, announcementDate: string, removalDate: string, owner: string): void;
|
|
18
|
+
export declare function getPrivatePreviewDefinitions(program: Program, target: Namespace): Map<string, PrivatePreviewDefinitionParameters>;
|
|
20
19
|
//# sourceMappingURL=private-preview-definition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"private-preview-definition.d.ts","sourceRoot":"","sources":["../../../src/decorators/private-preview-definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"private-preview-definition.d.ts","sourceRoot":"","sources":["../../../src/decorators/private-preview-definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE1E;;;;GAIG;AACH,MAAM,WAAW,kCAAkC;IACjD,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACf;AAID;;;GAGG;AACH,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,EACjB,IAAI,EAAE,MAAM,EACZ,gBAAgB,EAAE,MAAM,EACxB,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,MAAM,QAMd;AAED,wBAAgB,4BAA4B,CAC1C,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,SAAS,GAChB,GAAG,CAAC,MAAM,EAAE,kCAAkC,CAAC,CAKjD"}
|
|
@@ -5,12 +5,7 @@ const privatePreviewDefinitionKey = Symbol("privatePreviewDefinition");
|
|
|
5
5
|
*/
|
|
6
6
|
export function $privatePreviewDefinition(context, target, name, announcementDate, removalDate, owner) {
|
|
7
7
|
const definitions = getPrivatePreviewDefinitions(context.program, target);
|
|
8
|
-
definitions.set(name
|
|
9
|
-
name: name.value,
|
|
10
|
-
announcementDate: announcementDate.value,
|
|
11
|
-
removalDate: removalDate.value,
|
|
12
|
-
owner: owner.value
|
|
13
|
-
});
|
|
8
|
+
definitions.set(name, { name, announcementDate, removalDate, owner });
|
|
14
9
|
context.program.stateMap(privatePreviewDefinitionKey).set(target, definitions);
|
|
15
10
|
}
|
|
16
11
|
export function getPrivatePreviewDefinitions(program, target) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"private-preview-definition.js","sourceRoot":"","sources":["../../../src/decorators/private-preview-definition.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"private-preview-definition.js","sourceRoot":"","sources":["../../../src/decorators/private-preview-definition.ts"],"names":[],"mappings":"AAcA,MAAM,2BAA2B,GAAG,MAAM,CAAC,0BAA0B,CAAC,CAAC;AAEvE;;;GAGG;AACH,MAAM,UAAU,yBAAyB,CACvC,OAAyB,EACzB,MAAiB,EACjB,IAAY,EACZ,gBAAwB,EACxB,WAAmB,EACnB,KAAa;IAEb,MAAM,WAAW,GAAG,4BAA4B,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAC1E,WAAW,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC,CAAC;IAEtE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,2BAA2B,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;AACjF,CAAC;AAED,MAAM,UAAU,4BAA4B,CAC1C,OAAgB,EAChB,MAAiB;IAEjB,OAAO,CACL,OAAO,CAAC,QAAQ,CAAC,2BAA2B,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC;QACzD,IAAI,GAAG,EAA8C,CACtD,CAAC;AACJ,CAAC"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { DecoratorContext, Enum, EnumMember, Model, ModelProperty, Namespace, Operation, Program, Type } from "@typespec/compiler";
|
|
2
|
-
import { DecoratorParameter } from "./decorator-parameter.js";
|
|
3
2
|
/**
|
|
4
3
|
* `@privatePreview` - Allow us to deprecate a defined element.
|
|
5
4
|
* `@privatePreview` - Applies to models, model properties, enums, enum members, namespaces and operations.
|
|
6
5
|
*/
|
|
7
|
-
export declare function $privatePreview(context: DecoratorContext, target: Model | ModelProperty | EnumMember | Enum | Operation | Namespace, name:
|
|
6
|
+
export declare function $privatePreview(context: DecoratorContext, target: Model | ModelProperty | EnumMember | Enum | Operation | Namespace, name: string): void;
|
|
8
7
|
export declare function getPrivatePreview(program: Program, target: Type): string;
|
|
9
8
|
export declare function isPrivatePreview(program: Program, target: Type): boolean;
|
|
10
9
|
//# sourceMappingURL=private-preview.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"private-preview.d.ts","sourceRoot":"","sources":["../../../src/decorators/private-preview.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,IAAI,EACJ,UAAU,EACV,KAAK,EACL,aAAa,EACb,SAAS,EACT,SAAS,EACT,OAAO,EACP,IAAI,EACL,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"private-preview.d.ts","sourceRoot":"","sources":["../../../src/decorators/private-preview.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,IAAI,EACJ,UAAU,EACV,KAAK,EACL,aAAa,EACb,SAAS,EACT,SAAS,EACT,OAAO,EACP,IAAI,EACL,MAAM,oBAAoB,CAAC;AAI5B;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,GAAG,aAAa,GAAG,UAAU,GAAG,IAAI,GAAG,SAAS,GAAG,SAAS,EACzE,IAAI,EAAE,MAAM,QAGb;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAG,MAAM,CAExE;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,WAE9D"}
|
|
@@ -4,7 +4,7 @@ const privatePreviewKey = Symbol("privatePreview");
|
|
|
4
4
|
* `@privatePreview` - Applies to models, model properties, enums, enum members, namespaces and operations.
|
|
5
5
|
*/
|
|
6
6
|
export function $privatePreview(context, target, name) {
|
|
7
|
-
context.program.stateMap(privatePreviewKey).set(target, name
|
|
7
|
+
context.program.stateMap(privatePreviewKey).set(target, name);
|
|
8
8
|
}
|
|
9
9
|
export function getPrivatePreview(program, target) {
|
|
10
10
|
return program.stateMap(privatePreviewKey).get(target);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"private-preview.js","sourceRoot":"","sources":["../../../src/decorators/private-preview.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"private-preview.js","sourceRoot":"","sources":["../../../src/decorators/private-preview.ts"],"names":[],"mappings":"AAYA,MAAM,iBAAiB,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC;AAEnD;;;GAGG;AACH,MAAM,UAAU,eAAe,CAC7B,OAAyB,EACzB,MAAyE,EACzE,IAAY;IAEZ,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;AAChE,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,OAAgB,EAAE,MAAY;IAC9D,OAAO,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACzD,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,OAAgB,EAAE,MAAY;IAC7D,OAAO,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACzD,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DecoratorContext, Model, ModelProperty, Enum, EnumMember, Operation, Namespace, Program, Type } from "@typespec/compiler";
|
|
2
|
+
/**
|
|
3
|
+
* `@privileged` - mark the entity as privileged
|
|
4
|
+
*
|
|
5
|
+
* `@privileged` can be applied to Model, ModelProperty, Enum, EnumMember, Operation, Namespace.
|
|
6
|
+
*/
|
|
7
|
+
export declare function $privileged(context: DecoratorContext, target: Model | ModelProperty | Enum | EnumMember | Operation | Namespace): void;
|
|
8
|
+
export declare function isPrivileged(program: Program, target: Type): boolean;
|
|
9
|
+
//# sourceMappingURL=privileged.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"privileged.d.ts","sourceRoot":"","sources":["../../../src/decorators/privileged.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,KAAK,EACL,aAAa,EACb,IAAI,EACJ,UAAU,EACV,SAAS,EACT,SAAS,EACT,OAAO,EACP,IAAI,EACL,MAAM,oBAAoB,CAAC;AAI5B;;;;GAIG;AACH,wBAAgB,WAAW,CACzB,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,GAAG,aAAa,GAAG,IAAI,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,QAG1E;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAG,OAAO,CAEpE"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const privilegedKey = Symbol("privileged");
|
|
2
|
+
/**
|
|
3
|
+
* `@privileged` - mark the entity as privileged
|
|
4
|
+
*
|
|
5
|
+
* `@privileged` can be applied to Model, ModelProperty, Enum, EnumMember, Operation, Namespace.
|
|
6
|
+
*/
|
|
7
|
+
export function $privileged(context, target) {
|
|
8
|
+
context.program.stateSet(privilegedKey).add(target);
|
|
9
|
+
}
|
|
10
|
+
export function isPrivileged(program, target) {
|
|
11
|
+
return program.stateSet(privilegedKey).has(target);
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=privileged.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"privileged.js","sourceRoot":"","sources":["../../../src/decorators/privileged.ts"],"names":[],"mappings":"AAYA,MAAM,aAAa,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC;AAE3C;;;;GAIG;AACH,MAAM,UAAU,WAAW,CACzB,OAAyB,EACzB,MAAyE;IAEzE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACtD,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,OAAgB,EAAE,MAAY;IACzD,OAAO,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACrD,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DecoratorContext, Model, ModelProperty, Enum, EnumMember, Program, Type } from "@typespec/compiler";
|
|
2
|
+
/**
|
|
3
|
+
* `@workloadNameMsa` - specifies the name used by the underlying workload for consumer use cases
|
|
4
|
+
*
|
|
5
|
+
* `@workloadNameMsa` can be applied to Model, ModelProperty, Enum, EnumMember.
|
|
6
|
+
*/
|
|
7
|
+
export declare function $workloadNameMsa(context: DecoratorContext, target: Model | ModelProperty | Enum | EnumMember, workloadNameMsa: string): void;
|
|
8
|
+
export declare function getWorkloadNameMsa(program: Program, target: Type): string | undefined;
|
|
9
|
+
//# sourceMappingURL=workload-name-msa.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workload-name-msa.d.ts","sourceRoot":"","sources":["../../../src/decorators/workload-name-msa.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,KAAK,EACL,aAAa,EACb,IAAI,EACJ,UAAU,EACV,OAAO,EACP,IAAI,EACL,MAAM,oBAAoB,CAAC;AAI5B;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,GAAG,aAAa,GAAG,IAAI,GAAG,UAAU,EACjD,eAAe,EAAE,MAAM,QAGxB;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAG,MAAM,GAAG,SAAS,CAErF"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const workloadNameMsaKey = Symbol("workloadNameMsa");
|
|
2
|
+
/**
|
|
3
|
+
* `@workloadNameMsa` - specifies the name used by the underlying workload for consumer use cases
|
|
4
|
+
*
|
|
5
|
+
* `@workloadNameMsa` can be applied to Model, ModelProperty, Enum, EnumMember.
|
|
6
|
+
*/
|
|
7
|
+
export function $workloadNameMsa(context, target, workloadNameMsa) {
|
|
8
|
+
context.program.stateMap(workloadNameMsaKey).set(target, workloadNameMsa);
|
|
9
|
+
}
|
|
10
|
+
export function getWorkloadNameMsa(program, target) {
|
|
11
|
+
return program.stateMap(workloadNameMsaKey).get(target);
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=workload-name-msa.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workload-name-msa.js","sourceRoot":"","sources":["../../../src/decorators/workload-name-msa.ts"],"names":[],"mappings":"AAUA,MAAM,kBAAkB,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAErD;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAC9B,OAAyB,EACzB,MAAiD,EACjD,eAAuB;IAEvB,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;AAC5E,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,OAAgB,EAAE,MAAY;IAC/D,OAAO,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC1D,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DecoratorContext, Model, ModelProperty, Enum, EnumMember, Program, Type } from "@typespec/compiler";
|
|
2
|
+
/**
|
|
3
|
+
* `@workloadName` - specifies the name used by the underlying workload
|
|
4
|
+
*
|
|
5
|
+
* `@workloadName` can be applied to Model, ModelProperty, Enum, EnumMember.
|
|
6
|
+
*/
|
|
7
|
+
export declare function $workloadName(context: DecoratorContext, target: Model | ModelProperty | Enum | EnumMember, workloadName: string): void;
|
|
8
|
+
export declare function getWorkloadName(program: Program, target: Type): string | undefined;
|
|
9
|
+
//# sourceMappingURL=workload-name.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workload-name.d.ts","sourceRoot":"","sources":["../../../src/decorators/workload-name.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,KAAK,EACL,aAAa,EACb,IAAI,EACJ,UAAU,EACV,OAAO,EACP,IAAI,EACL,MAAM,oBAAoB,CAAC;AAI5B;;;;GAIG;AACH,wBAAgB,aAAa,CAC3B,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,GAAG,aAAa,GAAG,IAAI,GAAG,UAAU,EACjD,YAAY,EAAE,MAAM,QAGrB;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAG,MAAM,GAAG,SAAS,CAElF"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const workloadNameKey = Symbol("workloadName");
|
|
2
|
+
/**
|
|
3
|
+
* `@workloadName` - specifies the name used by the underlying workload
|
|
4
|
+
*
|
|
5
|
+
* `@workloadName` can be applied to Model, ModelProperty, Enum, EnumMember.
|
|
6
|
+
*/
|
|
7
|
+
export function $workloadName(context, target, workloadName) {
|
|
8
|
+
context.program.stateMap(workloadNameKey).set(target, workloadName);
|
|
9
|
+
}
|
|
10
|
+
export function getWorkloadName(program, target) {
|
|
11
|
+
return program.stateMap(workloadNameKey).get(target);
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=workload-name.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workload-name.js","sourceRoot":"","sources":["../../../src/decorators/workload-name.ts"],"names":[],"mappings":"AAUA,MAAM,eAAe,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;AAE/C;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAC3B,OAAyB,EACzB,MAAiD,EACjD,YAAoB;IAEpB,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;AACtE,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,OAAgB,EAAE,MAAY;IAC5D,OAAO,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACvD,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Program } from "@typespec/compiler";
|
|
2
|
+
import { MsGraphInterface } from "../utils.js";
|
|
3
|
+
export interface SingletonAnnotations {
|
|
4
|
+
Target: string | undefined;
|
|
5
|
+
HasGetOnItem: boolean;
|
|
6
|
+
HasPatchOnItem: boolean;
|
|
7
|
+
HasDeleteOnItem: boolean;
|
|
8
|
+
HasExpandOperation: boolean;
|
|
9
|
+
NonExpandableProperties: string[] | undefined;
|
|
10
|
+
Description: string | undefined;
|
|
11
|
+
}
|
|
12
|
+
export interface EntitySetAnnotations {
|
|
13
|
+
Target: string | undefined;
|
|
14
|
+
HasGetOnCollection: boolean;
|
|
15
|
+
HasGetOnItem: boolean;
|
|
16
|
+
HasPostOnCollection: boolean;
|
|
17
|
+
HasPatchOnItem: boolean;
|
|
18
|
+
HasDeleteOnItem: boolean;
|
|
19
|
+
HasCountOperation: boolean;
|
|
20
|
+
HasExpandOperation: boolean;
|
|
21
|
+
NonExpandableProperties: string[] | undefined;
|
|
22
|
+
HasSearchOperation: boolean;
|
|
23
|
+
HasSkipOperation: boolean;
|
|
24
|
+
HasSortOperation: boolean;
|
|
25
|
+
NonSortableProperties: string[] | undefined;
|
|
26
|
+
HasTopOperation: boolean;
|
|
27
|
+
Description: string | undefined;
|
|
28
|
+
}
|
|
29
|
+
export declare function GetSingletonAnnotations(program: Program, namespaceName: string, navigationSources: Map<string, MsGraphInterface>): Map<string, SingletonAnnotations>;
|
|
30
|
+
export declare function GetEntitySetAnnotations(program: Program, namespaceName: string, sources: Map<string, MsGraphInterface>): Map<string, EntitySetAnnotations>;
|
|
31
|
+
//# sourceMapp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