@microsoft/typespec-msgraph 0.0.1-Preview.13 → 0.0.1-Preview.15
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.map +1 -1
- package/dist/src/components/annotations.js +5 -2
- package/dist/src/components/annotations.js.map +1 -1
- package/dist/src/components/entity-container-element.d.ts.map +1 -1
- package/dist/src/components/entity-container-element.js +9 -6
- package/dist/src/components/entity-container-element.js.map +1 -1
- package/dist/src/components/open-property-type-constraint-annotation-element.d.ts +5 -0
- package/dist/src/components/open-property-type-constraint-annotation-element.d.ts.map +1 -0
- package/dist/src/components/open-property-type-constraint-annotation-element.js +7 -0
- package/dist/src/components/open-property-type-constraint-annotation-element.js.map +1 -0
- package/dist/src/components/operation-element.js +2 -2
- package/dist/src/components/operation-element.js.map +1 -1
- package/dist/src/components/property-element.js +1 -1
- package/dist/src/components/property-element.js.map +1 -1
- package/dist/src/components/reference-target-element.d.ts +9 -0
- package/dist/src/components/reference-target-element.d.ts.map +1 -0
- package/dist/src/components/reference-target-element.js +3 -0
- package/dist/src/components/reference-target-element.js.map +1 -0
- package/dist/src/components/select-supported-annotation.d.ts +5 -0
- package/dist/src/components/select-supported-annotation.d.ts.map +1 -0
- package/dist/src/components/select-supported-annotation.js +6 -0
- package/dist/src/components/select-supported-annotation.js.map +1 -0
- package/dist/src/components/structured-type-element.d.ts.map +1 -1
- package/dist/src/components/structured-type-element.js +3 -1
- package/dist/src/components/structured-type-element.js.map +1 -1
- package/dist/src/components/update-restrictions-annotation.d.ts +2 -1
- package/dist/src/components/update-restrictions-annotation.d.ts.map +1 -1
- package/dist/src/components/update-restrictions-annotation.js +6 -4
- package/dist/src/components/update-restrictions-annotation.js.map +1 -1
- package/dist/src/decorators/address-url-msa.d.ts +12 -0
- package/dist/src/decorators/address-url-msa.d.ts.map +1 -0
- package/dist/src/decorators/address-url-msa.js +19 -0
- package/dist/src/decorators/address-url-msa.js.map +1 -0
- package/dist/src/decorators/address-url.d.ts +16 -0
- package/dist/src/decorators/address-url.d.ts.map +1 -0
- package/dist/src/decorators/address-url.js +19 -0
- package/dist/src/decorators/address-url.js.map +1 -0
- package/dist/src/decorators/function.d.ts +7 -2
- package/dist/src/decorators/function.d.ts.map +1 -1
- package/dist/src/decorators/function.js +2 -2
- package/dist/src/decorators/function.js.map +1 -1
- package/dist/src/decorators/graph-route.d.ts +1 -0
- package/dist/src/decorators/graph-route.d.ts.map +1 -1
- package/dist/src/decorators/graph-route.js +14 -0
- package/dist/src/decorators/graph-route.js.map +1 -1
- package/dist/src/decorators/index.d.ts +6 -0
- package/dist/src/decorators/index.d.ts.map +1 -1
- package/dist/src/decorators/index.js +6 -0
- package/dist/src/decorators/index.js.map +1 -1
- package/dist/src/decorators/passthrough-address-url-msa.d.ts +12 -0
- package/dist/src/decorators/passthrough-address-url-msa.d.ts.map +1 -0
- package/dist/src/decorators/passthrough-address-url-msa.js +19 -0
- package/dist/src/decorators/passthrough-address-url-msa.js.map +1 -0
- package/dist/src/decorators/passthrough-address-url.d.ts +12 -0
- package/dist/src/decorators/passthrough-address-url.d.ts.map +1 -0
- package/dist/src/decorators/passthrough-address-url.js +19 -0
- package/dist/src/decorators/passthrough-address-url.js.map +1 -0
- package/dist/src/decorators/reference-target.d.ts +16 -0
- package/dist/src/decorators/reference-target.d.ts.map +1 -0
- package/dist/src/decorators/reference-target.js +52 -0
- package/dist/src/decorators/reference-target.js.map +1 -0
- package/dist/src/decorators/select.d.ts +9 -0
- package/dist/src/decorators/select.d.ts.map +1 -0
- package/dist/src/decorators/select.js +13 -0
- package/dist/src/decorators/select.js.map +1 -0
- package/dist/src/entities/address-url.d.ts +7 -0
- package/dist/src/entities/address-url.d.ts.map +1 -0
- package/dist/src/entities/address-url.js +42 -0
- package/dist/src/entities/address-url.js.map +1 -0
- package/dist/src/entities/annotations.d.ts +11 -2
- package/dist/src/entities/annotations.d.ts.map +1 -1
- package/dist/src/entities/annotations.js +47 -7
- package/dist/src/entities/annotations.js.map +1 -1
- package/dist/src/entities/entity-container.d.ts +16 -0
- package/dist/src/entities/entity-container.d.ts.map +1 -1
- package/dist/src/entities/entity-container.js +9 -0
- package/dist/src/entities/entity-container.js.map +1 -1
- package/dist/src/entities/model.d.ts +7 -1
- package/dist/src/entities/model.d.ts.map +1 -1
- package/dist/src/entities/model.js +63 -5
- package/dist/src/entities/model.js.map +1 -1
- package/dist/src/entities/ms-graph-route.d.ts +13 -0
- package/dist/src/entities/ms-graph-route.d.ts.map +1 -0
- package/dist/src/entities/ms-graph-route.js +64 -0
- package/dist/src/entities/ms-graph-route.js.map +1 -0
- package/dist/src/entities/namespace.d.ts.map +1 -1
- package/dist/src/entities/namespace.js +27 -7
- package/dist/src/entities/namespace.js.map +1 -1
- package/dist/src/entities/operation.d.ts +1 -0
- package/dist/src/entities/operation.d.ts.map +1 -1
- package/dist/src/entities/operation.js +24 -7
- package/dist/src/entities/operation.js.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/lib.d.ts +25 -1
- package/dist/src/lib.d.ts.map +1 -1
- package/dist/src/lib.js +15 -4
- package/dist/src/lib.js.map +1 -1
- package/dist/src/linter.d.ts +2 -0
- package/dist/src/linter.d.ts.map +1 -0
- package/dist/src/linter.js +15 -0
- package/dist/src/linter.js.map +1 -0
- package/dist/src/rules/address-url.d.ts +18 -0
- package/dist/src/rules/address-url.d.ts.map +1 -0
- package/dist/src/rules/address-url.js +99 -0
- package/dist/src/rules/address-url.js.map +1 -0
- package/dist/src/rules/contains.d.ts +1 -1
- package/dist/src/rules/contains.js +1 -1
- package/dist/src/rules/graph-route.d.ts +6 -0
- package/dist/src/rules/graph-route.d.ts.map +1 -1
- package/dist/src/rules/graph-route.js +83 -3
- package/dist/src/rules/graph-route.js.map +1 -1
- package/dist/src/rules/index.d.ts +4 -0
- package/dist/src/rules/index.d.ts.map +1 -1
- package/dist/src/rules/index.js +4 -0
- package/dist/src/rules/index.js.map +1 -1
- package/dist/src/rules/model.d.ts +4 -0
- package/dist/src/rules/model.d.ts.map +1 -0
- package/dist/src/rules/model.js +36 -0
- package/dist/src/rules/model.js.map +1 -0
- package/dist/src/rules/record-t.d.ts +5 -0
- package/dist/src/rules/record-t.d.ts.map +1 -0
- package/dist/src/rules/record-t.js +78 -0
- package/dist/src/rules/record-t.js.map +1 -0
- package/dist/src/rules/reference-target.d.ts +8 -0
- package/dist/src/rules/reference-target.d.ts.map +1 -0
- package/dist/src/rules/reference-target.js +118 -0
- package/dist/src/rules/reference-target.js.map +1 -0
- package/dist/src/utils.d.ts +19 -1
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/src/utils.js +49 -21
- package/dist/src/utils.js.map +1 -1
- package/dist/src/validate.d.ts.map +1 -1
- package/dist/src/validate.js +15 -2
- package/dist/src/validate.js.map +1 -1
- package/lib/decorators.tsp +131 -23
- package/lib/porcelain.tsp +18 -7
- package/lib/responses.tsp +32 -7
- package/lib/shared-models.tsp +0 -50
- package/package.json +4 -4
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * from "./abstract.js";
|
|
2
2
|
export * from "./action.js";
|
|
3
3
|
export * from "./additional-query-parameters.js";
|
|
4
|
+
export * from "./address-url.js";
|
|
5
|
+
export * from "./address-url-msa.js";
|
|
4
6
|
export * from "./ags-attribute.js";
|
|
5
7
|
export * from "./alternate-key.js";
|
|
6
8
|
export * from "./complex.js";
|
|
@@ -21,6 +23,8 @@ export * from "./open.js";
|
|
|
21
23
|
export * from "./operation-parameters.js";
|
|
22
24
|
export * from "./order-by.js";
|
|
23
25
|
export * from "./paged-collection.js";
|
|
26
|
+
export * from "./passthrough-address-url.js";
|
|
27
|
+
export * from "./passthrough-address-url-msa.js";
|
|
24
28
|
export * from "./private-preview-definition.js";
|
|
25
29
|
export * from "./private-preview.js";
|
|
26
30
|
export * from "./privileged.js";
|
|
@@ -42,4 +46,6 @@ export * from "./experimental.js";
|
|
|
42
46
|
export * from "./graph-deprecated.js";
|
|
43
47
|
export * from "./ownerless.js";
|
|
44
48
|
export * from "./global-operation.js";
|
|
49
|
+
export * from "./reference-target.js";
|
|
50
|
+
export * from "./select.js";
|
|
45
51
|
//# 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,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,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC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AAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DecoratorContext, Program, Interface, Operation } from "@typespec/compiler";
|
|
2
|
+
import { AddressUrlParameter } from "./address-url.js";
|
|
3
|
+
/**
|
|
4
|
+
* `@passthroughAddressUrlMsa` - Specifies the URL to which the operation request is forwarded when the request
|
|
5
|
+
* is authenticated with a Microsoft account and the request is eligible for response passthrough.
|
|
6
|
+
*
|
|
7
|
+
* `@passthroughAddressUrlMsa` can only be applied to routed interfaces (entity sets, singletons and navigation properties) or action operations.
|
|
8
|
+
*/
|
|
9
|
+
export declare function $passthroughAddressUrlMsa(context: DecoratorContext, target: Interface | Operation, url: string, omitRootNavigationSegment?: boolean, appendSegmentNameToAddress?: boolean): void;
|
|
10
|
+
export declare function hasPassthroughAddressUrlMsa(program: Program, target: Interface | Operation): boolean;
|
|
11
|
+
export declare function getPassthroughAddressUrlMsa(program: Program, target: Interface | Operation): AddressUrlParameter | undefined;
|
|
12
|
+
//# sourceMappingURL=passthrough-address-url-msa.d.ts.map
|
|
@@ -0,0 +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,kBAAkB,CAAC;AAIvD;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,GAAG,SAAS,EAC7B,GAAG,EAAE,MAAM,EACX,yBAAyB,GAAE,OAAe,EAC1C,0BAA0B,GAAE,OAAe,QAK5C;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"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const passthroughAddressUrlMsaKey = Symbol("passthroughAddressUrlMsaKey");
|
|
2
|
+
/**
|
|
3
|
+
* `@passthroughAddressUrlMsa` - Specifies the URL to which the operation request is forwarded when the request
|
|
4
|
+
* is authenticated with a Microsoft account and the request is eligible for response passthrough.
|
|
5
|
+
*
|
|
6
|
+
* `@passthroughAddressUrlMsa` can only be applied to routed interfaces (entity sets, singletons and navigation properties) or action operations.
|
|
7
|
+
*/
|
|
8
|
+
export function $passthroughAddressUrlMsa(context, target, url, omitRootNavigationSegment = false, appendSegmentNameToAddress = false) {
|
|
9
|
+
context.program
|
|
10
|
+
.stateMap(passthroughAddressUrlMsaKey)
|
|
11
|
+
.set(target, { url, omitRootNavigationSegment, appendSegmentNameToAddress });
|
|
12
|
+
}
|
|
13
|
+
export function hasPassthroughAddressUrlMsa(program, target) {
|
|
14
|
+
return program.stateMap(passthroughAddressUrlMsaKey).has(target);
|
|
15
|
+
}
|
|
16
|
+
export function getPassthroughAddressUrlMsa(program, target) {
|
|
17
|
+
return program.stateMap(passthroughAddressUrlMsaKey).get(target);
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=passthrough-address-url-msa.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"passthrough-address-url-msa.js","sourceRoot":"","sources":["../../../src/decorators/passthrough-address-url-msa.ts"],"names":[],"mappings":"AAGA,MAAM,2BAA2B,GAAG,MAAM,CAAC,6BAA6B,CAAC,CAAC;AAE1E;;;;;GAKG;AACH,MAAM,UAAU,yBAAyB,CACvC,OAAyB,EACzB,MAA6B,EAC7B,GAAW,EACX,4BAAqC,KAAK,EAC1C,6BAAsC,KAAK;IAE3C,OAAO,CAAC,OAAO;SACZ,QAAQ,CAAC,2BAA2B,CAAC;SACrC,GAAG,CAAC,MAAM,EAAE,EAAE,GAAG,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,CAAC,CAAC;AACjF,CAAC;AAED,MAAM,UAAU,2BAA2B,CACzC,OAAgB,EAChB,MAA6B;IAE7B,OAAO,OAAO,CAAC,QAAQ,CAAC,2BAA2B,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACnE,CAAC;AAED,MAAM,UAAU,2BAA2B,CACzC,OAAgB,EAChB,MAA6B;IAE7B,OAAO,OAAO,CAAC,QAAQ,CAAC,2BAA2B,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACnE,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DecoratorContext, Program, Interface, Operation } from "@typespec/compiler";
|
|
2
|
+
import { AddressUrlParameter } from "./address-url.js";
|
|
3
|
+
/**
|
|
4
|
+
* `@passthroughAddressUrl` - Specifies the URL to which the operation request is forwarded when the request
|
|
5
|
+
* is authenticated with an AAD account and the request is eligible for response passthrough.
|
|
6
|
+
*
|
|
7
|
+
* `@passthroughAddressUrl` can only be applied to routed interfaces (entity sets, singletons and navigation properties) or action operations.
|
|
8
|
+
*/
|
|
9
|
+
export declare function $passthroughAddressUrl(context: DecoratorContext, target: Interface | Operation, url: string, omitRootNavigationSegment?: boolean, appendSegmentNameToAddress?: boolean): void;
|
|
10
|
+
export declare function hasPassthroughAddressUrl(program: Program, target: Interface | Operation): boolean;
|
|
11
|
+
export declare function getPassthroughAddressUrl(program: Program, target: Interface | Operation): AddressUrlParameter | undefined;
|
|
12
|
+
//# sourceMappingURL=passthrough-address-url.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"passthrough-address-url.d.ts","sourceRoot":"","sources":["../../../src/decorators/passthrough-address-url.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;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,GAAG,SAAS,EAC7B,GAAG,EAAE,MAAM,EACX,yBAAyB,GAAE,OAAe,EAC1C,0BAA0B,GAAE,OAAe,QAK5C;AAED,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,SAAS,GAAG,SAAS,GAC5B,OAAO,CAET;AAED,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,SAAS,GAAG,SAAS,GAC5B,mBAAmB,GAAG,SAAS,CAEjC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const passthroughAddressUrlKey = Symbol("passthroughAddressUrlKey");
|
|
2
|
+
/**
|
|
3
|
+
* `@passthroughAddressUrl` - Specifies the URL to which the operation request is forwarded when the request
|
|
4
|
+
* is authenticated with an AAD account and the request is eligible for response passthrough.
|
|
5
|
+
*
|
|
6
|
+
* `@passthroughAddressUrl` can only be applied to routed interfaces (entity sets, singletons and navigation properties) or action operations.
|
|
7
|
+
*/
|
|
8
|
+
export function $passthroughAddressUrl(context, target, url, omitRootNavigationSegment = false, appendSegmentNameToAddress = false) {
|
|
9
|
+
context.program
|
|
10
|
+
.stateMap(passthroughAddressUrlKey)
|
|
11
|
+
.set(target, { url, omitRootNavigationSegment, appendSegmentNameToAddress });
|
|
12
|
+
}
|
|
13
|
+
export function hasPassthroughAddressUrl(program, target) {
|
|
14
|
+
return program.stateMap(passthroughAddressUrlKey).has(target);
|
|
15
|
+
}
|
|
16
|
+
export function getPassthroughAddressUrl(program, target) {
|
|
17
|
+
return program.stateMap(passthroughAddressUrlKey).get(target);
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=passthrough-address-url.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"passthrough-address-url.js","sourceRoot":"","sources":["../../../src/decorators/passthrough-address-url.ts"],"names":[],"mappings":"AAGA,MAAM,wBAAwB,GAAG,MAAM,CAAC,0BAA0B,CAAC,CAAC;AAEpE;;;;;GAKG;AACH,MAAM,UAAU,sBAAsB,CACpC,OAAyB,EACzB,MAA6B,EAC7B,GAAW,EACX,4BAAqC,KAAK,EAC1C,6BAAsC,KAAK;IAE3C,OAAO,CAAC,OAAO;SACZ,QAAQ,CAAC,wBAAwB,CAAC;SAClC,GAAG,CAAC,MAAM,EAAE,EAAE,GAAG,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,CAAC,CAAC;AACjF,CAAC;AAED,MAAM,UAAU,wBAAwB,CACtC,OAAgB,EAChB,MAA6B;IAE7B,OAAO,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAChE,CAAC;AAED,MAAM,UAAU,wBAAwB,CACtC,OAAgB,EAChB,MAA6B;IAE7B,OAAO,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAChE,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DecoratorContext, Interface, Program } from "@typespec/compiler";
|
|
2
|
+
/**
|
|
3
|
+
* @referenceTarget - Allows us to have non-contained navigation properties that reuse data contained in a different location
|
|
4
|
+
*
|
|
5
|
+
* @referenceTarget - Applies to interfaces
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export declare function $referenceTarget(context: DecoratorContext, target: Interface, value: string): void;
|
|
9
|
+
export declare function hasReferenceTarget(program: Program, target: Interface): boolean;
|
|
10
|
+
export declare function getReferenceTarget(program: Program, target: Interface): string;
|
|
11
|
+
export interface NavigationPropertyBinding {
|
|
12
|
+
Path: string;
|
|
13
|
+
Target: string;
|
|
14
|
+
}
|
|
15
|
+
export declare function getNavigationPropertyBindingProperties(program: Program, $interface: Interface, graphRoute: string, collectionName: string): NavigationPropertyBinding | undefined;
|
|
16
|
+
//# sourceMappingURL=reference-target.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reference-target.d.ts","sourceRoot":"","sources":["../../../src/decorators/reference-target.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI1E;;;;;GAKG;AAEH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,QAE3F;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,GAAG,OAAO,CAE/E;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,GAAG,MAAM,CAE9E;AAGD,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,sCAAsC,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,yBAAyB,GAAG,SAAS,CAUjL"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { removeRoutePathParams } from "../utils.js";
|
|
2
|
+
const referenceTargetKey = Symbol("referenceTarget");
|
|
3
|
+
/**
|
|
4
|
+
* @referenceTarget - Allows us to have non-contained navigation properties that reuse data contained in a different location
|
|
5
|
+
*
|
|
6
|
+
* @referenceTarget - Applies to interfaces
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
export function $referenceTarget(context, target, value) {
|
|
10
|
+
context.program.stateMap(referenceTargetKey).set(target, value);
|
|
11
|
+
}
|
|
12
|
+
export function hasReferenceTarget(program, target) {
|
|
13
|
+
return program.stateMap(referenceTargetKey).has(target);
|
|
14
|
+
}
|
|
15
|
+
export function getReferenceTarget(program, target) {
|
|
16
|
+
return program.stateMap(referenceTargetKey).get(target);
|
|
17
|
+
}
|
|
18
|
+
export function getNavigationPropertyBindingProperties(program, $interface, graphRoute, collectionName) {
|
|
19
|
+
const target = getReferenceTarget(program, $interface);
|
|
20
|
+
const path = getReferencePath(graphRoute, target, collectionName);
|
|
21
|
+
if (target && path) {
|
|
22
|
+
return {
|
|
23
|
+
Path: path,
|
|
24
|
+
Target: target
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
function getReferencePath(graphRoute, targetPath, collectionName) {
|
|
30
|
+
const targetPathSegments = targetPath.split('/');
|
|
31
|
+
let currentBestIndex = 0;
|
|
32
|
+
let finalPath = '';
|
|
33
|
+
const graphRouteSegments = removeRoutePathParams(graphRoute).split('/');
|
|
34
|
+
let index = 0;
|
|
35
|
+
while (index < graphRouteSegments.length && index < targetPathSegments.length) {
|
|
36
|
+
if (graphRouteSegments[index] === targetPathSegments[index]) {
|
|
37
|
+
index++;
|
|
38
|
+
continue;
|
|
39
|
+
}
|
|
40
|
+
if (index >= currentBestIndex) {
|
|
41
|
+
currentBestIndex = index;
|
|
42
|
+
finalPath = graphRouteSegments.slice(currentBestIndex).join('/');
|
|
43
|
+
}
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
// Removes the entityset/singleton name
|
|
47
|
+
if (finalPath.startsWith(collectionName + '/')) {
|
|
48
|
+
finalPath = finalPath.slice(collectionName.length + 1);
|
|
49
|
+
}
|
|
50
|
+
return finalPath;
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=reference-target.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reference-target.js","sourceRoot":"","sources":["../../../src/decorators/reference-target.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAEpD,MAAM,kBAAkB,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;AACrD;;;;;GAKG;AAEH,MAAM,UAAU,gBAAgB,CAAC,OAAyB,EAAE,MAAiB,EAAE,KAAa;IAC1F,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAClE,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,OAAgB,EAAE,MAAiB;IACpE,OAAO,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC1D,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,OAAgB,EAAE,MAAiB;IACpE,OAAO,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC1D,CAAC;AAQD,MAAM,UAAU,sCAAsC,CAAC,OAAgB,EAAE,UAAqB,EAAE,UAAkB,EAAE,cAAsB;IACxI,MAAM,MAAM,GAAG,kBAAkB,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;IACvD,MAAM,IAAI,GAAG,gBAAgB,CAAC,UAAU,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC;IAClE,IAAG,MAAM,IAAI,IAAI,EAAC;QAChB,OAAO;YACL,IAAI,EAAE,IAAI;YACV,MAAM,EAAE,MAAM;SACf,CAAA;KACF;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,SAAS,gBAAgB,CAAC,UAAkB,EAAE,UAAkB,EAAE,cAAsB;IACtF,MAAM,kBAAkB,GAAG,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACjD,IAAI,gBAAgB,GAAG,CAAC,CAAC;IACzB,IAAI,SAAS,GAAG,EAAE,CAAC;IACnB,MAAM,kBAAkB,GAAG,qBAAqB,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACxE,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,OAAM,KAAK,GAAG,kBAAkB,CAAC,MAAM,IAAI,KAAK,GAAG,kBAAkB,CAAC,MAAM,EAAC;QAC3E,IAAG,kBAAkB,CAAC,KAAK,CAAC,KAAK,kBAAkB,CAAC,KAAK,CAAC,EAAC;YACzD,KAAK,EAAE,CAAC;YACR,SAAQ;SACT;QACD,IAAG,KAAK,IAAI,gBAAgB,EAAC;YAC3B,gBAAgB,GAAG,KAAK,CAAC;YACzB,SAAS,GAAG,kBAAkB,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SAClE;QACD,MAAM;KACP;IAED,uCAAuC;IACvC,IAAG,SAAS,CAAC,UAAU,CAAC,cAAc,GAAC,GAAG,CAAC,EAAC;QAC1C,SAAS,GAAG,SAAS,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA;KACvD;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DecoratorContext, Operation, Program } from "@typespec/compiler";
|
|
2
|
+
/**
|
|
3
|
+
* `@select` - mark an operation as supporting the $select query parameter
|
|
4
|
+
*
|
|
5
|
+
* `@select` can only be applied to operations.
|
|
6
|
+
*/
|
|
7
|
+
export declare function $select(context: DecoratorContext, operation: Operation): void;
|
|
8
|
+
export declare function isSelect(program: Program, operation: Operation): boolean;
|
|
9
|
+
//# sourceMappingURL=select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/decorators/select.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI1E;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,QAEtE;AAED,wBAAgB,QAAQ,CAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,WAE9D"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const selectKey = Symbol("select");
|
|
2
|
+
/**
|
|
3
|
+
* `@select` - mark an operation as supporting the $select query parameter
|
|
4
|
+
*
|
|
5
|
+
* `@select` can only be applied to operations.
|
|
6
|
+
*/
|
|
7
|
+
export function $select(context, operation) {
|
|
8
|
+
context.program.stateSet(selectKey).add(operation);
|
|
9
|
+
}
|
|
10
|
+
export function isSelect(program, operation) {
|
|
11
|
+
return program.stateSet(selectKey).has(operation);
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=select.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.js","sourceRoot":"","sources":["../../../src/decorators/select.ts"],"names":[],"mappings":"AAEA,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;AAEnC;;;;GAIG;AACH,MAAM,UAAU,OAAO,CAAC,OAAyB,EAAE,SAAoB;IACrE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;AACrD,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,OAAgB,EAAE,SAAoB;IAC7D,OAAO,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;AACpD,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Program, Interface } from "@typespec/compiler";
|
|
2
|
+
export type MsGraphAddressUrl = Record<string, string | boolean>;
|
|
3
|
+
export declare function getMsGraphAddressUrl(program: Program, target: Interface): MsGraphAddressUrl | undefined;
|
|
4
|
+
export declare function getMsGraphAddressUrlMsa(program: Program, target: Interface): MsGraphAddressUrl | undefined;
|
|
5
|
+
export declare function getMsGraphPassthroughAddressUrl(program: Program, target: Interface): MsGraphAddressUrl | undefined;
|
|
6
|
+
export declare function getMsGraphPassthroughAddressUrlMsa(program: Program, target: Interface): MsGraphAddressUrl | undefined;
|
|
7
|
+
//# sourceMappingURL=address-url.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"address-url.d.ts","sourceRoot":"","sources":["../../../src/entities/address-url.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAexD,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC;AAEjE,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,SAAS,GAChB,iBAAiB,GAAG,SAAS,CAM/B;AAED,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,SAAS,GAChB,iBAAiB,GAAG,SAAS,CAM/B;AAED,wBAAgB,+BAA+B,CAC7C,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,SAAS,GAChB,iBAAiB,GAAG,SAAS,CAM/B;AAED,wBAAgB,kCAAkC,CAChD,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,SAAS,GAChB,iBAAiB,GAAG,SAAS,CAM/B"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getAddressUrl, getAddressUrlMsa, getPassthroughAddressUrl, hasAddressUrl, hasAddressUrlMsa, hasPassthroughAddressUrl, } from "../index.js";
|
|
2
|
+
import { getPassthroughAddressUrlMsa, hasPassthroughAddressUrlMsa, } from "../decorators/passthrough-address-url-msa.js";
|
|
3
|
+
export function getMsGraphAddressUrl(program, target) {
|
|
4
|
+
if (hasAddressUrl(program, target)) {
|
|
5
|
+
const addressUrl = getAddressUrl(program, target);
|
|
6
|
+
return populateMsGraphAddressUrl("ags:AddressUrl", addressUrl);
|
|
7
|
+
}
|
|
8
|
+
return undefined;
|
|
9
|
+
}
|
|
10
|
+
export function getMsGraphAddressUrlMsa(program, target) {
|
|
11
|
+
if (hasAddressUrlMsa(program, target)) {
|
|
12
|
+
const addressUrlMsa = getAddressUrlMsa(program, target);
|
|
13
|
+
return populateMsGraphAddressUrl("ags:AddressUrlMSA", addressUrlMsa);
|
|
14
|
+
}
|
|
15
|
+
return undefined;
|
|
16
|
+
}
|
|
17
|
+
export function getMsGraphPassthroughAddressUrl(program, target) {
|
|
18
|
+
if (hasPassthroughAddressUrl(program, target)) {
|
|
19
|
+
const passthroughAddressUrl = getPassthroughAddressUrl(program, target);
|
|
20
|
+
return populateMsGraphAddressUrl("ags:PassthroughAddressUrl", passthroughAddressUrl);
|
|
21
|
+
}
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
export function getMsGraphPassthroughAddressUrlMsa(program, target) {
|
|
25
|
+
if (hasPassthroughAddressUrlMsa(program, target)) {
|
|
26
|
+
const passthroughAddressUrlMsa = getPassthroughAddressUrlMsa(program, target);
|
|
27
|
+
return populateMsGraphAddressUrl("ags:PassthroughAddressUrlMSA", passthroughAddressUrlMsa);
|
|
28
|
+
}
|
|
29
|
+
return undefined;
|
|
30
|
+
}
|
|
31
|
+
function populateMsGraphAddressUrl(addressUrlVariant, addressUrl) {
|
|
32
|
+
const msGraphAddressUrl = {};
|
|
33
|
+
msGraphAddressUrl[addressUrlVariant] = addressUrl.url;
|
|
34
|
+
if (addressUrl.omitRootNavigationSegment) {
|
|
35
|
+
msGraphAddressUrl["ags:AddressContainsEntitySetSegment"] = true;
|
|
36
|
+
}
|
|
37
|
+
if (addressUrl.appendSegmentNameToAddress) {
|
|
38
|
+
msGraphAddressUrl["ags:AppendSegmentNameToAddress"] = true;
|
|
39
|
+
}
|
|
40
|
+
return msGraphAddressUrl;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=address-url.js.map
|
|
@@ -0,0 +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,aAAa,CAAC;AACrB,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,GAC5B,MAAM,8CAA8C,CAAC;AAItD,MAAM,UAAU,oBAAoB,CAClC,OAAgB,EAChB,MAAiB;IAEjB,IAAI,aAAa,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE;QAClC,MAAM,UAAU,GAAG,aAAa,CAAC,OAAO,EAAE,MAAM,CAAE,CAAC;QACnD,OAAO,yBAAyB,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAC;KAChE;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,MAAM,UAAU,uBAAuB,CACrC,OAAgB,EAChB,MAAiB;IAEjB,IAAI,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE;QACrC,MAAM,aAAa,GAAG,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAE,CAAC;QACzD,OAAO,yBAAyB,CAAC,mBAAmB,EAAE,aAAa,CAAC,CAAC;KACtE;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,MAAM,UAAU,+BAA+B,CAC7C,OAAgB,EAChB,MAAiB;IAEjB,IAAI,wBAAwB,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE;QAC7C,MAAM,qBAAqB,GAAG,wBAAwB,CAAC,OAAO,EAAE,MAAM,CAAE,CAAC;QACzE,OAAO,yBAAyB,CAAC,2BAA2B,EAAE,qBAAqB,CAAC,CAAC;KACtF;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,MAAM,UAAU,kCAAkC,CAChD,OAAgB,EAChB,MAAiB;IAEjB,IAAI,2BAA2B,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE;QAChD,MAAM,wBAAwB,GAAG,2BAA2B,CAAC,OAAO,EAAE,MAAM,CAAE,CAAC;QAC/E,OAAO,yBAAyB,CAAC,8BAA8B,EAAE,wBAAwB,CAAC,CAAC;KAC5F;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,SAAS,yBAAyB,CAChC,iBAIkC,EAClC,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;QACxC,iBAAiB,CAAC,qCAAqC,CAAC,GAAG,IAAI,CAAC;KACjE;IACD,IAAI,UAAU,CAAC,0BAA0B,EAAE;QACzC,iBAAiB,CAAC,gCAAgC,CAAC,GAAG,IAAI,CAAC;KAC5D;IACD,OAAO,iBAAiB,CAAC;AAC3B,CAAC"}
|
|
@@ -1,16 +1,24 @@
|
|
|
1
1
|
import { Program } from "@typespec/compiler";
|
|
2
2
|
import { MsGraphInterface } from "../utils.js";
|
|
3
3
|
import { AllowedValues, MsGraphModel } from "./model.js";
|
|
4
|
+
export interface UpdateOperations {
|
|
5
|
+
HasPutOrPatch: {
|
|
6
|
+
HasPut: boolean;
|
|
7
|
+
HasPatch: boolean;
|
|
8
|
+
};
|
|
9
|
+
HasPutAndPatch: boolean;
|
|
10
|
+
}
|
|
4
11
|
export interface ResourceAnnotations {
|
|
5
12
|
Target: string | undefined;
|
|
6
13
|
HasGetOnResource: boolean;
|
|
7
|
-
|
|
14
|
+
UpdateOperations: UpdateOperations;
|
|
8
15
|
HasDeleteOnResource: boolean;
|
|
9
16
|
HasExpandOnCollectionOrResource: boolean;
|
|
10
17
|
NonExpandableProperties: string[] | undefined;
|
|
11
18
|
Description: string | undefined;
|
|
12
19
|
HasContainsOrReferences: boolean;
|
|
13
20
|
ExplicitBindingOperationNames: string[];
|
|
21
|
+
IsSelectable: boolean;
|
|
14
22
|
}
|
|
15
23
|
export interface CollectionAnnotations {
|
|
16
24
|
Target: string | undefined;
|
|
@@ -18,7 +26,7 @@ export interface CollectionAnnotations {
|
|
|
18
26
|
HasGetOnResource: boolean;
|
|
19
27
|
HasPostOnCollection: boolean;
|
|
20
28
|
RequiredProperties: string[] | undefined;
|
|
21
|
-
|
|
29
|
+
UpdateOperations: UpdateOperations;
|
|
22
30
|
HasDeleteOnResource: boolean;
|
|
23
31
|
HasCountOnCollection: boolean;
|
|
24
32
|
HasExpandOnCollectionOrResource: boolean;
|
|
@@ -33,6 +41,7 @@ export interface CollectionAnnotations {
|
|
|
33
41
|
Description: string | undefined;
|
|
34
42
|
HasContainsOrReferences: boolean;
|
|
35
43
|
ExplicitBindingOperationNames: string[];
|
|
44
|
+
IsSelectable: boolean;
|
|
36
45
|
}
|
|
37
46
|
export interface AllowedValuesAnnotations {
|
|
38
47
|
Target: string;
|
|
@@ -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,
|
|
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;AAGjF,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAEzD,MAAM,WAAW,gBAAgB;IAC/B,aAAa,EAAE;QACb,MAAM,EAAE,OAAO,CA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O,CAAC;IACjC,6BAA6B,EAAE,MAAM,EAAE,CAAC;IACxC,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,aAAa,CAAC;CAC9B;AAQD,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAQlK;AAqFD,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,CAAC,CAQ5J;AAkID,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,7 +1,12 @@
|
|
|
1
1
|
import { getDoc, walkPropertiesInherited } from "@typespec/compiler";
|
|
2
2
|
import { getInterfaceNavigationSourceType } from "../utils.js";
|
|
3
3
|
import { getOperationVerb } from "@typespec/http";
|
|
4
|
-
import { getExpand, getFilter, getOrderBy, isContains, isCount, isExpand, isFilter, isOrderBy, isReferences, isRequiredForCreate, isSearch, isSkip, isTop, resolveOperationParametersForGraphRoute } from "../index.js";
|
|
4
|
+
import { getAction, getExpand, getFilter, getFunction, getOrderBy, isAction, isContains, isCount, isExpand, isFilter, isFunction, isOrderBy, isReferences, isRequiredForCreate, isSearch, isSelect, isSkip, isTop, resolveOperationParametersForGraphRoute } from "../index.js";
|
|
5
|
+
var Entities;
|
|
6
|
+
(function (Entities) {
|
|
7
|
+
Entities["Resource"] = "Resource";
|
|
8
|
+
Entities["Collection"] = "Collection";
|
|
9
|
+
})(Entities || (Entities = {}));
|
|
5
10
|
export function GetResourceAnnotations(program, namespaceName, navigationSources) {
|
|
6
11
|
const annotations = new Map();
|
|
7
12
|
navigationSources.forEach((entity, routePath) => {
|
|
@@ -9,6 +14,31 @@ export function GetResourceAnnotations(program, namespaceName, navigationSources
|
|
|
9
14
|
});
|
|
10
15
|
return annotations;
|
|
11
16
|
}
|
|
17
|
+
function getUpdateOperations(operationMethods, entity) {
|
|
18
|
+
return {
|
|
19
|
+
HasPutAndPatch: hasPutAndPatch(operationMethods, entity),
|
|
20
|
+
HasPutOrPatch: getPutOrPatch(operationMethods, entity)
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function hasPutAndPatch(operationMethods, entity) {
|
|
24
|
+
const updateOperations = ["put", "patch"];
|
|
25
|
+
if (entity === Entities.Resource) {
|
|
26
|
+
return updateOperations.every(updateOperation => operationMethods.some(operationMethod => operationMethod.verb === updateOperation));
|
|
27
|
+
}
|
|
28
|
+
return updateOperations.every(updateOperation => operationMethods.some(operationMethod => !operationMethod.hasMinimumParameters && operationMethod.verb === updateOperation));
|
|
29
|
+
}
|
|
30
|
+
function getPutOrPatch(operationMethods, entity) {
|
|
31
|
+
if (entity === Entities.Resource) {
|
|
32
|
+
return {
|
|
33
|
+
HasPut: operationMethods.some(operationMethod => operationMethod.verb === "put"),
|
|
34
|
+
HasPatch: operationMethods.some(operationMethod => operationMethod.verb === "patch"),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
HasPut: operationMethods.some(operationMethod => !operationMethod.hasMinimumParameters && operationMethod.verb === "put"),
|
|
39
|
+
HasPatch: operationMethods.some(operationMethod => !operationMethod.hasMinimumParameters && operationMethod.verb === "patch"),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
12
42
|
function getResourceAnnotations(program, namespaceName, routePath, entity) {
|
|
13
43
|
const resource = entity.theInterface;
|
|
14
44
|
const type = getInterfaceNavigationSourceType(program, resource);
|
|
@@ -21,24 +51,32 @@ function getResourceAnnotations(program, namespaceName, routePath, entity) {
|
|
|
21
51
|
}));
|
|
22
52
|
const [hasExpandOnCollectionOrResource, nonExpandableProperties] = getExpandProperties(program, type, operationMethods);
|
|
23
53
|
const explicitBindingOperationNames = getExplicitBindingOperationNames(program, entity);
|
|
54
|
+
const isSelectable = operationMethods.some(({ operation }) => isSelect(program, operation));
|
|
24
55
|
const annotations = {
|
|
25
56
|
Target: `${namespaceName}.container/${routePath}`,
|
|
26
57
|
HasGetOnResource: operationMethods.some(({ verb }) => verb === "get"),
|
|
27
|
-
|
|
58
|
+
UpdateOperations: getUpdateOperations(operationMethods, Entities.Resource),
|
|
28
59
|
HasDeleteOnResource: operationMethods.some(({ verb }) => verb === "delete"),
|
|
29
60
|
HasExpandOnCollectionOrResource: hasExpandOnCollectionOrResource,
|
|
30
61
|
NonExpandableProperties: nonExpandableProperties,
|
|
31
62
|
Description: getDoc(program, resource),
|
|
32
63
|
HasContainsOrReferences: hasContainsOrReferences,
|
|
33
64
|
ExplicitBindingOperationNames: explicitBindingOperationNames,
|
|
65
|
+
IsSelectable: isSelectable,
|
|
34
66
|
};
|
|
35
67
|
return annotations;
|
|
36
68
|
}
|
|
37
69
|
function getExplicitBindingOperationNames(program, entity) {
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
70
|
+
const actionAndFunctionOperations = Object.values(entity.operations).
|
|
71
|
+
filter(({ theOperation }) => isAction(program, theOperation) || isFunction(program, theOperation));
|
|
72
|
+
return actionAndFunctionOperations.
|
|
73
|
+
map(({ theOperation }) => {
|
|
74
|
+
var _a;
|
|
75
|
+
if (isAction(program, theOperation)) {
|
|
76
|
+
return getAction(program, theOperation) || '';
|
|
77
|
+
}
|
|
78
|
+
return ((_a = getFunction(program, theOperation)) === null || _a === void 0 ? void 0 : _a.name) || '';
|
|
79
|
+
}).
|
|
42
80
|
map(value => 'microsoft.graph.' + value);
|
|
43
81
|
}
|
|
44
82
|
export function GetCollectionAnnotations(program, namespaceName, sources) {
|
|
@@ -62,13 +100,14 @@ function getCollectionAnnotations(program, namespaceName, routePath, entity) {
|
|
|
62
100
|
const [hasExpandOnCollectionOrResource, nonExpandableProperties] = getExpandProperties(program, type, operationMethods);
|
|
63
101
|
const [hasSortOnCollection, nonSortableProperties] = getSortProperties(program, type, operationMethods);
|
|
64
102
|
const explicitBindingOperationNames = getExplicitBindingOperationNames(program, entity);
|
|
103
|
+
const isSelectable = operationMethods.some(({ operation }) => isSelect(program, operation));
|
|
65
104
|
const annotations = {
|
|
66
105
|
Target: `${namespaceName}.container/${routePath}`,
|
|
67
106
|
HasGetOnCollection: operationMethods.some(m => m.hasMinimumParameters && m.verb === "get"),
|
|
68
107
|
HasGetOnResource: operationMethods.some(m => !m.hasMinimumParameters && m.verb === "get"),
|
|
69
108
|
HasPostOnCollection: operationMethods.some(m => m.verb === "post"),
|
|
70
109
|
RequiredProperties: getRequiredForCreateProperties(program, type),
|
|
71
|
-
|
|
110
|
+
UpdateOperations: getUpdateOperations(operationMethods, Entities.Collection),
|
|
72
111
|
HasDeleteOnResource: operationMethods.some(m => !m.hasMinimumParameters && m.verb === "delete"),
|
|
73
112
|
HasCountOnCollection: operationMethods.some(m => isCount(program, m.operation)),
|
|
74
113
|
HasSearchOnCollection: operationMethods.some(m => isSearch(program, m.operation)),
|
|
@@ -83,6 +122,7 @@ function getCollectionAnnotations(program, namespaceName, routePath, entity) {
|
|
|
83
122
|
Description: getDoc(program, collection),
|
|
84
123
|
HasContainsOrReferences: hasContainsOrReferences,
|
|
85
124
|
ExplicitBindingOperationNames: explicitBindingOperationNames,
|
|
125
|
+
IsSelectable: isSelectable,
|
|
86
126
|
};
|
|
87
127
|
return annotations;
|
|
88
128
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotations.js","sourceRoot":"","sources":["../../../src/entities/annotations.ts"],"names":[],"mappings":"AAAA,OAA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AAE;wBACzD,aAAa,EAAE,QAAQ,CAAC,aAAa;qBACtC,CAAC,CAAA;iBACH;YACH,CAAC,CAAC,CAAA;SACH;KACF;IAAA,CAAC;IACF,OAAO,WAAW,CAAC;AACrB,CAAC"}
|
|
@@ -1,15 +1,31 @@
|
|
|
1
1
|
import { Program } from "@typespec/compiler";
|
|
2
2
|
import { MsGraphInterface } from "../utils.js";
|
|
3
|
+
import { MsGraphAddressUrl } from "./address-url.js";
|
|
4
|
+
interface NavigationPropertyBinding {
|
|
5
|
+
Path: string;
|
|
6
|
+
Target: string;
|
|
7
|
+
}
|
|
3
8
|
export interface Singleton {
|
|
4
9
|
Name: string | undefined;
|
|
5
10
|
TypeName: string;
|
|
6
11
|
AgsAttributes: Record<string, string>;
|
|
12
|
+
NavigationPropertyBindingProperties?: NavigationPropertyBinding;
|
|
13
|
+
AddressUrl: MsGraphAddressUrl | undefined;
|
|
14
|
+
AddressUrlMsa: MsGraphAddressUrl | undefined;
|
|
15
|
+
PassThroughAddressUrl: MsGraphAddressUrl | undefined;
|
|
16
|
+
PassThroughAddressUrlMsa: MsGraphAddressUrl | undefined;
|
|
7
17
|
}
|
|
8
18
|
export interface EntitySet {
|
|
9
19
|
Name: string | undefined;
|
|
10
20
|
TypeName: string;
|
|
11
21
|
AgsAttributes: Record<string, string | boolean | undefined>;
|
|
22
|
+
NavigationPropertyBindingProperties?: NavigationPropertyBinding;
|
|
23
|
+
AddressUrl: MsGraphAddressUrl | undefined;
|
|
24
|
+
AddressUrlMsa: MsGraphAddressUrl | undefined;
|
|
25
|
+
PassThroughAddressUrl: MsGraphAddressUrl | undefined;
|
|
26
|
+
PassThroughAddressUrlMsa: MsGraphAddressUrl | undefined;
|
|
12
27
|
}
|
|
13
28
|
export declare function GetSingletons(program: Program, sources: Map<string, MsGraphInterface>): Map<string, Singleton>;
|
|
14
29
|
export declare function GetEntitySets(program: Program, sources: Map<string, MsGraphInterface>): Map<string, EntitySet>;
|
|
30
|
+
export {};
|
|
15
31
|
//# sourceMappingURL=entity-container.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-container.d.ts","sourceRoot":"","sources":["../../../src/entities/entity-container.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACR,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAGL,gBAAgB,EAEjB,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"entity-container.d.ts","sourceRoot":"","sources":["../../../src/entities/entity-container.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACR,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAGL,gBAAgB,EAEjB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,iBAAiB,EAAsH,MAAM,kBAAkB,CAAC;AAEzK,UAAU,yBAAyB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AACD,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,mCAAmC,CAAC,EAAE,yBAAyB,CAAC;IAChE,UAAU,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAC1C,aAAa,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAC7C,qBAAqB,EAAE,iBAAiB,GAAG,SAAS,CAAC;IACrD,wBAAwB,EAAE,iBAAiB,GAAG,SAAS,CAAC;CACzD;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC,CAAC;IAC5D,mCAAmC,CAAC,EAAE,yBAAyB,CAAC;IAChE,UAAU,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAC1C,aAAa,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAC7C,qBAAqB,EAAE,iBAAiB,GAAG,SAAS,CAAC;IACrD,wBAAwB,EAAE,iBAAiB,GAAG,SAAS,CAAC;CACzD;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,CAQ9G;AAsBD,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,CAQ9G"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { buildAttributes } from "../decorators/ags-attribute.js";
|
|
2
2
|
import { getPropertyTypeName, getInterfaceNavigationSourceType, } from "../utils.js";
|
|
3
|
+
import { getMsGraphAddressUrl, getMsGraphAddressUrlMsa, getMsGraphPassthroughAddressUrl, getMsGraphPassthroughAddressUrlMsa } from "./address-url.js";
|
|
3
4
|
export function GetSingletons(program, sources) {
|
|
4
5
|
const singletons = new Map();
|
|
5
6
|
sources.forEach((entity, routePath) => {
|
|
@@ -15,6 +16,10 @@ function getSingleton(program, routePath, entity) {
|
|
|
15
16
|
Name: routePath,
|
|
16
17
|
TypeName: getPropertyTypeName(program, type),
|
|
17
18
|
AgsAttributes: agsAttributes,
|
|
19
|
+
AddressUrl: getMsGraphAddressUrl(program, singleton),
|
|
20
|
+
AddressUrlMsa: getMsGraphAddressUrlMsa(program, singleton),
|
|
21
|
+
PassThroughAddressUrl: getMsGraphPassthroughAddressUrl(program, singleton),
|
|
22
|
+
PassThroughAddressUrlMsa: getMsGraphPassthroughAddressUrlMsa(program, singleton),
|
|
18
23
|
};
|
|
19
24
|
return entry;
|
|
20
25
|
}
|
|
@@ -33,6 +38,10 @@ function getEntitySet(program, routePath, entity) {
|
|
|
33
38
|
Name: routePath,
|
|
34
39
|
TypeName: getPropertyTypeName(program, type),
|
|
35
40
|
AgsAttributes: agsAttributes,
|
|
41
|
+
AddressUrl: getMsGraphAddressUrl(program, entitySet),
|
|
42
|
+
AddressUrlMsa: getMsGraphAddressUrlMsa(program, entitySet),
|
|
43
|
+
PassThroughAddressUrl: getMsGraphPassthroughAddressUrl(program, entitySet),
|
|
44
|
+
PassThroughAddressUrlMsa: getMsGraphPassthroughAddressUrlMsa(program, entitySet),
|
|
36
45
|
};
|
|
37
46
|
return entry;
|
|
38
47
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-container.js","sourceRoot":"","sources":["../../../src/entities/entity-container.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EACL,mBAAmB,EACnB,gCAAgC,GAGjC,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"entity-container.js","sourceRoot":"","sources":["../../../src/entities/entity-container.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EACL,mBAAmB,EACnB,gCAAgC,GAGjC,MAAM,aAAa,CAAC;AACrB,OAAO,EAAqB,oBAAoB,EAAE,uBAAuB,EAAE,+BAA+B,EAAE,kCAAkC,EAAE,MAAM,kBAAkB,CAAC;AA4BzK,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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,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;QAC5B,UAAU,EAAE,oBAAoB,CAAC,OAAO,EAAE,SAAS,CAAC;QACpD,aAAa,EAAE,uBAAuB,CAAC,OAAO,EAAE,SAAS,CAAC;QAC1D,qBAAqB,EAAE,+BAA+B,CAAC,OAAO,EAAE,SAAS,CAAC;QAC1E,wBAAwB,EAAE,kCAAkC,CAAC,OAAO,EAAE,SAAS,CAAC;KACjF,CAAC;IAEF,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,yBAAyB,CAChC,OAAgB,EAChB,UAA8B;IAE9B,OAAO,UAAU;SACd,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,YAAY,CAAC;SAC1C,MAAM,CAAC,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,eAAe,CAAC,OAAO,EAAE,SAAS,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;AAC5F,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Model, ModelProperty, Program } from "@typespec/compiler";
|
|
2
2
|
import { RevisionDefinition } from "./revision-definition.js";
|
|
3
|
+
import { MsGraphAddressUrl } from "./address-url.js";
|
|
3
4
|
export interface MsGraphModel {
|
|
4
5
|
Kind: MsGraphModelKind;
|
|
5
6
|
Name: string;
|
|
@@ -14,7 +15,8 @@ export interface MsGraphModel {
|
|
|
14
15
|
KeyProperty: [string, ModelProperty] | undefined;
|
|
15
16
|
AlternateKeys: AlternateKeyProperty[];
|
|
16
17
|
StreamTypes: string[];
|
|
17
|
-
|
|
18
|
+
IsPartial: boolean;
|
|
19
|
+
RecordType?: string;
|
|
18
20
|
}
|
|
19
21
|
export declare enum MsGraphModelKind {
|
|
20
22
|
Unknown = 0,
|
|
@@ -39,6 +41,10 @@ export interface MsGraphModelProperty {
|
|
|
39
41
|
isImmutable: boolean;
|
|
40
42
|
allowedValues: AllowedValues;
|
|
41
43
|
IsCollection: boolean;
|
|
44
|
+
AddressUrl: MsGraphAddressUrl | undefined;
|
|
45
|
+
AddressUrlMsa: MsGraphAddressUrl | undefined;
|
|
46
|
+
PassthroughAddressUrl: MsGraphAddressUrl | undefined;
|
|
47
|
+
PassthroughAddressUrlMsa: MsGraphAddressUrl | undefined;
|
|
42
48
|
}
|
|
43
49
|
export interface AlternateKeyProperty {
|
|
44
50
|
IsModel: boolean;
|