@microsoft/typespec-msgraph 0.0.1-Preview.2 → 0.0.1-Preview.20
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.d.ts +3 -4
- package/dist/src/components/acceptable-media-types-annotation.d.ts.map +1 -1
- package/dist/src/components/acceptable-media-types-annotation.js +2 -6
- package/dist/src/components/acceptable-media-types-annotation.js.map +1 -1
- package/dist/src/components/alternate-keys-annotation.d.ts +4 -4
- package/dist/src/components/alternate-keys-annotation.d.ts.map +1 -1
- package/dist/src/components/alternate-keys-annotation.js +9 -16
- 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 +84 -0
- package/dist/src/components/annotations.js.map +1 -0
- package/dist/src/components/common-elements.d.ts +16 -74
- package/dist/src/components/common-elements.d.ts.map +1 -1
- package/dist/src/components/common-elements.js +12 -26
- package/dist/src/components/common-elements.js.map +1 -1
- package/dist/src/components/computed-annotation.d.ts +3 -4
- package/dist/src/components/computed-annotation.d.ts.map +1 -1
- package/dist/src/components/computed-annotation.js +4 -10
- package/dist/src/components/computed-annotation.js.map +1 -1
- package/dist/src/components/count-restrictions-annotation.d.ts +3 -4
- package/dist/src/components/count-restrictions-annotation.d.ts.map +1 -1
- package/dist/src/components/count-restrictions-annotation.js +4 -13
- 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 +3 -4
- package/dist/src/components/description-annotation.d.ts.map +1 -1
- package/dist/src/components/description-annotation.js +5 -11
- package/dist/src/components/description-annotation.js.map +1 -1
- package/dist/src/components/entity-container-element.d.ts +21 -0
- package/dist/src/components/entity-container-element.d.ts.map +1 -0
- package/dist/src/components/entity-container-element.js +28 -0
- package/dist/src/components/entity-container-element.js.map +1 -0
- package/dist/src/components/enum-type-element.d.ts +6 -0
- package/dist/src/components/enum-type-element.d.ts.map +1 -0
- package/dist/src/components/enum-type-element.js +20 -0
- package/dist/src/components/enum-type-element.js.map +1 -0
- package/dist/src/components/expand-restrictions-annotation.d.ts +4 -5
- package/dist/src/components/expand-restrictions-annotation.d.ts.map +1 -1
- package/dist/src/components/expand-restrictions-annotation.js +9 -30
- 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.d.ts +2 -14
- package/dist/src/components/index.d.ts.map +1 -1
- package/dist/src/components/index.js +9 -14
- 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 +6 -0
- package/dist/src/components/operation-element.d.ts.map +1 -0
- package/dist/src/components/operation-element.js +83 -0
- package/dist/src/components/operation-element.js.map +1 -0
- package/dist/src/components/permissions-annotation.d.ts +3 -4
- package/dist/src/components/permissions-annotation.d.ts.map +1 -1
- package/dist/src/components/permissions-annotation.js +2 -10
- package/dist/src/components/permissions-annotation.js.map +1 -1
- package/dist/src/components/property-element.d.ts +4 -4
- package/dist/src/components/property-element.d.ts.map +1 -1
- package/dist/src/components/property-element.js +20 -32
- 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 +4 -5
- package/dist/src/components/revisions-annotation.d.ts.map +1 -1
- package/dist/src/components/revisions-annotation.js +8 -51
- package/dist/src/components/revisions-annotation.js.map +1 -1
- package/dist/src/components/schema-element.d.ts +6 -0
- package/dist/src/components/schema-element.d.ts.map +1 -0
- package/dist/src/components/schema-element.js +44 -0
- package/dist/src/components/schema-element.js.map +1 -0
- package/dist/src/components/search-restrictions-annotation.d.ts +3 -4
- package/dist/src/components/search-restrictions-annotation.d.ts.map +1 -1
- package/dist/src/components/search-restrictions-annotation.js +4 -13
- 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 +3 -4
- package/dist/src/components/skip-supported-annotation.d.ts.map +1 -1
- package/dist/src/components/skip-supported-annotation.js +2 -11
- package/dist/src/components/skip-supported-annotation.js.map +1 -1
- package/dist/src/components/sort-restrictions-annotation.d.ts +4 -5
- package/dist/src/components/sort-restrictions-annotation.d.ts.map +1 -1
- package/dist/src/components/sort-restrictions-annotation.js +9 -30
- package/dist/src/components/sort-restrictions-annotation.js.map +1 -1
- package/dist/src/components/structured-type-element.d.ts +7 -4
- package/dist/src/components/structured-type-element.d.ts.map +1 -1
- package/dist/src/components/structured-type-element.js +26 -66
- 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 +3 -4
- package/dist/src/components/top-supported-annotation.d.ts.map +1 -1
- package/dist/src/components/top-supported-annotation.js +3 -10
- 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.map +1 -1
- package/dist/src/decorators/abstract.js +0 -6
- package/dist/src/decorators/abstract.js.map +1 -1
- package/dist/src/decorators/action.d.ts +10 -0
- package/dist/src/decorators/action.d.ts.map +1 -0
- package/dist/src/decorators/action.js +16 -0
- package/dist/src/decorators/action.js.map +1 -0
- package/dist/src/decorators/{handlers/custom/additional-query-parameters.d.ts → additional-query-parameters.d.ts} +3 -1
- package/dist/src/decorators/additional-query-parameters.d.ts.map +1 -0
- package/dist/src/decorators/additional-query-parameters.js +21 -0
- package/dist/src/decorators/additional-query-parameters.js.map +1 -0
- package/dist/src/decorators/address-url-msa.d.ts +12 -0
- package/dist/src/decorators/address-url-msa.d.ts.map +1 -0
- package/dist/src/decorators/address-url-msa.js +19 -0
- package/dist/src/decorators/address-url-msa.js.map +1 -0
- package/dist/src/decorators/address-url.d.ts +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 +153 -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 -6
- 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/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/entity.d.ts +2 -0
- package/dist/src/decorators/entity.d.ts.map +1 -1
- package/dist/src/decorators/entity.js +2 -6
- package/dist/src/decorators/entity.js.map +1 -1
- package/dist/src/decorators/expand.d.ts +1 -0
- package/dist/src/decorators/expand.d.ts.map +1 -1
- package/dist/src/decorators/expand.js +5 -1
- package/dist/src/decorators/expand.js.map +1 -1
- package/dist/src/decorators/experimental.d.ts +9 -0
- package/dist/src/decorators/experimental.d.ts.map +1 -0
- package/dist/src/decorators/experimental.js +13 -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/flags.d.ts +9 -0
- package/dist/src/decorators/flags.d.ts.map +1 -0
- package/dist/src/decorators/flags.js +13 -0
- package/dist/src/decorators/flags.js.map +1 -0
- package/dist/src/decorators/function.d.ts +15 -0
- package/dist/src/decorators/function.d.ts.map +1 -0
- package/dist/src/decorators/function.js +19 -0
- package/dist/src/decorators/function.js.map +1 -0
- package/dist/src/decorators/global-operation.d.ts +9 -0
- package/dist/src/decorators/global-operation.d.ts.map +1 -0
- package/dist/src/decorators/global-operation.js +13 -0
- package/dist/src/decorators/global-operation.js.map +1 -0
- package/dist/src/decorators/graph-deprecated.d.ts +11 -0
- package/dist/src/decorators/graph-deprecated.d.ts.map +1 -0
- package/dist/src/decorators/graph-deprecated.js +19 -0
- package/dist/src/decorators/graph-deprecated.js.map +1 -0
- package/dist/src/decorators/graph-route.d.ts +18 -0
- package/dist/src/decorators/graph-route.d.ts.map +1 -0
- package/dist/src/decorators/graph-route.js +109 -0
- package/dist/src/decorators/graph-route.js.map +1 -0
- package/dist/src/decorators/immutable.d.ts +8 -0
- package/dist/src/decorators/immutable.d.ts.map +1 -0
- package/dist/src/decorators/immutable.js +12 -0
- package/dist/src/decorators/immutable.js.map +1 -0
- package/dist/src/decorators/index.d.ts +35 -1
- package/dist/src/decorators/index.d.ts.map +1 -1
- package/dist/src/decorators/index.js +35 -1
- package/dist/src/decorators/index.js.map +1 -1
- package/dist/src/decorators/is-owner.d.ts +10 -0
- package/dist/src/decorators/is-owner.d.ts.map +1 -0
- package/dist/src/decorators/is-owner.js +17 -0
- package/dist/src/decorators/is-owner.js.map +1 -0
- package/dist/src/decorators/limited-charset.d.ts +9 -0
- package/dist/src/decorators/limited-charset.d.ts.map +1 -0
- package/dist/src/decorators/limited-charset.js +13 -0
- package/dist/src/decorators/limited-charset.js.map +1 -0
- package/dist/src/decorators/media.d.ts +10 -0
- package/dist/src/decorators/media.d.ts.map +1 -0
- package/dist/src/decorators/media.js +16 -0
- package/dist/src/decorators/media.js.map +1 -0
- package/dist/src/decorators/open.d.ts.map +1 -1
- package/dist/src/decorators/open.js +0 -6
- package/dist/src/decorators/open.js.map +1 -1
- package/dist/src/decorators/{routed-interfaces.d.ts → operation-parameters.d.ts} +3 -11
- package/dist/src/decorators/operation-parameters.d.ts.map +1 -0
- package/dist/src/decorators/operation-parameters.js +15 -0
- package/dist/src/decorators/operation-parameters.js.map +1 -0
- package/dist/src/decorators/order-by.d.ts +2 -0
- package/dist/src/decorators/order-by.d.ts.map +1 -1
- package/dist/src/decorators/order-by.js +2 -0
- package/dist/src/decorators/order-by.js.map +1 -1
- package/dist/src/decorators/ownerless.d.ts +8 -0
- package/dist/src/decorators/ownerless.d.ts.map +1 -0
- package/dist/src/decorators/ownerless.js +12 -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 +11 -0
- package/dist/src/decorators/passthrough-address-url-msa.d.ts.map +1 -0
- package/dist/src/decorators/passthrough-address-url-msa.js +17 -0
- package/dist/src/decorators/passthrough-address-url-msa.js.map +1 -0
- package/dist/src/decorators/passthrough-address-url.d.ts +11 -0
- package/dist/src/decorators/passthrough-address-url.d.ts.map +1 -0
- package/dist/src/decorators/passthrough-address-url.js +17 -0
- package/dist/src/decorators/passthrough-address-url.js.map +1 -0
- package/dist/src/decorators/private-preview-definition.d.ts +2 -0
- package/dist/src/decorators/private-preview-definition.d.ts.map +1 -1
- package/dist/src/decorators/private-preview-definition.js +2 -0
- package/dist/src/decorators/private-preview-definition.js.map +1 -1
- package/dist/src/decorators/private-preview.d.ts +2 -0
- package/dist/src/decorators/private-preview.d.ts.map +1 -1
- package/dist/src/decorators/private-preview.js +2 -10
- package/dist/src/decorators/private-preview.js.map +1 -1
- package/dist/src/decorators/privileged.d.ts +9 -0
- package/dist/src/decorators/privileged.d.ts.map +1 -0
- package/dist/src/decorators/privileged.js +13 -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/reference-target.d.ts +16 -0
- package/dist/src/decorators/reference-target.d.ts.map +1 -0
- package/dist/src/decorators/reference-target.js +58 -0
- package/dist/src/decorators/reference-target.js.map +1 -0
- 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 +9 -0
- package/dist/src/decorators/return-source.d.ts.map +1 -0
- package/dist/src/decorators/return-source.js +26 -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 +9 -0
- package/dist/src/decorators/select.d.ts.map +1 -0
- package/dist/src/decorators/select.js +13 -0
- package/dist/src/decorators/select.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 +9 -0
- package/dist/src/decorators/workload-name-msa.d.ts.map +1 -0
- package/dist/src/decorators/workload-name-msa.js +13 -0
- package/dist/src/decorators/workload-name-msa.js.map +1 -0
- package/dist/src/decorators/workload-name.d.ts +9 -0
- package/dist/src/decorators/workload-name.d.ts.map +1 -0
- package/dist/src/decorators/workload-name.js +13 -0
- package/dist/src/decorators/workload-name.js.map +1 -0
- package/dist/src/decorators/workload-namespace.d.ts +10 -0
- package/dist/src/decorators/workload-namespace.d.ts.map +1 -0
- package/dist/src/decorators/workload-namespace.js +19 -0
- package/dist/src/decorators/workload-namespace.js.map +1 -0
- package/dist/src/dom/error-interceptor.d.ts +2 -0
- package/dist/src/dom/error-interceptor.d.ts.map +1 -0
- package/dist/src/dom/error-interceptor.js +13 -0
- package/dist/src/dom/error-interceptor.js.map +1 -0
- package/dist/src/dom/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 +28 -3
- 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 +48 -0
- package/dist/src/entities/annotations.d.ts.map +1 -0
- package/dist/src/entities/annotations.js +166 -0
- package/dist/src/entities/annotations.js.map +1 -0
- package/dist/src/entities/entity-container.d.ts +33 -0
- package/dist/src/entities/entity-container.d.ts.map +1 -0
- package/dist/src/entities/entity-container.js +56 -0
- package/dist/src/entities/entity-container.js.map +1 -0
- package/dist/src/entities/enum.d.ts +19 -0
- package/dist/src/entities/enum.d.ts.map +1 -0
- package/dist/src/entities/enum.js +27 -0
- package/dist/src/entities/enum.js.map +1 -0
- package/dist/src/entities/model.d.ts +62 -0
- package/dist/src/entities/model.d.ts.map +1 -0
- package/dist/src/entities/model.js +266 -0
- package/dist/src/entities/model.js.map +1 -0
- 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 +70 -0
- package/dist/src/entities/ms-graph-route.js.map +1 -0
- package/dist/src/entities/namespace.d.ts +29 -0
- package/dist/src/entities/namespace.d.ts.map +1 -0
- package/dist/src/entities/namespace.js +218 -0
- package/dist/src/entities/namespace.js.map +1 -0
- package/dist/src/entities/operation.d.ts +36 -0
- package/dist/src/entities/operation.d.ts.map +1 -0
- package/dist/src/entities/operation.js +146 -0
- package/dist/src/entities/operation.js.map +1 -0
- package/dist/src/entities/property.d.ts +3 -0
- package/dist/src/entities/property.d.ts.map +1 -0
- package/dist/src/entities/property.js +57 -0
- package/dist/src/entities/property.js.map +1 -0
- package/dist/src/entities/revision-definition.d.ts +10 -0
- package/dist/src/entities/revision-definition.d.ts.map +1 -0
- package/dist/src/entities/revision-definition.js +42 -0
- package/dist/src/entities/revision-definition.js.map +1 -0
- 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 +1 -3
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -3
- package/dist/src/index.js.map +1 -1
- package/dist/src/lib.d.ts +128 -106
- package/dist/src/lib.d.ts.map +1 -1
- package/dist/src/lib.js +70 -10
- 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 +16 -34
- package/dist/src/linter.js.map +1 -1
- 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 +19 -0
- package/dist/src/rules/address-url.d.ts.map +1 -0
- package/dist/src/rules/address-url.js +161 -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 +204 -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/entity.d.ts +6 -1
- package/dist/src/rules/entity.d.ts.map +1 -1
- package/dist/src/rules/entity.js +177 -11
- package/dist/src/rules/entity.js.map +1 -1
- package/dist/src/rules/enum.d.ts +4 -0
- package/dist/src/rules/enum.d.ts.map +1 -0
- package/dist/src/rules/enum.js +29 -0
- package/dist/src/rules/enum.js.map +1 -0
- 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 +29 -23
- 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 -0
- package/dist/src/rules/function.d.ts.map +1 -0
- package/dist/src/rules/function.js +26 -0
- package/dist/src/rules/function.js.map +1 -0
- 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 +14 -0
- package/dist/src/rules/graph-route.d.ts.map +1 -0
- package/dist/src/rules/graph-route.js +225 -0
- package/dist/src/rules/graph-route.js.map +1 -0
- package/dist/src/rules/index.d.ts +25 -7
- package/dist/src/rules/index.d.ts.map +1 -1
- package/dist/src/rules/index.js +25 -162
- 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 +4 -0
- package/dist/src/rules/model.d.ts.map +1 -0
- package/dist/src/rules/model.js +36 -0
- package/dist/src/rules/model.js.map +1 -0
- package/dist/src/rules/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 +4 -0
- package/dist/src/rules/operation-inside-interface.d.ts.map +1 -0
- package/dist/src/rules/operation-inside-interface.js +62 -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 +25 -24
- 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 +171 -0
- package/dist/src/rules/ownerless.js.map +1 -0
- package/dist/src/rules/partial.d.ts +7 -0
- package/dist/src/rules/partial.d.ts.map +1 -0
- package/dist/src/rules/partial.js +52 -0
- package/dist/src/rules/partial.js.map +1 -0
- package/dist/src/rules/record-t.d.ts +5 -0
- package/dist/src/rules/record-t.d.ts.map +1 -0
- package/dist/src/rules/record-t.js +78 -0
- package/dist/src/rules/record-t.js.map +1 -0
- package/dist/src/rules/reference-target.d.ts +8 -0
- package/dist/src/rules/reference-target.d.ts.map +1 -0
- package/dist/src/rules/reference-target.js +118 -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 +42 -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/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 +59 -2
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/src/utils.js +535 -12
- 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 +81 -0
- package/dist/src/validate.js.map +1 -0
- package/lib/bodies.tsp +71 -0
- package/lib/decorators.tsp +350 -40
- 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 +25 -0
- package/package.json +42 -32
- package/dist/src/components/program-context.d.ts +0 -4
- package/dist/src/components/program-context.d.ts.map +0 -1
- package/dist/src/components/program-context.js +0 -3
- package/dist/src/components/program-context.js.map +0 -1
- package/dist/src/csdl.d.ts +0 -8
- package/dist/src/csdl.d.ts.map +0 -1
- package/dist/src/csdl.js +0 -298
- package/dist/src/csdl.js.map +0 -1
- 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/handlers/custom/additional-query-parameters.d.ts.map +0 -1
- package/dist/src/decorators/handlers/custom/additional-query-parameters.js +0 -36
- package/dist/src/decorators/handlers/custom/additional-query-parameters.js.map +0 -1
- package/dist/src/decorators/handlers/custom/ags-attribute.d.ts +0 -7
- 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 -30
- 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 -30
- package/dist/src/decorators/has-stream.js.map +0 -1
- package/dist/src/decorators/routed-interfaces.d.ts.map +0 -1
- package/dist/src/decorators/routed-interfaces.js +0 -43
- package/dist/src/decorators/routed-interfaces.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,218 @@
|
|
|
1
|
+
import { getInterfacesOfKinds, getCollectionIndexInterfaces, isExcludedCoreType, isNavigationSource, isTopLevelNavigationSource, isTypeDefinedInExternalLibrary, getSchemaNamespaceName } from "../utils.js";
|
|
2
|
+
import { GetMsGraphEnumTypeElement } from "./enum.js";
|
|
3
|
+
import { GetMsGraphModels } from "./model.js";
|
|
4
|
+
import { GetEntitySets, GetSingletons } from "./entity-container.js";
|
|
5
|
+
import { GetMsGraphOperations } from "./operation.js";
|
|
6
|
+
import { GetCollectionAnnotations, GetResourceAnnotations, GetAllowedValuesAnnotations } from "./annotations.js";
|
|
7
|
+
import { applyOwnerlessAttributeToInterfaceBindingType, buildAttributes, getGraphRoutePaths, getNavigationPropertyBindingProperties, hasReferenceTarget } from "../index.js";
|
|
8
|
+
import { GetMsGraphTerms } from "./term.js";
|
|
9
|
+
const DEFAULT_MSGRAPH_NAMESPACE = "microsoft.graph";
|
|
10
|
+
export const usedLibraryTypesKey = Symbol("usedLibraryTypesKey");
|
|
11
|
+
export const usedStandardEntityBaseTypeKey = Symbol("usedStandardEntityBaseTypeKey");
|
|
12
|
+
export function GetDeclaredNamespaces(program) {
|
|
13
|
+
const root = program.checker.getGlobalNamespaceType();
|
|
14
|
+
const namespaces = expandNamespaces(root)
|
|
15
|
+
.filter((namespace) => !isExcludedCoreType(program, namespace) && hasChildren(namespace));
|
|
16
|
+
return namespaces;
|
|
17
|
+
}
|
|
18
|
+
/** Get the TypeSpec namespace that shared types are declared in. */
|
|
19
|
+
function getSharedTypesNamespace(program) {
|
|
20
|
+
const root = program.checker.getGlobalNamespaceType();
|
|
21
|
+
const namespace = expandNamespaces(root)
|
|
22
|
+
.find((namespace) => namespace.name === "SharedModels");
|
|
23
|
+
return namespace;
|
|
24
|
+
}
|
|
25
|
+
export function GetMsGraphNamespaces(program) {
|
|
26
|
+
let libraryNamespaces = [];
|
|
27
|
+
let namespaces = GetDeclaredNamespaces(program).map((namespace) => {
|
|
28
|
+
// Defer creation of library namespaces until we know what has been imported
|
|
29
|
+
if (isTypeDefinedInExternalLibrary(program, namespace)) {
|
|
30
|
+
libraryNamespaces.push(namespace);
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
return getMsGraphNamespace(program, namespace);
|
|
34
|
+
}).filter((result) => result !== null);
|
|
35
|
+
// Remove non-imported items from the library before creating their namespaces
|
|
36
|
+
libraryNamespaces = filterUnimportedLibraryTypesFromNamespaces(program, libraryNamespaces, namespaces);
|
|
37
|
+
if (libraryNamespaces.length > 0) {
|
|
38
|
+
namespaces = getMsGraphLibraryNamespaces(namespaces, libraryNamespaces, program);
|
|
39
|
+
}
|
|
40
|
+
injectEntityBaseTypeIfRequired(program, namespaces);
|
|
41
|
+
namespaces = filterEmptyMsGraphNamespaces(namespaces);
|
|
42
|
+
return namespaces;
|
|
43
|
+
}
|
|
44
|
+
/** Inject entity if referenced but not provided. */
|
|
45
|
+
function injectEntityBaseTypeIfRequired(program, namespaces) {
|
|
46
|
+
var _a;
|
|
47
|
+
// Has any type used the standard base class.
|
|
48
|
+
const usedStandardEntityBaseType = ((_a = program.stateSet(usedStandardEntityBaseTypeKey)) === null || _a === void 0 ? void 0 : _a.size) > 0;
|
|
49
|
+
if (usedStandardEntityBaseType) {
|
|
50
|
+
const microsoftGraphNamespace = namespaces.find(ns => ns.Name === DEFAULT_MSGRAPH_NAMESPACE);
|
|
51
|
+
if (microsoftGraphNamespace &&
|
|
52
|
+
!microsoftGraphNamespace.Models.has("entity")) {
|
|
53
|
+
const inputModels = new Map();
|
|
54
|
+
inputModels.set("entity", getSharedTypesNamespace(program).models.get("entity"));
|
|
55
|
+
const graphModels = GetMsGraphModels(program, inputModels);
|
|
56
|
+
microsoftGraphNamespace.Models.set("entity", graphModels.get("entity"));
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
function getMsGraphLibraryNamespaces(namespaces, libraryNamespaces, program) {
|
|
61
|
+
return [...namespaces, ...libraryNamespaces.map((namespace) => {
|
|
62
|
+
const libraryNamespace = getMsGraphNamespace(program, namespace);
|
|
63
|
+
// we need this key to identify library namespaces in schema-element.tsx so as not to emit EntityContainer
|
|
64
|
+
// in the imported schema
|
|
65
|
+
libraryNamespace.key = "library";
|
|
66
|
+
return libraryNamespace;
|
|
67
|
+
})];
|
|
68
|
+
}
|
|
69
|
+
function filterEmptyMsGraphNamespaces(namespaces) {
|
|
70
|
+
return namespaces.filter((namespace) => {
|
|
71
|
+
const hasChildren = namespace.Enums.length || namespace.Models.size;
|
|
72
|
+
return hasChildren;
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
function filterUnimportedLibraryTypesFromNamespaces(program, libraryNamespaces, projectNamespaces) {
|
|
76
|
+
if (libraryNamespaces.length === 0) {
|
|
77
|
+
return [];
|
|
78
|
+
}
|
|
79
|
+
const usedLibraryTypes = program.stateSet(usedLibraryTypesKey);
|
|
80
|
+
return libraryNamespaces.map(libraryNamespace => {
|
|
81
|
+
return getLibraryNameSpaceWithUsedTypes(libraryNamespace, usedLibraryTypes, projectNamespaces);
|
|
82
|
+
}).filter((result) => result !== null);
|
|
83
|
+
}
|
|
84
|
+
function getLibraryNameSpaceWithUsedTypes(libraryNamespace, usedLibraryTypes, projectNamespaces) {
|
|
85
|
+
const usedLibraryTypeNames = [];
|
|
86
|
+
usedLibraryTypes.forEach(type => {
|
|
87
|
+
switch (type.kind) {
|
|
88
|
+
case "Model":
|
|
89
|
+
case "ModelProperty":
|
|
90
|
+
case "Enum":
|
|
91
|
+
usedLibraryTypeNames.push(type.name);
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
const projectNamespacesTypeNames = projectNamespaces.flatMap(namespace => {
|
|
96
|
+
return [...namespace.Models.keys(), ...namespace.Enums.map(e => e.Name)];
|
|
97
|
+
});
|
|
98
|
+
const allLibraryTypeNames = [];
|
|
99
|
+
libraryNamespace.models.forEach(model => {
|
|
100
|
+
allLibraryTypeNames.push(model.name);
|
|
101
|
+
});
|
|
102
|
+
libraryNamespace.enums.forEach(enumType => {
|
|
103
|
+
allLibraryTypeNames.push(enumType.name);
|
|
104
|
+
});
|
|
105
|
+
allLibraryTypeNames.filter(libraryTypeName => !usedLibraryTypeNames.includes(libraryTypeName))
|
|
106
|
+
.forEach(type => {
|
|
107
|
+
libraryNamespace.models.delete(type);
|
|
108
|
+
libraryNamespace.enums.delete(type);
|
|
109
|
+
});
|
|
110
|
+
projectNamespacesTypeNames.forEach(type => {
|
|
111
|
+
const strippedType = type.replace(/[0-9.]/g, '');
|
|
112
|
+
libraryNamespace.models.delete(strippedType);
|
|
113
|
+
});
|
|
114
|
+
libraryNamespace.models.delete('entity');
|
|
115
|
+
return libraryNamespace;
|
|
116
|
+
}
|
|
117
|
+
export function expandNamespaces(namespace) {
|
|
118
|
+
return [namespace, ...[...namespace.namespaces.values()].flatMap(expandNamespaces)];
|
|
119
|
+
}
|
|
120
|
+
function hasChildren(type) {
|
|
121
|
+
switch (type.kind) {
|
|
122
|
+
case "Namespace":
|
|
123
|
+
return type.enums.size || type.models.size || type.interfaces.size || type.operations.size;
|
|
124
|
+
default:
|
|
125
|
+
return true;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
function getMsGraphNamespace(program, namespace) {
|
|
129
|
+
var _a;
|
|
130
|
+
const namespaceName = (_a = getSchemaNamespaceName(program, namespace)) !== null && _a !== void 0 ? _a : DEFAULT_MSGRAPH_NAMESPACE;
|
|
131
|
+
let models = GetMsGraphModels(program, namespace.models);
|
|
132
|
+
models = applyOwnerlessAttributeToInterfaceBindingType(program, namespace.interfaces, models);
|
|
133
|
+
const enums = [...namespace.enums].map(([_, e]) => GetMsGraphEnumTypeElement(program, e));
|
|
134
|
+
const sources = getNavigationSources(namespace.interfaces);
|
|
135
|
+
const collectionIndexSources = getCollectionIndexInterfaces(program, sources);
|
|
136
|
+
const resourceSources = getInterfacesOfKinds(program, sources, ["Resource"]);
|
|
137
|
+
const collectionSources = getInterfacesOfKinds(program, sources, ["Collection"]);
|
|
138
|
+
resourceSources.forEach((entity, routePath) => {
|
|
139
|
+
if (collectionSources.has(routePath)) {
|
|
140
|
+
const existing = collectionSources.get(routePath);
|
|
141
|
+
existing.operations = [...existing.operations, ...entity.operations.values()];
|
|
142
|
+
resourceSources.delete(routePath);
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
if (collectionIndexSources && collectionIndexSources.size > 0) {
|
|
146
|
+
collectionIndexSources.forEach((entity, routePath) => {
|
|
147
|
+
if (collectionSources.has(routePath)) {
|
|
148
|
+
const existing = collectionSources.get(routePath);
|
|
149
|
+
existing.operations = [...existing.operations, ...entity.operations.values()];
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
collectionSources.set(routePath, entity);
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
const singletonSources = getRootNavigationSources(program, resourceSources);
|
|
156
|
+
const entitySetSources = getRootNavigationSources(program, collectionSources);
|
|
157
|
+
let singletons = GetSingletons(program, singletonSources);
|
|
158
|
+
let entitySets = GetEntitySets(program, entitySetSources);
|
|
159
|
+
singletons = applyNavigationPropertyBindingToCollection(program, singletons, sources);
|
|
160
|
+
entitySets = applyNavigationPropertyBindingToCollection(program, entitySets, sources);
|
|
161
|
+
const resourceAnnotations = GetResourceAnnotations(program, namespaceName, resourceSources);
|
|
162
|
+
const collectionAnnotations = GetCollectionAnnotations(program, namespaceName, collectionSources);
|
|
163
|
+
const allowedValuesAnnotations = GetAllowedValuesAnnotations(program, namespaceName, models);
|
|
164
|
+
const operations = GetMsGraphOperations(program, namespace.interfaces);
|
|
165
|
+
const terms = GetMsGraphTerms(program, namespace);
|
|
166
|
+
return {
|
|
167
|
+
Name: namespaceName,
|
|
168
|
+
Enums: enums,
|
|
169
|
+
Models: models,
|
|
170
|
+
AgsAttributes: buildAttributes(program, namespace),
|
|
171
|
+
Singletons: singletons,
|
|
172
|
+
EntitySets: entitySets,
|
|
173
|
+
Operations: operations,
|
|
174
|
+
ResourceAnnotations: resourceAnnotations,
|
|
175
|
+
CollectionAnnotations: collectionAnnotations,
|
|
176
|
+
AllowedValuesAnnotations: allowedValuesAnnotations,
|
|
177
|
+
Terms: terms,
|
|
178
|
+
Source: namespace
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
function applyNavigationPropertyBindingToCollection(program, collections, sources) {
|
|
182
|
+
sources.forEach((theInterface) => {
|
|
183
|
+
if (hasReferenceTarget(program, theInterface)) {
|
|
184
|
+
const referenceTargetGraphRoutes = getGraphRoutePaths(program, theInterface);
|
|
185
|
+
if (referenceTargetGraphRoutes) {
|
|
186
|
+
referenceTargetGraphRoutes.forEach(referenceTargetGraphRoute => {
|
|
187
|
+
// this part of the graphRoute forms the name of the singleton or entitySet
|
|
188
|
+
const firstSegment = referenceTargetGraphRoute.split("/")[0];
|
|
189
|
+
const referencedEntity = collections.get(firstSegment);
|
|
190
|
+
if (referencedEntity) {
|
|
191
|
+
referencedEntity.NavigationPropertyBindingProperties = getNavigationPropertyBindingProperties(program, theInterface, referenceTargetGraphRoute, referencedEntity.Name);
|
|
192
|
+
collections.set(firstSegment, referencedEntity);
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
return collections;
|
|
199
|
+
}
|
|
200
|
+
export function getNavigationSources(interfaces) {
|
|
201
|
+
const navigationSources = new Map();
|
|
202
|
+
interfaces.forEach((theInterface, key) => {
|
|
203
|
+
if (isNavigationSource(theInterface)) {
|
|
204
|
+
navigationSources.set(key, theInterface);
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
return navigationSources;
|
|
208
|
+
}
|
|
209
|
+
function getRootNavigationSources(program, sources) {
|
|
210
|
+
const rootSources = new Map();
|
|
211
|
+
sources.forEach((entity, routePath) => {
|
|
212
|
+
if (isTopLevelNavigationSource(program, entity)) {
|
|
213
|
+
rootSources.set(routePath, entity);
|
|
214
|
+
}
|
|
215
|
+
});
|
|
216
|
+
return rootSources;
|
|
217
|
+
}
|
|
218
|
+
//# sourceMappingURL=namespace.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"namespace.js","sourceRoot":"","sources":["../../../src/entities/namespace.ts"],"names":[],"mappings":"AACA,OAAO,EAAoB,oBAAoB,EAAE,4BAA4B,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,0BAA0B,EAAE,8BAA8B,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAC/N,OAAO,EAAE,yBAAyB,EAAe,MAAM,WAAW,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAgB,MAAM,YAAY,CAAC;AAC5D,OAAO,EAAa,aAAa,EAAE,aAAa,EAAa,MAAM,uBAAuB,CAAC;AAC3F,OAAO,EAAE,oBAAoB,EAAoB,MAAM,gBAAgB,CAAC;AACxE,OAAO,EAA8C,wBAAwB,EAAE,sBAAsB,EAA4B,2BAA2B,EAAE,MAAM,kBAAkB,CAAC;AACvL,OAAO,EAA6B,6CAA6C,EAAE,eAAe,EAAE,kBAAkB,EAAE,sCAAsC,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACxM,OAAO,EAAE,eAAe,EAAe,MAAM,WAAW,CAAC;AAEzD,MAAM,yBAAyB,GAAG,iBAAiB,C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AG,IAAI,GAAG,EAA4B,CAAC;IAExD,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE;QACpC,IAAI,0BAA0B,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,CAAC;YAChD,WAAW,CAAC,GAAG,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QACrC,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,WAAW,CAAC;AACrB,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Program, Interface } from "@typespec/compiler";
|
|
2
|
+
import { RevisionDefinition } from "./revision-definition.js";
|
|
3
|
+
export declare enum OperationKind {
|
|
4
|
+
Unknown = 0,
|
|
5
|
+
Action = 1,
|
|
6
|
+
Function = 2
|
|
7
|
+
}
|
|
8
|
+
export interface MsGraphOperation {
|
|
9
|
+
Name: string;
|
|
10
|
+
Kind: OperationKind;
|
|
11
|
+
BindingTypeName: string;
|
|
12
|
+
AgsAttributes: Record<string, string>;
|
|
13
|
+
Properties: MsGraphOperationProperty[];
|
|
14
|
+
UnionProperties: MsGraphOperationProperty[][];
|
|
15
|
+
IsVoid: boolean;
|
|
16
|
+
IsNullable: boolean;
|
|
17
|
+
IsComposable: boolean | undefined;
|
|
18
|
+
ReturnTypeName: string;
|
|
19
|
+
Description: string | undefined;
|
|
20
|
+
RevisionDefinition: RevisionDefinition | undefined;
|
|
21
|
+
IsGlobalOperation: boolean;
|
|
22
|
+
ReturnSource: string | null;
|
|
23
|
+
}
|
|
24
|
+
export interface MsGraphOperationProperty {
|
|
25
|
+
Name: string;
|
|
26
|
+
IsNullable: boolean;
|
|
27
|
+
PropertyTypeName: string;
|
|
28
|
+
IsOptional: boolean;
|
|
29
|
+
DefaultValue: Record<string, unknown> | undefined;
|
|
30
|
+
Description: string | undefined;
|
|
31
|
+
AgsAttributes: Record<string, string>;
|
|
32
|
+
RevisionDefinition: RevisionDefinition | undefined;
|
|
33
|
+
SupportsLimitedCharset: boolean;
|
|
34
|
+
}
|
|
35
|
+
export declare function GetMsGraphOperations(program: Program, interfaces: Map<string, Interface>): MsGraphOperation[];
|
|
36
|
+
//# sourceMappingURL=operation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operation.d.ts","sourceRoot":"","sources":["../../../src/entities/operation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAA8D,SAAS,EAAsB,MAAM,oBAAoB,CAAC;AAMxI,OAAO,EAAyB,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAGrF,oBAAY,aAAa;IACvB,OAAO,IAAA;IACP,MAAM,IAAA;IACN,QAAQ,IAAA;CACT;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,aAAa,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,UAAU,EAAE,wBAAwB,EAAE,CAAC;IACvC,eAAe,EAAE,wBAAwB,EAAE,EAAE,CAAC;IAC9C,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,EAAE,OAAO,CAAC;IACpB,YAAY,EAAE,OAAO,GAAG,SAAS,CAAC;IAClC,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,kBAAkB,EAAE,kBAAkB,GAAG,SAAS,CAAC;IACnD,iBAAiB,EAAE,OAAO,CAAC;IAC3B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,MAAM,WAAW,wBAAwB;IAEvC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,OAAO,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,OAAO,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;IAClD,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,kBAAkB,EAAE,kBAAkB,GAAG,SAAS,CAAC;IACnD,sBAAsB,EAAE,OAAO,CAAC;CACjC;AAED,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,gBAAgB,EAAE,CAuB7G"}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { isVoidType, getDoc, getLocationContext } from "@typespec/compiler";
|
|
2
|
+
import { isPathParam } from "@typespec/http";
|
|
3
|
+
import { extractParamsFromPath, getAction, getFunction, getGraphRoutePaths, getReturnSource, hasReturnSource, isGlobalOperation, isOperationParameters, supportsLimitedCharset } from "../index.js";
|
|
4
|
+
import { isTypeNullable, getPropertyTypeName, extractTypesFromUnion, getInterfaceNavigationSourceType, getSourceInterfaces } from "../utils.js";
|
|
5
|
+
import { getDefaultPropertyValue } from "./property.js";
|
|
6
|
+
import { buildAttributes } from "../decorators/ags-attribute.js";
|
|
7
|
+
import { GetRevisionDefinition } from "./revision-definition.js";
|
|
8
|
+
import { usedLibraryTypesKey } from "./namespace.js";
|
|
9
|
+
export var OperationKind;
|
|
10
|
+
(function (OperationKind) {
|
|
11
|
+
OperationKind[OperationKind["Unknown"] = 0] = "Unknown";
|
|
12
|
+
OperationKind[OperationKind["Action"] = 1] = "Action";
|
|
13
|
+
OperationKind[OperationKind["Function"] = 2] = "Function";
|
|
14
|
+
})(OperationKind || (OperationKind = {}));
|
|
15
|
+
export function GetMsGraphOperations(program, interfaces) {
|
|
16
|
+
const operations = new Array();
|
|
17
|
+
[...interfaces].flatMap(([_, $interface]) => [...$interface.operations].filter(([_, $operation]) => [...$operation.decorators].filter(($decoratorApplication) => {
|
|
18
|
+
var _a, _b;
|
|
19
|
+
return ((_a = $decoratorApplication.definition) === null || _a === void 0 ? void 0 : _a.name) === "@function" ||
|
|
20
|
+
((_b = $decoratorApplication.definition) === null || _b === void 0 ? void 0 : _b.name) === "@action";
|
|
21
|
+
}).length))
|
|
22
|
+
.forEach(([_, operation]) => {
|
|
23
|
+
const bindingTypeName = getBindingTypeName(program, operation);
|
|
24
|
+
if (!bindingTypeName) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
operations.push(GetMsGraphOperation(program, bindingTypeName, operation));
|
|
28
|
+
});
|
|
29
|
+
return operations;
|
|
30
|
+
}
|
|
31
|
+
function GetMsGraphOperation(program, bindingTypeName, operation) {
|
|
32
|
+
const parameterProperties = deleteRoutingParameters(program, operation);
|
|
33
|
+
const element = {
|
|
34
|
+
Name: "",
|
|
35
|
+
Kind: OperationKind.Unknown,
|
|
36
|
+
BindingTypeName: bindingTypeName,
|
|
37
|
+
AgsAttributes: buildAttributes(program, operation),
|
|
38
|
+
Properties: getParameterProperties(program, parameterProperties),
|
|
39
|
+
UnionProperties: new Array(),
|
|
40
|
+
IsVoid: isVoidType(operation.returnType),
|
|
41
|
+
IsNullable: false,
|
|
42
|
+
IsComposable: undefined,
|
|
43
|
+
ReturnTypeName: "",
|
|
44
|
+
Description: getDoc(program, operation),
|
|
45
|
+
RevisionDefinition: GetRevisionDefinition(program, operation, operation.namespace),
|
|
46
|
+
IsGlobalOperation: isGlobalOperation(program, operation),
|
|
47
|
+
ReturnSource: hasReturnSource(program, operation) ? getReturnSource(program, operation) : null,
|
|
48
|
+
};
|
|
49
|
+
if (!element.IsVoid) {
|
|
50
|
+
let returnType = operation.returnType;
|
|
51
|
+
// Remove unions with Error responses added in by standard Operation base op.
|
|
52
|
+
if (returnType.kind === "Union") {
|
|
53
|
+
const unionTypes = extractTypesFromUnion(returnType);
|
|
54
|
+
const filteredTypes = unionTypes.filter((type) => {
|
|
55
|
+
if (type.kind === "Model" && type.name.endsWith("ErrorResponse")) {
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
return true;
|
|
59
|
+
});
|
|
60
|
+
returnType = filteredTypes[0];
|
|
61
|
+
}
|
|
62
|
+
if (!returnType || isVoidType(returnType)) {
|
|
63
|
+
element.IsVoid = true;
|
|
64
|
+
}
|
|
65
|
+
if (getLocationContext(program, returnType).type === "library") {
|
|
66
|
+
program.stateSet(usedLibraryTypesKey).add(returnType);
|
|
67
|
+
}
|
|
68
|
+
element.IsNullable = isTypeNullable(program, operation.returnType);
|
|
69
|
+
element.ReturnTypeName = getPropertyTypeName(program, returnType);
|
|
70
|
+
}
|
|
71
|
+
const actionName = getAction(program, operation);
|
|
72
|
+
if (actionName) {
|
|
73
|
+
element.Name = actionName;
|
|
74
|
+
element.Kind = OperationKind.Action;
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
const theFunction = getFunction(program, operation);
|
|
78
|
+
if (theFunction) {
|
|
79
|
+
element.Name = theFunction.name;
|
|
80
|
+
element.IsComposable = theFunction.isComposable;
|
|
81
|
+
element.Kind = OperationKind.Function;
|
|
82
|
+
const parameterProperty = operation.parameters.properties.get("parameters");
|
|
83
|
+
if (parameterProperty && parameterProperty.type.kind === "Union") {
|
|
84
|
+
const parameterProperties = extractTypesFromUnion(parameterProperty.type)
|
|
85
|
+
.filter((type) => type.kind === "Model")
|
|
86
|
+
.map((m) => getParameterProperties(program, m.properties));
|
|
87
|
+
element.UnionProperties.push(...parameterProperties);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
return element;
|
|
92
|
+
}
|
|
93
|
+
function deleteRoutingParameters(program, operation) {
|
|
94
|
+
const parameterProperties = operation.parameters.properties;
|
|
95
|
+
const paths = getGraphRoutePaths(program, operation.interface);
|
|
96
|
+
if (paths === null || paths === void 0 ? void 0 : paths.length) {
|
|
97
|
+
const routingParams = paths.flatMap((path) => extractParamsFromPath(path));
|
|
98
|
+
parameterProperties.forEach((key, value) => {
|
|
99
|
+
if (routingParams.includes(key.name)) {
|
|
100
|
+
parameterProperties.delete(key.name);
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
return parameterProperties;
|
|
105
|
+
}
|
|
106
|
+
function getBindingTypeName(program, operation) {
|
|
107
|
+
const bindingType = getInterfaceNavigationSourceType(program, operation.interface);
|
|
108
|
+
if (!bindingType) {
|
|
109
|
+
return undefined;
|
|
110
|
+
}
|
|
111
|
+
const propertyTypeName = getPropertyTypeName(program, bindingType);
|
|
112
|
+
if (getSourceInterfaces(operation.interface).some((theInterface) => theInterface.name === "Collection")) {
|
|
113
|
+
return `Collection(${propertyTypeName})`;
|
|
114
|
+
}
|
|
115
|
+
return propertyTypeName;
|
|
116
|
+
}
|
|
117
|
+
function getParameterProperties(program, parameters) {
|
|
118
|
+
const properties = [...parameters].flatMap(([, property]) => {
|
|
119
|
+
var _a;
|
|
120
|
+
if (isPathParam(program, property) || property.name === "graphRouteParams") {
|
|
121
|
+
return [];
|
|
122
|
+
}
|
|
123
|
+
if (property.type.kind === "Model" && isOperationParameters(program, property.type)) {
|
|
124
|
+
return getParameterProperties(program, property.type.properties);
|
|
125
|
+
}
|
|
126
|
+
if (getLocationContext(program, property.type).type === "library") {
|
|
127
|
+
program.stateSet(usedLibraryTypesKey).add(property.type);
|
|
128
|
+
}
|
|
129
|
+
return [
|
|
130
|
+
{
|
|
131
|
+
Name: property.name,
|
|
132
|
+
IsNullable: isTypeNullable(program, property.type),
|
|
133
|
+
PropertyTypeName: getPropertyTypeName(program, property.type),
|
|
134
|
+
IsOptional: property.optional,
|
|
135
|
+
DefaultValue: getDefaultPropertyValue(program, property),
|
|
136
|
+
Description: getDoc(program, property),
|
|
137
|
+
AgsAttributes: buildAttributes(program, property),
|
|
138
|
+
RevisionDefinition: GetRevisionDefinition(program, property, (_a = property.model) === null || _a === void 0 ? void 0 : _a.namespace),
|
|
139
|
+
IsGlobalOperation: false,
|
|
140
|
+
SupportsLimitedCharset: supportsLimitedCharset(program, property),
|
|
141
|
+
},
|
|
142
|
+
];
|
|
143
|
+
});
|
|
144
|
+
return properties;
|
|
145
|
+
}
|
|
146
|
+
//# sourceMappingURL=operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operation.js","sourceRoot":"","sources":["../../../src/entities/operation.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,UAAU,EAAE,MAAM,EAAmC,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxI,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,qBAAqB,EAAE,SAAS,EAAE,WAAW,EAAE,kBAAkB,EAAE,eAAe,EAAE,eAAe,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACpM,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,gCAAgC,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAChJ,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAsB,MAAM,0BAA0B,CAAC;AACrF,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAErD,MAAM,CAAN,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,uDAAO,CAAA;IACP,qDAAM,CAAA;IACN,yDAAQ,CAAA;AACV,CAAC,EAJW,aAAa,KAAb,aAAa,QAIxB;AAgCD,MAAM,UAAU,oBAAoB,CAAC,OAAgB,EAAE,UAAkC;IACvF,MAAM,UAAU,GAAG,IAAI,KAAK,EAAoB,CAAC;IAEjD,CAAC,GAAG,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,EAAE,EAAE,CACxC,CAAC,GAAG,UAAU,CAAC,UAAU,CAAC,CAAC,MAAM,CAC/B,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,EAAE,EAAE,CAClB,CAAC,GAAG,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d.ts","sourceRoot":"","sources":["../../../src/entities/property.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAG5D,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,aAAa,GACtB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CA0DrC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { getPropertyTypeName } from "../utils.js";
|
|
2
|
+
export function getDefaultPropertyValue(program, property) {
|
|
3
|
+
if (!property.default) {
|
|
4
|
+
return undefined;
|
|
5
|
+
}
|
|
6
|
+
let defaultValueValue = undefined;
|
|
7
|
+
switch (property.default.kind) {
|
|
8
|
+
case "String":
|
|
9
|
+
case "Boolean":
|
|
10
|
+
case "Number":
|
|
11
|
+
defaultValueValue = property.default.value;
|
|
12
|
+
break;
|
|
13
|
+
default:
|
|
14
|
+
return undefined;
|
|
15
|
+
}
|
|
16
|
+
const propType = getPropertyTypeName(program, property.type);
|
|
17
|
+
let defaultValueKey = "String";
|
|
18
|
+
switch (propType) {
|
|
19
|
+
case "Edm.String":
|
|
20
|
+
defaultValueKey = "String";
|
|
21
|
+
break;
|
|
22
|
+
case "Collection(Edm.Byte)":
|
|
23
|
+
defaultValueKey = "Binary";
|
|
24
|
+
break;
|
|
25
|
+
case "Edm.Byte":
|
|
26
|
+
case "Edm.Int16":
|
|
27
|
+
case "Edm.Int32":
|
|
28
|
+
case "Edm.Int64":
|
|
29
|
+
defaultValueKey = "Int";
|
|
30
|
+
break;
|
|
31
|
+
case "Edm.Single":
|
|
32
|
+
case "Edm.Double":
|
|
33
|
+
defaultValueKey = "Single";
|
|
34
|
+
break;
|
|
35
|
+
case "Edm.Date":
|
|
36
|
+
defaultValueKey = "Date";
|
|
37
|
+
break;
|
|
38
|
+
case "Edm.DateTimeOffset":
|
|
39
|
+
defaultValueKey = "DateTimeOffset";
|
|
40
|
+
break;
|
|
41
|
+
case "Edm.Boolean":
|
|
42
|
+
defaultValueKey = "Boolean";
|
|
43
|
+
break;
|
|
44
|
+
case "Edm.Stream":
|
|
45
|
+
defaultValueKey = "Binary";
|
|
46
|
+
break;
|
|
47
|
+
case "Edm.Guid":
|
|
48
|
+
defaultValueKey = "Guid";
|
|
49
|
+
break;
|
|
50
|
+
case "Edm.Duration":
|
|
51
|
+
case "Edm.TimeOfDay":
|
|
52
|
+
default:
|
|
53
|
+
return undefined;
|
|
54
|
+
}
|
|
55
|
+
return { [defaultValueKey]: defaultValueValue };
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=property.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"property.js","sourceRoot":"","sources":["../../../src/entities/property.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAElD,MAAM,UAAU,uBAAuB,CACrC,OAAgB,EAChB,QAAuB;IAEvB,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;QACtB,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,IAAI,iBAAiB,GAAQ,SAAS,CAAC;IACvC,QAAQ,QAAQ,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;QAC9B,KAAK,QAAQ,CAAC;QACd,KAAK,SAAS,CAAC;QACf,KAAK,QAAQ;YACX,iBAAiB,GAAG,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC;YAC3C,MAAM;QACR;YACE,OAAO,SAAS,CAAC;IACrB,CAAC;IAED,MAAM,QAAQ,GAAG,mBAAmB,CAAC,OAAO,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE7D,IAAI,eAAe,GAAG,QAAQ,CAAC;IAC/B,QAAQ,QAAQ,EAAE,CAAC;QACjB,KAAK,YAAY;YACf,eAAe,GAAG,QAAQ,CAAC;YAC3B,MAAM;QACR,KAAK,sBAAsB;YACzB,eAAe,GAAG,QAAQ,CAAC;YAC3B,MAAM;QACR,KAAK,UAAU,CAAC;QAChB,KAAK,WAAW,CAAC;QACjB,KAAK,WAAW,CAAC;QACjB,KAAK,WAAW;YACd,eAAe,GAAG,KAAK,CAAC;YACxB,MAAM;QACR,KAAK,YAAY,CAAC;QAClB,KAAK,YAAY;YACf,eAAe,GAAG,QAAQ,CAAC;YAC3B,MAAM;QACR,KAAK,UAAU;YACb,eAAe,GAAG,MAAM,CAAC;YACzB,MAAM;QACR,KAAK,oBAAoB;YACvB,eAAe,GAAG,gBAAgB,CAAC;YACnC,MAAM;QACR,KAAK,aAAa;YAChB,eAAe,GAAG,SAAS,CAAC;YAC5B,MAAM;QACR,KAAK,YAAY;YACf,eAAe,GAAG,QAAQ,CAAC;YAC3B,MAAM;QACR,KAAK,UAAU;YACb,eAAe,GAAG,MAAM,CAAC;YACzB,MAAM;QACR,KAAK,cAAc,CAAC;QACpB,KAAK,eAAe,CAAC;QACrB;YACE,OAAO,SAAS,CAAC;IACrB,CAAC;IAED,OAAO,EAAE,CAAC,eAAe,CAAC,EAAE,iBAAiB,EAAE,CAAC;AAClD,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Enum, EnumMember, Model, ModelProperty, Namespace, Operation, Program } from "@typespec/compiler";
|
|
2
|
+
export interface RevisionDefinition {
|
|
3
|
+
Date: string;
|
|
4
|
+
Version: string;
|
|
5
|
+
Description?: string;
|
|
6
|
+
RemovalDate: string;
|
|
7
|
+
Category?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function GetRevisionDefinition(program: Program, type: Model | ModelProperty | EnumMember | Enum | Operation | Namespace, namespace: Namespace | undefined): RevisionDefinition | undefined;
|
|
10
|
+
//# sourceMappingURL=revision-definition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"revision-definition.d.ts","sourceRoot":"","sources":["../../../src/entities/revision-definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAG3G,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,KAAK,GAAG,aAAa,GAAG,UAAU,GAAG,IAAI,GAAG,SAAS,GAAG,SAAS,EACvE,SAAS,EAAE,SAAS,GAAG,SAAS,GAC/B,kBAAkB,GAAG,SAAS,CAgBhC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getPrivatePreview, getDeprecatedDefinitions, getPrivatePreviewDefinitions, getGraphDeprecated } from "../index.js";
|
|
2
|
+
export function GetRevisionDefinition(program, type, namespace) {
|
|
3
|
+
if (!namespace) {
|
|
4
|
+
return undefined;
|
|
5
|
+
}
|
|
6
|
+
const deprecated = getGraphDeprecated(program, type);
|
|
7
|
+
if (deprecated) {
|
|
8
|
+
return getRevisionDefinitionFromDeprecation(program, namespace, deprecated);
|
|
9
|
+
}
|
|
10
|
+
const privatePreview = getPrivatePreview(program, type);
|
|
11
|
+
if (privatePreview) {
|
|
12
|
+
return getRevisionDefinitionFromPrivatePreview(program, namespace, privatePreview);
|
|
13
|
+
}
|
|
14
|
+
return undefined;
|
|
15
|
+
}
|
|
16
|
+
function getRevisionDefinitionFromDeprecation(program, namespace, deprecated) {
|
|
17
|
+
const deprecatedDefinitions = getDeprecatedDefinitions(program, namespace);
|
|
18
|
+
const definition = deprecatedDefinitions.get(deprecated);
|
|
19
|
+
if (!definition) {
|
|
20
|
+
return undefined;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
Date: definition.announcementDate,
|
|
24
|
+
RemovalDate: definition.removalDate,
|
|
25
|
+
Version: `${definition.announcementDate.substring(0, 7)}/${definition.category}`,
|
|
26
|
+
Description: definition.description,
|
|
27
|
+
Category: definition.category,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function getRevisionDefinitionFromPrivatePreview(program, namespace, deprecated) {
|
|
31
|
+
const privatePreviewDefinitions = getPrivatePreviewDefinitions(program, namespace);
|
|
32
|
+
const definition = privatePreviewDefinitions.get(deprecated);
|
|
33
|
+
if (!definition) {
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
Date: definition.announcementDate,
|
|
38
|
+
RemovalDate: definition.removalDate,
|
|
39
|
+
Version: `${definition.announcementDate.substring(0, 7)}/PrivatePreview:${definition.name}`,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=revision-definition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"revision-definition.js","sourceRoot":"","sources":["../../../src/entities/revision-definition.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,4BAA4B,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAU5H,MAAM,UAAU,qBAAqB,CACnC,OAAgB,EAChB,IAAuE,EACvE,SAAgC;IAEhC,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,OAAO,SAAS,CAAA;IAClB,CAAC;IAED,MAAM,UAAU,GAAG,kBAAkB,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACrD,IAAI,UAAU,EAAE,CAAC;QACf,OAAO,oCAAoC,CAAC,OAAO,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;IAC9E,CAAC;IAED,MAAM,cAAc,GAAG,iBAAiB,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACxD,IAAI,cAAc,EAAE,CAAC;QACnB,OAAO,uCAAuC,CAAC,OAAO,EAAE,SAAS,EAAE,cAAc,CAAC,CAAC;IACrF,CAAC;IA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
+
Type: string;
|
|
5
|
+
Description: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function GetMsGraphTerms(program: Program, namespace: Namespace): MsGraphTerm[];
|
|
8
|
+
//# sourceMappingURL=term.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"term.d.ts","sourceRoot":"","sources":["../../../src/entities/term.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAIxD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,GAAG,WAAW,EAAE,CAYrF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { getTerms } from "../index.js";
|
|
2
|
+
import { getNameForModelType } from "../utils.js";
|
|
3
|
+
export function GetMsGraphTerms(program, namespace) {
|
|
4
|
+
const terms = new Array();
|
|
5
|
+
getTerms(program, namespace).forEach((term, _) => {
|
|
6
|
+
terms.push({
|
|
7
|
+
Name: term.name,
|
|
8
|
+
Type: getNameForModelType(program, term.type),
|
|
9
|
+
Description: term.description,
|
|
10
|
+
});
|
|
11
|
+
});
|
|
12
|
+
return terms;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=term.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"term.js","sourceRoot":"","sources":["../../../src/entities/term.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAQlD,MAAM,UAAU,eAAe,CAAC,OAAgB,EAAE,SAAoB;IACpE,MAAM,KAAK,GAAG,IAAI,KAAK,EAAe,CAAC;IAEvC,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE;QAC/C,KAAK,CAAC,IAAI,CAAC;YACT,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,IAAI,EAAE,mBAAmB,CAAC,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC;YAC7C,WAAW,EAAE,IAAI,CAAC,WAAW;SAC9B,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,KAAK,CAAC;AACf,CAAC"}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
export * from "./decorators/handlers/custom/index.js";
|
|
2
|
-
export * from "./decorators/handlers/index.js";
|
|
3
|
-
export * from "./decorators/has-stream.js";
|
|
4
1
|
export * from "./decorators/index.js";
|
|
5
2
|
export * from "./emitter.js";
|
|
3
|
+
export * from "./validate.js";
|
|
6
4
|
export * from "./linter.js";
|
|
7
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC"}
|
package/dist/src/index.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
export * from "./decorators/handlers/custom/index.js";
|
|
2
|
-
export * from "./decorators/handlers/index.js";
|
|
3
|
-
export * from "./decorators/has-stream.js";
|
|
4
1
|
export * from "./decorators/index.js";
|
|
5
2
|
export * from "./emitter.js";
|
|
3
|
+
export * from "./validate.js";
|
|
6
4
|
export * from "./linter.js";
|
|
7
5
|
//# sourceMappingURL=index.js.map
|
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC"}
|