@microsoft/typespec-msgraph 0.0.1-Preview.20 → 0.0.1-Preview.22
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/entity-container-element.d.ts.map +1 -1
- package/dist/src/components/entity-container-element.js +6 -2
- package/dist/src/components/entity-container-element.js.map +1 -1
- package/dist/src/components/enum-type-element.js +1 -1
- package/dist/src/components/enum-type-element.js.map +1 -1
- package/dist/src/components/property-element.d.ts.map +1 -1
- package/dist/src/components/property-element.js +2 -2
- package/dist/src/components/property-element.js.map +1 -1
- package/dist/src/components/schema-element.d.ts.map +1 -1
- package/dist/src/components/schema-element.js +4 -1
- package/dist/src/components/schema-element.js.map +1 -1
- package/dist/src/decorators/abstract.d.ts +2 -0
- package/dist/src/decorators/abstract.d.ts.map +1 -1
- package/dist/src/decorators/abstract.js +2 -0
- package/dist/src/decorators/abstract.js.map +1 -1
- package/dist/src/decorators/action.d.ts +2 -0
- package/dist/src/decorators/action.d.ts.map +1 -1
- package/dist/src/decorators/action.js +2 -0
- package/dist/src/decorators/action.js.map +1 -1
- package/dist/src/decorators/additional-query-parameters.d.ts +2 -0
- package/dist/src/decorators/additional-query-parameters.d.ts.map +1 -1
- package/dist/src/decorators/additional-query-parameters.js +2 -0
- package/dist/src/decorators/additional-query-parameters.js.map +1 -1
- package/dist/src/decorators/address-url-msa.d.ts +2 -0
- package/dist/src/decorators/address-url-msa.d.ts.map +1 -1
- package/dist/src/decorators/address-url-msa.js +2 -0
- package/dist/src/decorators/address-url-msa.js.map +1 -1
- package/dist/src/decorators/ags-attribute.d.ts +2 -2
- package/dist/src/decorators/ags-attribute.d.ts.map +1 -1
- package/dist/src/decorators/ags-attribute.js +24 -23
- package/dist/src/decorators/ags-attribute.js.map +1 -1
- package/dist/src/decorators/contains.d.ts +2 -0
- package/dist/src/decorators/contains.d.ts.map +1 -1
- package/dist/src/decorators/contains.js +2 -0
- package/dist/src/decorators/contains.js.map +1 -1
- package/dist/src/decorators/deprecated-definition.d.ts +2 -0
- package/dist/src/decorators/deprecated-definition.d.ts.map +1 -1
- package/dist/src/decorators/deprecated-definition.js.map +1 -1
- package/dist/src/decorators/expand.d.ts +2 -0
- package/dist/src/decorators/expand.d.ts.map +1 -1
- package/dist/src/decorators/expand.js +2 -0
- package/dist/src/decorators/expand.js.map +1 -1
- package/dist/src/decorators/experimental.d.ts +2 -0
- package/dist/src/decorators/experimental.d.ts.map +1 -1
- package/dist/src/decorators/experimental.js +2 -0
- package/dist/src/decorators/experimental.js.map +1 -1
- package/dist/src/decorators/function.d.ts +2 -0
- package/dist/src/decorators/function.d.ts.map +1 -1
- package/dist/src/decorators/function.js +3 -1
- package/dist/src/decorators/function.js.map +1 -1
- package/dist/src/decorators/global-operation.d.ts +2 -0
- package/dist/src/decorators/global-operation.d.ts.map +1 -1
- package/dist/src/decorators/global-operation.js +2 -0
- package/dist/src/decorators/global-operation.js.map +1 -1
- package/dist/src/decorators/graph-deprecated.d.ts +2 -0
- package/dist/src/decorators/graph-deprecated.d.ts.map +1 -1
- package/dist/src/decorators/graph-deprecated.js +2 -0
- package/dist/src/decorators/graph-deprecated.js.map +1 -1
- package/dist/src/decorators/graph-route.d.ts +2 -0
- package/dist/src/decorators/graph-route.d.ts.map +1 -1
- package/dist/src/decorators/graph-route.js +33 -1
- package/dist/src/decorators/graph-route.js.map +1 -1
- package/dist/src/decorators/graphFlags.d.ts +11 -0
- package/dist/src/decorators/graphFlags.d.ts.map +1 -0
- package/dist/src/decorators/graphFlags.js +15 -0
- package/dist/src/decorators/graphFlags.js.map +1 -0
- package/dist/src/decorators/immutable.d.ts +2 -0
- package/dist/src/decorators/immutable.d.ts.map +1 -1
- package/dist/src/decorators/immutable.js +2 -0
- package/dist/src/decorators/immutable.js.map +1 -1
- package/dist/src/decorators/index.d.ts +2 -1
- package/dist/src/decorators/index.d.ts.map +1 -1
- package/dist/src/decorators/index.js +2 -1
- package/dist/src/decorators/index.js.map +1 -1
- package/dist/src/decorators/is-owner.d.ts +2 -0
- package/dist/src/decorators/is-owner.d.ts.map +1 -1
- package/dist/src/decorators/is-owner.js +2 -0
- package/dist/src/decorators/is-owner.js.map +1 -1
- package/dist/src/decorators/limited-charset.d.ts +2 -0
- package/dist/src/decorators/limited-charset.d.ts.map +1 -1
- package/dist/src/decorators/limited-charset.js +2 -0
- package/dist/src/decorators/limited-charset.js.map +1 -1
- package/dist/src/decorators/media.d.ts +2 -0
- package/dist/src/decorators/media.d.ts.map +1 -1
- package/dist/src/decorators/media.js +2 -0
- package/dist/src/decorators/media.js.map +1 -1
- package/dist/src/decorators/open.d.ts +2 -0
- package/dist/src/decorators/open.d.ts.map +1 -1
- package/dist/src/decorators/open.js +2 -0
- package/dist/src/decorators/open.js.map +1 -1
- package/dist/src/decorators/operation-parameters.d.ts +2 -0
- package/dist/src/decorators/operation-parameters.d.ts.map +1 -1
- package/dist/src/decorators/operation-parameters.js +2 -0
- package/dist/src/decorators/operation-parameters.js.map +1 -1
- package/dist/src/decorators/ownerless.d.ts +2 -0
- package/dist/src/decorators/ownerless.d.ts.map +1 -1
- package/dist/src/decorators/ownerless.js +2 -0
- package/dist/src/decorators/ownerless.js.map +1 -1
- package/dist/src/decorators/passthrough-address-url-msa.d.ts +4 -1
- package/dist/src/decorators/passthrough-address-url-msa.d.ts.map +1 -1
- package/dist/src/decorators/passthrough-address-url-msa.js +4 -1
- package/dist/src/decorators/passthrough-address-url-msa.js.map +1 -1
- package/dist/src/decorators/passthrough-address-url.d.ts +4 -1
- package/dist/src/decorators/passthrough-address-url.d.ts.map +1 -1
- package/dist/src/decorators/passthrough-address-url.js +4 -1
- package/dist/src/decorators/passthrough-address-url.js.map +1 -1
- package/dist/src/decorators/prefixed-graph-routes.d.ts +10 -0
- package/dist/src/decorators/prefixed-graph-routes.d.ts.map +1 -0
- package/dist/src/decorators/prefixed-graph-routes.js +27 -0
- package/dist/src/decorators/prefixed-graph-routes.js.map +1 -0
- package/dist/src/decorators/private-preview.d.ts +2 -2
- package/dist/src/decorators/private-preview.d.ts.map +1 -1
- package/dist/src/decorators/private-preview.js.map +1 -1
- package/dist/src/decorators/privileged.d.ts +2 -0
- package/dist/src/decorators/privileged.d.ts.map +1 -1
- package/dist/src/decorators/privileged.js +2 -0
- package/dist/src/decorators/privileged.js.map +1 -1
- package/dist/src/decorators/read-only.d.ts +2 -0
- package/dist/src/decorators/read-only.d.ts.map +1 -1
- package/dist/src/decorators/read-only.js +2 -0
- package/dist/src/decorators/read-only.js.map +1 -1
- package/dist/src/decorators/reference-target.d.ts +1 -0
- package/dist/src/decorators/reference-target.d.ts.map +1 -1
- package/dist/src/decorators/reference-target.js +1 -0
- package/dist/src/decorators/reference-target.js.map +1 -1
- package/dist/src/decorators/references.d.ts +2 -0
- package/dist/src/decorators/references.d.ts.map +1 -1
- package/dist/src/decorators/references.js +2 -0
- package/dist/src/decorators/references.js.map +1 -1
- package/dist/src/decorators/return-source.d.ts +2 -0
- package/dist/src/decorators/return-source.d.ts.map +1 -1
- package/dist/src/decorators/return-source.js +2 -0
- package/dist/src/decorators/return-source.js.map +1 -1
- package/dist/src/decorators/select.d.ts +2 -0
- package/dist/src/decorators/select.d.ts.map +1 -1
- package/dist/src/decorators/select.js +2 -0
- package/dist/src/decorators/select.js.map +1 -1
- package/dist/src/decorators/workload-name-msa.d.ts +2 -0
- package/dist/src/decorators/workload-name-msa.d.ts.map +1 -1
- package/dist/src/decorators/workload-name-msa.js +2 -0
- package/dist/src/decorators/workload-name-msa.js.map +1 -1
- package/dist/src/decorators/workload-name.d.ts +2 -0
- package/dist/src/decorators/workload-name.d.ts.map +1 -1
- package/dist/src/decorators/workload-name.js +2 -0
- package/dist/src/decorators/workload-name.js.map +1 -1
- package/dist/src/decorators/workload-namespace.d.ts +2 -0
- package/dist/src/decorators/workload-namespace.d.ts.map +1 -1
- package/dist/src/decorators/workload-namespace.js +2 -0
- package/dist/src/decorators/workload-namespace.js.map +1 -1
- package/dist/src/decorators/write-only.d.ts +2 -0
- package/dist/src/decorators/write-only.d.ts.map +1 -1
- package/dist/src/decorators/write-only.js +2 -0
- package/dist/src/decorators/write-only.js.map +1 -1
- package/dist/src/emitter.d.ts.map +1 -1
- package/dist/src/emitter.js +9 -6
- package/dist/src/emitter.js.map +1 -1
- package/dist/src/entities/address-url.js +2 -2
- package/dist/src/entities/address-url.js.map +1 -1
- package/dist/src/entities/annotations.d.ts +2 -2
- package/dist/src/entities/annotations.d.ts.map +1 -1
- package/dist/src/entities/annotations.js +15 -15
- package/dist/src/entities/annotations.js.map +1 -1
- package/dist/src/entities/entity-container.d.ts +3 -0
- package/dist/src/entities/entity-container.d.ts.map +1 -1
- package/dist/src/entities/entity-container.js +3 -0
- package/dist/src/entities/entity-container.js.map +1 -1
- package/dist/src/entities/enum.d.ts +1 -1
- package/dist/src/entities/enum.d.ts.map +1 -1
- package/dist/src/entities/enum.js +8 -6
- package/dist/src/entities/enum.js.map +1 -1
- package/dist/src/entities/model.d.ts +19 -11
- package/dist/src/entities/model.d.ts.map +1 -1
- package/dist/src/entities/model.js +100 -34
- 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 +6 -9
- package/dist/src/entities/ms-graph-route.js.map +1 -1
- package/dist/src/entities/namespace.d.ts +12 -0
- package/dist/src/entities/namespace.d.ts.map +1 -1
- package/dist/src/entities/namespace.js +176 -17
- package/dist/src/entities/namespace.js.map +1 -1
- package/dist/src/entities/operation.d.ts +5 -0
- package/dist/src/entities/operation.d.ts.map +1 -1
- package/dist/src/entities/operation.js +59 -3
- package/dist/src/entities/operation.js.map +1 -1
- package/dist/src/entities/revision-definition.d.ts +2 -2
- package/dist/src/entities/revision-definition.d.ts.map +1 -1
- package/dist/src/entities/revision-definition.js +14 -3
- package/dist/src/entities/revision-definition.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 +11 -0
- package/dist/src/lib.d.ts.map +1 -1
- package/dist/src/lib.js +10 -2
- package/dist/src/lib.js.map +1 -1
- package/dist/src/linter.d.ts.map +1 -1
- package/dist/src/linter.js +14 -2
- package/dist/src/linter.js.map +1 -1
- package/dist/src/rules/address-url.d.ts +1 -0
- package/dist/src/rules/address-url.d.ts.map +1 -1
- package/dist/src/rules/address-url.js +85 -3
- package/dist/src/rules/address-url.js.map +1 -1
- package/dist/src/rules/delta.d.ts.map +1 -1
- package/dist/src/rules/delta.js +6 -7
- package/dist/src/rules/delta.js.map +1 -1
- package/dist/src/rules/documentation.d.ts +4 -0
- package/dist/src/rules/documentation.d.ts.map +1 -0
- package/dist/src/rules/documentation.js +88 -0
- package/dist/src/rules/documentation.js.map +1 -0
- package/dist/src/rules/entity.d.ts +3 -0
- package/dist/src/rules/entity.d.ts.map +1 -1
- package/dist/src/rules/entity.js +32 -5
- package/dist/src/rules/entity.js.map +1 -1
- package/dist/src/rules/enum.d.ts +2 -0
- package/dist/src/rules/enum.d.ts.map +1 -1
- package/dist/src/rules/enum.js +27 -1
- package/dist/src/rules/enum.js.map +1 -1
- package/dist/src/rules/expand.d.ts.map +1 -1
- package/dist/src/rules/expand.js +3 -6
- package/dist/src/rules/expand.js.map +1 -1
- package/dist/src/rules/filter.js +7 -7
- package/dist/src/rules/filter.js.map +1 -1
- package/dist/src/rules/function.d.ts +1 -0
- package/dist/src/rules/function.d.ts.map +1 -1
- package/dist/src/rules/function.js +39 -0
- package/dist/src/rules/function.js.map +1 -1
- package/dist/src/rules/graph-route.d.ts +1 -0
- package/dist/src/rules/graph-route.d.ts.map +1 -1
- package/dist/src/rules/graph-route.js +72 -1
- package/dist/src/rules/graph-route.js.map +1 -1
- package/dist/src/rules/index.d.ts +1 -0
- package/dist/src/rules/index.d.ts.map +1 -1
- package/dist/src/rules/index.js +1 -0
- package/dist/src/rules/index.js.map +1 -1
- package/dist/src/rules/model.d.ts +5 -0
- package/dist/src/rules/model.d.ts.map +1 -1
- package/dist/src/rules/model.js +73 -3
- package/dist/src/rules/model.js.map +1 -1
- package/dist/src/rules/operation-inside-interface.d.ts +3 -0
- package/dist/src/rules/operation-inside-interface.d.ts.map +1 -1
- package/dist/src/rules/operation-inside-interface.js +36 -2
- package/dist/src/rules/operation-inside-interface.js.map +1 -1
- package/dist/src/rules/order-by.js +3 -3
- package/dist/src/rules/order-by.js.map +1 -1
- package/dist/src/rules/ownerless.d.ts.map +1 -1
- package/dist/src/rules/ownerless.js +3 -6
- package/dist/src/rules/ownerless.js.map +1 -1
- package/dist/src/rules/record-t.d.ts +6 -0
- package/dist/src/rules/record-t.d.ts.map +1 -1
- package/dist/src/rules/record-t.js +48 -1
- package/dist/src/rules/record-t.js.map +1 -1
- package/dist/src/rules/required-for-create.d.ts.map +1 -1
- package/dist/src/rules/required-for-create.js +4 -5
- package/dist/src/rules/required-for-create.js.map +1 -1
- package/dist/src/utils.d.ts +20 -4
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/src/utils.js +222 -113
- package/dist/src/utils.js.map +1 -1
- package/dist/src/validate.d.ts.map +1 -1
- package/dist/src/validate.js +5 -0
- package/dist/src/validate.js.map +1 -1
- package/lib/decorators.tsp +24 -12
- package/lib/shared-models.tsp +5 -0
- package/package.json +4 -5
- package/dist/src/decorators/flags.d.ts +0 -9
- package/dist/src/decorators/flags.d.ts.map +0 -1
- package/dist/src/decorators/flags.js +0 -13
- package/dist/src/decorators/flags.js.map +0 -1
|
@@ -7,6 +7,8 @@ interface FunctionParameters {
|
|
|
7
7
|
* `@function` - mark an operation as a function
|
|
8
8
|
*
|
|
9
9
|
* `@function` can only be applied to operations.
|
|
10
|
+
*
|
|
11
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/142d47c792ef952dabc55d64691b3a0bef7a19e9dd3b6a835188efb6f76aa904)
|
|
10
12
|
*/
|
|
11
13
|
export declare function $function(context: DecoratorContext, target: Operation, name?: string, isComposable?: boolean): void;
|
|
12
14
|
export declare function isFunction(program: Program, target: Operation): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"function.d.ts","sourceRoot":"","sources":["../../../src/decorators/function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAiB,SAAS,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAIzF,UAAU,kBAAkB;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,OAAO,CAAC;CACvB;AAED
|
|
1
|
+
{"version":3,"file":"function.d.ts","sourceRoot":"","sources":["../../../src/decorators/function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAiB,SAAS,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAIzF,UAAU,kBAAkB;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,OAAO,CAAC;CACvB;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CACvB,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,EACjB,IAAI,CAAC,EAAE,MAAM,EACb,YAAY,GAAE,OAAe,QAM9B;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,WAE7D;AAED,wBAAgB,WAAW,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,GAAG,kBAAkB,GAAG,SAAS,CAE/F"}
|
|
@@ -3,9 +3,11 @@ const functionKey = Symbol("function");
|
|
|
3
3
|
* `@function` - mark an operation as a function
|
|
4
4
|
*
|
|
5
5
|
* `@function` can only be applied to operations.
|
|
6
|
+
*
|
|
7
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/142d47c792ef952dabc55d64691b3a0bef7a19e9dd3b6a835188efb6f76aa904)
|
|
6
8
|
*/
|
|
7
9
|
export function $function(context, target, name, isComposable = false) {
|
|
8
|
-
if (typeof name === "object" && name.name === "null") {
|
|
10
|
+
if (typeof name === "object" && (name === null || name === void 0 ? void 0 : name.name) === "null") {
|
|
9
11
|
name = "";
|
|
10
12
|
}
|
|
11
13
|
context.program.stateMap(functionKey).set(target, { name: name || target.name, isComposable });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"function.js","sourceRoot":"","sources":["../../../src/decorators/function.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;AAOvC
|
|
1
|
+
{"version":3,"file":"function.js","sourceRoot":"","sources":["../../../src/decorators/function.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;AAOvC;;;;;;GAMG;AACH,MAAM,UAAU,SAAS,CACvB,OAAyB,EACzB,MAAiB,EACjB,IAAa,EACb,eAAwB,KAAK;IAE7B,IAAG,OAAO,IAAI,KAAK,QAAQ,IAAI,CAAC,IAAiC,aAAjC,IAAI,uBAAJ,IAAI,CAA+B,IAAI,MAAK,MAAM,EAAC,CAAC;QAClF,IAAI,GAAG,EAAE,CAAC;IACZ,CAAC;IACD,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,IAAI,IAAI,MAAM,CAAC,IAAI,EAAE,YAAY,EAAE,CAAC,CAAC;AACjG,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,OAAgB,EAAE,MAAiB;IAC5D,OAAO,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACnD,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,OAAgB,EAAE,MAAiB;IAC7D,OAAO,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACnD,CAAC"}
|
|
@@ -3,6 +3,8 @@ import { DecoratorContext, Operation, Program, Type } from "@typespec/compiler";
|
|
|
3
3
|
* `@globalOperation` - specify that this operation is a global operation
|
|
4
4
|
*
|
|
5
5
|
* `@globalOperation` - can only be applied to operations
|
|
6
|
+
*
|
|
7
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/c4642f5be47133846cb7c47a825a751deb3377089dd62dabc45cf8e7b774126d)
|
|
6
8
|
*/
|
|
7
9
|
export declare function $globalOperation(context: DecoratorContext, target: Operation): void;
|
|
8
10
|
export declare function isGlobalOperation(program: Program, target: Type): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global-operation.d.ts","sourceRoot":"","sources":["../../../src/decorators/global-operation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAIhF
|
|
1
|
+
{"version":3,"file":"global-operation.d.ts","sourceRoot":"","sources":["../../../src/decorators/global-operation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAIhF;;;;;;GAMG;AAEH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,SAAS,QAE5E;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAG,OAAO,CAEzE"}
|
|
@@ -3,6 +3,8 @@ const globalOperationKey = Symbol("globalOperation");
|
|
|
3
3
|
* `@globalOperation` - specify that this operation is a global operation
|
|
4
4
|
*
|
|
5
5
|
* `@globalOperation` - can only be applied to operations
|
|
6
|
+
*
|
|
7
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/c4642f5be47133846cb7c47a825a751deb3377089dd62dabc45cf8e7b774126d)
|
|
6
8
|
*/
|
|
7
9
|
export function $globalOperation(context, target) {
|
|
8
10
|
context.program.stateSet(globalOperationKey).add(target);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global-operation.js","sourceRoot":"","sources":["../../../src/decorators/global-operation.ts"],"names":[],"mappings":"AAEA,MAAM,kBAAkB,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAErD
|
|
1
|
+
{"version":3,"file":"global-operation.js","sourceRoot":"","sources":["../../../src/decorators/global-operation.ts"],"names":[],"mappings":"AAEA,MAAM,kBAAkB,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAErD;;;;;;GAMG;AAEH,MAAM,UAAU,gBAAgB,CAAC,OAAyB,EAAE,MAAiB;IAC3E,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC3D,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,OAAgB,EAAE,MAAY;IAC9D,OAAO,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC1D,CAAC"}
|
|
@@ -3,6 +3,8 @@ import { DecoratorContext, Enum, EnumMember, Model, ModelProperty, Namespace, Op
|
|
|
3
3
|
* `@graphDeprecated` - Allow us to deprecate a defined element.
|
|
4
4
|
* `@graphDeprecated` - Applies to models, model properties, enums, enum members, namespaces, actions, action parameters
|
|
5
5
|
* functions, routing interfaces and operations.
|
|
6
|
+
*
|
|
7
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/19c5b2595ee7dbbdb644caa7a0f67211a30be1c44febcc072d5094ce24494372)
|
|
6
8
|
*/
|
|
7
9
|
export declare function $graphDeprecated(context: DecoratorContext, target: Model | ModelProperty | EnumMember | Enum | Operation | Namespace, name: string): void;
|
|
8
10
|
export declare function getGraphDeprecated(program: Program, target: Type): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph-deprecated.d.ts","sourceRoot":"","sources":["../../../src/decorators/graph-deprecated.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,IAAI,EACJ,UAAU,EACV,KAAK,EACL,aAAa,EACb,SAAS,EACT,SAAS,EACT,OAAO,EACP,IAAI,EACL,MAAM,oBAAoB,CAAC;AAI5B
|
|
1
|
+
{"version":3,"file":"graph-deprecated.d.ts","sourceRoot":"","sources":["../../../src/decorators/graph-deprecated.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,IAAI,EACJ,UAAU,EACV,KAAK,EACL,aAAa,EACb,SAAS,EACT,SAAS,EACT,OAAO,EACP,IAAI,EACL,MAAM,oBAAoB,CAAC;AAI5B;;;;;;GAMG;AAEH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,GAAG,aAAa,GAAG,UAAU,GAAG,IAAI,GAAG,SAAS,GAAG,SAAS,EACzE,IAAI,EAAE,MAAM,QAGb;AAGD,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAG,MAAM,CAEzE;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,WAE/D;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,WAEhE"}
|
|
@@ -3,6 +3,8 @@ const graphDeprecatedKey = Symbol("graphDeprecated");
|
|
|
3
3
|
* `@graphDeprecated` - Allow us to deprecate a defined element.
|
|
4
4
|
* `@graphDeprecated` - Applies to models, model properties, enums, enum members, namespaces, actions, action parameters
|
|
5
5
|
* functions, routing interfaces and operations.
|
|
6
|
+
*
|
|
7
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/19c5b2595ee7dbbdb644caa7a0f67211a30be1c44febcc072d5094ce24494372)
|
|
6
8
|
*/
|
|
7
9
|
export function $graphDeprecated(context, target, name) {
|
|
8
10
|
context.program.stateMap(graphDeprecatedKey).set(target, name);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph-deprecated.js","sourceRoot":"","sources":["../../../src/decorators/graph-deprecated.ts"],"names":[],"mappings":"AAYA,MAAM,kBAAkB,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAErD
|
|
1
|
+
{"version":3,"file":"graph-deprecated.js","sourceRoot":"","sources":["../../../src/decorators/graph-deprecated.ts"],"names":[],"mappings":"AAYA,MAAM,kBAAkB,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAErD;;;;;;GAMG;AAEH,MAAM,UAAU,gBAAgB,CAC9B,OAAyB,EACzB,MAAyE,EACzE,IAAY;IAEZ,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;AACjE,CAAC;AAGD,MAAM,UAAU,kBAAkB,CAAC,OAAgB,EAAE,MAAY;IAC/D,OAAO,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC1D,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,OAAgB,EAAE,MAAY;IAC9D,OAAO,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC1D,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,OAAgB,EAAE,MAAY;IAC/D,OAAO,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC1D,CAAC"}
|
|
@@ -2,6 +2,8 @@ import { DecoratorContext, Interface, Operation, Program, Type, ModelProperty, R
|
|
|
2
2
|
/**
|
|
3
3
|
* `@graphRoute` - Allow us to define an HTTP route for an interface or operation.
|
|
4
4
|
* `@graphRoute` - Applies to interfaces and operations.
|
|
5
|
+
*
|
|
6
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/33ddaf863400239b20e87543c3662baf7ac97ab8e722fd155587e333efc0946f)
|
|
5
7
|
*/
|
|
6
8
|
export declare function $graphRoute(context: DecoratorContext, target: Interface | Operation, path: string): void;
|
|
7
9
|
export declare function resolveOperationParametersForGraphRoute(operation: Operation, graphRoute: string): RekeyableMap<string, ModelProperty>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph-route.d.ts","sourceRoot":"","sources":["../../../src/decorators/graph-route.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,SAAS,EACT,SAAS,EACT,OAAO,EACP,IAAI,EAEJ,aAAa,EAEb,YAAY,EAEb,MAAM,oBAAoB,CAAC;AAK5B
|
|
1
|
+
{"version":3,"file":"graph-route.d.ts","sourceRoot":"","sources":["../../../src/decorators/graph-route.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,SAAS,EACT,SAAS,EACT,OAAO,EACP,IAAI,EAEJ,aAAa,EAEb,YAAY,EAEb,MAAM,oBAAoB,CAAC;AAK5B;;;;;GAKG;AACH,wBAAgB,WAAW,CACzB,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,GAAG,SAAS,EAC7B,IAAI,EAAE,MAAM,QA8Bb;AA+DD,wBAAgB,uCAAuC,CACrD,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,MAAM,GACjB,YAAY,CAAC,MAAM,EAAE,aAAa,CAAC,CA2BrC;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAG5D;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAG,MAAM,EAAE,GAAG,SAAS,CAGvF;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,WAE3D;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,GAAG,CAAC,MAAM,EAAE,SAAS,GAAG,SAAS,CAAC,CAanF"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { createRekeyableMap, } from "@typespec/compiler";
|
|
2
|
-
import { getNavigationSourceType } from "../utils.js";
|
|
2
|
+
import { extractTypesFromUnion, getNavigationSourceType } from "../utils.js";
|
|
3
3
|
const graphRouteKey = Symbol("graphRoute");
|
|
4
4
|
/**
|
|
5
5
|
* `@graphRoute` - Allow us to define an HTTP route for an interface or operation.
|
|
6
6
|
* `@graphRoute` - Applies to interfaces and operations.
|
|
7
|
+
*
|
|
8
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/33ddaf863400239b20e87543c3662baf7ac97ab8e722fd155587e333efc0946f)
|
|
7
9
|
*/
|
|
8
10
|
export function $graphRoute(context, target, path) {
|
|
9
11
|
const state = context.program.stateMap(graphRouteKey);
|
|
@@ -30,10 +32,40 @@ export function $graphRoute(context, target, path) {
|
|
|
30
32
|
const returnType = getNavigationSourceType(context.program, operation);
|
|
31
33
|
if (returnType !== undefined) {
|
|
32
34
|
replaceResourceType(context.program, operation, returnType);
|
|
35
|
+
replacePorcelainReturnType(context.program, operation, returnType);
|
|
33
36
|
}
|
|
34
37
|
});
|
|
35
38
|
}
|
|
36
39
|
}
|
|
40
|
+
function replacePorcelainReturnType(program, operation, resourceType) {
|
|
41
|
+
var _a;
|
|
42
|
+
if (!getCalculatedResourceType(program)) {
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
const resourceCoreType = getResourceCoreType(resourceType);
|
|
46
|
+
const isTargetType = (type) => type.name === "CalculatedResourceType" || type.name === "DeltaCollectionBody";
|
|
47
|
+
if (operation.returnType.kind === "Model" && operation.returnType.name === "Array") {
|
|
48
|
+
const indexer = (_a = operation.returnType.indexer) === null || _a === void 0 ? void 0 : _a.value;
|
|
49
|
+
if (indexer && indexer.kind === "Model" && isTargetType(indexer)) {
|
|
50
|
+
operation.returnType = resourceCoreType;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
if (operation.returnType.kind === "Model" && isTargetType(operation.returnType)) {
|
|
54
|
+
operation.returnType = resourceCoreType;
|
|
55
|
+
}
|
|
56
|
+
if (operation.returnType.kind === "Union") {
|
|
57
|
+
const unionTypes = extractTypesFromUnion(operation.returnType);
|
|
58
|
+
const modelUnionType = unionTypes.find((type) => type.kind === "Model");
|
|
59
|
+
if (modelUnionType && isTargetType(modelUnionType)) {
|
|
60
|
+
operation.returnType = resourceCoreType;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
function getCalculatedResourceType(program) {
|
|
66
|
+
const [calculatedResourceType, _] = program.resolveTypeReference("MsGraph.Automatic.CalculatedResourceType");
|
|
67
|
+
return calculatedResourceType;
|
|
68
|
+
}
|
|
37
69
|
function replaceResourceType(program, operation, resourceType) {
|
|
38
70
|
const [calculatedResourceType, _] = program.resolveTypeReference("MsGraph.Automatic.CalculatedResourceType");
|
|
39
71
|
if (!calculatedResourceType) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph-route.js","sourceRoot":"","sources":["../../../src/decorators/graph-route.ts"],"names":[],"mappings":"AAAA,OAAO,EAUL,kBAAkB,GACnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"graph-route.js","sourceRoot":"","sources":["../../../src/decorators/graph-route.ts"],"names":[],"mappings":"AAAA,OAAO,EAUL,kBAAkB,GACnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAE7E,MAAM,aAAa,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC;A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CAAC,IAAI,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC;QAC9D,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YACzB,QAAQ,MAAM,CAAC,IAAI,EAAE,CAAC;gBACpB,KAAK,WAAW,CAAC;gBACjB,KAAK,WAAW;oBACd,WAAW,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;oBAC9B,MAAM;YACV,CAAC;QACH,CAAC;IACH,CAAC;IACD,OAAO,WAAW,CAAC;AACrB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DecoratorContext, Enum, Program } from "@typespec/compiler";
|
|
2
|
+
/**
|
|
3
|
+
* `@graphFlags` - mark an enum as a flag.
|
|
4
|
+
*
|
|
5
|
+
* `@graphFlags` can only be applied to enums.
|
|
6
|
+
*
|
|
7
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/6cd40d47c24c868aacf8a4d2521e4e17109ea59def75224be431f695c867bf91)
|
|
8
|
+
*/
|
|
9
|
+
export declare function $graphFlags(context: DecoratorContext, target: Enum): void;
|
|
10
|
+
export declare function isGraphFlags(program: Program, target: Enum): boolean;
|
|
11
|
+
//# sourceMappingURL=graphFlags.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graphFlags.d.ts","sourceRoot":"","sources":["../../../src/decorators/graphFlags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAIrE;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,IAAI,QAElE;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,WAE1D"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const flagsKey = Symbol("flags");
|
|
2
|
+
/**
|
|
3
|
+
* `@graphFlags` - mark an enum as a flag.
|
|
4
|
+
*
|
|
5
|
+
* `@graphFlags` can only be applied to enums.
|
|
6
|
+
*
|
|
7
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/6cd40d47c24c868aacf8a4d2521e4e17109ea59def75224be431f695c867bf91)
|
|
8
|
+
*/
|
|
9
|
+
export function $graphFlags(context, target) {
|
|
10
|
+
context.program.stateSet(flagsKey).add(target);
|
|
11
|
+
}
|
|
12
|
+
export function isGraphFlags(program, target) {
|
|
13
|
+
return program.stateSet(flagsKey).has(target);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=graphFlags.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graphFlags.js","sourceRoot":"","sources":["../../../src/decorators/graphFlags.ts"],"names":[],"mappings":"AAEA,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;AAEjC;;;;;;GAMG;AACH,MAAM,UAAU,WAAW,CAAC,OAAyB,EAAE,MAAY;IACjE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACjD,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,OAAgB,EAAE,MAAY;IACzD,OAAO,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAChD,CAAC"}
|
|
@@ -2,6 +2,8 @@ import { DecoratorContext, ModelProperty, Program } from "@typespec/compiler";
|
|
|
2
2
|
/**
|
|
3
3
|
* `@immutable` - mark a model property as immutable
|
|
4
4
|
* '@immutable' can only be applied to Model properties.
|
|
5
|
+
*
|
|
6
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/417b34458b742060e55ca729ef1280471a94fab781087f6fb855e5e9d80f5314)
|
|
5
7
|
*/
|
|
6
8
|
export declare function $immutable(context: DecoratorContext, target: ModelProperty): void;
|
|
7
9
|
export declare function isImmutable(program: Program, target: ModelProperty): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"immutable.d.ts","sourceRoot":"","sources":["../../../src/decorators/immutable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI9E
|
|
1
|
+
{"version":3,"file":"immutable.d.ts","sourceRoot":"","sources":["../../../src/decorators/immutable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI9E;;;;;GAKG;AAEH,wBAAgB,UAAU,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,aAAa,GAAG,IAAI,CAEjF;AAED,wBAAgB,WAAW,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,WAElE"}
|
|
@@ -2,6 +2,8 @@ const immutableKey = Symbol("immutable");
|
|
|
2
2
|
/**
|
|
3
3
|
* `@immutable` - mark a model property as immutable
|
|
4
4
|
* '@immutable' can only be applied to Model properties.
|
|
5
|
+
*
|
|
6
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/417b34458b742060e55ca729ef1280471a94fab781087f6fb855e5e9d80f5314)
|
|
5
7
|
*/
|
|
6
8
|
export function $immutable(context, target) {
|
|
7
9
|
context.program.stateSet(immutableKey).add(target);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"immutable.js","sourceRoot":"","sources":["../../../src/decorators/immutable.ts"],"names":[],"mappings":"AAEA,MAAM,YAAY,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;AAEzC
|
|
1
|
+
{"version":3,"file":"immutable.js","sourceRoot":"","sources":["../../../src/decorators/immutable.ts"],"names":[],"mappings":"AAEA,MAAM,YAAY,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;AAEzC;;;;;GAKG;AAEH,MAAM,UAAU,UAAU,CAAC,OAAyB,EAAE,MAAqB;IACzE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACrD,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,OAAgB,EAAE,MAAqB;IACjE,OAAO,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACpD,CAAC"}
|
|
@@ -17,7 +17,7 @@ export * from "./entity.js";
|
|
|
17
17
|
export * from "./expand.js";
|
|
18
18
|
export * from "./experimental.js";
|
|
19
19
|
export * from "./filter.js";
|
|
20
|
-
export * from "./
|
|
20
|
+
export * from "./graphFlags.js";
|
|
21
21
|
export * from "./function.js";
|
|
22
22
|
export * from "./global-operation.js";
|
|
23
23
|
export * from "./graph-deprecated.js";
|
|
@@ -34,6 +34,7 @@ export * from "./paged-collection.js";
|
|
|
34
34
|
export * from "./partial.js";
|
|
35
35
|
export * from "./passthrough-address-url.js";
|
|
36
36
|
export * from "./passthrough-address-url-msa.js";
|
|
37
|
+
export * from "./prefixed-graph-routes.js";
|
|
37
38
|
export * from "./private-preview-definition.js";
|
|
38
39
|
export * from "./private-preview.js";
|
|
39
40
|
export * from "./privileged.js";
|
|
@@ -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,eAAe,CAAC;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C,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,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC"}
|
|
@@ -17,7 +17,7 @@ export * from "./entity.js";
|
|
|
17
17
|
export * from "./expand.js";
|
|
18
18
|
export * from "./experimental.js";
|
|
19
19
|
export * from "./filter.js";
|
|
20
|
-
export * from "./
|
|
20
|
+
export * from "./graphFlags.js";
|
|
21
21
|
export * from "./function.js";
|
|
22
22
|
export * from "./global-operation.js";
|
|
23
23
|
export * from "./graph-deprecated.js";
|
|
@@ -34,6 +34,7 @@ export * from "./paged-collection.js";
|
|
|
34
34
|
export * from "./partial.js";
|
|
35
35
|
export * from "./passthrough-address-url.js";
|
|
36
36
|
export * from "./passthrough-address-url-msa.js";
|
|
37
|
+
export * from "./prefixed-graph-routes.js";
|
|
37
38
|
export * from "./private-preview-definition.js";
|
|
38
39
|
export * from "./private-preview.js";
|
|
39
40
|
export * from "./privileged.js";
|
|
@@ -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,kBAAkB,CAAC;AACjC,cAAc,sBAA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B,CAAC;AAC1C,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,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,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC"}
|
|
@@ -3,6 +3,8 @@ import { DecoratorContext, Model, ModelProperty, Program, Type } from "@typespec
|
|
|
3
3
|
* `@isOwner` - specify that this workload is the primary owner of this entity model
|
|
4
4
|
*
|
|
5
5
|
* `@isOwner` can be applied to Model where the model also has an @entity decorator or a ModelProperty where it has either an @contains or @references decorator.
|
|
6
|
+
*
|
|
7
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/6bf9ba526d4eb478a2385acbe3276c9bd05c62e8923bae3201d14af523b77c56)
|
|
6
8
|
*/
|
|
7
9
|
export declare function $isOwner(context: DecoratorContext, target: Model | ModelProperty, value?: boolean): void;
|
|
8
10
|
export declare function hasIsOwner(program: Program, target: Type): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-owner.d.ts","sourceRoot":"","sources":["../../../src/decorators/is-owner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAK3F
|
|
1
|
+
{"version":3,"file":"is-owner.d.ts","sourceRoot":"","sources":["../../../src/decorators/is-owner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAK3F;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,KAAK,GAAG,aAAa,EAAE,KAAK,CAAC,EAAE,OAAO,QAEjG;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAG,OAAO,CAElE;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAG,OAAO,CAE3E"}
|
|
@@ -4,6 +4,8 @@ const isOwnerKey = Symbol("isOwner");
|
|
|
4
4
|
* `@isOwner` - specify that this workload is the primary owner of this entity model
|
|
5
5
|
*
|
|
6
6
|
* `@isOwner` can be applied to Model where the model also has an @entity decorator or a ModelProperty where it has either an @contains or @references decorator.
|
|
7
|
+
*
|
|
8
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/6bf9ba526d4eb478a2385acbe3276c9bd05c62e8923bae3201d14af523b77c56)
|
|
7
9
|
*/
|
|
8
10
|
export function $isOwner(context, target, value) {
|
|
9
11
|
context.program.stateMap(isOwnerKey).set(target, value);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-owner.js","sourceRoot":"","sources":["../../../src/decorators/is-owner.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;AAErC,mCAAmC;AACnC
|
|
1
|
+
{"version":3,"file":"is-owner.js","sourceRoot":"","sources":["../../../src/decorators/is-owner.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;AAErC,mCAAmC;AACnC;;;;;;GAMG;AACH,MAAM,UAAU,QAAQ,CAAC,OAAyB,EAAE,MAA6B,EAAE,KAAe;IAChG,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAC1D,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,OAAgB,EAAE,MAAY;IACvD,OAAO,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAClD,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,OAAgB,EAAE,MAAY;IAChE,OAAO,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAClD,CAAC"}
|
|
@@ -3,6 +3,8 @@ import { DecoratorContext, ModelProperty, Program } from "@typespec/compiler";
|
|
|
3
3
|
* `@limitedCharset` - indicates that the full unicode character set is not supported by the underlying back-end service that implements the API
|
|
4
4
|
*
|
|
5
5
|
* `@limitedCharset` can only be applied to string models properties, string parameters or their collections.
|
|
6
|
+
*
|
|
7
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/e675b750c01ebabb4a6244e465991040102076e804669797307c83393fd78597)
|
|
6
8
|
*/
|
|
7
9
|
export declare function $limitedCharset(context: DecoratorContext, target: ModelProperty): void;
|
|
8
10
|
export declare function supportsLimitedCharset(program: Program, property: ModelProperty): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"limited-charset.d.ts","sourceRoot":"","sources":["../../../src/decorators/limited-charset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI9E
|
|
1
|
+
{"version":3,"file":"limited-charset.d.ts","sourceRoot":"","sources":["../../../src/decorators/limited-charset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI9E;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,aAAa,QAE/E;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa,WAE/E"}
|
|
@@ -3,6 +3,8 @@ const limitedCharsetKey = Symbol("limitedCharset");
|
|
|
3
3
|
* `@limitedCharset` - indicates that the full unicode character set is not supported by the underlying back-end service that implements the API
|
|
4
4
|
*
|
|
5
5
|
* `@limitedCharset` can only be applied to string models properties, string parameters or their collections.
|
|
6
|
+
*
|
|
7
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/e675b750c01ebabb4a6244e465991040102076e804669797307c83393fd78597)
|
|
6
8
|
*/
|
|
7
9
|
export function $limitedCharset(context, target) {
|
|
8
10
|
context.program.stateSet(limitedCharsetKey).add(target);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"limited-charset.js","sourceRoot":"","sources":["../../../src/decorators/limited-charset.ts"],"names":[],"mappings":"AAEA,MAAM,iBAAiB,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC;AAEnD
|
|
1
|
+
{"version":3,"file":"limited-charset.js","sourceRoot":"","sources":["../../../src/decorators/limited-charset.ts"],"names":[],"mappings":"AAEA,MAAM,iBAAiB,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC;AAEnD;;;;;;GAMG;AACH,MAAM,UAAU,eAAe,CAAC,OAAyB,EAAE,MAAqB;IAC9E,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC1D,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,OAAgB,EAAE,QAAuB;IAC9E,OAAO,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC3D,CAAC"}
|
|
@@ -3,6 +3,8 @@ import { DecoratorContext, Model, Program } from "@typespec/compiler";
|
|
|
3
3
|
* `@media` - indicates that an `@entity` model is a media entity.
|
|
4
4
|
*
|
|
5
5
|
* `mediaTypes` - list of media types supported by the entity. If not specified, the entity supports any media type.
|
|
6
|
+
*
|
|
7
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/73ff61d95ee9b166cdb9995e9084cdc7820cd65dadc708f324fa6769deb2f90a)
|
|
6
8
|
*/
|
|
7
9
|
export declare function $media(context: DecoratorContext, target: Model, ...mediaTypes: string[]): void;
|
|
8
10
|
export declare function isMedia(program: Program, target: Model): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"media.d.ts","sourceRoot":"","sources":["../../../src/decorators/media.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAItE
|
|
1
|
+
{"version":3,"file":"media.d.ts","sourceRoot":"","sources":["../../../src/decorators/media.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAItE;;;;;;GAMG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,UAAU,EAAE,MAAM,EAAE,QAEvF;AAED,wBAAgB,OAAO,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,GAAG,OAAO,CAEhE;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,GAAG,MAAM,EAAE,CAEvE"}
|
|
@@ -3,6 +3,8 @@ const mediaKey = Symbol("media");
|
|
|
3
3
|
* `@media` - indicates that an `@entity` model is a media entity.
|
|
4
4
|
*
|
|
5
5
|
* `mediaTypes` - list of media types supported by the entity. If not specified, the entity supports any media type.
|
|
6
|
+
*
|
|
7
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/73ff61d95ee9b166cdb9995e9084cdc7820cd65dadc708f324fa6769deb2f90a)
|
|
6
8
|
*/
|
|
7
9
|
export function $media(context, target, ...mediaTypes) {
|
|
8
10
|
context.program.stateMap(mediaKey).set(target, mediaTypes);
|
|
@@ -1 +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
|
|
1
|
+
{"version":3,"file":"media.js","sourceRoot":"","sources":["../../../src/decorators/media.ts"],"names":[],"mappings":"AAEA,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;AAEjC;;;;;;GAMG;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"}
|
|
@@ -3,6 +3,8 @@ import { DecoratorContext, Model, Program } from "@typespec/compiler";
|
|
|
3
3
|
* `@open` - mark a model type as open
|
|
4
4
|
*
|
|
5
5
|
* `@open` can only be applied to models.
|
|
6
|
+
*
|
|
7
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/e58bd4cc7e3194baa7037fb7d3eb587f655ce2b93e3f4c1a4bf0c8186ac4663d)
|
|
6
8
|
*/
|
|
7
9
|
export declare function $open(context: DecoratorContext, entity: Model): void;
|
|
8
10
|
export declare function isOpen(program: Program, entity: Model): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"open.d.ts","sourceRoot":"","sources":["../../../src/decorators/open.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAItE
|
|
1
|
+
{"version":3,"file":"open.d.ts","sourceRoot":"","sources":["../../../src/decorators/open.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAItE;;;;;;GAMG;AACH,wBAAgB,KAAK,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,KAAK,QAE7D;AAED,wBAAgB,MAAM,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,WAErD"}
|
|
@@ -3,6 +3,8 @@ const openKey = Symbol("open");
|
|
|
3
3
|
* `@open` - mark a model type as open
|
|
4
4
|
*
|
|
5
5
|
* `@open` can only be applied to models.
|
|
6
|
+
*
|
|
7
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/e58bd4cc7e3194baa7037fb7d3eb587f655ce2b93e3f4c1a4bf0c8186ac4663d)
|
|
6
8
|
*/
|
|
7
9
|
export function $open(context, entity) {
|
|
8
10
|
context.program.stateSet(openKey).add(entity);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"open.js","sourceRoot":"","sources":["../../../src/decorators/open.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;AAE/B
|
|
1
|
+
{"version":3,"file":"open.js","sourceRoot":"","sources":["../../../src/decorators/open.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;AAE/B;;;;;;GAMG;AACH,MAAM,UAAU,KAAK,CAAC,OAAyB,EAAE,MAAa;IAC5D,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAChD,CAAC;AAED,MAAM,UAAU,MAAM,CAAC,OAAgB,EAAE,MAAa;IACpD,OAAO,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC/C,CAAC"}
|
|
@@ -5,6 +5,8 @@ import { DecoratorContext, Model, Program } from "@typespec/compiler";
|
|
|
5
5
|
* or any other way except through being a parameter for an action operation.
|
|
6
6
|
* The purpose of this model is only to define model parameters that would be too verbose.
|
|
7
7
|
* This decorator will be the equivalent of inlining the properties of the model into parameters of the operation.
|
|
8
|
+
*
|
|
9
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/fa1f7ea8df7e9c2233052230572210a6b11462cb723f0d6e9fa051cdf443a9cc)
|
|
8
10
|
*/
|
|
9
11
|
export declare function $operationParameters(context: DecoratorContext, model: Model): void;
|
|
10
12
|
export declare function isOperationParameters(program: Program, model: Model): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operation-parameters.d.ts","sourceRoot":"","sources":["../../../src/decorators/operation-parameters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAGtE
|
|
1
|
+
{"version":3,"file":"operation-parameters.d.ts","sourceRoot":"","sources":["../../../src/decorators/operation-parameters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAGtE;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,KAAK,QAE3E;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,WAEnE"}
|
|
@@ -5,6 +5,8 @@ const operationParametersKey = Symbol("operationParameters");
|
|
|
5
5
|
* or any other way except through being a parameter for an action operation.
|
|
6
6
|
* The purpose of this model is only to define model parameters that would be too verbose.
|
|
7
7
|
* This decorator will be the equivalent of inlining the properties of the model into parameters of the operation.
|
|
8
|
+
*
|
|
9
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/fa1f7ea8df7e9c2233052230572210a6b11462cb723f0d6e9fa051cdf443a9cc)
|
|
8
10
|
*/
|
|
9
11
|
export function $operationParameters(context, model) {
|
|
10
12
|
context.program.stateSet(operationParametersKey).add(model);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operation-parameters.js","sourceRoot":"","sources":["../../../src/decorators/operation-parameters.ts"],"names":[],"mappings":"AAEA,MAAM,sBAAsB,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC;AAC7D
|
|
1
|
+
{"version":3,"file":"operation-parameters.js","sourceRoot":"","sources":["../../../src/decorators/operation-parameters.ts"],"names":[],"mappings":"AAEA,MAAM,sBAAsB,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC;AAC7D;;;;;;;;GAQG;AACH,MAAM,UAAU,oBAAoB,CAAC,OAAyB,EAAE,KAAY;IAC1E,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AAC9D,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,OAAgB,EAAE,KAAY;IAClE,OAAO,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AAC7D,CAAC"}
|
|
@@ -2,6 +2,8 @@ import { DecoratorContext, Interface, Program } from "@typespec/compiler";
|
|
|
2
2
|
/**
|
|
3
3
|
* `@ownerless` - mark an interface as ownerless
|
|
4
4
|
* '@ownerless' can only be applied to Interfaces.
|
|
5
|
+
*
|
|
6
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/c3a0100745b1e2985105da93daa98af72e0e111af19e69e0bab7b0724b6f5808)
|
|
5
7
|
*/
|
|
6
8
|
export declare function $ownerless(context: DecoratorContext, target: Interface): void;
|
|
7
9
|
export declare function isOwnerless(program: Program, target: Interface): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ownerless.d.ts","sourceRoot":"","sources":["../../../src/decorators/ownerless.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI1E
|
|
1
|
+
{"version":3,"file":"ownerless.d.ts","sourceRoot":"","sources":["../../../src/decorators/ownerless.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI1E;;;;;GAKG;AAEH,wBAAgB,UAAU,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,SAAS,GAAG,IAAI,CAE7E;AAED,wBAAgB,WAAW,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,WAE9D"}
|
|
@@ -2,6 +2,8 @@ const ownerlessKey = Symbol("ownerless");
|
|
|
2
2
|
/**
|
|
3
3
|
* `@ownerless` - mark an interface as ownerless
|
|
4
4
|
* '@ownerless' can only be applied to Interfaces.
|
|
5
|
+
*
|
|
6
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/c3a0100745b1e2985105da93daa98af72e0e111af19e69e0bab7b0724b6f5808)
|
|
5
7
|
*/
|
|
6
8
|
export function $ownerless(context, target) {
|
|
7
9
|
context.program.stateSet(ownerlessKey).add(target);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ownerless.js","sourceRoot":"","sources":["../../../src/decorators/ownerless.ts"],"names":[],"mappings":"AAEA,MAAM,YAAY,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;AAEzC
|
|
1
|
+
{"version":3,"file":"ownerless.js","sourceRoot":"","sources":["../../../src/decorators/ownerless.ts"],"names":[],"mappings":"AAEA,MAAM,YAAY,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;AAEzC;;;;;GAKG;AAEH,MAAM,UAAU,UAAU,CAAC,OAAyB,EAAE,MAAiB;IACrE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACrD,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,OAAgB,EAAE,MAAiB;IAC7D,OAAO,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACpD,CAAC"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { DecoratorContext, Program, Interface, Operation } from "@typespec/compiler";
|
|
2
|
+
import { AddressUrlParameter } from "../index.js";
|
|
2
3
|
/**
|
|
3
4
|
* `@passthroughAddressUrlMsa` - Specifies the URL to which the operation request is forwarded when the request
|
|
4
5
|
* is authenticated with a Microsoft account and the request is eligible for response passthrough.
|
|
5
6
|
*
|
|
6
7
|
* `@passthroughAddressUrlMsa` can only be applied to routed interfaces (entity sets, singletons and navigation properties) or action operations.
|
|
8
|
+
*
|
|
9
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/c96ef60bee89c9b72634b03b75142e80338e29aa6561d8d68fb673742f7e339a)
|
|
7
10
|
*/
|
|
8
11
|
export declare function $passthroughAddressUrlMsa(context: DecoratorContext, target: Interface | Operation, url: string): void;
|
|
9
12
|
export declare function hasPassthroughAddressUrlMsa(program: Program, target: Interface | Operation): boolean;
|
|
10
|
-
export declare function getPassthroughAddressUrlMsa(program: Program, target: Interface | Operation):
|
|
13
|
+
export declare function getPassthroughAddressUrlMsa(program: Program, target: Interface | Operation): AddressUrlParameter | undefined;
|
|
11
14
|
//# sourceMappingURL=passthrough-address-url-msa.d.ts.map
|
|
@@ -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;
|
|
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,aAAa,CAAC;AAIlD;;;;;;;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"}
|
|
@@ -4,9 +4,12 @@ const passthroughAddressUrlMsaKey = Symbol("passthroughAddressUrlMsaKey");
|
|
|
4
4
|
* is authenticated with a Microsoft account and the request is eligible for response passthrough.
|
|
5
5
|
*
|
|
6
6
|
* `@passthroughAddressUrlMsa` can only be applied to routed interfaces (entity sets, singletons and navigation properties) or action operations.
|
|
7
|
+
*
|
|
8
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/c96ef60bee89c9b72634b03b75142e80338e29aa6561d8d68fb673742f7e339a)
|
|
7
9
|
*/
|
|
8
10
|
export function $passthroughAddressUrlMsa(context, target, url) {
|
|
9
|
-
|
|
11
|
+
// Adding omitRootNavigationSegment and appendSegmentNameToAddress to the state map so that returned value is consistent with other addressUrl decorators
|
|
12
|
+
context.program.stateMap(passthroughAddressUrlMsaKey).set(target, { url, omitRootNavigationSegment: false, appendSegmentNameToAddress: false });
|
|
10
13
|
}
|
|
11
14
|
export function hasPassthroughAddressUrlMsa(program, target) {
|
|
12
15
|
return program.stateMap(passthroughAddressUrlMsaKey).has(target);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"passthrough-address-url-msa.js","sourceRoot":"","sources":["../../../src/decorators/passthrough-address-url-msa.ts"],"names":[],"mappings":"
|
|
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;;;;;;;GAOG;AACH,MAAM,UAAU,yBAAyB,CACvC,OAAyB,EACzB,MAA6B,EAC7B,GAAW;IAEX,yJAAyJ;IACzJ,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,2BAA2B,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,EAAE,GAAG,EAAE,yBAAyB,EAAE,KAAK,EAAE,0BAA0B,EAAE,KAAK,EAAE,CAAC,CAAC;AAClJ,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"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { DecoratorContext, Program, Interface, Operation } from "@typespec/compiler";
|
|
2
|
+
import { AddressUrlParameter } from "./address-url.js";
|
|
2
3
|
/**
|
|
3
4
|
* `@passthroughAddressUrl` - Specifies the URL to which the operation request is forwarded when the request
|
|
4
5
|
* is authenticated with an AAD account and the request is eligible for response passthrough.
|
|
5
6
|
*
|
|
6
7
|
* `@passthroughAddressUrl` can only be applied to routed interfaces (entity sets, singletons and navigation properties) or action operations.
|
|
8
|
+
*
|
|
9
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/5026dfeee13c9c0f44b4c6299193a89fbb272778aa408e4cd02be293d872b74d)
|
|
7
10
|
*/
|
|
8
11
|
export declare function $passthroughAddressUrl(context: DecoratorContext, target: Interface | Operation, url: string): void;
|
|
9
12
|
export declare function hasPassthroughAddressUrl(program: Program, target: Interface | Operation): boolean;
|
|
10
|
-
export declare function getPassthroughAddressUrl(program: Program, target: Interface | Operation):
|
|
13
|
+
export declare function getPassthroughAddressUrl(program: Program, target: Interface | Operation): AddressUrlParameter | undefined;
|
|
11
14
|
//# sourceMappingURL=passthrough-address-url.d.ts.map
|