@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
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
item: Model;
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
export declare const AcceptableMediaTypesAnnotation: FC<{
|
|
3
|
+
streamTypes: string[];
|
|
5
4
|
}>;
|
|
6
5
|
//# sourceMappingURL=acceptable-media-types-annotation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acceptable-media-types-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/acceptable-media-types-annotation.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"acceptable-media-types-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/acceptable-media-types-annotation.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGlC,eAAO,MAAM,8BAA8B,EAAE,EAAE,CAAC;IAAE,WAAW,EAAG,MAAM,EAAE,CAAA;CAAE,CAezE,CAAC"}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import { getStreamTypes } from "../index.js";
|
|
1
|
+
import React from "react";
|
|
3
2
|
import { AnnotationElement, CollectionElement, StringElement } from "./common-elements.js";
|
|
4
|
-
|
|
5
|
-
export const AcceptableMediaTypesAnnotation = ({ item }) => {
|
|
6
|
-
const program = useContext(ProgramContext);
|
|
7
|
-
const streamTypes = getStreamTypes(program, item);
|
|
3
|
+
export const AcceptableMediaTypesAnnotation = ({ streamTypes }) => {
|
|
8
4
|
if (!streamTypes.length) {
|
|
9
5
|
return React.createElement(React.Fragment, null);
|
|
10
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acceptable-media-types-annotation.js","sourceRoot":"","sources":["../../../src/components/acceptable-media-types-annotation.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"acceptable-media-types-annotation.js","sourceRoot":"","sources":["../../../src/components/acceptable-media-types-annotation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE3F,MAAM,CAAC,MAAM,8BAA8B,GAAmC,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE;IAChG,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC;QACxB,OAAO,yCAAK,CAAC;IACf,CAAC;IACD,OAAO,CACL,oBAAC,iBAAiB,IAAC,IAAI,EAAC,wCAAwC;QAC9D,oBAAC,iBAAiB,QACf,WAAW,CAAC,GAAG,CAAC,CAAC,IAAY,EAAE,KAAa,EAAE,EAAE,CAAC,CAChD,oBAAC,aAAa,IAAC,GAAG,EAAE,KAAK;YACvB,0CAAG,IAAI,CAAI,CACG,CACjB,CAAC,CACgB,CACF,CACrB,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export declare const AlternateKeysAnnotation:
|
|
4
|
-
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { AlternateKeyProperty } from "../entities/model.js";
|
|
3
|
+
export declare const AlternateKeysAnnotation: FC<{
|
|
4
|
+
alternateKeys: AlternateKeyProperty[];
|
|
5
5
|
}>;
|
|
6
6
|
//# sourceMappingURL=alternate-keys-annotation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alternate-keys-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/alternate-keys-annotation.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"alternate-keys-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/alternate-keys-annotation.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAE5D,eAAO,MAAM,uBAAuB,EAAE,EAAE,CAAC;IAAE,aAAa,EAAE,oBAAoB,EAAE,CAAA;CAAE,CAoBjF,CAAC"}
|
|
@@ -1,30 +1,23 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import { ProgramContext } from "./program-context.js";
|
|
5
|
-
export const AlternateKeysAnnotation = ({ model }) => {
|
|
6
|
-
const program = useContext(ProgramContext);
|
|
7
|
-
const alternateKeys = [...model.properties.entries()]
|
|
8
|
-
.filter(([_, v]) => isAlternateKey(program, v))
|
|
9
|
-
.reduce((prev, [_, prop]) => [...prev, prop], []);
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AnnotationElement, CollectionElement, PropertyValueElement, RecordElement } from "./common-elements.js";
|
|
3
|
+
export const AlternateKeysAnnotation = ({ alternateKeys }) => {
|
|
10
4
|
if (!alternateKeys.length) {
|
|
11
5
|
return React.createElement(React.Fragment, null);
|
|
12
6
|
}
|
|
13
7
|
return (React.createElement(AnnotationElement, { Term: "Org.OData.Core.V1.AlternateKeys" },
|
|
14
|
-
React.createElement(CollectionElement, null, alternateKeys.map((key) => (React.createElement(RecordElement, { Type: "Org.OData.Core.V1.AlternateKey", key: key.name },
|
|
8
|
+
React.createElement(CollectionElement, null, alternateKeys.map((key) => (React.createElement(RecordElement, { Type: "Org.OData.Core.V1.AlternateKey", key: key.ModelProperty.name },
|
|
15
9
|
React.createElement(PropertyValueElement, { Property: "Key" },
|
|
16
10
|
React.createElement(CollectionElement, null,
|
|
17
11
|
React.createElement(AlternateKeyRecord, { property: key })))))))));
|
|
18
12
|
};
|
|
19
13
|
const AlternateKeyRecord = ({ property }) => {
|
|
20
|
-
|
|
21
|
-
if (property.type.kind !== "Model" || !isComplex(program, property.type)) {
|
|
14
|
+
if (!property.IsModel) {
|
|
22
15
|
return (React.createElement(RecordElement, { Type: "Org.OData.Core.V1.PropertyRef" },
|
|
23
|
-
React.createElement(PropertyValueElement, { Property: "Name", PropertyPath: property.name })
|
|
16
|
+
React.createElement(PropertyValueElement, { Property: "Name", PropertyPath: property.ModelProperty.name }),
|
|
17
|
+
React.createElement(PropertyValueElement, { Property: "Alias", String: property.ModelProperty.name })));
|
|
24
18
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
React.createElement(PropertyValueElement, { Property: "Name", PropertyPath: `${property.name}/${prop.name}` }),
|
|
19
|
+
return (React.createElement(React.Fragment, null, [...property.ModelProperty.type.properties].map(([_, prop]) => (React.createElement(RecordElement, { Type: "Org.OData.Core.V1.PropertyRef", key: prop.name },
|
|
20
|
+
React.createElement(PropertyValueElement, { Property: "Name", PropertyPath: `${property.ModelProperty.name}/${prop.name}` }),
|
|
28
21
|
React.createElement(PropertyValueElement, { Property: "Alias", String: prop.name }))))));
|
|
29
22
|
};
|
|
30
23
|
//# sourceMappingURL=alternate-keys-annotation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alternate-keys-annotation.js","sourceRoot":"","sources":["../../../src/components/alternate-keys-annotation.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"alternate-keys-annotation.js","sourceRoot":"","sources":["../../../src/components/alternate-keys-annotation.tsx"],"names":[],"mappings":"AACA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAGjH,MAAM,CAAC,MAAM,uBAAuB,GAAkD,CAAC,EAAE,aAAa,EAAE,EAAE,EAAE;IAC1G,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,CAAC;QAC1B,OAAO,yCAAK,CAAC;IACf,CAAC;IAED,OAAO,CACL,oBAAC,iBAAiB,IAAC,IAAI,EAAC,iCAAiC;QACvD,oBAAC,iBAAiB,QACf,aAAa,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAC1B,oBAAC,aAAa,IAAC,IAAI,EAAC,gCAAgC,EAAC,GAAG,EAAE,GAAG,CAAC,aAAa,CAAC,IAAI;YAC9E,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,KAAK;gBAClC,oBAAC,iBAAiB;oBAChB,oBAAC,kBAAkB,IAAC,QAAQ,EAAE,GAAG,GAAI,CACnB,CACC,CACT,CACjB,CAAC,CACgB,CACF,CACrB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,kBAAkB,GAA2C,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IAClF,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;QACtB,OAAO,CACL,oBAAC,aAAa,IAAC,IAAI,EAAC,+BAA+B;YACjD,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,MAAM,EAAC,YAAY,EAAE,QAAQ,CAAC,aAAa,CAAC,IAAI,GAAI;YACnF,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,OAAO,EAAC,MAAM,EAAE,QAAQ,CAAC,aAAa,CAAC,IAAI,GAAI,CAChE,CACjB,CAAC;IACJ,CAAC;IAED,OAAO,CACL,0CACG,CAAC,GAAI,QAAQ,CAAC,aAAa,CAAC,IAAc,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CACzE,oBAAC,aAAa,IAAC,IAAI,EAAC,+BAA+B,EAAC,GAAG,EAAE,IAAI,CAAC,IAAI;QAChE,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,MAAM,EAAC,YAAY,EAAE,GAAG,QAAQ,CAAC,aAAa,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,EAAE,GAAI;QACrG,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,OAAO,EAAC,MAAM,EAAE,IAAI,CAAC,IAAI,GAAI,CAC9C,CACjB,CAAC,CACD,CACJ,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { AllowedValuesAnnotations, CollectionAnnotations, ResourceAnnotations } from "../entities/annotations.js";
|
|
3
|
+
export declare const CollectionAnnotationsList: FC<{
|
|
4
|
+
elements: Map<string, CollectionAnnotations>;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const ResourceAnnotationsList: FC<{
|
|
7
|
+
elements: Map<string, ResourceAnnotations>;
|
|
8
|
+
}>;
|
|
9
|
+
export declare const AllowedValuesAnnotationsList: FC<{
|
|
10
|
+
elements: Map<string, AllowedValuesAnnotations>;
|
|
11
|
+
}>;
|
|
12
|
+
//# sourceMappingURL=annotations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"annotations.d.ts","sourceRoot":"","sources":["../../../src/components/annotations.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAUjC,OAAO,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAalH,eAAO,MAAM,yBAAyB,EAAE,EAAE,CAAC;IAAE,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAA;CAAE,CAIrF,CAAA;AAEN,eAAO,MAAM,uBAAuB,EAAE,EAAE,CAAC;IAAE,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAA;CAAE,CAIjF,CAAA;AAEJ,eAAO,MAAM,4BAA4B,EAAE,EAAE,CAAC;IAAE,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAA;CAAG,CAI9F,CAAA"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CountRestrictionsAnnotation } from "./count-restrictions-annotation.js";
|
|
3
|
+
import { ExpandRestrictionsAnnotation } from "./expand-restrictions-annotation.js";
|
|
4
|
+
import { SearchRestrictionsAnnotation } from "./search-restrictions-annotation.js";
|
|
5
|
+
import { AnnotationElement, CollectionElement, ItemList, PropertyValueElement, RecordElement, StringElement } from "./common-elements.js";
|
|
6
|
+
import { SkipSupportedAnnotation } from "./skip-supported-annotation.js";
|
|
7
|
+
import { SortRestrictionsAnnotation } from "./sort-restrictions-annotation.js";
|
|
8
|
+
import { TopSupportedAnnotation } from "./top-supported-annotation.js";
|
|
9
|
+
import { DescriptionAnnotation } from "./description-annotation.js";
|
|
10
|
+
import { UpdateRestrictionsAnnotation } from "./update-restrictions-annotation.js";
|
|
11
|
+
import { InsertRestrictionsAnnotation } from "./insert-restrictions-annotation.js";
|
|
12
|
+
import { FilterRestrictionsAnnotation } from "./filter-restrictions-annotation.js";
|
|
13
|
+
import { getCSDLPrimitiveType } from "../utils.js";
|
|
14
|
+
import { SelectSupportedAnnotation } from "./select-supported-annotation.js";
|
|
15
|
+
const AnnotationsElem = (props) => React.createElement("Annotations", props);
|
|
16
|
+
export const CollectionAnnotationsList = ({ elements }) => React.createElement(ItemList, { items: elements, render: (element) => React.createElement(CollectionAnnotationsElement, { element: element }) });
|
|
17
|
+
export const ResourceAnnotationsList = ({ elements }) => React.createElement(ItemList, { items: elements, render: (element) => React.createElement(ResourceAnnotationsElement, { element: element }) });
|
|
18
|
+
export const AllowedValuesAnnotationsList = ({ elements }) => React.createElement(ItemList, { items: elements, render: (element) => React.createElement(AllowedValuesAnnotation, { element: element }) });
|
|
19
|
+
const AllowedValuesAnnotation = ({ element }) => {
|
|
20
|
+
var _a;
|
|
21
|
+
const { Target, allowedValues } = element;
|
|
22
|
+
return (React.createElement(AnnotationsElem, { Target: Target },
|
|
23
|
+
React.createElement(AnnotationElement, { Term: "Org.OData.Validation.V1.AllowedValues" },
|
|
24
|
+
React.createElement(CollectionElement, null, (_a = allowedValues === null || allowedValues === void 0 ? void 0 : allowedValues.values) === null || _a === void 0 ? void 0 : _a.map((value) => {
|
|
25
|
+
const csdlType = getCSDLPrimitiveType(allowedValues.type);
|
|
26
|
+
const props = {
|
|
27
|
+
Property: "Value",
|
|
28
|
+
[csdlType]: value
|
|
29
|
+
};
|
|
30
|
+
return (React.createElement(RecordElement, { key: value },
|
|
31
|
+
React.createElement(PropertyValueElement, { ...props })));
|
|
32
|
+
})))));
|
|
33
|
+
};
|
|
34
|
+
const CollectionAnnotationsElement = ({ element, }) => React.createElement(AnnotationsElem, { Target: element.Target },
|
|
35
|
+
element.ExplicitBindingOperationNames.length ?
|
|
36
|
+
React.createElement(AnnotationElement, { Term: "Org.OData.Core.V1.ExplicitOperationBindings" },
|
|
37
|
+
React.createElement(CollectionElement, null, element.ExplicitBindingOperationNames.map((target) => {
|
|
38
|
+
return (React.createElement(StringElement, { key: target },
|
|
39
|
+
React.createElement(React.Fragment, null, target)));
|
|
40
|
+
}))) :
|
|
41
|
+
null,
|
|
42
|
+
React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.ReadRestrictions" },
|
|
43
|
+
React.createElement(RecordElement, null,
|
|
44
|
+
React.createElement(PropertyValueElement, { Property: "Readable", Bool: element.HasGetOnCollection }),
|
|
45
|
+
React.createElement(PropertyValueElement, { Property: "ReadByKeyRestrictions" },
|
|
46
|
+
React.createElement(RecordElement, null,
|
|
47
|
+
React.createElement(PropertyValueElement, { Property: "Readable", Bool: element.HasGetOnResource }))))),
|
|
48
|
+
React.createElement(InsertRestrictionsAnnotation, { hasPostOnCollection: element.HasPostOnCollection, requiredProperties: element.RequiredProperties }),
|
|
49
|
+
React.createElement(UpdateRestrictionsAnnotation, { hasPut: element.HasPut, hasPatch: element.HasPatch }),
|
|
50
|
+
React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.DeleteRestrictions" },
|
|
51
|
+
React.createElement(RecordElement, null,
|
|
52
|
+
React.createElement(PropertyValueElement, { Property: "Deletable", Bool: element.HasDeleteOnResource }))),
|
|
53
|
+
React.createElement(CountRestrictionsAnnotation, { hasCountOnCollection: element.HasCountOnCollection }),
|
|
54
|
+
element.HasContainsOrReferences ?
|
|
55
|
+
React.createElement(ExpandRestrictionsAnnotation, { hasExpandOnCollectionOrResource: element.HasExpandOnCollectionOrResource, nonExpandableProperties: element.NonExpandableProperties })
|
|
56
|
+
: null,
|
|
57
|
+
React.createElement(SearchRestrictionsAnnotation, { hasSearchOnCollection: element.HasSearchOnCollection }),
|
|
58
|
+
React.createElement(SkipSupportedAnnotation, { hasSkipOnCollection: element.HasSkipOnCollection }),
|
|
59
|
+
React.createElement(FilterRestrictionsAnnotation, { hasFilterOperation: element.HasFilterOperation, nonFilterableProperties: element.NonFilterableProperties }),
|
|
60
|
+
React.createElement(SortRestrictionsAnnotation, { hasSortOnCollection: element.HasSortOnCollection, nonSortableProperties: element.NonSortableProperties }),
|
|
61
|
+
React.createElement(TopSupportedAnnotation, { hasTopOnCollection: element.HasTopOnCollection }),
|
|
62
|
+
React.createElement(SelectSupportedAnnotation, { isSelectSupported: element.IsSelectable }),
|
|
63
|
+
React.createElement(DescriptionAnnotation, { description: element.Description }));
|
|
64
|
+
const ResourceAnnotationsElement = ({ element, }) => React.createElement(AnnotationsElem, { Target: element.Target },
|
|
65
|
+
element.ExplicitBindingOperationNames.length ?
|
|
66
|
+
React.createElement(AnnotationElement, { Term: "Org.OData.Core.V1.ExplicitOperationBindings" },
|
|
67
|
+
React.createElement(CollectionElement, null, element.ExplicitBindingOperationNames.map((target) => {
|
|
68
|
+
return (React.createElement(StringElement, { key: target },
|
|
69
|
+
React.createElement(React.Fragment, null, target)));
|
|
70
|
+
}))) :
|
|
71
|
+
null,
|
|
72
|
+
React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.ReadRestrictions" },
|
|
73
|
+
React.createElement(RecordElement, null,
|
|
74
|
+
React.createElement(PropertyValueElement, { Property: "Readable", Bool: element.HasGetOnResource }))),
|
|
75
|
+
React.createElement(UpdateRestrictionsAnnotation, { hasPut: element.HasPut, hasPatch: element.HasPatch }),
|
|
76
|
+
React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.DeleteRestrictions" },
|
|
77
|
+
React.createElement(RecordElement, null,
|
|
78
|
+
React.createElement(PropertyValueElement, { Property: "Deletable", Bool: element.HasDeleteOnResource }))),
|
|
79
|
+
element.HasContainsOrReferences ?
|
|
80
|
+
React.createElement(ExpandRestrictionsAnnotation, { hasExpandOnCollectionOrResource: element.HasExpandOnCollectionOrResource, nonExpandableProperties: element.NonExpandableProperties }) :
|
|
81
|
+
null,
|
|
82
|
+
React.createElement(SelectSupportedAnnotation, { isSelectSupported: element.IsSelectable }),
|
|
83
|
+
React.createElement(DescriptionAnnotation, { description: element.Description }));
|
|
84
|
+
//# sourceMappingURL=annotations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"annotations.js","sourceRoot":"","sources":["../../../src/components/annotations.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAA;AACjC,OAAO,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AACjF,OAAO,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAC;AACnF,OAAO,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAC;AACnF,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,QAAQ,EAAE,oBAAoB,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1I,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AAC/E,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAC;AAEnF,OAAO,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAC;AACnF,OAAO,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAC;AACnF,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAO7E,MAAM,eAAe,GAAG,CAAC,KAAuB,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;AAE/F,MAAM,CAAC,MAAM,yBAAyB,GA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,IAAC,GAAG,EAAE,MAAM;oBACxB,0CAAG,MAAM,CAAI,CACC,CACjB,CAAA;YACH,CAAC,CAAC,CAEc,CACF,CAAC,CAAC;QACtB,IAAI;IAEN,oBAAC,iBAAiB,IAAC,IAAI,EAAC,4CAA4C;QAClE,oBAAC,aAAa;YACZ,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,UAAU,EAAC,IAAI,EAAE,OAAO,CAAC,gBAAgB,GAAI,CAC9D,CACE;IAEpB,oBAAC,4BAA4B,IAAC,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,CAAC,QAAQ,GAAI;IAEpF,oBAAC,iBAAiB,IAAC,IAAI,EAAC,8CAA8C;QACpE,oBAAC,aAAa;YACZ,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,WAAW,EAAC,IAAI,EAAE,OAAO,CAAC,mBAAmB,GAAI,CAClE,CACE;IAGlB,OAAO,CAAC,uBAAuB,CAAC,CAAC;QACjC,oBAAC,4BAA4B,IAAC,+BAA+B,EAAE,OAAO,CAAC,+BAA+B,EAAE,uBAAuB,EAAE,OAAO,CAAC,uBAAuB,GAAI,CAAA,CAAC;QACrK,IAAI;IAEN,oBAAC,yBAAyB,IAAC,iBAAiB,EAAE,OAAO,CAAC,YAAY,GAAI;IACtE,oBAAC,qBAAqB,IAAC,WAAW,EAAE,OAAO,CAAC,WAAW,GAAI,CAC3C,CAAA"}
|
|
@@ -2,10 +2,15 @@ import React, { ReactElement } from "react";
|
|
|
2
2
|
interface AnnotationProps {
|
|
3
3
|
Term: string;
|
|
4
4
|
String?: string;
|
|
5
|
-
Bool?:
|
|
5
|
+
Bool?: boolean;
|
|
6
6
|
children?: any;
|
|
7
7
|
}
|
|
8
|
-
export declare const AnnotationElement: (props: AnnotationProps) => React.DOMElement<
|
|
8
|
+
export declare const AnnotationElement: (props: AnnotationProps) => React.DOMElement<{
|
|
9
|
+
Bool: string | undefined;
|
|
10
|
+
Term: string;
|
|
11
|
+
String?: string | undefined;
|
|
12
|
+
children?: any;
|
|
13
|
+
}, Element>;
|
|
9
14
|
export declare const AnnotationEnumMemberElement: (props: {
|
|
10
15
|
children?: any;
|
|
11
16
|
}) => React.DOMElement<{
|
|
@@ -43,86 +48,23 @@ interface PropertyValueProps {
|
|
|
43
48
|
Date?: string;
|
|
44
49
|
EnumMember?: string;
|
|
45
50
|
String?: string;
|
|
46
|
-
Bool?:
|
|
51
|
+
Bool?: boolean;
|
|
47
52
|
PropertyPath?: string;
|
|
48
53
|
children?: any;
|
|
49
54
|
}
|
|
50
|
-
export declare const PropertyValueElement: (props: PropertyValueProps) => React.DOMElement<
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
interface EnumTypeProps {
|
|
58
|
-
Name: string;
|
|
59
|
-
children: any;
|
|
60
|
-
}
|
|
61
|
-
export declare const EnumTypeElement: (props: EnumTypeProps) => React.DOMElement<EnumTypeProps, Element>;
|
|
62
|
-
export declare const PropertyRefElement: (props: {
|
|
63
|
-
Name: string;
|
|
64
|
-
}) => React.ReactElement<{
|
|
65
|
-
Name: string;
|
|
66
|
-
}, string | React.JSXElementConstructor<any>>;
|
|
67
|
-
interface ActionProps {
|
|
68
|
-
Name: string;
|
|
69
|
-
IsBound: string;
|
|
70
|
-
children: any;
|
|
71
|
-
}
|
|
72
|
-
export declare const ActionElement: (props: ActionProps) => React.DOMElement<ActionProps, Element>;
|
|
73
|
-
interface FunctionProps {
|
|
74
|
-
Name: string;
|
|
75
|
-
IsBound: string;
|
|
76
|
-
children: any;
|
|
77
|
-
}
|
|
78
|
-
export declare const FunctionElement: (props: FunctionProps) => React.DOMElement<FunctionProps, Element>;
|
|
79
|
-
interface ParameterProps {
|
|
80
|
-
Name: string;
|
|
81
|
-
Type: string;
|
|
82
|
-
Nullable?: string;
|
|
83
|
-
children?: any;
|
|
84
|
-
}
|
|
85
|
-
export declare const ParameterElement: (props: ParameterProps) => React.DOMElement<ParameterProps, Element>;
|
|
86
|
-
export declare const ReturnTypeElement: (props: {
|
|
87
|
-
Type: string;
|
|
88
|
-
Nullable?: string;
|
|
89
|
-
}) => React.ReactElement<{
|
|
90
|
-
Type: string;
|
|
91
|
-
Nullable?: string | undefined;
|
|
92
|
-
}, string | React.JSXElementConstructor<any>>;
|
|
93
|
-
interface EntityContainerProps {
|
|
94
|
-
Name?: string;
|
|
95
|
-
children: any;
|
|
96
|
-
}
|
|
97
|
-
export declare const EntityContainerElement: (props: EntityContainerProps) => React.DOMElement<EntityContainerProps, Element>;
|
|
98
|
-
interface SingletonProps {
|
|
99
|
-
Name: string;
|
|
100
|
-
Type: string;
|
|
101
|
-
children?: any;
|
|
102
|
-
}
|
|
103
|
-
export declare const SingletonElement: (props: SingletonProps) => React.DOMElement<SingletonProps, Element>;
|
|
104
|
-
interface EntitySetProps {
|
|
105
|
-
Name: string;
|
|
106
|
-
EntityType: string;
|
|
55
|
+
export declare const PropertyValueElement: (props: PropertyValueProps) => React.DOMElement<{
|
|
56
|
+
Bool: string | undefined;
|
|
57
|
+
Property: string;
|
|
58
|
+
Date?: string | undefined;
|
|
59
|
+
EnumMember?: string | undefined;
|
|
60
|
+
String?: string | undefined;
|
|
61
|
+
PropertyPath?: string | undefined;
|
|
107
62
|
children?: any;
|
|
108
|
-
}
|
|
109
|
-
export declare const EntitySetElement: (props: EntitySetProps) => React.DOMElement<EntitySetProps, Element>;
|
|
110
|
-
interface SchemaProps {
|
|
111
|
-
Namespace: string;
|
|
112
|
-
Alias?: string;
|
|
113
|
-
children: any;
|
|
114
|
-
}
|
|
115
|
-
export declare const SchemaElement: (props: SchemaProps) => React.DOMElement<{
|
|
116
|
-
xmlns: string;
|
|
117
|
-
"xmlns:ags": string;
|
|
118
|
-
Namespace: string;
|
|
119
|
-
Alias?: string | undefined;
|
|
120
|
-
children: any;
|
|
121
63
|
}, Element>;
|
|
122
64
|
interface ItemListProps<T> {
|
|
123
65
|
items: Map<string, T> | T[];
|
|
124
66
|
render: (t: T) => ReactElement<any, any> | null;
|
|
125
67
|
}
|
|
126
|
-
export declare const ItemList: <T extends object>(props: ItemListProps<T>) => JSX.Element;
|
|
68
|
+
export declare const ItemList: <T extends object>(props: ItemListProps<T>) => React.JSX.Element;
|
|
127
69
|
export {};
|
|
128
70
|
//# sourceMappingURL=common-elements.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common-elements.d.ts","sourceRoot":"","sources":["../../../src/components/common-elements.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE5C,UAAU,eAAe;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"common-elements.d.ts","sourceRoot":"","sources":["../../../src/components/common-elements.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE5C,UAAU,eAAe;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,GAAG,CAAC;CAChB;AAED,eAAO,MAAM,iBAAiB,UAAW,eAAe;;UANhD,MAAM;;eAGD,GAAG;WAGwH,CAAC;AAEzI,eAAO,MAAM,2BAA2B,UAAW;IAAE,QAAQ,CAAC,EAAE,GAAG,CAAA;CAAE;eAAL,GAAG;WAA+C,CAAC;AAEnH,eAAO,MAAM,iBAAiB,UAAW;IAAE,QAAQ,EAAE,GAAG,CAAA;CAAE;cAAL,GAAG;WAA+C,CAAC;AAExG,eAAO,MAAM,aAAa,UAAW;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,GAAG,CAAA;CAAE;;cAAL,GAAG;WAA2C,CAAC;AAE/G,eAAO,MAAM,aAAa,UAAW;IAAE,QAAQ,EAAE,GAAG,CAAA;CAAE;cAAL,GAAG;WAA2C,CAAC;AAEhG,eAAO,MAAM,6BAA6B,UAAW;IAAE,QAAQ,EAAE,GAAG,CAAA;CAAE;cAAL,GAAG;WAA2D,CAAC;AAEhI,eAAO,MAAM,mBAAmB,UAAW;IAAE,QAAQ,EAAE,GAAG,CAAA;CAAE;cAAL,GAAG;WAAiD,CAAC;AAE5G,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,GAAG,CAAC;CAChB;AACD,eAAO,MAAM,oBAAoB,UAAW,kBAAkB;;cARlD,MAAM;;;;;eAML,GAAG;WAEiI,CAAC;AAElJ,UAAU,aAAa,CAAC,CAAC;IACvB,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;IAC5B,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;CACjD;AAED,eAAO,MAAM,QAAQ,4BAA6B,cAAc,CAAC,CAAC,sBAYjE,CAAC"}
|
|
@@ -1,38 +1,24 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
export const AnnotationElement = (props) => React.createElement("Annotation", props);
|
|
2
|
+
export const AnnotationElement = (props) => { var _a; return React.createElement("Annotation", { ...props, Bool: (_a = props.Bool) === null || _a === void 0 ? void 0 : _a.toString() }); };
|
|
3
3
|
export const AnnotationEnumMemberElement = (props) => React.createElement("EnumMember", props);
|
|
4
4
|
export const CollectionElement = (props) => React.createElement("Collection", props);
|
|
5
5
|
export const RecordElement = (props) => React.createElement("Record", props);
|
|
6
6
|
export const StringElement = (props) => React.createElement("String", props);
|
|
7
7
|
export const NavigationPropertyPathElement = (props) => React.createElement("NavigationPropertyPath", props);
|
|
8
8
|
export const PropertyPathElement = (props) => React.createElement("PropertyPath", props);
|
|
9
|
-
export const PropertyValueElement = (props) => React.createElement("PropertyValue", props);
|
|
10
|
-
export const EnumMemberElement = (props) => React.createElement("Member", props);
|
|
11
|
-
export const EnumTypeElement = (props) => React.createElement("EnumType", props);
|
|
12
|
-
export const PropertyRefElement = (props) => React.createElement("PropertyRef", props);
|
|
13
|
-
export const ActionElement = (props) => React.createElement("Action", props);
|
|
14
|
-
export const FunctionElement = (props) => React.createElement("Function", props);
|
|
15
|
-
export const ParameterElement = (props) => React.createElement("Parameter", props);
|
|
16
|
-
export const ReturnTypeElement = (props) => React.createElement("ReturnType", props);
|
|
17
|
-
export const EntityContainerElement = (props) => React.createElement("EntityContainer", props);
|
|
18
|
-
export const SingletonElement = (props) => React.createElement("Singleton", props);
|
|
19
|
-
export const EntitySetElement = (props) => React.createElement("EntitySet", props);
|
|
20
|
-
export const SchemaElement = (props) => React.createElement("Schema", {
|
|
21
|
-
...props,
|
|
22
|
-
xmlns: "http://docs.oasis-open.org/odata/ns/edm",
|
|
23
|
-
"xmlns:ags": "http://aggregator.microsoft.com/internal",
|
|
24
|
-
});
|
|
9
|
+
export const PropertyValueElement = (props) => { var _a; return React.createElement("PropertyValue", { ...props, Bool: (_a = props.Bool) === null || _a === void 0 ? void 0 : _a.toString() }); };
|
|
25
10
|
export const ItemList = (props) => {
|
|
26
|
-
if (
|
|
27
|
-
|
|
28
|
-
return React.createElement(React.Fragment, null);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
if (props.items.size === 0) {
|
|
33
|
-
return React.createElement(React.Fragment, null);
|
|
34
|
-
}
|
|
11
|
+
if (isEmpty(props.items)) {
|
|
12
|
+
return React.createElement(React.Fragment, null);
|
|
35
13
|
}
|
|
36
14
|
return (React.createElement(React.Fragment, null, [...props.items.entries()].map(([k, v]) => (React.createElement(React.Fragment, { key: k }, props.render(v))))));
|
|
37
15
|
};
|
|
16
|
+
function isEmpty(items) {
|
|
17
|
+
if (Array.isArray(items)) {
|
|
18
|
+
return items.length === 0;
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
return items.size === 0;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
38
24
|
//# sourceMappingURL=common-elements.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common-elements.js","sourceRoot":"","sources":["../../../src/components/common-elements.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"common-elements.js","sourceRoot":"","sources":["../../../src/components/common-elements.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuB,MAAM,OAAO,CAAC;AAS5C,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAAsB,EAAE,EAAE,WAAC,OAAA,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,EAAC,GAAG,KAAK,EAAE,IAAI,EAAE,MAAA,KAAK,CAAC,IAAI,0CAAE,QAAQ,EAAE,EAAC,CAAC,CAAA,EAAA,CAAC;AAEzI,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,KAAyB,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;AAEnH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAAwB,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;AAExG,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAuC,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;AAE/G,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAwB,EAAE,EAAE,CAAC,KAAK,C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|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
property: ModelProperty;
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
export declare const ComputedAnnotation: FC<{
|
|
3
|
+
isComputed: boolean;
|
|
5
4
|
}>;
|
|
6
5
|
//# sourceMappingURL=computed-annotation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computed-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/computed-annotation.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"computed-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/computed-annotation.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGlC,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC;IAAE,UAAU,EAAE,OAAO,CAAA;CAAE,CAGhD,CAAA"}
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import { ProgramContext } from "./program-context.js";
|
|
1
|
+
import React from "react";
|
|
3
2
|
import { AnnotationElement } from "./common-elements.js";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
if (!isComputed(program, prop)) {
|
|
8
|
-
return React.createElement(React.Fragment, null);
|
|
9
|
-
}
|
|
10
|
-
return React.createElement(AnnotationElement, { Term: "Org.OData.Core.V1.Computed", Bool: "true" });
|
|
11
|
-
};
|
|
3
|
+
export const ComputedAnnotation = ({ isComputed }) => isComputed
|
|
4
|
+
? React.createElement(AnnotationElement, { Term: "Org.OData.Core.V1.Computed", Bool: isComputed })
|
|
5
|
+
: React.createElement(React.Fragment, null);
|
|
12
6
|
//# sourceMappingURL=computed-annotation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computed-annotation.js","sourceRoot":"","sources":["../../../src/components/computed-annotation.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"computed-annotation.js","sourceRoot":"","sources":["../../../src/components/computed-annotation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,MAAM,CAAC,MAAM,kBAAkB,GAAgC,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAChF,UAAU;IACR,CAAC,CAAC,oBAAC,iBAAiB,IAAC,IAAI,EAAC,4BAA4B,EAAC,IAAI,EAAE,UAAU,GAAI;IAC3E,CAAC,CAAC,yCAAK,CAAA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
interface: Interface;
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
export declare const CountRestrictionsAnnotation: FC<{
|
|
3
|
+
hasCountOnCollection: boolean;
|
|
5
4
|
}>;
|
|
6
5
|
//# sourceMappingURL=count-restrictions-annotation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"count-restrictions-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/count-restrictions-annotation.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"count-restrictions-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/count-restrictions-annotation.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGlC,eAAO,MAAM,2BAA2B,EAAE,EAAE,CAAC;IAAE,oBAAoB,EAAE,OAAO,CAAA;CAAE,CAKxD,CAAA"}
|
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import { isCount } from "../index.js";
|
|
1
|
+
import React from "react";
|
|
3
2
|
import { AnnotationElement, PropertyValueElement, RecordElement } from "./common-elements.js";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const hasCountOperation = [...props.interface.operations].some(([_, operation]) => isCount(program, operation));
|
|
8
|
-
if (hasCountOperation) {
|
|
9
|
-
return React.createElement(React.Fragment, null);
|
|
10
|
-
}
|
|
11
|
-
return (React.createElement(AnnotationElement, { Term: "Org.OData.Core.V1.CountRestrictions" },
|
|
12
|
-
React.createElement(RecordElement, null,
|
|
13
|
-
React.createElement(PropertyValueElement, { Property: "Countable", Bool: "false" }))));
|
|
14
|
-
};
|
|
3
|
+
export const CountRestrictionsAnnotation = ({ hasCountOnCollection }) => React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.CountRestrictions" },
|
|
4
|
+
React.createElement(RecordElement, null,
|
|
5
|
+
React.createElement(PropertyValueElement, { Property: "Countable", Bool: hasCountOnCollection })));
|
|
15
6
|
//# sourceMappingURL=count-restrictions-annotation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"count-restrictions-annotation.js","sourceRoot":"","sources":["../../../src/components/count-restrictions-annotation.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"count-restrictions-annotation.js","sourceRoot":"","sources":["../../../src/components/count-restrictions-annotation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE9F,MAAM,CAAC,MAAM,2BAA2B,GAA0C,CAAC,EAAE,oBAAoB,EAAE,EAAE,EAAE,CAC7G,oBAAC,iBAAiB,IAAC,IAAI,EAAC,6CAA6C;IACnE,oBAAC,aAAa;QACZ,oBAAC,oBAAoB,IAAC,QAAQ,EAAC,WAAW,EAAC,IAAI,EAAE,oBAAoB,GAAI,CAC3D,CACE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delta-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/delta-annotation.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC;IAAE,eAAe,EAAE,eAAe,CAAA;CAAE,CA+B7C,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AnnotationElement, CollectionElement, NavigationPropertyPathElement, PropertyPathElement, PropertyValueElement, RecordElement } from "./common-elements.js";
|
|
3
|
+
export const DeltaAnnotation = ({ deltaProperties: deltaProperties }) => React.createElement(AnnotationElement, { Term: "Org.OData.Capabilities.V1.ChangeTracking" },
|
|
4
|
+
React.createElement(RecordElement, null,
|
|
5
|
+
React.createElement(PropertyValueElement, { Property: "Supported", Bool: true }),
|
|
6
|
+
deltaProperties.FilterProperties && deltaProperties.FilterProperties.length > 0 ?
|
|
7
|
+
React.createElement(PropertyValueElement, { Property: "FilterableProperties" },
|
|
8
|
+
React.createElement(CollectionElement, null, deltaProperties.FilterProperties.map((property) => {
|
|
9
|
+
return (React.createElement(PropertyPathElement, { key: property },
|
|
10
|
+
React.createElement(React.Fragment, null, property)));
|
|
11
|
+
}))) : null,
|
|
12
|
+
deltaProperties.ExpandProperties && deltaProperties.ExpandProperties.length > 0 ?
|
|
13
|
+
React.createElement(PropertyValueElement, { Property: "ExpandableProperties" },
|
|
14
|
+
React.createElement(CollectionElement, null, deltaProperties.ExpandProperties.map((property) => {
|
|
15
|
+
return (React.createElement(NavigationPropertyPathElement, { key: property },
|
|
16
|
+
React.createElement(React.Fragment, null, property)));
|
|
17
|
+
}))) : null));
|
|
18
|
+
//# sourceMappingURL=delta-annotation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delta-annotation.js","sourceRoot":"","sources":["../../../src/components/delta-annotation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,6BAA6B,EAAE,mBAAmB,EAAE,oBAAoB,EA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;
|
|
5
4
|
}>;
|
|
6
5
|
//# sourceMappingURL=description-annotation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"description-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/description-annotation.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"description-annotation.d.ts","sourceRoot":"","sources":["../../../src/components/description-annotation.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAIlC,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC;IAAE,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAG/D,CAAA"}
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import React, { useContext } from "react";
|
|
1
|
+
import React from "react";
|
|
3
2
|
import { AnnotationElement } from "./common-elements.js";
|
|
4
|
-
|
|
5
|
-
export const DescriptionAnnotation = ({
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
if (text) {
|
|
9
|
-
return React.createElement(AnnotationElement, { Term: "Org.OData.Core.V1.Description", String: text });
|
|
10
|
-
}
|
|
11
|
-
return React.createElement(React.Fragment, null);
|
|
12
|
-
};
|
|
3
|
+
// ToDo: add unit tests to Description annotation
|
|
4
|
+
export const DescriptionAnnotation = ({ description }) => description
|
|
5
|
+
? React.createElement(AnnotationElement, { Term: "Org.OData.Core.V1.Description", String: description })
|
|
6
|
+
: React.createElement(React.Fragment, null);
|
|
13
7
|
//# sourceMappingURL=description-annotation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"description-annotation.js","sourceRoot":"","sources":["../../../src/components/description-annotation.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"description-annotation.js","sourceRoot":"","sources":["../../../src/components/description-annotation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,iDAAiD;AACjD,MAAM,CAAC,MAAM,qBAAqB,GAA4C,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAChG,WAAW;IACT,CAAC,CAAC,oBAAC,iBAAiB,IAAC,IAAI,EAAC,+BAA+B,EAAC,MAAM,EAAE,WAAW,GAAI;IACjF,CAAC,CAAC,yCAAK,CAAA"}
|