@microsoft/typespec-msgraph 0.0.1-Preview.2 → 0.0.1-Preview.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/components/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 +32 -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 +47 -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 +2 -0
- package/dist/src/decorators/abstract.d.ts.map +1 -1
- package/dist/src/decorators/abstract.js +2 -6
- 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/{handlers/custom/additional-query-parameters.d.ts → additional-query-parameters.d.ts} +5 -1
- 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 +156 -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/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 +2 -0
- package/dist/src/decorators/deprecated-definition.d.ts.map +1 -1
- package/dist/src/decorators/deprecated-definition.js.map +1 -1
- package/dist/src/decorators/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 +3 -0
- 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/flags.d.ts +11 -0
- package/dist/src/decorators/flags.d.ts.map +1 -0
- package/dist/src/decorators/flags.js +15 -0
- package/dist/src/decorators/flags.js.map +1 -0
- package/dist/src/decorators/function.d.ts +17 -0
- package/dist/src/decorators/function.d.ts.map +1 -0
- package/dist/src/decorators/function.js +21 -0
- package/dist/src/decorators/function.js.map +1 -0
- 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/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 -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 +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 -6
- package/dist/src/decorators/open.js.map +1 -1
- package/dist/src/decorators/{routed-interfaces.d.ts → operation-parameters.d.ts} +5 -11
- package/dist/src/decorators/operation-parameters.d.ts.map +1 -0
- package/dist/src/decorators/operation-parameters.js +17 -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 +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 +13 -0
- package/dist/src/decorators/passthrough-address-url-msa.d.ts.map +1 -0
- package/dist/src/decorators/passthrough-address-url-msa.js +19 -0
- package/dist/src/decorators/passthrough-address-url-msa.js.map +1 -0
- package/dist/src/decorators/passthrough-address-url.d.ts +13 -0
- package/dist/src/decorators/passthrough-address-url.d.ts.map +1 -0
- package/dist/src/decorators/passthrough-address-url.js +19 -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 +4 -2
- 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 +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/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 +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 +36 -0
- package/dist/src/entities/entity-container.d.ts.map +1 -0
- package/dist/src/entities/entity-container.js +59 -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 +63 -0
- package/dist/src/entities/model.d.ts.map +1 -0
- package/dist/src/entities/model.js +273 -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 +67 -0
- package/dist/src/entities/ms-graph-route.js.map +1 -0
- package/dist/src/entities/namespace.d.ts +40 -0
- package/dist/src/entities/namespace.d.ts.map +1 -0
- package/dist/src/entities/namespace.js +351 -0
- package/dist/src/entities/namespace.js.map +1 -0
- package/dist/src/entities/operation.d.ts +41 -0
- package/dist/src/entities/operation.d.ts.map +1 -0
- package/dist/src/entities/operation.js +202 -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 +53 -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 +132 -106
- package/dist/src/lib.d.ts.map +1 -1
- package/dist/src/lib.js +72 -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 +23 -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 +203 -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 +26 -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 +4 -0
- package/dist/src/rules/function.d.ts.map +1 -0
- package/dist/src/rules/function.js +65 -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 +15 -0
- package/dist/src/rules/graph-route.d.ts.map +1 -0
- package/dist/src/rules/graph-route.js +296 -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 +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 +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 +11 -0
- package/dist/src/rules/record-t.d.ts.map +1 -0
- package/dist/src/rules/record-t.js +125 -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 +75 -2
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/src/utils.js +706 -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 +83 -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 +30 -0
- package/package.json +41 -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,351 @@
|
|
|
1
|
+
import { getLocationContext } from "@typespec/compiler";
|
|
2
|
+
import { getInterfacesOfKinds, getCollectionIndexInterfaces, isExcludedCoreType, isNavigationSource, isTopLevelNavigationSource, isTypeDefinedInExternalLibrary, getSchemaNamespaceName } from "../utils.js";
|
|
3
|
+
import { GetMsGraphEnumTypeElement } from "./enum.js";
|
|
4
|
+
import { GetMsGraphModels } from "./model.js";
|
|
5
|
+
import { GetEntitySets, GetSingletons } from "./entity-container.js";
|
|
6
|
+
import { GetMsGraphOperations } from "./operation.js";
|
|
7
|
+
import { GetCollectionAnnotations, GetResourceAnnotations, GetAllowedValuesAnnotations } from "./annotations.js";
|
|
8
|
+
import { applyOwnerlessAttributeToInterfaceBindingType, buildAttributes, getGraphRoutePaths, getNavigationPropertyBindingProperties, hasReferenceTarget } from "../index.js";
|
|
9
|
+
import { GetMsGraphTerms } from "./term.js";
|
|
10
|
+
const DEFAULT_MSGRAPH_NAMESPACE = "microsoft.graph";
|
|
11
|
+
export var NamespacesExcludedFromHavingEntityContainers;
|
|
12
|
+
(function (NamespacesExcludedFromHavingEntityContainers) {
|
|
13
|
+
NamespacesExcludedFromHavingEntityContainers[NamespacesExcludedFromHavingEntityContainers["library"] = 0] = "library";
|
|
14
|
+
NamespacesExcludedFromHavingEntityContainers[NamespacesExcludedFromHavingEntityContainers["merged"] = 1] = "merged";
|
|
15
|
+
})(NamespacesExcludedFromHavingEntityContainers || (NamespacesExcludedFromHavingEntityContainers = {}));
|
|
16
|
+
export const usedLibraryTypesKey = Symbol("usedLibraryTypesKey");
|
|
17
|
+
export const usedStandardEntityBaseTypeKey = Symbol("usedStandardEntityBaseTypeKey");
|
|
18
|
+
export const usedDictionaryTypeKey = Symbol("dictionaryTypeKey");
|
|
19
|
+
export function GetDeclaredNamespaces(program) {
|
|
20
|
+
const root = program.checker.getGlobalNamespaceType();
|
|
21
|
+
const namespaces = expandNamespaces(root)
|
|
22
|
+
.filter((namespace) => !isExcludedCoreType(program, namespace) && hasChildren(namespace));
|
|
23
|
+
return namespaces;
|
|
24
|
+
}
|
|
25
|
+
/** Get the TypeSpec namespace that shared types are declared in. */
|
|
26
|
+
function getSharedTypesNamespace(program) {
|
|
27
|
+
const root = program.checker.getGlobalNamespaceType();
|
|
28
|
+
const namespace = expandNamespaces(root)
|
|
29
|
+
.find((namespace) => namespace.name === "SharedModels");
|
|
30
|
+
return namespace;
|
|
31
|
+
}
|
|
32
|
+
export function GetMsGraphNamespaces(program) {
|
|
33
|
+
let libraryNamespaces = [];
|
|
34
|
+
let namespaces = GetDeclaredNamespaces(program).map((namespace) => {
|
|
35
|
+
// Defer creation of library namespaces until we know what has been imported
|
|
36
|
+
if (isTypeDefinedInExternalLibrary(program, namespace)) {
|
|
37
|
+
libraryNamespaces.push(namespace);
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
return getMsGraphNamespace(program, namespace);
|
|
41
|
+
}).filter((result) => result !== null);
|
|
42
|
+
// Remove non-imported items from the library before creating their namespaces
|
|
43
|
+
libraryNamespaces = filterUnimportedLibraryTypesFromNamespaces(program, libraryNamespaces, namespaces);
|
|
44
|
+
if (libraryNamespaces.length > 0) {
|
|
45
|
+
namespaces = getMsGraphLibraryNamespaces(namespaces, libraryNamespaces, program);
|
|
46
|
+
}
|
|
47
|
+
injectEntityBaseTypeWhereApplicable(program, namespaces);
|
|
48
|
+
injectDictionaryComplexTypeToMicrosoftGraphNamespace(program, namespaces);
|
|
49
|
+
namespaces = filterEmptyMsGraphNamespaces(namespaces);
|
|
50
|
+
namespaces = mergeNamespaceEntityContainers(program, namespaces);
|
|
51
|
+
return namespaces;
|
|
52
|
+
}
|
|
53
|
+
/** Inject entity if referenced but not provided. */
|
|
54
|
+
function injectEntityBaseTypeWhereApplicable(program, namespaces) {
|
|
55
|
+
const map = program.stateMap(usedStandardEntityBaseTypeKey);
|
|
56
|
+
if ((map === null || map === void 0 ? void 0 : map.size) > 0) {
|
|
57
|
+
if (map.size === 1) {
|
|
58
|
+
handleSingleEntry(program, namespaces, map);
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
handleMultipleEntries(program, namespaces, map);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
function handleSingleEntry(program, namespaces, namespaceMap) {
|
|
66
|
+
var _a;
|
|
67
|
+
const namespaceType = namespaceMap.values().next().value;
|
|
68
|
+
const namespace = namespaceMap.keys().next().value;
|
|
69
|
+
const namespaceName = (_a = getSchemaNamespaceName(program, namespace)) !== null && _a !== void 0 ? _a : DEFAULT_MSGRAPH_NAMESPACE;
|
|
70
|
+
const msGraphNamespace = namespaces.find(ns => ns.Name === namespaceName);
|
|
71
|
+
if (namespaceType === NamespaceType.SubNamespace) {
|
|
72
|
+
addPublicNamespaceWithBaseEntity(program, namespaces);
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
injectEntityBaseType(program, msGraphNamespace);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
function handleMultipleEntries(program, namespaces, namespaceMap) {
|
|
79
|
+
const publicNamespace = namespaces.find(ns => ns.Name === DEFAULT_MSGRAPH_NAMESPACE);
|
|
80
|
+
const namespaceMapHasWorkload = Array.from(namespaceMap.values()).some(value => value === NamespaceType.Workload);
|
|
81
|
+
for (const [namespace, namespaceType] of namespaceMap) {
|
|
82
|
+
if (namespace.kind === "Namespace") {
|
|
83
|
+
if (namespaceType === NamespaceType.Workload) {
|
|
84
|
+
const workloadNamespace = namespaces.find(ns => ns.Name === namespace.name);
|
|
85
|
+
injectEntityBaseType(program, workloadNamespace);
|
|
86
|
+
}
|
|
87
|
+
else if (namespaceType === NamespaceType.SubNamespace && !namespaceMapHasWorkload) {
|
|
88
|
+
if (publicNamespace) {
|
|
89
|
+
injectEntityBaseType(program, publicNamespace);
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
addPublicNamespaceWithBaseEntity(program, namespaces);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
function addPublicNamespaceWithBaseEntity(program, namespaces) {
|
|
99
|
+
const inputModels = new Map();
|
|
100
|
+
inputModels.set("entity", getSharedTypesNamespace(program).models.get("entity"));
|
|
101
|
+
const newNamespace = createNamespace(program, inputModels);
|
|
102
|
+
const newMsGraphNamespace = getMsGraphNamespace(program, newNamespace);
|
|
103
|
+
namespaces.push(newMsGraphNamespace);
|
|
104
|
+
}
|
|
105
|
+
function injectEntityBaseType(program, namespace) {
|
|
106
|
+
var _a;
|
|
107
|
+
const usedStandardEntityBaseType = ((_a = program.stateSet(usedStandardEntityBaseTypeKey)) === null || _a === void 0 ? void 0 : _a.size) > 0;
|
|
108
|
+
if (namespace && !namespace.Models.has("entity") && usedStandardEntityBaseType) {
|
|
109
|
+
const inputModels = new Map();
|
|
110
|
+
inputModels.set("entity", getSharedTypesNamespace(program).models.get("entity"));
|
|
111
|
+
const graphModels = GetMsGraphModels(program, inputModels);
|
|
112
|
+
namespace.Models.set("entity", graphModels.get("entity"));
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
export var NamespaceType;
|
|
116
|
+
(function (NamespaceType) {
|
|
117
|
+
NamespaceType[NamespaceType["Public"] = 0] = "Public";
|
|
118
|
+
NamespaceType[NamespaceType["Workload"] = 1] = "Workload";
|
|
119
|
+
NamespaceType[NamespaceType["SubNamespace"] = 2] = "SubNamespace";
|
|
120
|
+
NamespaceType[NamespaceType["Unknown"] = 3] = "Unknown";
|
|
121
|
+
})(NamespaceType || (NamespaceType = {}));
|
|
122
|
+
function injectDictionaryComplexTypeToMicrosoftGraphNamespace(program, namespaces) {
|
|
123
|
+
var _a;
|
|
124
|
+
const microsoftGraphNamespace = namespaces.find(ns => ns.Name === DEFAULT_MSGRAPH_NAMESPACE);
|
|
125
|
+
const usedDictionaryTypes = ((_a = program.stateSet(usedDictionaryTypeKey)) === null || _a === void 0 ? void 0 : _a.size) > 0;
|
|
126
|
+
if (usedDictionaryTypes) {
|
|
127
|
+
const inputModels = new Map();
|
|
128
|
+
inputModels.set("Dictionary", getSharedTypesNamespace(program).models.get("Dictionary"));
|
|
129
|
+
if (microsoftGraphNamespace) {
|
|
130
|
+
if (!microsoftGraphNamespace.Models.has("Dictionary")) {
|
|
131
|
+
const graphModels = GetMsGraphModels(program, inputModels);
|
|
132
|
+
microsoftGraphNamespace.Models.set("Dictionary", graphModels.get("Dictionary"));
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
else {
|
|
136
|
+
const namespace = createNamespace(program, inputModels);
|
|
137
|
+
const msGraphNamespace = getMsGraphNamespace(program, namespace);
|
|
138
|
+
namespaces.push(msGraphNamespace);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
function createNamespace(program, inputModels) {
|
|
143
|
+
return program.checker.createAndFinishType({
|
|
144
|
+
kind: "Namespace",
|
|
145
|
+
name: DEFAULT_MSGRAPH_NAMESPACE,
|
|
146
|
+
models: inputModels,
|
|
147
|
+
nodes: new Map(),
|
|
148
|
+
namespaces: new Map(),
|
|
149
|
+
interfaces: new Map(),
|
|
150
|
+
enums: new Map(),
|
|
151
|
+
operations: new Map(),
|
|
152
|
+
node: {},
|
|
153
|
+
scalars: new Map(),
|
|
154
|
+
unions: new Map(),
|
|
155
|
+
decoratorDeclarations: new Map(),
|
|
156
|
+
functionDeclarations: new Map(),
|
|
157
|
+
isFinished: false,
|
|
158
|
+
decorators: []
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
function getMsGraphLibraryNamespaces(namespaces, libraryNamespaces, program) {
|
|
162
|
+
return [...namespaces, ...libraryNamespaces.map((namespace) => {
|
|
163
|
+
const libraryNamespace = getMsGraphNamespace(program, namespace);
|
|
164
|
+
// we need this key to identify library namespaces in schema-element.tsx so as not to emit EntityContainer
|
|
165
|
+
// in the imported schema
|
|
166
|
+
libraryNamespace.key = NamespacesExcludedFromHavingEntityContainers.library.toString();
|
|
167
|
+
return libraryNamespace;
|
|
168
|
+
})];
|
|
169
|
+
}
|
|
170
|
+
function filterEmptyMsGraphNamespaces(namespaces) {
|
|
171
|
+
return namespaces.filter((namespace) => {
|
|
172
|
+
const hasChildren = namespace.Enums.length || namespace.Models.size;
|
|
173
|
+
return hasChildren;
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
function filterUnimportedLibraryTypesFromNamespaces(program, libraryNamespaces, projectNamespaces) {
|
|
177
|
+
if (libraryNamespaces.length === 0) {
|
|
178
|
+
return [];
|
|
179
|
+
}
|
|
180
|
+
const usedLibraryTypes = program.stateSet(usedLibraryTypesKey);
|
|
181
|
+
return libraryNamespaces.map(libraryNamespace => {
|
|
182
|
+
return getLibraryNameSpaceWithUsedTypes(libraryNamespace, usedLibraryTypes, projectNamespaces);
|
|
183
|
+
}).filter((result) => result !== null);
|
|
184
|
+
}
|
|
185
|
+
function getLibraryNameSpaceWithUsedTypes(libraryNamespace, usedLibraryTypes, projectNamespaces) {
|
|
186
|
+
const usedLibraryTypeNames = [];
|
|
187
|
+
usedLibraryTypes.forEach(type => {
|
|
188
|
+
switch (type.kind) {
|
|
189
|
+
case "Model":
|
|
190
|
+
case "ModelProperty":
|
|
191
|
+
case "Enum":
|
|
192
|
+
usedLibraryTypeNames.push(type.name);
|
|
193
|
+
break;
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
const projectNamespacesTypeNames = projectNamespaces.flatMap(namespace => {
|
|
197
|
+
return [...namespace.Models.keys(), ...namespace.Enums.map(e => e.Name)];
|
|
198
|
+
});
|
|
199
|
+
const allLibraryTypeNames = [];
|
|
200
|
+
libraryNamespace.models.forEach(model => {
|
|
201
|
+
allLibraryTypeNames.push(model.name);
|
|
202
|
+
});
|
|
203
|
+
libraryNamespace.enums.forEach(enumType => {
|
|
204
|
+
allLibraryTypeNames.push(enumType.name);
|
|
205
|
+
});
|
|
206
|
+
allLibraryTypeNames.filter(libraryTypeName => !usedLibraryTypeNames.includes(libraryTypeName))
|
|
207
|
+
.forEach(type => {
|
|
208
|
+
libraryNamespace.models.delete(type);
|
|
209
|
+
libraryNamespace.enums.delete(type);
|
|
210
|
+
});
|
|
211
|
+
projectNamespacesTypeNames.forEach(type => {
|
|
212
|
+
const strippedType = type.replace(/[0-9.]/g, '');
|
|
213
|
+
libraryNamespace.models.delete(strippedType);
|
|
214
|
+
});
|
|
215
|
+
libraryNamespace.models.delete('entity');
|
|
216
|
+
return libraryNamespace;
|
|
217
|
+
}
|
|
218
|
+
export function expandNamespaces(namespace) {
|
|
219
|
+
return [namespace, ...[...namespace.namespaces.values()].flatMap(expandNamespaces)];
|
|
220
|
+
}
|
|
221
|
+
function hasChildren(type) {
|
|
222
|
+
switch (type.kind) {
|
|
223
|
+
case "Namespace":
|
|
224
|
+
return type.enums.size || type.models.size || type.interfaces.size || type.operations.size;
|
|
225
|
+
default:
|
|
226
|
+
return true;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
function getMsGraphNamespace(program, namespace) {
|
|
230
|
+
var _a;
|
|
231
|
+
const namespaceName = (_a = getSchemaNamespaceName(program, namespace)) !== null && _a !== void 0 ? _a : DEFAULT_MSGRAPH_NAMESPACE;
|
|
232
|
+
let models = GetMsGraphModels(program, namespace.models);
|
|
233
|
+
models = applyOwnerlessAttributeToInterfaceBindingType(program, namespace.interfaces, models);
|
|
234
|
+
const enums = [...namespace.enums].map(([_, e]) => GetMsGraphEnumTypeElement(program, e));
|
|
235
|
+
const sources = getNavigationSources(namespace.interfaces);
|
|
236
|
+
const collectionIndexSources = getCollectionIndexInterfaces(program, sources);
|
|
237
|
+
const resourceSources = getInterfacesOfKinds(program, sources, ["Resource"]);
|
|
238
|
+
const collectionSources = getInterfacesOfKinds(program, sources, ["Collection"]);
|
|
239
|
+
resourceSources.forEach((entity, routePath) => {
|
|
240
|
+
if (collectionSources.has(routePath)) {
|
|
241
|
+
const existing = collectionSources.get(routePath);
|
|
242
|
+
existing.operations = [...existing.operations, ...entity.operations.values()];
|
|
243
|
+
resourceSources.delete(routePath);
|
|
244
|
+
}
|
|
245
|
+
});
|
|
246
|
+
if (collectionIndexSources && collectionIndexSources.size > 0) {
|
|
247
|
+
collectionIndexSources.forEach((entity, routePath) => {
|
|
248
|
+
if (collectionSources.has(routePath)) {
|
|
249
|
+
const existing = collectionSources.get(routePath);
|
|
250
|
+
existing.operations = [...existing.operations, ...entity.operations.values()];
|
|
251
|
+
return;
|
|
252
|
+
}
|
|
253
|
+
collectionSources.set(routePath, entity);
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
const singletonSources = getRootNavigationSources(program, resourceSources);
|
|
257
|
+
const entitySetSources = getRootNavigationSources(program, collectionSources);
|
|
258
|
+
let singletons = GetSingletons(program, singletonSources);
|
|
259
|
+
let entitySets = GetEntitySets(program, entitySetSources);
|
|
260
|
+
singletons = applyNavigationPropertyBindingToCollection(program, singletons, sources);
|
|
261
|
+
entitySets = applyNavigationPropertyBindingToCollection(program, entitySets, sources);
|
|
262
|
+
const resourceAnnotations = GetResourceAnnotations(program, namespaceName, resourceSources);
|
|
263
|
+
const collectionAnnotations = GetCollectionAnnotations(program, namespaceName, collectionSources);
|
|
264
|
+
const allowedValuesAnnotations = GetAllowedValuesAnnotations(program, namespaceName, models);
|
|
265
|
+
const operations = GetMsGraphOperations(program, namespace.interfaces);
|
|
266
|
+
const terms = GetMsGraphTerms(program, namespace);
|
|
267
|
+
const namespaceAgsAttributes = buildAttributes(program, namespace);
|
|
268
|
+
return {
|
|
269
|
+
Name: namespaceName,
|
|
270
|
+
Enums: enums,
|
|
271
|
+
Models: models,
|
|
272
|
+
AgsAttributes: namespaceAgsAttributes,
|
|
273
|
+
Singletons: singletons,
|
|
274
|
+
EntitySets: entitySets,
|
|
275
|
+
Operations: operations,
|
|
276
|
+
ResourceAnnotations: resourceAnnotations,
|
|
277
|
+
CollectionAnnotations: collectionAnnotations,
|
|
278
|
+
AllowedValuesAnnotations: allowedValuesAnnotations,
|
|
279
|
+
Terms: terms,
|
|
280
|
+
Source: namespace
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
function mergeNamespaceEntityContainers(program, namespaces) {
|
|
284
|
+
if (namespaces.length === 1) {
|
|
285
|
+
return namespaces;
|
|
286
|
+
}
|
|
287
|
+
let projectNamespaces = namespaces.filter(namespace => getLocationContext(program, namespace.Source).type !== "library");
|
|
288
|
+
const libraryNamespaces = namespaces.filter(namespace => getLocationContext(program, namespace.Source).type === "library");
|
|
289
|
+
let microsoftGraphNamespace = projectNamespaces.find(namespace => namespace.Name === DEFAULT_MSGRAPH_NAMESPACE);
|
|
290
|
+
if (microsoftGraphNamespace) {
|
|
291
|
+
projectNamespaces = mergeContainerElements(projectNamespaces, microsoftGraphNamespace);
|
|
292
|
+
}
|
|
293
|
+
else {
|
|
294
|
+
projectNamespaces = mergeContainerElements(projectNamespaces, projectNamespaces[0]);
|
|
295
|
+
}
|
|
296
|
+
return [...projectNamespaces, ...libraryNamespaces];
|
|
297
|
+
}
|
|
298
|
+
function mergeContainerElements(projectNamespaces, namespaceToMergeWith) {
|
|
299
|
+
const index = projectNamespaces.indexOf(namespaceToMergeWith);
|
|
300
|
+
// Remove the namespace to merge with from the list of namespaces to merge as it is the target of the merge
|
|
301
|
+
if (index !== -1) {
|
|
302
|
+
projectNamespaces.splice(index, 1);
|
|
303
|
+
}
|
|
304
|
+
projectNamespaces.forEach((namespace) => {
|
|
305
|
+
namespaceToMergeWith.Singletons = new Map([...namespaceToMergeWith.Singletons, ...namespace.Singletons]);
|
|
306
|
+
namespaceToMergeWith.EntitySets = new Map([...namespaceToMergeWith.EntitySets, ...namespace.EntitySets]);
|
|
307
|
+
namespaceToMergeWith.AgsAttributes = { ...namespaceToMergeWith.AgsAttributes, ...namespace.AgsAttributes };
|
|
308
|
+
namespace.key = NamespacesExcludedFromHavingEntityContainers.merged.toString();
|
|
309
|
+
});
|
|
310
|
+
// Add the merged namespace back to the list of namespaces
|
|
311
|
+
projectNamespaces.push(namespaceToMergeWith);
|
|
312
|
+
return projectNamespaces;
|
|
313
|
+
}
|
|
314
|
+
function applyNavigationPropertyBindingToCollection(program, collections, sources) {
|
|
315
|
+
sources.forEach((theInterface) => {
|
|
316
|
+
if (hasReferenceTarget(program, theInterface)) {
|
|
317
|
+
const referenceTargetGraphRoutes = getGraphRoutePaths(program, theInterface);
|
|
318
|
+
if (referenceTargetGraphRoutes) {
|
|
319
|
+
referenceTargetGraphRoutes.forEach(referenceTargetGraphRoute => {
|
|
320
|
+
// this part of the graphRoute forms the name of the singleton or entitySet
|
|
321
|
+
const firstSegment = referenceTargetGraphRoute.split("/")[0];
|
|
322
|
+
const referencedEntity = collections.get(firstSegment);
|
|
323
|
+
if (referencedEntity) {
|
|
324
|
+
referencedEntity.NavigationPropertyBindingProperties = getNavigationPropertyBindingProperties(program, theInterface, referenceTargetGraphRoute, referencedEntity.Name);
|
|
325
|
+
collections.set(firstSegment, referencedEntity);
|
|
326
|
+
}
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
});
|
|
331
|
+
return collections;
|
|
332
|
+
}
|
|
333
|
+
export function getNavigationSources(interfaces) {
|
|
334
|
+
const navigationSources = new Map();
|
|
335
|
+
interfaces.forEach((theInterface, key) => {
|
|
336
|
+
if (isNavigationSource(theInterface)) {
|
|
337
|
+
navigationSources.set(key, theInterface);
|
|
338
|
+
}
|
|
339
|
+
});
|
|
340
|
+
return navigationSources;
|
|
341
|
+
}
|
|
342
|
+
function getRootNavigationSources(program, sources) {
|
|
343
|
+
const rootSources = new Map();
|
|
344
|
+
sources.forEach((entity, routePath) => {
|
|
345
|
+
if (isTopLevelNavigationSource(program, entity)) {
|
|
346
|
+
rootSources.set(routePath, entity);
|
|
347
|
+
}
|
|
348
|
+
});
|
|
349
|
+
return rootSources;
|
|
350
|
+
}
|
|
351
|
+
//# sourceMappingURL=namespace.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"namespace.js","sourceRoot":"","sources":["../../../src/entities/namespace.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8C,kBAAkB,EAAmF,MAAM,oBAAoB,CAAC;AACrL,OAAO,EAAoB,oBAAoB,EAAE,4BAA4B,EAAE,kBAAkB,EAAE,kBAAkB,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AAI,gBAAgB,EAAE,CAAC;wBACrB,gBAAgB,CAAC,mCAAmC,GAAG,sCAAsC,CAAC,OAAO,EAAE,YAAY,EAAE,yBAAyB,EAAE,gBAAgB,CAAC,IAAK,CAAC,CAAC;wBACxK,WAAW,CAAC,GAAG,CAAC,YAAY,EAAE,gBAAgB,CAAC,CAAC;oBAClD,CAAC;gBACH,CAAC,CAAC,CAAC;YACL,CAAC;QACH,CAAC;IACH,CAAC,CAAC,CAAC;IACH,OAAO,WAAW,CAAC;AACrB,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,UAAkC;IACrE,MAAM,iBAAiB,GAAG,IAAI,GAAG,EAAqB,CAAC;IAEvD,UAAU,CAAC,OAAO,CAAC,CAAC,YAAuB,EAAE,GAAW,EAAE,EAAE;QAC1D,IAAI,kBAAkB,CAAC,YAAY,CAAC,EAAE,CAAC;YACrC,iBAAiB,CAAC,GAAG,CAAC,GAAG,EAAE,YAAY,CAAC,CAAC;QAC3C,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,iBAAiB,CAAC;AAC3B,CAAC;AAED,SAAS,wBAAwB,CAAC,OAAgB,EAAE,OAAsC;IACxF,MAAM,WAAW,GAAG,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,41 @@
|
|
|
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
|
+
export declare function getFunctionOperationsAndOtherOperations(operations: MsGraphOperation[]): {
|
|
37
|
+
nonFunctionOperations: MsGraphOperation[];
|
|
38
|
+
functionOperations: MsGraphOperation[];
|
|
39
|
+
};
|
|
40
|
+
export declare function getGroupedOverloadedFunctions(operations: MsGraphOperation[]): Map<string, MsGraphOperation[]>;
|
|
41
|
+
//# 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,EAA4B,M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BAAgB,EAAE,CAwB7G;AAsGD,wBAAgB,uCAAuC,CAAC,UAAU,EAAE,gBAAgB,EAAE;;;EAUrF;AAED,wBAAgB,6BAA6B,CAAC,UAAU,EAAE,gBAAgB,EAAE,GAAG,GAAG,CAAC,MAAM,EAAE,gBAAgB,EAAE,CAAC,CAW7G"}
|
|
@@ -0,0 +1,202 @@
|
|
|
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, checkFunctionOverloadsWithReturnType } 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
|
+
let 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
|
+
operations = applyFunctionOverloadingRules(operations);
|
|
30
|
+
return operations;
|
|
31
|
+
}
|
|
32
|
+
function GetMsGraphOperation(program, bindingTypeName, operation) {
|
|
33
|
+
const parameterProperties = deleteRoutingParameters(program, operation);
|
|
34
|
+
const element = {
|
|
35
|
+
Name: "",
|
|
36
|
+
Kind: OperationKind.Unknown,
|
|
37
|
+
BindingTypeName: bindingTypeName,
|
|
38
|
+
AgsAttributes: buildAttributes(program, operation),
|
|
39
|
+
Properties: getParameterProperties(program, parameterProperties),
|
|
40
|
+
UnionProperties: new Array(),
|
|
41
|
+
IsVoid: isVoidType(operation.returnType),
|
|
42
|
+
IsNullable: false,
|
|
43
|
+
IsComposable: undefined,
|
|
44
|
+
ReturnTypeName: "",
|
|
45
|
+
Description: getDoc(program, operation),
|
|
46
|
+
RevisionDefinition: GetRevisionDefinition(program, operation, operation.namespace),
|
|
47
|
+
IsGlobalOperation: isGlobalOperation(program, operation),
|
|
48
|
+
ReturnSource: hasReturnSource(program, operation) ? getReturnSource(program, operation) : null,
|
|
49
|
+
};
|
|
50
|
+
if (!element.IsVoid) {
|
|
51
|
+
let returnType = operation.returnType;
|
|
52
|
+
// Remove unions with Error responses added in by standard Operation base op.
|
|
53
|
+
if (returnType.kind === "Union") {
|
|
54
|
+
const unionTypes = extractTypesFromUnion(returnType);
|
|
55
|
+
const filteredTypes = unionTypes.filter((type) => {
|
|
56
|
+
if (type.kind === "Model" && type.name.endsWith("ErrorResponse")) {
|
|
57
|
+
return false;
|
|
58
|
+
}
|
|
59
|
+
return true;
|
|
60
|
+
});
|
|
61
|
+
returnType = filteredTypes[0];
|
|
62
|
+
}
|
|
63
|
+
if (!returnType || isVoidType(returnType)) {
|
|
64
|
+
element.IsVoid = true;
|
|
65
|
+
}
|
|
66
|
+
if (getLocationContext(program, returnType).type === "library") {
|
|
67
|
+
program.stateSet(usedLibraryTypesKey).add(returnType);
|
|
68
|
+
}
|
|
69
|
+
element.IsNullable = isTypeNullable(program, operation.returnType);
|
|
70
|
+
element.ReturnTypeName = operation.name === "delta" ? getDeltaCollectionReturnType(program, operation, returnType) : getPropertyTypeName(program, returnType);
|
|
71
|
+
}
|
|
72
|
+
const actionName = getAction(program, operation);
|
|
73
|
+
if (actionName) {
|
|
74
|
+
element.Name = actionName;
|
|
75
|
+
element.Kind = OperationKind.Action;
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
const theFunction = getFunction(program, operation);
|
|
79
|
+
if (theFunction) {
|
|
80
|
+
element.Name = theFunction.name;
|
|
81
|
+
element.IsComposable = theFunction.isComposable;
|
|
82
|
+
element.Kind = OperationKind.Function;
|
|
83
|
+
const parameterProperty = operation.parameters.properties.get("parameters");
|
|
84
|
+
if (parameterProperty && parameterProperty.type.kind === "Union") {
|
|
85
|
+
const parameterProperties = extractTypesFromUnion(parameterProperty.type)
|
|
86
|
+
.filter((type) => type.kind === "Model")
|
|
87
|
+
.map((m) => getParameterProperties(program, m.properties));
|
|
88
|
+
element.UnionProperties.push(...parameterProperties);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
return element;
|
|
93
|
+
}
|
|
94
|
+
function applyFunctionOverloadingRules(operations) {
|
|
95
|
+
if (operations.length === 0) {
|
|
96
|
+
return operations;
|
|
97
|
+
}
|
|
98
|
+
const { nonFunctionOperations, functionOperations } = getFunctionOperationsAndOtherOperations(operations);
|
|
99
|
+
const groupedOverloadedFunctions = getGroupedOverloadedFunctions(functionOperations);
|
|
100
|
+
const uniqueOperations = [];
|
|
101
|
+
groupedOverloadedFunctions.forEach((overloadedFunctions) => {
|
|
102
|
+
if (overloadedFunctions.length === 1) {
|
|
103
|
+
uniqueOperations.push(overloadedFunctions[0]);
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
const filteredOperations = overloadedFunctions.filter((func, i) => {
|
|
107
|
+
const remainingFuncs = overloadedFunctions.slice(i + 1);
|
|
108
|
+
if (remainingFuncs.some(remainingFunc => checkFunctionOverloadsWithReturnType(func, remainingFunc))) {
|
|
109
|
+
return false;
|
|
110
|
+
}
|
|
111
|
+
return true;
|
|
112
|
+
});
|
|
113
|
+
uniqueOperations.push(...filteredOperations);
|
|
114
|
+
});
|
|
115
|
+
return [...uniqueOperations, ...nonFunctionOperations];
|
|
116
|
+
}
|
|
117
|
+
export function getFunctionOperationsAndOtherOperations(operations) {
|
|
118
|
+
const { nonFunctionOperations, functionOperations } = [...operations].reduce((accumulationObject, operation) => {
|
|
119
|
+
if (operation.Kind === OperationKind.Function) {
|
|
120
|
+
accumulationObject.functionOperations.push(operation);
|
|
121
|
+
}
|
|
122
|
+
else {
|
|
123
|
+
accumulationObject.nonFunctionOperations.push(operation);
|
|
124
|
+
}
|
|
125
|
+
return accumulationObject;
|
|
126
|
+
}, { nonFunctionOperations: [], functionOperations: [] });
|
|
127
|
+
return { nonFunctionOperations, functionOperations };
|
|
128
|
+
}
|
|
129
|
+
export function getGroupedOverloadedFunctions(operations) {
|
|
130
|
+
const groupedOperations = new Map();
|
|
131
|
+
operations.forEach((operation) => {
|
|
132
|
+
const key = `${operation.Name}:${operation.BindingTypeName}`;
|
|
133
|
+
if (groupedOperations.has(key)) {
|
|
134
|
+
groupedOperations.get(key).push(operation);
|
|
135
|
+
}
|
|
136
|
+
else {
|
|
137
|
+
groupedOperations.set(key, [operation]);
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
return groupedOperations;
|
|
141
|
+
}
|
|
142
|
+
function getDeltaCollectionReturnType(program, operation, operationReturnType) {
|
|
143
|
+
const propertyTypeName = getPropertyTypeName(program, operationReturnType);
|
|
144
|
+
if (getSourceInterfaces(operation.interface).some((theInterface) => theInterface.name === "Collection") && !propertyTypeName.startsWith("Collection")) {
|
|
145
|
+
return `Collection(${propertyTypeName})`;
|
|
146
|
+
}
|
|
147
|
+
return propertyTypeName;
|
|
148
|
+
}
|
|
149
|
+
function deleteRoutingParameters(program, operation) {
|
|
150
|
+
const parameterProperties = operation.parameters.properties;
|
|
151
|
+
const paths = getGraphRoutePaths(program, operation.interface);
|
|
152
|
+
if (paths === null || paths === void 0 ? void 0 : paths.length) {
|
|
153
|
+
const routingParams = paths.flatMap((path) => extractParamsFromPath(path));
|
|
154
|
+
parameterProperties.forEach((key, value) => {
|
|
155
|
+
if (routingParams.includes(key.name)) {
|
|
156
|
+
parameterProperties.delete(key.name);
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
return parameterProperties;
|
|
161
|
+
}
|
|
162
|
+
function getBindingTypeName(program, operation) {
|
|
163
|
+
const bindingType = getInterfaceNavigationSourceType(program, operation.interface);
|
|
164
|
+
if (!bindingType) {
|
|
165
|
+
return undefined;
|
|
166
|
+
}
|
|
167
|
+
const propertyTypeName = getPropertyTypeName(program, bindingType);
|
|
168
|
+
if (getSourceInterfaces(operation.interface).some((theInterface) => theInterface.name === "Collection")) {
|
|
169
|
+
return `Collection(${propertyTypeName})`;
|
|
170
|
+
}
|
|
171
|
+
return propertyTypeName;
|
|
172
|
+
}
|
|
173
|
+
function getParameterProperties(program, parameters) {
|
|
174
|
+
const properties = [...parameters].flatMap(([, property]) => {
|
|
175
|
+
var _a;
|
|
176
|
+
if (isPathParam(program, property) || property.name === "graphRouteParams") {
|
|
177
|
+
return [];
|
|
178
|
+
}
|
|
179
|
+
if (property.type.kind === "Model" && isOperationParameters(program, property.type)) {
|
|
180
|
+
return getParameterProperties(program, property.type.properties);
|
|
181
|
+
}
|
|
182
|
+
if (getLocationContext(program, property.type).type === "library") {
|
|
183
|
+
program.stateSet(usedLibraryTypesKey).add(property.type);
|
|
184
|
+
}
|
|
185
|
+
return [
|
|
186
|
+
{
|
|
187
|
+
Name: property.name,
|
|
188
|
+
IsNullable: isTypeNullable(program, property.type),
|
|
189
|
+
PropertyTypeName: getPropertyTypeName(program, property.type),
|
|
190
|
+
IsOptional: property.optional,
|
|
191
|
+
DefaultValue: getDefaultPropertyValue(program, property),
|
|
192
|
+
Description: getDoc(program, property),
|
|
193
|
+
AgsAttributes: buildAttributes(program, property),
|
|
194
|
+
RevisionDefinition: GetRevisionDefinition(program, property, (_a = property.model) === null || _a === void 0 ? void 0 : _a.namespace),
|
|
195
|
+
IsGlobalOperation: false,
|
|
196
|
+
SupportsLimitedCharset: supportsLimitedCharset(program, property),
|
|
197
|
+
},
|
|
198
|
+
];
|
|
199
|
+
});
|
|
200
|
+
return properties;
|
|
201
|
+
}
|
|
202
|
+
//# 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,EAAQ,MAAM,oBAAoB,CAAC;AAC9I,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,oCAAoC,EAAE,MAAM,aAAa,CAAC;AACtL,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;AA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