@microsoft/typespec-msgraph 0.0.1-Preview.3 → 0.0.1-Preview.30
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/acceptable-media-types-annotation.js.map +1 -1
- package/dist/src/components/alternate-keys-annotation.js +5 -4
- package/dist/src/components/alternate-keys-annotation.js.map +1 -1
- package/dist/src/components/annotations.d.ts +12 -0
- package/dist/src/components/annotations.d.ts.map +1 -0
- package/dist/src/components/annotations.js +106 -0
- package/dist/src/components/annotations.js.map +1 -0
- package/dist/src/components/common-elements.d.ts +19 -6
- package/dist/src/components/common-elements.d.ts.map +1 -1
- package/dist/src/components/common-elements.js +2 -2
- package/dist/src/components/common-elements.js.map +1 -1
- package/dist/src/components/computed-annotation.js +1 -1
- package/dist/src/components/computed-annotation.js.map +1 -1
- package/dist/src/components/count-restrictions-annotation.d.ts +1 -1
- package/dist/src/components/count-restrictions-annotation.d.ts.map +1 -1
- package/dist/src/components/count-restrictions-annotation.js +3 -8
- package/dist/src/components/count-restrictions-annotation.js.map +1 -1
- package/dist/src/components/delta-annotation.d.ts +6 -0
- package/dist/src/components/delta-annotation.d.ts.map +1 -0
- package/dist/src/components/delta-annotation.js +18 -0
- package/dist/src/components/delta-annotation.js.map +1 -0
- package/dist/src/components/description-annotation.d.ts.map +1 -1
- package/dist/src/components/description-annotation.js +1 -0
- package/dist/src/components/description-annotation.js.map +1 -1
- package/dist/src/components/entity-container-element.d.ts +18 -3
- package/dist/src/components/entity-container-element.d.ts.map +1 -1
- package/dist/src/components/entity-container-element.js +16 -42
- package/dist/src/components/entity-container-element.js.map +1 -1
- package/dist/src/components/enum-type-element.d.ts.map +1 -1
- package/dist/src/components/enum-type-element.js +6 -3
- package/dist/src/components/enum-type-element.js.map +1 -1
- package/dist/src/components/expand-restrictions-annotation.d.ts +1 -1
- package/dist/src/components/expand-restrictions-annotation.d.ts.map +1 -1
- package/dist/src/components/expand-restrictions-annotation.js +7 -13
- package/dist/src/components/expand-restrictions-annotation.js.map +1 -1
- package/dist/src/components/filter-restrictions-annotation.d.ts +6 -0
- package/dist/src/components/filter-restrictions-annotation.d.ts.map +1 -0
- package/dist/src/components/filter-restrictions-annotation.js +10 -0
- package/dist/src/components/filter-restrictions-annotation.js.map +1 -0
- package/dist/src/components/immutable-annotation.d.ts +5 -0
- package/dist/src/components/immutable-annotation.d.ts.map +1 -0
- package/dist/src/components/immutable-annotation.js +6 -0
- package/dist/src/components/immutable-annotation.js.map +1 -0
- package/dist/src/components/index.js +3 -3
- package/dist/src/components/index.js.map +1 -1
- package/dist/src/components/insert-restrictions-annotation.d.ts +6 -0
- package/dist/src/components/insert-restrictions-annotation.d.ts.map +1 -0
- package/dist/src/components/insert-restrictions-annotation.js +10 -0
- package/dist/src/components/insert-restrictions-annotation.js.map +1 -0
- package/dist/src/components/is-url-annotation.d.ts +5 -0
- package/dist/src/components/is-url-annotation.d.ts.map +1 -0
- package/dist/src/components/is-url-annotation.js +6 -0
- package/dist/src/components/is-url-annotation.js.map +1 -0
- package/dist/src/components/open-property-type-constraint-annotation-element.d.ts +5 -0
- package/dist/src/components/open-property-type-constraint-annotation-element.d.ts.map +1 -0
- package/dist/src/components/open-property-type-constraint-annotation-element.js +7 -0
- package/dist/src/components/open-property-type-constraint-annotation-element.js.map +1 -0
- package/dist/src/components/operation-element.d.ts.map +1 -1
- package/dist/src/components/operation-element.js +33 -18
- package/dist/src/components/operation-element.js.map +1 -1
- package/dist/src/components/permissions-annotation.js.map +1 -1
- package/dist/src/components/property-element.d.ts.map +1 -1
- package/dist/src/components/property-element.js +10 -4
- package/dist/src/components/property-element.js.map +1 -1
- package/dist/src/components/reference-target-element.d.ts +9 -0
- package/dist/src/components/reference-target-element.d.ts.map +1 -0
- package/dist/src/components/reference-target-element.js +3 -0
- package/dist/src/components/reference-target-element.js.map +1 -0
- package/dist/src/components/revisions-annotation.d.ts.map +1 -1
- package/dist/src/components/revisions-annotation.js +2 -1
- package/dist/src/components/revisions-annotation.js.map +1 -1
- package/dist/src/components/schema-element.d.ts.map +1 -1
- package/dist/src/components/schema-element.js +15 -6
- package/dist/src/components/schema-element.js.map +1 -1
- package/dist/src/components/search-restrictions-annotation.d.ts +1 -1
- package/dist/src/components/search-restrictions-annotation.d.ts.map +1 -1
- package/dist/src/components/search-restrictions-annotation.js +3 -8
- package/dist/src/components/search-restrictions-annotation.js.map +1 -1
- package/dist/src/components/select-supported-annotation.d.ts +5 -0
- package/dist/src/components/select-supported-annotation.d.ts.map +1 -0
- package/dist/src/components/select-supported-annotation.js +6 -0
- package/dist/src/components/select-supported-annotation.js.map +1 -0
- package/dist/src/components/skip-supported-annotation.d.ts +1 -1
- package/dist/src/components/skip-supported-annotation.d.ts.map +1 -1
- package/dist/src/components/skip-supported-annotation.js +1 -6
- package/dist/src/components/skip-supported-annotation.js.map +1 -1
- package/dist/src/components/sort-restrictions-annotation.d.ts +1 -1
- package/dist/src/components/sort-restrictions-annotation.d.ts.map +1 -1
- package/dist/src/components/sort-restrictions-annotation.js +7 -13
- package/dist/src/components/sort-restrictions-annotation.js.map +1 -1
- package/dist/src/components/structured-type-element.d.ts +4 -7
- package/dist/src/components/structured-type-element.d.ts.map +1 -1
- package/dist/src/components/structured-type-element.js +23 -23
- package/dist/src/components/structured-type-element.js.map +1 -1
- package/dist/src/components/term-element.d.ts +9 -0
- package/dist/src/components/term-element.d.ts.map +1 -0
- package/dist/src/components/term-element.js +8 -0
- package/dist/src/components/term-element.js.map +1 -0
- package/dist/src/components/top-supported-annotation.d.ts +1 -1
- package/dist/src/components/top-supported-annotation.d.ts.map +1 -1
- package/dist/src/components/top-supported-annotation.js +2 -5
- package/dist/src/components/top-supported-annotation.js.map +1 -1
- package/dist/src/components/update-restrictions-annotation.d.ts +6 -0
- package/dist/src/components/update-restrictions-annotation.d.ts.map +1 -0
- package/dist/src/components/update-restrictions-annotation.js +8 -0
- package/dist/src/components/update-restrictions-annotation.js.map +1 -0
- 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 +12 -0
- package/dist/src/decorators/action.d.ts.map +1 -0
- package/dist/src/decorators/action.js +18 -0
- package/dist/src/decorators/action.js.map +1 -0
- package/dist/src/decorators/additional-query-parameters.d.ts +18 -0
- package/dist/src/decorators/additional-query-parameters.d.ts.map +1 -0
- package/dist/src/decorators/additional-query-parameters.js +23 -0
- package/dist/src/decorators/additional-query-parameters.js.map +1 -0
- package/dist/src/decorators/address-url-msa.d.ts +14 -0
- package/dist/src/decorators/address-url-msa.d.ts.map +1 -0
- package/dist/src/decorators/address-url-msa.js +21 -0
- package/dist/src/decorators/address-url-msa.js.map +1 -0
- package/dist/src/decorators/address-url.d.ts +18 -0
- package/dist/src/decorators/address-url.d.ts.map +1 -0
- package/dist/src/decorators/address-url.js +21 -0
- package/dist/src/decorators/address-url.js.map +1 -0
- package/dist/src/decorators/ags-attribute.d.ts +17 -0
- package/dist/src/decorators/ags-attribute.d.ts.map +1 -0
- package/dist/src/decorators/ags-attribute.js +167 -0
- package/dist/src/decorators/ags-attribute.js.map +1 -0
- package/dist/src/decorators/allowed-values.d.ts +15 -0
- package/dist/src/decorators/allowed-values.d.ts.map +1 -0
- package/dist/src/decorators/allowed-values.js +37 -0
- package/dist/src/decorators/allowed-values.js.map +1 -0
- package/dist/src/decorators/complex.d.ts +2 -0
- package/dist/src/decorators/complex.d.ts.map +1 -1
- package/dist/src/decorators/complex.js +2 -0
- package/dist/src/decorators/complex.js.map +1 -1
- package/dist/src/decorators/computed.d.ts +2 -0
- package/dist/src/decorators/computed.d.ts.map +1 -1
- package/dist/src/decorators/computed.js +2 -0
- package/dist/src/decorators/computed.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/count.d.ts +2 -0
- package/dist/src/decorators/count.d.ts.map +1 -1
- package/dist/src/decorators/count.js +2 -0
- package/dist/src/decorators/count.js.map +1 -1
- package/dist/src/decorators/delta-collection.d.ts +8 -0
- package/dist/src/decorators/delta-collection.d.ts.map +1 -0
- package/dist/src/decorators/delta-collection.js +12 -0
- package/dist/src/decorators/delta-collection.js.map +1 -0
- package/dist/src/decorators/delta.d.ts +10 -0
- package/dist/src/decorators/delta.d.ts.map +1 -0
- package/dist/src/decorators/delta.js +14 -0
- package/dist/src/decorators/delta.js.map +1 -0
- package/dist/src/decorators/deprecated-definition.d.ts +5 -4
- package/dist/src/decorators/deprecated-definition.d.ts.map +1 -1
- package/dist/src/decorators/deprecated-definition.js +1 -7
- package/dist/src/decorators/deprecated-definition.js.map +1 -1
- package/dist/src/decorators/entity.d.ts +3 -0
- package/dist/src/decorators/entity.d.ts.map +1 -1
- package/dist/src/decorators/entity.js +7 -1
- package/dist/src/decorators/entity.js.map +1 -1
- package/dist/src/decorators/expand.d.ts +4 -2
- package/dist/src/decorators/expand.d.ts.map +1 -1
- package/dist/src/decorators/expand.js +7 -1
- package/dist/src/decorators/expand.js.map +1 -1
- package/dist/src/decorators/experimental.d.ts +11 -0
- package/dist/src/decorators/experimental.d.ts.map +1 -0
- package/dist/src/decorators/experimental.js +15 -0
- package/dist/src/decorators/experimental.js.map +1 -0
- package/dist/src/decorators/filter.d.ts +13 -0
- package/dist/src/decorators/filter.d.ts.map +1 -0
- package/dist/src/decorators/filter.js +29 -0
- package/dist/src/decorators/filter.js.map +1 -0
- package/dist/src/decorators/function.d.ts +9 -3
- package/dist/src/decorators/function.d.ts.map +1 -1
- package/dist/src/decorators/function.js +7 -2
- package/dist/src/decorators/function.js.map +1 -1
- package/dist/src/decorators/global-operation.d.ts +11 -0
- package/dist/src/decorators/global-operation.d.ts.map +1 -0
- package/dist/src/decorators/global-operation.js +15 -0
- package/dist/src/decorators/global-operation.js.map +1 -0
- package/dist/src/decorators/graph-deprecated.d.ts +13 -0
- package/dist/src/decorators/graph-deprecated.d.ts.map +1 -0
- package/dist/src/decorators/graph-deprecated.js +21 -0
- package/dist/src/decorators/graph-deprecated.js.map +1 -0
- package/dist/src/decorators/graph-route.d.ts +20 -0
- package/dist/src/decorators/graph-route.d.ts.map +1 -0
- package/dist/src/decorators/graph-route.js +141 -0
- package/dist/src/decorators/graph-route.js.map +1 -0
- 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 +10 -0
- package/dist/src/decorators/immutable.d.ts.map +1 -0
- package/dist/src/decorators/immutable.js +14 -0
- package/dist/src/decorators/immutable.js.map +1 -0
- package/dist/src/decorators/index.d.ts +35 -3
- package/dist/src/decorators/index.d.ts.map +1 -1
- package/dist/src/decorators/index.js +35 -3
- package/dist/src/decorators/index.js.map +1 -1
- package/dist/src/decorators/is-owner.d.ts +12 -0
- package/dist/src/decorators/is-owner.d.ts.map +1 -0
- package/dist/src/decorators/is-owner.js +19 -0
- package/dist/src/decorators/is-owner.js.map +1 -0
- package/dist/src/decorators/limited-charset.d.ts +11 -0
- package/dist/src/decorators/limited-charset.d.ts.map +1 -0
- package/dist/src/decorators/limited-charset.js +15 -0
- package/dist/src/decorators/limited-charset.js.map +1 -0
- package/dist/src/decorators/media.d.ts +12 -0
- package/dist/src/decorators/media.d.ts.map +1 -0
- package/dist/src/decorators/media.js +18 -0
- package/dist/src/decorators/media.js.map +1 -0
- 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/order-by.d.ts +3 -2
- package/dist/src/decorators/order-by.d.ts.map +1 -1
- package/dist/src/decorators/order-by.js +3 -1
- package/dist/src/decorators/order-by.js.map +1 -1
- package/dist/src/decorators/ownerless.d.ts +10 -0
- package/dist/src/decorators/ownerless.d.ts.map +1 -0
- package/dist/src/decorators/ownerless.js +14 -0
- package/dist/src/decorators/ownerless.js.map +1 -0
- package/dist/src/decorators/paged-collection.d.ts +8 -0
- package/dist/src/decorators/paged-collection.d.ts.map +1 -0
- package/dist/src/decorators/paged-collection.js +12 -0
- package/dist/src/decorators/paged-collection.js.map +1 -0
- package/dist/src/decorators/partial.d.ts +12 -0
- package/dist/src/decorators/partial.d.ts.map +1 -0
- package/dist/src/decorators/partial.js +18 -0
- package/dist/src/decorators/partial.js.map +1 -0
- package/dist/src/decorators/passthrough-address-url-msa.d.ts +14 -0
- package/dist/src/decorators/passthrough-address-url-msa.d.ts.map +1 -0
- package/dist/src/decorators/passthrough-address-url-msa.js +20 -0
- package/dist/src/decorators/passthrough-address-url-msa.js.map +1 -0
- package/dist/src/decorators/passthrough-address-url.d.ts +14 -0
- package/dist/src/decorators/passthrough-address-url.d.ts.map +1 -0
- package/dist/src/decorators/passthrough-address-url.js +20 -0
- package/dist/src/decorators/passthrough-address-url.js.map +1 -0
- 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-definition.d.ts +5 -4
- package/dist/src/decorators/private-preview-definition.d.ts.map +1 -1
- package/dist/src/decorators/private-preview-definition.js +3 -6
- package/dist/src/decorators/private-preview-definition.js.map +1 -1
- package/dist/src/decorators/private-preview.d.ts +4 -3
- package/dist/src/decorators/private-preview.d.ts.map +1 -1
- package/dist/src/decorators/private-preview.js +3 -1
- package/dist/src/decorators/private-preview.js.map +1 -1
- package/dist/src/decorators/privileged.d.ts +11 -0
- package/dist/src/decorators/privileged.d.ts.map +1 -0
- package/dist/src/decorators/privileged.js +15 -0
- package/dist/src/decorators/privileged.js.map +1 -0
- package/dist/src/decorators/public-namespace.d.ts +12 -0
- package/dist/src/decorators/public-namespace.d.ts.map +1 -0
- package/dist/src/decorators/public-namespace.js +21 -0
- package/dist/src/decorators/public-namespace.js.map +1 -0
- 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 +17 -0
- package/dist/src/decorators/reference-target.d.ts.map +1 -0
- package/dist/src/decorators/reference-target.js +59 -0
- package/dist/src/decorators/reference-target.js.map +1 -0
- 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/required-for-create.d.ts +12 -0
- package/dist/src/decorators/required-for-create.d.ts.map +1 -0
- package/dist/src/decorators/required-for-create.js +16 -0
- package/dist/src/decorators/required-for-create.js.map +1 -0
- package/dist/src/decorators/return-source.d.ts +11 -0
- package/dist/src/decorators/return-source.d.ts.map +1 -0
- package/dist/src/decorators/return-source.js +28 -0
- package/dist/src/decorators/return-source.js.map +1 -0
- package/dist/src/decorators/search.d.ts +2 -0
- package/dist/src/decorators/search.d.ts.map +1 -1
- package/dist/src/decorators/search.js +2 -0
- package/dist/src/decorators/search.js.map +1 -1
- package/dist/src/decorators/select.d.ts +11 -0
- package/dist/src/decorators/select.d.ts.map +1 -0
- package/dist/src/decorators/select.js +15 -0
- package/dist/src/decorators/select.js.map +1 -0
- package/dist/src/decorators/shared-entity.d.ts +9 -0
- package/dist/src/decorators/shared-entity.d.ts.map +1 -0
- package/dist/src/decorators/shared-entity.js +15 -0
- package/dist/src/decorators/shared-entity.js.map +1 -0
- package/dist/src/decorators/skip.d.ts +2 -0
- package/dist/src/decorators/skip.d.ts.map +1 -1
- package/dist/src/decorators/skip.js +2 -0
- package/dist/src/decorators/skip.js.map +1 -1
- package/dist/src/decorators/term.d.ts +13 -0
- package/dist/src/decorators/term.d.ts.map +1 -0
- package/dist/src/decorators/term.js +14 -0
- package/dist/src/decorators/term.js.map +1 -0
- package/dist/src/decorators/top.d.ts +2 -0
- package/dist/src/decorators/top.d.ts.map +1 -1
- package/dist/src/decorators/top.js +2 -0
- package/dist/src/decorators/top.js.map +1 -1
- package/dist/src/decorators/workload-name-msa.d.ts +11 -0
- package/dist/src/decorators/workload-name-msa.d.ts.map +1 -0
- package/dist/src/decorators/workload-name-msa.js +15 -0
- package/dist/src/decorators/workload-name-msa.js.map +1 -0
- package/dist/src/decorators/workload-name.d.ts +11 -0
- package/dist/src/decorators/workload-name.d.ts.map +1 -0
- package/dist/src/decorators/workload-name.js +15 -0
- package/dist/src/decorators/workload-name.js.map +1 -0
- package/dist/src/decorators/workload-namespace.d.ts +12 -0
- package/dist/src/decorators/workload-namespace.d.ts.map +1 -0
- package/dist/src/decorators/workload-namespace.js +21 -0
- package/dist/src/decorators/workload-namespace.js.map +1 -0
- 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/dom/error-interceptor.d.ts +2 -0
- package/dist/src/dom/error-interceptor.d.ts.map +1 -0
- package/dist/src/dom/error-interceptor.js +13 -0
- package/dist/src/dom/error-interceptor.js.map +1 -0
- package/dist/src/dom/reconciler.js.map +1 -1
- package/dist/src/dom/renderer.d.ts +1 -0
- package/dist/src/dom/renderer.d.ts.map +1 -1
- package/dist/src/dom/renderer.js +1 -0
- package/dist/src/dom/renderer.js.map +1 -1
- package/dist/src/emitter.d.ts +2 -1
- package/dist/src/emitter.d.ts.map +1 -1
- package/dist/src/emitter.js +31 -2
- package/dist/src/emitter.js.map +1 -1
- package/dist/src/entities/address-url.d.ts +8 -0
- package/dist/src/entities/address-url.d.ts.map +1 -0
- package/dist/src/entities/address-url.js +47 -0
- package/dist/src/entities/address-url.js.map +1 -0
- package/dist/src/entities/annotations.d.ts +53 -0
- package/dist/src/entities/annotations.d.ts.map +1 -0
- package/dist/src/entities/annotations.js +185 -0
- package/dist/src/entities/annotations.js.map +1 -0
- package/dist/src/entities/entity-container.d.ts +24 -23
- package/dist/src/entities/entity-container.d.ts.map +1 -1
- package/dist/src/entities/entity-container.js +58 -119
- package/dist/src/entities/entity-container.js.map +1 -1
- package/dist/src/entities/enum.d.ts +3 -0
- package/dist/src/entities/enum.d.ts.map +1 -1
- package/dist/src/entities/enum.js +12 -5
- package/dist/src/entities/enum.js.map +1 -1
- package/dist/src/entities/model.d.ts +47 -27
- package/dist/src/entities/model.d.ts.map +1 -1
- package/dist/src/entities/model.js +357 -96
- package/dist/src/entities/model.js.map +1 -1
- package/dist/src/entities/ms-graph-route.d.ts +13 -0
- package/dist/src/entities/ms-graph-route.d.ts.map +1 -0
- package/dist/src/entities/ms-graph-route.js +67 -0
- package/dist/src/entities/ms-graph-route.js.map +1 -0
- package/dist/src/entities/namespace.d.ts +32 -4
- package/dist/src/entities/namespace.d.ts.map +1 -1
- package/dist/src/entities/namespace.js +354 -18
- package/dist/src/entities/namespace.js.map +1 -1
- package/dist/src/entities/operation.d.ts +20 -2
- package/dist/src/entities/operation.d.ts.map +1 -1
- package/dist/src/entities/operation.js +162 -25
- package/dist/src/entities/operation.js.map +1 -1
- package/dist/src/entities/property.d.ts.map +1 -1
- package/dist/src/entities/property.js +10 -0
- package/dist/src/entities/property.js.map +1 -1
- package/dist/src/entities/revision-definition.d.ts +3 -2
- package/dist/src/entities/revision-definition.d.ts.map +1 -1
- package/dist/src/entities/revision-definition.js +18 -7
- package/dist/src/entities/revision-definition.js.map +1 -1
- package/dist/src/entities/term.d.ts +8 -0
- package/dist/src/entities/term.d.ts.map +1 -0
- package/dist/src/entities/term.js +14 -0
- package/dist/src/entities/term.js.map +1 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +2 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/lib.d.ts +141 -86
- package/dist/src/lib.d.ts.map +1 -1
- package/dist/src/lib.js +90 -11
- package/dist/src/lib.js.map +1 -1
- package/dist/src/linter.d.ts +1 -2
- package/dist/src/linter.d.ts.map +1 -1
- package/dist/src/linter.js +34 -34
- package/dist/src/linter.js.map +1 -1
- package/dist/src/path-tree.d.ts +16 -0
- package/dist/src/path-tree.d.ts.map +1 -0
- package/dist/src/path-tree.js +76 -0
- package/dist/src/path-tree.js.map +1 -0
- package/dist/src/rules/abstract.d.ts +2 -1
- package/dist/src/rules/abstract.d.ts.map +1 -1
- package/dist/src/rules/abstract.js +8 -8
- package/dist/src/rules/abstract.js.map +1 -1
- package/dist/src/rules/address-url.d.ts +20 -0
- package/dist/src/rules/address-url.d.ts.map +1 -0
- package/dist/src/rules/address-url.js +248 -0
- package/dist/src/rules/address-url.js.map +1 -0
- package/dist/src/rules/allowed-values.d.ts +7 -0
- package/dist/src/rules/allowed-values.d.ts.map +1 -0
- package/dist/src/rules/allowed-values.js +59 -0
- package/dist/src/rules/allowed-values.js.map +1 -0
- package/dist/src/rules/alternate-key.d.ts +4 -3
- package/dist/src/rules/alternate-key.d.ts.map +1 -1
- package/dist/src/rules/alternate-key.js +23 -23
- package/dist/src/rules/alternate-key.js.map +1 -1
- package/dist/src/rules/collection-navigation-properties-not-nullable.d.ts +3 -0
- package/dist/src/rules/collection-navigation-properties-not-nullable.d.ts.map +1 -0
- package/dist/src/rules/collection-navigation-properties-not-nullable.js +28 -0
- package/dist/src/rules/collection-navigation-properties-not-nullable.js.map +1 -0
- package/dist/src/rules/complex.d.ts +3 -0
- package/dist/src/rules/complex.d.ts.map +1 -0
- package/dist/src/rules/complex.js +27 -0
- package/dist/src/rules/complex.js.map +1 -0
- package/dist/src/rules/computed.d.ts +2 -3
- package/dist/src/rules/computed.d.ts.map +1 -1
- package/dist/src/rules/computed.js +14 -16
- package/dist/src/rules/computed.js.map +1 -1
- package/dist/src/rules/contains.d.ts +2 -1
- package/dist/src/rules/contains.d.ts.map +1 -1
- package/dist/src/rules/contains.js +9 -8
- package/dist/src/rules/contains.js.map +1 -1
- package/dist/src/rules/count.d.ts +2 -1
- package/dist/src/rules/count.d.ts.map +1 -1
- package/dist/src/rules/count.js +12 -9
- package/dist/src/rules/count.js.map +1 -1
- package/dist/src/rules/delta.d.ts +8 -0
- package/dist/src/rules/delta.d.ts.map +1 -0
- package/dist/src/rules/delta.js +208 -0
- package/dist/src/rules/delta.js.map +1 -0
- package/dist/src/rules/disallowed-typespec-decorators.d.ts +3 -0
- package/dist/src/rules/disallowed-typespec-decorators.d.ts.map +1 -0
- package/dist/src/rules/disallowed-typespec-decorators.js +37 -0
- package/dist/src/rules/disallowed-typespec-decorators.js.map +1 -0
- 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 +9 -2
- package/dist/src/rules/entity.d.ts.map +1 -1
- package/dist/src/rules/entity.js +173 -17
- package/dist/src/rules/entity.js.map +1 -1
- package/dist/src/rules/enum.d.ts +5 -1
- package/dist/src/rules/enum.d.ts.map +1 -1
- package/dist/src/rules/enum.js +35 -6
- package/dist/src/rules/enum.js.map +1 -1
- package/dist/src/rules/expand.d.ts +3 -2
- package/dist/src/rules/expand.d.ts.map +1 -1
- package/dist/src/rules/expand.js +27 -24
- package/dist/src/rules/expand.js.map +1 -1
- package/dist/src/rules/extends-on-same-type.d.ts +3 -0
- package/dist/src/rules/extends-on-same-type.d.ts.map +1 -0
- package/dist/src/rules/extends-on-same-type.js +39 -0
- package/dist/src/rules/extends-on-same-type.js.map +1 -0
- package/dist/src/rules/filter.d.ts +7 -0
- package/dist/src/rules/filter.d.ts.map +1 -0
- package/dist/src/rules/filter.js +160 -0
- package/dist/src/rules/filter.js.map +1 -0
- package/dist/src/rules/function.d.ts +3 -1
- package/dist/src/rules/function.d.ts.map +1 -1
- package/dist/src/rules/function.js +48 -9
- package/dist/src/rules/function.js.map +1 -1
- package/dist/src/rules/global-operation.d.ts +4 -0
- package/dist/src/rules/global-operation.d.ts.map +1 -0
- package/dist/src/rules/global-operation.js +60 -0
- package/dist/src/rules/global-operation.js.map +1 -0
- package/dist/src/rules/graph-deprecated.d.ts +8 -0
- package/dist/src/rules/graph-deprecated.d.ts.map +1 -0
- package/dist/src/rules/graph-deprecated.js +152 -0
- package/dist/src/rules/graph-deprecated.js.map +1 -0
- package/dist/src/rules/graph-route.d.ts +17 -0
- package/dist/src/rules/graph-route.d.ts.map +1 -0
- package/dist/src/rules/graph-route.js +395 -0
- package/dist/src/rules/graph-route.js.map +1 -0
- package/dist/src/rules/index.d.ts +24 -4
- package/dist/src/rules/index.d.ts.map +1 -1
- package/dist/src/rules/index.js +24 -89
- package/dist/src/rules/index.js.map +1 -1
- package/dist/src/rules/limited-charset.d.ts +3 -0
- package/dist/src/rules/limited-charset.d.ts.map +1 -0
- package/dist/src/rules/limited-charset.js +42 -0
- package/dist/src/rules/limited-charset.js.map +1 -0
- package/dist/src/rules/media.d.ts +10 -0
- package/dist/src/rules/media.d.ts.map +1 -0
- package/dist/src/rules/media.js +122 -0
- package/dist/src/rules/media.js.map +1 -0
- package/dist/src/rules/model.d.ts +12 -0
- package/dist/src/rules/model.d.ts.map +1 -0
- package/dist/src/rules/model.js +135 -0
- package/dist/src/rules/model.js.map +1 -0
- package/dist/src/rules/namespace.d.ts +6 -0
- package/dist/src/rules/namespace.d.ts.map +1 -0
- package/dist/src/rules/namespace.js +110 -0
- package/dist/src/rules/namespace.js.map +1 -0
- package/dist/src/rules/open.d.ts +2 -1
- package/dist/src/rules/open.d.ts.map +1 -1
- package/dist/src/rules/open.js +9 -8
- package/dist/src/rules/open.js.map +1 -1
- package/dist/src/rules/operation-inside-interface.d.ts +7 -0
- package/dist/src/rules/operation-inside-interface.d.ts.map +1 -0
- package/dist/src/rules/operation-inside-interface.js +96 -0
- package/dist/src/rules/operation-inside-interface.js.map +1 -0
- package/dist/src/rules/order-by.d.ts +3 -2
- package/dist/src/rules/order-by.d.ts.map +1 -1
- package/dist/src/rules/order-by.js +27 -26
- package/dist/src/rules/order-by.js.map +1 -1
- package/dist/src/rules/ownerless.d.ts +11 -0
- package/dist/src/rules/ownerless.d.ts.map +1 -0
- package/dist/src/rules/ownerless.js +170 -0
- package/dist/src/rules/ownerless.js.map +1 -0
- package/dist/src/rules/partial.d.ts +9 -0
- package/dist/src/rules/partial.d.ts.map +1 -0
- package/dist/src/rules/partial.js +84 -0
- package/dist/src/rules/partial.js.map +1 -0
- package/dist/src/rules/record-t.d.ts +11 -0
- package/dist/src/rules/record-t.d.ts.map +1 -0
- package/dist/src/rules/record-t.js +129 -0
- package/dist/src/rules/record-t.js.map +1 -0
- package/dist/src/rules/reference-target.d.ts +6 -0
- package/dist/src/rules/reference-target.d.ts.map +1 -0
- package/dist/src/rules/reference-target.js +113 -0
- package/dist/src/rules/reference-target.js.map +1 -0
- package/dist/src/rules/references.d.ts +2 -1
- package/dist/src/rules/references.d.ts.map +1 -1
- package/dist/src/rules/references.js +9 -8
- package/dist/src/rules/references.js.map +1 -1
- package/dist/src/rules/required-for-create.d.ts +3 -0
- package/dist/src/rules/required-for-create.d.ts.map +1 -0
- package/dist/src/rules/required-for-create.js +41 -0
- package/dist/src/rules/required-for-create.js.map +1 -0
- package/dist/src/rules/return-source.d.ts +3 -0
- package/dist/src/rules/return-source.d.ts.map +1 -0
- package/dist/src/rules/return-source.js +27 -0
- package/dist/src/rules/return-source.js.map +1 -0
- package/dist/src/rules/search.d.ts +2 -1
- package/dist/src/rules/search.d.ts.map +1 -1
- package/dist/src/rules/search.js +12 -9
- package/dist/src/rules/search.js.map +1 -1
- package/dist/src/rules/shared-entity.d.ts +8 -0
- package/dist/src/rules/shared-entity.d.ts.map +1 -0
- package/dist/src/rules/shared-entity.js +176 -0
- package/dist/src/rules/shared-entity.js.map +1 -0
- package/dist/src/rules/skip.d.ts +2 -1
- package/dist/src/rules/skip.d.ts.map +1 -1
- package/dist/src/rules/skip.js +12 -9
- package/dist/src/rules/skip.js.map +1 -1
- package/dist/src/rules/top.d.ts +2 -1
- package/dist/src/rules/top.d.ts.map +1 -1
- package/dist/src/rules/top.js +12 -9
- package/dist/src/rules/top.js.map +1 -1
- package/dist/src/testing/index.d.ts +1 -0
- package/dist/src/testing/index.d.ts.map +1 -1
- package/dist/src/testing/index.js +21 -0
- package/dist/src/testing/index.js.map +1 -1
- package/dist/src/utils.d.ts +86 -2
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/src/utils.js +733 -22
- package/dist/src/utils.js.map +1 -1
- package/dist/src/validate.d.ts +3 -0
- package/dist/src/validate.d.ts.map +1 -0
- package/dist/src/validate.js +97 -0
- package/dist/src/validate.js.map +1 -0
- package/lib/bodies.tsp +71 -0
- package/lib/decorators.tsp +345 -23
- package/lib/deployment.tsp +18 -0
- package/lib/lib.tsp +9 -23
- package/lib/msgraph.tsp +5 -0
- package/lib/porcelain.tsp +190 -0
- package/lib/responses.tsp +59 -0
- package/lib/shared-models.tsp +30 -0
- package/package.json +24 -31
- package/dist/src/decorators/attribute-builder.d.ts +0 -2
- package/dist/src/decorators/attribute-builder.d.ts.map +0 -1
- package/dist/src/decorators/attribute-builder.js +0 -166
- package/dist/src/decorators/attribute-builder.js.map +0 -1
- package/dist/src/decorators/attributes.d.ts +0 -57
- package/dist/src/decorators/attributes.d.ts.map +0 -1
- package/dist/src/decorators/attributes.js +0 -50
- package/dist/src/decorators/attributes.js.map +0 -1
- package/dist/src/decorators/decorator-parameter.d.ts +0 -4
- package/dist/src/decorators/decorator-parameter.d.ts.map +0 -1
- package/dist/src/decorators/decorator-parameter.js +0 -2
- package/dist/src/decorators/decorator-parameter.js.map +0 -1
- package/dist/src/decorators/handlers/custom/additional-query-parameters.d.ts +0 -15
- package/dist/src/decorators/handlers/custom/additional-query-parameters.d.ts.map +0 -1
- package/dist/src/decorators/handlers/custom/additional-query-parameters.js +0 -38
- package/dist/src/decorators/handlers/custom/additional-query-parameters.js.map +0 -1
- package/dist/src/decorators/handlers/custom/ags-attribute.d.ts +0 -8
- package/dist/src/decorators/handlers/custom/ags-attribute.d.ts.map +0 -1
- package/dist/src/decorators/handlers/custom/ags-attribute.js +0 -36
- package/dist/src/decorators/handlers/custom/ags-attribute.js.map +0 -1
- package/dist/src/decorators/handlers/custom/index.d.ts +0 -3
- package/dist/src/decorators/handlers/custom/index.d.ts.map +0 -1
- package/dist/src/decorators/handlers/custom/index.js +0 -3
- package/dist/src/decorators/handlers/custom/index.js.map +0 -1
- package/dist/src/decorators/handlers/index.d.ts +0 -31
- package/dist/src/decorators/handlers/index.d.ts.map +0 -1
- package/dist/src/decorators/handlers/index.js +0 -121
- package/dist/src/decorators/handlers/index.js.map +0 -1
- package/dist/src/decorators/has-stream.d.ts +0 -11
- package/dist/src/decorators/has-stream.d.ts.map +0 -1
- package/dist/src/decorators/has-stream.js +0 -17
- package/dist/src/decorators/has-stream.js.map +0 -1
- package/dist/src/rules/has-stream.d.ts +0 -2
- package/dist/src/rules/has-stream.d.ts.map +0 -1
- package/dist/src/rules/has-stream.js +0 -29
- package/dist/src/rules/has-stream.js.map +0 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DecoratorContext, Enum, EnumMember, Interface, Model, ModelProperty, Namespace, Operation, Program, Type } from "@typespec/compiler";
|
|
2
|
+
/**
|
|
3
|
+
* `@experimental` - mark the entity as experimental
|
|
4
|
+
*
|
|
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)
|
|
8
|
+
*/
|
|
9
|
+
export declare function $experimental(context: DecoratorContext, target: Model | ModelProperty | Enum | EnumMember | Operation | Namespace | Interface): void;
|
|
10
|
+
export declare function isExperimental(program: Program, target: Type): boolean;
|
|
11
|
+
//# sourceMappingURL=experimental.d.ts.map
|
|
@@ -0,0 +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;;;;;;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"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const experimentalKey = Symbol('experimental');
|
|
2
|
+
/**
|
|
3
|
+
* `@experimental` - mark the entity as experimental
|
|
4
|
+
*
|
|
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)
|
|
8
|
+
*/
|
|
9
|
+
export function $experimental(context, target) {
|
|
10
|
+
context.program.stateSet(experimentalKey).add(target);
|
|
11
|
+
}
|
|
12
|
+
export function isExperimental(program, target) {
|
|
13
|
+
return program.stateSet(experimentalKey).has(target);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=experimental.js.map
|
|
@@ -0,0 +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;;;;;;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"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DecoratorContext, Operation, Program } from "@typespec/compiler";
|
|
2
|
+
/**
|
|
3
|
+
* `@filter` - Applies to: get operations that return collections of @entity or @complex models.
|
|
4
|
+
* Indicates that the get operation supports OData $filter query parameter.
|
|
5
|
+
*
|
|
6
|
+
* `properties` - List of property names in the model returned from the get operation that can be used in $filter query parameter.
|
|
7
|
+
*
|
|
8
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/b46fe74151e019fa69fcd11fb7dc43ad645905155182712e19410cf8bac296cf)
|
|
9
|
+
*/
|
|
10
|
+
export declare function $filter(context: DecoratorContext, target: Operation, ...properties: string[]): void;
|
|
11
|
+
export declare function getFilter(program: Program, target: Operation): string[];
|
|
12
|
+
export declare function isFilter(program: Program, target: Operation): boolean;
|
|
13
|
+
//# sourceMappingURL=filter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../../src/decorators/filter.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,WAE3D"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const filterKey = Symbol("filter");
|
|
2
|
+
/**
|
|
3
|
+
* `@filter` - Applies to: get operations that return collections of @entity or @complex models.
|
|
4
|
+
* Indicates that the get operation supports OData $filter query parameter.
|
|
5
|
+
*
|
|
6
|
+
* `properties` - List of property names in the model returned from the get operation that can be used in $filter query parameter.
|
|
7
|
+
*
|
|
8
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/b46fe74151e019fa69fcd11fb7dc43ad645905155182712e19410cf8bac296cf)
|
|
9
|
+
*/
|
|
10
|
+
export function $filter(context, target, ...properties) {
|
|
11
|
+
const sanitizedFilterProperties = sanitizeFilterProperties(properties);
|
|
12
|
+
context.program.stateMap(filterKey).set(target, sanitizedFilterProperties);
|
|
13
|
+
}
|
|
14
|
+
export function getFilter(program, target) {
|
|
15
|
+
return program.stateMap(filterKey).get(target) || [];
|
|
16
|
+
}
|
|
17
|
+
export function isFilter(program, target) {
|
|
18
|
+
return program.stateMap(filterKey).has(target);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Filters out all empty strings that could be part of the properties string array.
|
|
22
|
+
*
|
|
23
|
+
* @param properties string array containing filter parameters.
|
|
24
|
+
* @returns string array of the filter parameters
|
|
25
|
+
*/
|
|
26
|
+
function sanitizeFilterProperties(properties) {
|
|
27
|
+
return properties ? properties.filter(property => property.trim() !== "") : [];
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=filter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter.js","sourceRoot":"","sources":["../../../src/decorators/filter.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,yBAAyB,GAAG,wBAAwB,CAAC,UAAU,CAAC,CAAC;IACvE,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAC;AAC7E,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;;;;;GAKG;AACH,SAAS,wBAAwB,CAAC,UAAoB;IACpD,OAAO,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA;AAChF,CAAC"}
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import { DecoratorContext, Operation, Program } from "@typespec/compiler";
|
|
2
|
-
|
|
2
|
+
interface FunctionParameters {
|
|
3
|
+
name: string;
|
|
4
|
+
isComposable: boolean;
|
|
5
|
+
}
|
|
3
6
|
/**
|
|
4
7
|
* `@function` - mark an operation as a function
|
|
5
8
|
*
|
|
6
9
|
* `@function` can only be applied to operations.
|
|
10
|
+
*
|
|
11
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/142d47c792ef952dabc55d64691b3a0bef7a19e9dd3b6a835188efb6f76aa904)
|
|
7
12
|
*/
|
|
8
|
-
export declare function $function(context: DecoratorContext, target: Operation, name?:
|
|
13
|
+
export declare function $function(context: DecoratorContext, target: Operation, name?: string, isComposable?: boolean): void;
|
|
9
14
|
export declare function isFunction(program: Program, target: Operation): boolean;
|
|
10
|
-
export declare function getFunction(program: Program, target: Operation):
|
|
15
|
+
export declare function getFunction(program: Program, target: Operation): FunctionParameters | undefined;
|
|
16
|
+
export {};
|
|
11
17
|
//# sourceMappingURL=function.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"function.d.ts","sourceRoot":"","sources":["../../../src/decorators/function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,
|
|
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,14 @@ 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
|
-
export function $function(context, target, name) {
|
|
8
|
-
|
|
9
|
+
export function $function(context, target, name, isComposable = false) {
|
|
10
|
+
if (typeof name === "object" && (name === null || name === void 0 ? void 0 : name.name) === "null") {
|
|
11
|
+
name = "";
|
|
12
|
+
}
|
|
13
|
+
context.program.stateMap(functionKey).set(target, { name: name || target.name, isComposable });
|
|
9
14
|
}
|
|
10
15
|
export function isFunction(program, target) {
|
|
11
16
|
return program.stateMap(functionKey).has(target);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"function.js","sourceRoot":"","sources":["../../../src/decorators/function.ts"],"names":[],"mappings":"
|
|
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"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DecoratorContext, Operation, Program, Type } from "@typespec/compiler";
|
|
2
|
+
/**
|
|
3
|
+
* `@globalOperation` - specify that this operation is a global operation
|
|
4
|
+
*
|
|
5
|
+
* `@globalOperation` - can only be applied to operations
|
|
6
|
+
*
|
|
7
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/c4642f5be47133846cb7c47a825a751deb3377089dd62dabc45cf8e7b774126d)
|
|
8
|
+
*/
|
|
9
|
+
export declare function $globalOperation(context: DecoratorContext, target: Operation): void;
|
|
10
|
+
export declare function isGlobalOperation(program: Program, target: Type): boolean;
|
|
11
|
+
//# sourceMappingURL=global-operation.d.ts.map
|
|
@@ -0,0 +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;;;;;;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"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const globalOperationKey = Symbol("globalOperation");
|
|
2
|
+
/**
|
|
3
|
+
* `@globalOperation` - specify that this operation is a global operation
|
|
4
|
+
*
|
|
5
|
+
* `@globalOperation` - can only be applied to operations
|
|
6
|
+
*
|
|
7
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/c4642f5be47133846cb7c47a825a751deb3377089dd62dabc45cf8e7b774126d)
|
|
8
|
+
*/
|
|
9
|
+
export function $globalOperation(context, target) {
|
|
10
|
+
context.program.stateSet(globalOperationKey).add(target);
|
|
11
|
+
}
|
|
12
|
+
export function isGlobalOperation(program, target) {
|
|
13
|
+
return program.stateSet(globalOperationKey).has(target);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=global-operation.js.map
|
|
@@ -0,0 +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;;;;;;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"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DecoratorContext, Enum, EnumMember, Model, ModelProperty, Namespace, Operation, Program, Type } from "@typespec/compiler";
|
|
2
|
+
/**
|
|
3
|
+
* `@graphDeprecated` - Allow us to deprecate a defined element.
|
|
4
|
+
* `@graphDeprecated` - Applies to models, model properties, enums, enum members, namespaces, actions, action parameters
|
|
5
|
+
* functions, routing interfaces and operations.
|
|
6
|
+
*
|
|
7
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/19c5b2595ee7dbbdb644caa7a0f67211a30be1c44febcc072d5094ce24494372)
|
|
8
|
+
*/
|
|
9
|
+
export declare function $graphDeprecated(context: DecoratorContext, target: Model | ModelProperty | EnumMember | Enum | Operation | Namespace, name: string): void;
|
|
10
|
+
export declare function getGraphDeprecated(program: Program, target: Type): string;
|
|
11
|
+
export declare function isGraphDeprecated(program: Program, target: Type): boolean;
|
|
12
|
+
export declare function hasGraphDeprecated(program: Program, target: Type): boolean;
|
|
13
|
+
//# sourceMappingURL=graph-deprecated.d.ts.map
|
|
@@ -0,0 +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;;;;;;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"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const graphDeprecatedKey = Symbol("graphDeprecated");
|
|
2
|
+
/**
|
|
3
|
+
* `@graphDeprecated` - Allow us to deprecate a defined element.
|
|
4
|
+
* `@graphDeprecated` - Applies to models, model properties, enums, enum members, namespaces, actions, action parameters
|
|
5
|
+
* functions, routing interfaces and operations.
|
|
6
|
+
*
|
|
7
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/19c5b2595ee7dbbdb644caa7a0f67211a30be1c44febcc072d5094ce24494372)
|
|
8
|
+
*/
|
|
9
|
+
export function $graphDeprecated(context, target, name) {
|
|
10
|
+
context.program.stateMap(graphDeprecatedKey).set(target, name);
|
|
11
|
+
}
|
|
12
|
+
export function getGraphDeprecated(program, target) {
|
|
13
|
+
return program.stateMap(graphDeprecatedKey).get(target);
|
|
14
|
+
}
|
|
15
|
+
export function isGraphDeprecated(program, target) {
|
|
16
|
+
return program.stateMap(graphDeprecatedKey).has(target);
|
|
17
|
+
}
|
|
18
|
+
export function hasGraphDeprecated(program, target) {
|
|
19
|
+
return program.stateMap(graphDeprecatedKey).has(target);
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=graph-deprecated.js.map
|
|
@@ -0,0 +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;;;;;;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"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DecoratorContext, Interface, Operation, Program, Type, ModelProperty, RekeyableMap } from "@typespec/compiler";
|
|
2
|
+
/**
|
|
3
|
+
* `@graphRoute` - Allow us to define an HTTP route for an interface or operation.
|
|
4
|
+
* `@graphRoute` - Applies to interfaces and operations.
|
|
5
|
+
*
|
|
6
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/33ddaf863400239b20e87543c3662baf7ac97ab8e722fd155587e333efc0946f)
|
|
7
|
+
*/
|
|
8
|
+
export declare function $graphRoute(context: DecoratorContext, target: Interface | Operation, path: string): void;
|
|
9
|
+
export declare function resolveOperationParametersForGraphRoute(operation: Operation, graphRoute: string): RekeyableMap<string, ModelProperty>;
|
|
10
|
+
/**
|
|
11
|
+
* Extract params to be interpolated(Wrapped in '{' and '}'}) from a path/url.
|
|
12
|
+
* @param path Path/Url
|
|
13
|
+
*
|
|
14
|
+
* @example "foo/{name}/bar" -> ["name"]
|
|
15
|
+
*/
|
|
16
|
+
export declare function extractParamsFromPath(path: string): string[];
|
|
17
|
+
export declare function getGraphRoutePaths(program: Program, target: Type): string[] | undefined;
|
|
18
|
+
export declare function hasGraphRoute(program: Program, target: Type): boolean;
|
|
19
|
+
export declare function getGraphRoutes(program: Program): Map<string, Interface | Operation>;
|
|
20
|
+
//# sourceMappingURL=graph-route.d.ts.map
|
|
@@ -0,0 +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;;;;;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"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { createRekeyableMap, } from "@typespec/compiler";
|
|
2
|
+
import { extractTypesFromUnion, getNavigationSourceType } from "../utils.js";
|
|
3
|
+
const graphRouteKey = Symbol("graphRoute");
|
|
4
|
+
/**
|
|
5
|
+
* `@graphRoute` - Allow us to define an HTTP route for an interface or operation.
|
|
6
|
+
* `@graphRoute` - Applies to interfaces and operations.
|
|
7
|
+
*
|
|
8
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/33ddaf863400239b20e87543c3662baf7ac97ab8e722fd155587e333efc0946f)
|
|
9
|
+
*/
|
|
10
|
+
export function $graphRoute(context, target, path) {
|
|
11
|
+
const state = context.program.stateMap(graphRouteKey);
|
|
12
|
+
if (state.has(target)) {
|
|
13
|
+
state.set(target, [...state.get(target), path]);
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
state.set(target, [path]);
|
|
17
|
+
}
|
|
18
|
+
// Modify the operations to inject path parameters and correct resource type from interface base interface.
|
|
19
|
+
// TODO: Using @graphRoute on an operation currently does not work due to the following TypeSpec core issue
|
|
20
|
+
// https://github.com/microsoft/typespec/issues/2106
|
|
21
|
+
// Disabling all related features while we await the outcome.
|
|
22
|
+
/*
|
|
23
|
+
if (target.kind === "Operation") {
|
|
24
|
+
const returnType = getNavigationSourceType(context.program, target as Operation);
|
|
25
|
+
if (returnType !== undefined) {
|
|
26
|
+
replaceParametersOnOperation(target as Operation, routeParams);
|
|
27
|
+
replaceResourceType(context.program, target as Operation, returnType);
|
|
28
|
+
}
|
|
29
|
+
} else */
|
|
30
|
+
if (target.kind === "Interface") {
|
|
31
|
+
target.operations.forEach((operation) => {
|
|
32
|
+
const returnType = getNavigationSourceType(context.program, operation);
|
|
33
|
+
if (returnType !== undefined) {
|
|
34
|
+
replaceResourceType(context.program, operation, returnType);
|
|
35
|
+
replacePorcelainReturnType(context.program, operation, returnType);
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
}
|
|
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
|
+
}
|
|
69
|
+
function replaceResourceType(program, operation, resourceType) {
|
|
70
|
+
const [calculatedResourceType, _] = program.resolveTypeReference("MsGraph.Automatic.CalculatedResourceType");
|
|
71
|
+
if (!calculatedResourceType) {
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
const resourceCoreType = getResourceCoreType(resourceType);
|
|
75
|
+
// Replace body, if any.
|
|
76
|
+
if (operation.parameters.properties.has("body")) {
|
|
77
|
+
const property = operation.parameters.properties.get("body");
|
|
78
|
+
if ((property === null || property === void 0 ? void 0 : property.type) === calculatedResourceType) {
|
|
79
|
+
property.type = resourceCoreType;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
function getResourceCoreType(resourceType) {
|
|
84
|
+
var _a;
|
|
85
|
+
return resourceType.indexer !== undefined ? (_a = resourceType.indexer) === null || _a === void 0 ? void 0 : _a.value : resourceType;
|
|
86
|
+
}
|
|
87
|
+
export function resolveOperationParametersForGraphRoute(operation, graphRoute) {
|
|
88
|
+
const routeParams = extractParamsFromPath(graphRoute);
|
|
89
|
+
const parameters = createRekeyableMap();
|
|
90
|
+
operation.parameters.properties.forEach((property, key) => {
|
|
91
|
+
parameters.set(key, property);
|
|
92
|
+
});
|
|
93
|
+
if (parameters.has("graphRouteParams")) {
|
|
94
|
+
parameters.delete("graphRouteParams");
|
|
95
|
+
routeParams.forEach((param) => {
|
|
96
|
+
const property = {
|
|
97
|
+
name: param,
|
|
98
|
+
kind: "ModelProperty",
|
|
99
|
+
type: { name: "string", kind: "Scalar" },
|
|
100
|
+
};
|
|
101
|
+
parameters.set(param, property);
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
if (parameters.has("body")) {
|
|
105
|
+
parameters.delete("body");
|
|
106
|
+
}
|
|
107
|
+
return parameters;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Extract params to be interpolated(Wrapped in '{' and '}'}) from a path/url.
|
|
111
|
+
* @param path Path/Url
|
|
112
|
+
*
|
|
113
|
+
* @example "foo/{name}/bar" -> ["name"]
|
|
114
|
+
*/
|
|
115
|
+
export function extractParamsFromPath(path) {
|
|
116
|
+
var _a;
|
|
117
|
+
const matchResults = path.match(/\{\w+\}/g);
|
|
118
|
+
return (_a = matchResults === null || matchResults === void 0 ? void 0 : matchResults.map((s) => s.slice(1, -1))) !== null && _a !== void 0 ? _a : [];
|
|
119
|
+
}
|
|
120
|
+
export function getGraphRoutePaths(program, target) {
|
|
121
|
+
const graphRoute = program.stateMap(graphRouteKey).get(target);
|
|
122
|
+
return graphRoute;
|
|
123
|
+
}
|
|
124
|
+
export function hasGraphRoute(program, target) {
|
|
125
|
+
return program.stateMap(graphRouteKey).has(target);
|
|
126
|
+
}
|
|
127
|
+
export function getGraphRoutes(program) {
|
|
128
|
+
const graphRoutes = new Map();
|
|
129
|
+
for (const [target, paths] of program.stateMap(graphRouteKey)) {
|
|
130
|
+
for (const path of paths) {
|
|
131
|
+
switch (target.kind) {
|
|
132
|
+
case "Interface":
|
|
133
|
+
case "Operation":
|
|
134
|
+
graphRoutes.set(path, target);
|
|
135
|
+
break;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
return graphRoutes;
|
|
140
|
+
}
|
|
141
|
+
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OAAO,UAAU,CAAC;AACpB,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,OAAgB,EAAE,MAAY;IAC1D,OAAO,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACrD,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,OAAgB;IAC7C,MAAM,WAAW,GAAG,IAAI,GAAG,EAAiC,CAAC;IAC7D,KAAK,MAAM,CAAC,MAAM,EAAE,KAAK,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"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DecoratorContext, ModelProperty, Program } from "@typespec/compiler";
|
|
2
|
+
/**
|
|
3
|
+
* `@immutable` - mark a model property as immutable
|
|
4
|
+
* '@immutable' can only be applied to Model properties.
|
|
5
|
+
*
|
|
6
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/417b34458b742060e55ca729ef1280471a94fab781087f6fb855e5e9d80f5314)
|
|
7
|
+
*/
|
|
8
|
+
export declare function $immutable(context: DecoratorContext, target: ModelProperty): void;
|
|
9
|
+
export declare function isImmutable(program: Program, target: ModelProperty): boolean;
|
|
10
|
+
//# sourceMappingURL=immutable.d.ts.map
|
|
@@ -0,0 +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;;;;;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"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const immutableKey = Symbol("immutable");
|
|
2
|
+
/**
|
|
3
|
+
* `@immutable` - mark a model property as immutable
|
|
4
|
+
* '@immutable' can only be applied to Model properties.
|
|
5
|
+
*
|
|
6
|
+
* [See documentation](https://eng.ms/cid/8de40593-4e2f-4f27-b24b-9f1895402243/fid/417b34458b742060e55ca729ef1280471a94fab781087f6fb855e5e9d80f5314)
|
|
7
|
+
*/
|
|
8
|
+
export function $immutable(context, target) {
|
|
9
|
+
context.program.stateSet(immutableKey).add(target);
|
|
10
|
+
}
|
|
11
|
+
export function isImmutable(program, target) {
|
|
12
|
+
return program.stateSet(immutableKey).has(target);
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=immutable.js.map
|
|
@@ -0,0 +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;;;;;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"}
|
|
@@ -1,25 +1,57 @@
|
|
|
1
1
|
export * from "./abstract.js";
|
|
2
|
+
export * from "./action.js";
|
|
3
|
+
export * from "./additional-query-parameters.js";
|
|
4
|
+
export * from "./address-url.js";
|
|
5
|
+
export * from "./address-url-msa.js";
|
|
6
|
+
export * from "./ags-attribute.js";
|
|
7
|
+
export * from "./allowed-values.js";
|
|
2
8
|
export * from "./alternate-key.js";
|
|
3
9
|
export * from "./complex.js";
|
|
4
10
|
export * from "./computed.js";
|
|
5
11
|
export * from "./contains.js";
|
|
6
12
|
export * from "./count.js";
|
|
13
|
+
export * from "./delta.js";
|
|
14
|
+
export * from "./delta-collection.js";
|
|
7
15
|
export * from "./deprecated-definition.js";
|
|
8
16
|
export * from "./entity.js";
|
|
9
17
|
export * from "./expand.js";
|
|
18
|
+
export * from "./experimental.js";
|
|
19
|
+
export * from "./filter.js";
|
|
20
|
+
export * from "./graphFlags.js";
|
|
10
21
|
export * from "./function.js";
|
|
11
|
-
export * from "./
|
|
12
|
-
export * from "./
|
|
13
|
-
export * from "./
|
|
22
|
+
export * from "./global-operation.js";
|
|
23
|
+
export * from "./graph-deprecated.js";
|
|
24
|
+
export * from "./graph-route.js";
|
|
25
|
+
export * from "./immutable.js";
|
|
26
|
+
export * from "./is-owner.js";
|
|
27
|
+
export * from "./limited-charset.js";
|
|
28
|
+
export * from "./media.js";
|
|
14
29
|
export * from "./open.js";
|
|
15
30
|
export * from "./operation-parameters.js";
|
|
16
31
|
export * from "./order-by.js";
|
|
32
|
+
export * from "./ownerless.js";
|
|
33
|
+
export * from "./paged-collection.js";
|
|
34
|
+
export * from "./partial.js";
|
|
35
|
+
export * from "./passthrough-address-url.js";
|
|
36
|
+
export * from "./passthrough-address-url-msa.js";
|
|
37
|
+
export * from "./prefixed-graph-routes.js";
|
|
17
38
|
export * from "./private-preview-definition.js";
|
|
18
39
|
export * from "./private-preview.js";
|
|
40
|
+
export * from "./privileged.js";
|
|
41
|
+
export * from "./public-namespace.js";
|
|
19
42
|
export * from "./read-only.js";
|
|
43
|
+
export * from "./reference-target.js";
|
|
20
44
|
export * from "./references.js";
|
|
45
|
+
export * from "./required-for-create.js";
|
|
46
|
+
export * from "./return-source.js";
|
|
21
47
|
export * from "./search.js";
|
|
48
|
+
export * from "./select.js";
|
|
49
|
+
export * from "./shared-entity.js";
|
|
22
50
|
export * from "./skip.js";
|
|
51
|
+
export * from "./term.js";
|
|
23
52
|
export * from "./top.js";
|
|
53
|
+
export * from "./workload-name-msa.js";
|
|
54
|
+
export * from "./workload-name.js";
|
|
55
|
+
export * from "./workload-namespace.js";
|
|
24
56
|
export * from "./write-only.js";
|
|
25
57
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,4BA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,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,oBAAoB,CAAC;AACnC,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"}
|
|
@@ -1,25 +1,57 @@
|
|
|
1
1
|
export * from "./abstract.js";
|
|
2
|
+
export * from "./action.js";
|
|
3
|
+
export * from "./additional-query-parameters.js";
|
|
4
|
+
export * from "./address-url.js";
|
|
5
|
+
export * from "./address-url-msa.js";
|
|
6
|
+
export * from "./ags-attribute.js";
|
|
7
|
+
export * from "./allowed-values.js";
|
|
2
8
|
export * from "./alternate-key.js";
|
|
3
9
|
export * from "./complex.js";
|
|
4
10
|
export * from "./computed.js";
|
|
5
11
|
export * from "./contains.js";
|
|
6
12
|
export * from "./count.js";
|
|
13
|
+
export * from "./delta.js";
|
|
14
|
+
export * from "./delta-collection.js";
|
|
7
15
|
export * from "./deprecated-definition.js";
|
|
8
16
|
export * from "./entity.js";
|
|
9
17
|
export * from "./expand.js";
|
|
18
|
+
export * from "./experimental.js";
|
|
19
|
+
export * from "./filter.js";
|
|
20
|
+
export * from "./graphFlags.js";
|
|
10
21
|
export * from "./function.js";
|
|
11
|
-
export * from "./
|
|
12
|
-
export * from "./
|
|
13
|
-
export * from "./
|
|
22
|
+
export * from "./global-operation.js";
|
|
23
|
+
export * from "./graph-deprecated.js";
|
|
24
|
+
export * from "./graph-route.js";
|
|
25
|
+
export * from "./immutable.js";
|
|
26
|
+
export * from "./is-owner.js";
|
|
27
|
+
export * from "./limited-charset.js";
|
|
28
|
+
export * from "./media.js";
|
|
14
29
|
export * from "./open.js";
|
|
15
30
|
export * from "./operation-parameters.js";
|
|
16
31
|
export * from "./order-by.js";
|
|
32
|
+
export * from "./ownerless.js";
|
|
33
|
+
export * from "./paged-collection.js";
|
|
34
|
+
export * from "./partial.js";
|
|
35
|
+
export * from "./passthrough-address-url.js";
|
|
36
|
+
export * from "./passthrough-address-url-msa.js";
|
|
37
|
+
export * from "./prefixed-graph-routes.js";
|
|
17
38
|
export * from "./private-preview-definition.js";
|
|
18
39
|
export * from "./private-preview.js";
|
|
40
|
+
export * from "./privileged.js";
|
|
41
|
+
export * from "./public-namespace.js";
|
|
19
42
|
export * from "./read-only.js";
|
|
43
|
+
export * from "./reference-target.js";
|
|
20
44
|
export * from "./references.js";
|
|
45
|
+
export * from "./required-for-create.js";
|
|
46
|
+
export * from "./return-source.js";
|
|
21
47
|
export * from "./search.js";
|
|
48
|
+
export * from "./select.js";
|
|
49
|
+
export * from "./shared-entity.js";
|
|
22
50
|
export * from "./skip.js";
|
|
51
|
+
export * from "./term.js";
|
|
23
52
|
export * from "./top.js";
|
|
53
|
+
export * from "./workload-name-msa.js";
|
|
54
|
+
export * from "./workload-name.js";
|
|
55
|
+
export * from "./workload-namespace.js";
|
|
24
56
|
export * from "./write-only.js";
|
|
25
57
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,
|
|
1
|
+
{"version":3,"file":"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