@microsoft/typespec-msgraph 0.0.1-Preview.14 → 0.0.1-Preview.16
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 +2 -2
- package/dist/src/components/annotations.js.map +1 -1
- package/dist/src/components/entity-container-element.js +2 -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/structured-type-element.d.ts.map +1 -1
- package/dist/src/components/structured-type-element.js +7 -5
- 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.map +1 -1
- 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 +17 -0
- package/dist/src/decorators/graph-route.js.map +1 -1
- package/dist/src/decorators/index.d.ts +13 -10
- package/dist/src/decorators/index.d.ts.map +1 -1
- package/dist/src/decorators/index.js +13 -10
- package/dist/src/decorators/index.js.map +1 -1
- package/dist/src/decorators/media.d.ts +10 -0
- package/dist/src/decorators/media.d.ts.map +1 -0
- package/dist/src/decorators/media.js +16 -0
- package/dist/src/decorators/media.js.map +1 -0
- package/dist/src/decorators/passthrough-address-url-msa.d.ts +11 -0
- package/dist/src/decorators/passthrough-address-url-msa.d.ts.map +1 -0
- package/dist/src/decorators/passthrough-address-url-msa.js +17 -0
- package/dist/src/decorators/passthrough-address-url-msa.js.map +1 -0
- package/dist/src/decorators/passthrough-address-url.d.ts +11 -0
- package/dist/src/decorators/passthrough-address-url.d.ts.map +1 -0
- package/dist/src/decorators/passthrough-address-url.js +17 -0
- package/dist/src/decorators/passthrough-address-url.js.map +1 -0
- package/dist/src/dom/error-interceptor.d.ts +2 -0
- package/dist/src/dom/error-interceptor.d.ts.map +1 -0
- package/dist/src/dom/error-interceptor.js +13 -0
- package/dist/src/dom/error-interceptor.js.map +1 -0
- package/dist/src/dom/renderer.d.ts +1 -0
- package/dist/src/dom/renderer.d.ts.map +1 -1
- package/dist/src/dom/renderer.js +1 -0
- package/dist/src/dom/renderer.js.map +1 -1
- package/dist/src/entities/address-url.d.ts +4 -0
- package/dist/src/entities/address-url.d.ts.map +1 -1
- package/dist/src/entities/address-url.js +40 -11
- package/dist/src/entities/address-url.js.map +1 -1
- package/dist/src/entities/annotations.d.ts +9 -2
- package/dist/src/entities/annotations.d.ts.map +1 -1
- package/dist/src/entities/annotations.js +34 -3
- package/dist/src/entities/annotations.js.map +1 -1
- package/dist/src/entities/entity-container.d.ts +6 -0
- package/dist/src/entities/entity-container.d.ts.map +1 -1
- package/dist/src/entities/entity-container.js +7 -1
- package/dist/src/entities/entity-container.js.map +1 -1
- package/dist/src/entities/model.d.ts +8 -4
- package/dist/src/entities/model.d.ts.map +1 -1
- package/dist/src/entities/model.js +54 -8
- package/dist/src/entities/model.js.map +1 -1
- package/dist/src/entities/ms-graph-route.d.ts.map +1 -1
- package/dist/src/entities/ms-graph-route.js +15 -15
- package/dist/src/entities/ms-graph-route.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 +11 -5
- 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 +17 -3
- package/dist/src/lib.d.ts.map +1 -1
- package/dist/src/lib.js +11 -5
- 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 +17 -0
- package/dist/src/linter.js.map +1 -0
- package/dist/src/rules/address-url.d.ts +13 -0
- package/dist/src/rules/address-url.d.ts.map +1 -1
- package/dist/src/rules/address-url.js +128 -7
- package/dist/src/rules/address-url.js.map +1 -1
- package/dist/src/rules/contains.d.ts +1 -1
- package/dist/src/rules/contains.js +1 -1
- package/dist/src/rules/expand.d.ts.map +1 -1
- package/dist/src/rules/expand.js +3 -1
- package/dist/src/rules/expand.js.map +1 -1
- package/dist/src/rules/graph-route.d.ts +2 -0
- package/dist/src/rules/graph-route.d.ts.map +1 -1
- package/dist/src/rules/graph-route.js +65 -1
- package/dist/src/rules/graph-route.js.map +1 -1
- package/dist/src/rules/index.d.ts +3 -1
- package/dist/src/rules/index.d.ts.map +1 -1
- package/dist/src/rules/index.js +3 -1
- package/dist/src/rules/index.js.map +1 -1
- package/dist/src/rules/media.d.ts +10 -0
- package/dist/src/rules/media.d.ts.map +1 -0
- package/dist/src/rules/media.js +122 -0
- package/dist/src/rules/media.js.map +1 -0
- 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 +1 -1
- package/dist/src/rules/reference-target.d.ts.map +1 -1
- package/dist/src/rules/reference-target.js +11 -12
- package/dist/src/rules/reference-target.js.map +1 -1
- package/dist/src/utils.d.ts +3 -0
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/src/utils.js +24 -5
- package/dist/src/utils.js.map +1 -1
- package/dist/src/validate.d.ts.map +1 -1
- package/dist/src/validate.js +12 -3
- package/dist/src/validate.js.map +1 -1
- package/lib/bodies.tsp +71 -0
- package/lib/decorators.tsp +39 -4
- package/lib/msgraph.tsp +1 -0
- package/lib/porcelain.tsp +43 -18
- package/lib/responses.tsp +4 -52
- package/lib/shared-models.tsp +2 -2
- package/package.json +4 -4
- package/dist/src/decorators/has-stream.d.ts +0 -10
- package/dist/src/decorators/has-stream.d.ts.map +0 -1
- package/dist/src/decorators/has-stream.js +0 -17
- package/dist/src/decorators/has-stream.js.map +0 -1
- package/dist/src/rules/has-stream.d.ts +0 -3
- package/dist/src/rules/has-stream.d.ts.map +0 -1
- package/dist/src/rules/has-stream.js +0 -30
- package/dist/src/rules/has-stream.js.map +0 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const mediaKey = Symbol("media");
|
|
2
|
+
/**
|
|
3
|
+
* `@media` - indicates that an `@entity` model is a media entity.
|
|
4
|
+
*
|
|
5
|
+
* `mediaTypes` - list of media types supported by the entity. If not specified, the entity supports any media type.
|
|
6
|
+
*/
|
|
7
|
+
export function $media(context, target, ...mediaTypes) {
|
|
8
|
+
context.program.stateMap(mediaKey).set(target, mediaTypes);
|
|
9
|
+
}
|
|
10
|
+
export function isMedia(program, target) {
|
|
11
|
+
return program.stateMap(mediaKey).has(target);
|
|
12
|
+
}
|
|
13
|
+
export function getMediaTypes(program, target) {
|
|
14
|
+
return program.stateMap(mediaKey).get(target) || [];
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=media.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media.js","sourceRoot":"","sources":["../../../src/decorators/media.ts"],"names":[],"mappings":"AAEA,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;AAEjC;;;;GAIG;AACH,MAAM,UAAU,MAAM,CAAC,OAAyB,EAAE,MAAa,EAAE,GAAG,UAAoB;IACtF,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;AAC7D,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,OAAgB,EAAE,MAAa;IACrD,OAAO,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAChD,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,OAAgB,EAAE,MAAa;IAC3D,OAAO,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;AACtD,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DecoratorContext, Program, Interface, Operation } from "@typespec/compiler";
|
|
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 declare function $passthroughAddressUrlMsa(context: DecoratorContext, target: Interface | Operation, url: string): void;
|
|
9
|
+
export declare function hasPassthroughAddressUrlMsa(program: Program, target: Interface | Operation): boolean;
|
|
10
|
+
export declare function getPassthroughAddressUrlMsa(program: Program, target: Interface | Operation): string | undefined;
|
|
11
|
+
//# 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;AAIrF;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,GAAG,SAAS,EAC7B,GAAG,EAAE,MAAM,QAGZ;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,MAAM,GAAG,SAAS,CAEpB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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) {
|
|
9
|
+
context.program.stateMap(passthroughAddressUrlMsaKey).set(target, url);
|
|
10
|
+
}
|
|
11
|
+
export function hasPassthroughAddressUrlMsa(program, target) {
|
|
12
|
+
return program.stateMap(passthroughAddressUrlMsaKey).has(target);
|
|
13
|
+
}
|
|
14
|
+
export function getPassthroughAddressUrlMsa(program, target) {
|
|
15
|
+
return program.stateMap(passthroughAddressUrlMsaKey).get(target);
|
|
16
|
+
}
|
|
17
|
+
//# 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":"AAEA,MAAM,2BAA2B,GAAG,MAAM,CAAC,6BAA6B,CAAC,CAAC;AAE1E;;;;;GAKG;AACH,MAAM,UAAU,yBAAyB,CACvC,OAAyB,EACzB,MAA6B,EAC7B,GAAW;IAEX,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,2BAA2B,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AACzE,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,11 @@
|
|
|
1
|
+
import { DecoratorContext, Program, Interface, Operation } from "@typespec/compiler";
|
|
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 declare function $passthroughAddressUrl(context: DecoratorContext, target: Interface | Operation, url: string): void;
|
|
9
|
+
export declare function hasPassthroughAddressUrl(program: Program, target: Interface | Operation): boolean;
|
|
10
|
+
export declare function getPassthroughAddressUrl(program: Program, target: Interface | Operation): string | undefined;
|
|
11
|
+
//# 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;AAIrF;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,GAAG,SAAS,EAC7B,GAAG,EAAE,MAAM,QAGZ;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,CAEjG;AAED,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,SAAS,GAAG,SAAS,GAC5B,MAAM,GAAG,SAAS,CAEpB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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) {
|
|
9
|
+
context.program.stateMap(passthroughAddressUrlKey).set(target, url);
|
|
10
|
+
}
|
|
11
|
+
export function hasPassthroughAddressUrl(program, target) {
|
|
12
|
+
return program.stateMap(passthroughAddressUrlKey).has(target);
|
|
13
|
+
}
|
|
14
|
+
export function getPassthroughAddressUrl(program, target) {
|
|
15
|
+
return program.stateMap(passthroughAddressUrlKey).get(target);
|
|
16
|
+
}
|
|
17
|
+
//# 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":"AAEA,MAAM,wBAAwB,GAAG,MAAM,CAAC,0BAA0B,CAAC,CAAC;AAEpE;;;;;GAKG;AACH,MAAM,UAAU,sBAAsB,CACpC,OAAyB,EACzB,MAA6B,EAC7B,GAAW;IAEX,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AACtE,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,OAAgB,EAAE,MAA6B;IACtF,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 @@
|
|
|
1
|
+
{"version":3,"file":"error-interceptor.d.ts","sourceRoot":"","sources":["../../../src/dom/error-interceptor.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// eslint-disable-next-line no-console
|
|
2
|
+
const originalConsoleError = console.error;
|
|
3
|
+
// Override console.error to intercept React warnings
|
|
4
|
+
// eslint-disable-next-line no-console
|
|
5
|
+
console.error = function (...args) {
|
|
6
|
+
const [firstArg] = args;
|
|
7
|
+
if (typeof firstArg === 'string' && firstArg.includes('Encountered two children with the same key')) {
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
originalConsoleError.apply(console, args);
|
|
11
|
+
};
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=error-interceptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-interceptor.js","sourceRoot":"","sources":["../../../src/dom/error-interceptor.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,MAAM,oBAAoB,GAAG,OAAO,CAAC,KAAK,CAAC;AAE3C,qDAAqD;AACrD,sCAAsC;AACtC,OAAO,CAAC,KAAK,GAAG,UAAU,GAAG,IAAW;IACtC,MAAM,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC;IACxB,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,CAAC,QAAQ,CAAC,4CAA4C,CAAC,EAAE;QACnG,OAAO;KACR;IAED,oBAAoB,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;AAC5C,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../src/dom/renderer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../src/dom/renderer.ts"],"names":[],"mappings":"AAEA,OAAO,wBAAwB,CAAC;;4BAoBN,WAAW,GAAG,WAAW;wBAwB7B,WAAW,GAAG,MAAM;;AAzB1C,wBAgCE"}
|
package/dist/src/dom/renderer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderer.js","sourceRoot":"","sources":["../../../src/dom/renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,UAAU,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"renderer.js","sourceRoot":"","sources":["../../../src/dom/renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,UAAU,MAAM,iBAAiB,CAAC;AACzC,OAAO,wBAAwB,CAAC;AAEhC,SAAS,SAAS,CAAC,GAAW,EAAE,MAAc,IAAI;IAChD,IAAI,SAAS,GAAG,EAAE,CAAC;IACnB,IAAI,MAAM,GAAG,EAAE,CAAC;I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AAC,OAAO,CAAC,CAAC;IAC5B,CAAC;CACF,CAAC"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { Program, Interface } from "@typespec/compiler";
|
|
2
2
|
export type MsGraphAddressUrl = Record<string, string | boolean>;
|
|
3
|
+
export type MsGraphPassthroughAddressUrl = Record<string, string>;
|
|
3
4
|
export declare function getMsGraphAddressUrl(program: Program, target: Interface): MsGraphAddressUrl | undefined;
|
|
5
|
+
export declare function getMsGraphAddressUrlMsa(program: Program, target: Interface): MsGraphAddressUrl | undefined;
|
|
6
|
+
export declare function getMsGraphPassthroughAddressUrl(program: Program, target: Interface): MsGraphPassthroughAddressUrl | undefined;
|
|
7
|
+
export declare function getMsGraphPassthroughAddressUrlMsa(program: Program, target: Interface): MsGraphPassthroughAddressUrl | undefined;
|
|
4
8
|
//# sourceMappingURL=address-url.d.ts.map
|
|
@@ -1 +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;
|
|
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;AACjE,MAAM,MAAM,4BAA4B,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAElE,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,4BAA4B,GAAG,SAAS,CAM1C;AAED,wBAAgB,kCAAkC,CAChD,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,SAAS,GAChB,4BAA4B,GAAG,SAAS,CAM1C"}
|
|
@@ -1,18 +1,47 @@
|
|
|
1
|
-
import { getAddressUrl, hasAddressUrl } from "../index.js";
|
|
1
|
+
import { getAddressUrl, getAddressUrlMsa, getPassthroughAddressUrl, hasAddressUrl, hasAddressUrlMsa, hasPassthroughAddressUrl, } from "../index.js";
|
|
2
|
+
import { getPassthroughAddressUrlMsa, hasPassthroughAddressUrlMsa, } from "../decorators/passthrough-address-url-msa.js";
|
|
2
3
|
export function getMsGraphAddressUrl(program, target) {
|
|
3
4
|
if (hasAddressUrl(program, target)) {
|
|
4
5
|
const addressUrl = getAddressUrl(program, target);
|
|
5
|
-
|
|
6
|
-
"ags:AddressUrl": addressUrl.url,
|
|
7
|
-
};
|
|
8
|
-
if (addressUrl.omitRootNavigationSegment) {
|
|
9
|
-
msGraphAddressUrl["ags:AddressContainsEntitySetSegment"] = true;
|
|
10
|
-
}
|
|
11
|
-
if (addressUrl.appendSegmentNameToAddress) {
|
|
12
|
-
msGraphAddressUrl["ags:AppendSegmentNameToAddress"] = true;
|
|
13
|
-
}
|
|
14
|
-
return msGraphAddressUrl;
|
|
6
|
+
return populateMsGraphAddressUrl("ags:AddressUrl", addressUrl);
|
|
15
7
|
}
|
|
16
8
|
return undefined;
|
|
17
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 populateMsGraphPassthroughAddressUrl("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 populateMsGraphPassthroughAddressUrl("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
|
+
function populateMsGraphPassthroughAddressUrl(passthroughAddressUrlVariant, passthroughAddressUrl) {
|
|
43
|
+
const msGraphPassthroughAddressUrl = {};
|
|
44
|
+
msGraphPassthroughAddressUrl[passthroughAddressUrlVariant] = passthroughAddressUrl;
|
|
45
|
+
return msGraphPassthroughAddressUrl;
|
|
46
|
+
}
|
|
18
47
|
//# sourceMappingURL=address-url.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address-url.js","sourceRoot":"","sources":["../../../src/entities/address-url.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
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;AAKtD,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,oCAAoC,CAAC,2BAA2B,EAAE,qBAAqB,CAAC,CAAC;KACjG;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,oCAAoC,CAAC,8BAA8B,EAAE,wBAAwB,CAAC,CAAC;KACvG;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;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;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,10 +1,17 @@
|
|
|
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;
|
|
@@ -19,7 +26,7 @@ export interface CollectionAnnotations {
|
|
|
19
26
|
HasGetOnResource: boolean;
|
|
20
27
|
HasPostOnCollection: boolean;
|
|
21
28
|
RequiredProperties: string[] | undefined;
|
|
22
|
-
|
|
29
|
+
UpdateOperations: UpdateOperations;
|
|
23
30
|
HasDeleteOnResource: boolean;
|
|
24
31
|
HasCountOnCollection: boolean;
|
|
25
32
|
HasExpandOnCollectionOrResource: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotations.d.ts","sourceRoot":"","sources":["../../../src/entities/annotations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,OAAO,EAAmC,MAAM,oBAAoB,CAAC;AAChG,OAAO,EAAE,gBAAgB,EAAoC,MAAM,aAAa,CAAC;AAGjF,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAEzD,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,
|
|
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,CAAC;QAChB,QAAQ,EAAE,OAAO,CAAC;KACnB,CAAC;IACF,cAAc,EAAE,OAAO,CAAC;CACzB;AAMD,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,mBAAmB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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"}
|
|
@@ -2,6 +2,11 @@ import { getDoc, walkPropertiesInherited } from "@typespec/compiler";
|
|
|
2
2
|
import { getInterfaceNavigationSourceType } from "../utils.js";
|
|
3
3
|
import { getOperationVerb } from "@typespec/http";
|
|
4
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);
|
|
@@ -25,7 +55,7 @@ function getResourceAnnotations(program, namespaceName, routePath, entity) {
|
|
|
25
55
|
const annotations = {
|
|
26
56
|
Target: `${namespaceName}.container/${routePath}`,
|
|
27
57
|
HasGetOnResource: operationMethods.some(({ verb }) => verb === "get"),
|
|
28
|
-
|
|
58
|
+
UpdateOperations: getUpdateOperations(operationMethods, Entities.Resource),
|
|
29
59
|
HasDeleteOnResource: operationMethods.some(({ verb }) => verb === "delete"),
|
|
30
60
|
HasExpandOnCollectionOrResource: hasExpandOnCollectionOrResource,
|
|
31
61
|
NonExpandableProperties: nonExpandableProperties,
|
|
@@ -41,10 +71,11 @@ function getExplicitBindingOperationNames(program, entity) {
|
|
|
41
71
|
filter(({ theOperation }) => isAction(program, theOperation) || isFunction(program, theOperation));
|
|
42
72
|
return actionAndFunctionOperations.
|
|
43
73
|
map(({ theOperation }) => {
|
|
74
|
+
var _a;
|
|
44
75
|
if (isAction(program, theOperation)) {
|
|
45
76
|
return getAction(program, theOperation) || '';
|
|
46
77
|
}
|
|
47
|
-
return getFunction(program, theOperation) || '';
|
|
78
|
+
return ((_a = getFunction(program, theOperation)) === null || _a === void 0 ? void 0 : _a.name) || '';
|
|
48
79
|
}).
|
|
49
80
|
map(value => 'microsoft.graph.' + value);
|
|
50
81
|
}
|
|
@@ -76,7 +107,7 @@ function getCollectionAnnotations(program, namespaceName, routePath, entity) {
|
|
|
76
107
|
HasGetOnResource: operationMethods.some(m => !m.hasMinimumParameters && m.verb === "get"),
|
|
77
108
|
HasPostOnCollection: operationMethods.some(m => m.verb === "post"),
|
|
78
109
|
RequiredProperties: getRequiredForCreateProperties(program, type),
|
|
79
|
-
|
|
110
|
+
UpdateOperations: getUpdateOperations(operationMethods, Entities.Collection),
|
|
80
111
|
HasDeleteOnResource: operationMethods.some(m => !m.hasMinimumParameters && m.verb === "delete"),
|
|
81
112
|
HasCountOnCollection: operationMethods.some(m => isCount(program, m.operation)),
|
|
82
113
|
HasSearchOnCollection: operationMethods.some(m => isSearch(program, m.operation)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotations.js","sourceRoot":"","sources":["../../../src/entities/annotations.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,MAAM,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAChG,OAAO,EAAoB,gCAAgC,EAAE,MAAM,aAAa,CAAC;AACjF,OAAO,EAAY,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,WA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,EAAC;YACxB,UAAU,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;;gBAC5B,IAAG,CAAA,MAAA,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,aAAa,0CAAE,MAAM,0CAAE,MAAM,IAAG,CAAC,EAAE;oBAC9C,WAAW,CAAC,GAAG,CAAC,GAAG,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;iBACH;YACH,CAAC,CAAC,CAAA;SACH;KACF;IAAA,CAAC;IACF,OAAO,WAAW,CAAC;AACrB,CAAC"}
|
|
@@ -11,6 +11,9 @@ export interface Singleton {
|
|
|
11
11
|
AgsAttributes: Record<string, string>;
|
|
12
12
|
NavigationPropertyBindingProperties?: NavigationPropertyBinding;
|
|
13
13
|
AddressUrl: MsGraphAddressUrl | undefined;
|
|
14
|
+
AddressUrlMsa: MsGraphAddressUrl | undefined;
|
|
15
|
+
PassThroughAddressUrl: MsGraphAddressUrl | undefined;
|
|
16
|
+
PassThroughAddressUrlMsa: MsGraphAddressUrl | undefined;
|
|
14
17
|
}
|
|
15
18
|
export interface EntitySet {
|
|
16
19
|
Name: string | undefined;
|
|
@@ -18,6 +21,9 @@ export interface EntitySet {
|
|
|
18
21
|
AgsAttributes: Record<string, string | boolean | undefined>;
|
|
19
22
|
NavigationPropertyBindingProperties?: NavigationPropertyBinding;
|
|
20
23
|
AddressUrl: MsGraphAddressUrl | undefined;
|
|
24
|
+
AddressUrlMsa: MsGraphAddressUrl | undefined;
|
|
25
|
+
PassThroughAddressUrl: MsGraphAddressUrl | undefined;
|
|
26
|
+
PassThroughAddressUrlMsa: MsGraphAddressUrl | undefined;
|
|
21
27
|
}
|
|
22
28
|
export declare function GetSingletons(program: Program, sources: Map<string, MsGraphInterface>): Map<string, Singleton>;
|
|
23
29
|
export declare function GetEntitySets(program: Program, sources: Map<string, MsGraphInterface>): Map<string, EntitySet>;
|
|
@@ -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;AACrB,OAAO,EAAE,iBAAiB,
|
|
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,6 +1,6 @@
|
|
|
1
1
|
import { buildAttributes } from "../decorators/ags-attribute.js";
|
|
2
2
|
import { getPropertyTypeName, getInterfaceNavigationSourceType, } from "../utils.js";
|
|
3
|
-
import { getMsGraphAddressUrl } from "./address-url.js";
|
|
3
|
+
import { getMsGraphAddressUrl, getMsGraphAddressUrlMsa, getMsGraphPassthroughAddressUrl, getMsGraphPassthroughAddressUrlMsa } from "./address-url.js";
|
|
4
4
|
export function GetSingletons(program, sources) {
|
|
5
5
|
const singletons = new Map();
|
|
6
6
|
sources.forEach((entity, routePath) => {
|
|
@@ -17,6 +17,9 @@ function getSingleton(program, routePath, entity) {
|
|
|
17
17
|
TypeName: getPropertyTypeName(program, type),
|
|
18
18
|
AgsAttributes: agsAttributes,
|
|
19
19
|
AddressUrl: getMsGraphAddressUrl(program, singleton),
|
|
20
|
+
AddressUrlMsa: getMsGraphAddressUrlMsa(program, singleton),
|
|
21
|
+
PassThroughAddressUrl: getMsGraphPassthroughAddressUrl(program, singleton),
|
|
22
|
+
PassThroughAddressUrlMsa: getMsGraphPassthroughAddressUrlMsa(program, singleton),
|
|
20
23
|
};
|
|
21
24
|
return entry;
|
|
22
25
|
}
|
|
@@ -36,6 +39,9 @@ function getEntitySet(program, routePath, entity) {
|
|
|
36
39
|
TypeName: getPropertyTypeName(program, type),
|
|
37
40
|
AgsAttributes: agsAttributes,
|
|
38
41
|
AddressUrl: getMsGraphAddressUrl(program, entitySet),
|
|
42
|
+
AddressUrlMsa: getMsGraphAddressUrlMsa(program, entitySet),
|
|
43
|
+
PassThroughAddressUrl: getMsGraphPassthroughAddressUrl(program, entitySet),
|
|
44
|
+
PassThroughAddressUrlMsa: getMsGraphPassthroughAddressUrlMsa(program, entitySet),
|
|
39
45
|
};
|
|
40
46
|
return entry;
|
|
41
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;AACrB,OAAO,EAAqB,oBAAoB,EAAE,MAAM,kBAAkB,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,YAA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AwB;IACjF,MAAM,SAAS,GAAG,MAAM,CAAC,YAAY,CAAC;IAEtC,MAAM,IAAI,GAAG,gCAAgC,CAAC,OAAO,EAAE,SAAS,CAAE,CAAC;IAEnE,MAAM,aAAa,GAAG,EAAE,GAAG,yBAAyB,CAAC,OAAO,EAAE,MAAM,CAAC,UAAU,CAAC,EAAE,GAAG,eAAe,CAAC,OAAO,EAAE,SAAS,CAAC,EAAE,CAAC;IAE3H,MAAM,KAAK,GAAc;QACvB,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,mBAAmB,CAAC,OAAO,EAAE,IAAI,CAAC;QAC5C,aAAa,EAAE,aAAa;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,21 +1,22 @@
|
|
|
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
|
+
import { MsGraphAddressUrl, MsGraphPassthroughAddressUrl } from "./address-url.js";
|
|
4
4
|
export interface MsGraphModel {
|
|
5
5
|
Kind: MsGraphModelKind;
|
|
6
6
|
Name: string;
|
|
7
7
|
IsAbstract: boolean;
|
|
8
8
|
BaseType: string | undefined;
|
|
9
9
|
IsOpenType: boolean;
|
|
10
|
-
|
|
10
|
+
IsMedia: boolean;
|
|
11
11
|
AgsAttributes: Record<string, string>;
|
|
12
12
|
Properties: MsGraphModelProperty[];
|
|
13
13
|
RevisionDefinition: RevisionDefinition | undefined;
|
|
14
14
|
Description: string | undefined;
|
|
15
15
|
KeyProperty: [string, ModelProperty] | undefined;
|
|
16
16
|
AlternateKeys: AlternateKeyProperty[];
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
MediaTypes: string[];
|
|
18
|
+
IsPartial: boolean;
|
|
19
|
+
RecordType?: string;
|
|
19
20
|
}
|
|
20
21
|
export declare enum MsGraphModelKind {
|
|
21
22
|
Unknown = 0,
|
|
@@ -41,6 +42,9 @@ export interface MsGraphModelProperty {
|
|
|
41
42
|
allowedValues: AllowedValues;
|
|
42
43
|
IsCollection: boolean;
|
|
43
44
|
AddressUrl: MsGraphAddressUrl | undefined;
|
|
45
|
+
AddressUrlMsa: MsGraphAddressUrl | undefined;
|
|
46
|
+
PassthroughAddressUrl: MsGraphPassthroughAddressUrl | undefined;
|
|
47
|
+
PassthroughAddressUrlMsa: MsGraphPassthroughAddressUrl | undefined;
|
|
44
48
|
}
|
|
45
49
|
export interface AlternateKeyProperty {
|
|
46
50
|
IsModel: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../src/entities/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,OAAO,EAAqC,MAAM,oBAAoB,CAAC;AACtG,OAAO,EAAyB,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../src/entities/model.ts"],"names":[],"mappings":"AAAA,OAAO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