@microsoft/typespec-msgraph 0.0.1-Preview.3 → 0.0.1-Preview.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/components/acceptable-media-types-annotation.js.map +1 -1
- package/dist/src/components/alternate-keys-annotation.js +5 -4
- package/dist/src/components/alternate-keys-annotation.js.map +1 -1
- package/dist/src/components/annotations.d.ts +12 -0
- package/dist/src/components/annotations.d.ts.map +1 -0
- package/dist/src/components/annotations.js +106 -0
- package/dist/src/components/annotations.js.map +1 -0
- package/dist/src/components/common-elements.d.ts +19 -6
- package/dist/src/components/common-elements.d.ts.map +1 -1
- package/dist/src/components/common-elements.js +2 -2
- package/dist/src/components/common-elements.js.map +1 -1
- package/dist/src/components/computed-annotation.js +1 -1
- package/dist/src/components/computed-annotation.js.map +1 -1
- package/dist/src/components/count-restrictions-annotation.d.ts +1 -1
- package/dist/src/components/count-restrictions-annotation.d.ts.map +1 -1
- package/dist/src/components/count-restrictions-annotation.js +3 -8
- package/dist/src/components/count-restrictions-annotation.js.map +1 -1
- package/dist/src/components/delta-annotation.d.ts +6 -0
- package/dist/src/components/delta-annotation.d.ts.map +1 -0
- package/dist/src/components/delta-annotation.js +18 -0
- package/dist/src/components/delta-annotation.js.map +1 -0
- package/dist/src/components/description-annotation.d.ts.map +1 -1
- package/dist/src/components/description-annotation.js +1 -0
- package/dist/src/components/description-annotation.js.map +1 -1
- package/dist/src/components/entity-container-element.d.ts +18 -3
- package/dist/src/components/entity-container-element.d.ts.map +1 -1
- package/dist/src/components/entity-container-element.js +16 -42
- package/dist/src/components/entity-container-element.js.map +1 -1
- package/dist/src/components/enum-type-element.d.ts.map +1 -1
- package/dist/src/components/enum-type-element.js +6 -3
- package/dist/src/components/enum-type-element.js.map +1 -1
- package/dist/src/components/expand-restrictions-annotation.d.ts +1 -1
- package/dist/src/components/expand-restrictions-annotation.d.ts.map +1 -1
- package/dist/src/components/expand-restrictions-annotation.js +7 -13
- package/dist/src/components/expand-restrictions-annotation.js.map +1 -1
- package/dist/src/components/filter-restrictions-annotation.d.ts +6 -0
- package/dist/src/components/filter-restrictions-annotation.d.ts.map +1 -0
- package/dist/src/components/filter-restrictions-annotation.js +10 -0
- package/dist/src/components/filter-restrictions-annotation.js.map +1 -0
- package/dist/src/components/immutable-annotation.d.ts +5 -0
- package/dist/src/components/immutable-annotation.d.ts.map +1 -0
- package/dist/src/components/immutable-annotation.js +6 -0
- package/dist/src/components/immutable-annotation.js.map +1 -0
- package/dist/src/components/index.js +3 -3
- package/dist/src/components/index.js.map +1 -1
- package/dist/src/components/insert-restrictions-annotation.d.ts +6 -0
- package/dist/src/components/insert-restrictions-annotation.d.ts.map +1 -0
- package/dist/src/components/insert-restrictions-annotation.js +10 -0
- package/dist/src/components/insert-restrictions-annotation.js.map +1 -0
- package/dist/src/components/is-url-annotation.d.ts +5 -0
- package/dist/src/components/is-url-annotation.d.ts.map +1 -0
- package/dist/src/components/is-url-annotation.js +6 -0
- package/dist/src/components/is-url-annotation.js.map +1 -0
- package/dist/src/components/open-property-type-constraint-annotation-element.d.ts +5 -0
- package/dist/src/components/open-property-type-constraint-annotation-element.d.ts.map +1 -0
- package/dist/src/components/open-property-type-constraint-annotation-element.js +7 -0
- package/dist/src/components/open-property-type-constraint-annotation-element.js.map +1 -0
- package/dist/src/components/operation-element.d.ts.map +1 -1
- package/dist/src/components/operation-element.js +33 -18
- package/dist/src/components/operation-element.js.map +1 -1
- package/dist/src/components/permissions-annotation.js.map +1 -1
- package/dist/src/components/property-element.d.ts.map +1 -1
- package/dist/src/components/property-element.js +10 -4
- package/dist/src/components/property-element.js.map +1 -1
- package/dist/src/components/reference-target-element.d.ts +9 -0
- package/dist/src/components/reference-target-element.d.ts.map +1 -0
- package/dist/src/components/reference-target-element.js +3 -0
- package/dist/src/components/reference-target-element.js.map +1 -0
- package/dist/src/components/revisions-annotation.d.ts.map +1 -1
- package/dist/src/components/revisions-annotation.js +2 -1
- package/dist/src/components/revisions-annotation.js.map +1 -1
- package/dist/src/components/schema-element.d.ts.map +1 -1
- package/dist/src/components/schema-element.js +15 -6
- package/dist/src/components/schema-element.js.map +1 -1
- package/dist/src/components/search-restrictions-annotation.d.ts +1 -1
- package/dist/src/components/search-restrictions-annotation.d.ts.map +1 -1
- package/dist/src/components/search-restrictions-annotation.js +3 -8
- package/dist/src/components/search-restrictions-annotation.js.map +1 -1
- package/dist/src/components/select-supported-annotation.d.ts +5 -0
- package/dist/src/components/select-supported-annotation.d.ts.map +1 -0
- package/dist/src/components/select-supported-annotation.js +6 -0
- package/dist/src/components/select-supported-annotation.js.map +1 -0
- package/dist/src/components/skip-supported-annotation.d.ts +1 -1
- package/dist/src/components/skip-supported-annotation.d.ts.map +1 -1
- package/dist/src/components/skip-supported-annotation.js +1 -6
- package/dist/src/components/skip-supported-annotation.js.map +1 -1
- package/dist/src/components/sort-restrictions-annotation.d.ts +1 -1
- package/dist/src/components/sort-restrictions-annotation.d.ts.map +1 -1
- package/dist/src/components/sort-restrictions-annotation.js +7 -13
- package/dist/src/components/sort-restrictions-annotation.js.map +1 -1
- package/dist/src/components/structured-type-element.d.ts +4 -7
- package/dist/src/components/structured-type-element.d.ts.map +1 -1
- package/dist/src/components/structured-type-element.js +23 -23
- package/dist/src/components/structured-type-element.js.map +1 -1
- package/dist/src/components/term-element.d.ts +9 -0
- package/dist/src/components/term-element.d.ts.map +1 -0
- package/dist/src/components/term-element.js +8 -0
- package/dist/src/components/term-element.js.map +1 -0
- package/dist/src/components/top-supported-annotation.d.ts +1 -1
- package/dist/src/components/top-supported-annotation.d.ts.map +1 -1
- package/dist/src/components/top-supported-annotation.js +2 -5
- package/dist/src/components/top-supported-annotation.js.map +1 -1
- package/dist/src/components/update-restrictions-annotation.d.ts +6 -0
- package/dist/src/components/update-restrictions-annotation.d.ts.map +1 -0
- package/dist/src/components/update-restrictions-annotation.js +8 -0
- package/dist/src/components/update-restrictions-annotation.js.map +1 -0
- package/dist/src/decorators/abstract.d.ts +2 -0
- package/dist/src/decorators/abstract.d.ts.map +1 -1
- package/dist/src/decorators/abstract.js +2 -0
- package/dist/src/decorators/abstract.js.map +1 -1
- package/dist/src/decorators/action.d.ts +12 -0
- package/dist/src/decorators/action.d.ts.map +1 -0
- package/dist/src/decorators/action.js +18 -0
- package/dist/src/decorators/action.js.map +1 -0
- package/dist/src/decorators/additional-query-parameters.d.ts +18 -0
- package/dist/src/decorators/additional-query-parameters.d.ts.map +1 -0
- package/dist/src/decorators/additional-query-parameters.js +23 -0
- package/dist/src/decorators/additional-query-parameters.js.map +1 -0
- package/dist/src/decorators/address-url-msa.d.ts +14 -0
- package/dist/src/decorators/address-url-msa.d.ts.map +1 -0
- package/dist/src/decorators/address-url-msa.js +21 -0
- package/dist/src/decorators/address-url-msa.js.map +1 -0
- package/dist/src/decorators/address-url.d.ts +18 -0
- package/dist/src/decorators/address-url.d.ts.map +1 -0
- package/dist/src/decorators/address-url.js +21 -0
- package/dist/src/decorators/address-url.js.map +1 -0
- package/dist/src/decorators/ags-attribute.d.ts +17 -0
- package/dist/src/decorators/ags-attribute.d.ts.map +1 -0
- package/dist/src/decorators/ags-attribute.js +167 -0
- package/dist/src/decorators/ags-attribute.js.map +1 -0
- package/dist/src/decorators/allowed-values.d.ts +15 -0
- package/dist/src/decorators/allowed-values.d.ts.map +1 -0
- package/dist/src/decorators/allowed-values.js +37 -0
- package/dist/src/decorators/allowed-values.js.map +1 -0
- package/dist/src/decorators/complex.d.ts +2 -0
- package/dist/src/decorators/complex.d.ts.map +1 -1
- package/dist/src/decorators/complex.js +2 -0
- package/dist/src/decorators/complex.js.map +1 -1
- package/dist/src/decorators/computed.d.ts +2 -0
- package/dist/src/decorators/computed.d.ts.map +1 -1
- package/dist/src/decorators/computed.js +2 -0
- package/dist/src/decorators/computed.js.map +1 -1
- package/dist/src/decorators/contains.d.ts +2 -0
- package/dist/src/decorators/contains.d.ts.map +1 -1
- package/dist/src/decorators/contains.js +2 -0
- package/dist/src/decorators/contains.js.map +1 -1
- package/dist/src/decorators/count.d.ts +2 -0
- package/dist/src/decorators/count.d.ts.map +1 -1
- package/dist/src/decorators/count.js +2 -0
- package/dist/src/decorators/count.js.map +1 -1
- package/dist/src/decorators/delta-collection.d.ts +8 -0
- package/dist/src/decorators/delta-collection.d.ts.map +1 -0
- package/dist/src/decorators/delta-collection.js +12 -0
- package/dist/src/decorators/delta-collection.js.map +1 -0
- package/dist/src/decorators/delta.d.ts +10 -0
- package/dist/src/decorators/delta.d.ts.map +1 -0
- package/dist/src/decorators/delta.js +14 -0
- package/dist/src/decorators/delta.js.map +1 -0
- package/dist/src/decorators/deprecated-definition.d.ts +5 -4
- package/dist/src/decorators/deprecated-definition.d.ts.map +1 -1
- package/dist/src/decorators/deprecated-definition.js +1 -7
- package/dist/src/decorators/deprecated-definition.js.map +1 -1
- package/dist/src/decorators/entity.d.ts +3 -0
- package/dist/src/decorators/entity.d.ts.map +1 -1
- package/dist/src/decorators/entity.js +7 -1
- package/dist/src/decorators/entity.js.map +1 -1
- package/dist/src/decorators/expand.d.ts +4 -2
- package/dist/src/decorators/expand.d.ts.map +1 -1
- package/dist/src/decorators/expand.js +7 -1
- package/dist/src/decorators/expand.js.map +1 -1
- package/dist/src/decorators/experimental.d.ts +11 -0
- package/dist/src/decorators/experimental.d.ts.map +1 -0
- package/dist/src/decorators/experimental.js +15 -0
- package/dist/src/decorators/experimental.js.map +1 -0
- package/dist/src/decorators/filter.d.ts +13 -0
- package/dist/src/decorators/filter.d.ts.map +1 -0
- package/dist/src/decorators/filter.js +29 -0
- package/dist/src/decorators/filter.js.map +1 -0
- package/dist/src/decorators/function.d.ts +9 -3
- package/dist/src/decorators/function.d.ts.map +1 -1
- package/dist/src/decorators/function.js +7 -2
- package/dist/src/decorators/function.js.map +1 -1
- package/dist/src/decorators/global-operation.d.ts +11 -0
- package/dist/src/decorators/global-operation.d.ts.map +1 -0
- package/dist/src/decorators/global-operation.js +15 -0
- package/dist/src/decorators/global-operation.js.map +1 -0
- package/dist/src/decorators/graph-deprecated.d.ts +13 -0
- package/dist/src/decorators/graph-deprecated.d.ts.map +1 -0
- package/dist/src/decorators/graph-deprecated.js +21 -0
- package/dist/src/decorators/graph-deprecated.js.map +1 -0
- package/dist/src/decorators/graph-route.d.ts +20 -0
- package/dist/src/decorators/graph-route.d.ts.map +1 -0
- package/dist/src/decorators/graph-route.js +141 -0
- package/dist/src/decorators/graph-route.js.map +1 -0
- package/dist/src/decorators/graphFlags.d.ts +11 -0
- package/dist/src/decorators/graphFlags.d.ts.map +1 -0
- package/dist/src/decorators/graphFlags.js +15 -0
- package/dist/src/decorators/graphFlags.js.map +1 -0
- package/dist/src/decorators/immutable.d.ts +10 -0
- package/dist/src/decorators/immutable.d.ts.map +1 -0
- package/dist/src/decorators/immutable.js +14 -0
- package/dist/src/decorators/immutable.js.map +1 -0
- package/dist/src/decorators/index.d.ts +35 -3
- package/dist/src/decorators/index.d.ts.map +1 -1
- package/dist/src/decorators/index.js +35 -3
- package/dist/src/decorators/index.js.map +1 -1
- package/dist/src/decorators/is-owner.d.ts +12 -0
- package/dist/src/decorators/is-owner.d.ts.map +1 -0
- package/dist/src/decorators/is-owner.js +19 -0
- package/dist/src/decorators/is-owner.js.map +1 -0
- package/dist/src/decorators/limited-charset.d.ts +11 -0
- package/dist/src/decorators/limited-charset.d.ts.map +1 -0
- package/dist/src/decorators/limited-charset.js +15 -0
- package/dist/src/decorators/limited-charset.js.map +1 -0
- package/dist/src/decorators/media.d.ts +12 -0
- package/dist/src/decorators/media.d.ts.map +1 -0
- package/dist/src/decorators/media.js +18 -0
- package/dist/src/decorators/media.js.map +1 -0
- package/dist/src/decorators/open.d.ts +2 -0
- package/dist/src/decorators/open.d.ts.map +1 -1
- package/dist/src/decorators/open.js +2 -0
- package/dist/src/decorators/open.js.map +1 -1
- package/dist/src/decorators/operation-parameters.d.ts +2 -0
- package/dist/src/decorators/operation-parameters.d.ts.map +1 -1
- package/dist/src/decorators/operation-parameters.js +2 -0
- package/dist/src/decorators/operation-parameters.js.map +1 -1
- package/dist/src/decorators/order-by.d.ts +3 -2
- package/dist/src/decorators/order-by.d.ts.map +1 -1
- package/dist/src/decorators/order-by.js +3 -1
- package/dist/src/decorators/order-by.js.map +1 -1
- package/dist/src/decorators/ownerless.d.ts +10 -0
- package/dist/src/decorators/ownerless.d.ts.map +1 -0
- package/dist/src/decorators/ownerless.js +14 -0
- package/dist/src/decorators/ownerless.js.map +1 -0
- package/dist/src/decorators/paged-collection.d.ts +8 -0
- package/dist/src/decorators/paged-collection.d.ts.map +1 -0
- package/dist/src/decorators/paged-collection.js +12 -0
- package/dist/src/decorators/paged-collection.js.map +1 -0
- package/dist/src/decorators/partial.d.ts +12 -0
- package/dist/src/decorators/partial.d.ts.map +1 -0
- package/dist/src/decorators/partial.js +18 -0
- package/dist/src/decorators/partial.js.map +1 -0
- package/dist/src/decorators/passthrough-address-url-msa.d.ts +14 -0
- package/dist/src/decorators/passthrough-address-url-msa.d.ts.map +1 -0
- package/dist/src/decorators/passthrough-address-url-msa.js +20 -0
- package/dist/src/decorators/passthrough-address-url-msa.js.map +1 -0
- package/dist/src/decorators/passthrough-address-url.d.ts +14 -0
- package/dist/src/decorators/passthrough-address-url.d.ts.map +1 -0
- package/dist/src/decorators/passthrough-address-url.js +20 -0
- package/dist/src/decorators/passthrough-address-url.js.map +1 -0
- package/dist/src/decorators/prefixed-graph-routes.d.ts +10 -0
- package/dist/src/decorators/prefixed-graph-routes.d.ts.map +1 -0
- package/dist/src/decorators/prefixed-graph-routes.js +27 -0
- package/dist/src/decorators/prefixed-graph-routes.js.map +1 -0
- package/dist/src/decorators/private-preview-definition.d.ts +5 -4
- package/dist/src/decorators/private-preview-definition.d.ts.map +1 -1
- package/dist/src/decorators/private-preview-definition.js +3 -6
- package/dist/src/decorators/private-preview-definition.js.map +1 -1
- package/dist/src/decorators/private-preview.d.ts +4 -3
- package/dist/src/decorators/private-preview.d.ts.map +1 -1
- package/dist/src/decorators/private-preview.js +3 -1
- package/dist/src/decorators/private-preview.js.map +1 -1
- package/dist/src/decorators/privileged.d.ts +11 -0
- package/dist/src/decorators/privileged.d.ts.map +1 -0
- package/dist/src/decorators/privileged.js +15 -0
- package/dist/src/decorators/privileged.js.map +1 -0
- package/dist/src/decorators/public-namespace.d.ts +12 -0
- package/dist/src/decorators/public-namespace.d.ts.map +1 -0
- package/dist/src/decorators/public-namespace.js +21 -0
- package/dist/src/decorators/public-namespace.js.map +1 -0
- package/dist/src/decorators/read-only.d.ts +2 -0
- package/dist/src/decorators/read-only.d.ts.map +1 -1
- package/dist/src/decorators/read-only.js +2 -0
- package/dist/src/decorators/read-only.js.map +1 -1
- package/dist/src/decorators/reference-target.d.ts +17 -0
- package/dist/src/decorators/reference-target.d.ts.map +1 -0
- package/dist/src/decorators/reference-target.js +59 -0
- package/dist/src/decorators/reference-target.js.map +1 -0
- package/dist/src/decorators/references.d.ts +2 -0
- package/dist/src/decorators/references.d.ts.map +1 -1
- package/dist/src/decorators/references.js +2 -0
- package/dist/src/decorators/references.js.map +1 -1
- package/dist/src/decorators/required-for-create.d.ts +12 -0
- package/dist/src/decorators/required-for-create.d.ts.map +1 -0
- package/dist/src/decorators/required-for-create.js +16 -0
- package/dist/src/decorators/required-for-create.js.map +1 -0
- package/dist/src/decorators/return-source.d.ts +11 -0
- package/dist/src/decorators/return-source.d.ts.map +1 -0
- package/dist/src/decorators/return-source.js +28 -0
- package/dist/src/decorators/return-source.js.map +1 -0
- package/dist/src/decorators/search.d.ts +2 -0
- package/dist/src/decorators/search.d.ts.map +1 -1
- package/dist/src/decorators/search.js +2 -0
- package/dist/src/decorators/search.js.map +1 -1
- package/dist/src/decorators/select.d.ts +11 -0
- package/dist/src/decorators/select.d.ts.map +1 -0
- package/dist/src/decorators/select.js +15 -0
- package/dist/src/decorators/select.js.map +1 -0
- package/dist/src/decorators/shared-entity.d.ts +9 -0
- package/dist/src/decorators/shared-entity.d.ts.map +1 -0
- package/dist/src/decorators/shared-entity.js +15 -0
- package/dist/src/decorators/shared-entity.js.map +1 -0
- package/dist/src/decorators/skip.d.ts +2 -0
- package/dist/src/decorators/skip.d.ts.map +1 -1
- package/dist/src/decorators/skip.js +2 -0
- package/dist/src/decorators/skip.js.map +1 -1
- package/dist/src/decorators/term.d.ts +13 -0
- package/dist/src/decorators/term.d.ts.map +1 -0
- package/dist/src/decorators/term.js +14 -0
- package/dist/src/decorators/term.js.map +1 -0
- package/dist/src/decorators/top.d.ts +2 -0
- package/dist/src/decorators/top.d.ts.map +1 -1
- package/dist/src/decorators/top.js +2 -0
- package/dist/src/decorators/top.js.map +1 -1
- package/dist/src/decorators/workload-name-msa.d.ts +11 -0
- package/dist/src/decorators/workload-name-msa.d.ts.map +1 -0
- package/dist/src/decorators/workload-name-msa.js +15 -0
- package/dist/src/decorators/workload-name-msa.js.map +1 -0
- package/dist/src/decorators/workload-name.d.ts +11 -0
- package/dist/src/decorators/workload-name.d.ts.map +1 -0
- package/dist/src/decorators/workload-name.js +15 -0
- package/dist/src/decorators/workload-name.js.map +1 -0
- package/dist/src/decorators/workload-namespace.d.ts +12 -0
- package/dist/src/decorators/workload-namespace.d.ts.map +1 -0
- package/dist/src/decorators/workload-namespace.js +21 -0
- package/dist/src/decorators/workload-namespace.js.map +1 -0
- package/dist/src/decorators/write-only.d.ts +2 -0
- package/dist/src/decorators/write-only.d.ts.map +1 -1
- package/dist/src/decorators/write-only.js +2 -0
- package/dist/src/decorators/write-only.js.map +1 -1
- package/dist/src/dom/error-interceptor.d.ts +2 -0
- package/dist/src/dom/error-interceptor.d.ts.map +1 -0
- package/dist/src/dom/error-interceptor.js +13 -0
- package/dist/src/dom/error-interceptor.js.map +1 -0
- package/dist/src/dom/reconciler.js.map +1 -1
- package/dist/src/dom/renderer.d.ts +1 -0
- package/dist/src/dom/renderer.d.ts.map +1 -1
- package/dist/src/dom/renderer.js +1 -0
- package/dist/src/dom/renderer.js.map +1 -1
- package/dist/src/emitter.d.ts +2 -1
- package/dist/src/emitter.d.ts.map +1 -1
- package/dist/src/emitter.js +31 -2
- package/dist/src/emitter.js.map +1 -1
- package/dist/src/entities/address-url.d.ts +8 -0
- package/dist/src/entities/address-url.d.ts.map +1 -0
- package/dist/src/entities/address-url.js +47 -0
- package/dist/src/entities/address-url.js.map +1 -0
- package/dist/src/entities/annotations.d.ts +53 -0
- package/dist/src/entities/annotations.d.ts.map +1 -0
- package/dist/src/entities/annotations.js +185 -0
- package/dist/src/entities/annotations.js.map +1 -0
- package/dist/src/entities/entity-container.d.ts +24 -23
- package/dist/src/entities/entity-container.d.ts.map +1 -1
- package/dist/src/entities/entity-container.js +58 -119
- package/dist/src/entities/entity-container.js.map +1 -1
- package/dist/src/entities/enum.d.ts +3 -0
- package/dist/src/entities/enum.d.ts.map +1 -1
- package/dist/src/entities/enum.js +12 -5
- package/dist/src/entities/enum.js.map +1 -1
- package/dist/src/entities/model.d.ts +47 -27
- package/dist/src/entities/model.d.ts.map +1 -1
- package/dist/src/entities/model.js +357 -96
- package/dist/src/entities/model.js.map +1 -1
- package/dist/src/entities/ms-graph-route.d.ts +13 -0
- package/dist/src/entities/ms-graph-route.d.ts.map +1 -0
- package/dist/src/entities/ms-graph-route.js +67 -0
- package/dist/src/entities/ms-graph-route.js.map +1 -0
- package/dist/src/entities/namespace.d.ts +32 -4
- package/dist/src/entities/namespace.d.ts.map +1 -1
- package/dist/src/entities/namespace.js +354 -18
- package/dist/src/entities/namespace.js.map +1 -1
- package/dist/src/entities/operation.d.ts +20 -2
- package/dist/src/entities/operation.d.ts.map +1 -1
- package/dist/src/entities/operation.js +162 -25
- package/dist/src/entities/operation.js.map +1 -1
- package/dist/src/entities/property.d.ts.map +1 -1
- package/dist/src/entities/property.js +10 -0
- package/dist/src/entities/property.js.map +1 -1
- package/dist/src/entities/revision-definition.d.ts +3 -2
- package/dist/src/entities/revision-definition.d.ts.map +1 -1
- package/dist/src/entities/revision-definition.js +18 -7
- package/dist/src/entities/revision-definition.js.map +1 -1
- package/dist/src/entities/term.d.ts +8 -0
- package/dist/src/entities/term.d.ts.map +1 -0
- package/dist/src/entities/term.js +14 -0
- package/dist/src/entities/term.js.map +1 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +2 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/lib.d.ts +141 -86
- package/dist/src/lib.d.ts.map +1 -1
- package/dist/src/lib.js +90 -11
- package/dist/src/lib.js.map +1 -1
- package/dist/src/linter.d.ts +1 -2
- package/dist/src/linter.d.ts.map +1 -1
- package/dist/src/linter.js +34 -34
- package/dist/src/linter.js.map +1 -1
- package/dist/src/path-tree.d.ts +16 -0
- package/dist/src/path-tree.d.ts.map +1 -0
- package/dist/src/path-tree.js +76 -0
- package/dist/src/path-tree.js.map +1 -0
- package/dist/src/rules/abstract.d.ts +2 -1
- package/dist/src/rules/abstract.d.ts.map +1 -1
- package/dist/src/rules/abstract.js +8 -8
- package/dist/src/rules/abstract.js.map +1 -1
- package/dist/src/rules/address-url.d.ts +20 -0
- package/dist/src/rules/address-url.d.ts.map +1 -0
- package/dist/src/rules/address-url.js +248 -0
- package/dist/src/rules/address-url.js.map +1 -0
- package/dist/src/rules/allowed-values.d.ts +7 -0
- package/dist/src/rules/allowed-values.d.ts.map +1 -0
- package/dist/src/rules/allowed-values.js +59 -0
- package/dist/src/rules/allowed-values.js.map +1 -0
- package/dist/src/rules/alternate-key.d.ts +4 -3
- package/dist/src/rules/alternate-key.d.ts.map +1 -1
- package/dist/src/rules/alternate-key.js +23 -23
- package/dist/src/rules/alternate-key.js.map +1 -1
- package/dist/src/rules/collection-navigation-properties-not-nullable.d.ts +3 -0
- package/dist/src/rules/collection-navigation-properties-not-nullable.d.ts.map +1 -0
- package/dist/src/rules/collection-navigation-properties-not-nullable.js +28 -0
- package/dist/src/rules/collection-navigation-properties-not-nullable.js.map +1 -0
- package/dist/src/rules/complex.d.ts +3 -0
- package/dist/src/rules/complex.d.ts.map +1 -0
- package/dist/src/rules/complex.js +27 -0
- package/dist/src/rules/complex.js.map +1 -0
- package/dist/src/rules/computed.d.ts +2 -3
- package/dist/src/rules/computed.d.ts.map +1 -1
- package/dist/src/rules/computed.js +14 -16
- package/dist/src/rules/computed.js.map +1 -1
- package/dist/src/rules/contains.d.ts +2 -1
- package/dist/src/rules/contains.d.ts.map +1 -1
- package/dist/src/rules/contains.js +9 -8
- package/dist/src/rules/contains.js.map +1 -1
- package/dist/src/rules/count.d.ts +2 -1
- package/dist/src/rules/count.d.ts.map +1 -1
- package/dist/src/rules/count.js +12 -9
- package/dist/src/rules/count.js.map +1 -1
- package/dist/src/rules/delta.d.ts +8 -0
- package/dist/src/rules/delta.d.ts.map +1 -0
- package/dist/src/rules/delta.js +208 -0
- package/dist/src/rules/delta.js.map +1 -0
- package/dist/src/rules/disallowed-typespec-decorators.d.ts +3 -0
- package/dist/src/rules/disallowed-typespec-decorators.d.ts.map +1 -0
- package/dist/src/rules/disallowed-typespec-decorators.js +37 -0
- package/dist/src/rules/disallowed-typespec-decorators.js.map +1 -0
- package/dist/src/rules/documentation.d.ts +4 -0
- package/dist/src/rules/documentation.d.ts.map +1 -0
- package/dist/src/rules/documentation.js +88 -0
- package/dist/src/rules/documentation.js.map +1 -0
- package/dist/src/rules/entity.d.ts +9 -2
- package/dist/src/rules/entity.d.ts.map +1 -1
- package/dist/src/rules/entity.js +173 -17
- package/dist/src/rules/entity.js.map +1 -1
- package/dist/src/rules/enum.d.ts +5 -1
- package/dist/src/rules/enum.d.ts.map +1 -1
- package/dist/src/rules/enum.js +35 -6
- package/dist/src/rules/enum.js.map +1 -1
- package/dist/src/rules/expand.d.ts +3 -2
- package/dist/src/rules/expand.d.ts.map +1 -1
- package/dist/src/rules/expand.js +27 -24
- package/dist/src/rules/expand.js.map +1 -1
- package/dist/src/rules/extends-on-same-type.d.ts +3 -0
- package/dist/src/rules/extends-on-same-type.d.ts.map +1 -0
- package/dist/src/rules/extends-on-same-type.js +39 -0
- package/dist/src/rules/extends-on-same-type.js.map +1 -0
- package/dist/src/rules/filter.d.ts +7 -0
- package/dist/src/rules/filter.d.ts.map +1 -0
- package/dist/src/rules/filter.js +160 -0
- package/dist/src/rules/filter.js.map +1 -0
- package/dist/src/rules/function.d.ts +3 -1
- package/dist/src/rules/function.d.ts.map +1 -1
- package/dist/src/rules/function.js +48 -9
- package/dist/src/rules/function.js.map +1 -1
- package/dist/src/rules/global-operation.d.ts +4 -0
- package/dist/src/rules/global-operation.d.ts.map +1 -0
- package/dist/src/rules/global-operation.js +60 -0
- package/dist/src/rules/global-operation.js.map +1 -0
- package/dist/src/rules/graph-deprecated.d.ts +8 -0
- package/dist/src/rules/graph-deprecated.d.ts.map +1 -0
- package/dist/src/rules/graph-deprecated.js +152 -0
- package/dist/src/rules/graph-deprecated.js.map +1 -0
- package/dist/src/rules/graph-route.d.ts +17 -0
- package/dist/src/rules/graph-route.d.ts.map +1 -0
- package/dist/src/rules/graph-route.js +395 -0
- package/dist/src/rules/graph-route.js.map +1 -0
- package/dist/src/rules/index.d.ts +24 -4
- package/dist/src/rules/index.d.ts.map +1 -1
- package/dist/src/rules/index.js +24 -89
- package/dist/src/rules/index.js.map +1 -1
- package/dist/src/rules/limited-charset.d.ts +3 -0
- package/dist/src/rules/limited-charset.d.ts.map +1 -0
- package/dist/src/rules/limited-charset.js +42 -0
- package/dist/src/rules/limited-charset.js.map +1 -0
- package/dist/src/rules/media.d.ts +10 -0
- package/dist/src/rules/media.d.ts.map +1 -0
- package/dist/src/rules/media.js +122 -0
- package/dist/src/rules/media.js.map +1 -0
- package/dist/src/rules/model.d.ts +12 -0
- package/dist/src/rules/model.d.ts.map +1 -0
- package/dist/src/rules/model.js +135 -0
- package/dist/src/rules/model.js.map +1 -0
- package/dist/src/rules/namespace.d.ts +6 -0
- package/dist/src/rules/namespace.d.ts.map +1 -0
- package/dist/src/rules/namespace.js +110 -0
- package/dist/src/rules/namespace.js.map +1 -0
- package/dist/src/rules/open.d.ts +2 -1
- package/dist/src/rules/open.d.ts.map +1 -1
- package/dist/src/rules/open.js +9 -8
- package/dist/src/rules/open.js.map +1 -1
- package/dist/src/rules/operation-inside-interface.d.ts +7 -0
- package/dist/src/rules/operation-inside-interface.d.ts.map +1 -0
- package/dist/src/rules/operation-inside-interface.js +96 -0
- package/dist/src/rules/operation-inside-interface.js.map +1 -0
- package/dist/src/rules/order-by.d.ts +3 -2
- package/dist/src/rules/order-by.d.ts.map +1 -1
- package/dist/src/rules/order-by.js +27 -26
- package/dist/src/rules/order-by.js.map +1 -1
- package/dist/src/rules/ownerless.d.ts +11 -0
- package/dist/src/rules/ownerless.d.ts.map +1 -0
- package/dist/src/rules/ownerless.js +170 -0
- package/dist/src/rules/ownerless.js.map +1 -0
- package/dist/src/rules/partial.d.ts +9 -0
- package/dist/src/rules/partial.d.ts.map +1 -0
- package/dist/src/rules/partial.js +84 -0
- package/dist/src/rules/partial.js.map +1 -0
- package/dist/src/rules/record-t.d.ts +11 -0
- package/dist/src/rules/record-t.d.ts.map +1 -0
- package/dist/src/rules/record-t.js +129 -0
- package/dist/src/rules/record-t.js.map +1 -0
- package/dist/src/rules/reference-target.d.ts +6 -0
- package/dist/src/rules/reference-target.d.ts.map +1 -0
- package/dist/src/rules/reference-target.js +113 -0
- package/dist/src/rules/reference-target.js.map +1 -0
- package/dist/src/rules/references.d.ts +2 -1
- package/dist/src/rules/references.d.ts.map +1 -1
- package/dist/src/rules/references.js +9 -8
- package/dist/src/rules/references.js.map +1 -1
- package/dist/src/rules/required-for-create.d.ts +3 -0
- package/dist/src/rules/required-for-create.d.ts.map +1 -0
- package/dist/src/rules/required-for-create.js +41 -0
- package/dist/src/rules/required-for-create.js.map +1 -0
- package/dist/src/rules/return-source.d.ts +3 -0
- package/dist/src/rules/return-source.d.ts.map +1 -0
- package/dist/src/rules/return-source.js +27 -0
- package/dist/src/rules/return-source.js.map +1 -0
- package/dist/src/rules/search.d.ts +2 -1
- package/dist/src/rules/search.d.ts.map +1 -1
- package/dist/src/rules/search.js +12 -9
- package/dist/src/rules/search.js.map +1 -1
- package/dist/src/rules/shared-entity.d.ts +8 -0
- package/dist/src/rules/shared-entity.d.ts.map +1 -0
- package/dist/src/rules/shared-entity.js +176 -0
- package/dist/src/rules/shared-entity.js.map +1 -0
- package/dist/src/rules/skip.d.ts +2 -1
- package/dist/src/rules/skip.d.ts.map +1 -1
- package/dist/src/rules/skip.js +12 -9
- package/dist/src/rules/skip.js.map +1 -1
- package/dist/src/rules/top.d.ts +2 -1
- package/dist/src/rules/top.d.ts.map +1 -1
- package/dist/src/rules/top.js +12 -9
- package/dist/src/rules/top.js.map +1 -1
- package/dist/src/testing/index.d.ts +1 -0
- package/dist/src/testing/index.d.ts.map +1 -1
- package/dist/src/testing/index.js +21 -0
- package/dist/src/testing/index.js.map +1 -1
- package/dist/src/utils.d.ts +86 -2
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/src/utils.js +733 -22
- package/dist/src/utils.js.map +1 -1
- package/dist/src/validate.d.ts +3 -0
- package/dist/src/validate.d.ts.map +1 -0
- package/dist/src/validate.js +97 -0
- package/dist/src/validate.js.map +1 -0
- package/lib/bodies.tsp +71 -0
- package/lib/decorators.tsp +345 -23
- package/lib/deployment.tsp +18 -0
- package/lib/lib.tsp +9 -23
- package/lib/msgraph.tsp +5 -0
- package/lib/porcelain.tsp +190 -0
- package/lib/responses.tsp +59 -0
- package/lib/shared-models.tsp +30 -0
- package/package.json +24 -31
- package/dist/src/decorators/attribute-builder.d.ts +0 -2
- package/dist/src/decorators/attribute-builder.d.ts.map +0 -1
- package/dist/src/decorators/attribute-builder.js +0 -166
- package/dist/src/decorators/attribute-builder.js.map +0 -1
- package/dist/src/decorators/attributes.d.ts +0 -57
- package/dist/src/decorators/attributes.d.ts.map +0 -1
- package/dist/src/decorators/attributes.js +0 -50
- package/dist/src/decorators/attributes.js.map +0 -1
- package/dist/src/decorators/decorator-parameter.d.ts +0 -4
- package/dist/src/decorators/decorator-parameter.d.ts.map +0 -1
- package/dist/src/decorators/decorator-parameter.js +0 -2
- package/dist/src/decorators/decorator-parameter.js.map +0 -1
- package/dist/src/decorators/handlers/custom/additional-query-parameters.d.ts +0 -15
- package/dist/src/decorators/handlers/custom/additional-query-parameters.d.ts.map +0 -1
- package/dist/src/decorators/handlers/custom/additional-query-parameters.js +0 -38
- package/dist/src/decorators/handlers/custom/additional-query-parameters.js.map +0 -1
- package/dist/src/decorators/handlers/custom/ags-attribute.d.ts +0 -8
- package/dist/src/decorators/handlers/custom/ags-attribute.d.ts.map +0 -1
- package/dist/src/decorators/handlers/custom/ags-attribute.js +0 -36
- package/dist/src/decorators/handlers/custom/ags-attribute.js.map +0 -1
- package/dist/src/decorators/handlers/custom/index.d.ts +0 -3
- package/dist/src/decorators/handlers/custom/index.d.ts.map +0 -1
- package/dist/src/decorators/handlers/custom/index.js +0 -3
- package/dist/src/decorators/handlers/custom/index.js.map +0 -1
- package/dist/src/decorators/handlers/index.d.ts +0 -31
- package/dist/src/decorators/handlers/index.d.ts.map +0 -1
- package/dist/src/decorators/handlers/index.js +0 -121
- package/dist/src/decorators/handlers/index.js.map +0 -1
- package/dist/src/decorators/has-stream.d.ts +0 -11
- package/dist/src/decorators/has-stream.d.ts.map +0 -1
- package/dist/src/decorators/has-stream.js +0 -17
- package/dist/src/decorators/has-stream.js.map +0 -1
- package/dist/src/rules/has-stream.d.ts +0 -2
- package/dist/src/rules/has-stream.d.ts.map +0 -1
- package/dist/src/rules/has-stream.js +0 -29
- package/dist/src/rules/has-stream.js.map +0 -1
|
@@ -1,35 +1,36 @@
|
|
|
1
|
-
import { Program
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { Program } from "@typespec/compiler";
|
|
2
|
+
import { MsGraphInterface } from "../utils.js";
|
|
3
|
+
import { MsGraphAddressUrl } from "./address-url.js";
|
|
4
|
+
import { DeltaProperties } from "./model.js";
|
|
5
|
+
import { RevisionDefinition } from "./revision-definition.js";
|
|
6
|
+
interface NavigationPropertyBinding {
|
|
7
|
+
Path: string;
|
|
8
|
+
Target: string;
|
|
6
9
|
}
|
|
7
10
|
export interface Singleton {
|
|
8
11
|
Name: string | undefined;
|
|
9
12
|
TypeName: string;
|
|
10
13
|
AgsAttributes: Record<string, string>;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
+
NavigationPropertyBindingProperties?: NavigationPropertyBinding;
|
|
15
|
+
AddressUrl: MsGraphAddressUrl | undefined;
|
|
16
|
+
AddressUrlMsa: MsGraphAddressUrl | undefined;
|
|
17
|
+
PassThroughAddressUrl: MsGraphAddressUrl | undefined;
|
|
18
|
+
PassThroughAddressUrlMsa: MsGraphAddressUrl | undefined;
|
|
19
|
+
RevisionDefinition?: RevisionDefinition | undefined;
|
|
14
20
|
}
|
|
15
21
|
export interface EntitySet {
|
|
16
22
|
Name: string | undefined;
|
|
17
23
|
TypeName: string;
|
|
18
24
|
AgsAttributes: Record<string, string | boolean | undefined>;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
NonExpandableProperties: string[] | undefined;
|
|
27
|
-
HasSearchOperation: boolean;
|
|
28
|
-
HasSkipOperation: boolean;
|
|
29
|
-
HasSortOperation: boolean;
|
|
30
|
-
NonSortableProperties: string[] | undefined;
|
|
31
|
-
HasTopOperation: boolean;
|
|
32
|
-
Description: string | undefined;
|
|
25
|
+
NavigationPropertyBindingProperties?: NavigationPropertyBinding;
|
|
26
|
+
AddressUrl: MsGraphAddressUrl | undefined;
|
|
27
|
+
AddressUrlMsa: MsGraphAddressUrl | undefined;
|
|
28
|
+
PassThroughAddressUrl: MsGraphAddressUrl | undefined;
|
|
29
|
+
PassThroughAddressUrlMsa: MsGraphAddressUrl | undefined;
|
|
30
|
+
DeltaProperties: DeltaProperties | undefined;
|
|
31
|
+
RevisionDefinition?: RevisionDefinition | undefined;
|
|
33
32
|
}
|
|
34
|
-
export declare function
|
|
33
|
+
export declare function GetSingletons(program: Program, sources: Map<string, MsGraphInterface>): Map<string, Singleton>;
|
|
34
|
+
export declare function GetEntitySets(program: Program, sources: Map<string, MsGraphInterface>): Map<string, EntitySet>;
|
|
35
|
+
export {};
|
|
35
36
|
//# sourceMappingURL=entity-container.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-container.d.ts","sourceRoot":"","sources":["../../../src/entities/entity-container.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"entity-container.d.ts","sourceRoot":"","sources":["../../../src/entities/entity-container.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACR,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAGL,gBAAgB,EAGjB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,iBAAiB,EAAsH,MAAM,kBAAkB,CAAC;AAEzK,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAyB,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAErF,UAAU,yBAAyB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AACD,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,mCAAmC,CAAC,EAAE,yBAAyB,CAAC;IAChE,UAAU,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAC1C,aAAa,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAC7C,qBAAqB,EAAE,iBAAiB,GAAG,SAAS,CAAC;IACrD,wBAAwB,EAAE,iBAAiB,GAAG,SAAS,CAAC;IACxD,kBAAkB,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;CACrD;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC,CAAC;IAC5D,mCAAmC,CAAC,EAAE,yBAAyB,CAAC;IAChE,UAAU,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAC1C,aAAa,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAC7C,qBAAqB,EAAE,iBAAiB,GAAG,SAAS,CAAC;IACrD,wBAAwB,EAAE,iBAAiB,GAAG,SAAS,CAAC;IACxD,eAAe,EAAE,eAAe,GAAG,SAAS,CAAC;IAC7C,kBAAkB,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;CACrD;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,CAQ9G;AA8BD,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,CAQ9G"}
|
|
@@ -1,132 +1,71 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const entityContainer = {
|
|
13
|
-
AgsAttributes: buildAttributes(program, namespace),
|
|
14
|
-
SingletonElements: getMsGraphSingletonElements(program, navigationSources),
|
|
15
|
-
EntitySetElements: getMsGraphEntitySetElements(program, navigationSources),
|
|
16
|
-
};
|
|
17
|
-
return entityContainer;
|
|
18
|
-
}
|
|
19
|
-
function getMsGraphSingletonElements(program, navigationSources) {
|
|
20
|
-
const singletons = navigationSources
|
|
21
|
-
.filter(([returnType, _]) => returnType.kind === "Model" && returnType.name !== "Array")
|
|
22
|
-
.map(([_, $interface]) => $interface);
|
|
23
|
-
const elements = singletons.map(singleton => getMsGraphSingletonElement(program, singleton));
|
|
24
|
-
return elements;
|
|
1
|
+
import { buildAttributes } from "../decorators/ags-attribute.js";
|
|
2
|
+
import { getPropertyTypeName, getInterfaceNavigationSourceType, getDeltaProperties, } from "../utils.js";
|
|
3
|
+
import { getMsGraphAddressUrl, getMsGraphAddressUrlMsa, getMsGraphPassthroughAddressUrl, getMsGraphPassthroughAddressUrlMsa } from "./address-url.js";
|
|
4
|
+
import { isDelta, isPartial } from "../index.js";
|
|
5
|
+
import { GetRevisionDefinition } from "./revision-definition.js";
|
|
6
|
+
export function GetSingletons(program, sources) {
|
|
7
|
+
const singletons = new Map();
|
|
8
|
+
sources.forEach((entity, routePath) => {
|
|
9
|
+
singletons.set(routePath, getSingleton(program, routePath, entity));
|
|
10
|
+
});
|
|
11
|
+
return singletons;
|
|
25
12
|
}
|
|
26
|
-
function
|
|
27
|
-
const
|
|
28
|
-
const type = singleton
|
|
29
|
-
|
|
30
|
-
|
|
13
|
+
function getSingleton(program, routePath, entity) {
|
|
14
|
+
const singleton = entity.theInterface;
|
|
15
|
+
const type = getInterfaceNavigationSourceType(program, singleton);
|
|
16
|
+
let agsAttributes = {};
|
|
17
|
+
if (isPartial(program, type)) {
|
|
18
|
+
agsAttributes = { ...buildAttributes(program, singleton) };
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
agsAttributes = { ...getOperationAgsAttributes(program, entity.operations), ...buildAttributes(program, singleton) };
|
|
22
|
+
}
|
|
23
|
+
const entry = {
|
|
24
|
+
Name: routePath,
|
|
31
25
|
TypeName: getPropertyTypeName(program, type),
|
|
32
|
-
AgsAttributes:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
26
|
+
AgsAttributes: agsAttributes,
|
|
27
|
+
AddressUrl: getMsGraphAddressUrl(program, singleton),
|
|
28
|
+
AddressUrlMsa: getMsGraphAddressUrlMsa(program, singleton),
|
|
29
|
+
PassThroughAddressUrl: getMsGraphPassthroughAddressUrl(program, singleton),
|
|
30
|
+
PassThroughAddressUrlMsa: getMsGraphPassthroughAddressUrlMsa(program, singleton),
|
|
31
|
+
RevisionDefinition: GetRevisionDefinition(program, singleton, singleton.namespace)
|
|
36
32
|
};
|
|
37
|
-
|
|
38
|
-
operation.parameters.properties.size === 0 &&
|
|
39
|
-
isExpand(program, operation));
|
|
40
|
-
if (expandedOperation) {
|
|
41
|
-
element.HasExpandOperation = true;
|
|
42
|
-
// Destructuring to get the operation from the [string, Operation] expandedOperation tuple
|
|
43
|
-
const [_, operation] = expandedOperation;
|
|
44
|
-
const expandableProperties = getExpand(program, operation);
|
|
45
|
-
const navigationProperties = [...walkPropertiesInherited(type)]
|
|
46
|
-
.filter((property) => isContains(program, property) || isReferences(program, property))
|
|
47
|
-
.map((property) => property.name);
|
|
48
|
-
element.NonExpandableProperties = navigationProperties.filter(property => { var _a; return (_a = !(expandableProperties === null || expandableProperties === void 0 ? void 0 : expandableProperties.includes(property))) !== null && _a !== void 0 ? _a : false; });
|
|
49
|
-
}
|
|
50
|
-
return element;
|
|
33
|
+
return entry;
|
|
51
34
|
}
|
|
52
|
-
function
|
|
53
|
-
const entitySets =
|
|
54
|
-
|
|
55
|
-
.
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
if (!key) {
|
|
59
|
-
return map;
|
|
60
|
-
}
|
|
61
|
-
const items = [...(map.get(key) || []), ...item.operations.values()];
|
|
62
|
-
map.set(key, items);
|
|
63
|
-
return map;
|
|
64
|
-
}, new Map());
|
|
65
|
-
const elements = [...entitySets]
|
|
66
|
-
.map(([_, operations]) => getMsGraphEntitySetElement(program, operations))
|
|
67
|
-
.filter((element) => !!element);
|
|
68
|
-
return elements;
|
|
35
|
+
export function GetEntitySets(program, sources) {
|
|
36
|
+
const entitySets = new Map();
|
|
37
|
+
sources.forEach((entity, routePath) => {
|
|
38
|
+
entitySets.set(routePath, getEntitySet(program, routePath, entity));
|
|
39
|
+
});
|
|
40
|
+
return entitySets;
|
|
69
41
|
}
|
|
70
|
-
function
|
|
71
|
-
|
|
72
|
-
const
|
|
73
|
-
|
|
74
|
-
|
|
42
|
+
function getEntitySet(program, routePath, entity) {
|
|
43
|
+
const entitySet = entity.theInterface;
|
|
44
|
+
const type = getInterfaceNavigationSourceType(program, entitySet);
|
|
45
|
+
let agsAttributes = {};
|
|
46
|
+
if (isPartial(program, type)) {
|
|
47
|
+
agsAttributes = { ...buildAttributes(program, entitySet) };
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
agsAttributes = { ...getOperationAgsAttributes(program, entity.operations), ...buildAttributes(program, entitySet) };
|
|
75
51
|
}
|
|
76
|
-
|
|
77
|
-
agsAttributes = { ...agsAttributes, ...buildAttributes(program, entitySet) };
|
|
78
|
-
const returnType = entitySet.operations.get("_isNavigationSource").returnType;
|
|
79
|
-
const type = returnType.indexer.value;
|
|
80
|
-
const operationMethods = operations.map((operation) => ({
|
|
81
|
-
operation,
|
|
82
|
-
verb: getOperationVerb(program, operation),
|
|
83
|
-
hasEmptyParameters: operation.parameters.properties.size === 0,
|
|
84
|
-
}));
|
|
52
|
+
const deltaProperties = entity.operations.some(o => isDelta(program, o.theOperation)) ? getDeltaProperties(program, entity.theInterface) : undefined;
|
|
85
53
|
const entry = {
|
|
86
|
-
Name:
|
|
54
|
+
Name: routePath,
|
|
87
55
|
TypeName: getPropertyTypeName(program, type),
|
|
88
56
|
AgsAttributes: agsAttributes,
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
HasExpandOperation: false,
|
|
96
|
-
NonExpandableProperties: undefined,
|
|
97
|
-
HasSearchOperation: [...entitySet.operations].some(([_, operation]) => isSearch(program, operation)),
|
|
98
|
-
HasSkipOperation: [...entitySet.operations].some(([_, operation]) => isSkip(program, operation)),
|
|
99
|
-
HasSortOperation: false,
|
|
100
|
-
NonSortableProperties: undefined,
|
|
101
|
-
HasTopOperation: [...entitySet.operations].some(([_, operation]) => isTop(program, operation)),
|
|
102
|
-
Description: getDoc(program, entitySet),
|
|
57
|
+
AddressUrl: getMsGraphAddressUrl(program, entitySet),
|
|
58
|
+
AddressUrlMsa: getMsGraphAddressUrlMsa(program, entitySet),
|
|
59
|
+
PassThroughAddressUrl: getMsGraphPassthroughAddressUrl(program, entitySet),
|
|
60
|
+
PassThroughAddressUrlMsa: getMsGraphPassthroughAddressUrlMsa(program, entitySet),
|
|
61
|
+
DeltaProperties: deltaProperties,
|
|
62
|
+
RevisionDefinition: GetRevisionDefinition(program, entitySet, entitySet.namespace)
|
|
103
63
|
};
|
|
104
|
-
const expandedOperation = [...entitySet.operations].find(([_, operation]) => getOperationVerb(program, operation) === "get" &&
|
|
105
|
-
operation.parameters.properties.size === 0 &&
|
|
106
|
-
isExpand(program, operation));
|
|
107
|
-
if (expandedOperation) {
|
|
108
|
-
entry.HasExpandOperation = true;
|
|
109
|
-
// Destructuring to get the operation from the [string, Operation] expandedOperation tuple
|
|
110
|
-
const [_, operation] = expandedOperation;
|
|
111
|
-
const expandableProperties = getExpand(program, operation);
|
|
112
|
-
const navigationProperties = [...walkPropertiesInherited(type)]
|
|
113
|
-
.filter((property) => isContains(program, property) || isReferences(program, property))
|
|
114
|
-
.map((property) => property.name);
|
|
115
|
-
entry.NonExpandableProperties = navigationProperties.filter(property => { var _a; return (_a = !(expandableProperties === null || expandableProperties === void 0 ? void 0 : expandableProperties.includes(property))) !== null && _a !== void 0 ? _a : false; });
|
|
116
|
-
}
|
|
117
|
-
const sortOperation = [...entitySet.operations].find(([_, operation]) => getOperationVerb(program, operation) === "get" &&
|
|
118
|
-
operation.parameters.properties.size === 0 &&
|
|
119
|
-
isOrderBy(program, operation));
|
|
120
|
-
if (sortOperation) {
|
|
121
|
-
entry.HasSortOperation = true;
|
|
122
|
-
// Destructuring to get the operation from the [string, Operation] orderedOperation tuple
|
|
123
|
-
const [_, operation] = sortOperation;
|
|
124
|
-
const sortableProperties = getOrderBy(program, operation);
|
|
125
|
-
const nonNavigationProperties = [...walkPropertiesInherited(type)]
|
|
126
|
-
.filter((property) => !isContains(program, property) && !isReferences(program, property))
|
|
127
|
-
.map((property) => property.name);
|
|
128
|
-
entry.NonSortableProperties = nonNavigationProperties.filter((property) => !sortableProperties.includes(property));
|
|
129
|
-
}
|
|
130
64
|
return entry;
|
|
131
65
|
}
|
|
66
|
+
function getOperationAgsAttributes(program, operations) {
|
|
67
|
+
return operations
|
|
68
|
+
.map((operation) => operation.theOperation)
|
|
69
|
+
.reduce((attr, operation) => ({ ...attr, ...buildAttributes(program, operation) }), {});
|
|
70
|
+
}
|
|
132
71
|
//# sourceMappingURL=entity-container.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-container.js","sourceRoot":"","sources":["../../../src/entities/entity-container.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"entity-container.js","sourceRoot":"","sources":["../../../src/entities/entity-container.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EACL,mBAAmB,EACnB,gCAAgC,EAGhC,kBAAkB,GACnB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAqB,oBAAoB,EAAE,uBAAuB,EAAE,+BAA+B,EAAE,kCAAkC,EAAE,MAAM,kBAAkB,CAAC;AACzK,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAEjD,OAAO,EAAE,qBAAqB,EAAsB,MAAM,0BAA0B,CAAC;AA+BrF,MAAM,UAAU,aAAa,CAAC,OAAgB,EAAE,OAAsC;IACpF,MAAM,UAAU,GAAG,IAAI,GAAG,EAAqB,CAAC;IAEhD,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE;QACpC,UAAU,CAAC,GAAG,CAAC,SAAS,EAAE,Y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AAE,SAAS,CAAC;QAC1D,qBAAqB,EAAE,+BAA+B,CAAC,OAAO,EAAE,SAAS,CAAC;QAC1E,wBAAwB,EAAE,kCAAkC,CAAC,OAAO,EAAE,SAAS,CAAC;QAChF,eAAe,EAAE,eAAe;QAChC,kBAAkB,EAAE,qBAAqB,CAAC,OAAO,EAAE,SAAS,EAAE,SAAS,CAAC,SAAS,CAAC;KACnF,CAAC;IAEF,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,yBAAyB,CAChC,OAAgB,EAChB,UAA4B;IAE5B,OAAO,UAAU;SACd,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,YAAY,CAAC;SAC1C,MAAM,CAAC,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,eAAe,CAAC,OAAO,EAAE,SAAS,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;AAC5F,CAAC"}
|
|
@@ -5,12 +5,15 @@ export interface MsGraphEnum {
|
|
|
5
5
|
AgsAttributes: Record<string, string>;
|
|
6
6
|
RevisionDefinition: RevisionDefinition | undefined;
|
|
7
7
|
Elements: MsGraphEnumMember[];
|
|
8
|
+
IsGraphFlags: boolean | undefined;
|
|
9
|
+
Description?: string;
|
|
8
10
|
}
|
|
9
11
|
export interface MsGraphEnumMember {
|
|
10
12
|
Name: string;
|
|
11
13
|
Value: string | number | undefined;
|
|
12
14
|
AgsAttributes: Record<string, string>;
|
|
13
15
|
RevisionDefinition: RevisionDefinition | undefined;
|
|
16
|
+
Description?: string;
|
|
14
17
|
}
|
|
15
18
|
export declare function GetMsGraphEnumTypeElement(program: Program, enumType: Enum): MsGraphEnum;
|
|
16
19
|
//# sourceMappingURL=enum.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enum.d.ts","sourceRoot":"","sources":["../../../src/entities/enum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,
|
|
1
|
+
{"version":3,"file":"enum.d.ts","sourceRoot":"","sources":["../../../src/entities/enum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAsB,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAAyB,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAIrF,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,kBAAkB,EAAE,kBAAkB,GAAG,SAAS,CAAC;IACnD,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,YAAY,EAAE,OAAO,GAAG,SAAS,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACnC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,kBAAkB,EAAE,kBAAkB,GAAG,SAAS,CAAC;IACnD,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,GAAG,WAAW,CAWvF"}
|
|
@@ -1,21 +1,28 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getDoc } from "@typespec/compiler";
|
|
2
2
|
import { GetRevisionDefinition } from "./revision-definition.js";
|
|
3
|
+
import { buildAttributes } from "../decorators/ags-attribute.js";
|
|
4
|
+
import { isGraphFlags } from "../index.js";
|
|
3
5
|
export function GetMsGraphEnumTypeElement(program, enumType) {
|
|
4
6
|
const element = {
|
|
5
7
|
Name: enumType.name,
|
|
6
8
|
AgsAttributes: buildAttributes(program, enumType),
|
|
7
9
|
RevisionDefinition: GetRevisionDefinition(program, enumType, enumType === null || enumType === void 0 ? void 0 : enumType.namespace),
|
|
8
|
-
Elements: [...enumType.members].map(([_, m]) => getMsGraphEnumMember(program, m))
|
|
10
|
+
Elements: [...enumType.members].map(([_, m]) => getMsGraphEnumMember(program, m)),
|
|
11
|
+
IsGraphFlags: isGraphFlags(program, enumType),
|
|
12
|
+
Description: getDoc(program, enumType),
|
|
9
13
|
};
|
|
10
14
|
return element;
|
|
11
15
|
}
|
|
12
16
|
function getMsGraphEnumMember(program, member) {
|
|
13
|
-
var _a;
|
|
17
|
+
var _a, _b;
|
|
14
18
|
const element = {
|
|
15
19
|
Name: member.name,
|
|
16
|
-
Value: member.value,
|
|
20
|
+
Value: (_a = member.value) === null || _a === void 0 ? void 0 : _a.toString(),
|
|
17
21
|
AgsAttributes: buildAttributes(program, member),
|
|
18
|
-
RevisionDefinition: GetRevisionDefinition(program, member, (
|
|
22
|
+
RevisionDefinition: GetRevisionDefinition(program, member, (_b = member.enum) === null || _b === void 0 ? void 0 : _b.namespace),
|
|
23
|
+
Description: member.name === "unknownFutureValue"
|
|
24
|
+
? "A marker value for members added after the release of this API."
|
|
25
|
+
: getDoc(program, member),
|
|
19
26
|
};
|
|
20
27
|
return element;
|
|
21
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enum.js","sourceRoot":"","sources":["../../../src/entities/enum.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"enum.js","sourceRoot":"","sources":["../../../src/entities/enum.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAsB,MAAM,0BAA0B,CAAC;AACrF,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAmB3C,MAAM,UAAU,yBAAyB,CAAC,OAAgB,EAAE,QAAc;IACxE,MAAM,OAAO,GAAgB;QAC3B,IAAI,EAAE,QAAQ,CAAC,IAAI;QACnB,aAAa,EAAE,eAAe,CAAC,OAAO,EAAE,QAAQ,CAAC;QACjD,kBAAkB,EAAE,qBAAqB,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,SAAS,CAAC;QACjF,QAAQ,EAAE,CAAC,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,oBAAoB,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;QACjF,YAAY,EAAE,YAAY,CAAC,OAAO,EAAE,QAAQ,CAAC;QAC7C,WAAW,EAAE,MAAM,CAAC,OAAO,EAAE,QAAQ,CAAC;KACvC,CAAC;IAEF,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,SAAS,oBAAoB,CAAC,OAAgB,EAAE,MAAkB;;IAChE,MAAM,OAAO,GAAsB;QACjC,IAAI,EAAE,MAAM,CAAC,IAAI;QACjB,KAAK,EAAE,MAAA,MAAM,CAAC,KAAK,0CAAE,QAAQ,EAAE;QAC/B,aAAa,EAAE,eAAe,CAAC,OAAO,EAAE,MAAM,CAAC;QAC/C,kBAAkB,EAAE,qBAAqB,CAAC,OAAO,EAAE,MAAM,EAAE,MAAA,MAAM,CAAC,IAAI,0CAAE,SAAS,CAAC;QAClF,WAAW,EAAG,MAAM,CAAC,IAAI,KAAK,oBAAoB;YAChD,CAAC,CAAC,iEAAiE;YACnE,CAAC,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC;KAC5B,CAAC;IACF,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -1,50 +1,70 @@
|
|
|
1
1
|
import { Model, ModelProperty, Program } from "@typespec/compiler";
|
|
2
2
|
import { RevisionDefinition } from "./revision-definition.js";
|
|
3
|
+
import { MsGraphAddressUrl, MsGraphPassthroughAddressUrl } from "./address-url.js";
|
|
3
4
|
export interface MsGraphModel {
|
|
4
|
-
Properties: EntityType | ComplexType | undefined;
|
|
5
5
|
Kind: MsGraphModelKind;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
StreamTypes: string[];
|
|
13
|
-
RevisionDefinition: RevisionDefinition | undefined;
|
|
14
|
-
Description: string | undefined;
|
|
15
|
-
}
|
|
16
|
-
export interface ComplexType {
|
|
17
|
-
StructuredType: StructuredType;
|
|
6
|
+
Name: string;
|
|
7
|
+
IsAbstract: boolean;
|
|
8
|
+
BaseType: string | undefined;
|
|
9
|
+
IsOpenType: boolean;
|
|
10
|
+
IsMedia: boolean;
|
|
11
|
+
AgsAttributes: Record<string, string>;
|
|
18
12
|
Properties: MsGraphModelProperty[];
|
|
19
13
|
RevisionDefinition: RevisionDefinition | undefined;
|
|
20
14
|
Description: string | undefined;
|
|
15
|
+
KeyProperty: [string, ModelProperty] | undefined;
|
|
16
|
+
AlternateKeys: AlternateKeyProperty[];
|
|
17
|
+
MediaTypes: string[];
|
|
18
|
+
IsPartial: boolean;
|
|
19
|
+
RecordType?: string;
|
|
21
20
|
}
|
|
22
21
|
export declare enum MsGraphModelKind {
|
|
23
22
|
Unknown = 0,
|
|
24
23
|
Entity = 1,
|
|
25
24
|
Complex = 2
|
|
26
25
|
}
|
|
27
|
-
export interface
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
26
|
+
export interface AllowedValues {
|
|
27
|
+
type: string;
|
|
28
|
+
values: unknown[];
|
|
29
|
+
}
|
|
30
|
+
export interface DeltaProperties {
|
|
31
|
+
FilterProperties: string[] | undefined;
|
|
32
|
+
ExpandProperties: string[] | undefined;
|
|
33
33
|
}
|
|
34
|
-
|
|
34
|
+
interface PropertyAttributes {
|
|
35
35
|
Name: string;
|
|
36
|
-
|
|
36
|
+
Description: string | undefined;
|
|
37
|
+
PropertyTypeName: string;
|
|
37
38
|
IsNullable: boolean;
|
|
39
|
+
IsNavigation: boolean;
|
|
40
|
+
IsUrl?: boolean | undefined;
|
|
38
41
|
AgsAttributes: Record<string, string>;
|
|
39
|
-
|
|
40
|
-
|
|
42
|
+
RevisionDefinition: RevisionDefinition | undefined;
|
|
43
|
+
}
|
|
44
|
+
export interface MsGraphStructuralProperty extends PropertyAttributes {
|
|
41
45
|
IsComputed: boolean;
|
|
46
|
+
IsImmutable: boolean;
|
|
47
|
+
DefaultValue?: string;
|
|
48
|
+
MaxLength?: number;
|
|
49
|
+
SupportsLimitedCharset: boolean;
|
|
50
|
+
AllowedValues: AllowedValues;
|
|
42
51
|
Permission: "Read" | "Write" | null;
|
|
43
|
-
RevisionDefinition: RevisionDefinition | undefined;
|
|
44
|
-
Description: string | undefined;
|
|
45
52
|
}
|
|
46
|
-
export interface
|
|
53
|
+
export interface MsGraphNavigationProperty extends PropertyAttributes {
|
|
54
|
+
IsContained: boolean;
|
|
55
|
+
IsCollection: boolean;
|
|
56
|
+
AddressUrl: MsGraphAddressUrl | undefined;
|
|
57
|
+
AddressUrlMsa: MsGraphAddressUrl | undefined;
|
|
58
|
+
PassthroughAddressUrl: MsGraphPassthroughAddressUrl | undefined;
|
|
59
|
+
PassthroughAddressUrlMsa: MsGraphPassthroughAddressUrl | undefined;
|
|
60
|
+
DeltaProperties: DeltaProperties | undefined;
|
|
61
|
+
}
|
|
62
|
+
export interface MsGraphModelProperty extends MsGraphStructuralProperty, MsGraphNavigationProperty {
|
|
63
|
+
}
|
|
64
|
+
export interface AlternateKeyProperty {
|
|
47
65
|
IsModel: boolean;
|
|
66
|
+
ModelProperty: ModelProperty;
|
|
48
67
|
}
|
|
49
|
-
export declare function
|
|
68
|
+
export declare function GetMsGraphModels(program: Program, models: Map<string, Model>): Map<string, MsGraphModel>;
|
|
69
|
+
export {};
|
|
50
70
|
//# sourceMappingURL=model.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../src/entities/model.ts"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