@microsoft/typespec-msgraph 0.0.1-Preview.1 → 0.0.1-Preview.10
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 +8 -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 +63 -0
- package/dist/src/components/annotations.js.map +1 -0
- package/dist/src/components/common-elements.d.ts +15 -73
- 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/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 +22 -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 +17 -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/operation-element.d.ts +6 -0
- package/dist/src/components/operation-element.d.ts.map +1 -0
- package/dist/src/components/operation-element.js +70 -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 +16 -32
- package/dist/src/components/property-element.js.map +1 -1
- 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 +7 -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 +42 -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/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 +24 -66
- package/dist/src/components/structured-type-element.js.map +1 -1
- 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 +5 -0
- package/dist/src/components/update-restrictions-annotation.d.ts.map +1 -0
- package/dist/src/components/update-restrictions-annotation.js +8 -0
- package/dist/src/components/update-restrictions-annotation.js.map +1 -0
- package/dist/src/decorators/abstract.d.ts.map +1 -1
- package/dist/src/decorators/abstract.js +0 -6
- package/dist/src/decorators/abstract.js.map +1 -1
- package/dist/src/decorators/action.d.ts +10 -0
- package/dist/src/decorators/action.d.ts.map +1 -0
- package/dist/src/decorators/action.js +16 -0
- package/dist/src/decorators/action.js.map +1 -0
- package/dist/src/decorators/{handlers/custom/additional-query-parameters.d.ts → additional-query-parameters.d.ts} +3 -1
- package/dist/src/decorators/additional-query-parameters.d.ts.map +1 -0
- package/dist/src/decorators/additional-query-parameters.js +21 -0
- package/dist/src/decorators/additional-query-parameters.js.map +1 -0
- package/dist/src/decorators/ags-attribute.d.ts +14 -0
- package/dist/src/decorators/ags-attribute.d.ts.map +1 -0
- package/dist/src/decorators/ags-attribute.js +115 -0
- package/dist/src/decorators/ags-attribute.js.map +1 -0
- package/dist/src/decorators/allowed-values.d.ts +13 -0
- package/dist/src/decorators/allowed-values.d.ts.map +1 -0
- package/dist/src/decorators/allowed-values.js +35 -0
- package/dist/src/decorators/allowed-values.js.map +1 -0
- package/dist/src/decorators/complex.d.ts.map +1 -1
- package/dist/src/decorators/complex.js +0 -6
- package/dist/src/decorators/complex.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/entity.d.ts.map +1 -1
- package/dist/src/decorators/entity.js +0 -6
- package/dist/src/decorators/entity.js.map +1 -1
- package/dist/src/decorators/filter.d.ts +11 -0
- package/dist/src/decorators/filter.d.ts.map +1 -0
- package/dist/src/decorators/filter.js +27 -0
- package/dist/src/decorators/filter.js.map +1 -0
- package/dist/src/decorators/flags.d.ts +9 -0
- package/dist/src/decorators/flags.d.ts.map +1 -0
- package/dist/src/decorators/flags.js +13 -0
- package/dist/src/decorators/flags.js.map +1 -0
- package/dist/src/decorators/function.d.ts +10 -0
- package/dist/src/decorators/function.d.ts.map +1 -0
- package/dist/src/decorators/function.js +16 -0
- package/dist/src/decorators/function.js.map +1 -0
- package/dist/src/decorators/graph-route.d.ts +16 -0
- package/dist/src/decorators/graph-route.d.ts.map +1 -0
- package/dist/src/decorators/graph-route.js +98 -0
- package/dist/src/decorators/graph-route.js.map +1 -0
- package/dist/src/decorators/has-stream.d.ts +1 -2
- package/dist/src/decorators/has-stream.d.ts.map +1 -1
- package/dist/src/decorators/has-stream.js +1 -14
- package/dist/src/decorators/has-stream.js.map +1 -1
- package/dist/src/decorators/immutable.d.ts +8 -0
- package/dist/src/decorators/immutable.d.ts.map +1 -0
- package/dist/src/decorators/immutable.js +12 -0
- package/dist/src/decorators/immutable.js.map +1 -0
- package/dist/src/decorators/index.d.ts +20 -1
- package/dist/src/decorators/index.d.ts.map +1 -1
- package/dist/src/decorators/index.js +20 -1
- package/dist/src/decorators/index.js.map +1 -1
- package/dist/src/decorators/is-owner.d.ts +10 -0
- package/dist/src/decorators/is-owner.d.ts.map +1 -0
- package/dist/src/decorators/is-owner.js +17 -0
- package/dist/src/decorators/is-owner.js.map +1 -0
- package/dist/src/decorators/open.d.ts.map +1 -1
- package/dist/src/decorators/open.js +0 -6
- package/dist/src/decorators/open.js.map +1 -1
- package/dist/src/decorators/{routed-interfaces.d.ts → operation-parameters.d.ts} +3 -11
- package/dist/src/decorators/operation-parameters.d.ts.map +1 -0
- package/dist/src/decorators/operation-parameters.js +15 -0
- package/dist/src/decorators/operation-parameters.js.map +1 -0
- package/dist/src/decorators/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 +10 -0
- package/dist/src/decorators/partial.d.ts.map +1 -0
- package/dist/src/decorators/partial.js +16 -0
- package/dist/src/decorators/partial.js.map +1 -0
- package/dist/src/decorators/private-preview.d.ts.map +1 -1
- package/dist/src/decorators/private-preview.js +0 -10
- package/dist/src/decorators/private-preview.js.map +1 -1
- package/dist/src/decorators/privileged.d.ts +9 -0
- package/dist/src/decorators/privileged.d.ts.map +1 -0
- package/dist/src/decorators/privileged.js +13 -0
- package/dist/src/decorators/privileged.js.map +1 -0
- package/dist/src/decorators/public-namespace.d.ts +10 -0
- package/dist/src/decorators/public-namespace.d.ts.map +1 -0
- package/dist/src/decorators/public-namespace.js +16 -0
- package/dist/src/decorators/public-namespace.js.map +1 -0
- package/dist/src/decorators/required-for-create.d.ts +10 -0
- package/dist/src/decorators/required-for-create.d.ts.map +1 -0
- package/dist/src/decorators/required-for-create.js +14 -0
- package/dist/src/decorators/required-for-create.js.map +1 -0
- package/dist/src/decorators/workload-name-msa.d.ts +9 -0
- package/dist/src/decorators/workload-name-msa.d.ts.map +1 -0
- package/dist/src/decorators/workload-name-msa.js +13 -0
- package/dist/src/decorators/workload-name-msa.js.map +1 -0
- package/dist/src/decorators/workload-name.d.ts +9 -0
- package/dist/src/decorators/workload-name.d.ts.map +1 -0
- package/dist/src/decorators/workload-name.js +13 -0
- package/dist/src/decorators/workload-name.js.map +1 -0
- package/dist/src/emitter.d.ts +2 -1
- package/dist/src/emitter.d.ts.map +1 -1
- package/dist/src/emitter.js +7 -3
- package/dist/src/emitter.js.map +1 -1
- package/dist/src/entities/annotations.d.ts +40 -0
- package/dist/src/entities/annotations.d.ts.map +1 -0
- package/dist/src/entities/annotations.js +139 -0
- package/dist/src/entities/annotations.js.map +1 -0
- package/dist/src/entities/entity-container.d.ts +15 -0
- package/dist/src/entities/entity-container.d.ts.map +1 -0
- package/dist/src/entities/entity-container.js +42 -0
- package/dist/src/entities/entity-container.js.map +1 -0
- package/dist/src/entities/enum.d.ts +17 -0
- package/dist/src/entities/enum.d.ts.map +1 -0
- package/dist/src/entities/enum.js +24 -0
- package/dist/src/entities/enum.js.map +1 -0
- package/dist/src/entities/model.d.ts +47 -0
- package/dist/src/entities/model.d.ts.map +1 -0
- package/dist/src/entities/model.js +104 -0
- package/dist/src/entities/model.js.map +1 -0
- package/dist/src/entities/namespace.d.ts +21 -0
- package/dist/src/entities/namespace.d.ts.map +1 -0
- package/dist/src/entities/namespace.js +81 -0
- package/dist/src/entities/namespace.js.map +1 -0
- package/dist/src/entities/operation.d.ts +28 -0
- package/dist/src/entities/operation.d.ts.map +1 -0
- package/dist/src/entities/operation.js +103 -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 +9 -0
- package/dist/src/entities/revision-definition.d.ts.map +1 -0
- package/dist/src/entities/revision-definition.js +42 -0
- package/dist/src/entities/revision-definition.js.map +1 -0
- package/dist/src/index.d.ts +0 -3
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +0 -3
- package/dist/src/index.js.map +1 -1
- package/dist/src/lib.d.ts +53 -2
- package/dist/src/lib.d.ts.map +1 -1
- package/dist/src/lib.js +25 -1
- package/dist/src/lib.js.map +1 -1
- package/dist/src/linter.d.ts.map +1 -1
- package/dist/src/linter.js +34 -25
- package/dist/src/linter.js.map +1 -1
- package/dist/src/rules/allowed-values.d.ts +6 -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/collection-navigation-properties-not-nullable.d.ts +2 -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/count.d.ts.map +1 -1
- package/dist/src/rules/count.js +3 -1
- package/dist/src/rules/count.js.map +1 -1
- package/dist/src/rules/disallowed-typespec-decorators.d.ts +2 -0
- package/dist/src/rules/disallowed-typespec-decorators.d.ts.map +1 -0
- package/dist/src/rules/disallowed-typespec-decorators.js +33 -0
- package/dist/src/rules/disallowed-typespec-decorators.js.map +1 -0
- package/dist/src/rules/entity.d.ts +1 -0
- package/dist/src/rules/entity.d.ts.map +1 -1
- package/dist/src/rules/entity.js +43 -1
- package/dist/src/rules/entity.js.map +1 -1
- package/dist/src/rules/enum.d.ts +2 -0
- package/dist/src/rules/enum.d.ts.map +1 -0
- package/dist/src/rules/enum.js +26 -0
- package/dist/src/rules/enum.js.map +1 -0
- package/dist/src/rules/expand.d.ts.map +1 -1
- package/dist/src/rules/expand.js +5 -7
- package/dist/src/rules/expand.js.map +1 -1
- package/dist/src/rules/extends-on-same-type.d.ts +2 -0
- package/dist/src/rules/extends-on-same-type.d.ts.map +1 -0
- package/dist/src/rules/extends-on-same-type.js +38 -0
- package/dist/src/rules/extends-on-same-type.js.map +1 -0
- package/dist/src/rules/filter.d.ts +4 -0
- package/dist/src/rules/filter.d.ts.map +1 -0
- package/dist/src/rules/filter.js +92 -0
- package/dist/src/rules/filter.js.map +1 -0
- package/dist/src/rules/function.d.ts +2 -0
- package/dist/src/rules/function.d.ts.map +1 -0
- package/dist/src/rules/function.js +26 -0
- package/dist/src/rules/function.js.map +1 -0
- package/dist/src/rules/graph-route.d.ts +6 -0
- package/dist/src/rules/graph-route.d.ts.map +1 -0
- package/dist/src/rules/graph-route.js +88 -0
- package/dist/src/rules/graph-route.js.map +1 -0
- package/dist/src/rules/index.d.ts +13 -6
- package/dist/src/rules/index.d.ts.map +1 -1
- package/dist/src/rules/index.js +13 -161
- package/dist/src/rules/index.js.map +1 -1
- package/dist/src/rules/namespace.d.ts +3 -0
- package/dist/src/rules/namespace.d.ts.map +1 -0
- package/dist/src/rules/namespace.js +58 -0
- package/dist/src/rules/namespace.js.map +1 -0
- package/dist/src/rules/operation-inside-interface.d.ts +2 -0
- package/dist/src/rules/operation-inside-interface.d.ts.map +1 -0
- package/dist/src/rules/operation-inside-interface.js +25 -0
- package/dist/src/rules/operation-inside-interface.js.map +1 -0
- package/dist/src/rules/order-by.d.ts +1 -1
- package/dist/src/rules/order-by.d.ts.map +1 -1
- package/dist/src/rules/order-by.js +11 -10
- package/dist/src/rules/order-by.js.map +1 -1
- package/dist/src/rules/partial.d.ts +5 -0
- package/dist/src/rules/partial.d.ts.map +1 -0
- package/dist/src/rules/partial.js +35 -0
- package/dist/src/rules/partial.js.map +1 -0
- package/dist/src/rules/required-for-create.d.ts +2 -0
- package/dist/src/rules/required-for-create.d.ts.map +1 -0
- package/dist/src/rules/required-for-create.js +40 -0
- package/dist/src/rules/required-for-create.js.map +1 -0
- package/dist/src/rules/search.d.ts.map +1 -1
- package/dist/src/rules/search.js +3 -1
- package/dist/src/rules/search.js.map +1 -1
- package/dist/src/rules/skip.d.ts.map +1 -1
- package/dist/src/rules/skip.js +3 -1
- package/dist/src/rules/skip.js.map +1 -1
- package/dist/src/rules/top.d.ts.map +1 -1
- package/dist/src/rules/top.js +3 -1
- package/dist/src/rules/top.js.map +1 -1
- package/dist/src/utils.d.ts +18 -0
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/src/utils.js +160 -4
- package/dist/src/utils.js.map +1 -1
- package/lib/decorators.tsp +182 -39
- package/lib/deployment.tsp +18 -0
- package/lib/lib.tsp +6 -22
- package/lib/msgraph.tsp +4 -0
- package/lib/porcelain.tsp +135 -0
- package/lib/responses.tsp +82 -0
- package/lib/shared-models.tsp +75 -0
- package/package.json +31 -20
- 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/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
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Defines the structure of an attribute
|
|
3
|
-
*/
|
|
4
|
-
export interface AttributeType {
|
|
5
|
-
decorator: string;
|
|
6
|
-
target: string[];
|
|
7
|
-
attribute: any;
|
|
8
|
-
description?: string;
|
|
9
|
-
args?: string[];
|
|
10
|
-
emitter?: string;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* NOTE: If you need custom handlers you declare them here and
|
|
15
|
-
* create a separate file for it in ./decorators/handlers/custom
|
|
16
|
-
*/
|
|
17
|
-
/**
|
|
18
|
-
* `@attributes` - declares supported ags:attributes
|
|
19
|
-
*/
|
|
20
|
-
export declare const attributes: ({
|
|
21
|
-
decorator: string;
|
|
22
|
-
description: string;
|
|
23
|
-
target: string[];
|
|
24
|
-
attribute: {
|
|
25
|
-
name: string;
|
|
26
|
-
};
|
|
27
|
-
args?: undefined;
|
|
28
|
-
emitter?: undefined;
|
|
29
|
-
} | {
|
|
30
|
-
decorator: string;
|
|
31
|
-
target: string[];
|
|
32
|
-
attribute: {
|
|
33
|
-
name: string;
|
|
34
|
-
};
|
|
35
|
-
description?: undefined;
|
|
36
|
-
args?: undefined;
|
|
37
|
-
emitter?: undefined;
|
|
38
|
-
} | {
|
|
39
|
-
decorator: string;
|
|
40
|
-
args: string[];
|
|
41
|
-
target: string[];
|
|
42
|
-
attribute: {
|
|
43
|
-
name: string;
|
|
44
|
-
};
|
|
45
|
-
description?: undefined;
|
|
46
|
-
emitter?: undefined;
|
|
47
|
-
} | {
|
|
48
|
-
decorator: string;
|
|
49
|
-
args: string[];
|
|
50
|
-
target: string[];
|
|
51
|
-
emitter: string;
|
|
52
|
-
attribute: {
|
|
53
|
-
name: string;
|
|
54
|
-
};
|
|
55
|
-
description?: undefined;
|
|
56
|
-
})[];
|
|
57
|
-
//# sourceMappingURL=attributes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"attributes.d.ts","sourceRoot":"","sources":["../../../src/decorators/attributes.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,SAAS,EAAE,GAAG,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;GAIG;AAEH;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAwCtB,CAAC"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* NOTE: If you need custom handlers you declare them here and
|
|
4
|
-
* create a separate file for it in ./decorators/handlers/custom
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* `@attributes` - declares supported ags:attributes
|
|
8
|
-
*/
|
|
9
|
-
export const attributes = [
|
|
10
|
-
{
|
|
11
|
-
decorator: "isOwner",
|
|
12
|
-
description: "specify the name of the workload associated with the model",
|
|
13
|
-
target: ["Model", "ModelProperty", "Enum", "EnumMember"],
|
|
14
|
-
attribute: { name: "IsOwner" },
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
decorator: "privileged",
|
|
18
|
-
target: ["Model", "ModelProperty", "Enum", "EnumMember", "Operation", "Namespace"],
|
|
19
|
-
attribute: { name: "IsHidden" },
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
decorator: "workloadName",
|
|
23
|
-
args: ["workloadName"],
|
|
24
|
-
target: ["Model", "ModelProperty", "Enum", "EnumMember"],
|
|
25
|
-
attribute: { name: "WorkloadName" },
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
decorator: "workloadNameMsa",
|
|
29
|
-
args: ["workloadNameMsa"],
|
|
30
|
-
target: ["Model", "ModelProperty", "Enum", "EnumMember"],
|
|
31
|
-
attribute: { name: "WorkloadNameMsa" },
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
decorator: "additionalQueryParameters",
|
|
35
|
-
args: ["name", "value"],
|
|
36
|
-
target: ["Namespace"],
|
|
37
|
-
emitter: "unpackAdditionalQueryParameters",
|
|
38
|
-
attribute: {
|
|
39
|
-
name: "AdditionalQueryParameters",
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
decorator: "agsAttribute",
|
|
44
|
-
args: ["name", "value"],
|
|
45
|
-
target: ["Model", "ModelProperty", "Enum", "EnumMember", "Interface", "Operation"],
|
|
46
|
-
emitter: "unpackAgsAttributes",
|
|
47
|
-
attribute: { name: "AgsAttribute" },
|
|
48
|
-
},
|
|
49
|
-
];
|
|
50
|
-
//# sourceMappingURL=attributes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"attributes.js","sourceRoot":"","sources":["../../../src/decorators/attributes.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SAAS,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE;KACpC;CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"additional-query-parameters.d.ts","sourceRoot":"","sources":["../../../../../src/decorators/handlers/custom/additional-query-parameters.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,gBAAgB,EAChB,SAAS,EACT,OAAO,EACP,IAAI,EACL,MAAM,oBAAoB,CAAC;AAE5B,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AASD;;GAEG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,EACjB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,QAkBd;AAED,wBAAgB,4BAA4B,CAC1C,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,SAAS,GAChB,cAAc,EAAE,CAElB;AAED,wBAAgB,+BAA+B,CAC7C,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,IAAI,GACX;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAM3B"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { createDecoratorDefinition, } from "@typespec/compiler";
|
|
2
|
-
const additionalQueryParametersKey = Symbol("additionalQueryParameters");
|
|
3
|
-
const additionalQueryParametersDecorator = createDecoratorDefinition({
|
|
4
|
-
name: "@additionalQueryParameters",
|
|
5
|
-
target: "Namespace",
|
|
6
|
-
args: [{ kind: "String" }, { kind: "String" }],
|
|
7
|
-
});
|
|
8
|
-
/**
|
|
9
|
-
* \`@additionalQueryParameters\` - Appends a key=value pair to the query string of the mapped internal URL for all models defined within the namespace..
|
|
10
|
-
*/
|
|
11
|
-
export function $additionalQueryParameters(context, target, name, value) {
|
|
12
|
-
if (!additionalQueryParametersDecorator.validate(context, target, [name, value])) {
|
|
13
|
-
return;
|
|
14
|
-
}
|
|
15
|
-
let queryParameters = context.program
|
|
16
|
-
.stateMap(additionalQueryParametersKey)
|
|
17
|
-
.get(target);
|
|
18
|
-
if (queryParameters === undefined) {
|
|
19
|
-
queryParameters = [];
|
|
20
|
-
context.program.stateMap(additionalQueryParametersKey).set(target, queryParameters);
|
|
21
|
-
}
|
|
22
|
-
queryParameters.push({
|
|
23
|
-
name,
|
|
24
|
-
value,
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
export function getAdditionalQueryParameters(program, target) {
|
|
28
|
-
return program.stateMap(additionalQueryParametersKey).get(target) || [];
|
|
29
|
-
}
|
|
30
|
-
export function unpackAdditionalQueryParameters(program, target) {
|
|
31
|
-
const additionalQueryParameters = getAdditionalQueryParameters(program, target);
|
|
32
|
-
const queryParameters = additionalQueryParameters &&
|
|
33
|
-
additionalQueryParameters.map((p) => `${p.name}=${p.value}`).join("&");
|
|
34
|
-
return { "ags:AdditionalQueryParameters": queryParameters };
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=additional-query-parameters.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"additional-query-parameters.js","sourceRoot":"","sources":["../../../../../src/decorators/handlers/custom/additional-query-parameters.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,GAK1B,MAAM,oBAAoB,CAAC;AAM5B,MAAM,4BAA4B,GAAG,MAAM,CAAC,2BAA2B,CAAC,CAAC;AAEzE,MAAM,kCAAkC,GAAG,yBAAyB,CAAC;IACnE,IAAI,EAAE,4BAA4B;IAClC,MAAM,EAAE,WAAW;IACnB,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;CACtC,CAAC,CAAC;AAEZ;;GAEG;AACH,MAAM,UAAU,0BAA0B,CACxC,OAAyB,EACzB,MAAiB,EACjB,IAAY,EACZ,KAAa;IAEb,IAAI,CAAC,kCAAkC,CAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,EAAE;QAChF,OAAO;KACR;IAED,IAAI,eAAe,GAAqB,OAAO,CAAC,OAAO;SACpD,QAAQ,CAAC,4BAA4B,CAAC;SACtC,GAAG,CAAC,MAAM,CAAC,CAAC;IACf,IAAI,eAAe,KAAK,SAAS,EAAE;QACjC,eAAe,GAAG,EAAE,CAAC;QACrB,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,4BAA4B,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;KACrF;IAED,eAAe,CAAC,IAAI,CAAC;QACnB,IAAI;QACJ,KAAK;KACN,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,4BAA4B,CAC1C,OAAgB,EAChB,MAAiB;IAEjB,OAAO,OAAO,CAAC,QAAQ,CAAC,4BAA4B,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;AAC1E,CAAC;AAED,MAAM,UAAU,+BAA+B,CAC7C,OAAgB,EAChB,MAAY;IAEZ,MAAM,yBAAyB,GAAG,4BAA4B,CAAC,OAAO,EAAE,MAAmB,CAAC,CAAC;IAC7F,MAAM,eAAe,GACnB,yBAAyB;QACzB,yBAAyB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACzE,OAAO,EAAE,+BAA+B,EAAE,eAAe,EAAE,CAAC;AAC9D,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { DecoratorContext, Enum, EnumMember, Interface, Model, ModelProperty, Operation, Program, Type } from "@typespec/compiler";
|
|
2
|
-
export declare function $agsAttribute(context: DecoratorContext, target: Model | ModelProperty | Enum | EnumMember | Operation | Interface, name: string, value: string): void;
|
|
3
|
-
export declare function getAgsAttributes(program: Program, target: Model | ModelProperty | Enum | EnumMember | Operation | Interface): Map<string, string> | undefined;
|
|
4
|
-
export declare function unpackAgsAttributes(program: Program, target: Type): {
|
|
5
|
-
[key: string]: string;
|
|
6
|
-
};
|
|
7
|
-
//# sourceMappingURL=ags-attribute.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ags-attribute.d.ts","sourceRoot":"","sources":["../../../../../src/decorators/handlers/custom/ags-attribute.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,gBAAgB,EAChB,IAAI,EACJ,UAAU,EACV,SAAS,EACT,KAAK,EACL,aAAa,EACb,SAAS,EACT,OAAO,EACP,IAAI,EACL,MAAM,oBAAoB,CAAC;AAe5B,wBAAgB,aAAa,CAC3B,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,GAAG,aAAa,GAAG,IAAI,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,EACzE,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,QAiBd;AAED,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,KAAK,GAAG,aAAa,GAAG,IAAI,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,GACxE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAEjC;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAK7F"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { createDecoratorDefinition, } from "@typespec/compiler";
|
|
2
|
-
/**
|
|
3
|
-
* `@agsAttribute` - Allows all AGS CSDL extensions that are not yet modelled explicitly in TypeSpec to be maintained
|
|
4
|
-
* `@agsAttribute` - Applies to models.
|
|
5
|
-
*/
|
|
6
|
-
const agsAttributeKey = Symbol("agsAttribute");
|
|
7
|
-
const agsAttributeDecorator = createDecoratorDefinition({
|
|
8
|
-
name: "@agsAttribute",
|
|
9
|
-
target: ["Enum", "EnumMember", "Model", "ModelProperty", "Operation", "Interface"],
|
|
10
|
-
args: [{ kind: "String" }, { kind: "String" }],
|
|
11
|
-
});
|
|
12
|
-
export function $agsAttribute(context, target, name, value) {
|
|
13
|
-
if (!agsAttributeDecorator.validate(context, target, [name, value])) {
|
|
14
|
-
return;
|
|
15
|
-
}
|
|
16
|
-
let attributeParameters = context.program
|
|
17
|
-
.stateMap(agsAttributeKey)
|
|
18
|
-
.get(target);
|
|
19
|
-
if (attributeParameters) {
|
|
20
|
-
attributeParameters.set(name, value);
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
attributeParameters = new Map([[name, value]]);
|
|
24
|
-
}
|
|
25
|
-
context.program.stateMap(agsAttributeKey).set(target, attributeParameters);
|
|
26
|
-
}
|
|
27
|
-
export function getAgsAttributes(program, target) {
|
|
28
|
-
return program.stateMap(agsAttributeKey).get(target);
|
|
29
|
-
}
|
|
30
|
-
export function unpackAgsAttributes(program, target) {
|
|
31
|
-
const attributes = getAgsAttributes(program, target);
|
|
32
|
-
let params = {};
|
|
33
|
-
attributes === null || attributes === void 0 ? void 0 : attributes.forEach((value, name) => (params = { ...params, ...{ [`ags:${name}`]: value } }));
|
|
34
|
-
return params || {};
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=ags-attribute.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ags-attribute.js","sourceRoot":"","sources":["../../../../../src/decorators/handlers/custom/ags-attribute.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,GAU1B,MAAM,oBAAoB,CAAC;AAE5B;;;GAGG;AAEH,MAAM,eAAe,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;AAE/C,MAAM,qBAAqB,GAAG,yBAAyB,CAAC;IACtD,IAAI,EAAE,eAAe;IACrB,MAAM,EAAE,CAAC,MAAM,EAAE,YA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G,EAAE,GAAG,MAAM,EAAE,GAAG,EAAE,CAAC,OAAO,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC;IAC9F,OAAO,MAAM,IAAI,EAAE,CAAC;AACtB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/decorators/handlers/custom/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,oBAAoB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/decorators/handlers/custom/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,oBAAoB,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTICE: This is an autogenerated file and should not be edited directly.
|
|
3
|
-
*/
|
|
4
|
-
import { DecoratorContext, EnumMember, Enum, Interface, Model, ModelProperty, Namespace, Operation, Program, Type } from "@typespec/compiler";
|
|
5
|
-
/**
|
|
6
|
-
* `@isOwner` - specify the name of the workload associated with the model
|
|
7
|
-
* `@isOwner` can be applied to Model, ModelProperty, Enum, EnumMember.
|
|
8
|
-
*/
|
|
9
|
-
export declare function $isOwner(context: DecoratorContext, target: Model | ModelProperty | Enum | EnumMember): void;
|
|
10
|
-
export declare function isIsOwner(program: Program, target: Type): boolean;
|
|
11
|
-
/**
|
|
12
|
-
*
|
|
13
|
-
* `@privileged` can be applied to Model, ModelProperty, Enum, EnumMember, Operation, Namespace.
|
|
14
|
-
*/
|
|
15
|
-
export declare function $privileged(context: DecoratorContext, target: Model | ModelProperty | Enum | EnumMember | Operation | Namespace): void;
|
|
16
|
-
export declare function isPrivileged(program: Program, target: Type): boolean;
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
* `@workloadName` can be applied to Model, ModelProperty, Enum, EnumMember.
|
|
20
|
-
*/
|
|
21
|
-
export declare function $workloadName(context: DecoratorContext, target: Model | ModelProperty | Enum | EnumMember, workloadName: string): void;
|
|
22
|
-
export declare function getWorkloadName(program: Program, target: Type): string | undefined;
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
* `@workloadNameMsa` can be applied to Model, ModelProperty, Enum, EnumMember.
|
|
26
|
-
*/
|
|
27
|
-
export declare function $workloadNameMsa(context: DecoratorContext, target: Model | ModelProperty | Enum | EnumMember, workloadNameMsa: string): void;
|
|
28
|
-
export declare function getWorkloadNameMsa(program: Program, target: Type): string | undefined;
|
|
29
|
-
export declare function buildAttributes(program: Program, type: Model | ModelProperty | Namespace | Interface | Operation | Enum | EnumMember): {};
|
|
30
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/decorators/handlers/index.ts"],"names":[],"mappings":"AACE;;GAEG;AAEL,OAAO,EAEL,gBAAgB,EAChB,UAAU,EACV,IAAI,EACJ,SAAS,EACT,KAAK,EACL,aAAa,EACb,SAAS,EACT,SAAS,EACT,OAAO,EACP,IAAI,EACL,MAAM,oBAAoB,CAAC;AAY5B;;;EAGE;AACF,wBAAgB,QAAQ,CACtB,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,GAAG,aAAa,GAAG,IAAI,GAAG,UAAU,QAQlD;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAG,OAAO,CAEjE;AAYD;;;EAGE;AACF,wBAAgB,WAAW,CACzB,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,GAAG,aAAa,GAAG,IAAI,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,QAQ1E;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAG,OAAO,CAEpE;AAYD;;;EAGE;AACF,wBAAgB,aAAa,CAC3B,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,GAAG,aAAa,GAAG,IAAI,GAAG,UAAU,EACjD,YAAY,EAAE,MAAM,QAOrB;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAG,MAAM,GAAG,SAAS,CAElF;AAYD;;;EAGE;AACF,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,GAAG,aAAa,GAAG,IAAI,GAAG,UAAU,EACjD,eAAe,EAAE,MAAM,QAOxB;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,GAAG,MAAM,GAAG,SAAS,CAErF;AAmBD,wBAAgB,eAAe,CAC7B,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,KAAK,GAAG,aAAa,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,IAAI,GAAG,UAAU,MAoBpF"}
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NOTICE: This is an autogenerated file and should not be edited directly.
|
|
3
|
-
*/
|
|
4
|
-
import { createDecoratorDefinition, } from "@typespec/compiler";
|
|
5
|
-
import * as customAttribs from "./custom/index.js";
|
|
6
|
-
// -- @isOwner decorator
|
|
7
|
-
const isOwnerKey = Symbol("isOwner");
|
|
8
|
-
const isOwnerDecorator = createDecoratorDefinition({
|
|
9
|
-
name: "@isOwner",
|
|
10
|
-
target: ["Model", "ModelProperty", "Enum", "EnumMember"],
|
|
11
|
-
args: []
|
|
12
|
-
});
|
|
13
|
-
/**
|
|
14
|
-
* `@isOwner` - specify the name of the workload associated with the model
|
|
15
|
-
* `@isOwner` can be applied to Model, ModelProperty, Enum, EnumMember.
|
|
16
|
-
*/
|
|
17
|
-
export function $isOwner(context, target) {
|
|
18
|
-
if (!isOwnerDecorator.validate(context, target, [])) {
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
context.program.stateSet(isOwnerKey).add(target);
|
|
22
|
-
}
|
|
23
|
-
export function isIsOwner(program, target) {
|
|
24
|
-
return program.stateSet(isOwnerKey).has(target);
|
|
25
|
-
}
|
|
26
|
-
// -- @privileged decorator
|
|
27
|
-
const privilegedKey = Symbol("privileged");
|
|
28
|
-
const privilegedDecorator = createDecoratorDefinition({
|
|
29
|
-
name: "@privileged",
|
|
30
|
-
target: ["Model", "ModelProperty", "Enum", "EnumMember", "Operation", "Namespace"],
|
|
31
|
-
args: []
|
|
32
|
-
});
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* `@privileged` can be applied to Model, ModelProperty, Enum, EnumMember, Operation, Namespace.
|
|
36
|
-
*/
|
|
37
|
-
export function $privileged(context, target) {
|
|
38
|
-
if (!privilegedDecorator.validate(context, target, [])) {
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
context.program.stateSet(privilegedKey).add(target);
|
|
42
|
-
}
|
|
43
|
-
export function isPrivileged(program, target) {
|
|
44
|
-
return program.stateSet(privilegedKey).has(target);
|
|
45
|
-
}
|
|
46
|
-
// -- @workloadName decorator
|
|
47
|
-
const workloadNameKey = Symbol("workloadName");
|
|
48
|
-
const workloadNameDecorator = createDecoratorDefinition({
|
|
49
|
-
name: "@workloadName",
|
|
50
|
-
target: ["Model", "ModelProperty", "Enum", "EnumMember"],
|
|
51
|
-
args: [{ kind: "String" }]
|
|
52
|
-
});
|
|
53
|
-
/**
|
|
54
|
-
*
|
|
55
|
-
* `@workloadName` can be applied to Model, ModelProperty, Enum, EnumMember.
|
|
56
|
-
*/
|
|
57
|
-
export function $workloadName(context, target, workloadName) {
|
|
58
|
-
if (!workloadNameDecorator.validate(context, target, [workloadName])) {
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
context.program.stateMap(workloadNameKey).set(target, workloadName);
|
|
62
|
-
}
|
|
63
|
-
export function getWorkloadName(program, target) {
|
|
64
|
-
return program.stateMap(workloadNameKey).get(target);
|
|
65
|
-
}
|
|
66
|
-
// -- @workloadNameMsa decorator
|
|
67
|
-
const workloadNameMsaKey = Symbol("workloadNameMsa");
|
|
68
|
-
const workloadNameMsaDecorator = createDecoratorDefinition({
|
|
69
|
-
name: "@workloadNameMsa",
|
|
70
|
-
target: ["Model", "ModelProperty", "Enum", "EnumMember"],
|
|
71
|
-
args: [{ kind: "String" }]
|
|
72
|
-
});
|
|
73
|
-
/**
|
|
74
|
-
*
|
|
75
|
-
* `@workloadNameMsa` can be applied to Model, ModelProperty, Enum, EnumMember.
|
|
76
|
-
*/
|
|
77
|
-
export function $workloadNameMsa(context, target, workloadNameMsa) {
|
|
78
|
-
if (!workloadNameMsaDecorator.validate(context, target, [workloadNameMsa])) {
|
|
79
|
-
return;
|
|
80
|
-
}
|
|
81
|
-
context.program.stateMap(workloadNameMsaKey).set(target, workloadNameMsa);
|
|
82
|
-
}
|
|
83
|
-
export function getWorkloadNameMsa(program, target) {
|
|
84
|
-
return program.stateMap(workloadNameMsaKey).get(target);
|
|
85
|
-
}
|
|
86
|
-
const decoratorToMethodMapper = {
|
|
87
|
-
isOwner: isIsOwner,
|
|
88
|
-
privileged: isPrivileged,
|
|
89
|
-
workloadName: getWorkloadName,
|
|
90
|
-
workloadNameMsa: getWorkloadNameMsa,
|
|
91
|
-
additionalQueryParameters: customAttribs.unpackAdditionalQueryParameters,
|
|
92
|
-
agsAttribute: customAttribs.unpackAgsAttributes
|
|
93
|
-
};
|
|
94
|
-
const decoratorToAgsAttributeMapper = {
|
|
95
|
-
"isOwner": "ags:IsOwner",
|
|
96
|
-
"privileged": "ags:IsHidden",
|
|
97
|
-
"workloadName": "ags:WorkloadName",
|
|
98
|
-
"workloadNameMsa": "ags:WorkloadNameMsa"
|
|
99
|
-
};
|
|
100
|
-
export function buildAttributes(program, type) {
|
|
101
|
-
const declaredDecorators = ["isOwner", "privileged", "workloadName", "workloadNameMsa", "additionalQueryParameters", "agsAttribute"];
|
|
102
|
-
let attrs = {};
|
|
103
|
-
type.decorators
|
|
104
|
-
// only handle declared decorators
|
|
105
|
-
.filter((d) => declaredDecorators.some((s) => s === d.decorator.name.substring(1)))
|
|
106
|
-
.forEach((d) => {
|
|
107
|
-
const attrName = d.decorator.name.substring(1); // name prefixed with $
|
|
108
|
-
let key = attrName;
|
|
109
|
-
const agsAttrParams = decoratorToMethodMapper[key](program, type);
|
|
110
|
-
if (typeof agsAttrParams === "object") {
|
|
111
|
-
attrs = { ...attrs, ...agsAttrParams };
|
|
112
|
-
}
|
|
113
|
-
else {
|
|
114
|
-
key = attrName;
|
|
115
|
-
const agsAttr = decoratorToAgsAttributeMapper[key];
|
|
116
|
-
attrs = { ...attrs, ...{ [agsAttr]: agsAttrParams } };
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
return attrs;
|
|
120
|
-
}
|
|
121
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/decorators/handlers/index.ts"],"names":[],"mappings":"AACE;;GAEG;AAEL,OAAO,EACL,yBAAyB,GAW1B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,aAAa,MAAM,mBAAmB,CAAC;AAEnD,wBAAwB;AAExB,MAAM,UAAU,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;AACrC,MAAM,gBAAgB,GAAG,yBAAyB,CAAC;IACjD,IAAI,EAAE,UAAU;IAChB,MAAM,EAAE,CAAC,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,YAAY,CAAC;IACxD,IAAI,EAAE,EAAE;CACA,CAAC,CAAC;AAEZ;;;EAGE;AACF,MAAM,UAAU,QAAQ,CACtB,OAAyB,EACzB,MAAiD;IAGjD,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE;QACnD,OAAO;KACR;IAED,OAAO,CAAC,OAAO,CA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AC;YACnD,KAAK,GAAG,EAAE,GAAG,KAAK,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,EAAE,aAAa,EAAE,EAAE,CAAC;SACvD;IACH,CAAC,CAAC,CAAC;IACL,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"routed-interfaces.d.ts","sourceRoot":"","sources":["../../../src/decorators/routed-interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,gBAAgB,EAChB,KAAK,EACL,SAAS,EACT,OAAO,EACP,IAAI,EAEL,MAAM,oBAAoB,CAAC;AAS5B;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,CAAC,EAAE,MAAM,QAMpF;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,WAE7D;AAED,wBAAgB,WAAW,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,CAEnF;AAGD;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,IAAI,QAO1E;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,WAEnE"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { createDecoratorDefinition, validateDecoratorTarget, } from "@typespec/compiler";
|
|
2
|
-
const functionKey = Symbol("function");
|
|
3
|
-
const functionDecorator = createDecoratorDefinition({
|
|
4
|
-
name: "@function",
|
|
5
|
-
target: "Operation",
|
|
6
|
-
args: [{ kind: "String", optional: true }],
|
|
7
|
-
});
|
|
8
|
-
/**
|
|
9
|
-
* `@function` - mark an operation as a function
|
|
10
|
-
*
|
|
11
|
-
* `@function` can only be applied to operations.
|
|
12
|
-
*/
|
|
13
|
-
export function $function(context, target, name) {
|
|
14
|
-
if (!functionDecorator.validate(context, target, [name])) {
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
context.program.stateMap(functionKey).set(target, name || target.name);
|
|
18
|
-
}
|
|
19
|
-
export function isFunction(program, target) {
|
|
20
|
-
return program.stateMap(functionKey).has(target);
|
|
21
|
-
}
|
|
22
|
-
export function getFunction(program, target) {
|
|
23
|
-
return program.stateMap(functionKey).get(target);
|
|
24
|
-
}
|
|
25
|
-
const operationParametersKey = Symbol("operationParameters");
|
|
26
|
-
/**
|
|
27
|
-
* `@operationParameters` - A model with this decorator will not be generated in the CSDL
|
|
28
|
-
* and can't be reused by other models through inheritance,
|
|
29
|
-
* or any other way except through being a parameter for an action operation.
|
|
30
|
-
* The purpose of this model is only to define model parameters that would be too verbose.
|
|
31
|
-
* This decorator will be the equivalent of inlining the properties of the model into parameters of the operation.
|
|
32
|
-
*/
|
|
33
|
-
export function $operationParameters(context, model) {
|
|
34
|
-
if (!validateDecoratorTarget(context, model, "@operationParameters", "Model")) {
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
// Register the operationParameters property
|
|
38
|
-
context.program.stateSet(operationParametersKey).add(model);
|
|
39
|
-
}
|
|
40
|
-
export function isOperationParameters(program, model) {
|
|
41
|
-
return program.stateSet(operationParametersKey).has(model);
|
|
42
|
-
}
|
|
43
|
-
//# sourceMappingURL=routed-interfaces.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"routed-interfaces.js","sourceRoot":"","sources":["../../../src/decorators/routed-interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EAMzB,uBAAuB,GACxB,MAAM,oBAAoB,CAAC;AAE5B,MAAM,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;AACvC,MAAM,iBAAiB,GAAG,yBAAyB,CAAC;IAClD,IAAI,EAAE,WAAW;IACjB,MAAM,EAAE,WAAW;IACnB,IAAI,EAAE,CAAC,EAAE,IAAI,EAA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