@microsoft/typespec-msgraph 0.0.1-Preview.20 → 0.0.1-Preview.21
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/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/property-element.js +1 -1
- 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 +22 -19
- 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/flags.d.ts +2 -0
- package/dist/src/decorators/flags.d.ts.map +1 -1
- package/dist/src/decorators/flags.js +2 -0
- package/dist/src/decorators/flags.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 +2 -0
- 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/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/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 +2 -0
- package/dist/src/decorators/passthrough-address-url-msa.d.ts.map +1 -1
- package/dist/src/decorators/passthrough-address-url-msa.js +2 -0
- package/dist/src/decorators/passthrough-address-url-msa.js.map +1 -1
- package/dist/src/decorators/passthrough-address-url.d.ts +2 -0
- package/dist/src/decorators/passthrough-address-url.d.ts.map +1 -1
- package/dist/src/decorators/passthrough-address-url.js +2 -0
- package/dist/src/decorators/passthrough-address-url.js.map +1 -1
- 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/entities/annotations.d.ts.map +1 -1
- package/dist/src/entities/annotations.js +6 -6
- 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.js +3 -3
- package/dist/src/entities/enum.js.map +1 -1
- package/dist/src/entities/model.d.ts +1 -0
- package/dist/src/entities/model.d.ts.map +1 -1
- package/dist/src/entities/model.js +37 -30
- 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 +4 -7
- package/dist/src/entities/ms-graph-route.js.map +1 -1
- package/dist/src/entities/namespace.d.ts +11 -0
- package/dist/src/entities/namespace.d.ts.map +1 -1
- package/dist/src/entities/namespace.js +146 -13
- 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/lib.d.ts +4 -0
- package/dist/src/lib.d.ts.map +1 -1
- package/dist/src/lib.js +3 -1
- package/dist/src/lib.js.map +1 -1
- package/dist/src/linter.d.ts.map +1 -1
- package/dist/src/linter.js +9 -2
- package/dist/src/linter.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/expand.d.ts.map +1 -1
- package/dist/src/rules/expand.js +0 -3
- 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/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/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/utils.d.ts +19 -3
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/src/utils.js +202 -31
- package/dist/src/utils.js.map +1 -1
- package/dist/src/validate.d.ts.map +1 -1
- package/dist/src/validate.js +2 -0
- package/dist/src/validate.js.map +1 -1
- package/lib/decorators.tsp +1 -1
- package/lib/shared-models.tsp +5 -0
- package/package.json +3 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-container-element.d.ts","sourceRoot":"","sources":["../../../src/components/entity-container-element.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"entity-container-element.d.ts","sourceRoot":"","sources":["../../../src/components/entity-container-element.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAYvE,UAAU,cAAc;IACtB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,GAAG,CAAC;CAChB;AACD,QAAA,MAAM,SAAS,UAAW,cAAc,8CAA4C,CAAC;AAErF,UAAU,cAAc;IACtB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,GAAG,CAAC;CAChB;AACD,QAAA,MAAM,SAAS,UAAW,cAAc,8CAA4C,CAAC;AAErF,eAAO,MAAM,sBAAsB,EAAE,EAAE,CAAC;IACtC,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACnC,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACnC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACvC,CAKA,CAAC"}
|
|
@@ -2,6 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { ItemList } from "./common-elements.js";
|
|
3
3
|
import { NavigationPropertyBindingElement } from "./reference-target-element.js";
|
|
4
4
|
import { DeltaAnnotation } from "./delta-annotation.js";
|
|
5
|
+
import { RevisionsAnnotation } from "./revisions-annotation.js";
|
|
5
6
|
const EntityContainerElem = (props) => React.createElement("EntityContainer", props);
|
|
6
7
|
const Singleton = (props) => React.createElement("Singleton", props);
|
|
7
8
|
const EntitySet = (props) => React.createElement("EntitySet", props);
|
|
@@ -15,7 +16,9 @@ const EntitySetList = ({ elements }) => {
|
|
|
15
16
|
return React.createElement(ItemList, { items: elements, render: (element) => React.createElement(EntitySetElement, { element: element }) });
|
|
16
17
|
};
|
|
17
18
|
const SingletonElement = ({ element }) => {
|
|
18
|
-
return (React.createElement(Singleton, { Name: element.Name, Type: element.TypeName, ...element.AgsAttributes, ...element.AddressUrl, ...element.AddressUrlMsa, ...element.PassThroughAddressUrl, ...element.PassThroughAddressUrlMsa },
|
|
19
|
+
return (React.createElement(Singleton, { Name: element.Name, Type: element.TypeName, ...element.AgsAttributes, ...element.AddressUrl, ...element.AddressUrlMsa, ...element.PassThroughAddressUrl, ...element.PassThroughAddressUrlMsa },
|
|
20
|
+
element.NavigationPropertyBindingProperties ? (React.createElement(NavigationPropertyBindingElement, { Path: element.NavigationPropertyBindingProperties.Path, Target: element.NavigationPropertyBindingProperties.Target })) : null,
|
|
21
|
+
element.RevisionDefinition ? (React.createElement(RevisionsAnnotation, { definition: element.RevisionDefinition })) : null));
|
|
19
22
|
};
|
|
20
23
|
const EntitySetElement = ({ element }) => {
|
|
21
24
|
if (!element.TypeName) {
|
|
@@ -23,6 +26,7 @@ const EntitySetElement = ({ element }) => {
|
|
|
23
26
|
}
|
|
24
27
|
return (React.createElement(EntitySet, { Name: element.Name, EntityType: element.TypeName, ...element.AgsAttributes, ...element.AddressUrl, ...element.AddressUrlMsa, ...element.PassThroughAddressUrl, ...element.PassThroughAddressUrlMsa },
|
|
25
28
|
element.NavigationPropertyBindingProperties ? (React.createElement(NavigationPropertyBindingElement, { Path: element.NavigationPropertyBindingProperties.Path, Target: element.NavigationPropertyBindingProperties.Target })) : null,
|
|
26
|
-
element.DeltaProperties ? React.createElement(DeltaAnnotation, { deltaProperties: element.DeltaProperties }) : null
|
|
29
|
+
element.DeltaProperties ? React.createElement(DeltaAnnotation, { deltaProperties: element.DeltaProperties }) : null,
|
|
30
|
+
element.RevisionDefinition ? (React.createElement(RevisionsAnnotation, { definition: element.RevisionDefinition })) : null));
|
|
27
31
|
};
|
|
28
32
|
//# sourceMappingURL=entity-container-element.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-container-element.js","sourceRoot":"","sources":["../../../src/components/entity-container-element.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,OAAO,EAAE,gCAAgC,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"entity-container-element.js","sourceRoot":"","sources":["../../../src/components/entity-container-element.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,OAAO,EAAE,gCAAgC,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE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AC,CAAC,oBAAC,eAAe,IAAC,eAAe,EAAE,OAAO,CAAC,eAAe,GAAI,CAAC,CAAC,CAAC,IAAI;QAC9F,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,oBAAC,mBAAmB,IAAC,UAAU,EAAE,OAAO,CAAC,kBAAkB,GAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAC5F,CACb,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -18,7 +18,7 @@ const NavigationPropertyElement = ({ property }) => {
|
|
|
18
18
|
property.DeltaProperties ? React.createElement(DeltaAnnotation, { deltaProperties: property.DeltaProperties }) : null));
|
|
19
19
|
};
|
|
20
20
|
const StructuralPropertyElement = ({ property }) => {
|
|
21
|
-
return (React.createElement(Property, { Name: property.Name, Type: property.PropertyTypeName, ...(property.IsNullable ? {} : { Nullable: "false" }), ...property.AgsAttributes, ...(property.SupportsLimitedCharset ? { Unicode: "false" } : {}), ...property.DefaultValue ? { DefaultValue: property.DefaultValue } : {} },
|
|
21
|
+
return (React.createElement(Property, { Name: property.Name, Type: property.PropertyTypeName, ...(property.IsNullable ? {} : { Nullable: "false" }), ...property.AgsAttributes, ...(property.SupportsLimitedCharset ? { Unicode: "false" } : {}), ...property.DefaultValue ? { DefaultValue: property.DefaultValue } : {}, ...property.MaxLength ? { MaxLength: property.MaxLength } : {} },
|
|
22
22
|
React.createElement(ComputedAnnotation, { isComputed: property.IsComputed }),
|
|
23
23
|
React.createElement(PermissionsAnnotation, { permission: property.Permission }),
|
|
24
24
|
React.createElement(RevisionsAnnotation, { definition: property.RevisionDefinition }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"property-element.js","sourceRoot":"","sources":["../../../src/components/property-element.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;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AAQ,CAAC,KAAK,GAAI,CACjC,CACZ,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-element.d.ts","sourceRoot":"","sources":["../../../src/components/schema-element.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAKlC,OAAO,
|
|
1
|
+
{"version":3,"file":"schema-element.d.ts","sourceRoot":"","sources":["../../../src/components/schema-element.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAKlC,OAAO,EAAgD,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAuB1G,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC;IAAE,SAAS,EAAE,gBAAgB,CAAA;CAAE,CAqB7D,CAAC"}
|
|
@@ -3,6 +3,7 @@ import { ItemList } from "./common-elements.js";
|
|
|
3
3
|
import { EntityContainerElement } from "./entity-container-element.js";
|
|
4
4
|
import { EnumTypeList } from "./enum-type-element.js";
|
|
5
5
|
import { OperationElement } from "./operation-element.js";
|
|
6
|
+
import { NamespacesExcludedFromHavingEntityContainers } from "../entities/namespace.js";
|
|
6
7
|
import { EntityTypeElement, ComplexTypeElement } from "./structured-type-element.js";
|
|
7
8
|
import { MsGraphModelKind } from "../entities/model.js";
|
|
8
9
|
import { AllowedValuesAnnotationsList, CollectionAnnotationsList, ResourceAnnotationsList, } from "./annotations.js";
|
|
@@ -17,7 +18,9 @@ export const SchemaElement = ({ namespace }) => {
|
|
|
17
18
|
React.createElement(EnumTypeList, { elements: namespace.Enums }),
|
|
18
19
|
React.createElement(ModelList, { models: namespace.Models }),
|
|
19
20
|
React.createElement(OperationList, { operations: namespace.Operations }),
|
|
20
|
-
namespace.key &&
|
|
21
|
+
namespace.key &&
|
|
22
|
+
namespace.key === NamespacesExcludedFromHavingEntityContainers.library.toString() ||
|
|
23
|
+
namespace.key === NamespacesExcludedFromHavingEntityContainers.merged.toString() ? null : (React.createElement(EntityContainerElement, { singletons: namespace.Singletons, entitySets: namespace.EntitySets, agsAttributes: namespace.AgsAttributes })),
|
|
21
24
|
React.createElement(ResourceAnnotationsList, { elements: namespace.ResourceAnnotations }),
|
|
22
25
|
React.createElement(CollectionAnnotationsList, { elements: namespace.CollectionAnnotations }),
|
|
23
26
|
React.createElement(AllowedValuesAnnotationsList, { elements: namespace.AllowedValuesAnnotations }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-element.js","sourceRoot":"","sources":["../../../src/components/schema-element.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"schema-element.js","sourceRoot":"","sources":["../../../src/components/schema-element.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,4CAA4C,EAAoB,MAAM,0BAA0B,CAAC;AAC1G,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AACrF,OAAO,EAAE,gBAAgB,EAAgB,MAAM,sBAAsB,CAAC;AAEtE,OAAO,EACL,4BAA4B,EAC5B,yBAAyB,EACzB,uBAAuB,GACxB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,QAAQ,EA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AE,EAAE;IAC1E,OAAO,CACL,oBAAC,QAAQ,IACP,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE;YAChB,QAAQ,KAAK,CAAC,IAAI,EAAE,CAAC;gBACnB,KAAK,gBAAgB,CAAC,MAAM,CAAC,CAAC,CAAC;oBAC7B,OAAO,oBAAC,iBAAiB,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC;gBAC7C,CAAC;gBACD,KAAK,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC;oBAC9B,OAAO,oBAAC,kBAAkB,IAAC,KAAK,EAAE,KAAK,GAAI,CAAC;gBAC9C,CAAC;gBACD,OAAO,CAAC,CAAC,CAAC;oBACR,OAAO,yCAAK,CAAC;gBACf,CAAC;YACH,CAAC;QACH,CAAC,GACD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,aAAa,GAA2C,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE;IAC/E,OAAO,CACL,oBAAC,QAAQ,IAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,oBAAC,gBAAgB,IAAC,OAAO,EAAE,SAAS,GAAI,GAAI,CACjG,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -3,6 +3,8 @@ import { DecoratorContext, Model, Program } from "@typespec/compiler";
|
|
|
3
3
|
* `@abstract` - mark a model type as abstract
|
|
4
4
|
*
|
|
5
5
|
* `@abstract` can only be applied to models.
|
|
6
|
+
*
|
|
7
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/bf0c34f961f01dc641fd31b152d9e0efbc6c062c78765ae2a1197272c0296048)
|
|
6
8
|
*/
|
|
7
9
|
export declare function $abstract(context: DecoratorContext, entity: Model): void;
|
|
8
10
|
export declare function isAbstract(program: Program, property: Model): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abstract.d.ts","sourceRoot":"","sources":["../../../src/decorators/abstract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAGtE
|
|
1
|
+
{"version":3,"file":"abstract.d.ts","sourceRoot":"","sources":["../../../src/decorators/abstract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAGtE;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,KAAK,QAEjE;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,WAE3D"}
|
|
@@ -3,6 +3,8 @@ const abstractKey = Symbol("abstract");
|
|
|
3
3
|
* `@abstract` - mark a model type as abstract
|
|
4
4
|
*
|
|
5
5
|
* `@abstract` can only be applied to models.
|
|
6
|
+
*
|
|
7
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/bf0c34f961f01dc641fd31b152d9e0efbc6c062c78765ae2a1197272c0296048)
|
|
6
8
|
*/
|
|
7
9
|
export function $abstract(context, entity) {
|
|
8
10
|
context.program.stateSet(abstractKey).add(entity);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abstract.js","sourceRoot":"","sources":["../../../src/decorators/abstract.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;AACvC
|
|
1
|
+
{"version":3,"file":"abstract.js","sourceRoot":"","sources":["../../../src/decorators/abstract.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;AACvC;;;;;;GAMG;AACH,MAAM,UAAU,SAAS,CAAC,OAAyB,EAAE,MAAa;IAChE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACpD,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,OAAgB,EAAE,QAAe;IAC1D,OAAO,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACrD,CAAC"}
|
|
@@ -3,6 +3,8 @@ import { DecoratorContext, Operation, Program } from "@typespec/compiler";
|
|
|
3
3
|
* `@action` - mark an operation as an action
|
|
4
4
|
*
|
|
5
5
|
* `@action` can only be applied to operations.
|
|
6
|
+
*
|
|
7
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/1463e74c1750b7844070b0abe52d0ab56609d055e1c44825748108c4ca2b3ebd)
|
|
6
8
|
*/
|
|
7
9
|
export declare function $action(context: DecoratorContext, target: Operation, name?: string): void;
|
|
8
10
|
export declare function isAction(program: Program, target: Operation): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../../src/decorators/action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI1E
|
|
1
|
+
{"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../../src/decorators/action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI1E;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,CAAC,EAAE,MAAM,QAElF;AAED,wBAAgB,QAAQ,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,WAE3D;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,CAEjF"}
|
|
@@ -3,6 +3,8 @@ const actionKey = Symbol("action");
|
|
|
3
3
|
* `@action` - mark an operation as an action
|
|
4
4
|
*
|
|
5
5
|
* `@action` can only be applied to operations.
|
|
6
|
+
*
|
|
7
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/1463e74c1750b7844070b0abe52d0ab56609d055e1c44825748108c4ca2b3ebd)
|
|
6
8
|
*/
|
|
7
9
|
export function $action(context, target, name) {
|
|
8
10
|
context.program.stateMap(actionKey).set(target, name || target.name);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.js","sourceRoot":"","sources":["../../../src/decorators/action.ts"],"names":[],"mappings":"AAEA,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;AAEnC
|
|
1
|
+
{"version":3,"file":"action.js","sourceRoot":"","sources":["../../../src/decorators/action.ts"],"names":[],"mappings":"AAEA,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;AAEnC;;;;;;GAMG;AACH,MAAM,UAAU,OAAO,CAAC,OAAyB,EAAE,MAAiB,EAAE,IAAa;IACjF,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC;AACvE,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,OAAgB,EAAE,MAAiB;IAC1D,OAAO,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACjD,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,OAAgB,EAAE,MAAiB;IAC3D,OAAO,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACjD,CAAC"}
|
|
@@ -7,6 +7,8 @@ export interface QueryParameter {
|
|
|
7
7
|
* `@additionalQueryParameters` - Appends a key=value pair to the query string of the mapped internal URL for all models defined within the namespace.
|
|
8
8
|
*
|
|
9
9
|
* `@additionalQueryParameters` can only be applied to namespaces
|
|
10
|
+
*
|
|
11
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/4e93f56a33c33fa749ceee0eef09a39de59e9a8a2956820048a672b5c901f9f4)
|
|
10
12
|
*/
|
|
11
13
|
export declare function $additionalQueryParameters(context: DecoratorContext, target: Namespace, name: string, value: string): void;
|
|
12
14
|
export declare function getAdditionalQueryParameters(program: Program, target: Namespace): QueryParameter[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"additional-query-parameters.d.ts","sourceRoot":"","sources":["../../../src/decorators/additional-query-parameters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAEhF,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAGD
|
|
1
|
+
{"version":3,"file":"additional-query-parameters.d.ts","sourceRoot":"","sources":["../../../src/decorators/additional-query-parameters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAEhF,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAGD;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,EACjB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,QAMd;AAED,wBAAgB,4BAA4B,CAC1C,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,SAAS,GAChB,cAAc,EAAE,CAElB;AAED,wBAAgB,+BAA+B,CAC7C,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,IAAI,GACX;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAM3B"}
|
|
@@ -3,6 +3,8 @@ const additionalQueryParametersKey = Symbol("additionalQueryParameters");
|
|
|
3
3
|
* `@additionalQueryParameters` - Appends a key=value pair to the query string of the mapped internal URL for all models defined within the namespace.
|
|
4
4
|
*
|
|
5
5
|
* `@additionalQueryParameters` can only be applied to namespaces
|
|
6
|
+
*
|
|
7
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/4e93f56a33c33fa749ceee0eef09a39de59e9a8a2956820048a672b5c901f9f4)
|
|
6
8
|
*/
|
|
7
9
|
export function $additionalQueryParameters(context, target, name, value) {
|
|
8
10
|
const queryParameters = getAdditionalQueryParameters(context.program, target);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"additional-query-parameters.js","sourceRoot":"","sources":["../../../src/decorators/additional-query-parameters.ts"],"names":[],"mappings":"AAMA,MAAM,4BAA4B,GAAG,MAAM,CAAC,2BAA2B,CAAC,CAAC;AAEzE
|
|
1
|
+
{"version":3,"file":"additional-query-parameters.js","sourceRoot":"","sources":["../../../src/decorators/additional-query-parameters.ts"],"names":[],"mappings":"AAMA,MAAM,4BAA4B,GAAG,MAAM,CAAC,2BAA2B,CAAC,CAAC;AAEzE;;;;;;GAMG;AACH,MAAM,UAAU,0BAA0B,CACxC,OAAyB,EACzB,MAAiB,EACjB,IAAY,EACZ,KAAa;IAEb,MAAM,eAAe,GAAG,4BAA4B,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAC9E,eAAe,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IAEtC,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,4BAA4B,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;AACtF,CAAC;AAED,MAAM,UAAU,4BAA4B,CAC1C,OAAgB,EAChB,MAAiB;IAEjB,OAAO,OAAO,CAAC,QAAQ,CAAC,4BAA4B,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;AAC1E,CAAC;AAED,MAAM,UAAU,+BAA+B,CAC7C,OAAgB,EAChB,MAAY;IAEZ,MAAM,yBAAyB,GAAG,4BAA4B,CAAC,OAAO,EAAE,MAAmB,CAAC,CAAC;IAC7F,MAAM,eAAe,GACnB,yBAAyB;QACzB,yBAAyB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACzE,OAAO,EAAE,+BAA+B,EAAE,eAAe,EAAE,CAAC;AAC9D,CAAC"}
|
|
@@ -5,6 +5,8 @@ import { AddressUrlParameter } from "./address-url.js";
|
|
|
5
5
|
* is authenticated with a Microsoft Account.
|
|
6
6
|
*
|
|
7
7
|
* `@addressUrlMsa` 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/0a26d4be10d388591a4b9703714fa847bc046fd67c42586e8bfce603d2b43bde)
|
|
8
10
|
*/
|
|
9
11
|
export declare function $addressUrlMsa(context: DecoratorContext, target: Interface | Operation, url: string, omitRootNavigationSegment?: boolean, appendSegmentNameToAddress?: boolean): void;
|
|
10
12
|
export declare function hasAddressUrlMsa(program: Program, target: Interface | Operation): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address-url-msa.d.ts","sourceRoot":"","sources":["../../../src/decorators/address-url-msa.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACrF,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAIvD
|
|
1
|
+
{"version":3,"file":"address-url-msa.d.ts","sourceRoot":"","sources":["../../../src/decorators/address-url-msa.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACrF,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAIvD;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,GAAG,SAAS,EAC7B,GAAG,EAAE,MAAM,EACX,yBAAyB,GAAE,OAAe,EAC1C,0BAA0B,GAAE,OAAe,QAK5C;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,CAEzF;AAED,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,SAAS,GAAG,SAAS,GAC5B,mBAAmB,GAAG,SAAS,CAEjC"}
|
|
@@ -4,6 +4,8 @@ const addressUrlMsaKey = Symbol("addressUrlMsaKey");
|
|
|
4
4
|
* is authenticated with a Microsoft Account.
|
|
5
5
|
*
|
|
6
6
|
* `@addressUrlMsa` 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/0a26d4be10d388591a4b9703714fa847bc046fd67c42586e8bfce603d2b43bde)
|
|
7
9
|
*/
|
|
8
10
|
export function $addressUrlMsa(context, target, url, omitRootNavigationSegment = false, appendSegmentNameToAddress = false) {
|
|
9
11
|
context.program
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address-url-msa.js","sourceRoot":"","sources":["../../../src/decorators/address-url-msa.ts"],"names":[],"mappings":"AAGA,MAAM,gBAAgB,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;AAEpD
|
|
1
|
+
{"version":3,"file":"address-url-msa.js","sourceRoot":"","sources":["../../../src/decorators/address-url-msa.ts"],"names":[],"mappings":"AAGA,MAAM,gBAAgB,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;AAEpD;;;;;;;GAOG;AACH,MAAM,UAAU,cAAc,CAC5B,OAAyB,EACzB,MAA6B,EAC7B,GAAW,EACX,4BAAqC,KAAK,EAC1C,6BAAsC,KAAK;IAE3C,OAAO,CAAC,OAAO;SACZ,QAAQ,CAAC,gBAAgB,CAAC;SAC1B,GAAG,CAAC,MAAM,EAAE,EAAE,GAAG,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,CAAC,CAAC;AACjF,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,OAAgB,EAAE,MAA6B;IAC9E,OAAO,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxD,CAAC;AAED,MAAM,UAAU,gBAAgB,CAC9B,OAAgB,EAChB,MAA6B;IAE7B,OAAO,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxD,CAAC"}
|
|
@@ -7,8 +7,8 @@ import { MsGraphModel, MsGraphModelKind } from "../entities/model.js";
|
|
|
7
7
|
*
|
|
8
8
|
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/60673be93bd1791123d0be02d346f76f8494b8c87c9ece257f3e7bba63302d28)
|
|
9
9
|
*/
|
|
10
|
-
export declare function $agsAttribute(context: DecoratorContext, target: Model | ModelProperty | Enum | EnumMember | Operation | Interface, name: string, value: string): void;
|
|
11
|
-
export declare function getAgsAttributes(program: Program, target: Model | ModelProperty | Enum | EnumMember | Operation | Interface): Map<string, string>;
|
|
10
|
+
export declare function $agsAttribute(context: DecoratorContext, target: Model | ModelProperty | Enum | EnumMember | Operation | Interface | Namespace, name: string, value: string): void;
|
|
11
|
+
export declare function getAgsAttributes(program: Program, target: Model | ModelProperty | Enum | EnumMember | Operation | Interface | Namespace): Map<string, string>;
|
|
12
12
|
export declare function unpackAgsAttributes(program: Program, target: Type): {
|
|
13
13
|
[key: string]: string;
|
|
14
14
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ags-attribute.d.ts","sourceRoot":"","sources":["../../../src/decorators/ags-attribute.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,IAAI,EACJ,UAAU,EACV,SAAS,EACT,KAAK,EACL,aAAa,EACb,SAAS,EACT,SAAS,EACT,OAAO,EACP,IAAI,EAEL,MAAM,oBAAoB,CAAC;AAS5B,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAMtE;;;;;;GAMG;AACH,wBAAgB,aAAa,CAC3B,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,GAAG,aAAa,GAAG,IAAI,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"ags-attribute.d.ts","sourceRoot":"","sources":["../../../src/decorators/ags-attribute.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,IAAI,EACJ,UAAU,EACV,SAAS,EACT,KAAK,EACL,aAAa,EACb,SAAS,EACT,SAAS,EACT,OAAO,EACP,IAAI,EAEL,MAAM,oBAAoB,CAAC;AAS5B,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAMtE;;;;;;GAMG;AACH,wBAAgB,aAAa,CAC3B,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,GAAG,aAAa,GAAG,IAAI,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,EACrF,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,QAMd;AAED,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,KAAK,GAAG,aAAa,GAAG,IAAI,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GACpF,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAErB;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAQ7F;AAsBD,wBAAgB,eAAe,CAC7B,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,KAAK,GAAG,aAAa,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,IAAI,GAAG,UAAU,EACnF,IAAI,CAAC,EAAE,gBAAgB,GACtB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAmCxB;AA6DD,wBAAgB,6CAA6C,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAmBhL"}
|
|
@@ -77,6 +77,9 @@ export function buildAttributes(program, type, kind) {
|
|
|
77
77
|
});
|
|
78
78
|
attrs = enrichAttributesWithIsOwner(program, type, attrs, kind);
|
|
79
79
|
attrs = enrichAttributesWithIsHidden(program, type, attrs);
|
|
80
|
+
if (attrs["ags:IsHidden"] && type.kind === "Namespace") {
|
|
81
|
+
delete attrs["ags:IsHidden"];
|
|
82
|
+
}
|
|
80
83
|
return attrs;
|
|
81
84
|
}
|
|
82
85
|
function enrichAttributesWithIsOwner(program, type, attrs, kind) {
|
|
@@ -109,15 +112,27 @@ function enrichAttributesWithIsOwner(program, type, attrs, kind) {
|
|
|
109
112
|
return attrs;
|
|
110
113
|
}
|
|
111
114
|
function enrichAttributesWithIsHidden(program, type, attrs) {
|
|
112
|
-
const
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}
|
|
117
|
-
attrs = { ...attrs, ...{ "ags:IsHidden": "true" } };
|
|
115
|
+
const hiddenStatusChecks = [isPrivatePreview, isPrivileged, isExperimental];
|
|
116
|
+
let isHidden = hiddenStatusChecks.some(check => check(program, type) || namespaceHasDecorator(program, type, check));
|
|
117
|
+
if (isHidden && !attrs.hasOwnProperty('ags:IsHidden')) {
|
|
118
|
+
attrs = { ...attrs, "ags:IsHidden": "true" };
|
|
118
119
|
}
|
|
119
120
|
return attrs;
|
|
120
121
|
}
|
|
122
|
+
function namespaceHasDecorator(program, type, isDecoratorPresent) {
|
|
123
|
+
switch (type.kind) {
|
|
124
|
+
case 'Model':
|
|
125
|
+
case "Enum":
|
|
126
|
+
case "Interface":
|
|
127
|
+
case "Operation":
|
|
128
|
+
const namespace = type.namespace;
|
|
129
|
+
if (isDecoratorPresent(program, namespace)) {
|
|
130
|
+
return true;
|
|
131
|
+
}
|
|
132
|
+
break;
|
|
133
|
+
}
|
|
134
|
+
return false;
|
|
135
|
+
}
|
|
121
136
|
export function applyOwnerlessAttributeToInterfaceBindingType(program, interfaces, models) {
|
|
122
137
|
if (interfaces.size === 0) {
|
|
123
138
|
return models;
|
|
@@ -126,7 +141,7 @@ export function applyOwnerlessAttributeToInterfaceBindingType(program, interface
|
|
|
126
141
|
if (isOwnerless(program, theInterface)) {
|
|
127
142
|
const bindingType = getInterfaceNavigationSourceType(program, theInterface);
|
|
128
143
|
if (bindingType) {
|
|
129
|
-
const model =
|
|
144
|
+
const model = models.get(bindingType.name);
|
|
130
145
|
if (model) {
|
|
131
146
|
const modelAttributes = model === null || model === void 0 ? void 0 : model.AgsAttributes;
|
|
132
147
|
modelAttributes['ags:IsOwner'] = 'false';
|
|
@@ -138,16 +153,4 @@ export function applyOwnerlessAttributeToInterfaceBindingType(program, interface
|
|
|
138
153
|
});
|
|
139
154
|
return models;
|
|
140
155
|
}
|
|
141
|
-
function getModel(models, bindingType, program) {
|
|
142
|
-
let model = models.get(bindingType.name);
|
|
143
|
-
// we need this check because the partial models have keys that include random numbers
|
|
144
|
-
if (isPartial(program, bindingType)) {
|
|
145
|
-
for (const [key, value] of models) {
|
|
146
|
-
if (key.includes(bindingType.name)) {
|
|
147
|
-
model = value;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
return model;
|
|
152
|
-
}
|
|
153
156
|
//# sourceMappingURL=ags-attribute.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ags-attribute.js","sourceRoot":"","sources":["../../../src/decorators/ags-attribute.ts"],"names":[],"mappings":"AAAA,OAAO,EAWL,kBAAkB,GACnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,+BAA+B,EAAE,MAAM,kCAAkC,CAAC;AACnF,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACrE,OAAO,EAAgB,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,gCAAgC,EAAE,MAAM,aAAa,CAAC;AAE/D,MAAM,eAAe,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;AAE/C;;;;;;GAMG;AACH,MAAM,UAAU,aAAa,CAC3B,OAAyB,EACzB,
|
|
1
|
+
{"version":3,"file":"ags-attribute.js","sourceRoot":"","sources":["../../../src/decorators/ags-attribute.ts"],"names":[],"mappings":"AAAA,OAAO,EAWL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Aa,CAAC;oBAC7C,eAAe,CAAC,aAAa,CAAC,GAAG,OAAO,CAAC;oBACzC,eAAe,CAAC,0BAA0B,CAAC,GAAG,MAAM,CAAC;oBACrD,KAAK,CAAC,aAAa,GAAG,eAAe,CAAC;gBACxC,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -3,6 +3,8 @@ import { DecoratorContext, ModelProperty, Program } from "@typespec/compiler";
|
|
|
3
3
|
* `@contains` - mark a model property as a contained navigation property
|
|
4
4
|
*
|
|
5
5
|
* `@contains` can only be applied to navigation model properties.
|
|
6
|
+
*
|
|
7
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/f67194dbd2961ad9e812c57eb1fbe005913e68408ff732d50aac327103c12c34)
|
|
6
8
|
*/
|
|
7
9
|
export declare function $contains(context: DecoratorContext, entity: ModelProperty): void;
|
|
8
10
|
export declare function isContains(program: Program, property: ModelProperty): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contains.d.ts","sourceRoot":"","sources":["../../../src/decorators/contains.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI9E
|
|
1
|
+
{"version":3,"file":"contains.d.ts","sourceRoot":"","sources":["../../../src/decorators/contains.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI9E;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,aAAa,QAEzE;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa,WAEnE"}
|
|
@@ -3,6 +3,8 @@ const containsKey = Symbol("contains");
|
|
|
3
3
|
* `@contains` - mark a model property as a contained navigation property
|
|
4
4
|
*
|
|
5
5
|
* `@contains` can only be applied to navigation model properties.
|
|
6
|
+
*
|
|
7
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/f67194dbd2961ad9e812c57eb1fbe005913e68408ff732d50aac327103c12c34)
|
|
6
8
|
*/
|
|
7
9
|
export function $contains(context, entity) {
|
|
8
10
|
context.program.stateSet(containsKey).add(entity);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contains.js","sourceRoot":"","sources":["../../../src/decorators/contains.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;AAEvC
|
|
1
|
+
{"version":3,"file":"contains.js","sourceRoot":"","sources":["../../../src/decorators/contains.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;AAEvC;;;;;;GAMG;AACH,MAAM,UAAU,SAAS,CAAC,OAAyB,EAAE,MAAqB;IACxE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACpD,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,OAAgB,EAAE,QAAuB;IAClE,OAAO,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AACrD,CAAC"}
|
|
@@ -3,6 +3,8 @@ import { DecoratorContext, Namespace, Program } from "@typespec/compiler";
|
|
|
3
3
|
* `@deprecatedDefinition` - create a reusable deprecation definition.
|
|
4
4
|
*
|
|
5
5
|
* `@deprecatedDefinition` can only be applied to namespaces.
|
|
6
|
+
*
|
|
7
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/4f9dd3c25cc40429ef717fb0d984be99492fea1d16dae579e3bfea92de188598)
|
|
6
8
|
*/
|
|
7
9
|
export interface DeprecatedDefinitionParameters {
|
|
8
10
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deprecated-definition.d.ts","sourceRoot":"","sources":["../../../src/decorators/deprecated-definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE1E
|
|
1
|
+
{"version":3,"file":"deprecated-definition.d.ts","sourceRoot":"","sources":["../../../src/decorators/deprecated-definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE1E;;;;;;GAMG;AACH,MAAM,WAAW,8BAA8B;IAC7C,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB;AAID;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,EACjB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,EAChB,gBAAgB,EAAE,MAAM,EACxB,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,QAMpB;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,GAAG,OAAO,CAErF;AAED,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,SAAS,GAChB,GAAG,CAAC,MAAM,EAAE,8BAA8B,CAAC,CAK7C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deprecated-definition.js","sourceRoot":"","sources":["../../../src/decorators/deprecated-definition.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deprecated-definition.js","sourceRoot":"","sources":["../../../src/decorators/deprecated-definition.ts"],"names":[],"mappings":"AAiBA,MAAM,uBAAuB,GAAG,MAAM,CAAC,sBAAsB,CAAC,CAAC;AAE/D;;;GAGG;AACH,MAAM,UAAU,qBAAqB,CACnC,OAAyB,EACzB,MAAiB,EACjB,IAAY,EACZ,QAAgB,EAChB,gBAAwB,EACxB,WAAmB,EACnB,WAAmB;IAEnB,MAAM,WAAW,GAAG,wBAAwB,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IACtE,WAAW,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,gBAAgB,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC,CAAC;IAEtF,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;AAC7E,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,OAAgB,EAAE,MAAiB;IAC1E,OAAO,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,UAAU,wBAAwB,CACtC,OAAgB,EAChB,MAAiB;IAEjB,OAAO,CACL,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC;QACrD,IAAI,GAAG,EAA0C,CAClD,CAAC;AACJ,CAAC"}
|
|
@@ -4,6 +4,8 @@ import { DecoratorContext, Operation, Program } from "@typespec/compiler";
|
|
|
4
4
|
* Indicates that the get operation supports the OData $expand query parameter.
|
|
5
5
|
*
|
|
6
6
|
* `properties` - Property names in the model returned from the get operation that can be used in a $expand query parameter.
|
|
7
|
+
*
|
|
8
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/93bb7e256a1fc0221a42ac770ee7cbaba8375f07d675ddcc754509cf14767d44)
|
|
7
9
|
*/
|
|
8
10
|
export declare function $expand(context: DecoratorContext, target: Operation, ...properties: string[]): void;
|
|
9
11
|
export declare function getExpand(program: Program, target: Operation): string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expand.d.ts","sourceRoot":"","sources":["../../../src/decorators/expand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI1E
|
|
1
|
+
{"version":3,"file":"expand.d.ts","sourceRoot":"","sources":["../../../src/decorators/expand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI1E;;;;;;;GAOG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,UAAU,EAAE,MAAM,EAAE,QAG5F;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,GAAG,MAAM,EAAE,CAEvE;AAED,wBAAgB,QAAQ,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,GAAG,OAAO,CAErE;AAED,wBAAgB,wBAAwB,CAAC,WAAW,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAExE"}
|
|
@@ -4,6 +4,8 @@ const expandKey = Symbol("expand");
|
|
|
4
4
|
* Indicates that the get operation supports the OData $expand query parameter.
|
|
5
5
|
*
|
|
6
6
|
* `properties` - Property names in the model returned from the get operation that can be used in a $expand query parameter.
|
|
7
|
+
*
|
|
8
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/93bb7e256a1fc0221a42ac770ee7cbaba8375f07d675ddcc754509cf14767d44)
|
|
7
9
|
*/
|
|
8
10
|
export function $expand(context, target, ...properties) {
|
|
9
11
|
const sanitizedProperties = sanitizeExpandProperties(properties);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expand.js","sourceRoot":"","sources":["../../../src/decorators/expand.ts"],"names":[],"mappings":"AAEA,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;AAEnC
|
|
1
|
+
{"version":3,"file":"expand.js","sourceRoot":"","sources":["../../../src/decorators/expand.ts"],"names":[],"mappings":"AAEA,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;AAEnC;;;;;;;GAOG;AACH,MAAM,UAAU,OAAO,CAAC,OAAyB,EAAE,MAAiB,EAAE,GAAG,UAAoB;IAC3F,MAAM,mBAAmB,GAAG,wBAAwB,CAAC,UAAU,CAAC,CAAC;IACjE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;AACvE,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,OAAgB,EAAE,MAAiB;IAC3D,OAAO,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;AACvD,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,OAAgB,EAAE,MAAiB;IAC1D,OAAO,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACjD,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,WAAqB;IAC5D,OAAO,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AAC7E,CAAC"}
|
|
@@ -3,6 +3,8 @@ import { DecoratorContext, Enum, EnumMember, Interface, Model, ModelProperty, Na
|
|
|
3
3
|
* `@experimental` - mark the entity as experimental
|
|
4
4
|
*
|
|
5
5
|
* `@experimental` can be applied to Model, ModelProperty, Enum, EnumMember, Operation, Namespace, Interface.
|
|
6
|
+
*
|
|
7
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/537d3f92f58541aca46b97d1785d70e108f2ff888ee357430d1efe57d10244b2)
|
|
6
8
|
*/
|
|
7
9
|
export declare function $experimental(context: DecoratorContext, target: Model | ModelProperty | Enum | EnumMember | Operation | Namespace | Interface): void;
|
|
8
10
|
export declare function isExperimental(program: Program, target: Type): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"experimental.d.ts","sourceRoot":"","sources":["../../../src/decorators/experimental.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EACvB,IAAI,EACJ,UAAU,EACV,SAAS,EACT,KAAK,EACL,aAAa,EACb,SAAS,EACT,SAAS,EACT,OAAO,EACP,IAAI,EACL,MAAM,oBAAoB,CAAC;AAI5B
|
|
1
|
+
{"version":3,"file":"experimental.d.ts","sourceRoot":"","sources":["../../../src/decorators/experimental.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EACvB,IAAI,EACJ,UAAU,EACV,SAAS,EACT,KAAK,EACL,aAAa,EACb,SAAS,EACT,SAAS,EACT,OAAO,EACP,IAAI,EACL,MAAM,oBAAoB,CAAC;AAI5B;;;;;;GAMG;AACH,wBAAgB,aAAa,CAC3B,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,GAAG,aAAa,GAAG,IAAI,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,QAGtF;AAGD,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAG,OAAO,CAEtE"}
|
|
@@ -3,6 +3,8 @@ const experimentalKey = Symbol('experimental');
|
|
|
3
3
|
* `@experimental` - mark the entity as experimental
|
|
4
4
|
*
|
|
5
5
|
* `@experimental` can be applied to Model, ModelProperty, Enum, EnumMember, Operation, Namespace, Interface.
|
|
6
|
+
*
|
|
7
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/537d3f92f58541aca46b97d1785d70e108f2ff888ee357430d1efe57d10244b2)
|
|
6
8
|
*/
|
|
7
9
|
export function $experimental(context, target) {
|
|
8
10
|
context.program.stateSet(experimentalKey).add(target);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"experimental.js","sourceRoot":"","sources":["../../../src/decorators/experimental.ts"],"names":[],"mappings":"AAYA,MAAM,eAAe,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;AAE/C
|
|
1
|
+
{"version":3,"file":"experimental.js","sourceRoot":"","sources":["../../../src/decorators/experimental.ts"],"names":[],"mappings":"AAYA,MAAM,eAAe,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;AAE/C;;;;;;GAMG;AACH,MAAM,UAAU,aAAa,CAC3B,OAAyB,EACzB,MAAqF;IAErF,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACxD,CAAC;AAGD,MAAM,UAAU,cAAc,CAAC,OAAgB,EAAE,MAAY;IAC3D,OAAO,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACvD,CAAC"}
|
|
@@ -3,6 +3,8 @@ import { DecoratorContext, Enum, Program } from "@typespec/compiler";
|
|
|
3
3
|
* `@flags` - mark an enum as a flag.
|
|
4
4
|
*
|
|
5
5
|
* `@flags` can only be applied to enums.
|
|
6
|
+
*
|
|
7
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/6cd40d47c24c868aacf8a4d2521e4e17109ea59def75224be431f695c867bf91)
|
|
6
8
|
*/
|
|
7
9
|
export declare function $flags(context: DecoratorContext, target: Enum): void;
|
|
8
10
|
export declare function isFlags(program: Program, target: Enum): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flags.d.ts","sourceRoot":"","sources":["../../../src/decorators/flags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAIrE
|
|
1
|
+
{"version":3,"file":"flags.d.ts","sourceRoot":"","sources":["../../../src/decorators/flags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAIrE;;;;;;GAMG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,IAAI,QAE7D;AAED,wBAAgB,OAAO,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,WAErD"}
|
|
@@ -3,6 +3,8 @@ const flagsKey = Symbol("flags");
|
|
|
3
3
|
* `@flags` - mark an enum as a flag.
|
|
4
4
|
*
|
|
5
5
|
* `@flags` can only be applied to enums.
|
|
6
|
+
*
|
|
7
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/6cd40d47c24c868aacf8a4d2521e4e17109ea59def75224be431f695c867bf91)
|
|
6
8
|
*/
|
|
7
9
|
export function $flags(context, target) {
|
|
8
10
|
context.program.stateSet(flagsKey).add(target);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flags.js","sourceRoot":"","sources":["../../../src/decorators/flags.ts"],"names":[],"mappings":"AAEA,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;AAEjC
|
|
1
|
+
{"version":3,"file":"flags.js","sourceRoot":"","sources":["../../../src/decorators/flags.ts"],"names":[],"mappings":"AAEA,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;AAEjC;;;;;;GAMG;AACH,MAAM,UAAU,MAAM,CAAC,OAAyB,EAAE,MAAY;IAC5D,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACjD,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,OAAgB,EAAE,MAAY;IACpD,OAAO,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AAChD,CAAC"}
|
|
@@ -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,6 +3,8 @@ 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
10
|
if (typeof name === "object" && name.name === "null") {
|
|
@@ -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,IAAK,IAAiC,CAAC,IAAI,KAAK,MAAM,EAAC,CAAC;QACjF,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"}
|