@microsoft/typespec-msgraph 0.0.1-Preview.6 → 0.0.1-Preview.8
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/annotations.d.ts +5 -5
- package/dist/src/components/annotations.d.ts.map +1 -1
- package/dist/src/components/annotations.js +21 -20
- package/dist/src/components/annotations.js.map +1 -1
- package/dist/src/components/count-restrictions-annotation.d.ts +1 -1
- package/dist/src/components/count-restrictions-annotation.d.ts.map +1 -1
- package/dist/src/components/count-restrictions-annotation.js +2 -2
- package/dist/src/components/count-restrictions-annotation.js.map +1 -1
- package/dist/src/components/expand-restrictions-annotation.d.ts +1 -1
- package/dist/src/components/expand-restrictions-annotation.d.ts.map +1 -1
- package/dist/src/components/expand-restrictions-annotation.js +3 -3
- package/dist/src/components/expand-restrictions-annotation.js.map +1 -1
- package/dist/src/components/filter-restrictions-annotation.d.ts +6 -0
- package/dist/src/components/filter-restrictions-annotation.d.ts.map +1 -0
- package/dist/src/components/filter-restrictions-annotation.js +10 -0
- package/dist/src/components/filter-restrictions-annotation.js.map +1 -0
- package/dist/src/components/immutable-annotation.d.ts +5 -0
- package/dist/src/components/immutable-annotation.d.ts.map +1 -0
- package/dist/src/components/immutable-annotation.js +6 -0
- package/dist/src/components/immutable-annotation.js.map +1 -0
- package/dist/src/components/insert-restrictions-annotation.d.ts +6 -0
- package/dist/src/components/insert-restrictions-annotation.d.ts.map +1 -0
- package/dist/src/components/insert-restrictions-annotation.js +10 -0
- package/dist/src/components/insert-restrictions-annotation.js.map +1 -0
- package/dist/src/components/property-element.d.ts.map +1 -1
- package/dist/src/components/property-element.js +4 -2
- package/dist/src/components/property-element.js.map +1 -1
- package/dist/src/components/schema-element.d.ts.map +1 -1
- package/dist/src/components/schema-element.js +6 -6
- package/dist/src/components/schema-element.js.map +1 -1
- package/dist/src/components/search-restrictions-annotation.d.ts +1 -1
- package/dist/src/components/search-restrictions-annotation.d.ts.map +1 -1
- package/dist/src/components/search-restrictions-annotation.js +2 -2
- package/dist/src/components/search-restrictions-annotation.js.map +1 -1
- package/dist/src/components/skip-supported-annotation.d.ts +1 -1
- package/dist/src/components/skip-supported-annotation.d.ts.map +1 -1
- package/dist/src/components/skip-supported-annotation.js +1 -1
- package/dist/src/components/skip-supported-annotation.js.map +1 -1
- package/dist/src/components/sort-restrictions-annotation.d.ts +1 -1
- package/dist/src/components/sort-restrictions-annotation.d.ts.map +1 -1
- package/dist/src/components/sort-restrictions-annotation.js +3 -3
- package/dist/src/components/sort-restrictions-annotation.js.map +1 -1
- package/dist/src/components/top-supported-annotation.d.ts +1 -1
- package/dist/src/components/top-supported-annotation.d.ts.map +1 -1
- package/dist/src/components/top-supported-annotation.js +2 -2
- package/dist/src/components/top-supported-annotation.js.map +1 -1
- package/dist/src/decorators/action.d.ts +10 -0
- package/dist/src/decorators/action.d.ts.map +1 -0
- package/dist/src/decorators/action.js +16 -0
- package/dist/src/decorators/action.js.map +1 -0
- package/dist/src/decorators/filter.d.ts +11 -0
- package/dist/src/decorators/filter.d.ts.map +1 -0
- package/dist/src/decorators/filter.js +27 -0
- package/dist/src/decorators/filter.js.map +1 -0
- package/dist/src/decorators/graph-route.d.ts +1 -1
- package/dist/src/decorators/graph-route.d.ts.map +1 -1
- package/dist/src/decorators/graph-route.js +12 -7
- package/dist/src/decorators/graph-route.js.map +1 -1
- package/dist/src/decorators/immutable.d.ts +8 -0
- package/dist/src/decorators/immutable.d.ts.map +1 -0
- package/dist/src/decorators/immutable.js +12 -0
- package/dist/src/decorators/immutable.js.map +1 -0
- package/dist/src/decorators/index.d.ts +4 -0
- package/dist/src/decorators/index.d.ts.map +1 -1
- package/dist/src/decorators/index.js +4 -0
- package/dist/src/decorators/index.js.map +1 -1
- package/dist/src/decorators/required-for-create.d.ts +10 -0
- package/dist/src/decorators/required-for-create.d.ts.map +1 -0
- package/dist/src/decorators/required-for-create.js +14 -0
- package/dist/src/decorators/required-for-create.js.map +1 -0
- package/dist/src/entities/annotations.d.ts +20 -17
- package/dist/src/entities/annotations.d.ts.map +1 -1
- package/dist/src/entities/annotations.js +69 -48
- package/dist/src/entities/annotations.js.map +1 -1
- package/dist/src/entities/entity-container.js +1 -1
- package/dist/src/entities/entity-container.js.map +1 -1
- package/dist/src/entities/model.d.ts +1 -0
- package/dist/src/entities/model.d.ts.map +1 -1
- package/dist/src/entities/model.js +2 -1
- package/dist/src/entities/model.js.map +1 -1
- package/dist/src/entities/namespace.d.ts +3 -3
- package/dist/src/entities/namespace.d.ts.map +1 -1
- package/dist/src/entities/namespace.js +34 -8
- package/dist/src/entities/namespace.js.map +1 -1
- package/dist/src/entities/operation.d.ts.map +1 -1
- package/dist/src/entities/operation.js +1 -2
- package/dist/src/entities/operation.js.map +1 -1
- package/dist/src/entities/property.d.ts.map +1 -1
- package/dist/src/entities/property.js +3 -0
- package/dist/src/entities/property.js.map +1 -1
- package/dist/src/entities/revision-definition.d.ts +1 -1
- package/dist/src/entities/revision-definition.js +3 -3
- package/dist/src/lib.d.ts +16 -0
- package/dist/src/lib.d.ts.map +1 -1
- package/dist/src/lib.js +4 -0
- package/dist/src/lib.js.map +1 -1
- package/dist/src/linter.d.ts.map +1 -1
- package/dist/src/linter.js +4 -0
- package/dist/src/linter.js.map +1 -1
- package/dist/src/rules/collection-navigation-properties-not-nullable.d.ts +2 -0
- package/dist/src/rules/collection-navigation-properties-not-nullable.d.ts.map +1 -0
- package/dist/src/rules/collection-navigation-properties-not-nullable.js +28 -0
- package/dist/src/rules/collection-navigation-properties-not-nullable.js.map +1 -0
- package/dist/src/rules/count.js +2 -2
- package/dist/src/rules/count.js.map +1 -1
- package/dist/src/rules/disallowed-typespec-decorators.d.ts +2 -0
- package/dist/src/rules/disallowed-typespec-decorators.d.ts.map +1 -0
- package/dist/src/rules/disallowed-typespec-decorators.js +33 -0
- package/dist/src/rules/disallowed-typespec-decorators.js.map +1 -0
- package/dist/src/rules/extends-on-same-type.d.ts +2 -0
- package/dist/src/rules/extends-on-same-type.d.ts.map +1 -0
- package/dist/src/rules/extends-on-same-type.js +38 -0
- package/dist/src/rules/extends-on-same-type.js.map +1 -0
- package/dist/src/rules/filter.d.ts +4 -0
- package/dist/src/rules/filter.d.ts.map +1 -0
- package/dist/src/rules/filter.js +92 -0
- package/dist/src/rules/filter.js.map +1 -0
- package/dist/src/rules/graph-route.d.ts +5 -0
- package/dist/src/rules/graph-route.d.ts.map +1 -0
- package/dist/src/rules/graph-route.js +39 -0
- package/dist/src/rules/graph-route.js.map +1 -0
- package/dist/src/rules/index.d.ts +7 -3
- package/dist/src/rules/index.d.ts.map +1 -1
- package/dist/src/rules/index.js +7 -89
- package/dist/src/rules/index.js.map +1 -1
- package/dist/src/rules/operation-inside-interface.d.ts +2 -0
- package/dist/src/rules/operation-inside-interface.d.ts.map +1 -0
- package/dist/src/rules/operation-inside-interface.js +25 -0
- package/dist/src/rules/operation-inside-interface.js.map +1 -0
- package/dist/src/rules/order-by.js +2 -2
- package/dist/src/rules/order-by.js.map +1 -1
- package/dist/src/rules/required-for-create.d.ts +2 -0
- package/dist/src/rules/required-for-create.d.ts.map +1 -0
- package/dist/src/rules/required-for-create.js +40 -0
- package/dist/src/rules/required-for-create.js.map +1 -0
- package/dist/src/rules/search.js +2 -2
- package/dist/src/rules/search.js.map +1 -1
- package/dist/src/rules/skip.js +2 -2
- package/dist/src/rules/skip.js.map +1 -1
- package/dist/src/rules/top.js +2 -2
- package/dist/src/rules/top.js.map +1 -1
- package/dist/src/utils.d.ts +16 -4
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/src/utils.js +81 -31
- package/dist/src/utils.js.map +1 -1
- package/lib/decorators.tsp +32 -0
- package/lib/lib.tsp +4 -15
- package/package.json +1 -2
|
@@ -4,6 +4,6 @@ import { DecoratorContext, Interface, Operation, Program, Type } from "@typespec
|
|
|
4
4
|
* `@graphRoute` - Applies to interfaces and operations.
|
|
5
5
|
*/
|
|
6
6
|
export declare function $graphRoute(context: DecoratorContext, target: Interface | Operation, path: string): void;
|
|
7
|
-
export declare function getGraphRoutePath(program: Program, target: Type): string;
|
|
7
|
+
export declare function getGraphRoutePath(program: Program, target: Type): string | string[] | undefined;
|
|
8
8
|
export declare function hasGraphRoute(program: Program, target: Type): boolean;
|
|
9
9
|
//# sourceMappingURL=graph-route.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph-route.d.ts","sourceRoot":"","sources":["../../../src/decorators/graph-route.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,SAAS,EACT,SAAS,EACT,OAAO,EACP,IAAI,EAIL,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"graph-route.d.ts","sourceRoot":"","sources":["../../../src/decorators/graph-route.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,SAAS,EACT,SAAS,EACT,OAAO,EACP,IAAI,EAIL,MAAM,oBAAoB,CAAC;AAK5B;;;GAGG;AACH,wBAAgB,WAAW,CACzB,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,GAAG,SAAS,EAC7B,IAAI,EAAE,MAAM,QAgCb;AAiDD,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAM/F;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,WAE3D"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { setRoute } from "@typespec/http";
|
|
2
1
|
import { getNavigationSourceType } from "../utils.js";
|
|
3
2
|
const graphRouteKey = Symbol("graphRoute");
|
|
4
3
|
/**
|
|
@@ -6,11 +5,13 @@ const graphRouteKey = Symbol("graphRoute");
|
|
|
6
5
|
* `@graphRoute` - Applies to interfaces and operations.
|
|
7
6
|
*/
|
|
8
7
|
export function $graphRoute(context, target, path) {
|
|
9
|
-
context.program.stateMap(graphRouteKey)
|
|
10
|
-
|
|
11
|
-
path
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
const state = context.program.stateMap(graphRouteKey);
|
|
9
|
+
if (state.has(target)) {
|
|
10
|
+
state.set(target, [...state.get(target), path]);
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
state.set(target, [path]);
|
|
14
|
+
}
|
|
14
15
|
const routeParams = extractParamsFromPath(path);
|
|
15
16
|
// Modify the operations to inject path parameters and correct resource type from interface base interface.
|
|
16
17
|
// TODO: Using @graphRoute on an operation currently does not work due to the following TypeSpec core issue
|
|
@@ -76,7 +77,11 @@ function extractParamsFromPath(path) {
|
|
|
76
77
|
return (_a = matchResults === null || matchResults === void 0 ? void 0 : matchResults.map((s) => s.slice(1, -1))) !== null && _a !== void 0 ? _a : [];
|
|
77
78
|
}
|
|
78
79
|
export function getGraphRoutePath(program, target) {
|
|
79
|
-
|
|
80
|
+
const graphRoute = program.stateMap(graphRouteKey).get(target);
|
|
81
|
+
if (Array.isArray(graphRoute) && graphRoute.length === 1) {
|
|
82
|
+
return graphRoute[0];
|
|
83
|
+
}
|
|
84
|
+
return graphRoute;
|
|
80
85
|
}
|
|
81
86
|
export function hasGraphRoute(program, target) {
|
|
82
87
|
return program.stateMap(graphRouteKey).has(target);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph-route.js","sourceRoot":"","sources":["../../../src/decorators/graph-route.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"graph-route.js","sourceRoot":"","sources":["../../../src/decorators/graph-route.ts"],"names":[],"mappings":"AAUA,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,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,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CAAC,OAAgB,EAAE,MAAY;IAC9D,MAAM,UAAU,GAAG,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAC/D,IAAI,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,IAAK,UAAuB,CAAC,MAAM,KAAK,CAAC,EAAE;QACtE,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC;KACtB;IACD,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,OAAgB,EAAE,MAAY;IAC1D,OAAO,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACrD,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DecoratorContext, ModelProperty, Program } from "@typespec/compiler";
|
|
2
|
+
/**
|
|
3
|
+
* `@immutable` - mark a model property as immutable
|
|
4
|
+
* '@immutable' can only be applied to Model properties.
|
|
5
|
+
*/
|
|
6
|
+
export declare function $immutable(context: DecoratorContext, target: ModelProperty): void;
|
|
7
|
+
export declare function isImmutable(program: Program, target: ModelProperty): boolean;
|
|
8
|
+
//# sourceMappingURL=immutable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"immutable.d.ts","sourceRoot":"","sources":["../../../src/decorators/immutable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI9E;;;GAGG;AAEH,wBAAgB,UAAU,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,aAAa,GAAG,IAAI,CAEjF;AAED,wBAAgB,WAAW,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,WAElE"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const immutableKey = Symbol("immutable");
|
|
2
|
+
/**
|
|
3
|
+
* `@immutable` - mark a model property as immutable
|
|
4
|
+
* '@immutable' can only be applied to Model properties.
|
|
5
|
+
*/
|
|
6
|
+
export function $immutable(context, target) {
|
|
7
|
+
context.program.stateSet(immutableKey).add(target);
|
|
8
|
+
}
|
|
9
|
+
export function isImmutable(program, target) {
|
|
10
|
+
return program.stateSet(immutableKey).has(target);
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=immutable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"immutable.js","sourceRoot":"","sources":["../../../src/decorators/immutable.ts"],"names":[],"mappings":"AAEA,MAAM,YAAY,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;AAEzC;;;GAGG;AAEH,MAAM,UAAU,UAAU,CAAC,OAAyB,EAAE,MAAqB;IACzE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACrD,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,OAAgB,EAAE,MAAqB;IACjE,OAAO,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACpD,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from "./abstract.js";
|
|
2
|
+
export * from "./action.js";
|
|
2
3
|
export * from "./additional-query-parameters.js";
|
|
3
4
|
export * from "./ags-attribute.js";
|
|
4
5
|
export * from "./alternate-key.js";
|
|
@@ -10,6 +11,7 @@ export * from "./delta-collection.js";
|
|
|
10
11
|
export * from "./deprecated-definition.js";
|
|
11
12
|
export * from "./entity.js";
|
|
12
13
|
export * from "./expand.js";
|
|
14
|
+
export * from "./filter.js";
|
|
13
15
|
export * from "./flags.js";
|
|
14
16
|
export * from "./function.js";
|
|
15
17
|
export * from "./graph-route.js";
|
|
@@ -24,10 +26,12 @@ export * from "./private-preview.js";
|
|
|
24
26
|
export * from "./privileged.js";
|
|
25
27
|
export * from "./read-only.js";
|
|
26
28
|
export * from "./references.js";
|
|
29
|
+
export * from "./required-for-create.js";
|
|
27
30
|
export * from "./search.js";
|
|
28
31
|
export * from "./skip.js";
|
|
29
32
|
export * from "./top.js";
|
|
30
33
|
export * from "./workload-name-msa.js";
|
|
31
34
|
export * from "./workload-name.js";
|
|
32
35
|
export * from "./write-only.js";
|
|
36
|
+
export * from "./immutable.js";
|
|
33
37
|
//# 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,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
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,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,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,0BAA0B,CAAC;AACzC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from "./abstract.js";
|
|
2
|
+
export * from "./action.js";
|
|
2
3
|
export * from "./additional-query-parameters.js";
|
|
3
4
|
export * from "./ags-attribute.js";
|
|
4
5
|
export * from "./alternate-key.js";
|
|
@@ -10,6 +11,7 @@ export * from "./delta-collection.js";
|
|
|
10
11
|
export * from "./deprecated-definition.js";
|
|
11
12
|
export * from "./entity.js";
|
|
12
13
|
export * from "./expand.js";
|
|
14
|
+
export * from "./filter.js";
|
|
13
15
|
export * from "./flags.js";
|
|
14
16
|
export * from "./function.js";
|
|
15
17
|
export * from "./graph-route.js";
|
|
@@ -24,10 +26,12 @@ export * from "./private-preview.js";
|
|
|
24
26
|
export * from "./privileged.js";
|
|
25
27
|
export * from "./read-only.js";
|
|
26
28
|
export * from "./references.js";
|
|
29
|
+
export * from "./required-for-create.js";
|
|
27
30
|
export * from "./search.js";
|
|
28
31
|
export * from "./skip.js";
|
|
29
32
|
export * from "./top.js";
|
|
30
33
|
export * from "./workload-name-msa.js";
|
|
31
34
|
export * from "./workload-name.js";
|
|
32
35
|
export * from "./write-only.js";
|
|
36
|
+
export * from "./immutable.js";
|
|
33
37
|
//# 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,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,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+1,10 @@
|
|
|
1
|
+
import { DecoratorContext, Program, ModelProperty } from "@typespec/compiler";
|
|
2
|
+
/**
|
|
3
|
+
* `@requiredForCreate` - mark a model property as required when a request is made to
|
|
4
|
+
* Graph to create or update a resource.
|
|
5
|
+
*
|
|
6
|
+
* `@requiredForCreate` can only be applied to model properties.
|
|
7
|
+
*/
|
|
8
|
+
export declare function $requiredForCreate(context: DecoratorContext, property: ModelProperty): void;
|
|
9
|
+
export declare function isRequiredForCreate(program: Program, property: ModelProperty): boolean;
|
|
10
|
+
//# sourceMappingURL=required-for-create.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"required-for-create.d.ts","sourceRoot":"","sources":["../../../src/decorators/required-for-create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAG9E;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,aAAa,QAEpF;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa,WAE5E"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const requiredForCreateKey = Symbol("requiredForCreate");
|
|
2
|
+
/**
|
|
3
|
+
* `@requiredForCreate` - mark a model property as required when a request is made to
|
|
4
|
+
* Graph to create or update a resource.
|
|
5
|
+
*
|
|
6
|
+
* `@requiredForCreate` can only be applied to model properties.
|
|
7
|
+
*/
|
|
8
|
+
export function $requiredForCreate(context, property) {
|
|
9
|
+
context.program.stateSet(requiredForCreateKey).add(property);
|
|
10
|
+
}
|
|
11
|
+
export function isRequiredForCreate(program, property) {
|
|
12
|
+
return program.stateSet(requiredForCreateKey).has(property);
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=required-for-create.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"required-for-create.js","sourceRoot":"","sources":["../../../src/decorators/required-for-create.ts"],"names":[],"mappings":"AACA,MAAM,oBAAoB,GAAG,MAAM,CAAC,mBAAmB,CAAC,CAAC;AAEzD;;;;;GAKG;AACH,MAAM,UAAU,kBAAkB,CAAC,OAAyB,EAAE,QAAuB;IACnF,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,OAAgB,EAAE,QAAuB;IAC3E,OAAO,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC9D,CAAC"}
|
|
@@ -1,31 +1,34 @@
|
|
|
1
1
|
import { Program } from "@typespec/compiler";
|
|
2
2
|
import { MsGraphInterface } from "../utils.js";
|
|
3
|
-
export interface
|
|
3
|
+
export interface ResourceAnnotations {
|
|
4
4
|
Target: string | undefined;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
HasGetOnResource: boolean;
|
|
6
|
+
HasPatchOnResource: boolean;
|
|
7
|
+
HasDeleteOnResource: boolean;
|
|
8
|
+
HasExpandOnCollectionOrResource: boolean;
|
|
9
9
|
NonExpandableProperties: string[] | undefined;
|
|
10
10
|
Description: string | undefined;
|
|
11
11
|
}
|
|
12
|
-
export interface
|
|
12
|
+
export interface CollectionAnnotations {
|
|
13
13
|
Target: string | undefined;
|
|
14
14
|
HasGetOnCollection: boolean;
|
|
15
|
-
|
|
15
|
+
HasGetOnResource: boolean;
|
|
16
16
|
HasPostOnCollection: boolean;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
RequiredProperties: string[] | undefined;
|
|
18
|
+
HasPatchOnResource: boolean;
|
|
19
|
+
HasDeleteOnResource: boolean;
|
|
20
|
+
HasCountOnCollection: boolean;
|
|
21
|
+
HasExpandOnCollectionOrResource: boolean;
|
|
21
22
|
NonExpandableProperties: string[] | undefined;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
HasSearchOnCollection: boolean;
|
|
24
|
+
HasSkipOnCollection: boolean;
|
|
25
|
+
HasFilterOperation: boolean;
|
|
26
|
+
NonFilterableProperties: string[] | undefined;
|
|
27
|
+
HasSortOnCollection: boolean;
|
|
25
28
|
NonSortableProperties: string[] | undefined;
|
|
26
|
-
|
|
29
|
+
HasTopOnCollection: boolean;
|
|
27
30
|
Description: string | undefined;
|
|
28
31
|
}
|
|
29
|
-
export declare function
|
|
30
|
-
export declare function
|
|
32
|
+
export declare function GetResourceAnnotations(program: Program, namespaceName: string, navigationSources: Map<string, MsGraphInterface>): Map<string, ResourceAnnotations>;
|
|
33
|
+
export declare function GetCollectionAnnotations(program: Program, namespaceName: string, sources: Map<string, MsGraphInterface>): Map<string, CollectionAnnotations>;
|
|
31
34
|
//# sourceMappingURL=annotations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotations.d.ts","sourceRoot":"","sources":["../../../src/entities/annotations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,OAAO,EAAmC,MAAM,oBAAoB,CAAC;AAChG,OAAO,EAAE,gBAAgB,EAAoC,MAAM,aAAa,CAAC;AAIjF,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"annotations.d.ts","sourceRoot":"","sources":["../../../src/entities/annotations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,OAAO,EAAmC,MAAM,oBAAoB,CAAC;AAChG,OAAO,EAAE,gBAAgB,EAAoC,MAAM,aAAa,CAAC;AAIjF,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,+BAA+B,EAAE,OAAO,CAAC;IACzC,uBA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ropertiesInherited } from "@typespec/compiler";
|
|
2
2
|
import { getInterfaceNavigationSourceType } from "../utils.js";
|
|
3
3
|
import { getOperationVerb } from "@typespec/http";
|
|
4
|
-
import { getExpand, getOrderBy, isContains, isCount, isExpand, isOrderBy, isReferences, isSearch, isSkip, isTop } from "../index.js";
|
|
5
|
-
export function
|
|
4
|
+
import { getExpand, getFilter, getOrderBy, isContains, isCount, isExpand, isFilter, isOrderBy, isReferences, isRequiredForCreate, isSearch, isSkip, isTop } from "../index.js";
|
|
5
|
+
export function GetResourceAnnotations(program, namespaceName, navigationSources) {
|
|
6
6
|
const annotations = new Map();
|
|
7
7
|
navigationSources.forEach((entity, routePath) => {
|
|
8
|
-
annotations.set(routePath,
|
|
8
|
+
annotations.set(routePath, getResourceAnnotations(program, namespaceName, routePath, entity));
|
|
9
9
|
});
|
|
10
10
|
return annotations;
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
const
|
|
14
|
-
const type = getInterfaceNavigationSourceType(program,
|
|
12
|
+
function getResourceAnnotations(program, namespaceName, routePath, entity) {
|
|
13
|
+
const resource = entity.theInterface;
|
|
14
|
+
const type = getInterfaceNavigationSourceType(program, resource);
|
|
15
|
+
const minimumParameters = routePath.split('/').length - 1;
|
|
15
16
|
const operationMethods = [...entity.operations].map(operation => ({
|
|
16
17
|
operation,
|
|
17
18
|
verb: getOperationVerb(program, operation),
|
|
19
|
+
hasMinimumParameters: operation.parameters.properties.size === minimumParameters,
|
|
18
20
|
}));
|
|
19
|
-
const [
|
|
21
|
+
const [hasExpandOnCollectionOrResource, nonExpandableProperties] = getExpandProperties(program, type, operationMethods);
|
|
20
22
|
const annotations = {
|
|
21
23
|
Target: `${namespaceName}.container/${routePath}`,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
HasGetOnResource: operationMethods.some(({ verb }) => verb === "get"),
|
|
25
|
+
HasPatchOnResource: operationMethods.some(({ verb }) => verb === "patch"),
|
|
26
|
+
HasDeleteOnResource: operationMethods.some(({ verb }) => verb === "delete"),
|
|
27
|
+
HasExpandOnCollectionOrResource: hasExpandOnCollectionOrResource,
|
|
26
28
|
NonExpandableProperties: nonExpandableProperties,
|
|
27
|
-
Description: getDoc(program,
|
|
29
|
+
Description: getDoc(program, resource),
|
|
28
30
|
};
|
|
29
31
|
return annotations;
|
|
30
32
|
}
|
|
31
|
-
export function
|
|
33
|
+
export function GetCollectionAnnotations(program, namespaceName, sources) {
|
|
32
34
|
const annotations = new Map();
|
|
33
35
|
sources.forEach((entity, routePath) => {
|
|
34
|
-
annotations.set(routePath,
|
|
36
|
+
annotations.set(routePath, getCollectionAnnotations(program, namespaceName, routePath, entity));
|
|
35
37
|
});
|
|
36
38
|
return annotations;
|
|
37
39
|
}
|
|
38
|
-
function
|
|
39
|
-
const
|
|
40
|
-
const type = getInterfaceNavigationSourceType(program,
|
|
40
|
+
function getCollectionAnnotations(program, namespaceName, routePath, entity) {
|
|
41
|
+
const collection = entity.theInterface;
|
|
42
|
+
const type = getInterfaceNavigationSourceType(program, collection);
|
|
43
|
+
const minimumParameters = routePath.split('/').length - 1;
|
|
41
44
|
const operationMethods = entity.operations.map(operation => ({
|
|
42
45
|
operation,
|
|
43
46
|
verb: getOperationVerb(program, operation),
|
|
44
|
-
|
|
47
|
+
hasMinimumParameters: operation.parameters.properties.size === minimumParameters,
|
|
45
48
|
}));
|
|
46
|
-
const [
|
|
47
|
-
const [
|
|
49
|
+
const [hasFilterOperation, nonFilterableProperties] = getFilterProperties(program, type, operationMethods);
|
|
50
|
+
const [hasExpandOnCollectionOrResource, nonExpandableProperties] = getExpandProperties(program, type, operationMethods);
|
|
51
|
+
const [hasSortOnCollection, nonSortableProperties] = getSortProperties(program, type, operationMethods);
|
|
48
52
|
const annotations = {
|
|
49
53
|
Target: `${namespaceName}.container/${routePath}`,
|
|
50
|
-
HasGetOnCollection: operationMethods.some(
|
|
51
|
-
|
|
52
|
-
HasPostOnCollection: operationMethods.some(
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
54
|
+
HasGetOnCollection: operationMethods.some(m => m.hasMinimumParameters && m.verb === "get"),
|
|
55
|
+
HasGetOnResource: operationMethods.some(m => !m.hasMinimumParameters && m.verb === "get"),
|
|
56
|
+
HasPostOnCollection: operationMethods.some(m => m.verb === "post"),
|
|
57
|
+
RequiredProperties: getRequiredForCreateProperties(program, type),
|
|
58
|
+
HasPatchOnResource: operationMethods.some(m => !m.hasMinimumParameters && m.verb === "patch"),
|
|
59
|
+
HasDeleteOnResource: operationMethods.some(m => !m.hasMinimumParameters && m.verb === "delete"),
|
|
60
|
+
HasCountOnCollection: operationMethods.some(m => isCount(program, m.operation)),
|
|
61
|
+
HasSearchOnCollection: operationMethods.some(m => isSearch(program, m.operation)),
|
|
62
|
+
HasSkipOnCollection: operationMethods.some(m => isSkip(program, m.operation)),
|
|
63
|
+
HasFilterOperation: hasFilterOperation,
|
|
64
|
+
NonFilterableProperties: nonFilterableProperties,
|
|
65
|
+
HasExpandOnCollectionOrResource: hasExpandOnCollectionOrResource,
|
|
59
66
|
NonExpandableProperties: nonExpandableProperties,
|
|
60
|
-
|
|
67
|
+
HasSortOnCollection: hasSortOnCollection,
|
|
61
68
|
NonSortableProperties: nonSortableProperties,
|
|
62
|
-
|
|
63
|
-
Description: getDoc(program,
|
|
69
|
+
HasTopOnCollection: operationMethods.some(m => isTop(program, m.operation)),
|
|
70
|
+
Description: getDoc(program, collection),
|
|
64
71
|
};
|
|
65
72
|
return annotations;
|
|
66
73
|
}
|
|
67
|
-
function getExpandProperties(program, type,
|
|
68
|
-
const
|
|
69
|
-
|
|
70
|
-
isExpand(program, operation));
|
|
71
|
-
if (
|
|
72
|
-
|
|
73
|
-
const [_, operation] = expandedOperation;
|
|
74
|
-
const expandableProperties = getExpand(program, operation);
|
|
74
|
+
function getExpandProperties(program, type, operationMethods) {
|
|
75
|
+
const expandOperationMethod = operationMethods.find(m => m.verb === "get" &&
|
|
76
|
+
m.hasMinimumParameters &&
|
|
77
|
+
isExpand(program, m.operation));
|
|
78
|
+
if (expandOperationMethod) {
|
|
79
|
+
const expandableProperties = getExpand(program, expandOperationMethod.operation);
|
|
75
80
|
const navigationProperties = [...walkPropertiesInherited(type)]
|
|
76
81
|
.filter((property) => isContains(program, property) || isReferences(program, property))
|
|
77
82
|
.map((property) => property.name);
|
|
@@ -80,14 +85,24 @@ function getExpandProperties(program, type, entity) {
|
|
|
80
85
|
}
|
|
81
86
|
return [false, undefined];
|
|
82
87
|
}
|
|
83
|
-
function
|
|
84
|
-
const
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
const
|
|
88
|
+
function getFilterProperties(program, type, operationMethods) {
|
|
89
|
+
const filterOperationMethod = operationMethods.find((m) => m.verb === "get" && m.hasMinimumParameters && isFilter(program, m.operation));
|
|
90
|
+
if (filterOperationMethod) {
|
|
91
|
+
const filterableProperties = getFilter(program, filterOperationMethod.operation);
|
|
92
|
+
const navigationProperties = [...walkPropertiesInherited(type)]
|
|
93
|
+
.filter((property) => !isContains(program, property) && !isReferences(program, property))
|
|
94
|
+
.map((property) => property.name);
|
|
95
|
+
const nonFilterableProperties = navigationProperties.filter((property) => !filterableProperties.includes(property));
|
|
96
|
+
return [true, nonFilterableProperties];
|
|
97
|
+
}
|
|
98
|
+
return [false, undefined];
|
|
99
|
+
}
|
|
100
|
+
function getSortProperties(program, type, operationMethods) {
|
|
101
|
+
const sortOperationMethod = operationMethods.find(m => m.verb === "get" &&
|
|
102
|
+
m.hasMinimumParameters &&
|
|
103
|
+
isOrderBy(program, m.operation));
|
|
104
|
+
if (sortOperationMethod) {
|
|
105
|
+
const sortableProperties = getOrderBy(program, sortOperationMethod.operation);
|
|
91
106
|
const nonNavigationProperties = [...walkPropertiesInherited(type)]
|
|
92
107
|
.filter((property) => !isContains(program, property) && !isReferences(program, property))
|
|
93
108
|
.map((property) => property.name);
|
|
@@ -96,4 +111,10 @@ function getSortProperties(program, type, entity) {
|
|
|
96
111
|
}
|
|
97
112
|
return [false, undefined];
|
|
98
113
|
}
|
|
114
|
+
function getRequiredForCreateProperties(program, type) {
|
|
115
|
+
const requiredForCreateProperties = [...walkPropertiesInherited(type)]
|
|
116
|
+
.filter((property) => isRequiredForCreate(program, property))
|
|
117
|
+
.map((property) => property.name);
|
|
118
|
+
return requiredForCreateProperties || undefined;
|
|
119
|
+
}
|
|
99
120
|
//# sourceMappingURL=annotations.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotations.js","sourceRoot":"","sources":["../../../src/entities/annotations.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,MAAM,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAChG,OAAO,EAAoB,gCAAgC,EAAE,MAAM,aAAa,CAAC;AACjF,OAAO,
|
|
1
|
+
{"version":3,"file":"annotations.js","sourceRoot":"","sources":["../../../src/entities/annotations.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,MAAM,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAChG,OAAO,EAAoB,gCAAgC,EAAE,MAAM,aAAa,CAAC;AACjF,OAAO,EAAY,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,YAAY,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAuC/K,MAAM,UAAU,sBAAsB,CAAC,OAAgB,EAAE,aAAqB,EAAE,iBAAgD;IAC9H,MAAM,WAAW,GAAG,IAAI,GAAG,EAA+B,CAAC;IAE3D,iBAAiB,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE;QAC9C,WAAW,CAAC,GAAG,CAAC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CAAC;IAEpC,OAAO,2BAA2B,IAAI,SAAS,CAAC;AAClD,CAAC"}
|
|
@@ -37,6 +37,6 @@ function getEntitySet(program, routePath, entity) {
|
|
|
37
37
|
return entry;
|
|
38
38
|
}
|
|
39
39
|
function getOperationAgsAttributes(program, operations) {
|
|
40
|
-
return operations.reduce((attr,
|
|
40
|
+
return operations.reduce((attr, operation) => ({ ...attr, ...buildAttributes(program, operation) }), {});
|
|
41
41
|
}
|
|
42
42
|
//# sourceMappingURL=entity-container.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-container.js","sourceRoot":"","sources":["../../../src/entities/entity-container.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EACL,mBAAmB,EACnB,gCAAgC,GAEjC,MAAM,aAAa,CAAC;AAcrB,MAAM,UAAU,aAAa,CAAC,OAAgB,EAAE,OAAsC;IACpF,MAAM,UAAU,GAAG,IAAI,GAAG,EAAqB,CAAC;IAEhD,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE;QACpC,UAAU,CAAC,GAAG,CAAC,SAAS,EAAE,YAAY,CAAC,OAAO,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;IACtE,CAAC,CAAC,CAAC;IAEH,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,SAAS,YAAY,CAAC,OAAgB,EAAE,SAAiB,EAAE,MAAwB;IACjF,MAAM,SAAS,GAAG,MAAM,CAAC,YAAY,CAAC;IAEtC,MAAM,IAAI,GAAG,gCAAgC,CAAC,OAAO,EAAE,SAAS,CAAE,CAAC;IAEnE,MAAM,aAAa,GAAG,EAAE,GAAG,yBAAyB,CAAC,OAAO,EAAE,MAAM,CAAC,UAAU,CAAC,EAAE,GAAG,eAAe,CAAC,OAAO,EAAE,SAAS,CAAC,EAAE,CAAC;IAE3H,MAAM,KAAK,GAAc;QACvB,IAAI,EAAE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SAAiB,EAAE,MAAwB;IACjF,MAAM,SAAS,GAAG,MAAM,CAAC,YAAY,CAAC;IAEtC,MAAM,IAAI,GAAG,gCAAgC,CAAC,OAAO,EAAE,SAAS,CAAE,CAAC;IAEnE,MAAM,aAAa,GAAG,EAAE,GAAG,yBAAyB,CAAC,OAAO,EAAE,MAAM,CAAC,UAAU,CAAC,EAAE,GAAG,eAAe,CAAC,OAAO,EAAE,SAAS,CAAC,EAAE,CAAC;IAE3H,MAAM,KAAK,GAAc;QACvB,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,mBAAmB,CAAC,OAAO,EAAE,IAAI,CAAC;QAC5C,aAAa,EAAE,aAAa;KAC7B,CAAC;IAEF,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,yBAAyB,CAAC,OAAgB,EAAE,UAAuB;IAC1E,OAAO,UAAU,CAAC,MAAM,CACtB,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,eAAe,CAAC,OAAO,EAAE,SAAS,CAAC,EAAE,CAAC,EAC1E,EAAE,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -31,6 +31,7 @@ export interface MsGraphModelProperty {
|
|
|
31
31
|
Permission: "Read" | "Write" | null;
|
|
32
32
|
RevisionDefinition: RevisionDefinition | undefined;
|
|
33
33
|
Description: string | undefined;
|
|
34
|
+
isImmutable: boolean;
|
|
34
35
|
}
|
|
35
36
|
export interface AlternateKeyProperty {
|
|
36
37
|
IsModel: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../src/entities/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,OAAO,EAAiB,MAAM,oBAAoB,CAAC;AAClF,OAAO,EAAyB,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../src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CACtB;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,EAAE,aAAa,CAAC;CAC9B;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAWxG"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getDoc, isKey } from "@typespec/compiler";
|
|
2
2
|
import { GetRevisionDefinition } from "./revision-definition.js";
|
|
3
|
-
import { isContains, isComputed, isReadOnly, isWriteOnly, isAlternateKey, isComplex, getStreamTypes, isEntity, isOpen, hasStream, isAbstract, } from "../index.js";
|
|
3
|
+
import { isContains, isComputed, isReadOnly, isWriteOnly, isAlternateKey, isComplex, getStreamTypes, isEntity, isOpen, hasStream, isAbstract, isImmutable, } from "../index.js";
|
|
4
4
|
import { isNavigationProperty, isTypeNullable, getPropertyTypeName, getIdForType, } from "../utils.js";
|
|
5
5
|
import { buildAttributes } from "../decorators/ags-attribute.js";
|
|
6
6
|
export var MsGraphModelKind;
|
|
@@ -64,6 +64,7 @@ function getModelProperties(program, properties) {
|
|
|
64
64
|
: null,
|
|
65
65
|
RevisionDefinition: GetRevisionDefinition(program, v, (_a = v.model) === null || _a === void 0 ? void 0 : _a.namespace),
|
|
66
66
|
Description: getDoc(program, v),
|
|
67
|
+
isImmutable: isImmutable(program, v),
|
|
67
68
|
};
|
|
68
69
|
});
|
|
69
70
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../../src/entities/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiC,MAAM,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAClF,OAAO,EAAE,qBAAqB,EAAsB,MAAM,0BAA0B,CAAC;AACrF,OAAO,EACL,UAAU,EACV,UAAU,EACV,UAAU,EACV,WAAW,EACX,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GAA2B,IAAI,KAAK,EAAwB,CAAC;IAEzE,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;QACrB,IAAI,cAAc,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE;YAC9B,MAAM,CAAC,IAAI,CAAC;gBACV,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,KAAK,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC;gBAC/D,aAAa,EAAE,CAAC;aACjB,CAAC,CAAA;SACH;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { MsGraphEnum } from "./enum.js";
|
|
|
3
3
|
import { MsGraphModel } from "./model.js";
|
|
4
4
|
import { EntitySet, Singleton } from "./entity-container.js";
|
|
5
5
|
import { MsGraphOperation } from "./operation.js";
|
|
6
|
-
import {
|
|
6
|
+
import { CollectionAnnotations, ResourceAnnotations } from "./annotations.js";
|
|
7
7
|
export interface MsGraphNamespace {
|
|
8
8
|
Name: string;
|
|
9
9
|
Enums: MsGraphEnum[];
|
|
@@ -12,8 +12,8 @@ export interface MsGraphNamespace {
|
|
|
12
12
|
Singletons: Map<string, Singleton>;
|
|
13
13
|
EntitySets: Map<string, EntitySet>;
|
|
14
14
|
Operations: MsGraphOperation[];
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
ResourceAnnotations: Map<string, ResourceAnnotations>;
|
|
16
|
+
CollectionAnnotations: Map<string, CollectionAnnotations>;
|
|
17
17
|
}
|
|
18
18
|
export declare function GetMsGraphNamespaces(program: Program): MsGraphNamespace[];
|
|
19
19
|
//# sourceMappingURL=namespace.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"namespace.d.ts","sourceRoot":"","sources":["../../../src/entities/namespace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,OAAO,EAAQ,MAAM,oBAAoB,CAAC;AAEzE,OAA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