@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
package/lib/decorators.tsp
CHANGED
|
@@ -7,6 +7,68 @@ using TypeSpec.Reflection;
|
|
|
7
7
|
*/
|
|
8
8
|
extern dec abstract(target: Model);
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* `@action` - mark an operation as an action
|
|
12
|
+
*
|
|
13
|
+
* `@action` can only be applied to operations.
|
|
14
|
+
*/
|
|
15
|
+
extern dec action(target: Operation, name?: valueof string);
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* `@additionalQueryParameters` - Appends a key=value pair to the query string of the mapped internal URL for all models defined within the namespace.
|
|
19
|
+
*
|
|
20
|
+
* `@additionalQueryParameters` can only be applied to namespaces
|
|
21
|
+
*/
|
|
22
|
+
extern dec additionalQueryParameters(
|
|
23
|
+
target: Namespace,
|
|
24
|
+
name: valueof string,
|
|
25
|
+
value: valueof string
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* `@addressUrl` - Specifies the URL to which the operation request is forwarded when the request
|
|
30
|
+
* is authenticated with an AAD account.
|
|
31
|
+
*
|
|
32
|
+
* `@addressUrl` can only be applied to routed interfaces (entity sets, singletons and navigation properties) or action operations.
|
|
33
|
+
*/
|
|
34
|
+
extern dec addressUrl(
|
|
35
|
+
target: Interface | Operation,
|
|
36
|
+
url: valueof string,
|
|
37
|
+
omitRootNavigationSegment?: valueof boolean,
|
|
38
|
+
appendSegmentNameToAddress?: valueof boolean
|
|
39
|
+
);
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* `@addressUrlMsa` - Specifies the URL to which the operation request is forwarded when the request
|
|
43
|
+
* is authenticated with a Microsoft Account.
|
|
44
|
+
*
|
|
45
|
+
* `@addressUrlMsa` can only be applied to routed interfaces (entity sets, singletons and navigation properties) or action operations.
|
|
46
|
+
*/
|
|
47
|
+
extern dec addressUrlMsa(
|
|
48
|
+
target: Interface | Operation,
|
|
49
|
+
url: valueof string,
|
|
50
|
+
omitRootNavigationSegment?: valueof boolean,
|
|
51
|
+
appendSegmentNameToAddress?: valueof boolean
|
|
52
|
+
);
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* `@agsAttribute` - Allows all AGS CSDL extensions that are not yet modelled explicitly in TypeSpec to be maintained
|
|
56
|
+
*
|
|
57
|
+
* `@agsAttribute` - Applies to models.
|
|
58
|
+
*/
|
|
59
|
+
extern dec agsAttribute(
|
|
60
|
+
target: Model | ModelProperty | Enum | EnumMember | Operation | Interface | Namespace,
|
|
61
|
+
name: valueof string,
|
|
62
|
+
value: valueof string
|
|
63
|
+
);
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* `@allowedValues` - mark model property with allowedValues.
|
|
67
|
+
*
|
|
68
|
+
* `@allowedValues` - can only be applied to model properties.
|
|
69
|
+
*/
|
|
70
|
+
extern dec allowedValues(target: ModelProperty, ...values: valueof unknown[]);
|
|
71
|
+
|
|
10
72
|
/**
|
|
11
73
|
* `@alternateKey` - mark a model property as an alternateKey
|
|
12
74
|
*
|
|
@@ -42,17 +104,32 @@ extern dec contains(target: ModelProperty);
|
|
|
42
104
|
*/
|
|
43
105
|
extern dec count(target: Operation);
|
|
44
106
|
|
|
107
|
+
/**
|
|
108
|
+
* `@delta` - mark an operation as a delta operation
|
|
109
|
+
*
|
|
110
|
+
* `@delta` can only be applied to operations.
|
|
111
|
+
*/
|
|
112
|
+
|
|
113
|
+
extern dec delta(target: Operation);
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* `@deltaCollection` - mark a model as representing a delta paged collection.
|
|
117
|
+
*
|
|
118
|
+
* `@deltaCollection` can only be applied to models.
|
|
119
|
+
*/
|
|
120
|
+
extern dec deltaCollection(target: Model);
|
|
121
|
+
|
|
45
122
|
/**
|
|
46
123
|
* `@deprecatedDefinition` - Allow us create a reusable deprecation definition.
|
|
47
124
|
* `@deprecatedDefinition` - Applies only to namespaces.
|
|
48
125
|
*/
|
|
49
126
|
extern dec deprecatedDefinition(
|
|
50
127
|
target: Namespace,
|
|
51
|
-
name: string,
|
|
52
|
-
category: string,
|
|
53
|
-
announcementDate: string,
|
|
54
|
-
removalDate: string,
|
|
55
|
-
description: string
|
|
128
|
+
name: valueof string,
|
|
129
|
+
category: valueof string,
|
|
130
|
+
announcementDate: valueof string,
|
|
131
|
+
removalDate: valueof string,
|
|
132
|
+
description: valueof string
|
|
56
133
|
);
|
|
57
134
|
|
|
58
135
|
/**
|
|
@@ -69,21 +146,120 @@ extern dec entity(target: Model);
|
|
|
69
146
|
* `properties` - Property names in the model returned from the get that can be used in a $expand query parameter.
|
|
70
147
|
* At least one property must be specified.
|
|
71
148
|
*/
|
|
72
|
-
extern dec expand(
|
|
149
|
+
extern dec expand(
|
|
150
|
+
target: Operation,
|
|
151
|
+
property: valueof string,
|
|
152
|
+
...otherProperties: valueof string[]
|
|
153
|
+
);
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* `@experimental` - mark the entity as experimental
|
|
157
|
+
*
|
|
158
|
+
* `@experimental` can be applied to Model, ModelProperty, Enum, EnumMember, Operation, Namespace, Interface.
|
|
159
|
+
*/
|
|
160
|
+
extern dec experimental(
|
|
161
|
+
target:
|
|
162
|
+
| Model
|
|
163
|
+
| ModelProperty
|
|
164
|
+
| Enum
|
|
165
|
+
| EnumMember
|
|
166
|
+
| Operation
|
|
167
|
+
| Namespace
|
|
168
|
+
| Interface
|
|
169
|
+
);
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* `@filter` - Applies to: get operations that return collections of @entity or @complex models.
|
|
173
|
+
* Indicates that the get operation supports OData $filter query parameter.
|
|
174
|
+
*
|
|
175
|
+
* `properties` - array of property names in the model returned
|
|
176
|
+
* from the get operation that can be used in $filter query parameter.
|
|
177
|
+
*/
|
|
178
|
+
extern dec filter(
|
|
179
|
+
target: Operation,
|
|
180
|
+
property: valueof string,
|
|
181
|
+
...properties: valueof string[]
|
|
182
|
+
);
|
|
183
|
+
|
|
73
184
|
|
|
74
185
|
/**
|
|
75
186
|
* `@function` - mark an operation as a function
|
|
187
|
+
*
|
|
188
|
+
* `@function` can only be applied to operations.
|
|
189
|
+
*/
|
|
190
|
+
extern dec function(target: Operation, name?: valueof string | null, isComposable?: valueof boolean);
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* `@globalOperation` - mark an operation as a globalOperation
|
|
194
|
+
*
|
|
195
|
+
* `@globalOperation` can only be applied to operations.
|
|
196
|
+
*/
|
|
197
|
+
extern dec globalOperation(target: Operation);
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* `@graphDeprecated` - mark an entity as graphDeprecated.
|
|
201
|
+
*
|
|
202
|
+
* `@graphDeprecated` can be applied to Model, ModelProperty, Enum, EnumMember, Operation, Namespace, Interface.
|
|
203
|
+
*/
|
|
204
|
+
extern dec graphDeprecated(
|
|
205
|
+
target:
|
|
206
|
+
| Model
|
|
207
|
+
| ModelProperty
|
|
208
|
+
| Enum
|
|
209
|
+
| EnumMember
|
|
210
|
+
| Operation
|
|
211
|
+
| Namespace
|
|
212
|
+
| Interface,
|
|
213
|
+
name: valueof string
|
|
214
|
+
);
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* `@graphFlags` - mark an enumeration type as a flag.
|
|
218
|
+
*
|
|
219
|
+
* `@graphFlags` can only be applied to enums.
|
|
220
|
+
*/
|
|
221
|
+
extern dec graphFlags(target: Enum);
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* `@graphRoute` - mark an interface or operation with an HTTP route.
|
|
225
|
+
*
|
|
226
|
+
* `@graphRoute` - can only be applied to interfaces or operations.
|
|
227
|
+
*/
|
|
228
|
+
// TODO: Using @graphRoute on an operation currently does not work due to the following TypeSpec core issue
|
|
229
|
+
// https://github.com/microsoft/typespec/issues/2106
|
|
230
|
+
// Disabling all related features while we await the outcome.
|
|
231
|
+
extern dec graphRoute(
|
|
232
|
+
target: Interface, /* | Operation */
|
|
233
|
+
path: valueof string
|
|
234
|
+
);
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* `@immutable` - mark a model property as immutable.
|
|
238
|
+
*
|
|
239
|
+
* `@immutable` can only be applied to model properties.
|
|
240
|
+
*/
|
|
241
|
+
extern dec immutable(target: ModelProperty);
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* `@limitedCharset` - indicates that the full unicode character set is not supported by the underlying back-end service that implements the API.
|
|
245
|
+
*
|
|
246
|
+
* `@limitedCharset` can only be applied to string models properties, string parameters or their collections.
|
|
247
|
+
*/
|
|
248
|
+
extern dec limitedCharset(target: ModelProperty);
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* `@media` - indicates that an `@entity` model is a media entity.
|
|
76
252
|
*
|
|
77
|
-
*
|
|
253
|
+
* `mediaTypes` - list of media types supported by the entity. If not specified, the entity supports any media type.
|
|
78
254
|
*/
|
|
79
|
-
extern dec
|
|
255
|
+
extern dec media(target: Model, ...mediaTypes: valueof string[]);
|
|
80
256
|
|
|
81
257
|
/**
|
|
82
|
-
* `@
|
|
258
|
+
* `@ownerless` - mark an interface as ownerless.
|
|
83
259
|
*
|
|
84
|
-
* `
|
|
260
|
+
* `@ownerless` can only be applied to interfaces.
|
|
85
261
|
*/
|
|
86
|
-
extern dec
|
|
262
|
+
extern dec ownerless(target: Interface);
|
|
87
263
|
|
|
88
264
|
/**
|
|
89
265
|
* `@open` - mark a model type as open
|
|
@@ -108,7 +284,58 @@ extern dec operationParameters(target: Model);
|
|
|
108
284
|
* `properties` - List of property names in the model returned from the get operation that can be used in a $orderBy query parameter.
|
|
109
285
|
* At least one property must be specified.
|
|
110
286
|
*/
|
|
111
|
-
extern dec orderBy(
|
|
287
|
+
extern dec orderBy(
|
|
288
|
+
target: Operation,
|
|
289
|
+
property: valueof string,
|
|
290
|
+
...otherProperties: valueof string[]
|
|
291
|
+
);
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* `@pagedCollection` - mark a model as representing a paged collection.
|
|
295
|
+
*
|
|
296
|
+
* `@pagedCollection` can only be applied to models.
|
|
297
|
+
*/
|
|
298
|
+
extern dec pagedCollection(target: Model);
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* `@partial` - Mark a model as partial.
|
|
302
|
+
*
|
|
303
|
+
* `@partial` can only be applied to models.
|
|
304
|
+
*/
|
|
305
|
+
extern dec partial(target: Model, value: Model);
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* `@passthroughAddressUrl` - Specifies the URL to which the operation request is forwarded when the request
|
|
309
|
+
* is authenticated with an AAD account and the request is eligible for response passthrough.
|
|
310
|
+
*
|
|
311
|
+
* `@passthroughAddressUrl` can only be applied to routed interfaces (entity sets, singletons and navigation properties) or action operations.
|
|
312
|
+
*/
|
|
313
|
+
extern dec passthroughAddressUrl(
|
|
314
|
+
target: Interface | Operation,
|
|
315
|
+
url: valueof string
|
|
316
|
+
);
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* `@passthroughAddressUrlMsa` - Specifies the URL to which the operation request is forwarded when the request
|
|
320
|
+
* is authenticated with a Microsoft account and the request is eligible for response passthrough.
|
|
321
|
+
*
|
|
322
|
+
* `@passthroughAddressUrlMsa` can only be applied to routed interfaces (entity sets, singletons and navigation properties) or action operations.
|
|
323
|
+
*/
|
|
324
|
+
extern dec passthroughAddressUrlMsa(
|
|
325
|
+
target: Interface | Operation,
|
|
326
|
+
url: valueof string
|
|
327
|
+
);
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* `@prefixedGraphRoutes` - mark an interface or operation with multiple HTTP routes based on catenating a set of prefixes to a path.
|
|
331
|
+
*
|
|
332
|
+
* `@prefixedGraphRoutes` - can only be applied to interfaces.
|
|
333
|
+
*/
|
|
334
|
+
extern dec prefixedGraphRoutes(
|
|
335
|
+
target: Interface,
|
|
336
|
+
prefixes: string[],
|
|
337
|
+
path?: valueof string
|
|
338
|
+
);
|
|
112
339
|
|
|
113
340
|
/**
|
|
114
341
|
* `@privatePreview` - Allow us define a privatePreview element.
|
|
@@ -116,7 +343,7 @@ extern dec orderBy(target: Operation, property: string, ...otherProperties: stri
|
|
|
116
343
|
*/
|
|
117
344
|
extern dec privatePreview(
|
|
118
345
|
target: Model | ModelProperty | EnumMember | Enum | Operation | Namespace,
|
|
119
|
-
name: string
|
|
346
|
+
name: valueof string
|
|
120
347
|
);
|
|
121
348
|
|
|
122
349
|
/**
|
|
@@ -125,23 +352,27 @@ extern dec privatePreview(
|
|
|
125
352
|
*/
|
|
126
353
|
extern dec privatePreviewDefinition(
|
|
127
354
|
target: Namespace,
|
|
128
|
-
name: string,
|
|
129
|
-
announcementDate: string,
|
|
130
|
-
removalDate: string,
|
|
131
|
-
owner
|
|
355
|
+
name: valueof string,
|
|
356
|
+
announcementDate: valueof string,
|
|
357
|
+
removalDate: valueof string,
|
|
358
|
+
owner?: valueof string
|
|
132
359
|
);
|
|
133
360
|
|
|
134
361
|
/**
|
|
135
|
-
* `@
|
|
136
|
-
*
|
|
362
|
+
* `@privileged` - mark the entity as privileged
|
|
363
|
+
*
|
|
364
|
+
* `@privileged` can be applied to Model, ModelProperty, Enum, EnumMember, Operation, Namespace.
|
|
137
365
|
*/
|
|
138
|
-
extern dec
|
|
366
|
+
extern dec privileged(
|
|
367
|
+
target: Model | ModelProperty | Enum | EnumMember | Operation | Namespace
|
|
368
|
+
);
|
|
139
369
|
|
|
140
370
|
/**
|
|
141
|
-
* `@
|
|
142
|
-
*
|
|
371
|
+
* `@publicNamespace` - defines the namespace to be used in generating CSDL output for all elements contained within the namespace
|
|
372
|
+
*
|
|
373
|
+
* `@publicNamespace` can only be applied to namespaces.
|
|
143
374
|
*/
|
|
144
|
-
extern dec
|
|
375
|
+
extern dec publicNamespace(target: Namespace, name: valueof string);
|
|
145
376
|
|
|
146
377
|
/**
|
|
147
378
|
* `@readOnly` - mark a model property as readOnly property
|
|
@@ -157,15 +388,106 @@ extern dec readOnly(target: ModelProperty);
|
|
|
157
388
|
*/
|
|
158
389
|
extern dec references(target: ModelProperty);
|
|
159
390
|
|
|
391
|
+
/**
|
|
392
|
+
* `@referenceTarget` - mark an interface with referenceTarget
|
|
393
|
+
*
|
|
394
|
+
* `@references` can only be applied to interfaces.
|
|
395
|
+
*/
|
|
396
|
+
extern dec referenceTarget(target: Interface, value: valueof string);
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* `@requiredForCreate` - mark a model property as required when a request is made to
|
|
400
|
+
* Graph to create or update a resource.
|
|
401
|
+
*
|
|
402
|
+
* `@requiredForCreate` can only be applied to model properties.
|
|
403
|
+
*/
|
|
404
|
+
extern dec requiredForCreate(target: ModelProperty);
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* '@returnSource' - mark an action or a function as having an entitysetpath.
|
|
408
|
+
* '@returnSource' - can only be applied to action and function operations.
|
|
409
|
+
*/
|
|
410
|
+
extern dec returnSource(target: Operation, path : valueof string | null);
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* `@search` - Applies to: get operations that return collections.
|
|
414
|
+
* Indicates that the get operation supports the OData $search query parameter.
|
|
415
|
+
*/
|
|
416
|
+
extern dec search(target: Operation);
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* `@select` - Applies to operations
|
|
420
|
+
* Indicates that the operation supports the OData $select query parameter
|
|
421
|
+
*/
|
|
422
|
+
extern dec select(target: Operation);
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* `@sharedEntity` - mark a model as a shared entity type
|
|
426
|
+
*
|
|
427
|
+
* `@sharedEntity` can only be applied to models.
|
|
428
|
+
*/
|
|
429
|
+
extern dec sharedEntity(target: Model);
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* `@skip` - Applies to: get operations that return collections.
|
|
433
|
+
* Indicates that the get operation supports the OData $skip query parameter.
|
|
434
|
+
*/
|
|
435
|
+
extern dec skip(target: Operation);
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* `@term` - Applies to: namespaces.
|
|
439
|
+
* Indicates that a workload wishes to require or return instance annotations in their request / response packets at runtime.
|
|
440
|
+
*/
|
|
441
|
+
extern dec term(
|
|
442
|
+
target: Namespace,
|
|
443
|
+
name: valueof string,
|
|
444
|
+
type: Scalar,
|
|
445
|
+
description: valueof string
|
|
446
|
+
);
|
|
447
|
+
|
|
160
448
|
/**
|
|
161
449
|
* `@top` - Applies to: get operations that return collections.
|
|
162
450
|
* Indicates that the get operation supports the OData $top query parameter.
|
|
163
451
|
*/
|
|
164
452
|
extern dec top(target: Operation);
|
|
165
453
|
|
|
454
|
+
/**
|
|
455
|
+
* `@workloadNamespace` - overrideds the namespace to be used in generating CSDL output for all elements contained within the namespace
|
|
456
|
+
*
|
|
457
|
+
* `@workloadNamespace` can only be applied to namespaces.
|
|
458
|
+
*/
|
|
459
|
+
extern dec workloadNamespace(target: Namespace, name: valueof string);
|
|
460
|
+
|
|
166
461
|
/**
|
|
167
462
|
* `@writeOnly` - mark a model property as writeOnly property
|
|
168
463
|
*
|
|
169
464
|
* `@writeOnly` can only be applied to model properties.
|
|
170
465
|
*/
|
|
171
466
|
extern dec writeOnly(target: ModelProperty);
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* `@isOwner` - specify that this workload is the primary owner of this entity model
|
|
470
|
+
*
|
|
471
|
+
* `@isOwner` can be applied to Model where the model also has an @entity decorator or a ModelProperty where it has either an @contains or @references decorator.
|
|
472
|
+
*/
|
|
473
|
+
extern dec isOwner(target: Model | ModelProperty, value?: valueof boolean);
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* `@workloadName` - specifies the name used by the underlying workload
|
|
477
|
+
*
|
|
478
|
+
* `@workloadName` can be applied to Model, ModelProperty, Enum, EnumMember.
|
|
479
|
+
*/
|
|
480
|
+
extern dec workloadName(
|
|
481
|
+
target: Model | ModelProperty | Enum | EnumMember,
|
|
482
|
+
workloadName: valueof string
|
|
483
|
+
);
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* `@workloadNameMsa` - specifies the name used by the underlying workload for consumer use cases
|
|
487
|
+
*
|
|
488
|
+
* `@workloadNameMsa` can be applied to Model, ModelProperty, Enum, EnumMember.
|
|
489
|
+
*/
|
|
490
|
+
extern dec workloadNameMsa(
|
|
491
|
+
target: Model | ModelProperty | Enum | EnumMember,
|
|
492
|
+
workloadNameMsa: valueof string
|
|
493
|
+
);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
namespace MsGraph.Deployment;
|
|
2
|
+
|
|
3
|
+
enum deploymentTargets {
|
|
4
|
+
prodBeta,
|
|
5
|
+
prodV1_0,
|
|
6
|
+
prodEdu,
|
|
7
|
+
ppeBeta,
|
|
8
|
+
ppeV1_0,
|
|
9
|
+
ppeEdu,
|
|
10
|
+
mooncakeBeta,
|
|
11
|
+
mooncakeV1_0,
|
|
12
|
+
fairfaxBeta,
|
|
13
|
+
fairfaxV1_0,
|
|
14
|
+
usNatBeta,
|
|
15
|
+
usNatV1_0,
|
|
16
|
+
usSecBeta,
|
|
17
|
+
usSecV1_0
|
|
18
|
+
}
|
package/lib/lib.tsp
CHANGED
|
@@ -1,35 +1,21 @@
|
|
|
1
1
|
import "../dist/src/index.js";
|
|
2
|
-
import "@typespec/
|
|
2
|
+
import "@typespec/http";
|
|
3
3
|
|
|
4
4
|
using TypeSpec.Http;
|
|
5
|
-
namespace
|
|
5
|
+
namespace MsGraph;
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
alias date=plainDate;
|
|
8
|
+
alias dateTimeOffset=offsetDateTime;
|
|
9
|
+
alias timeOfDay=plainTime;
|
|
8
10
|
|
|
9
11
|
scalar stream;
|
|
10
12
|
|
|
11
|
-
|
|
13
|
+
scalar guid extends string;
|
|
12
14
|
|
|
13
15
|
model EmptyParameters {}
|
|
14
16
|
|
|
15
|
-
|
|
17
|
+
// --- Base interfaces for all interfaces that contain operations returning entities.
|
|
16
18
|
|
|
17
|
-
interface
|
|
18
|
-
@head _isOperation(@path id: string): T;
|
|
19
|
-
}
|
|
19
|
+
interface Resource<T> {}
|
|
20
20
|
|
|
21
|
-
interface
|
|
22
|
-
@head _isOperation(): T[];
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
interface Singleton<T> {
|
|
26
|
-
@head _isNavigationSource(@path id: string): T;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
interface EntitySet<T> {
|
|
30
|
-
@head _isNavigationSource(): T[];
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
interface EntitySetResource<T> {
|
|
34
|
-
@head _isNavigationSource(@path id: string): T[];
|
|
35
|
-
}
|
|
21
|
+
interface Collection<T> {}
|