@microsoft/typespec-msgraph 1.1.1 → 1.2.2
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.js +1 -1
- package/dist/src/components/annotations.js.map +1 -1
- package/dist/src/components/filter-restrictions-annotation.d.ts +2 -0
- package/dist/src/components/filter-restrictions-annotation.d.ts.map +1 -1
- package/dist/src/components/filter-restrictions-annotation.js +8 -2
- package/dist/src/components/filter-restrictions-annotation.js.map +1 -1
- package/dist/src/components/navigation-property-restrictions.d.ts +24 -0
- package/dist/src/components/navigation-property-restrictions.d.ts.map +1 -0
- package/dist/src/components/navigation-property-restrictions.js +25 -0
- package/dist/src/components/navigation-property-restrictions.js.map +1 -0
- package/dist/src/components/operation-element.js +19 -9
- package/dist/src/components/operation-element.js.map +1 -1
- package/dist/src/components/property-element.d.ts.map +1 -1
- package/dist/src/components/property-element.js +6 -1
- package/dist/src/components/property-element.js.map +1 -1
- package/dist/src/decorators/ags-attribute.d.ts.map +1 -1
- package/dist/src/decorators/ags-attribute.js +5 -1
- package/dist/src/decorators/ags-attribute.js.map +1 -1
- package/dist/src/decorators/delete-restrictions.d.ts +13 -0
- package/dist/src/decorators/delete-restrictions.d.ts.map +1 -0
- package/dist/src/decorators/delete-restrictions.js +17 -0
- package/dist/src/decorators/delete-restrictions.js.map +1 -0
- package/dist/src/decorators/filter-expression-restriction.d.ts +13 -0
- package/dist/src/decorators/filter-expression-restriction.d.ts.map +1 -0
- package/dist/src/decorators/filter-expression-restriction.js +41 -0
- package/dist/src/decorators/filter-expression-restriction.js.map +1 -0
- package/dist/src/decorators/flat-bag.d.ts +11 -2
- package/dist/src/decorators/flat-bag.d.ts.map +1 -1
- package/dist/src/decorators/flat-bag.js +17 -1
- package/dist/src/decorators/flat-bag.js.map +1 -1
- package/dist/src/decorators/index.d.ts +5 -0
- package/dist/src/decorators/index.d.ts.map +1 -1
- package/dist/src/decorators/index.js +5 -0
- package/dist/src/decorators/index.js.map +1 -1
- package/dist/src/decorators/insert-restrictions.d.ts +13 -0
- package/dist/src/decorators/insert-restrictions.d.ts.map +1 -0
- package/dist/src/decorators/insert-restrictions.js +17 -0
- package/dist/src/decorators/insert-restrictions.js.map +1 -0
- package/dist/src/decorators/passthrough-address-url-msa.d.ts +1 -1
- package/dist/src/decorators/passthrough-address-url-msa.d.ts.map +1 -1
- package/dist/src/decorators/prefixed-graph-routes.js +1 -1
- package/dist/src/decorators/prefixed-graph-routes.js.map +1 -1
- package/dist/src/decorators/read-restrictions.d.ts +12 -0
- package/dist/src/decorators/read-restrictions.d.ts.map +1 -0
- package/dist/src/decorators/read-restrictions.js +16 -0
- package/dist/src/decorators/read-restrictions.js.map +1 -0
- package/dist/src/decorators/shared-entity.d.ts +9 -0
- package/dist/src/decorators/shared-entity.d.ts.map +1 -1
- package/dist/src/decorators/shared-entity.js +13 -2
- package/dist/src/decorators/shared-entity.js.map +1 -1
- package/dist/src/decorators/update-restrictions.d.ts +17 -0
- package/dist/src/decorators/update-restrictions.d.ts.map +1 -0
- package/dist/src/decorators/update-restrictions.js +17 -0
- package/dist/src/decorators/update-restrictions.js.map +1 -0
- package/dist/src/entities/address-url.js +1 -1
- package/dist/src/entities/address-url.js.map +1 -1
- package/dist/src/entities/annotations.d.ts +2 -0
- package/dist/src/entities/annotations.d.ts.map +1 -1
- package/dist/src/entities/annotations.js +7 -5
- 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/enum.js +1 -1
- package/dist/src/entities/enum.js.map +1 -1
- package/dist/src/entities/model.d.ts +6 -0
- package/dist/src/entities/model.d.ts.map +1 -1
- package/dist/src/entities/model.js +29 -3
- package/dist/src/entities/model.js.map +1 -1
- package/dist/src/entities/namespace.d.ts.map +1 -1
- package/dist/src/entities/namespace.js +4 -1
- package/dist/src/entities/namespace.js.map +1 -1
- package/dist/src/entities/operation.d.ts +2 -0
- package/dist/src/entities/operation.d.ts.map +1 -1
- package/dist/src/entities/operation.js +11 -2
- package/dist/src/entities/operation.js.map +1 -1
- package/dist/src/entities/revision-definition.js +1 -1
- package/dist/src/entities/revision-definition.js.map +1 -1
- package/dist/src/entities/term.js +1 -1
- package/dist/src/entities/term.js.map +1 -1
- package/dist/src/lib.d.ts +13 -1
- package/dist/src/lib.d.ts.map +1 -1
- package/dist/src/lib.js +9 -0
- package/dist/src/lib.js.map +1 -1
- package/dist/src/linter.d.ts.map +1 -1
- package/dist/src/linter.js +14 -1
- package/dist/src/linter.js.map +1 -1
- package/dist/src/rules/allowed-values.d.ts +1 -1
- package/dist/src/rules/allowed-values.d.ts.map +1 -1
- package/dist/src/rules/allowed-values.js +1 -1
- package/dist/src/rules/allowed-values.js.map +1 -1
- package/dist/src/rules/capability-restrictions.d.ts +14 -0
- package/dist/src/rules/capability-restrictions.d.ts.map +1 -0
- package/dist/src/rules/capability-restrictions.js +61 -0
- package/dist/src/rules/capability-restrictions.js.map +1 -0
- package/dist/src/rules/collections.d.ts +3 -3
- package/dist/src/rules/collections.d.ts.map +1 -1
- package/dist/src/rules/collections.js +1 -1
- package/dist/src/rules/collections.js.map +1 -1
- package/dist/src/rules/contains.d.ts +1 -1
- package/dist/src/rules/contains.d.ts.map +1 -1
- package/dist/src/rules/contains.js +2 -1
- package/dist/src/rules/contains.js.map +1 -1
- package/dist/src/rules/documentation.d.ts +1 -1
- package/dist/src/rules/documentation.d.ts.map +1 -1
- package/dist/src/rules/documentation.js +4 -1
- package/dist/src/rules/documentation.js.map +1 -1
- package/dist/src/rules/entity.d.ts +3 -3
- package/dist/src/rules/entity.d.ts.map +1 -1
- package/dist/src/rules/entity.js +5 -1
- package/dist/src/rules/entity.js.map +1 -1
- package/dist/src/rules/enum.d.ts +4 -4
- package/dist/src/rules/enum.d.ts.map +1 -1
- package/dist/src/rules/enum.js +7 -1
- package/dist/src/rules/enum.js.map +1 -1
- package/dist/src/rules/filter-expression-restriction.d.ts +8 -0
- package/dist/src/rules/filter-expression-restriction.d.ts.map +1 -0
- package/dist/src/rules/filter-expression-restriction.js +224 -0
- package/dist/src/rules/filter-expression-restriction.js.map +1 -0
- package/dist/src/rules/flat-bag.d.ts +2 -2
- package/dist/src/rules/flat-bag.d.ts.map +1 -1
- package/dist/src/rules/index.d.ts +2 -0
- package/dist/src/rules/index.d.ts.map +1 -1
- package/dist/src/rules/index.js +2 -0
- package/dist/src/rules/index.js.map +1 -1
- package/dist/src/rules/media.d.ts +2 -2
- package/dist/src/rules/media.d.ts.map +1 -1
- package/dist/src/rules/media.js +3 -1
- package/dist/src/rules/media.js.map +1 -1
- package/dist/src/rules/model.d.ts +3 -3
- package/dist/src/rules/model.d.ts.map +1 -1
- package/dist/src/rules/model.js +4 -1
- package/dist/src/rules/model.js.map +1 -1
- package/dist/src/rules/namespace.d.ts +2 -2
- package/dist/src/rules/namespace.d.ts.map +1 -1
- package/dist/src/rules/namespace.js +1 -1
- package/dist/src/rules/namespace.js.map +1 -1
- package/dist/src/rules/naming.d.ts +1 -1
- package/dist/src/rules/naming.d.ts.map +1 -1
- package/dist/src/rules/operation-inside-interface.d.ts +1 -1
- package/dist/src/rules/operation-inside-interface.d.ts.map +1 -1
- package/dist/src/rules/operation-inside-interface.js +3 -1
- package/dist/src/rules/operation-inside-interface.js.map +1 -1
- package/dist/src/rules/properties.d.ts +5 -5
- package/dist/src/rules/properties.d.ts.map +1 -1
- package/dist/src/rules/properties.js +3 -1
- package/dist/src/rules/properties.js.map +1 -1
- package/dist/src/rules/record-t.d.ts +2 -2
- package/dist/src/rules/record-t.d.ts.map +1 -1
- package/dist/src/rules/record-t.js +2 -1
- package/dist/src/rules/record-t.js.map +1 -1
- package/dist/src/rules/shared-entity.d.ts.map +1 -1
- package/dist/src/rules/shared-entity.js +8 -5
- package/dist/src/rules/shared-entity.js.map +1 -1
- package/dist/src/utils.d.ts +10 -0
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/src/utils.js +16 -0
- package/dist/src/utils.js.map +1 -1
- package/dist/src/validate.d.ts.map +1 -1
- package/dist/src/validate.js +7 -0
- package/dist/src/validate.js.map +1 -1
- package/lib/decorators.tsp +52 -0
- package/package.json +11 -11
|
@@ -1 +1 @@
|
|
|
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,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,c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|
@@ -11,6 +11,7 @@ export * from "./computed.js";
|
|
|
11
11
|
export * from "./container.js";
|
|
12
12
|
export * from "./contains.js";
|
|
13
13
|
export * from "./count.js";
|
|
14
|
+
export * from "./delete-restrictions.js";
|
|
14
15
|
export * from "./delta.js";
|
|
15
16
|
export * from "./delta-collection.js";
|
|
16
17
|
export * from "./deprecated-definition.js";
|
|
@@ -19,6 +20,7 @@ export * from "./expand.js";
|
|
|
19
20
|
export * from "./experimental.js";
|
|
20
21
|
export * from "./facet.js";
|
|
21
22
|
export * from "./filter.js";
|
|
23
|
+
export * from "./filter-expression-restriction.js";
|
|
22
24
|
export * from "./flat-bag.js";
|
|
23
25
|
export * from "./graphFlags.js";
|
|
24
26
|
export * from "./function.js";
|
|
@@ -27,6 +29,7 @@ export * from "./graph-deprecated.js";
|
|
|
27
29
|
export * from "./graph-partial.js";
|
|
28
30
|
export * from "./graph-route.js";
|
|
29
31
|
export * from "./immutable.js";
|
|
32
|
+
export * from "./insert-restrictions.js";
|
|
30
33
|
export * from "./is-owner.js";
|
|
31
34
|
export * from "./limited-charset.js";
|
|
32
35
|
export * from "./media.js";
|
|
@@ -44,6 +47,7 @@ export * from "./private-preview.js";
|
|
|
44
47
|
export * from "./privileged.js";
|
|
45
48
|
export * from "./public-namespace.js";
|
|
46
49
|
export * from "./read-only.js";
|
|
50
|
+
export * from "./read-restrictions.js";
|
|
47
51
|
export * from "./reference-target.js";
|
|
48
52
|
export * from "./references.js";
|
|
49
53
|
export * from "./required-for-create.js";
|
|
@@ -55,6 +59,7 @@ export * from "./skip.js";
|
|
|
55
59
|
export * from "./skip-token.js";
|
|
56
60
|
export * from "./term.js";
|
|
57
61
|
export * from "./top.js";
|
|
62
|
+
export * from "./update-restrictions.js";
|
|
58
63
|
export * from "./variant.js";
|
|
59
64
|
export * from "./workload-name-msa.js";
|
|
60
65
|
export * from "./workload-name.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../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cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,0BAA0B,CAAC;AACzC,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DecoratorContext, ModelProperty, Program } from "@typespec/compiler";
|
|
2
|
+
/**
|
|
3
|
+
* `@insertRestrictions` - control whether items can be inserted into a navigation
|
|
4
|
+
* property collection (`POST`).
|
|
5
|
+
*
|
|
6
|
+
* Emits the `Org.OData.Capabilities.V1.InsertRestrictions` annotation with the
|
|
7
|
+
* `Insertable` property on the navigation property.
|
|
8
|
+
*
|
|
9
|
+
* `@insertRestrictions` can only be applied to (navigation) model properties.
|
|
10
|
+
*/
|
|
11
|
+
export declare function $insertRestrictions(context: DecoratorContext, target: ModelProperty, insertable: boolean): void;
|
|
12
|
+
export declare function getInsertRestrictions(program: Program, target: ModelProperty): boolean | undefined;
|
|
13
|
+
//# sourceMappingURL=insert-restrictions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insert-restrictions.d.ts","sourceRoot":"","sources":["../../../src/decorators/insert-restrictions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI9E;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,QAExG;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,GAAG,OAAO,GAAG,SAAS,CAElG"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const insertRestrictionsKey = Symbol("insertRestrictions");
|
|
2
|
+
/**
|
|
3
|
+
* `@insertRestrictions` - control whether items can be inserted into a navigation
|
|
4
|
+
* property collection (`POST`).
|
|
5
|
+
*
|
|
6
|
+
* Emits the `Org.OData.Capabilities.V1.InsertRestrictions` annotation with the
|
|
7
|
+
* `Insertable` property on the navigation property.
|
|
8
|
+
*
|
|
9
|
+
* `@insertRestrictions` can only be applied to (navigation) model properties.
|
|
10
|
+
*/
|
|
11
|
+
export function $insertRestrictions(context, target, insertable) {
|
|
12
|
+
context.program.stateMap(insertRestrictionsKey).set(target, insertable);
|
|
13
|
+
}
|
|
14
|
+
export function getInsertRestrictions(program, target) {
|
|
15
|
+
return program.stateMap(insertRestrictionsKey).get(target);
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=insert-restrictions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insert-restrictions.js","sourceRoot":"","sources":["../../../src/decorators/insert-restrictions.ts"],"names":[],"mappings":"AAEA,MAAM,qBAAqB,GAAG,MAAM,CAAC,oBAAoB,CAAC,CAAC;AAE3D;;;;;;;;GAQG;AACH,MAAM,UAAU,mBAAmB,CAAC,OAAyB,EAAE,MAAqB,EAAE,UAAmB;IACvG,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;AAC1E,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,OAAgB,EAAE,MAAqB;IAC3E,OAAO,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC7D,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DecoratorContext, Program, Interface, Operation } from "@typespec/compiler";
|
|
2
|
-
import { AddressUrlParameter } from "
|
|
2
|
+
import { AddressUrlParameter } from "./address-url.js";
|
|
3
3
|
/**
|
|
4
4
|
* `@passthroughAddressUrlMsa` - Specifies the URL to which the operation request is forwarded when the request
|
|
5
5
|
* is authenticated with a Microsoft account and the request is eligible for response passthrough.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"passthrough-address-url-msa.d.ts","sourceRoot":"","sources":["../../../src/decorators/passthrough-address-url-msa.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACrF,OAAO,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"passthrough-address-url-msa.d.ts","sourceRoot":"","sources":["../../../src/decorators/passthrough-address-url-msa.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACrF,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAIvD;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,GAAG,SAAS,EAC7B,GAAG,EAAE,MAAM,QAIZ;AAED,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,SAAS,GAAG,SAAS,GAC5B,OAAO,CAET;AAED,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,SAAS,GAAG,SAAS,GAC5B,mBAAmB,GAAG,SAAS,CAEjC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $graphRoute } from "./
|
|
1
|
+
import { $graphRoute } from "./graph-route.js";
|
|
2
2
|
/**
|
|
3
3
|
* `@prefixedGraphRoutes` - Allow us to define an interface or operation with multiple HTTP routes based on catenating a set of prefixes to a path.
|
|
4
4
|
* `@prefixedGraphRoutes` - Applies to interfaces.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prefixed-graph-routes.js","sourceRoot":"","sources":["../../../src/decorators/prefixed-graph-routes.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"prefixed-graph-routes.js","sourceRoot":"","sources":["../../../src/decorators/prefixed-graph-routes.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;;;GAKG;AACH,MAAM,UAAU,oBAAoB,CAClC,OAAyB,EACzB,MAAiB,EACjB,QAAa,EAAG,0DAA0D;AAC1E,IAAa;IAEb,sDAAsD;IACtD,KAAK,MAAM,MAAM,IAAI,QAAQ,CAAC,MAAM,EAAE,CAAC;QACrC,IAAI,WAAW,GAAU,MAAM,CAAC,KAAK,CAAC;QACtC,IAAI,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YAC9B,WAAW,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QACzC,CAAC;QAED,IAAI,IAAI,EAAE,CAAC;YACT,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;gBACzB,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YACvB,CAAC;YACD,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,WAAW,IAAI,IAAI,EAAE,CAAC,CAAA;QACxD,CAAC;aACI,CAAC;YACJ,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,CAAC,CAAA;QAC3C,CAAC;IACH,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DecoratorContext, ModelProperty, Program } from "@typespec/compiler";
|
|
2
|
+
/**
|
|
3
|
+
* `@readRestrictions` - control whether a navigation property can be read (`GET`).
|
|
4
|
+
*
|
|
5
|
+
* Emits the `Org.OData.Capabilities.V1.ReadRestrictions` annotation with the
|
|
6
|
+
* `Readable` property on the navigation property.
|
|
7
|
+
*
|
|
8
|
+
* `@readRestrictions` can only be applied to (navigation) model properties.
|
|
9
|
+
*/
|
|
10
|
+
export declare function $readRestrictions(context: DecoratorContext, target: ModelProperty, readable: boolean): void;
|
|
11
|
+
export declare function getReadRestrictions(program: Program, target: ModelProperty): boolean | undefined;
|
|
12
|
+
//# sourceMappingURL=read-restrictions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read-restrictions.d.ts","sourceRoot":"","sources":["../../../src/decorators/read-restrictions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI9E;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,OAAO,QAEpG;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,GAAG,OAAO,GAAG,SAAS,CAEhG"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const readRestrictionsKey = Symbol("readRestrictions");
|
|
2
|
+
/**
|
|
3
|
+
* `@readRestrictions` - control whether a navigation property can be read (`GET`).
|
|
4
|
+
*
|
|
5
|
+
* Emits the `Org.OData.Capabilities.V1.ReadRestrictions` annotation with the
|
|
6
|
+
* `Readable` property on the navigation property.
|
|
7
|
+
*
|
|
8
|
+
* `@readRestrictions` can only be applied to (navigation) model properties.
|
|
9
|
+
*/
|
|
10
|
+
export function $readRestrictions(context, target, readable) {
|
|
11
|
+
context.program.stateMap(readRestrictionsKey).set(target, readable);
|
|
12
|
+
}
|
|
13
|
+
export function getReadRestrictions(program, target) {
|
|
14
|
+
return program.stateMap(readRestrictionsKey).get(target);
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=read-restrictions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read-restrictions.js","sourceRoot":"","sources":["../../../src/decorators/read-restrictions.ts"],"names":[],"mappings":"AAEA,MAAM,mBAAmB,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;AAEvD;;;;;;;GAOG;AACH,MAAM,UAAU,iBAAiB,CAAC,OAAyB,EAAE,MAAqB,EAAE,QAAiB;IACnG,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;AACtE,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,OAAgB,EAAE,MAAqB;IACzE,OAAO,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC3D,CAAC"}
|
|
@@ -5,5 +5,14 @@ import { DecoratorContext, Model, Program } from "@typespec/compiler";
|
|
|
5
5
|
* `@sharedEntity` can only be applied to models.
|
|
6
6
|
*/
|
|
7
7
|
export declare function $sharedEntity(context: DecoratorContext, target: Model): void;
|
|
8
|
+
/**
|
|
9
|
+
* Returns true when the model carries the `@sharedEntity` decorator.
|
|
10
|
+
*
|
|
11
|
+
* This is distinct from {@link isSharedEntity}, which also returns true for the
|
|
12
|
+
* `@agsAttribute("IsSharedEntity", "true")` escape hatch. Rules that should only
|
|
13
|
+
* apply to the first-class decorator path (and not the owner escape hatch) should
|
|
14
|
+
* use this helper.
|
|
15
|
+
*/
|
|
16
|
+
export declare function hasSharedEntityDecorator(program: Program, target: Model): boolean;
|
|
8
17
|
export declare function isSharedEntity(program: Program, target: Model): boolean;
|
|
9
18
|
//# sourceMappingURL=shared-entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-entity.d.ts","sourceRoot":"","sources":["../../../src/decorators/shared-entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAKtE;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,KAAK,QAErE;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,GAAG,OAAO,CAGvE"}
|
|
1
|
+
{"version":3,"file":"shared-entity.d.ts","sourceRoot":"","sources":["../../../src/decorators/shared-entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAKtE;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,KAAK,QAErE;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,GAAG,OAAO,CAEjF;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,GAAG,OAAO,CAGvE"}
|
|
@@ -8,8 +8,19 @@ const sharedEntityKey = Symbol("sharedEntity");
|
|
|
8
8
|
export function $sharedEntity(context, target) {
|
|
9
9
|
context.program.stateSet(sharedEntityKey).add(target);
|
|
10
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* Returns true when the model carries the `@sharedEntity` decorator.
|
|
13
|
+
*
|
|
14
|
+
* This is distinct from {@link isSharedEntity}, which also returns true for the
|
|
15
|
+
* `@agsAttribute("IsSharedEntity", "true")` escape hatch. Rules that should only
|
|
16
|
+
* apply to the first-class decorator path (and not the owner escape hatch) should
|
|
17
|
+
* use this helper.
|
|
18
|
+
*/
|
|
19
|
+
export function hasSharedEntityDecorator(program, target) {
|
|
20
|
+
return program.stateSet(sharedEntityKey).has(target);
|
|
21
|
+
}
|
|
11
22
|
export function isSharedEntity(program, target) {
|
|
12
|
-
return program
|
|
13
|
-
getAgsAttributes(program, target).get("
|
|
23
|
+
return hasSharedEntityDecorator(program, target) ||
|
|
24
|
+
getAgsAttributes(program, target).get("IsSharedEntity") === "true";
|
|
14
25
|
}
|
|
15
26
|
//# sourceMappingURL=shared-entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-entity.js","sourceRoot":"","sources":["../../../src/decorators/shared-entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,eAAe,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;AAE/C;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAAC,OAAyB,EAAE,MAAa;IACpE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxD,CAAC;AAED,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"shared-entity.js","sourceRoot":"","sources":["../../../src/decorators/shared-entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,eAAe,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;AAE/C;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAAC,OAAyB,EAAE,MAAa;IACpE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxD,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,wBAAwB,CAAC,OAAgB,EAAE,MAAa;IACtE,OAAO,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACvD,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,OAAgB,EAAE,MAAa;IAC5D,OAAO,wBAAwB,CAAC,OAAO,EAAE,MAAM,CAAC;QACzC,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,gBAAgB,CAAC,KAAK,MAAM,CAAC;AAC5E,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DecoratorContext, ModelProperty, Program } from "@typespec/compiler";
|
|
2
|
+
export interface UpdateRestrictionsValue {
|
|
3
|
+
upsertable: boolean;
|
|
4
|
+
updatable?: boolean;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* `@updateRestrictions` - control how a navigation property item can be updated.
|
|
8
|
+
*
|
|
9
|
+
* Emits the `Org.OData.Capabilities.V1.UpdateRestrictions` annotation with the
|
|
10
|
+
* `Upsertable` (`PUT` upsert) and, when supplied, `Updatable` (`PATCH`/`PUT`
|
|
11
|
+
* update) properties on the navigation property.
|
|
12
|
+
*
|
|
13
|
+
* `@updateRestrictions` can only be applied to (navigation) model properties.
|
|
14
|
+
*/
|
|
15
|
+
export declare function $updateRestrictions(context: DecoratorContext, target: ModelProperty, upsertable: boolean, updatable?: boolean): void;
|
|
16
|
+
export declare function getUpdateRestrictions(program: Program, target: ModelProperty): UpdateRestrictionsValue | undefined;
|
|
17
|
+
//# sourceMappingURL=update-restrictions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-restrictions.d.ts","sourceRoot":"","sources":["../../../src/decorators/update-restrictions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI9E,MAAM,WAAW,uBAAuB;IACtC,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,aAAa,EACrB,UAAU,EAAE,OAAO,EACnB,SAAS,CAAC,EAAE,OAAO,QAGpB;AAED,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,aAAa,GACpB,uBAAuB,GAAG,SAAS,CAErC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const updateRestrictionsKey = Symbol("updateRestrictions");
|
|
2
|
+
/**
|
|
3
|
+
* `@updateRestrictions` - control how a navigation property item can be updated.
|
|
4
|
+
*
|
|
5
|
+
* Emits the `Org.OData.Capabilities.V1.UpdateRestrictions` annotation with the
|
|
6
|
+
* `Upsertable` (`PUT` upsert) and, when supplied, `Updatable` (`PATCH`/`PUT`
|
|
7
|
+
* update) properties on the navigation property.
|
|
8
|
+
*
|
|
9
|
+
* `@updateRestrictions` can only be applied to (navigation) model properties.
|
|
10
|
+
*/
|
|
11
|
+
export function $updateRestrictions(context, target, upsertable, updatable) {
|
|
12
|
+
context.program.stateMap(updateRestrictionsKey).set(target, { upsertable, updatable });
|
|
13
|
+
}
|
|
14
|
+
export function getUpdateRestrictions(program, target) {
|
|
15
|
+
return program.stateMap(updateRestrictionsKey).get(target);
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=update-restrictions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-restrictions.js","sourceRoot":"","sources":["../../../src/decorators/update-restrictions.ts"],"names":[],"mappings":"AAEA,MAAM,qBAAqB,GAAG,MAAM,CAAC,oBAAoB,CAAC,CAAC;AAO3D;;;;;;;;GAQG;AACH,MAAM,UAAU,mBAAmB,CACjC,OAAyB,EACzB,MAAqB,EACrB,UAAmB,EACnB,SAAmB;IAEnB,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC,CAAC;AACzF,CAAC;AAED,MAAM,UAAU,qBAAqB,CACnC,OAAgB,EAChB,MAAqB;IAErB,OAAO,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC7D,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getAddressUrl, getAddressUrlMsa, getPassthroughAddressUrl, hasAddressUrl, hasAddressUrlMsa, hasPassthroughAddressUrl, } from "../index.js";
|
|
1
|
+
import { getAddressUrl, getAddressUrlMsa, getPassthroughAddressUrl, hasAddressUrl, hasAddressUrlMsa, hasPassthroughAddressUrl, } from "../decorators/index.js";
|
|
2
2
|
import { getPassthroughAddressUrlMsa, hasPassthroughAddressUrlMsa, } from "../decorators/passthrough-address-url-msa.js";
|
|
3
3
|
export function getMsGraphAddressUrl(program, target) {
|
|
4
4
|
if (hasAddressUrl(program, target)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address-url.js","sourceRoot":"","sources":["../../../src/entities/address-url.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,aAAa,EACb,gBAAgB,EAChB,wBAAwB,EACxB,aAAa,EACb,gBAAgB,EAChB,wBAAwB,GACzB,MAAM,
|
|
1
|
+
{"version":3,"file":"address-url.js","sourceRoot":"","sources":["../../../src/entities/address-url.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,aAAa,EACb,gBAAgB,EAChB,wBAAwB,EACxB,aAAa,EACb,gBAAgB,EAChB,wBAAwB,GACzB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,GAC5B,MAAM,8CAA8C,CAAC;AAKtD,MAAM,UAAU,oBAAoB,CAClC,OAAgB,EAChB,MAA6B;IAE7B,IAAI,aAAa,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,CAAC;QACnC,MAAM,UAAU,GAAG,aAAa,CAAC,OAAO,EAAE,MAAM,CAAE,CAAC;QACnD,OAAO,yBAAyB,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAC;IACjE,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,MAAM,UAAU,uBAAuB,CACrC,OAAgB,EAChB,MAA6B;IAE7B,IAAI,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,CAAC;QACtC,MAAM,aAAa,GAAG,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAE,CAAC;QACzD,OAAO,yBAAyB,CAAC,mBAAmB,EAAE,aAAa,CAAC,CAAC;IACvE,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,MAAM,UAAU,+BAA+B,CAC7C,OAAgB,EAChB,MAAiB;IAEjB,IAAI,wBAAwB,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,qBAAqB,GAAG,wBAAwB,CAAC,OAAO,EAAE,MAAM,CAAE,CAAC;QACzE,OAAO,oCAAoC,CAAC,2BAA2B,EAAE,qBAAqB,CAAC,GAAG,CAAC,CAAC;IACtG,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,MAAM,UAAU,kCAAkC,CAChD,OAAgB,EAChB,MAAiB;IAEjB,IAAI,2BAA2B,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,CAAC;QACjD,MAAM,wBAAwB,GAAG,2BAA2B,CAAC,OAAO,EAAE,MAAM,CAAE,CAAC;QAC/E,OAAO,oCAAoC,CAAC,8BAA8B,EAAE,wBAAwB,CAAC,GAAG,CAAC,CAAC;IAC5G,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,SAAS,yBAAyB,CAChC,iBAEuB,EACvB,UAA+B;IAE/B,MAAM,iBAAiB,GAAsB,EAAE,CAAC;IAChD,iBAAiB,CAAC,iBAAiB,CAAC,GAAG,UAAU,CAAC,GAAG,CAAC;IACtD,IAAI,UAAU,CAAC,yBAAyB,EAAE,CAAC;QACzC,iBAAiB,CAAC,qCAAqC,CAAC,GAAG,IAAI,CAAC;IAClE,CAAC;IACD,IAAI,UAAU,CAAC,0BAA0B,EAAE,CAAC;QAC1C,iBAAiB,CAAC,gCAAgC,CAAC,GAAG,IAAI,CAAC;IAC7D,CAAC;IACD,OAAO,iBAAiB,CAAC;AAC3B,CAAC;AAED,SAAS,oCAAoC,CAC3C,4BAA0F,EAC1F,qBAA6B;IAE7B,MAAM,4BAA4B,GAAiC,EAAE,CAAC;IACtE,4BAA4B,CAAC,4BAA4B,CAAC,GAAG,qBAAqB,CAAC;IACnF,OAAO,4BAA4B,CAAC;AACtC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Program } from "@typespec/compiler";
|
|
2
2
|
import { MsGraphInterface } from "../utils.js";
|
|
3
|
+
import type { FilterExpressionRestriction } from "../decorators/filter-expression-restriction.js";
|
|
3
4
|
import { AllowedValues, MsGraphModel } from "./model.js";
|
|
4
5
|
export interface ResourceAnnotations {
|
|
5
6
|
Target: string | undefined;
|
|
@@ -31,6 +32,7 @@ export interface CollectionAnnotations {
|
|
|
31
32
|
HasSkipTokenOnCollection: boolean;
|
|
32
33
|
HasFilterOperation: boolean;
|
|
33
34
|
NonFilterableProperties: string[] | undefined;
|
|
35
|
+
FilterExpressionRestrictions: FilterExpressionRestriction[] | undefined;
|
|
34
36
|
HasSortOnCollection: boolean;
|
|
35
37
|
NonSortableProperties: string[] | undefined;
|
|
36
38
|
HasTopOnCollection: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotations.d.ts","sourceRoot":"","sources":["../../../src/entities/annotations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,OAAO,EAAmC,MAAM,oBAAoB,CAAC;AACrF,OAAO,EAAE,gBAAgB,EAAqL,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"annotations.d.ts","sourceRoot":"","sources":["../../../src/entities/annotations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,OAAO,EAAmC,MAAM,oBAAoB,CAAC;AACrF,OAAO,EAAE,gBAAgB,EAAqL,MAAM,aAAa,CAAC;AAClO,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAC;AAuBlG,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAGzD,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,+BAA+B,EAAE,OAAO,CAAC;IACzC,uBAAuB,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAC9C,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,uBAAuB,EAAE,OAAO,CAAC;IACjC,6BAA6B,EAAE,MAAM,EAAE,CAAC;IACxC,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,gBAAgB,EAAE,OAAO,CAA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mC,CAAC,CAYxM;AA8DD,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,qBAAqB,GAAG,mCAAmC,CAAC,CAYlM;AA6HD,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAiB7J"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getDoc, walkPropertiesInherited } from "@typespec/compiler";
|
|
2
2
|
import { getInterfaceNavigationSourceType, getModelStructuralPropertyNames, isInterfaceBindingTypeOwned, isRouteIndexOfACollection, isNavigationProperty, cleanDescription } from "../utils.js";
|
|
3
|
-
import { getAction, getContainerName, getExpand, getFilter, getFunction, getOrderBy, getPublicNamespaceName, isAction, isCount, isExpand, isFilter, isFunction, isOrderBy, isRequiredForCreate, isSearch, isSelect, isSkip, isSkipToken, isTop } from "../index.js";
|
|
3
|
+
import { getAction, getContainerName, getExpand, getFilter, getFilterExpressionRestrictions, getFunction, getOrderBy, getPublicNamespaceName, isAction, isCount, isExpand, isFilter, isFunction, isOrderBy, isRequiredForCreate, isSearch, isSelect, isSkip, isSkipToken, isTop, } from "../decorators/index.js";
|
|
4
4
|
import { DEFAULT_MSGRAPH_NAMESPACE } from "./namespace.js";
|
|
5
5
|
export function GetResourceAnnotations(program, namespaceName, navigationSources) {
|
|
6
6
|
const annotations = new Map();
|
|
@@ -82,7 +82,7 @@ function getCollectionAnnotations(program, namespaceName, routePath, entity) {
|
|
|
82
82
|
if (isInterfaceBindingTypeOwned(program, collection)) {
|
|
83
83
|
const type = getInterfaceNavigationSourceType(program, collection);
|
|
84
84
|
const hasNavigationProperties = [...walkPropertiesInherited(type)].some((property) => isNavigationProperty(program, property));
|
|
85
|
-
const [hasFilterOperation, nonFilterableProperties] = getFilterProperties(program, type, entity.operations);
|
|
85
|
+
const [hasFilterOperation, nonFilterableProperties, filterExpressionRestrictions] = getFilterProperties(program, type, entity.operations);
|
|
86
86
|
const [hasExpandOnCollectionOrResource, nonExpandableProperties] = getExpandProperties(program, type, entity.operations);
|
|
87
87
|
const [hasSortOnCollection, nonSortableProperties] = getSortProperties(program, type, entity.operations);
|
|
88
88
|
const isSelectable = entity.operations.some(o => isSelect(program, o.theOperation));
|
|
@@ -103,6 +103,7 @@ function getCollectionAnnotations(program, namespaceName, routePath, entity) {
|
|
|
103
103
|
HasSkipTokenOnCollection: entity.operations.some(o => isSkipToken(program, o.theOperation)),
|
|
104
104
|
HasFilterOperation: hasFilterOperation,
|
|
105
105
|
NonFilterableProperties: nonFilterableProperties,
|
|
106
|
+
FilterExpressionRestrictions: filterExpressionRestrictions,
|
|
106
107
|
HasExpandOnCollectionOrResource: hasExpandOnCollectionOrResource,
|
|
107
108
|
NonExpandableProperties: nonExpandableProperties,
|
|
108
109
|
HasSortOnCollection: hasSortOnCollection,
|
|
@@ -139,14 +140,15 @@ function getFilterProperties(program, type, operations) {
|
|
|
139
140
|
const filterOperation = operations.find(o => o.verb === "get" && isFilter(program, o.theOperation));
|
|
140
141
|
if (filterOperation) {
|
|
141
142
|
const filterablePropertyNames = getFilter(program, filterOperation.theOperation);
|
|
143
|
+
const filterExpressionRestrictions = getFilterExpressionRestrictions(program, filterOperation.theOperation);
|
|
142
144
|
if (filterablePropertyNames.length === 1 && filterablePropertyNames[0] === "*") {
|
|
143
|
-
return [true, undefined];
|
|
145
|
+
return [true, undefined, filterExpressionRestrictions.length ? filterExpressionRestrictions : undefined];
|
|
144
146
|
}
|
|
145
147
|
const structuralPropertyNames = getModelStructuralPropertyNames(program, type);
|
|
146
148
|
const nonFilterablePropertyNames = structuralPropertyNames.filter(p => !filterablePropertyNames.includes(p));
|
|
147
|
-
return [true, nonFilterablePropertyNames];
|
|
149
|
+
return [true, nonFilterablePropertyNames, filterExpressionRestrictions.length ? filterExpressionRestrictions : undefined];
|
|
148
150
|
}
|
|
149
|
-
return [false, undefined];
|
|
151
|
+
return [false, undefined, undefined];
|
|
150
152
|
}
|
|
151
153
|
function getSortProperties(program, type, operations) {
|
|
152
154
|
const sortOperationMethod = operations.find(o => o.verb === "get" && isOrderBy(program, o.theOperation));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotations.js","sourceRoot":"","sources":["../../../src/entities/annotations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,MAAM,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AACrF,OAAO,EAAoC,gCAAgC,EAAE,+BAA+B,EAAE,2BAA2B,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAClO,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,sBAAsB,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,mBAAmB,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpQ,OAAO,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAqD3D,MAAM,UAAU,sBAAsB,CAAC,OAAgB,EAAE,aAAqB,EAAE,iBAAgD;IAC9H,MAAM,WAAW,GAAG,IAAI,GAAG,EAAqE,CAAC;IACjG,iBAAiB,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE;QAC9C,qCAAqC;QACrC,IAAI,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;YAC/B,OAAO;QACT,CAAC;QAED,WAAW,CAAC,GAAG,CAAC,SAAS,EAAE,sBAAsB,CAAC,O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,aAAa,IAAI,KAAK,CAAC,IAAI,IAAI,QAAQ,CAAC,IAAI,EAAE,EAAE;wBACjE,MAAM,EAAE,GAAG,aAAa,IAAI,KAAK,CAAC,IAAI,IAAI,QAAQ,CAAC,IAAI,EAAE;wBACzD,aAAa,EAAE,QAAQ,CAAC,aAAa;qBACtC,CAAC,CAAA;gBACJ,CAAC;YACH,CAAC,CAAC,CAAA;QACJ,CAAC;IACH,CAAC;IAAA,CAAC;IACF,OAAO,WAAW,CAAC;AACrB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { buildAttributes } from "../decorators/ags-attribute.js";
|
|
2
2
|
import { getPropertyTypeName, getInterfaceNavigationSourceType, getDeltaProperties, } from "../utils.js";
|
|
3
3
|
import { getMsGraphAddressUrl, getMsGraphAddressUrlMsa, getMsGraphPassthroughAddressUrl, getMsGraphPassthroughAddressUrlMsa } from "./address-url.js";
|
|
4
|
-
import { isDelta, isPartial } from "../index.js";
|
|
4
|
+
import { isDelta, isPartial } from "../decorators/index.js";
|
|
5
5
|
import { GetRevisionDefinition } from "./revision-definition.js";
|
|
6
6
|
export function GetSingletons(program, sources, currentNamespace) {
|
|
7
7
|
const singletons = new 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,EAGhC,kBAAkB,GACnB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAqB,oBAAoB,EAAE,uBAAuB,EAAE,+BAA+B,EAAE,kCAAkC,EAAE,MAAM,kBAAkB,CAAC;AACzK,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"entity-container.js","sourceRoot":"","sources":["../../../src/entities/entity-container.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eA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E,EAAE,CAAC,CAAC;AAC5F,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getDoc } from "@typespec/compiler";
|
|
2
2
|
import { GetRevisionDefinition } from "./revision-definition.js";
|
|
3
3
|
import { buildAttributes } from "../decorators/ags-attribute.js";
|
|
4
|
-
import { isGraphFlags } from "../index.js";
|
|
4
|
+
import { isGraphFlags } from "../decorators/index.js";
|
|
5
5
|
import { cleanDescription } from "../utils.js";
|
|
6
6
|
export function GetMsGraphEnumTypeElement(program, enumType) {
|
|
7
7
|
const element = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enum.js","sourceRoot":"","sources":["../../../src/entities/enum.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAsB,MAAM,0BAA0B,CAAC;AACrF,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"enum.js","sourceRoot":"","sources":["../../../src/entities/enum.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAsB,MAAM,0BAA0B,CAAC;AACrF,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAmB/C,MAAM,UAAU,yBAAyB,CAAC,OAAgB,EAAE,QAAc;IACxE,MAAM,OAAO,GAAgB;QAC3B,IAAI,EAAE,QAAQ,CAAC,IAAI;QACnB,aAAa,EAAE,eAAe,CAAC,OAAO,EAAE,QAAQ,CAAC;QACjD,kBAAkB,EAAE,qBAAqB,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,aAAR,QAAQ,u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ler";
|
|
2
2
|
import { RevisionDefinition } from "./revision-definition.js";
|
|
3
|
+
import { UpdateRestrictionsValue } from "../decorators/update-restrictions.js";
|
|
3
4
|
import { MsGraphAddressUrl, MsGraphPassthroughAddressUrl } from "./address-url.js";
|
|
4
5
|
export interface MsGraphModel {
|
|
5
6
|
Kind: MsGraphModelKind;
|
|
@@ -37,6 +38,7 @@ interface PropertyAttributes {
|
|
|
37
38
|
PropertyTypeName: string;
|
|
38
39
|
IsNullable: boolean;
|
|
39
40
|
IsNavigation: boolean;
|
|
41
|
+
IsEntityCollection: boolean;
|
|
40
42
|
IsUrl?: boolean | undefined;
|
|
41
43
|
AgsAttributes: Record<string, string>;
|
|
42
44
|
RevisionDefinition: RevisionDefinition | undefined;
|
|
@@ -58,6 +60,10 @@ export interface MsGraphNavigationProperty extends PropertyAttributes {
|
|
|
58
60
|
PassthroughAddressUrl: MsGraphPassthroughAddressUrl | undefined;
|
|
59
61
|
PassthroughAddressUrlMsa: MsGraphPassthroughAddressUrl | undefined;
|
|
60
62
|
DeltaProperties: DeltaProperties | undefined;
|
|
63
|
+
ReadRestrictions: boolean | undefined;
|
|
64
|
+
InsertRestrictions: boolean | undefined;
|
|
65
|
+
UpdateRestrictions: UpdateRestrictionsValue | undefined;
|
|
66
|
+
DeleteRestrictions: boolean | undefined;
|
|
61
67
|
}
|
|
62
68
|
export interface MsGraphModelProperty extends MsGraphStructuralProperty, MsGraphNavigationProperty {
|
|
63
69
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../src/entities/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,OAAO,EAA6C,MAAM,oBAAoB,CAAC;AACzH,OAAO,EAAyB,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../src/entities/model.ts"],"names":[],"mappings":"AA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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,EAAE,gBAAgB,CAAC,EAAE,SAAS,GAAG,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAuDtI"}
|
|
@@ -1,10 +1,31 @@
|
|
|
1
1
|
import { getDoc, getMaxLength, isKey } from "@typespec/compiler";
|
|
2
2
|
import { GetRevisionDefinition } from "./revision-definition.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { isAbstract } from "../decorators/abstract.js";
|
|
4
|
+
import { hasAddressUrlMsa } from "../decorators/address-url-msa.js";
|
|
5
|
+
import { hasAddressUrl } from "../decorators/address-url.js";
|
|
6
|
+
import { getAllowedValues, hasAllowedValues } from "../decorators/allowed-values.js";
|
|
7
|
+
import { isAlternateKey } from "../decorators/alternate-key.js";
|
|
8
|
+
import { isComplex } from "../decorators/complex.js";
|
|
9
|
+
import { isComputed } from "../decorators/computed.js";
|
|
10
|
+
import { isContains } from "../decorators/contains.js";
|
|
11
|
+
import { getDeleteRestrictions } from "../decorators/delete-restrictions.js";
|
|
12
|
+
import { isEntity } from "../decorators/entity.js";
|
|
13
|
+
import { getPartialReferenceModel, isPartial } from "../decorators/graph-partial.js";
|
|
14
|
+
import { isImmutable } from "../decorators/immutable.js";
|
|
15
|
+
import { getInsertRestrictions } from "../decorators/insert-restrictions.js";
|
|
16
|
+
import { getMediaTypes, isMedia } from "../decorators/media.js";
|
|
17
|
+
import { isOpen } from "../decorators/open.js";
|
|
18
|
+
import { hasPassthroughAddressUrl } from "../decorators/passthrough-address-url.js";
|
|
19
|
+
import { getPublicNamespaceName } from "../decorators/public-namespace.js";
|
|
20
|
+
import { isReadOnly } from "../decorators/read-only.js";
|
|
21
|
+
import { getReadRestrictions } from "../decorators/read-restrictions.js";
|
|
22
|
+
import { isSharedEntity } from "../decorators/shared-entity.js";
|
|
23
|
+
import { getUpdateRestrictions } from "../decorators/update-restrictions.js";
|
|
24
|
+
import { hasWorkloadNamespace } from "../decorators/workload-namespace.js";
|
|
25
|
+
import { isWriteOnly } from "../decorators/write-only.js";
|
|
26
|
+
import { isNavigationProperty, isTypeNullable, getPropertyTypeName, getIdForType, getIdForTypeWithAlias, isTypeCollection, isEntityCollection, extractTypesFromUnion, removeReferencePrefixFromType, getNameForModelType, isDictionaryType, generateDictionaryBaseType, getSchemaNamespaceName, hasEffectiveNamespaceAlias, generateDeltaPropertiesForNavigationProperties, getTypeModel, getModelProperties, isTypeDefinedInExternalLibrary, buildPathTree, isTypeDefinedInLocalProject, isParentSharedEntity, getDefaultPropertyValue, cleanDescription } from "../utils.js";
|
|
5
27
|
import { buildAttributes } from "../decorators/ags-attribute.js";
|
|
6
28
|
import { usedDictionaryTypeKey, usedLibraryTypesKey, usedStandardEntityBaseTypeKey, NamespaceType, modelsOrderingKey, GetDeclaredNamespaces, DEFAULT_MSGRAPH_NAMESPACE } from "./namespace.js";
|
|
7
|
-
import { isPartial } from "../decorators/graph-partial.js";
|
|
8
29
|
import { getMsGraphAddressUrl, getMsGraphAddressUrlMsa, getMsGraphPassthroughAddressUrl, getMsGraphPassthroughAddressUrlMsa } from "./address-url.js";
|
|
9
30
|
import { GetMsGraphRoutes } from "./ms-graph-route.js";
|
|
10
31
|
import { hasPassthroughAddressUrlMsa } from "../decorators/passthrough-address-url-msa.js";
|
|
@@ -199,6 +220,7 @@ function getMsGraphModelProperties(program, properties, currentNamespace) {
|
|
|
199
220
|
return {
|
|
200
221
|
Name: v.name,
|
|
201
222
|
IsNavigation: isNavigationProperty(program, v),
|
|
223
|
+
IsEntityCollection: isEntityCollection(program, v.type),
|
|
202
224
|
IsNullable: isTypeNullable(program, v.type),
|
|
203
225
|
AgsAttributes: buildAttributes(program, v),
|
|
204
226
|
PropertyTypeName: getPropertyTypeName(program, v.type, currentNamespace),
|
|
@@ -222,6 +244,10 @@ function getMsGraphModelProperties(program, properties, currentNamespace) {
|
|
|
222
244
|
DefaultValue: getStringDefaultValue(v),
|
|
223
245
|
IsUrl: getIsUrl(program, v),
|
|
224
246
|
DeltaProperties: isNavigationProperty(program, v) ? generateDeltaPropertiesForNavigationProperties(program, v) : undefined,
|
|
247
|
+
ReadRestrictions: isNavigationProperty(program, v) ? getReadRestrictions(program, v) : undefined,
|
|
248
|
+
InsertRestrictions: isNavigationProperty(program, v) ? getInsertRestrictions(program, v) : undefined,
|
|
249
|
+
UpdateRestrictions: isNavigationProperty(program, v) ? getUpdateRestrictions(program, v) : undefined,
|
|
250
|
+
DeleteRestrictions: isNavigationProperty(program, v) ? getDeleteRestrictions(program, v) : undefined,
|
|
225
251
|
MaxLength: getMaxLength(program, v),
|
|
226
252
|
};
|
|
227
253
|
});
|