@umbraco-cms/backoffice 1.0.0-next.c216900c → 1.0.0-next.c3ee1ee0
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-cms/apps/installer/database/installer-database.element.js +12 -1
- package/dist-cms/css/umb-css.css +1 -0
- package/dist-cms/custom-elements.json +173 -171
- package/dist-cms/external/backend-api/index.js +1 -4500
- package/dist-cms/external/lit/index.js +30 -96
- package/dist-cms/external/lodash/index.js +1 -3199
- package/dist-cms/external/monaco-editor/abap-42d5eca7.js +6 -0
- package/dist-cms/external/monaco-editor/apex-051da044.js +6 -0
- package/dist-cms/external/monaco-editor/azcli-ad3d7346.js +6 -0
- package/dist-cms/external/monaco-editor/bat-0217c0bc.js +6 -0
- package/dist-cms/external/monaco-editor/bicep-0cadb30a.js +7 -0
- package/dist-cms/external/monaco-editor/bundle.css +5355 -0
- package/dist-cms/external/monaco-editor/cameligo-ac55f854.js +6 -0
- package/dist-cms/external/monaco-editor/clojure-388a0d58.js +6 -0
- package/dist-cms/external/monaco-editor/coffee-7e7a2971.js +6 -0
- package/dist-cms/external/monaco-editor/cpp-840d082a.js +6 -0
- package/dist-cms/external/monaco-editor/csharp-b3429875.js +6 -0
- package/dist-cms/external/monaco-editor/csp-83442b86.js +6 -0
- package/dist-cms/external/monaco-editor/css-7a34b8c3.js +8 -0
- package/dist-cms/external/monaco-editor/cssMode-98237bd7.js +9 -0
- package/dist-cms/external/monaco-editor/cypher-cc9c23cc.js +6 -0
- package/dist-cms/external/monaco-editor/dart-00a58d1c.js +6 -0
- package/dist-cms/external/monaco-editor/dockerfile-668ee825.js +6 -0
- package/dist-cms/external/monaco-editor/ecl-b42ffd48.js +6 -0
- package/dist-cms/external/monaco-editor/elixir-b9ceca92.js +6 -0
- package/dist-cms/external/monaco-editor/flow9-7e9b2e50.js +6 -0
- package/dist-cms/external/monaco-editor/freemarker2-b9eee947.js +8 -0
- package/dist-cms/external/monaco-editor/fsharp-cdc5b8f1.js +6 -0
- package/dist-cms/external/monaco-editor/go-4c92fa5c.js +6 -0
- package/dist-cms/external/monaco-editor/graphql-67842079.js +6 -0
- package/dist-cms/external/monaco-editor/handlebars-36a3f04f.js +6 -0
- package/dist-cms/external/monaco-editor/hcl-59febf1c.js +6 -0
- package/dist-cms/external/monaco-editor/html-b0d38e59.js +6 -0
- package/dist-cms/external/monaco-editor/htmlMode-b85c3f7d.js +9 -0
- package/dist-cms/external/monaco-editor/index-534fb84c.js +1158 -0
- package/dist-cms/external/monaco-editor/index.js +1 -0
- package/dist-cms/external/monaco-editor/ini-1cf2ce67.js +6 -0
- package/dist-cms/external/monaco-editor/java-e4fb14c6.js +6 -0
- package/dist-cms/external/monaco-editor/javascript-53ce59fc.js +6 -0
- package/dist-cms/external/monaco-editor/jsonMode-fa2b41c8.js +11 -0
- package/dist-cms/external/monaco-editor/julia-9b6c6458.js +6 -0
- package/dist-cms/external/monaco-editor/kotlin-b66c14ff.js +6 -0
- package/dist-cms/external/monaco-editor/less-8dc8685d.js +7 -0
- package/dist-cms/external/monaco-editor/lexon-59c0b911.js +6 -0
- package/dist-cms/external/monaco-editor/liquid-be38812f.js +6 -0
- package/dist-cms/external/monaco-editor/lua-3f4d9098.js +6 -0
- package/dist-cms/external/monaco-editor/m3-82a8c502.js +6 -0
- package/dist-cms/external/monaco-editor/markdown-07c3fa1e.js +6 -0
- package/dist-cms/external/monaco-editor/mips-59ddf2f4.js +6 -0
- package/dist-cms/external/monaco-editor/msdax-12ec689c.js +6 -0
- package/dist-cms/external/monaco-editor/mysql-2958efa4.js +6 -0
- package/dist-cms/external/monaco-editor/objective-c-08d94025.js +6 -0
- package/dist-cms/external/monaco-editor/pascal-b686b438.js +6 -0
- package/dist-cms/external/monaco-editor/pascaligo-96457e5f.js +6 -0
- package/dist-cms/external/monaco-editor/perl-b938bdad.js +6 -0
- package/dist-cms/external/monaco-editor/pgsql-42970e97.js +6 -0
- package/dist-cms/external/monaco-editor/php-7476401f.js +6 -0
- package/dist-cms/external/monaco-editor/pla-aaf0caa2.js +6 -0
- package/dist-cms/external/monaco-editor/postiats-759ff404.js +6 -0
- package/dist-cms/external/monaco-editor/powerquery-a33a8de4.js +6 -0
- package/dist-cms/external/monaco-editor/powershell-ec154f36.js +6 -0
- package/dist-cms/external/monaco-editor/protobuf-e42d83dc.js +7 -0
- package/dist-cms/external/monaco-editor/pug-04b2d67c.js +6 -0
- package/dist-cms/external/monaco-editor/python-b3b058ea.js +6 -0
- package/dist-cms/external/monaco-editor/qsharp-5376e9d1.js +6 -0
- package/dist-cms/external/monaco-editor/r-d212ba98.js +6 -0
- package/dist-cms/external/monaco-editor/razor-911a705a.js +6 -0
- package/dist-cms/external/monaco-editor/redis-51e44009.js +6 -0
- package/dist-cms/external/monaco-editor/redshift-8de2cfdc.js +6 -0
- package/dist-cms/external/monaco-editor/restructuredtext-3f99254a.js +6 -0
- package/dist-cms/external/monaco-editor/ruby-64a73e64.js +6 -0
- package/dist-cms/external/monaco-editor/rust-2a0390f1.js +6 -0
- package/dist-cms/external/monaco-editor/sb-4d8fa557.js +6 -0
- package/dist-cms/external/monaco-editor/scala-00d62260.js +6 -0
- package/dist-cms/external/monaco-editor/scheme-a0903f29.js +6 -0
- package/dist-cms/external/monaco-editor/scss-3e25f7ad.js +8 -0
- package/dist-cms/external/monaco-editor/shell-9c442847.js +6 -0
- package/dist-cms/external/monaco-editor/solidity-6b3049ed.js +6 -0
- package/dist-cms/external/monaco-editor/sophia-f4a2b303.js +6 -0
- package/dist-cms/external/monaco-editor/sparql-1d37a384.js +6 -0
- package/dist-cms/external/monaco-editor/sql-946641be.js +6 -0
- package/dist-cms/external/monaco-editor/st-9220dec1.js +6 -0
- package/dist-cms/external/monaco-editor/swift-06592b81.js +8 -0
- package/dist-cms/external/monaco-editor/systemverilog-b5ba493c.js +6 -0
- package/dist-cms/external/monaco-editor/tcl-3fe51e69.js +6 -0
- package/dist-cms/external/monaco-editor/tsMode-3f4e7f54.js +16 -0
- package/dist-cms/external/monaco-editor/twig-ee0f3b03.js +6 -0
- package/dist-cms/external/monaco-editor/typescript-4d577e09.js +6 -0
- package/dist-cms/external/monaco-editor/vb-e7e59935.js +6 -0
- package/dist-cms/external/monaco-editor/xml-b05159d9.js +6 -0
- package/dist-cms/external/monaco-editor/yaml-b4ec85f0.js +6 -0
- package/dist-cms/external/openid/index.js +2 -1494
- package/dist-cms/external/router-slot/index.js +1 -865
- package/dist-cms/external/rxjs/index.js +3 -1802
- package/dist-cms/external/uui/index.js +556 -9978
- package/dist-cms/external/uuid/index.js +1 -72
- package/dist-cms/mocks/data/data-type.data.js +36 -37
- package/dist-cms/mocks/data/document-type.data.js +19 -0
- package/dist-cms/mocks/data/template.data.d.ts +26 -2
- package/dist-cms/mocks/data/template.data.js +82 -5
- package/dist-cms/mocks/data/utils.d.ts +2 -2
- package/dist-cms/mocks/handlers/manifests.handlers.js +1 -1
- package/dist-cms/mocks/handlers/template.handlers.js +24 -4
- package/dist-cms/packages/core/collection/collection.element.js +1 -1
- package/dist-cms/packages/core/components/body-layout/body-layout.element.d.ts +3 -2
- package/dist-cms/packages/core/components/body-layout/body-layout.element.js +26 -6
- package/dist-cms/packages/core/components/data-type/data-type-property-collection.class.d.ts +1 -0
- package/dist-cms/packages/core/components/data-type/data-type-property-collection.class.js +3 -0
- package/dist-cms/packages/core/components/footer-layout/footer-layout.element.js +1 -1
- package/dist-cms/packages/core/components/index.js +1 -2
- package/dist-cms/packages/core/components/property-editor-config/property-editor-config.element.d.ts +2 -2
- package/dist-cms/packages/core/components/property-editor-config/property-editor-config.element.js +16 -13
- package/dist-cms/packages/core/components/property-type-based-property/property-type-based-property.element.js +12 -1
- package/dist-cms/packages/core/components/table/table.element.js +1 -2
- package/dist-cms/packages/core/extension-registry/models/index.d.ts +2 -2
- package/dist-cms/packages/core/extension-registry/models/property-editor.model.d.ts +13 -10
- package/dist-cms/packages/core/modal/common/template/template-modal.element.d.ts +3 -3
- package/dist-cms/packages/core/modal/common/tree-picker/tree-picker-modal.element.js +0 -4
- package/dist-cms/packages/core/modal/token/allowed-document-types-modal.token.d.ts +2 -1
- package/dist-cms/packages/core/modal/token/dictionary-item-picker-modal.token.d.ts +5 -9
- package/dist-cms/packages/core/modal/token/dictionary-item-picker-modal.token.js +2 -0
- package/dist-cms/packages/core/property-actions/manifests.js +2 -2
- package/dist-cms/packages/core/property-editors/manifests.d.ts +1 -1
- package/dist-cms/packages/core/property-editors/models/Umbraco.BlockGrid.js +7 -6
- package/dist-cms/packages/core/property-editors/models/Umbraco.BlockList.js +4 -3
- package/dist-cms/packages/core/property-editors/models/Umbraco.CheckboxList.js +3 -1
- package/dist-cms/packages/core/property-editors/models/Umbraco.ColorPicker.EyeDropper.js +3 -1
- package/dist-cms/packages/core/property-editors/models/Umbraco.ColorPicker.js +4 -3
- package/dist-cms/packages/core/property-editors/models/Umbraco.DateTime.js +17 -2
- package/dist-cms/packages/core/property-editors/models/Umbraco.Decimal.js +5 -4
- package/dist-cms/packages/core/property-editors/models/Umbraco.Dropdown.Flexible.js +3 -1
- package/dist-cms/packages/core/property-editors/models/Umbraco.EmailAddress.js +3 -1
- package/dist-cms/packages/core/property-editors/models/Umbraco.IconPicker.d.ts +2 -0
- package/dist-cms/packages/core/property-editors/models/Umbraco.IconPicker.js +8 -0
- package/dist-cms/packages/core/property-editors/models/Umbraco.ImageCropper.js +3 -2
- package/dist-cms/packages/core/property-editors/models/Umbraco.Integer.js +5 -4
- package/dist-cms/packages/core/property-editors/models/Umbraco.JSON.js +3 -1
- package/dist-cms/packages/core/property-editors/models/Umbraco.Label.js +3 -2
- package/dist-cms/packages/core/property-editors/models/Umbraco.ListView.js +7 -6
- package/dist-cms/packages/core/property-editors/models/Umbraco.MarkdownEditor.js +3 -1
- package/dist-cms/packages/core/property-editors/models/Umbraco.MediaPicker3.js +9 -8
- package/dist-cms/packages/core/property-editors/models/Umbraco.MemberGroupPicker.js +3 -1
- package/dist-cms/packages/core/property-editors/models/Umbraco.MemberPicker.js +3 -1
- package/dist-cms/packages/core/property-editors/models/Umbraco.MultiNodeTreePicker.js +5 -4
- package/dist-cms/packages/core/property-editors/models/Umbraco.MultiUrlPicker.js +5 -4
- package/dist-cms/packages/core/property-editors/models/Umbraco.MultipleTextString.js +4 -3
- package/dist-cms/packages/core/property-editors/models/Umbraco.RadioButtonList.js +3 -1
- package/dist-cms/packages/core/property-editors/models/Umbraco.Slider.js +4 -3
- package/dist-cms/packages/core/property-editors/models/Umbraco.Tags.js +4 -3
- package/dist-cms/packages/core/property-editors/models/Umbraco.TextArea.js +3 -2
- package/dist-cms/packages/core/property-editors/models/Umbraco.TextBox.js +3 -2
- package/dist-cms/packages/core/property-editors/models/Umbraco.TinyMCE.js +4 -3
- package/dist-cms/packages/core/property-editors/models/Umbraco.TrueFalse.js +3 -1
- package/dist-cms/packages/core/property-editors/models/Umbraco.UploadField.js +3 -2
- package/dist-cms/packages/core/property-editors/models/Umbraco.UserPicker.js +3 -1
- package/dist-cms/packages/core/property-editors/models/manifests.js +43 -47
- package/dist-cms/packages/core/property-editors/uis/block-grid/config/block-configuration/manifests.d.ts +2 -2
- package/dist-cms/packages/core/property-editors/uis/block-grid/config/block-configuration/manifests.js +3 -3
- package/dist-cms/packages/core/property-editors/uis/block-grid/config/group-configuration/manifests.d.ts +2 -2
- package/dist-cms/packages/core/property-editors/uis/block-grid/config/group-configuration/manifests.js +3 -3
- package/dist-cms/packages/core/property-editors/uis/block-grid/config/stylesheet-picker/manifests.d.ts +2 -2
- package/dist-cms/packages/core/property-editors/uis/block-grid/config/stylesheet-picker/manifests.js +3 -3
- package/dist-cms/packages/core/property-editors/uis/block-grid/manifests.d.ts +2 -2
- package/dist-cms/packages/core/property-editors/uis/block-grid/manifests.js +7 -7
- package/dist-cms/packages/core/property-editors/uis/block-list/config/block-configuration/manifests.d.ts +2 -2
- package/dist-cms/packages/core/property-editors/uis/block-list/config/block-configuration/manifests.js +3 -3
- package/dist-cms/packages/core/property-editors/uis/block-list/manifests.d.ts +2 -2
- package/dist-cms/packages/core/property-editors/uis/block-list/manifests.js +8 -8
- package/dist-cms/packages/core/property-editors/uis/checkbox-list/manifests.d.ts +2 -2
- package/dist-cms/packages/core/property-editors/uis/checkbox-list/manifests.js +5 -5
- package/dist-cms/packages/core/property-editors/uis/collection-view/config/bulk-action-permissions/manifests.d.ts +2 -2
- package/dist-cms/packages/core/property-editors/uis/collection-view/config/bulk-action-permissions/manifests.js +3 -3
- package/dist-cms/packages/core/property-editors/uis/collection-view/config/column-configuration/manifests.d.ts +2 -2
- package/dist-cms/packages/core/property-editors/uis/collection-view/config/column-configuration/manifests.js +3 -3
- package/dist-cms/packages/core/property-editors/uis/collection-view/config/layout-configuration/manifests.d.ts +2 -2
- package/dist-cms/packages/core/property-editors/uis/collection-view/config/layout-configuration/manifests.js +3 -3
- package/dist-cms/packages/core/property-editors/uis/collection-view/config/order-by/manifests.d.ts +2 -2
- package/dist-cms/packages/core/property-editors/uis/collection-view/config/order-by/manifests.js +3 -3
- package/dist-cms/packages/core/property-editors/uis/collection-view/manifests.d.ts +2 -2
- package/dist-cms/packages/core/property-editors/uis/collection-view/manifests.js +9 -9
- package/dist-cms/packages/core/property-editors/uis/color-picker/manifests.d.ts +2 -2
- package/dist-cms/packages/core/property-editors/uis/color-picker/manifests.js +3 -3
- package/dist-cms/packages/core/property-editors/uis/date-picker/manifests.d.ts +2 -2
- package/dist-cms/packages/core/property-editors/uis/date-picker/manifests.js +5 -15
- package/dist-cms/packages/core/property-editors/uis/dropdown/manifests.d.ts +2 -2
- package/dist-cms/packages/core/property-editors/uis/dropdown/manifests.js +6 -6
- package/dist-cms/packages/core/property-editors/uis/eye-dropper/manifests.d.ts +2 -2
- package/dist-cms/packages/core/property-editors/uis/eye-dropper/manifests.js +6 -6
- package/dist-cms/packages/core/property-editors/uis/icon-picker/manifests.d.ts +2 -2
- package/dist-cms/packages/core/property-editors/uis/icon-picker/manifests.js +3 -3
- package/dist-cms/packages/core/property-editors/uis/image-cropper/manifests.d.ts +2 -2
- package/dist-cms/packages/core/property-editors/uis/image-cropper/manifests.js +3 -3
- package/dist-cms/packages/core/property-editors/uis/image-crops-configuration/manifests.d.ts +2 -2
- package/dist-cms/packages/core/property-editors/uis/image-crops-configuration/manifests.js +3 -3
- package/dist-cms/packages/core/property-editors/uis/label/manifests.d.ts +2 -2
- package/dist-cms/packages/core/property-editors/uis/label/manifests.js +3 -3
- package/dist-cms/packages/core/property-editors/uis/manifests.d.ts +2 -2
- package/dist-cms/packages/core/property-editors/uis/manifests.js +3 -3
- package/dist-cms/packages/core/property-editors/uis/markdown-editor/manifests.d.ts +2 -2
- package/dist-cms/packages/core/property-editors/uis/markdown-editor/manifests.js +7 -7
- package/dist-cms/packages/core/property-editors/uis/media-picker/manifests.d.ts +2 -2
- package/dist-cms/packages/core/property-editors/uis/media-picker/manifests.js +3 -3
- package/dist-cms/packages/core/property-editors/uis/member-group-picker/manifests.d.ts +2 -2
- package/dist-cms/packages/core/property-editors/uis/member-group-picker/manifests.js +3 -3
- package/dist-cms/packages/core/property-editors/uis/member-picker/manifests.d.ts +2 -2
- package/dist-cms/packages/core/property-editors/uis/member-picker/manifests.js +3 -3
- package/dist-cms/packages/core/property-editors/uis/multi-url-picker/manifests.d.ts +2 -2
- package/dist-cms/packages/core/property-editors/uis/multi-url-picker/manifests.js +6 -6
- package/dist-cms/packages/core/property-editors/uis/multiple-text-string/manifests.d.ts +2 -2
- package/dist-cms/packages/core/property-editors/uis/multiple-text-string/manifests.js +3 -3
- package/dist-cms/packages/core/property-editors/uis/number/manifests.d.ts +2 -2
- package/dist-cms/packages/core/property-editors/uis/number/manifests.js +9 -9
- package/dist-cms/packages/core/property-editors/uis/number-range/manifests.d.ts +2 -2
- package/dist-cms/packages/core/property-editors/uis/number-range/manifests.js +3 -3
- package/dist-cms/packages/core/property-editors/uis/order-direction/manifests.d.ts +2 -2
- package/dist-cms/packages/core/property-editors/uis/order-direction/manifests.js +3 -3
- package/dist-cms/packages/core/property-editors/uis/overlay-size/manifests.d.ts +2 -2
- package/dist-cms/packages/core/property-editors/uis/overlay-size/manifests.js +3 -3
- package/dist-cms/packages/core/property-editors/uis/radio-button-list/manifests.d.ts +2 -2
- package/dist-cms/packages/core/property-editors/uis/radio-button-list/manifests.js +5 -5
- package/dist-cms/packages/core/property-editors/uis/slider/manifests.d.ts +2 -2
- package/dist-cms/packages/core/property-editors/uis/slider/manifests.js +8 -8
- package/dist-cms/packages/core/property-editors/uis/text-box/manifests.d.ts +2 -2
- package/dist-cms/packages/core/property-editors/uis/text-box/manifests.js +9 -9
- package/dist-cms/packages/core/property-editors/uis/textarea/manifests.d.ts +2 -2
- package/dist-cms/packages/core/property-editors/uis/textarea/manifests.js +7 -7
- package/dist-cms/packages/core/property-editors/uis/tiny-mce/config/configuration/manifests.d.ts +2 -2
- package/dist-cms/packages/core/property-editors/uis/tiny-mce/config/configuration/manifests.js +3 -3
- package/dist-cms/packages/core/property-editors/uis/tiny-mce/manifests.d.ts +2 -2
- package/dist-cms/packages/core/property-editors/uis/tiny-mce/manifests.js +7 -7
- package/dist-cms/packages/core/property-editors/uis/toggle/manifests.d.ts +2 -2
- package/dist-cms/packages/core/property-editors/uis/toggle/manifests.js +8 -8
- package/dist-cms/packages/core/property-editors/uis/tree-picker/config/start-node/manifests.d.ts +2 -2
- package/dist-cms/packages/core/property-editors/uis/tree-picker/config/start-node/manifests.js +3 -3
- package/dist-cms/packages/core/property-editors/uis/tree-picker/manifests.d.ts +2 -2
- package/dist-cms/packages/core/property-editors/uis/tree-picker/manifests.js +7 -7
- package/dist-cms/packages/core/property-editors/uis/upload-field/manifests.d.ts +2 -2
- package/dist-cms/packages/core/property-editors/uis/upload-field/manifests.js +3 -3
- package/dist-cms/packages/core/property-editors/uis/user-picker/manifests.d.ts +2 -2
- package/dist-cms/packages/core/property-editors/uis/user-picker/manifests.js +3 -3
- package/dist-cms/packages/core/property-editors/uis/value-type/manifests.d.ts +2 -2
- package/dist-cms/packages/core/property-editors/uis/value-type/manifests.js +3 -3
- package/dist-cms/packages/core/section/section-main/section-main.element.js +2 -2
- package/dist-cms/packages/core/section/section-sidebar/section-sidebar.element.js +1 -1
- package/dist-cms/packages/core/section/section-sidebar-context-menu/section-sidebar-context-menu.element.js +11 -2
- package/dist-cms/packages/core/section/section-views/section-views.element.js +15 -6
- package/dist-cms/packages/core/tree/index.d.ts +0 -1
- package/dist-cms/packages/core/tree/index.js +0 -1
- package/dist-cms/packages/core/tree/tree.element.d.ts +0 -2
- package/dist-cms/packages/core/tree/tree.element.js +0 -2
- package/dist-cms/packages/core/workspace/index.d.ts +1 -0
- package/dist-cms/packages/core/workspace/index.js +1 -0
- package/dist-cms/packages/core/workspace/workspace-editor/workspace-editor.element.js +2 -2
- package/dist-cms/packages/core/workspace/workspace-footer/index.d.ts +1 -0
- package/dist-cms/packages/core/workspace/workspace-footer/index.js +1 -0
- package/dist-cms/packages/core/workspace/workspace-property/workspace-property.context.d.ts +1 -1
- package/dist-cms/packages/core/workspace/workspace-property/workspace-property.element.d.ts +1 -1
- package/dist-cms/packages/core/workspace/workspace-property/workspace-property.element.js +1 -1
- package/dist-cms/packages/documents/dashboards/redirect-management/dashboard-redirect-management.element.js +2 -2
- package/dist-cms/packages/documents/document-types/modals/allowed-document-types/allowed-document-types-modal.element.d.ts +3 -1
- package/dist-cms/packages/documents/document-types/modals/allowed-document-types/allowed-document-types-modal.element.js +21 -7
- package/dist-cms/packages/documents/document-types/workspace/document-type-workspace-editor.element.js +1 -1
- package/dist-cms/packages/documents/document-types/workspace/manifests.js +8 -8
- package/dist-cms/packages/documents/document-types/workspace/views/design/document-type-workspace-view-edit-tab.element.js +8 -2
- package/dist-cms/packages/documents/document-types/workspace/views/design/document-type-workspace-view-edit.element.js +11 -7
- package/dist-cms/packages/documents/document-types/workspace/views/{details/document-type-workspace-view-details.element.d.ts → settings/document-type-workspace-view-settings.element.d.ts} +3 -3
- package/dist-cms/packages/documents/document-types/workspace/views/{details/document-type-workspace-view-details.element.js → settings/document-type-workspace-view-settings.element.js} +16 -11
- package/dist-cms/packages/documents/document-types/workspace/views/structure/document-type-workspace-view-structure.element.js +9 -8
- package/dist-cms/packages/documents/document-types/workspace/views/templates/document-type-workspace-view-templates.element.js +1 -1
- package/dist-cms/packages/documents/documents/entity-actions/create/create.action.d.ts +1 -0
- package/dist-cms/packages/documents/documents/entity-actions/create/create.action.js +14 -9
- package/dist-cms/packages/documents/documents/property-editors/Umbraco.ContentPicker.js +3 -2
- package/dist-cms/packages/documents/documents/property-editors/document-picker/manifests.d.ts +2 -2
- package/dist-cms/packages/documents/documents/property-editors/document-picker/manifests.js +7 -7
- package/dist-cms/packages/documents/documents/workspace/manifests.js +4 -4
- package/dist-cms/packages/documents/documents/workspace/views/edit/document-workspace-view-edit-tab.element.js +3 -2
- package/dist-cms/packages/documents/documents/workspace/views/info/document-info-workspace-view.element.js +1 -1
- package/dist-cms/packages/media/media/workspace/{media-workspace-edit.element.d.ts → media-workspace-editor.element.d.ts} +3 -3
- package/dist-cms/packages/media/media/workspace/{media-workspace-edit.element.js → media-workspace-editor.element.js} +7 -7
- package/dist-cms/packages/media/media/workspace/media-workspace.element.js +2 -2
- package/dist-cms/packages/media/media-types/workspace/{media-type-workspace-edit.element.d.ts → media-type-workspace-editor.element.d.ts} +3 -3
- package/dist-cms/packages/media/media-types/workspace/{media-type-workspace-edit.element.js → media-type-workspace-editor.element.js} +7 -7
- package/dist-cms/packages/media/media-types/workspace/media-type-workspace.element.js +2 -2
- package/dist-cms/packages/members/dashboards/welcome/dashboard-members-welcome.element.js +1 -1
- package/dist-cms/packages/members/member-groups/workspace/{member-group-workspace-edit.element.d.ts → member-group-workspace-editor.element.d.ts} +3 -3
- package/dist-cms/packages/members/member-groups/workspace/{member-group-workspace-edit.element.js → member-group-workspace-editor.element.js} +7 -7
- package/dist-cms/packages/members/member-groups/workspace/member-group-workspace.element.js +2 -2
- package/dist-cms/packages/members/member-types/workspace/{member-type-workspace-edit.element.d.ts → member-type-workspace-editor.element.d.ts} +3 -3
- package/dist-cms/packages/members/member-types/workspace/{member-type-workspace-edit.element.js → member-type-workspace-editor.element.js} +6 -6
- package/dist-cms/packages/members/member-types/workspace/member-type-workspace.element.js +2 -2
- package/dist-cms/packages/members/members/workspace/member-workspace-editor.element.d.ts +11 -0
- package/dist-cms/packages/members/members/workspace/{member-workspace-edit.element.js → member-workspace-editor.element.js} +6 -6
- package/dist-cms/packages/members/members/workspace/member-workspace.element.js +2 -2
- package/dist-cms/packages/packages/package-section/views/created/packages-created-overview.element.js +1 -1
- package/dist-cms/packages/packages/package-section/views/installed/installed-packages-section-view.element.js +1 -1
- package/dist-cms/packages/search/examine-management-dashboard/views/section-view-examine-overview.js +1 -1
- package/dist-cms/packages/settings/dashboards/health-check/views/health-check-overview.element.js +1 -1
- package/dist-cms/packages/settings/dashboards/models-builder/dashboard-models-builder.element.js +1 -1
- package/dist-cms/packages/settings/dashboards/performance-profiling/dashboard-performance-profiling.element.js +1 -1
- package/dist-cms/packages/settings/dashboards/published-status/dashboard-published-status.element.js +1 -1
- package/dist-cms/packages/settings/dashboards/settings-welcome/dashboard-settings-welcome.element.js +1 -1
- package/dist-cms/packages/settings/dashboards/telemetry/dashboard-telemetry.element.js +1 -1
- package/dist-cms/packages/settings/data-types/entities.d.ts +3 -0
- package/dist-cms/packages/settings/data-types/entities.js +3 -0
- package/dist-cms/packages/settings/data-types/entity-actions/copy/manifests.js +1 -1
- package/dist-cms/packages/settings/data-types/entity-actions/create/manifests.js +1 -1
- package/dist-cms/packages/settings/data-types/entity-actions/manifests.js +1 -1
- package/dist-cms/packages/settings/data-types/entity-actions/move/manifests.js +1 -1
- package/dist-cms/packages/settings/data-types/index.d.ts +1 -3
- package/dist-cms/packages/settings/data-types/index.js +1 -3
- package/dist-cms/packages/settings/data-types/modals/data-type-picker-flow/data-type-picker-flow-modal.element.js +2 -2
- package/dist-cms/packages/settings/data-types/modals/property-editor-ui-picker/property-editor-ui-picker-modal.element.js +3 -3
- package/dist-cms/packages/settings/data-types/repository/data-type.repository.d.ts +1 -1
- package/dist-cms/packages/settings/data-types/repository/data-type.repository.js +1 -1
- package/dist-cms/packages/settings/data-types/repository/data-type.store.d.ts +2 -2
- package/dist-cms/packages/settings/data-types/workspace/{data-type-workspace-edit.element.d.ts → data-type-workspace-editor.element.d.ts} +4 -4
- package/dist-cms/packages/settings/data-types/workspace/{data-type-workspace-edit.element.js → data-type-workspace-editor.element.js} +9 -9
- package/dist-cms/packages/settings/data-types/workspace/data-type-workspace.element.d.ts +1 -1
- package/dist-cms/packages/settings/data-types/workspace/data-type-workspace.element.js +2 -2
- package/dist-cms/packages/settings/data-types/workspace/views/details/data-type-details-workspace-view.element.d.ts +5 -4
- package/dist-cms/packages/settings/data-types/workspace/views/details/data-type-details-workspace-view.element.js +41 -22
- package/dist-cms/packages/settings/data-types/workspace/views/info/workspace-view-data-type-info.element.js +1 -1
- package/dist-cms/packages/settings/languages/app-language-select/app-language-select.element.js +6 -3
- package/dist-cms/packages/settings/languages/workspace/language/{language-workspace-edit.element.d.ts → language-workspace-editor.element.d.ts} +3 -3
- package/dist-cms/packages/settings/languages/workspace/language/{language-workspace-edit.element.js → language-workspace-editor.element.js} +10 -10
- package/dist-cms/packages/settings/languages/workspace/language/language-workspace.element.d.ts +1 -1
- package/dist-cms/packages/settings/languages/workspace/language/language-workspace.element.js +2 -2
- package/dist-cms/packages/settings/logviewer/components/index.d.ts +3 -1
- package/dist-cms/packages/settings/logviewer/components/index.js +3 -1
- package/dist-cms/packages/settings/logviewer/{workspace/logviewer-root/components → components}/log-viewer-date-range-selector.element.d.ts +1 -1
- package/dist-cms/packages/settings/logviewer/{workspace/logviewer-root/components → components}/log-viewer-date-range-selector.element.js +5 -5
- package/dist-cms/packages/{members/members/workspace/member-workspace-edit.element.d.ts → settings/logviewer/components/log-viewer-too-many-logs-warning.element.d.ts} +2 -3
- package/dist-cms/packages/settings/logviewer/{workspace/logviewer-root/components/log-viewer-to-many-logs-warning.element.js → components/log-viewer-too-many-logs-warning.element.js} +6 -6
- package/dist-cms/packages/settings/logviewer/workspace/logviewer-root/logviewer-root-workspace.element.d.ts +1 -1
- package/dist-cms/packages/settings/logviewer/workspace/logviewer-root/logviewer-root-workspace.element.js +1 -1
- package/dist-cms/packages/settings/logviewer/workspace/views/search/components/index.d.ts +6 -5
- package/dist-cms/packages/settings/logviewer/workspace/views/search/components/index.js +6 -5
- package/dist-cms/packages/settings/logviewer/workspace/{logviewer-root → views/search}/components/log-viewer-level-tag.element.d.ts +3 -3
- package/dist-cms/packages/settings/logviewer/workspace/{logviewer-root → views/search}/components/log-viewer-level-tag.element.js +2 -2
- package/dist-cms/packages/settings/relation-types/workspace/{relation-type-workspace-edit.element.d.ts → relation-type-workspace-editor.element.d.ts} +4 -4
- package/dist-cms/packages/settings/relation-types/workspace/{relation-type-workspace-edit.element.js → relation-type-workspace-editor.element.js} +8 -8
- package/dist-cms/packages/settings/relation-types/workspace/relation-type-workspace.element.d.ts +1 -1
- package/dist-cms/packages/settings/relation-types/workspace/relation-type-workspace.element.js +2 -2
- package/dist-cms/packages/settings/themes/index.d.ts +1 -0
- package/dist-cms/packages/settings/themes/index.js +1 -0
- package/dist-cms/packages/tags/property-editors/tags/config/storage-type/manifests.d.ts +2 -2
- package/dist-cms/packages/tags/property-editors/tags/config/storage-type/manifests.js +3 -3
- package/dist-cms/packages/tags/property-editors/tags/manifests.d.ts +2 -2
- package/dist-cms/packages/tags/property-editors/tags/manifests.js +3 -3
- package/dist-cms/packages/{core/components → templating}/code-editor/code-editor.controller.d.ts +1 -1
- package/dist-cms/packages/{core/components → templating}/code-editor/code-editor.controller.js +3 -3
- package/dist-cms/packages/{core/components → templating}/code-editor/code-editor.element.d.ts +5 -4
- package/dist-cms/packages/{core/components → templating}/code-editor/code-editor.element.js +6 -6
- package/dist-cms/packages/{core/components → templating}/code-editor/code-editor.model.d.ts +5 -5
- package/dist-cms/packages/templating/code-editor/index.d.ts +3 -0
- package/dist-cms/packages/templating/code-editor/index.js +3 -0
- package/dist-cms/packages/{core/components → templating}/code-editor/themes/code-editor.dark.theme.d.ts +1 -1
- package/dist-cms/packages/{core/components → templating}/code-editor/themes/code-editor.hc-dark.theme.d.ts +1 -1
- package/dist-cms/packages/{core/components → templating}/code-editor/themes/code-editor.hc-light.theme.d.ts +1 -1
- package/dist-cms/packages/{core/components → templating}/code-editor/themes/code-editor.light.theme.d.ts +1 -1
- package/dist-cms/packages/{core/components → templating}/code-editor/themes/index.d.ts +1 -2
- package/dist-cms/packages/{core/components → templating}/code-editor/themes/index.js +0 -1
- package/dist-cms/packages/templating/components/insert-menu/templating-insert-menu.element.js +29 -17
- package/dist-cms/packages/templating/index.d.ts +1 -1
- package/dist-cms/packages/templating/index.js +1 -1
- package/dist-cms/packages/templating/modals/insert-choose-type-sidebar.element.js +26 -24
- package/dist-cms/packages/templating/modals/insert-section-modal/insert-section-input.element.d.ts +3 -1
- package/dist-cms/packages/templating/modals/insert-section-modal/insert-section-input.element.js +9 -0
- package/dist-cms/packages/templating/modals/insert-section-modal/insert-section-modal.element.d.ts +4 -3
- package/dist-cms/packages/templating/modals/insert-section-modal/insert-section-modal.element.js +23 -8
- package/dist-cms/packages/templating/modals/insert-value-sidebar.element.js +1 -0
- package/dist-cms/packages/templating/modals/partial-view-picker-modal.element.js +1 -0
- package/dist-cms/packages/templating/stylesheets/menu-item/manifests.js +1 -1
- package/dist-cms/packages/templating/templates/components/alias-input/alias-input.d.ts +14 -0
- package/dist-cms/packages/templating/templates/components/alias-input/alias-input.js +82 -0
- package/dist-cms/packages/templating/templates/components/index.d.ts +1 -0
- package/dist-cms/packages/templating/templates/components/index.js +1 -0
- package/dist-cms/packages/templating/templates/entities.d.ts +3 -0
- package/dist-cms/packages/templating/templates/entities.js +3 -0
- package/dist-cms/packages/templating/templates/entity-actions/manifests.js +3 -2
- package/dist-cms/packages/templating/templates/index.d.ts +2 -0
- package/dist-cms/packages/templating/templates/index.js +2 -0
- package/dist-cms/packages/templating/templates/repository/sources/template.detail.server.data.d.ts +11 -7
- package/dist-cms/packages/templating/templates/repository/sources/template.detail.server.data.js +19 -25
- package/dist-cms/packages/templating/templates/repository/template.repository.d.ts +18 -12
- package/dist-cms/packages/templating/templates/repository/template.repository.js +21 -13
- package/dist-cms/packages/templating/templates/repository/template.store.d.ts +1 -0
- package/dist-cms/packages/templating/templates/repository/template.store.js +3 -0
- package/dist-cms/packages/templating/templates/tree/manifests.js +2 -1
- package/dist-cms/packages/templating/templates/workspace/{template-workspace-edit.element.d.ts → template-workspace-editor.element.d.ts} +7 -3
- package/dist-cms/packages/templating/templates/workspace/template-workspace-editor.element.js +279 -0
- package/dist-cms/packages/templating/templates/workspace/template-workspace.context.d.ts +9 -3
- package/dist-cms/packages/templating/templates/workspace/template-workspace.context.js +85 -5
- package/dist-cms/packages/templating/templates/workspace/template-workspace.element.d.ts +1 -4
- package/dist-cms/packages/templating/templates/workspace/template-workspace.element.js +3 -38
- package/dist-cms/packages/translation/dashboards/dictionary/dashboard-translation-dictionary.element.js +2 -4
- package/dist-cms/packages/translation/dictionary/workspace/{dictionary-workspace-edit.element.d.ts → dictionary-workspace-editor.element.d.ts} +3 -3
- package/dist-cms/packages/translation/dictionary/workspace/{dictionary-workspace-edit.element.js → dictionary-workspace-editor.element.js} +7 -7
- package/dist-cms/packages/translation/dictionary/workspace/dictionary-workspace.element.js +2 -2
- package/dist-cms/packages/translation/dictionary/workspace/manifests.js +1 -1
- package/dist-cms/packages/translation/dictionary/workspace/views/{edit/workspace-view-dictionary-edit.element.d.ts → editor/workspace-view-dictionary-editor.element.d.ts} +3 -3
- package/dist-cms/packages/translation/dictionary/workspace/views/{edit/workspace-view-dictionary-edit.element.js → editor/workspace-view-dictionary-editor.element.js} +8 -8
- package/dist-cms/packages/translation/index.js +1 -2
- package/dist-cms/packages/umbraco-news/umbraco-news-dashboard.element.js +1 -1
- package/dist-cms/packages/users/current-user/index.d.ts +3 -0
- package/dist-cms/packages/users/current-user/index.js +4 -0
- package/dist-cms/packages/users/user-groups/collection/user-group-collection.element.js +1 -10
- package/dist-cms/packages/users/user-groups/workspace/{user-group-workspace-edit.element.d.ts → user-group-workspace-editor.element.d.ts} +3 -3
- package/dist-cms/packages/users/user-groups/workspace/{user-group-workspace-edit.element.js → user-group-workspace-editor.element.js} +8 -8
- package/dist-cms/packages/users/user-groups/workspace/user-group-workspace.element.js +2 -2
- package/dist-cms/packages/users/users/index.d.ts +1 -0
- package/dist-cms/packages/users/users/index.js +1 -0
- package/dist-cms/packages/users/users/workspace/{user-workspace-edit.element.d.ts → user-workspace-editor.element.d.ts} +3 -3
- package/dist-cms/packages/users/users/workspace/{user-workspace-edit.element.js → user-workspace-editor.element.js} +9 -9
- package/dist-cms/packages/users/users/workspace/user-workspace.element.js +2 -2
- package/dist-cms/shared/repository/detail-repository.interface.d.ts +2 -2
- package/dist-cms/shared/router/router-slot.element.js +1 -2
- package/dist-cms/tsconfig.tsbuildinfo +1 -1
- package/dist-cms/umbraco-package-schema.json +58 -40
- package/dist-cms/vscode-html-custom-data.json +107 -111
- package/package.json +21 -14
- package/dist-cms/packages/core/components/code-editor/index.d.ts +0 -6
- package/dist-cms/packages/core/components/code-editor/index.js +0 -6
- package/dist-cms/packages/core/components/code-editor/languageWorkers.d.ts +0 -1
- package/dist-cms/packages/core/components/code-editor/languageWorkers.js +0 -31
- package/dist-cms/packages/core/components/code-editor/styles.d.ts +0 -2
- package/dist-cms/packages/core/components/code-editor/styles.js +0 -12
- package/dist-cms/packages/core/tree/context-menu/index.d.ts +0 -2
- package/dist-cms/packages/core/tree/context-menu/index.js +0 -2
- package/dist-cms/packages/core/tree/context-menu/tree-context-menu-page.service.d.ts +0 -23
- package/dist-cms/packages/core/tree/context-menu/tree-context-menu-page.service.js +0 -69
- package/dist-cms/packages/core/tree/context-menu/tree-context-menu.service.d.ts +0 -19
- package/dist-cms/packages/core/tree/context-menu/tree-context-menu.service.js +0 -100
- package/dist-cms/packages/settings/logviewer/workspace/logviewer-root/components/index.d.ts +0 -3
- package/dist-cms/packages/settings/logviewer/workspace/logviewer-root/components/index.js +0 -3
- package/dist-cms/packages/settings/logviewer/workspace/logviewer-root/components/log-viewer-to-many-logs-warning.element.d.ts +0 -10
- package/dist-cms/packages/tags/property-editors/Umbraco.Tags.d.ts +0 -2
- package/dist-cms/packages/tags/property-editors/Umbraco.Tags.js +0 -17
- package/dist-cms/packages/templating/templates/workspace/template-workspace-edit.element.js +0 -164
- package/dist-cms/packages/translation/modals/dictionary-item-picker/dictionary-item-picker-modal.element.d.ts +0 -17
- package/dist-cms/packages/translation/modals/dictionary-item-picker/dictionary-item-picker-modal.element.js +0 -85
- package/dist-cms/packages/translation/modals/manifests.d.ts +0 -2
- package/dist-cms/packages/translation/modals/manifests.js +0 -10
- /package/dist-cms/packages/{core/components → templating}/code-editor/code-editor.model.js +0 -0
- /package/dist-cms/packages/{core/components → templating}/code-editor/themes/code-editor.dark.theme.js +0 -0
- /package/dist-cms/packages/{core/components → templating}/code-editor/themes/code-editor.hc-dark.theme.js +0 -0
- /package/dist-cms/packages/{core/components → templating}/code-editor/themes/code-editor.hc-light.theme.js +0 -0
- /package/dist-cms/packages/{core/components → templating}/code-editor/themes/code-editor.light.theme.js +0 -0
|
@@ -1,4500 +1 @@
|
|
|
1
|
-
class ApiError extends Error {
|
|
2
|
-
constructor(request, response, message) {
|
|
3
|
-
super(message);
|
|
4
|
-
this.name = "ApiError";
|
|
5
|
-
this.url = response.url;
|
|
6
|
-
this.status = response.status;
|
|
7
|
-
this.statusText = response.statusText;
|
|
8
|
-
this.body = response.body;
|
|
9
|
-
this.request = request;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
var __accessCheck = (obj, member, msg) => {
|
|
14
|
-
if (!member.has(obj))
|
|
15
|
-
throw TypeError("Cannot " + msg);
|
|
16
|
-
};
|
|
17
|
-
var __privateGet = (obj, member, getter) => {
|
|
18
|
-
__accessCheck(obj, member, "read from private field");
|
|
19
|
-
return getter ? getter.call(obj) : member.get(obj);
|
|
20
|
-
};
|
|
21
|
-
var __privateAdd = (obj, member, value) => {
|
|
22
|
-
if (member.has(obj))
|
|
23
|
-
throw TypeError("Cannot add the same private member more than once");
|
|
24
|
-
member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
25
|
-
};
|
|
26
|
-
var __privateSet = (obj, member, value, setter) => {
|
|
27
|
-
__accessCheck(obj, member, "write to private field");
|
|
28
|
-
setter ? setter.call(obj, value) : member.set(obj, value);
|
|
29
|
-
return value;
|
|
30
|
-
};
|
|
31
|
-
var _isResolved, _isRejected, _isCancelled, _cancelHandlers, _promise, _resolve, _reject;
|
|
32
|
-
class CancelError extends Error {
|
|
33
|
-
constructor(message) {
|
|
34
|
-
super(message);
|
|
35
|
-
this.name = "CancelError";
|
|
36
|
-
}
|
|
37
|
-
get isCancelled() {
|
|
38
|
-
return true;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
class CancelablePromise {
|
|
42
|
-
constructor(executor) {
|
|
43
|
-
__privateAdd(this, _isResolved, void 0);
|
|
44
|
-
__privateAdd(this, _isRejected, void 0);
|
|
45
|
-
__privateAdd(this, _isCancelled, void 0);
|
|
46
|
-
__privateAdd(this, _cancelHandlers, void 0);
|
|
47
|
-
__privateAdd(this, _promise, void 0);
|
|
48
|
-
__privateAdd(this, _resolve, void 0);
|
|
49
|
-
__privateAdd(this, _reject, void 0);
|
|
50
|
-
__privateSet(this, _isResolved, false);
|
|
51
|
-
__privateSet(this, _isRejected, false);
|
|
52
|
-
__privateSet(this, _isCancelled, false);
|
|
53
|
-
__privateSet(this, _cancelHandlers, []);
|
|
54
|
-
__privateSet(this, _promise, new Promise((resolve, reject) => {
|
|
55
|
-
__privateSet(this, _resolve, resolve);
|
|
56
|
-
__privateSet(this, _reject, reject);
|
|
57
|
-
const onResolve = (value) => {
|
|
58
|
-
var _a;
|
|
59
|
-
if (__privateGet(this, _isResolved) || __privateGet(this, _isRejected) || __privateGet(this, _isCancelled)) {
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
__privateSet(this, _isResolved, true);
|
|
63
|
-
(_a = __privateGet(this, _resolve)) == null ? void 0 : _a.call(this, value);
|
|
64
|
-
};
|
|
65
|
-
const onReject = (reason) => {
|
|
66
|
-
var _a;
|
|
67
|
-
if (__privateGet(this, _isResolved) || __privateGet(this, _isRejected) || __privateGet(this, _isCancelled)) {
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
__privateSet(this, _isRejected, true);
|
|
71
|
-
(_a = __privateGet(this, _reject)) == null ? void 0 : _a.call(this, reason);
|
|
72
|
-
};
|
|
73
|
-
const onCancel = (cancelHandler) => {
|
|
74
|
-
if (__privateGet(this, _isResolved) || __privateGet(this, _isRejected) || __privateGet(this, _isCancelled)) {
|
|
75
|
-
return;
|
|
76
|
-
}
|
|
77
|
-
__privateGet(this, _cancelHandlers).push(cancelHandler);
|
|
78
|
-
};
|
|
79
|
-
Object.defineProperty(onCancel, "isResolved", {
|
|
80
|
-
get: () => __privateGet(this, _isResolved)
|
|
81
|
-
});
|
|
82
|
-
Object.defineProperty(onCancel, "isRejected", {
|
|
83
|
-
get: () => __privateGet(this, _isRejected)
|
|
84
|
-
});
|
|
85
|
-
Object.defineProperty(onCancel, "isCancelled", {
|
|
86
|
-
get: () => __privateGet(this, _isCancelled)
|
|
87
|
-
});
|
|
88
|
-
return executor(onResolve, onReject, onCancel);
|
|
89
|
-
}));
|
|
90
|
-
}
|
|
91
|
-
get [Symbol.toStringTag]() {
|
|
92
|
-
return "Cancellable Promise";
|
|
93
|
-
}
|
|
94
|
-
then(onFulfilled, onRejected) {
|
|
95
|
-
return __privateGet(this, _promise).then(onFulfilled, onRejected);
|
|
96
|
-
}
|
|
97
|
-
catch(onRejected) {
|
|
98
|
-
return __privateGet(this, _promise).catch(onRejected);
|
|
99
|
-
}
|
|
100
|
-
finally(onFinally) {
|
|
101
|
-
return __privateGet(this, _promise).finally(onFinally);
|
|
102
|
-
}
|
|
103
|
-
cancel() {
|
|
104
|
-
var _a;
|
|
105
|
-
if (__privateGet(this, _isResolved) || __privateGet(this, _isRejected) || __privateGet(this, _isCancelled)) {
|
|
106
|
-
return;
|
|
107
|
-
}
|
|
108
|
-
__privateSet(this, _isCancelled, true);
|
|
109
|
-
if (__privateGet(this, _cancelHandlers).length) {
|
|
110
|
-
try {
|
|
111
|
-
for (const cancelHandler of __privateGet(this, _cancelHandlers)) {
|
|
112
|
-
cancelHandler();
|
|
113
|
-
}
|
|
114
|
-
} catch (error) {
|
|
115
|
-
console.warn("Cancellation threw an error", error);
|
|
116
|
-
return;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
__privateGet(this, _cancelHandlers).length = 0;
|
|
120
|
-
(_a = __privateGet(this, _reject)) == null ? void 0 : _a.call(this, new CancelError("Request aborted"));
|
|
121
|
-
}
|
|
122
|
-
get isCancelled() {
|
|
123
|
-
return __privateGet(this, _isCancelled);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
_isResolved = new WeakMap();
|
|
127
|
-
_isRejected = new WeakMap();
|
|
128
|
-
_isCancelled = new WeakMap();
|
|
129
|
-
_cancelHandlers = new WeakMap();
|
|
130
|
-
_promise = new WeakMap();
|
|
131
|
-
_resolve = new WeakMap();
|
|
132
|
-
_reject = new WeakMap();
|
|
133
|
-
|
|
134
|
-
const OpenAPI = {
|
|
135
|
-
BASE: "",
|
|
136
|
-
VERSION: "Latest",
|
|
137
|
-
WITH_CREDENTIALS: false,
|
|
138
|
-
CREDENTIALS: "include",
|
|
139
|
-
TOKEN: void 0,
|
|
140
|
-
USERNAME: void 0,
|
|
141
|
-
PASSWORD: void 0,
|
|
142
|
-
HEADERS: void 0,
|
|
143
|
-
ENCODE_PATH: void 0
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
var AuditTypeModel = /* @__PURE__ */ ((AuditTypeModel2) => {
|
|
147
|
-
AuditTypeModel2["NEW"] = "New";
|
|
148
|
-
AuditTypeModel2["SAVE"] = "Save";
|
|
149
|
-
AuditTypeModel2["SAVE_VARIANT"] = "SaveVariant";
|
|
150
|
-
AuditTypeModel2["OPEN"] = "Open";
|
|
151
|
-
AuditTypeModel2["DELETE"] = "Delete";
|
|
152
|
-
AuditTypeModel2["PUBLISH"] = "Publish";
|
|
153
|
-
AuditTypeModel2["PUBLISH_VARIANT"] = "PublishVariant";
|
|
154
|
-
AuditTypeModel2["SEND_TO_PUBLISH"] = "SendToPublish";
|
|
155
|
-
AuditTypeModel2["SEND_TO_PUBLISH_VARIANT"] = "SendToPublishVariant";
|
|
156
|
-
AuditTypeModel2["UNPUBLISH"] = "Unpublish";
|
|
157
|
-
AuditTypeModel2["UNPUBLISH_VARIANT"] = "UnpublishVariant";
|
|
158
|
-
AuditTypeModel2["MOVE"] = "Move";
|
|
159
|
-
AuditTypeModel2["COPY"] = "Copy";
|
|
160
|
-
AuditTypeModel2["ASSIGN_DOMAIN"] = "AssignDomain";
|
|
161
|
-
AuditTypeModel2["PUBLIC_ACCESS"] = "PublicAccess";
|
|
162
|
-
AuditTypeModel2["SORT"] = "Sort";
|
|
163
|
-
AuditTypeModel2["NOTIFY"] = "Notify";
|
|
164
|
-
AuditTypeModel2["SYSTEM"] = "System";
|
|
165
|
-
AuditTypeModel2["ROLL_BACK"] = "RollBack";
|
|
166
|
-
AuditTypeModel2["PACKAGER_INSTALL"] = "PackagerInstall";
|
|
167
|
-
AuditTypeModel2["PACKAGER_UNINSTALL"] = "PackagerUninstall";
|
|
168
|
-
AuditTypeModel2["CUSTOM"] = "Custom";
|
|
169
|
-
AuditTypeModel2["CONTENT_VERSION_PREVENT_CLEANUP"] = "ContentVersionPreventCleanup";
|
|
170
|
-
AuditTypeModel2["CONTENT_VERSION_ENABLE_CLEANUP"] = "ContentVersionEnableCleanup";
|
|
171
|
-
return AuditTypeModel2;
|
|
172
|
-
})(AuditTypeModel || {});
|
|
173
|
-
|
|
174
|
-
var ContentStateModel = /* @__PURE__ */ ((ContentStateModel2) => {
|
|
175
|
-
ContentStateModel2["NOT_CREATED"] = "NotCreated";
|
|
176
|
-
ContentStateModel2["DRAFT"] = "Draft";
|
|
177
|
-
ContentStateModel2["PUBLISHED"] = "Published";
|
|
178
|
-
ContentStateModel2["PUBLISHED_PENDING_CHANGES"] = "PublishedPendingChanges";
|
|
179
|
-
return ContentStateModel2;
|
|
180
|
-
})(ContentStateModel || {});
|
|
181
|
-
|
|
182
|
-
var ContentTypeCompositionTypeModel = /* @__PURE__ */ ((ContentTypeCompositionTypeModel2) => {
|
|
183
|
-
ContentTypeCompositionTypeModel2["COMPOSITION"] = "Composition";
|
|
184
|
-
ContentTypeCompositionTypeModel2["INHERITANCE"] = "Inheritance";
|
|
185
|
-
return ContentTypeCompositionTypeModel2;
|
|
186
|
-
})(ContentTypeCompositionTypeModel || {});
|
|
187
|
-
|
|
188
|
-
var DirectionModel = /* @__PURE__ */ ((DirectionModel2) => {
|
|
189
|
-
DirectionModel2["ASCENDING"] = "Ascending";
|
|
190
|
-
DirectionModel2["DESCENDING"] = "Descending";
|
|
191
|
-
return DirectionModel2;
|
|
192
|
-
})(DirectionModel || {});
|
|
193
|
-
|
|
194
|
-
var HealthStatusModel = /* @__PURE__ */ ((HealthStatusModel2) => {
|
|
195
|
-
HealthStatusModel2["HEALTHY"] = "Healthy";
|
|
196
|
-
HealthStatusModel2["UNHEALTHY"] = "Unhealthy";
|
|
197
|
-
HealthStatusModel2["REBUILDING"] = "Rebuilding";
|
|
198
|
-
return HealthStatusModel2;
|
|
199
|
-
})(HealthStatusModel || {});
|
|
200
|
-
|
|
201
|
-
var LogLevelModel = /* @__PURE__ */ ((LogLevelModel2) => {
|
|
202
|
-
LogLevelModel2["VERBOSE"] = "Verbose";
|
|
203
|
-
LogLevelModel2["DEBUG"] = "Debug";
|
|
204
|
-
LogLevelModel2["INFORMATION"] = "Information";
|
|
205
|
-
LogLevelModel2["WARNING"] = "Warning";
|
|
206
|
-
LogLevelModel2["ERROR"] = "Error";
|
|
207
|
-
LogLevelModel2["FATAL"] = "Fatal";
|
|
208
|
-
return LogLevelModel2;
|
|
209
|
-
})(LogLevelModel || {});
|
|
210
|
-
|
|
211
|
-
var ModelsModeModel = /* @__PURE__ */ ((ModelsModeModel2) => {
|
|
212
|
-
ModelsModeModel2["NOTHING"] = "Nothing";
|
|
213
|
-
ModelsModeModel2["IN_MEMORY_AUTO"] = "InMemoryAuto";
|
|
214
|
-
ModelsModeModel2["SOURCE_CODE_MANUAL"] = "SourceCodeManual";
|
|
215
|
-
ModelsModeModel2["SOURCE_CODE_AUTO"] = "SourceCodeAuto";
|
|
216
|
-
return ModelsModeModel2;
|
|
217
|
-
})(ModelsModeModel || {});
|
|
218
|
-
|
|
219
|
-
var OperatorModel = /* @__PURE__ */ ((OperatorModel2) => {
|
|
220
|
-
OperatorModel2["EQUALS"] = "Equals";
|
|
221
|
-
OperatorModel2["NOT_EQUALS"] = "NotEquals";
|
|
222
|
-
OperatorModel2["CONTAINS"] = "Contains";
|
|
223
|
-
OperatorModel2["NOT_CONTAINS"] = "NotContains";
|
|
224
|
-
OperatorModel2["LESS_THAN"] = "LessThan";
|
|
225
|
-
OperatorModel2["LESS_THAN_EQUAL_TO"] = "LessThanEqualTo";
|
|
226
|
-
OperatorModel2["GREATER_THAN"] = "GreaterThan";
|
|
227
|
-
OperatorModel2["GREATER_THAN_EQUAL_TO"] = "GreaterThanEqualTo";
|
|
228
|
-
return OperatorModel2;
|
|
229
|
-
})(OperatorModel || {});
|
|
230
|
-
|
|
231
|
-
var OutOfDateTypeModel = /* @__PURE__ */ ((OutOfDateTypeModel2) => {
|
|
232
|
-
OutOfDateTypeModel2["OUT_OF_DATE"] = "OutOfDate";
|
|
233
|
-
OutOfDateTypeModel2["CURRENT"] = "Current";
|
|
234
|
-
OutOfDateTypeModel2["UNKNOWN"] = "Unknown";
|
|
235
|
-
return OutOfDateTypeModel2;
|
|
236
|
-
})(OutOfDateTypeModel || {});
|
|
237
|
-
|
|
238
|
-
var RedirectStatusModel = /* @__PURE__ */ ((RedirectStatusModel2) => {
|
|
239
|
-
RedirectStatusModel2["ENABLED"] = "Enabled";
|
|
240
|
-
RedirectStatusModel2["DISABLED"] = "Disabled";
|
|
241
|
-
return RedirectStatusModel2;
|
|
242
|
-
})(RedirectStatusModel || {});
|
|
243
|
-
|
|
244
|
-
var RuntimeLevelModel = /* @__PURE__ */ ((RuntimeLevelModel2) => {
|
|
245
|
-
RuntimeLevelModel2["UNKNOWN"] = "Unknown";
|
|
246
|
-
RuntimeLevelModel2["BOOT"] = "Boot";
|
|
247
|
-
RuntimeLevelModel2["INSTALL"] = "Install";
|
|
248
|
-
RuntimeLevelModel2["UPGRADE"] = "Upgrade";
|
|
249
|
-
RuntimeLevelModel2["RUN"] = "Run";
|
|
250
|
-
RuntimeLevelModel2["BOOT_FAILED"] = "BootFailed";
|
|
251
|
-
return RuntimeLevelModel2;
|
|
252
|
-
})(RuntimeLevelModel || {});
|
|
253
|
-
|
|
254
|
-
var StatusResultTypeModel = /* @__PURE__ */ ((StatusResultTypeModel2) => {
|
|
255
|
-
StatusResultTypeModel2["SUCCESS"] = "Success";
|
|
256
|
-
StatusResultTypeModel2["WARNING"] = "Warning";
|
|
257
|
-
StatusResultTypeModel2["ERROR"] = "Error";
|
|
258
|
-
StatusResultTypeModel2["INFO"] = "Info";
|
|
259
|
-
return StatusResultTypeModel2;
|
|
260
|
-
})(StatusResultTypeModel || {});
|
|
261
|
-
|
|
262
|
-
var TelemetryLevelModel = /* @__PURE__ */ ((TelemetryLevelModel2) => {
|
|
263
|
-
TelemetryLevelModel2["MINIMAL"] = "Minimal";
|
|
264
|
-
TelemetryLevelModel2["BASIC"] = "Basic";
|
|
265
|
-
TelemetryLevelModel2["DETAILED"] = "Detailed";
|
|
266
|
-
return TelemetryLevelModel2;
|
|
267
|
-
})(TelemetryLevelModel || {});
|
|
268
|
-
|
|
269
|
-
var TemplateQueryPropertyTypeModel = /* @__PURE__ */ ((TemplateQueryPropertyTypeModel2) => {
|
|
270
|
-
TemplateQueryPropertyTypeModel2["STRING"] = "String";
|
|
271
|
-
TemplateQueryPropertyTypeModel2["DATE_TIME"] = "DateTime";
|
|
272
|
-
TemplateQueryPropertyTypeModel2["INTEGER"] = "Integer";
|
|
273
|
-
return TemplateQueryPropertyTypeModel2;
|
|
274
|
-
})(TemplateQueryPropertyTypeModel || {});
|
|
275
|
-
|
|
276
|
-
var UserOrderModel = /* @__PURE__ */ ((UserOrderModel2) => {
|
|
277
|
-
UserOrderModel2["USER_NAME"] = "UserName";
|
|
278
|
-
UserOrderModel2["LANGUAGE"] = "Language";
|
|
279
|
-
UserOrderModel2["NAME"] = "Name";
|
|
280
|
-
UserOrderModel2["EMAIL"] = "Email";
|
|
281
|
-
UserOrderModel2["ID"] = "Id";
|
|
282
|
-
UserOrderModel2["CREATE_DATE"] = "CreateDate";
|
|
283
|
-
UserOrderModel2["UPDATE_DATE"] = "UpdateDate";
|
|
284
|
-
UserOrderModel2["IS_APPROVED"] = "IsApproved";
|
|
285
|
-
UserOrderModel2["IS_LOCKED_OUT"] = "IsLockedOut";
|
|
286
|
-
UserOrderModel2["LAST_LOGIN_DATE"] = "LastLoginDate";
|
|
287
|
-
return UserOrderModel2;
|
|
288
|
-
})(UserOrderModel || {});
|
|
289
|
-
|
|
290
|
-
var UserStateModel = /* @__PURE__ */ ((UserStateModel2) => {
|
|
291
|
-
UserStateModel2["ACTIVE"] = "Active";
|
|
292
|
-
UserStateModel2["DISABLED"] = "Disabled";
|
|
293
|
-
UserStateModel2["LOCKED_OUT"] = "LockedOut";
|
|
294
|
-
UserStateModel2["INVITED"] = "Invited";
|
|
295
|
-
UserStateModel2["INACTIVE"] = "Inactive";
|
|
296
|
-
UserStateModel2["ALL"] = "All";
|
|
297
|
-
return UserStateModel2;
|
|
298
|
-
})(UserStateModel || {});
|
|
299
|
-
|
|
300
|
-
var __defProp = Object.defineProperty;
|
|
301
|
-
var __defProps = Object.defineProperties;
|
|
302
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
303
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
304
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
305
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
306
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
307
|
-
var __spreadValues = (a, b) => {
|
|
308
|
-
for (var prop in b || (b = {}))
|
|
309
|
-
if (__hasOwnProp.call(b, prop))
|
|
310
|
-
__defNormalProp(a, prop, b[prop]);
|
|
311
|
-
if (__getOwnPropSymbols)
|
|
312
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
313
|
-
if (__propIsEnum.call(b, prop))
|
|
314
|
-
__defNormalProp(a, prop, b[prop]);
|
|
315
|
-
}
|
|
316
|
-
return a;
|
|
317
|
-
};
|
|
318
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
319
|
-
const isDefined = (value) => {
|
|
320
|
-
return value !== void 0 && value !== null;
|
|
321
|
-
};
|
|
322
|
-
const isString = (value) => {
|
|
323
|
-
return typeof value === "string";
|
|
324
|
-
};
|
|
325
|
-
const isStringWithValue = (value) => {
|
|
326
|
-
return isString(value) && value !== "";
|
|
327
|
-
};
|
|
328
|
-
const isBlob = (value) => {
|
|
329
|
-
return typeof value === "object" && typeof value.type === "string" && typeof value.stream === "function" && typeof value.arrayBuffer === "function" && typeof value.constructor === "function" && typeof value.constructor.name === "string" && /^(Blob|File)$/.test(value.constructor.name) && /^(Blob|File)$/.test(value[Symbol.toStringTag]);
|
|
330
|
-
};
|
|
331
|
-
const isFormData = (value) => {
|
|
332
|
-
return value instanceof FormData;
|
|
333
|
-
};
|
|
334
|
-
const base64 = (str) => {
|
|
335
|
-
try {
|
|
336
|
-
return btoa(str);
|
|
337
|
-
} catch (err) {
|
|
338
|
-
return Buffer.from(str).toString("base64");
|
|
339
|
-
}
|
|
340
|
-
};
|
|
341
|
-
const getQueryString = (params) => {
|
|
342
|
-
const qs = [];
|
|
343
|
-
const append = (key, value) => {
|
|
344
|
-
qs.push(`${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`);
|
|
345
|
-
};
|
|
346
|
-
const process = (key, value) => {
|
|
347
|
-
if (isDefined(value)) {
|
|
348
|
-
if (Array.isArray(value)) {
|
|
349
|
-
value.forEach((v) => {
|
|
350
|
-
process(key, v);
|
|
351
|
-
});
|
|
352
|
-
} else if (typeof value === "object") {
|
|
353
|
-
Object.entries(value).forEach(([k, v]) => {
|
|
354
|
-
process(`${key}[${k}]`, v);
|
|
355
|
-
});
|
|
356
|
-
} else {
|
|
357
|
-
append(key, value);
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
};
|
|
361
|
-
Object.entries(params).forEach(([key, value]) => {
|
|
362
|
-
process(key, value);
|
|
363
|
-
});
|
|
364
|
-
if (qs.length > 0) {
|
|
365
|
-
return `?${qs.join("&")}`;
|
|
366
|
-
}
|
|
367
|
-
return "";
|
|
368
|
-
};
|
|
369
|
-
const getUrl = (config, options) => {
|
|
370
|
-
const encoder = config.ENCODE_PATH || encodeURI;
|
|
371
|
-
const path = options.url.replace("{api-version}", config.VERSION).replace(/{(.*?)}/g, (substring, group) => {
|
|
372
|
-
var _a;
|
|
373
|
-
if ((_a = options.path) == null ? void 0 : _a.hasOwnProperty(group)) {
|
|
374
|
-
return encoder(String(options.path[group]));
|
|
375
|
-
}
|
|
376
|
-
return substring;
|
|
377
|
-
});
|
|
378
|
-
const url = `${config.BASE}${path}`;
|
|
379
|
-
if (options.query) {
|
|
380
|
-
return `${url}${getQueryString(options.query)}`;
|
|
381
|
-
}
|
|
382
|
-
return url;
|
|
383
|
-
};
|
|
384
|
-
const getFormData = (options) => {
|
|
385
|
-
if (options.formData) {
|
|
386
|
-
const formData = new FormData();
|
|
387
|
-
const process = (key, value) => {
|
|
388
|
-
if (isString(value) || isBlob(value)) {
|
|
389
|
-
formData.append(key, value);
|
|
390
|
-
} else {
|
|
391
|
-
formData.append(key, JSON.stringify(value));
|
|
392
|
-
}
|
|
393
|
-
};
|
|
394
|
-
Object.entries(options.formData).filter(([_, value]) => isDefined(value)).forEach(([key, value]) => {
|
|
395
|
-
if (Array.isArray(value)) {
|
|
396
|
-
value.forEach((v) => process(key, v));
|
|
397
|
-
} else {
|
|
398
|
-
process(key, value);
|
|
399
|
-
}
|
|
400
|
-
});
|
|
401
|
-
return formData;
|
|
402
|
-
}
|
|
403
|
-
return void 0;
|
|
404
|
-
};
|
|
405
|
-
const resolve = async (options, resolver) => {
|
|
406
|
-
if (typeof resolver === "function") {
|
|
407
|
-
return resolver(options);
|
|
408
|
-
}
|
|
409
|
-
return resolver;
|
|
410
|
-
};
|
|
411
|
-
const getHeaders = async (config, options) => {
|
|
412
|
-
const token = await resolve(options, config.TOKEN);
|
|
413
|
-
const username = await resolve(options, config.USERNAME);
|
|
414
|
-
const password = await resolve(options, config.PASSWORD);
|
|
415
|
-
const additionalHeaders = await resolve(options, config.HEADERS);
|
|
416
|
-
const headers = Object.entries(__spreadValues(__spreadValues({
|
|
417
|
-
Accept: "application/json"
|
|
418
|
-
}, additionalHeaders), options.headers)).filter(([_, value]) => isDefined(value)).reduce((headers2, [key, value]) => __spreadProps(__spreadValues({}, headers2), {
|
|
419
|
-
[key]: String(value)
|
|
420
|
-
}), {});
|
|
421
|
-
if (isStringWithValue(token)) {
|
|
422
|
-
headers["Authorization"] = `Bearer ${token}`;
|
|
423
|
-
}
|
|
424
|
-
if (isStringWithValue(username) && isStringWithValue(password)) {
|
|
425
|
-
const credentials = base64(`${username}:${password}`);
|
|
426
|
-
headers["Authorization"] = `Basic ${credentials}`;
|
|
427
|
-
}
|
|
428
|
-
if (options.body) {
|
|
429
|
-
if (options.mediaType) {
|
|
430
|
-
headers["Content-Type"] = options.mediaType;
|
|
431
|
-
} else if (isBlob(options.body)) {
|
|
432
|
-
headers["Content-Type"] = options.body.type || "application/octet-stream";
|
|
433
|
-
} else if (isString(options.body)) {
|
|
434
|
-
headers["Content-Type"] = "text/plain";
|
|
435
|
-
} else if (!isFormData(options.body)) {
|
|
436
|
-
headers["Content-Type"] = "application/json";
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
return new Headers(headers);
|
|
440
|
-
};
|
|
441
|
-
const getRequestBody = (options) => {
|
|
442
|
-
var _a;
|
|
443
|
-
if (options.body !== void 0) {
|
|
444
|
-
if ((_a = options.mediaType) == null ? void 0 : _a.includes("/json")) {
|
|
445
|
-
return JSON.stringify(options.body);
|
|
446
|
-
} else if (isString(options.body) || isBlob(options.body) || isFormData(options.body)) {
|
|
447
|
-
return options.body;
|
|
448
|
-
} else {
|
|
449
|
-
return JSON.stringify(options.body);
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
return void 0;
|
|
453
|
-
};
|
|
454
|
-
const sendRequest = async (config, options, url, body, formData, headers, onCancel) => {
|
|
455
|
-
const controller = new AbortController();
|
|
456
|
-
const request2 = {
|
|
457
|
-
headers,
|
|
458
|
-
body: body != null ? body : formData,
|
|
459
|
-
method: options.method,
|
|
460
|
-
signal: controller.signal
|
|
461
|
-
};
|
|
462
|
-
if (config.WITH_CREDENTIALS) {
|
|
463
|
-
request2.credentials = config.CREDENTIALS;
|
|
464
|
-
}
|
|
465
|
-
onCancel(() => controller.abort());
|
|
466
|
-
return await fetch(url, request2);
|
|
467
|
-
};
|
|
468
|
-
const getResponseHeader = (response, responseHeader) => {
|
|
469
|
-
if (responseHeader) {
|
|
470
|
-
const content = response.headers.get(responseHeader);
|
|
471
|
-
if (isString(content)) {
|
|
472
|
-
return content;
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
return void 0;
|
|
476
|
-
};
|
|
477
|
-
const getResponseBody = async (response) => {
|
|
478
|
-
if (response.status !== 204) {
|
|
479
|
-
try {
|
|
480
|
-
const contentType = response.headers.get("Content-Type");
|
|
481
|
-
if (contentType) {
|
|
482
|
-
const jsonTypes = ["application/json", "application/problem+json"];
|
|
483
|
-
const isJSON = jsonTypes.some((type) => contentType.toLowerCase().startsWith(type));
|
|
484
|
-
if (isJSON) {
|
|
485
|
-
return await response.json();
|
|
486
|
-
} else {
|
|
487
|
-
return await response.text();
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
} catch (error) {
|
|
491
|
-
console.error(error);
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
return void 0;
|
|
495
|
-
};
|
|
496
|
-
const catchErrorCodes = (options, result) => {
|
|
497
|
-
const errors = __spreadValues({
|
|
498
|
-
400: "Bad Request",
|
|
499
|
-
401: "Unauthorized",
|
|
500
|
-
403: "Forbidden",
|
|
501
|
-
404: "Not Found",
|
|
502
|
-
500: "Internal Server Error",
|
|
503
|
-
502: "Bad Gateway",
|
|
504
|
-
503: "Service Unavailable"
|
|
505
|
-
}, options.errors);
|
|
506
|
-
const error = errors[result.status];
|
|
507
|
-
if (error) {
|
|
508
|
-
throw new ApiError(options, result, error);
|
|
509
|
-
}
|
|
510
|
-
if (!result.ok) {
|
|
511
|
-
throw new ApiError(options, result, "Generic Error");
|
|
512
|
-
}
|
|
513
|
-
};
|
|
514
|
-
const request = (config, options) => {
|
|
515
|
-
return new CancelablePromise(async (resolve2, reject, onCancel) => {
|
|
516
|
-
try {
|
|
517
|
-
const url = getUrl(config, options);
|
|
518
|
-
const formData = getFormData(options);
|
|
519
|
-
const body = getRequestBody(options);
|
|
520
|
-
const headers = await getHeaders(config, options);
|
|
521
|
-
if (!onCancel.isCancelled) {
|
|
522
|
-
const response = await sendRequest(config, options, url, body, formData, headers, onCancel);
|
|
523
|
-
const responseBody = await getResponseBody(response);
|
|
524
|
-
const responseHeader = getResponseHeader(response, options.responseHeader);
|
|
525
|
-
const result = {
|
|
526
|
-
url,
|
|
527
|
-
ok: response.ok,
|
|
528
|
-
status: response.status,
|
|
529
|
-
statusText: response.statusText,
|
|
530
|
-
body: responseHeader != null ? responseHeader : responseBody
|
|
531
|
-
};
|
|
532
|
-
catchErrorCodes(options, result);
|
|
533
|
-
resolve2(result.body);
|
|
534
|
-
}
|
|
535
|
-
} catch (error) {
|
|
536
|
-
reject(error);
|
|
537
|
-
}
|
|
538
|
-
});
|
|
539
|
-
};
|
|
540
|
-
|
|
541
|
-
class AuditLogResource {
|
|
542
|
-
/**
|
|
543
|
-
* @returns PagedAuditLogWithUsernameResponseModel Success
|
|
544
|
-
* @throws ApiError
|
|
545
|
-
*/
|
|
546
|
-
static getAuditLog({
|
|
547
|
-
orderDirection,
|
|
548
|
-
sinceDate,
|
|
549
|
-
skip,
|
|
550
|
-
take = 100
|
|
551
|
-
}) {
|
|
552
|
-
return request(OpenAPI, {
|
|
553
|
-
method: "GET",
|
|
554
|
-
url: "/umbraco/management/api/v1/audit-log",
|
|
555
|
-
query: {
|
|
556
|
-
"orderDirection": orderDirection,
|
|
557
|
-
"sinceDate": sinceDate,
|
|
558
|
-
"skip": skip,
|
|
559
|
-
"take": take
|
|
560
|
-
}
|
|
561
|
-
});
|
|
562
|
-
}
|
|
563
|
-
/**
|
|
564
|
-
* @returns PagedAuditLogResponseModel Success
|
|
565
|
-
* @throws ApiError
|
|
566
|
-
*/
|
|
567
|
-
static getAuditLogById({
|
|
568
|
-
id,
|
|
569
|
-
orderDirection,
|
|
570
|
-
sinceDate,
|
|
571
|
-
skip,
|
|
572
|
-
take = 100
|
|
573
|
-
}) {
|
|
574
|
-
return request(OpenAPI, {
|
|
575
|
-
method: "GET",
|
|
576
|
-
url: "/umbraco/management/api/v1/audit-log/{id}",
|
|
577
|
-
path: {
|
|
578
|
-
"id": id
|
|
579
|
-
},
|
|
580
|
-
query: {
|
|
581
|
-
"orderDirection": orderDirection,
|
|
582
|
-
"sinceDate": sinceDate,
|
|
583
|
-
"skip": skip,
|
|
584
|
-
"take": take
|
|
585
|
-
}
|
|
586
|
-
});
|
|
587
|
-
}
|
|
588
|
-
/**
|
|
589
|
-
* @returns PagedAuditLogResponseModel Success
|
|
590
|
-
* @throws ApiError
|
|
591
|
-
*/
|
|
592
|
-
static getAuditLogTypeByLogType({
|
|
593
|
-
logType,
|
|
594
|
-
sinceDate,
|
|
595
|
-
skip,
|
|
596
|
-
take = 100
|
|
597
|
-
}) {
|
|
598
|
-
return request(OpenAPI, {
|
|
599
|
-
method: "GET",
|
|
600
|
-
url: "/umbraco/management/api/v1/audit-log/type/{logType}",
|
|
601
|
-
path: {
|
|
602
|
-
"logType": logType
|
|
603
|
-
},
|
|
604
|
-
query: {
|
|
605
|
-
"sinceDate": sinceDate,
|
|
606
|
-
"skip": skip,
|
|
607
|
-
"take": take
|
|
608
|
-
}
|
|
609
|
-
});
|
|
610
|
-
}
|
|
611
|
-
}
|
|
612
|
-
|
|
613
|
-
class CultureResource {
|
|
614
|
-
/**
|
|
615
|
-
* @returns PagedCultureReponseModel Success
|
|
616
|
-
* @throws ApiError
|
|
617
|
-
*/
|
|
618
|
-
static getCulture({
|
|
619
|
-
skip,
|
|
620
|
-
take = 100
|
|
621
|
-
}) {
|
|
622
|
-
return request(OpenAPI, {
|
|
623
|
-
method: "GET",
|
|
624
|
-
url: "/umbraco/management/api/v1/culture",
|
|
625
|
-
query: {
|
|
626
|
-
"skip": skip,
|
|
627
|
-
"take": take
|
|
628
|
-
}
|
|
629
|
-
});
|
|
630
|
-
}
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
class DataTypeResource {
|
|
634
|
-
/**
|
|
635
|
-
* @returns string Created
|
|
636
|
-
* @throws ApiError
|
|
637
|
-
*/
|
|
638
|
-
static postDataType({
|
|
639
|
-
requestBody
|
|
640
|
-
}) {
|
|
641
|
-
return request(OpenAPI, {
|
|
642
|
-
method: "POST",
|
|
643
|
-
url: "/umbraco/management/api/v1/data-type",
|
|
644
|
-
body: requestBody,
|
|
645
|
-
mediaType: "application/json",
|
|
646
|
-
responseHeader: "Location",
|
|
647
|
-
errors: {
|
|
648
|
-
400: `Bad Request`,
|
|
649
|
-
404: `Not Found`
|
|
650
|
-
}
|
|
651
|
-
});
|
|
652
|
-
}
|
|
653
|
-
/**
|
|
654
|
-
* @returns any Success
|
|
655
|
-
* @throws ApiError
|
|
656
|
-
*/
|
|
657
|
-
static getDataTypeById({
|
|
658
|
-
id
|
|
659
|
-
}) {
|
|
660
|
-
return request(OpenAPI, {
|
|
661
|
-
method: "GET",
|
|
662
|
-
url: "/umbraco/management/api/v1/data-type/{id}",
|
|
663
|
-
path: {
|
|
664
|
-
"id": id
|
|
665
|
-
},
|
|
666
|
-
errors: {
|
|
667
|
-
404: `Not Found`
|
|
668
|
-
}
|
|
669
|
-
});
|
|
670
|
-
}
|
|
671
|
-
/**
|
|
672
|
-
* @returns any Success
|
|
673
|
-
* @throws ApiError
|
|
674
|
-
*/
|
|
675
|
-
static deleteDataTypeById({
|
|
676
|
-
id
|
|
677
|
-
}) {
|
|
678
|
-
return request(OpenAPI, {
|
|
679
|
-
method: "DELETE",
|
|
680
|
-
url: "/umbraco/management/api/v1/data-type/{id}",
|
|
681
|
-
path: {
|
|
682
|
-
"id": id
|
|
683
|
-
},
|
|
684
|
-
errors: {
|
|
685
|
-
400: `Bad Request`,
|
|
686
|
-
404: `Not Found`
|
|
687
|
-
}
|
|
688
|
-
});
|
|
689
|
-
}
|
|
690
|
-
/**
|
|
691
|
-
* @returns any Success
|
|
692
|
-
* @throws ApiError
|
|
693
|
-
*/
|
|
694
|
-
static putDataTypeById({
|
|
695
|
-
id,
|
|
696
|
-
requestBody
|
|
697
|
-
}) {
|
|
698
|
-
return request(OpenAPI, {
|
|
699
|
-
method: "PUT",
|
|
700
|
-
url: "/umbraco/management/api/v1/data-type/{id}",
|
|
701
|
-
path: {
|
|
702
|
-
"id": id
|
|
703
|
-
},
|
|
704
|
-
body: requestBody,
|
|
705
|
-
mediaType: "application/json",
|
|
706
|
-
errors: {
|
|
707
|
-
400: `Bad Request`,
|
|
708
|
-
404: `Not Found`
|
|
709
|
-
}
|
|
710
|
-
});
|
|
711
|
-
}
|
|
712
|
-
/**
|
|
713
|
-
* @returns string Created
|
|
714
|
-
* @throws ApiError
|
|
715
|
-
*/
|
|
716
|
-
static postDataTypeByIdCopy({
|
|
717
|
-
id,
|
|
718
|
-
requestBody
|
|
719
|
-
}) {
|
|
720
|
-
return request(OpenAPI, {
|
|
721
|
-
method: "POST",
|
|
722
|
-
url: "/umbraco/management/api/v1/data-type/{id}/copy",
|
|
723
|
-
path: {
|
|
724
|
-
"id": id
|
|
725
|
-
},
|
|
726
|
-
body: requestBody,
|
|
727
|
-
mediaType: "application/json",
|
|
728
|
-
responseHeader: "Location",
|
|
729
|
-
errors: {
|
|
730
|
-
404: `Not Found`
|
|
731
|
-
}
|
|
732
|
-
});
|
|
733
|
-
}
|
|
734
|
-
/**
|
|
735
|
-
* @returns boolean Success
|
|
736
|
-
* @throws ApiError
|
|
737
|
-
*/
|
|
738
|
-
static getDataTypeByIdIsUsed({
|
|
739
|
-
id
|
|
740
|
-
}) {
|
|
741
|
-
return request(OpenAPI, {
|
|
742
|
-
method: "GET",
|
|
743
|
-
url: "/umbraco/management/api/v1/data-type/{id}/is-used",
|
|
744
|
-
path: {
|
|
745
|
-
"id": id
|
|
746
|
-
},
|
|
747
|
-
errors: {
|
|
748
|
-
404: `Not Found`
|
|
749
|
-
}
|
|
750
|
-
});
|
|
751
|
-
}
|
|
752
|
-
/**
|
|
753
|
-
* @returns any Success
|
|
754
|
-
* @throws ApiError
|
|
755
|
-
*/
|
|
756
|
-
static postDataTypeByIdMove({
|
|
757
|
-
id,
|
|
758
|
-
requestBody
|
|
759
|
-
}) {
|
|
760
|
-
return request(OpenAPI, {
|
|
761
|
-
method: "POST",
|
|
762
|
-
url: "/umbraco/management/api/v1/data-type/{id}/move",
|
|
763
|
-
path: {
|
|
764
|
-
"id": id
|
|
765
|
-
},
|
|
766
|
-
body: requestBody,
|
|
767
|
-
mediaType: "application/json",
|
|
768
|
-
errors: {
|
|
769
|
-
404: `Not Found`
|
|
770
|
-
}
|
|
771
|
-
});
|
|
772
|
-
}
|
|
773
|
-
/**
|
|
774
|
-
* @returns any Success
|
|
775
|
-
* @throws ApiError
|
|
776
|
-
*/
|
|
777
|
-
static getDataTypeByIdReferences({
|
|
778
|
-
id
|
|
779
|
-
}) {
|
|
780
|
-
return request(OpenAPI, {
|
|
781
|
-
method: "GET",
|
|
782
|
-
url: "/umbraco/management/api/v1/data-type/{id}/references",
|
|
783
|
-
path: {
|
|
784
|
-
"id": id
|
|
785
|
-
},
|
|
786
|
-
errors: {
|
|
787
|
-
404: `Not Found`
|
|
788
|
-
}
|
|
789
|
-
});
|
|
790
|
-
}
|
|
791
|
-
/**
|
|
792
|
-
* @returns string Created
|
|
793
|
-
* @throws ApiError
|
|
794
|
-
*/
|
|
795
|
-
static postDataTypeFolder({
|
|
796
|
-
requestBody
|
|
797
|
-
}) {
|
|
798
|
-
return request(OpenAPI, {
|
|
799
|
-
method: "POST",
|
|
800
|
-
url: "/umbraco/management/api/v1/data-type/folder",
|
|
801
|
-
body: requestBody,
|
|
802
|
-
mediaType: "application/json",
|
|
803
|
-
responseHeader: "Location"
|
|
804
|
-
});
|
|
805
|
-
}
|
|
806
|
-
/**
|
|
807
|
-
* @returns any Success
|
|
808
|
-
* @throws ApiError
|
|
809
|
-
*/
|
|
810
|
-
static getDataTypeFolderById({
|
|
811
|
-
id
|
|
812
|
-
}) {
|
|
813
|
-
return request(OpenAPI, {
|
|
814
|
-
method: "GET",
|
|
815
|
-
url: "/umbraco/management/api/v1/data-type/folder/{id}",
|
|
816
|
-
path: {
|
|
817
|
-
"id": id
|
|
818
|
-
},
|
|
819
|
-
errors: {
|
|
820
|
-
404: `Not Found`
|
|
821
|
-
}
|
|
822
|
-
});
|
|
823
|
-
}
|
|
824
|
-
/**
|
|
825
|
-
* @returns any Success
|
|
826
|
-
* @throws ApiError
|
|
827
|
-
*/
|
|
828
|
-
static deleteDataTypeFolderById({
|
|
829
|
-
id
|
|
830
|
-
}) {
|
|
831
|
-
return request(OpenAPI, {
|
|
832
|
-
method: "DELETE",
|
|
833
|
-
url: "/umbraco/management/api/v1/data-type/folder/{id}",
|
|
834
|
-
path: {
|
|
835
|
-
"id": id
|
|
836
|
-
},
|
|
837
|
-
errors: {
|
|
838
|
-
404: `Not Found`
|
|
839
|
-
}
|
|
840
|
-
});
|
|
841
|
-
}
|
|
842
|
-
/**
|
|
843
|
-
* @returns any Success
|
|
844
|
-
* @throws ApiError
|
|
845
|
-
*/
|
|
846
|
-
static putDataTypeFolderById({
|
|
847
|
-
id,
|
|
848
|
-
requestBody
|
|
849
|
-
}) {
|
|
850
|
-
return request(OpenAPI, {
|
|
851
|
-
method: "PUT",
|
|
852
|
-
url: "/umbraco/management/api/v1/data-type/folder/{id}",
|
|
853
|
-
path: {
|
|
854
|
-
"id": id
|
|
855
|
-
},
|
|
856
|
-
body: requestBody,
|
|
857
|
-
mediaType: "application/json",
|
|
858
|
-
errors: {
|
|
859
|
-
404: `Not Found`
|
|
860
|
-
}
|
|
861
|
-
});
|
|
862
|
-
}
|
|
863
|
-
/**
|
|
864
|
-
* @returns any Success
|
|
865
|
-
* @throws ApiError
|
|
866
|
-
*/
|
|
867
|
-
static getDataTypeItem({
|
|
868
|
-
id
|
|
869
|
-
}) {
|
|
870
|
-
return request(OpenAPI, {
|
|
871
|
-
method: "GET",
|
|
872
|
-
url: "/umbraco/management/api/v1/data-type/item",
|
|
873
|
-
query: {
|
|
874
|
-
"id": id
|
|
875
|
-
}
|
|
876
|
-
});
|
|
877
|
-
}
|
|
878
|
-
/**
|
|
879
|
-
* @returns PagedFolderTreeItemResponseModel Success
|
|
880
|
-
* @throws ApiError
|
|
881
|
-
*/
|
|
882
|
-
static getTreeDataTypeChildren({
|
|
883
|
-
parentId,
|
|
884
|
-
skip,
|
|
885
|
-
take = 100,
|
|
886
|
-
foldersOnly = false
|
|
887
|
-
}) {
|
|
888
|
-
return request(OpenAPI, {
|
|
889
|
-
method: "GET",
|
|
890
|
-
url: "/umbraco/management/api/v1/tree/data-type/children",
|
|
891
|
-
query: {
|
|
892
|
-
"parentId": parentId,
|
|
893
|
-
"skip": skip,
|
|
894
|
-
"take": take,
|
|
895
|
-
"foldersOnly": foldersOnly
|
|
896
|
-
}
|
|
897
|
-
});
|
|
898
|
-
}
|
|
899
|
-
/**
|
|
900
|
-
* @returns PagedFolderTreeItemResponseModel Success
|
|
901
|
-
* @throws ApiError
|
|
902
|
-
*/
|
|
903
|
-
static getTreeDataTypeRoot({
|
|
904
|
-
skip,
|
|
905
|
-
take = 100,
|
|
906
|
-
foldersOnly = false
|
|
907
|
-
}) {
|
|
908
|
-
return request(OpenAPI, {
|
|
909
|
-
method: "GET",
|
|
910
|
-
url: "/umbraco/management/api/v1/tree/data-type/root",
|
|
911
|
-
query: {
|
|
912
|
-
"skip": skip,
|
|
913
|
-
"take": take,
|
|
914
|
-
"foldersOnly": foldersOnly
|
|
915
|
-
}
|
|
916
|
-
});
|
|
917
|
-
}
|
|
918
|
-
}
|
|
919
|
-
|
|
920
|
-
class DictionaryResource {
|
|
921
|
-
/**
|
|
922
|
-
* @returns PagedDictionaryOverviewResponseModel Success
|
|
923
|
-
* @throws ApiError
|
|
924
|
-
*/
|
|
925
|
-
static getDictionary({
|
|
926
|
-
skip,
|
|
927
|
-
take = 100
|
|
928
|
-
}) {
|
|
929
|
-
return request(OpenAPI, {
|
|
930
|
-
method: "GET",
|
|
931
|
-
url: "/umbraco/management/api/v1/dictionary",
|
|
932
|
-
query: {
|
|
933
|
-
"skip": skip,
|
|
934
|
-
"take": take
|
|
935
|
-
}
|
|
936
|
-
});
|
|
937
|
-
}
|
|
938
|
-
/**
|
|
939
|
-
* @returns string Created
|
|
940
|
-
* @throws ApiError
|
|
941
|
-
*/
|
|
942
|
-
static postDictionary({
|
|
943
|
-
requestBody
|
|
944
|
-
}) {
|
|
945
|
-
return request(OpenAPI, {
|
|
946
|
-
method: "POST",
|
|
947
|
-
url: "/umbraco/management/api/v1/dictionary",
|
|
948
|
-
body: requestBody,
|
|
949
|
-
mediaType: "application/json",
|
|
950
|
-
responseHeader: "Location",
|
|
951
|
-
errors: {
|
|
952
|
-
400: `Bad Request`,
|
|
953
|
-
404: `Not Found`,
|
|
954
|
-
409: `Conflict`
|
|
955
|
-
}
|
|
956
|
-
});
|
|
957
|
-
}
|
|
958
|
-
/**
|
|
959
|
-
* @returns any Success
|
|
960
|
-
* @throws ApiError
|
|
961
|
-
*/
|
|
962
|
-
static getDictionaryById({
|
|
963
|
-
id
|
|
964
|
-
}) {
|
|
965
|
-
return request(OpenAPI, {
|
|
966
|
-
method: "GET",
|
|
967
|
-
url: "/umbraco/management/api/v1/dictionary/{id}",
|
|
968
|
-
path: {
|
|
969
|
-
"id": id
|
|
970
|
-
},
|
|
971
|
-
errors: {
|
|
972
|
-
404: `Not Found`
|
|
973
|
-
}
|
|
974
|
-
});
|
|
975
|
-
}
|
|
976
|
-
/**
|
|
977
|
-
* @returns any Success
|
|
978
|
-
* @throws ApiError
|
|
979
|
-
*/
|
|
980
|
-
static deleteDictionaryById({
|
|
981
|
-
id
|
|
982
|
-
}) {
|
|
983
|
-
return request(OpenAPI, {
|
|
984
|
-
method: "DELETE",
|
|
985
|
-
url: "/umbraco/management/api/v1/dictionary/{id}",
|
|
986
|
-
path: {
|
|
987
|
-
"id": id
|
|
988
|
-
},
|
|
989
|
-
errors: {
|
|
990
|
-
400: `Bad Request`,
|
|
991
|
-
404: `Not Found`
|
|
992
|
-
}
|
|
993
|
-
});
|
|
994
|
-
}
|
|
995
|
-
/**
|
|
996
|
-
* @returns any Success
|
|
997
|
-
* @throws ApiError
|
|
998
|
-
*/
|
|
999
|
-
static putDictionaryById({
|
|
1000
|
-
id,
|
|
1001
|
-
requestBody
|
|
1002
|
-
}) {
|
|
1003
|
-
return request(OpenAPI, {
|
|
1004
|
-
method: "PUT",
|
|
1005
|
-
url: "/umbraco/management/api/v1/dictionary/{id}",
|
|
1006
|
-
path: {
|
|
1007
|
-
"id": id
|
|
1008
|
-
},
|
|
1009
|
-
body: requestBody,
|
|
1010
|
-
mediaType: "application/json",
|
|
1011
|
-
errors: {
|
|
1012
|
-
400: `Bad Request`,
|
|
1013
|
-
404: `Not Found`
|
|
1014
|
-
}
|
|
1015
|
-
});
|
|
1016
|
-
}
|
|
1017
|
-
/**
|
|
1018
|
-
* @returns binary Success
|
|
1019
|
-
* @throws ApiError
|
|
1020
|
-
*/
|
|
1021
|
-
static getDictionaryByIdExport({
|
|
1022
|
-
id,
|
|
1023
|
-
includeChildren = false
|
|
1024
|
-
}) {
|
|
1025
|
-
return request(OpenAPI, {
|
|
1026
|
-
method: "GET",
|
|
1027
|
-
url: "/umbraco/management/api/v1/dictionary/{id}/export",
|
|
1028
|
-
path: {
|
|
1029
|
-
"id": id
|
|
1030
|
-
},
|
|
1031
|
-
query: {
|
|
1032
|
-
"includeChildren": includeChildren
|
|
1033
|
-
},
|
|
1034
|
-
errors: {
|
|
1035
|
-
404: `Not Found`
|
|
1036
|
-
}
|
|
1037
|
-
});
|
|
1038
|
-
}
|
|
1039
|
-
/**
|
|
1040
|
-
* @returns any Success
|
|
1041
|
-
* @throws ApiError
|
|
1042
|
-
*/
|
|
1043
|
-
static postDictionaryByIdMove({
|
|
1044
|
-
id,
|
|
1045
|
-
requestBody
|
|
1046
|
-
}) {
|
|
1047
|
-
return request(OpenAPI, {
|
|
1048
|
-
method: "POST",
|
|
1049
|
-
url: "/umbraco/management/api/v1/dictionary/{id}/move",
|
|
1050
|
-
path: {
|
|
1051
|
-
"id": id
|
|
1052
|
-
},
|
|
1053
|
-
body: requestBody,
|
|
1054
|
-
mediaType: "application/json",
|
|
1055
|
-
errors: {
|
|
1056
|
-
400: `Bad Request`,
|
|
1057
|
-
404: `Not Found`
|
|
1058
|
-
}
|
|
1059
|
-
});
|
|
1060
|
-
}
|
|
1061
|
-
/**
|
|
1062
|
-
* @returns string Created
|
|
1063
|
-
* @throws ApiError
|
|
1064
|
-
*/
|
|
1065
|
-
static postDictionaryImport({
|
|
1066
|
-
requestBody
|
|
1067
|
-
}) {
|
|
1068
|
-
return request(OpenAPI, {
|
|
1069
|
-
method: "POST",
|
|
1070
|
-
url: "/umbraco/management/api/v1/dictionary/import",
|
|
1071
|
-
body: requestBody,
|
|
1072
|
-
mediaType: "application/json",
|
|
1073
|
-
responseHeader: "Location",
|
|
1074
|
-
errors: {
|
|
1075
|
-
400: `Bad Request`,
|
|
1076
|
-
404: `Not Found`
|
|
1077
|
-
}
|
|
1078
|
-
});
|
|
1079
|
-
}
|
|
1080
|
-
/**
|
|
1081
|
-
* @returns any Success
|
|
1082
|
-
* @throws ApiError
|
|
1083
|
-
*/
|
|
1084
|
-
static getDictionaryItem({
|
|
1085
|
-
id
|
|
1086
|
-
}) {
|
|
1087
|
-
return request(OpenAPI, {
|
|
1088
|
-
method: "GET",
|
|
1089
|
-
url: "/umbraco/management/api/v1/dictionary/item",
|
|
1090
|
-
query: {
|
|
1091
|
-
"id": id
|
|
1092
|
-
}
|
|
1093
|
-
});
|
|
1094
|
-
}
|
|
1095
|
-
/**
|
|
1096
|
-
* @returns PagedEntityTreeItemResponseModel Success
|
|
1097
|
-
* @throws ApiError
|
|
1098
|
-
*/
|
|
1099
|
-
static getTreeDictionaryChildren({
|
|
1100
|
-
parentId,
|
|
1101
|
-
skip,
|
|
1102
|
-
take = 100
|
|
1103
|
-
}) {
|
|
1104
|
-
return request(OpenAPI, {
|
|
1105
|
-
method: "GET",
|
|
1106
|
-
url: "/umbraco/management/api/v1/tree/dictionary/children",
|
|
1107
|
-
query: {
|
|
1108
|
-
"parentId": parentId,
|
|
1109
|
-
"skip": skip,
|
|
1110
|
-
"take": take
|
|
1111
|
-
}
|
|
1112
|
-
});
|
|
1113
|
-
}
|
|
1114
|
-
/**
|
|
1115
|
-
* @returns PagedEntityTreeItemResponseModel Success
|
|
1116
|
-
* @throws ApiError
|
|
1117
|
-
*/
|
|
1118
|
-
static getTreeDictionaryRoot({
|
|
1119
|
-
skip,
|
|
1120
|
-
take = 100
|
|
1121
|
-
}) {
|
|
1122
|
-
return request(OpenAPI, {
|
|
1123
|
-
method: "GET",
|
|
1124
|
-
url: "/umbraco/management/api/v1/tree/dictionary/root",
|
|
1125
|
-
query: {
|
|
1126
|
-
"skip": skip,
|
|
1127
|
-
"take": take
|
|
1128
|
-
}
|
|
1129
|
-
});
|
|
1130
|
-
}
|
|
1131
|
-
}
|
|
1132
|
-
|
|
1133
|
-
class DocumentResource {
|
|
1134
|
-
/**
|
|
1135
|
-
* @returns string Created
|
|
1136
|
-
* @throws ApiError
|
|
1137
|
-
*/
|
|
1138
|
-
static postDocument({
|
|
1139
|
-
requestBody
|
|
1140
|
-
}) {
|
|
1141
|
-
return request(OpenAPI, {
|
|
1142
|
-
method: "POST",
|
|
1143
|
-
url: "/umbraco/management/api/v1/document",
|
|
1144
|
-
body: requestBody,
|
|
1145
|
-
mediaType: "application/json",
|
|
1146
|
-
responseHeader: "Location",
|
|
1147
|
-
errors: {
|
|
1148
|
-
400: `Bad Request`,
|
|
1149
|
-
404: `Not Found`
|
|
1150
|
-
}
|
|
1151
|
-
});
|
|
1152
|
-
}
|
|
1153
|
-
/**
|
|
1154
|
-
* @returns any Success
|
|
1155
|
-
* @throws ApiError
|
|
1156
|
-
*/
|
|
1157
|
-
static getDocumentById({
|
|
1158
|
-
id
|
|
1159
|
-
}) {
|
|
1160
|
-
return request(OpenAPI, {
|
|
1161
|
-
method: "GET",
|
|
1162
|
-
url: "/umbraco/management/api/v1/document/{id}",
|
|
1163
|
-
path: {
|
|
1164
|
-
"id": id
|
|
1165
|
-
},
|
|
1166
|
-
errors: {
|
|
1167
|
-
404: `Not Found`
|
|
1168
|
-
}
|
|
1169
|
-
});
|
|
1170
|
-
}
|
|
1171
|
-
/**
|
|
1172
|
-
* @returns any Success
|
|
1173
|
-
* @throws ApiError
|
|
1174
|
-
*/
|
|
1175
|
-
static deleteDocumentById({
|
|
1176
|
-
id
|
|
1177
|
-
}) {
|
|
1178
|
-
return request(OpenAPI, {
|
|
1179
|
-
method: "DELETE",
|
|
1180
|
-
url: "/umbraco/management/api/v1/document/{id}",
|
|
1181
|
-
path: {
|
|
1182
|
-
"id": id
|
|
1183
|
-
},
|
|
1184
|
-
errors: {
|
|
1185
|
-
400: `Bad Request`,
|
|
1186
|
-
404: `Not Found`
|
|
1187
|
-
}
|
|
1188
|
-
});
|
|
1189
|
-
}
|
|
1190
|
-
/**
|
|
1191
|
-
* @returns any Success
|
|
1192
|
-
* @throws ApiError
|
|
1193
|
-
*/
|
|
1194
|
-
static putDocumentById({
|
|
1195
|
-
id,
|
|
1196
|
-
requestBody
|
|
1197
|
-
}) {
|
|
1198
|
-
return request(OpenAPI, {
|
|
1199
|
-
method: "PUT",
|
|
1200
|
-
url: "/umbraco/management/api/v1/document/{id}",
|
|
1201
|
-
path: {
|
|
1202
|
-
"id": id
|
|
1203
|
-
},
|
|
1204
|
-
body: requestBody,
|
|
1205
|
-
mediaType: "application/json",
|
|
1206
|
-
errors: {
|
|
1207
|
-
400: `Bad Request`,
|
|
1208
|
-
404: `Not Found`
|
|
1209
|
-
}
|
|
1210
|
-
});
|
|
1211
|
-
}
|
|
1212
|
-
/**
|
|
1213
|
-
* @returns string Created
|
|
1214
|
-
* @throws ApiError
|
|
1215
|
-
*/
|
|
1216
|
-
static postDocumentByIdCopy({
|
|
1217
|
-
id,
|
|
1218
|
-
requestBody
|
|
1219
|
-
}) {
|
|
1220
|
-
return request(OpenAPI, {
|
|
1221
|
-
method: "POST",
|
|
1222
|
-
url: "/umbraco/management/api/v1/document/{id}/copy",
|
|
1223
|
-
path: {
|
|
1224
|
-
"id": id
|
|
1225
|
-
},
|
|
1226
|
-
body: requestBody,
|
|
1227
|
-
mediaType: "application/json",
|
|
1228
|
-
responseHeader: "Location",
|
|
1229
|
-
errors: {
|
|
1230
|
-
400: `Bad Request`,
|
|
1231
|
-
404: `Not Found`
|
|
1232
|
-
}
|
|
1233
|
-
});
|
|
1234
|
-
}
|
|
1235
|
-
/**
|
|
1236
|
-
* @returns any Success
|
|
1237
|
-
* @throws ApiError
|
|
1238
|
-
*/
|
|
1239
|
-
static getDocumentByIdDomains({
|
|
1240
|
-
id
|
|
1241
|
-
}) {
|
|
1242
|
-
return request(OpenAPI, {
|
|
1243
|
-
method: "GET",
|
|
1244
|
-
url: "/umbraco/management/api/v1/document/{id}/domains",
|
|
1245
|
-
path: {
|
|
1246
|
-
"id": id
|
|
1247
|
-
}
|
|
1248
|
-
});
|
|
1249
|
-
}
|
|
1250
|
-
/**
|
|
1251
|
-
* @returns any Success
|
|
1252
|
-
* @throws ApiError
|
|
1253
|
-
*/
|
|
1254
|
-
static putDocumentByIdDomains({
|
|
1255
|
-
id,
|
|
1256
|
-
requestBody
|
|
1257
|
-
}) {
|
|
1258
|
-
return request(OpenAPI, {
|
|
1259
|
-
method: "PUT",
|
|
1260
|
-
url: "/umbraco/management/api/v1/document/{id}/domains",
|
|
1261
|
-
path: {
|
|
1262
|
-
"id": id
|
|
1263
|
-
},
|
|
1264
|
-
body: requestBody,
|
|
1265
|
-
mediaType: "application/json"
|
|
1266
|
-
});
|
|
1267
|
-
}
|
|
1268
|
-
/**
|
|
1269
|
-
* @returns any Success
|
|
1270
|
-
* @throws ApiError
|
|
1271
|
-
*/
|
|
1272
|
-
static putDocumentByIdMove({
|
|
1273
|
-
id,
|
|
1274
|
-
requestBody
|
|
1275
|
-
}) {
|
|
1276
|
-
return request(OpenAPI, {
|
|
1277
|
-
method: "PUT",
|
|
1278
|
-
url: "/umbraco/management/api/v1/document/{id}/move",
|
|
1279
|
-
path: {
|
|
1280
|
-
"id": id
|
|
1281
|
-
},
|
|
1282
|
-
body: requestBody,
|
|
1283
|
-
mediaType: "application/json",
|
|
1284
|
-
errors: {
|
|
1285
|
-
400: `Bad Request`,
|
|
1286
|
-
404: `Not Found`
|
|
1287
|
-
}
|
|
1288
|
-
});
|
|
1289
|
-
}
|
|
1290
|
-
/**
|
|
1291
|
-
* @returns any Success
|
|
1292
|
-
* @throws ApiError
|
|
1293
|
-
*/
|
|
1294
|
-
static getDocumentByIdNotifications({
|
|
1295
|
-
id
|
|
1296
|
-
}) {
|
|
1297
|
-
return request(OpenAPI, {
|
|
1298
|
-
method: "GET",
|
|
1299
|
-
url: "/umbraco/management/api/v1/document/{id}/notifications",
|
|
1300
|
-
path: {
|
|
1301
|
-
"id": id
|
|
1302
|
-
},
|
|
1303
|
-
errors: {
|
|
1304
|
-
404: `Not Found`
|
|
1305
|
-
}
|
|
1306
|
-
});
|
|
1307
|
-
}
|
|
1308
|
-
/**
|
|
1309
|
-
* @returns any Success
|
|
1310
|
-
* @throws ApiError
|
|
1311
|
-
*/
|
|
1312
|
-
static putDocumentByIdNotifications({
|
|
1313
|
-
id,
|
|
1314
|
-
requestBody
|
|
1315
|
-
}) {
|
|
1316
|
-
return request(OpenAPI, {
|
|
1317
|
-
method: "PUT",
|
|
1318
|
-
url: "/umbraco/management/api/v1/document/{id}/notifications",
|
|
1319
|
-
path: {
|
|
1320
|
-
"id": id
|
|
1321
|
-
},
|
|
1322
|
-
body: requestBody,
|
|
1323
|
-
mediaType: "application/json",
|
|
1324
|
-
errors: {
|
|
1325
|
-
404: `Not Found`
|
|
1326
|
-
}
|
|
1327
|
-
});
|
|
1328
|
-
}
|
|
1329
|
-
/**
|
|
1330
|
-
* @returns any Success
|
|
1331
|
-
* @throws ApiError
|
|
1332
|
-
*/
|
|
1333
|
-
static getDocumentItem({
|
|
1334
|
-
id,
|
|
1335
|
-
dataTypeId,
|
|
1336
|
-
culture
|
|
1337
|
-
}) {
|
|
1338
|
-
return request(OpenAPI, {
|
|
1339
|
-
method: "GET",
|
|
1340
|
-
url: "/umbraco/management/api/v1/document/item",
|
|
1341
|
-
query: {
|
|
1342
|
-
"id": id,
|
|
1343
|
-
"dataTypeId": dataTypeId,
|
|
1344
|
-
"culture": culture
|
|
1345
|
-
}
|
|
1346
|
-
});
|
|
1347
|
-
}
|
|
1348
|
-
/**
|
|
1349
|
-
* @returns PagedRecycleBinItemResponseModel Success
|
|
1350
|
-
* @throws ApiError
|
|
1351
|
-
*/
|
|
1352
|
-
static getRecycleBinDocumentChildren({
|
|
1353
|
-
parentId,
|
|
1354
|
-
skip,
|
|
1355
|
-
take = 100
|
|
1356
|
-
}) {
|
|
1357
|
-
return request(OpenAPI, {
|
|
1358
|
-
method: "GET",
|
|
1359
|
-
url: "/umbraco/management/api/v1/recycle-bin/document/children",
|
|
1360
|
-
query: {
|
|
1361
|
-
"parentId": parentId,
|
|
1362
|
-
"skip": skip,
|
|
1363
|
-
"take": take
|
|
1364
|
-
},
|
|
1365
|
-
errors: {
|
|
1366
|
-
401: `Unauthorized`
|
|
1367
|
-
}
|
|
1368
|
-
});
|
|
1369
|
-
}
|
|
1370
|
-
/**
|
|
1371
|
-
* @returns PagedRecycleBinItemResponseModel Success
|
|
1372
|
-
* @throws ApiError
|
|
1373
|
-
*/
|
|
1374
|
-
static getRecycleBinDocumentRoot({
|
|
1375
|
-
skip,
|
|
1376
|
-
take = 100
|
|
1377
|
-
}) {
|
|
1378
|
-
return request(OpenAPI, {
|
|
1379
|
-
method: "GET",
|
|
1380
|
-
url: "/umbraco/management/api/v1/recycle-bin/document/root",
|
|
1381
|
-
query: {
|
|
1382
|
-
"skip": skip,
|
|
1383
|
-
"take": take
|
|
1384
|
-
},
|
|
1385
|
-
errors: {
|
|
1386
|
-
401: `Unauthorized`
|
|
1387
|
-
}
|
|
1388
|
-
});
|
|
1389
|
-
}
|
|
1390
|
-
/**
|
|
1391
|
-
* @returns PagedDocumentTreeItemResponseModel Success
|
|
1392
|
-
* @throws ApiError
|
|
1393
|
-
*/
|
|
1394
|
-
static getTreeDocumentChildren({
|
|
1395
|
-
parentId,
|
|
1396
|
-
skip,
|
|
1397
|
-
take = 100,
|
|
1398
|
-
dataTypeId,
|
|
1399
|
-
culture
|
|
1400
|
-
}) {
|
|
1401
|
-
return request(OpenAPI, {
|
|
1402
|
-
method: "GET",
|
|
1403
|
-
url: "/umbraco/management/api/v1/tree/document/children",
|
|
1404
|
-
query: {
|
|
1405
|
-
"parentId": parentId,
|
|
1406
|
-
"skip": skip,
|
|
1407
|
-
"take": take,
|
|
1408
|
-
"dataTypeId": dataTypeId,
|
|
1409
|
-
"culture": culture
|
|
1410
|
-
}
|
|
1411
|
-
});
|
|
1412
|
-
}
|
|
1413
|
-
/**
|
|
1414
|
-
* @returns PagedDocumentTreeItemResponseModel Success
|
|
1415
|
-
* @throws ApiError
|
|
1416
|
-
*/
|
|
1417
|
-
static getTreeDocumentRoot({
|
|
1418
|
-
skip,
|
|
1419
|
-
take = 100,
|
|
1420
|
-
dataTypeId,
|
|
1421
|
-
culture
|
|
1422
|
-
}) {
|
|
1423
|
-
return request(OpenAPI, {
|
|
1424
|
-
method: "GET",
|
|
1425
|
-
url: "/umbraco/management/api/v1/tree/document/root",
|
|
1426
|
-
query: {
|
|
1427
|
-
"skip": skip,
|
|
1428
|
-
"take": take,
|
|
1429
|
-
"dataTypeId": dataTypeId,
|
|
1430
|
-
"culture": culture
|
|
1431
|
-
}
|
|
1432
|
-
});
|
|
1433
|
-
}
|
|
1434
|
-
}
|
|
1435
|
-
|
|
1436
|
-
class DocumentBlueprintResource {
|
|
1437
|
-
/**
|
|
1438
|
-
* @returns any Success
|
|
1439
|
-
* @throws ApiError
|
|
1440
|
-
*/
|
|
1441
|
-
static getDocumentBlueprintItem({
|
|
1442
|
-
id
|
|
1443
|
-
}) {
|
|
1444
|
-
return request(OpenAPI, {
|
|
1445
|
-
method: "GET",
|
|
1446
|
-
url: "/umbraco/management/api/v1/document-blueprint/item",
|
|
1447
|
-
query: {
|
|
1448
|
-
"id": id
|
|
1449
|
-
}
|
|
1450
|
-
});
|
|
1451
|
-
}
|
|
1452
|
-
/**
|
|
1453
|
-
* @returns PagedDocumentBlueprintTreeItemResponseModel Success
|
|
1454
|
-
* @throws ApiError
|
|
1455
|
-
*/
|
|
1456
|
-
static getTreeDocumentBlueprintRoot({
|
|
1457
|
-
skip,
|
|
1458
|
-
take = 100
|
|
1459
|
-
}) {
|
|
1460
|
-
return request(OpenAPI, {
|
|
1461
|
-
method: "GET",
|
|
1462
|
-
url: "/umbraco/management/api/v1/tree/document-blueprint/root",
|
|
1463
|
-
query: {
|
|
1464
|
-
"skip": skip,
|
|
1465
|
-
"take": take
|
|
1466
|
-
}
|
|
1467
|
-
});
|
|
1468
|
-
}
|
|
1469
|
-
}
|
|
1470
|
-
|
|
1471
|
-
class DocumentTypeResource {
|
|
1472
|
-
/**
|
|
1473
|
-
* @returns any Success
|
|
1474
|
-
* @throws ApiError
|
|
1475
|
-
*/
|
|
1476
|
-
static getDocumentTypeById({
|
|
1477
|
-
id
|
|
1478
|
-
}) {
|
|
1479
|
-
return request(OpenAPI, {
|
|
1480
|
-
method: "GET",
|
|
1481
|
-
url: "/umbraco/management/api/v1/document-type/{id}",
|
|
1482
|
-
path: {
|
|
1483
|
-
"id": id
|
|
1484
|
-
},
|
|
1485
|
-
errors: {
|
|
1486
|
-
404: `Not Found`
|
|
1487
|
-
}
|
|
1488
|
-
});
|
|
1489
|
-
}
|
|
1490
|
-
/**
|
|
1491
|
-
* @returns any Success
|
|
1492
|
-
* @throws ApiError
|
|
1493
|
-
*/
|
|
1494
|
-
static getDocumentTypeItem({
|
|
1495
|
-
id
|
|
1496
|
-
}) {
|
|
1497
|
-
return request(OpenAPI, {
|
|
1498
|
-
method: "GET",
|
|
1499
|
-
url: "/umbraco/management/api/v1/document-type/item",
|
|
1500
|
-
query: {
|
|
1501
|
-
"id": id
|
|
1502
|
-
}
|
|
1503
|
-
});
|
|
1504
|
-
}
|
|
1505
|
-
/**
|
|
1506
|
-
* @returns PagedDocumentTypeTreeItemResponseModel Success
|
|
1507
|
-
* @throws ApiError
|
|
1508
|
-
*/
|
|
1509
|
-
static getTreeDocumentTypeChildren({
|
|
1510
|
-
parentId,
|
|
1511
|
-
skip,
|
|
1512
|
-
take = 100,
|
|
1513
|
-
foldersOnly = false
|
|
1514
|
-
}) {
|
|
1515
|
-
return request(OpenAPI, {
|
|
1516
|
-
method: "GET",
|
|
1517
|
-
url: "/umbraco/management/api/v1/tree/document-type/children",
|
|
1518
|
-
query: {
|
|
1519
|
-
"parentId": parentId,
|
|
1520
|
-
"skip": skip,
|
|
1521
|
-
"take": take,
|
|
1522
|
-
"foldersOnly": foldersOnly
|
|
1523
|
-
}
|
|
1524
|
-
});
|
|
1525
|
-
}
|
|
1526
|
-
/**
|
|
1527
|
-
* @returns PagedDocumentTypeTreeItemResponseModel Success
|
|
1528
|
-
* @throws ApiError
|
|
1529
|
-
*/
|
|
1530
|
-
static getTreeDocumentTypeRoot({
|
|
1531
|
-
skip,
|
|
1532
|
-
take = 100,
|
|
1533
|
-
foldersOnly = false
|
|
1534
|
-
}) {
|
|
1535
|
-
return request(OpenAPI, {
|
|
1536
|
-
method: "GET",
|
|
1537
|
-
url: "/umbraco/management/api/v1/tree/document-type/root",
|
|
1538
|
-
query: {
|
|
1539
|
-
"skip": skip,
|
|
1540
|
-
"take": take,
|
|
1541
|
-
"foldersOnly": foldersOnly
|
|
1542
|
-
}
|
|
1543
|
-
});
|
|
1544
|
-
}
|
|
1545
|
-
}
|
|
1546
|
-
|
|
1547
|
-
class HealthCheckResource {
|
|
1548
|
-
/**
|
|
1549
|
-
* @returns PagedHealthCheckGroupResponseModel Success
|
|
1550
|
-
* @throws ApiError
|
|
1551
|
-
*/
|
|
1552
|
-
static getHealthCheckGroup({
|
|
1553
|
-
skip,
|
|
1554
|
-
take = 100
|
|
1555
|
-
}) {
|
|
1556
|
-
return request(OpenAPI, {
|
|
1557
|
-
method: "GET",
|
|
1558
|
-
url: "/umbraco/management/api/v1/health-check-group",
|
|
1559
|
-
query: {
|
|
1560
|
-
"skip": skip,
|
|
1561
|
-
"take": take
|
|
1562
|
-
}
|
|
1563
|
-
});
|
|
1564
|
-
}
|
|
1565
|
-
/**
|
|
1566
|
-
* @returns any Success
|
|
1567
|
-
* @throws ApiError
|
|
1568
|
-
*/
|
|
1569
|
-
static getHealthCheckGroupByName({
|
|
1570
|
-
name
|
|
1571
|
-
}) {
|
|
1572
|
-
return request(OpenAPI, {
|
|
1573
|
-
method: "GET",
|
|
1574
|
-
url: "/umbraco/management/api/v1/health-check-group/{name}",
|
|
1575
|
-
path: {
|
|
1576
|
-
"name": name
|
|
1577
|
-
},
|
|
1578
|
-
errors: {
|
|
1579
|
-
404: `Not Found`
|
|
1580
|
-
}
|
|
1581
|
-
});
|
|
1582
|
-
}
|
|
1583
|
-
/**
|
|
1584
|
-
* @returns any Success
|
|
1585
|
-
* @throws ApiError
|
|
1586
|
-
*/
|
|
1587
|
-
static postHealthCheckGroupByNameCheck({
|
|
1588
|
-
name
|
|
1589
|
-
}) {
|
|
1590
|
-
return request(OpenAPI, {
|
|
1591
|
-
method: "POST",
|
|
1592
|
-
url: "/umbraco/management/api/v1/health-check-group/{name}/check",
|
|
1593
|
-
path: {
|
|
1594
|
-
"name": name
|
|
1595
|
-
},
|
|
1596
|
-
errors: {
|
|
1597
|
-
404: `Not Found`
|
|
1598
|
-
}
|
|
1599
|
-
});
|
|
1600
|
-
}
|
|
1601
|
-
/**
|
|
1602
|
-
* @returns any Success
|
|
1603
|
-
* @throws ApiError
|
|
1604
|
-
*/
|
|
1605
|
-
static postHealthCheckExecuteAction({
|
|
1606
|
-
requestBody
|
|
1607
|
-
}) {
|
|
1608
|
-
return request(OpenAPI, {
|
|
1609
|
-
method: "POST",
|
|
1610
|
-
url: "/umbraco/management/api/v1/health-check/execute-action",
|
|
1611
|
-
body: requestBody,
|
|
1612
|
-
mediaType: "application/json",
|
|
1613
|
-
errors: {
|
|
1614
|
-
400: `Bad Request`
|
|
1615
|
-
}
|
|
1616
|
-
});
|
|
1617
|
-
}
|
|
1618
|
-
}
|
|
1619
|
-
|
|
1620
|
-
class HelpResource {
|
|
1621
|
-
/**
|
|
1622
|
-
* @returns PagedHelpPageResponseModel Success
|
|
1623
|
-
* @throws ApiError
|
|
1624
|
-
*/
|
|
1625
|
-
static getHelp({
|
|
1626
|
-
section,
|
|
1627
|
-
tree,
|
|
1628
|
-
skip,
|
|
1629
|
-
take,
|
|
1630
|
-
baseUrl = "https://our.umbraco.com"
|
|
1631
|
-
}) {
|
|
1632
|
-
return request(OpenAPI, {
|
|
1633
|
-
method: "GET",
|
|
1634
|
-
url: "/umbraco/management/api/v1/help",
|
|
1635
|
-
query: {
|
|
1636
|
-
"section": section,
|
|
1637
|
-
"tree": tree,
|
|
1638
|
-
"skip": skip,
|
|
1639
|
-
"take": take,
|
|
1640
|
-
"baseUrl": baseUrl
|
|
1641
|
-
},
|
|
1642
|
-
errors: {
|
|
1643
|
-
400: `Bad Request`
|
|
1644
|
-
}
|
|
1645
|
-
});
|
|
1646
|
-
}
|
|
1647
|
-
}
|
|
1648
|
-
|
|
1649
|
-
class IndexerResource {
|
|
1650
|
-
/**
|
|
1651
|
-
* @returns PagedIndexResponseModel Success
|
|
1652
|
-
* @throws ApiError
|
|
1653
|
-
*/
|
|
1654
|
-
static getIndexer({
|
|
1655
|
-
skip,
|
|
1656
|
-
take
|
|
1657
|
-
}) {
|
|
1658
|
-
return request(OpenAPI, {
|
|
1659
|
-
method: "GET",
|
|
1660
|
-
url: "/umbraco/management/api/v1/indexer",
|
|
1661
|
-
query: {
|
|
1662
|
-
"skip": skip,
|
|
1663
|
-
"take": take
|
|
1664
|
-
}
|
|
1665
|
-
});
|
|
1666
|
-
}
|
|
1667
|
-
/**
|
|
1668
|
-
* @returns any Success
|
|
1669
|
-
* @throws ApiError
|
|
1670
|
-
*/
|
|
1671
|
-
static getIndexerByIndexName({
|
|
1672
|
-
indexName
|
|
1673
|
-
}) {
|
|
1674
|
-
return request(OpenAPI, {
|
|
1675
|
-
method: "GET",
|
|
1676
|
-
url: "/umbraco/management/api/v1/indexer/{indexName}",
|
|
1677
|
-
path: {
|
|
1678
|
-
"indexName": indexName
|
|
1679
|
-
},
|
|
1680
|
-
errors: {
|
|
1681
|
-
400: `Bad Request`
|
|
1682
|
-
}
|
|
1683
|
-
});
|
|
1684
|
-
}
|
|
1685
|
-
/**
|
|
1686
|
-
* @returns OkResultModel Success
|
|
1687
|
-
* @throws ApiError
|
|
1688
|
-
*/
|
|
1689
|
-
static postIndexerByIndexNameRebuild({
|
|
1690
|
-
indexName
|
|
1691
|
-
}) {
|
|
1692
|
-
return request(OpenAPI, {
|
|
1693
|
-
method: "POST",
|
|
1694
|
-
url: "/umbraco/management/api/v1/indexer/{indexName}/rebuild",
|
|
1695
|
-
path: {
|
|
1696
|
-
"indexName": indexName
|
|
1697
|
-
},
|
|
1698
|
-
errors: {
|
|
1699
|
-
400: `Bad Request`
|
|
1700
|
-
}
|
|
1701
|
-
});
|
|
1702
|
-
}
|
|
1703
|
-
}
|
|
1704
|
-
|
|
1705
|
-
class InstallResource {
|
|
1706
|
-
/**
|
|
1707
|
-
* @returns any Success
|
|
1708
|
-
* @throws ApiError
|
|
1709
|
-
*/
|
|
1710
|
-
static getInstallSettings() {
|
|
1711
|
-
return request(OpenAPI, {
|
|
1712
|
-
method: "GET",
|
|
1713
|
-
url: "/umbraco/management/api/v1/install/settings",
|
|
1714
|
-
errors: {
|
|
1715
|
-
400: `Bad Request`,
|
|
1716
|
-
428: `Client Error`
|
|
1717
|
-
}
|
|
1718
|
-
});
|
|
1719
|
-
}
|
|
1720
|
-
/**
|
|
1721
|
-
* @returns any Success
|
|
1722
|
-
* @throws ApiError
|
|
1723
|
-
*/
|
|
1724
|
-
static postInstallSetup({
|
|
1725
|
-
requestBody
|
|
1726
|
-
}) {
|
|
1727
|
-
return request(OpenAPI, {
|
|
1728
|
-
method: "POST",
|
|
1729
|
-
url: "/umbraco/management/api/v1/install/setup",
|
|
1730
|
-
body: requestBody,
|
|
1731
|
-
mediaType: "application/json",
|
|
1732
|
-
errors: {
|
|
1733
|
-
400: `Bad Request`,
|
|
1734
|
-
428: `Client Error`
|
|
1735
|
-
}
|
|
1736
|
-
});
|
|
1737
|
-
}
|
|
1738
|
-
/**
|
|
1739
|
-
* @returns any Success
|
|
1740
|
-
* @throws ApiError
|
|
1741
|
-
*/
|
|
1742
|
-
static postInstallValidateDatabase({
|
|
1743
|
-
requestBody
|
|
1744
|
-
}) {
|
|
1745
|
-
return request(OpenAPI, {
|
|
1746
|
-
method: "POST",
|
|
1747
|
-
url: "/umbraco/management/api/v1/install/validate-database",
|
|
1748
|
-
body: requestBody,
|
|
1749
|
-
mediaType: "application/json",
|
|
1750
|
-
errors: {
|
|
1751
|
-
400: `Bad Request`
|
|
1752
|
-
}
|
|
1753
|
-
});
|
|
1754
|
-
}
|
|
1755
|
-
}
|
|
1756
|
-
|
|
1757
|
-
class LanguageResource {
|
|
1758
|
-
/**
|
|
1759
|
-
* @returns PagedLanguageResponseModel Success
|
|
1760
|
-
* @throws ApiError
|
|
1761
|
-
*/
|
|
1762
|
-
static getLanguage({
|
|
1763
|
-
skip,
|
|
1764
|
-
take = 100
|
|
1765
|
-
}) {
|
|
1766
|
-
return request(OpenAPI, {
|
|
1767
|
-
method: "GET",
|
|
1768
|
-
url: "/umbraco/management/api/v1/language",
|
|
1769
|
-
query: {
|
|
1770
|
-
"skip": skip,
|
|
1771
|
-
"take": take
|
|
1772
|
-
}
|
|
1773
|
-
});
|
|
1774
|
-
}
|
|
1775
|
-
/**
|
|
1776
|
-
* @returns string Created
|
|
1777
|
-
* @throws ApiError
|
|
1778
|
-
*/
|
|
1779
|
-
static postLanguage({
|
|
1780
|
-
requestBody
|
|
1781
|
-
}) {
|
|
1782
|
-
return request(OpenAPI, {
|
|
1783
|
-
method: "POST",
|
|
1784
|
-
url: "/umbraco/management/api/v1/language",
|
|
1785
|
-
body: requestBody,
|
|
1786
|
-
mediaType: "application/json",
|
|
1787
|
-
responseHeader: "Location",
|
|
1788
|
-
errors: {
|
|
1789
|
-
400: `Bad Request`,
|
|
1790
|
-
404: `Not Found`
|
|
1791
|
-
}
|
|
1792
|
-
});
|
|
1793
|
-
}
|
|
1794
|
-
/**
|
|
1795
|
-
* @returns any Success
|
|
1796
|
-
* @throws ApiError
|
|
1797
|
-
*/
|
|
1798
|
-
static getLanguageByIsoCode({
|
|
1799
|
-
isoCode
|
|
1800
|
-
}) {
|
|
1801
|
-
return request(OpenAPI, {
|
|
1802
|
-
method: "GET",
|
|
1803
|
-
url: "/umbraco/management/api/v1/language/{isoCode}",
|
|
1804
|
-
path: {
|
|
1805
|
-
"isoCode": isoCode
|
|
1806
|
-
},
|
|
1807
|
-
errors: {
|
|
1808
|
-
404: `Not Found`
|
|
1809
|
-
}
|
|
1810
|
-
});
|
|
1811
|
-
}
|
|
1812
|
-
/**
|
|
1813
|
-
* @returns any Success
|
|
1814
|
-
* @throws ApiError
|
|
1815
|
-
*/
|
|
1816
|
-
static deleteLanguageByIsoCode({
|
|
1817
|
-
isoCode
|
|
1818
|
-
}) {
|
|
1819
|
-
return request(OpenAPI, {
|
|
1820
|
-
method: "DELETE",
|
|
1821
|
-
url: "/umbraco/management/api/v1/language/{isoCode}",
|
|
1822
|
-
path: {
|
|
1823
|
-
"isoCode": isoCode
|
|
1824
|
-
},
|
|
1825
|
-
errors: {
|
|
1826
|
-
400: `Bad Request`,
|
|
1827
|
-
404: `Not Found`
|
|
1828
|
-
}
|
|
1829
|
-
});
|
|
1830
|
-
}
|
|
1831
|
-
/**
|
|
1832
|
-
* @returns any Success
|
|
1833
|
-
* @throws ApiError
|
|
1834
|
-
*/
|
|
1835
|
-
static putLanguageByIsoCode({
|
|
1836
|
-
isoCode,
|
|
1837
|
-
requestBody
|
|
1838
|
-
}) {
|
|
1839
|
-
return request(OpenAPI, {
|
|
1840
|
-
method: "PUT",
|
|
1841
|
-
url: "/umbraco/management/api/v1/language/{isoCode}",
|
|
1842
|
-
path: {
|
|
1843
|
-
"isoCode": isoCode
|
|
1844
|
-
},
|
|
1845
|
-
body: requestBody,
|
|
1846
|
-
mediaType: "application/json",
|
|
1847
|
-
errors: {
|
|
1848
|
-
400: `Bad Request`,
|
|
1849
|
-
404: `Not Found`
|
|
1850
|
-
}
|
|
1851
|
-
});
|
|
1852
|
-
}
|
|
1853
|
-
/**
|
|
1854
|
-
* @returns any Success
|
|
1855
|
-
* @throws ApiError
|
|
1856
|
-
*/
|
|
1857
|
-
static getLanguageItem({
|
|
1858
|
-
isoCode
|
|
1859
|
-
}) {
|
|
1860
|
-
return request(OpenAPI, {
|
|
1861
|
-
method: "GET",
|
|
1862
|
-
url: "/umbraco/management/api/v1/language/item",
|
|
1863
|
-
query: {
|
|
1864
|
-
"isoCode": isoCode
|
|
1865
|
-
}
|
|
1866
|
-
});
|
|
1867
|
-
}
|
|
1868
|
-
}
|
|
1869
|
-
|
|
1870
|
-
class LogViewerResource {
|
|
1871
|
-
/**
|
|
1872
|
-
* @returns PagedLoggerResponseModel Success
|
|
1873
|
-
* @throws ApiError
|
|
1874
|
-
*/
|
|
1875
|
-
static getLogViewerLevel({
|
|
1876
|
-
skip,
|
|
1877
|
-
take = 100
|
|
1878
|
-
}) {
|
|
1879
|
-
return request(OpenAPI, {
|
|
1880
|
-
method: "GET",
|
|
1881
|
-
url: "/umbraco/management/api/v1/log-viewer/level",
|
|
1882
|
-
query: {
|
|
1883
|
-
"skip": skip,
|
|
1884
|
-
"take": take
|
|
1885
|
-
}
|
|
1886
|
-
});
|
|
1887
|
-
}
|
|
1888
|
-
/**
|
|
1889
|
-
* @returns any Success
|
|
1890
|
-
* @throws ApiError
|
|
1891
|
-
*/
|
|
1892
|
-
static getLogViewerLevelCount({
|
|
1893
|
-
startDate,
|
|
1894
|
-
endDate
|
|
1895
|
-
}) {
|
|
1896
|
-
return request(OpenAPI, {
|
|
1897
|
-
method: "GET",
|
|
1898
|
-
url: "/umbraco/management/api/v1/log-viewer/level-count",
|
|
1899
|
-
query: {
|
|
1900
|
-
"startDate": startDate,
|
|
1901
|
-
"endDate": endDate
|
|
1902
|
-
},
|
|
1903
|
-
errors: {
|
|
1904
|
-
400: `Bad Request`
|
|
1905
|
-
}
|
|
1906
|
-
});
|
|
1907
|
-
}
|
|
1908
|
-
/**
|
|
1909
|
-
* @returns PagedLogMessageResponseModel Success
|
|
1910
|
-
* @throws ApiError
|
|
1911
|
-
*/
|
|
1912
|
-
static getLogViewerLog({
|
|
1913
|
-
skip,
|
|
1914
|
-
take = 100,
|
|
1915
|
-
orderDirection,
|
|
1916
|
-
filterExpression,
|
|
1917
|
-
logLevel,
|
|
1918
|
-
startDate,
|
|
1919
|
-
endDate
|
|
1920
|
-
}) {
|
|
1921
|
-
return request(OpenAPI, {
|
|
1922
|
-
method: "GET",
|
|
1923
|
-
url: "/umbraco/management/api/v1/log-viewer/log",
|
|
1924
|
-
query: {
|
|
1925
|
-
"skip": skip,
|
|
1926
|
-
"take": take,
|
|
1927
|
-
"orderDirection": orderDirection,
|
|
1928
|
-
"filterExpression": filterExpression,
|
|
1929
|
-
"logLevel": logLevel,
|
|
1930
|
-
"startDate": startDate,
|
|
1931
|
-
"endDate": endDate
|
|
1932
|
-
}
|
|
1933
|
-
});
|
|
1934
|
-
}
|
|
1935
|
-
/**
|
|
1936
|
-
* @returns PagedLogTemplateResponseModel Success
|
|
1937
|
-
* @throws ApiError
|
|
1938
|
-
*/
|
|
1939
|
-
static getLogViewerMessageTemplate({
|
|
1940
|
-
skip,
|
|
1941
|
-
take = 100,
|
|
1942
|
-
startDate,
|
|
1943
|
-
endDate
|
|
1944
|
-
}) {
|
|
1945
|
-
return request(OpenAPI, {
|
|
1946
|
-
method: "GET",
|
|
1947
|
-
url: "/umbraco/management/api/v1/log-viewer/message-template",
|
|
1948
|
-
query: {
|
|
1949
|
-
"skip": skip,
|
|
1950
|
-
"take": take,
|
|
1951
|
-
"startDate": startDate,
|
|
1952
|
-
"endDate": endDate
|
|
1953
|
-
},
|
|
1954
|
-
errors: {
|
|
1955
|
-
400: `Bad Request`
|
|
1956
|
-
}
|
|
1957
|
-
});
|
|
1958
|
-
}
|
|
1959
|
-
/**
|
|
1960
|
-
* @returns PagedSavedLogSearchResponseModel Success
|
|
1961
|
-
* @throws ApiError
|
|
1962
|
-
*/
|
|
1963
|
-
static getLogViewerSavedSearch({
|
|
1964
|
-
skip,
|
|
1965
|
-
take = 100
|
|
1966
|
-
}) {
|
|
1967
|
-
return request(OpenAPI, {
|
|
1968
|
-
method: "GET",
|
|
1969
|
-
url: "/umbraco/management/api/v1/log-viewer/saved-search",
|
|
1970
|
-
query: {
|
|
1971
|
-
"skip": skip,
|
|
1972
|
-
"take": take
|
|
1973
|
-
}
|
|
1974
|
-
});
|
|
1975
|
-
}
|
|
1976
|
-
/**
|
|
1977
|
-
* @returns string Created
|
|
1978
|
-
* @throws ApiError
|
|
1979
|
-
*/
|
|
1980
|
-
static postLogViewerSavedSearch({
|
|
1981
|
-
requestBody
|
|
1982
|
-
}) {
|
|
1983
|
-
return request(OpenAPI, {
|
|
1984
|
-
method: "POST",
|
|
1985
|
-
url: "/umbraco/management/api/v1/log-viewer/saved-search",
|
|
1986
|
-
body: requestBody,
|
|
1987
|
-
mediaType: "application/json",
|
|
1988
|
-
responseHeader: "Location",
|
|
1989
|
-
errors: {
|
|
1990
|
-
400: `Bad Request`
|
|
1991
|
-
}
|
|
1992
|
-
});
|
|
1993
|
-
}
|
|
1994
|
-
/**
|
|
1995
|
-
* @returns any Success
|
|
1996
|
-
* @throws ApiError
|
|
1997
|
-
*/
|
|
1998
|
-
static getLogViewerSavedSearchByName({
|
|
1999
|
-
name
|
|
2000
|
-
}) {
|
|
2001
|
-
return request(OpenAPI, {
|
|
2002
|
-
method: "GET",
|
|
2003
|
-
url: "/umbraco/management/api/v1/log-viewer/saved-search/{name}",
|
|
2004
|
-
path: {
|
|
2005
|
-
"name": name
|
|
2006
|
-
},
|
|
2007
|
-
errors: {
|
|
2008
|
-
404: `Not Found`
|
|
2009
|
-
}
|
|
2010
|
-
});
|
|
2011
|
-
}
|
|
2012
|
-
/**
|
|
2013
|
-
* @returns any Success
|
|
2014
|
-
* @throws ApiError
|
|
2015
|
-
*/
|
|
2016
|
-
static deleteLogViewerSavedSearchByName({
|
|
2017
|
-
name
|
|
2018
|
-
}) {
|
|
2019
|
-
return request(OpenAPI, {
|
|
2020
|
-
method: "DELETE",
|
|
2021
|
-
url: "/umbraco/management/api/v1/log-viewer/saved-search/{name}",
|
|
2022
|
-
path: {
|
|
2023
|
-
"name": name
|
|
2024
|
-
},
|
|
2025
|
-
errors: {
|
|
2026
|
-
404: `Not Found`
|
|
2027
|
-
}
|
|
2028
|
-
});
|
|
2029
|
-
}
|
|
2030
|
-
/**
|
|
2031
|
-
* @returns any Success
|
|
2032
|
-
* @throws ApiError
|
|
2033
|
-
*/
|
|
2034
|
-
static getLogViewerValidateLogsSize({
|
|
2035
|
-
startDate,
|
|
2036
|
-
endDate
|
|
2037
|
-
}) {
|
|
2038
|
-
return request(OpenAPI, {
|
|
2039
|
-
method: "GET",
|
|
2040
|
-
url: "/umbraco/management/api/v1/log-viewer/validate-logs-size",
|
|
2041
|
-
query: {
|
|
2042
|
-
"startDate": startDate,
|
|
2043
|
-
"endDate": endDate
|
|
2044
|
-
},
|
|
2045
|
-
errors: {
|
|
2046
|
-
400: `Bad Request`
|
|
2047
|
-
}
|
|
2048
|
-
});
|
|
2049
|
-
}
|
|
2050
|
-
}
|
|
2051
|
-
|
|
2052
|
-
class MediaResource {
|
|
2053
|
-
/**
|
|
2054
|
-
* @returns string Created
|
|
2055
|
-
* @throws ApiError
|
|
2056
|
-
*/
|
|
2057
|
-
static postMedia({
|
|
2058
|
-
requestBody
|
|
2059
|
-
}) {
|
|
2060
|
-
return request(OpenAPI, {
|
|
2061
|
-
method: "POST",
|
|
2062
|
-
url: "/umbraco/management/api/v1/media",
|
|
2063
|
-
body: requestBody,
|
|
2064
|
-
mediaType: "application/json",
|
|
2065
|
-
responseHeader: "Location",
|
|
2066
|
-
errors: {
|
|
2067
|
-
400: `Bad Request`,
|
|
2068
|
-
404: `Not Found`
|
|
2069
|
-
}
|
|
2070
|
-
});
|
|
2071
|
-
}
|
|
2072
|
-
/**
|
|
2073
|
-
* @returns any Success
|
|
2074
|
-
* @throws ApiError
|
|
2075
|
-
*/
|
|
2076
|
-
static getMediaById({
|
|
2077
|
-
id
|
|
2078
|
-
}) {
|
|
2079
|
-
return request(OpenAPI, {
|
|
2080
|
-
method: "GET",
|
|
2081
|
-
url: "/umbraco/management/api/v1/media/{id}",
|
|
2082
|
-
path: {
|
|
2083
|
-
"id": id
|
|
2084
|
-
},
|
|
2085
|
-
errors: {
|
|
2086
|
-
404: `Not Found`
|
|
2087
|
-
}
|
|
2088
|
-
});
|
|
2089
|
-
}
|
|
2090
|
-
/**
|
|
2091
|
-
* @returns any Success
|
|
2092
|
-
* @throws ApiError
|
|
2093
|
-
*/
|
|
2094
|
-
static deleteMediaById({
|
|
2095
|
-
id
|
|
2096
|
-
}) {
|
|
2097
|
-
return request(OpenAPI, {
|
|
2098
|
-
method: "DELETE",
|
|
2099
|
-
url: "/umbraco/management/api/v1/media/{id}",
|
|
2100
|
-
path: {
|
|
2101
|
-
"id": id
|
|
2102
|
-
},
|
|
2103
|
-
errors: {
|
|
2104
|
-
400: `Bad Request`,
|
|
2105
|
-
404: `Not Found`
|
|
2106
|
-
}
|
|
2107
|
-
});
|
|
2108
|
-
}
|
|
2109
|
-
/**
|
|
2110
|
-
* @returns any Success
|
|
2111
|
-
* @throws ApiError
|
|
2112
|
-
*/
|
|
2113
|
-
static putMediaById({
|
|
2114
|
-
id,
|
|
2115
|
-
requestBody
|
|
2116
|
-
}) {
|
|
2117
|
-
return request(OpenAPI, {
|
|
2118
|
-
method: "PUT",
|
|
2119
|
-
url: "/umbraco/management/api/v1/media/{id}",
|
|
2120
|
-
path: {
|
|
2121
|
-
"id": id
|
|
2122
|
-
},
|
|
2123
|
-
body: requestBody,
|
|
2124
|
-
mediaType: "application/json",
|
|
2125
|
-
errors: {
|
|
2126
|
-
400: `Bad Request`,
|
|
2127
|
-
404: `Not Found`
|
|
2128
|
-
}
|
|
2129
|
-
});
|
|
2130
|
-
}
|
|
2131
|
-
/**
|
|
2132
|
-
* @returns any Success
|
|
2133
|
-
* @throws ApiError
|
|
2134
|
-
*/
|
|
2135
|
-
static putMediaByIdMove({
|
|
2136
|
-
id,
|
|
2137
|
-
requestBody
|
|
2138
|
-
}) {
|
|
2139
|
-
return request(OpenAPI, {
|
|
2140
|
-
method: "PUT",
|
|
2141
|
-
url: "/umbraco/management/api/v1/media/{id}/move",
|
|
2142
|
-
path: {
|
|
2143
|
-
"id": id
|
|
2144
|
-
},
|
|
2145
|
-
body: requestBody,
|
|
2146
|
-
mediaType: "application/json",
|
|
2147
|
-
errors: {
|
|
2148
|
-
400: `Bad Request`,
|
|
2149
|
-
404: `Not Found`
|
|
2150
|
-
}
|
|
2151
|
-
});
|
|
2152
|
-
}
|
|
2153
|
-
/**
|
|
2154
|
-
* @returns any Success
|
|
2155
|
-
* @throws ApiError
|
|
2156
|
-
*/
|
|
2157
|
-
static getMediaItem({
|
|
2158
|
-
id,
|
|
2159
|
-
dataTypeId
|
|
2160
|
-
}) {
|
|
2161
|
-
return request(OpenAPI, {
|
|
2162
|
-
method: "GET",
|
|
2163
|
-
url: "/umbraco/management/api/v1/media/item",
|
|
2164
|
-
query: {
|
|
2165
|
-
"id": id,
|
|
2166
|
-
"dataTypeId": dataTypeId
|
|
2167
|
-
}
|
|
2168
|
-
});
|
|
2169
|
-
}
|
|
2170
|
-
/**
|
|
2171
|
-
* @returns PagedRecycleBinItemResponseModel Success
|
|
2172
|
-
* @throws ApiError
|
|
2173
|
-
*/
|
|
2174
|
-
static getRecycleBinMediaChildren({
|
|
2175
|
-
parentId,
|
|
2176
|
-
skip,
|
|
2177
|
-
take = 100
|
|
2178
|
-
}) {
|
|
2179
|
-
return request(OpenAPI, {
|
|
2180
|
-
method: "GET",
|
|
2181
|
-
url: "/umbraco/management/api/v1/recycle-bin/media/children",
|
|
2182
|
-
query: {
|
|
2183
|
-
"parentId": parentId,
|
|
2184
|
-
"skip": skip,
|
|
2185
|
-
"take": take
|
|
2186
|
-
},
|
|
2187
|
-
errors: {
|
|
2188
|
-
401: `Unauthorized`
|
|
2189
|
-
}
|
|
2190
|
-
});
|
|
2191
|
-
}
|
|
2192
|
-
/**
|
|
2193
|
-
* @returns PagedRecycleBinItemResponseModel Success
|
|
2194
|
-
* @throws ApiError
|
|
2195
|
-
*/
|
|
2196
|
-
static getRecycleBinMediaRoot({
|
|
2197
|
-
skip,
|
|
2198
|
-
take = 100
|
|
2199
|
-
}) {
|
|
2200
|
-
return request(OpenAPI, {
|
|
2201
|
-
method: "GET",
|
|
2202
|
-
url: "/umbraco/management/api/v1/recycle-bin/media/root",
|
|
2203
|
-
query: {
|
|
2204
|
-
"skip": skip,
|
|
2205
|
-
"take": take
|
|
2206
|
-
},
|
|
2207
|
-
errors: {
|
|
2208
|
-
401: `Unauthorized`
|
|
2209
|
-
}
|
|
2210
|
-
});
|
|
2211
|
-
}
|
|
2212
|
-
/**
|
|
2213
|
-
* @returns PagedContentTreeItemResponseModel Success
|
|
2214
|
-
* @throws ApiError
|
|
2215
|
-
*/
|
|
2216
|
-
static getTreeMediaChildren({
|
|
2217
|
-
parentId,
|
|
2218
|
-
skip,
|
|
2219
|
-
take = 100,
|
|
2220
|
-
dataTypeId
|
|
2221
|
-
}) {
|
|
2222
|
-
return request(OpenAPI, {
|
|
2223
|
-
method: "GET",
|
|
2224
|
-
url: "/umbraco/management/api/v1/tree/media/children",
|
|
2225
|
-
query: {
|
|
2226
|
-
"parentId": parentId,
|
|
2227
|
-
"skip": skip,
|
|
2228
|
-
"take": take,
|
|
2229
|
-
"dataTypeId": dataTypeId
|
|
2230
|
-
}
|
|
2231
|
-
});
|
|
2232
|
-
}
|
|
2233
|
-
/**
|
|
2234
|
-
* @returns any Success
|
|
2235
|
-
* @throws ApiError
|
|
2236
|
-
*/
|
|
2237
|
-
static getTreeMediaItem({
|
|
2238
|
-
id,
|
|
2239
|
-
dataTypeId
|
|
2240
|
-
}) {
|
|
2241
|
-
return request(OpenAPI, {
|
|
2242
|
-
method: "GET",
|
|
2243
|
-
url: "/umbraco/management/api/v1/tree/media/item",
|
|
2244
|
-
query: {
|
|
2245
|
-
"id": id,
|
|
2246
|
-
"dataTypeId": dataTypeId
|
|
2247
|
-
}
|
|
2248
|
-
});
|
|
2249
|
-
}
|
|
2250
|
-
/**
|
|
2251
|
-
* @returns PagedContentTreeItemResponseModel Success
|
|
2252
|
-
* @throws ApiError
|
|
2253
|
-
*/
|
|
2254
|
-
static getTreeMediaRoot({
|
|
2255
|
-
skip,
|
|
2256
|
-
take = 100,
|
|
2257
|
-
dataTypeId
|
|
2258
|
-
}) {
|
|
2259
|
-
return request(OpenAPI, {
|
|
2260
|
-
method: "GET",
|
|
2261
|
-
url: "/umbraco/management/api/v1/tree/media/root",
|
|
2262
|
-
query: {
|
|
2263
|
-
"skip": skip,
|
|
2264
|
-
"take": take,
|
|
2265
|
-
"dataTypeId": dataTypeId
|
|
2266
|
-
}
|
|
2267
|
-
});
|
|
2268
|
-
}
|
|
2269
|
-
}
|
|
2270
|
-
|
|
2271
|
-
class MediaTypeResource {
|
|
2272
|
-
/**
|
|
2273
|
-
* @returns any Success
|
|
2274
|
-
* @throws ApiError
|
|
2275
|
-
*/
|
|
2276
|
-
static getMediaTypeById({
|
|
2277
|
-
id
|
|
2278
|
-
}) {
|
|
2279
|
-
return request(OpenAPI, {
|
|
2280
|
-
method: "GET",
|
|
2281
|
-
url: "/umbraco/management/api/v1/media-type/{id}",
|
|
2282
|
-
path: {
|
|
2283
|
-
"id": id
|
|
2284
|
-
},
|
|
2285
|
-
errors: {
|
|
2286
|
-
404: `Not Found`
|
|
2287
|
-
}
|
|
2288
|
-
});
|
|
2289
|
-
}
|
|
2290
|
-
/**
|
|
2291
|
-
* @returns any Success
|
|
2292
|
-
* @throws ApiError
|
|
2293
|
-
*/
|
|
2294
|
-
static getMediaTypeItem({
|
|
2295
|
-
id
|
|
2296
|
-
}) {
|
|
2297
|
-
return request(OpenAPI, {
|
|
2298
|
-
method: "GET",
|
|
2299
|
-
url: "/umbraco/management/api/v1/media-type/item",
|
|
2300
|
-
query: {
|
|
2301
|
-
"id": id
|
|
2302
|
-
}
|
|
2303
|
-
});
|
|
2304
|
-
}
|
|
2305
|
-
/**
|
|
2306
|
-
* @returns PagedFolderTreeItemResponseModel Success
|
|
2307
|
-
* @throws ApiError
|
|
2308
|
-
*/
|
|
2309
|
-
static getTreeMediaTypeChildren({
|
|
2310
|
-
parentId,
|
|
2311
|
-
skip,
|
|
2312
|
-
take = 100,
|
|
2313
|
-
foldersOnly = false
|
|
2314
|
-
}) {
|
|
2315
|
-
return request(OpenAPI, {
|
|
2316
|
-
method: "GET",
|
|
2317
|
-
url: "/umbraco/management/api/v1/tree/media-type/children",
|
|
2318
|
-
query: {
|
|
2319
|
-
"parentId": parentId,
|
|
2320
|
-
"skip": skip,
|
|
2321
|
-
"take": take,
|
|
2322
|
-
"foldersOnly": foldersOnly
|
|
2323
|
-
}
|
|
2324
|
-
});
|
|
2325
|
-
}
|
|
2326
|
-
/**
|
|
2327
|
-
* @returns PagedFolderTreeItemResponseModel Success
|
|
2328
|
-
* @throws ApiError
|
|
2329
|
-
*/
|
|
2330
|
-
static getTreeMediaTypeRoot({
|
|
2331
|
-
skip,
|
|
2332
|
-
take = 100,
|
|
2333
|
-
foldersOnly = false
|
|
2334
|
-
}) {
|
|
2335
|
-
return request(OpenAPI, {
|
|
2336
|
-
method: "GET",
|
|
2337
|
-
url: "/umbraco/management/api/v1/tree/media-type/root",
|
|
2338
|
-
query: {
|
|
2339
|
-
"skip": skip,
|
|
2340
|
-
"take": take,
|
|
2341
|
-
"foldersOnly": foldersOnly
|
|
2342
|
-
}
|
|
2343
|
-
});
|
|
2344
|
-
}
|
|
2345
|
-
}
|
|
2346
|
-
|
|
2347
|
-
class MemberResource {
|
|
2348
|
-
/**
|
|
2349
|
-
* @returns any Success
|
|
2350
|
-
* @throws ApiError
|
|
2351
|
-
*/
|
|
2352
|
-
static getMemberItem({
|
|
2353
|
-
id
|
|
2354
|
-
}) {
|
|
2355
|
-
return request(OpenAPI, {
|
|
2356
|
-
method: "GET",
|
|
2357
|
-
url: "/umbraco/management/api/v1/member/item",
|
|
2358
|
-
query: {
|
|
2359
|
-
"id": id
|
|
2360
|
-
}
|
|
2361
|
-
});
|
|
2362
|
-
}
|
|
2363
|
-
}
|
|
2364
|
-
|
|
2365
|
-
class MemberGroupResource {
|
|
2366
|
-
/**
|
|
2367
|
-
* @returns any Success
|
|
2368
|
-
* @throws ApiError
|
|
2369
|
-
*/
|
|
2370
|
-
static getMemberGroupItem({
|
|
2371
|
-
id
|
|
2372
|
-
}) {
|
|
2373
|
-
return request(OpenAPI, {
|
|
2374
|
-
method: "GET",
|
|
2375
|
-
url: "/umbraco/management/api/v1/member-group/item",
|
|
2376
|
-
query: {
|
|
2377
|
-
"id": id
|
|
2378
|
-
}
|
|
2379
|
-
});
|
|
2380
|
-
}
|
|
2381
|
-
/**
|
|
2382
|
-
* @returns PagedEntityTreeItemResponseModel Success
|
|
2383
|
-
* @throws ApiError
|
|
2384
|
-
*/
|
|
2385
|
-
static getTreeMemberGroupRoot({
|
|
2386
|
-
skip,
|
|
2387
|
-
take = 100
|
|
2388
|
-
}) {
|
|
2389
|
-
return request(OpenAPI, {
|
|
2390
|
-
method: "GET",
|
|
2391
|
-
url: "/umbraco/management/api/v1/tree/member-group/root",
|
|
2392
|
-
query: {
|
|
2393
|
-
"skip": skip,
|
|
2394
|
-
"take": take
|
|
2395
|
-
}
|
|
2396
|
-
});
|
|
2397
|
-
}
|
|
2398
|
-
}
|
|
2399
|
-
|
|
2400
|
-
class MemberTypeResource {
|
|
2401
|
-
/**
|
|
2402
|
-
* @returns any Success
|
|
2403
|
-
* @throws ApiError
|
|
2404
|
-
*/
|
|
2405
|
-
static getMemberTypeItem({
|
|
2406
|
-
id
|
|
2407
|
-
}) {
|
|
2408
|
-
return request(OpenAPI, {
|
|
2409
|
-
method: "GET",
|
|
2410
|
-
url: "/umbraco/management/api/v1/member-type/item",
|
|
2411
|
-
query: {
|
|
2412
|
-
"id": id
|
|
2413
|
-
}
|
|
2414
|
-
});
|
|
2415
|
-
}
|
|
2416
|
-
/**
|
|
2417
|
-
* @returns PagedEntityTreeItemResponseModel Success
|
|
2418
|
-
* @throws ApiError
|
|
2419
|
-
*/
|
|
2420
|
-
static getTreeMemberTypeRoot({
|
|
2421
|
-
skip,
|
|
2422
|
-
take = 100
|
|
2423
|
-
}) {
|
|
2424
|
-
return request(OpenAPI, {
|
|
2425
|
-
method: "GET",
|
|
2426
|
-
url: "/umbraco/management/api/v1/tree/member-type/root",
|
|
2427
|
-
query: {
|
|
2428
|
-
"skip": skip,
|
|
2429
|
-
"take": take
|
|
2430
|
-
}
|
|
2431
|
-
});
|
|
2432
|
-
}
|
|
2433
|
-
}
|
|
2434
|
-
|
|
2435
|
-
class ModelsBuilderResource {
|
|
2436
|
-
/**
|
|
2437
|
-
* @returns any Success
|
|
2438
|
-
* @throws ApiError
|
|
2439
|
-
*/
|
|
2440
|
-
static postModelsBuilderBuild() {
|
|
2441
|
-
return request(OpenAPI, {
|
|
2442
|
-
method: "POST",
|
|
2443
|
-
url: "/umbraco/management/api/v1/models-builder/build",
|
|
2444
|
-
errors: {
|
|
2445
|
-
428: `Client Error`
|
|
2446
|
-
}
|
|
2447
|
-
});
|
|
2448
|
-
}
|
|
2449
|
-
/**
|
|
2450
|
-
* @returns any Success
|
|
2451
|
-
* @throws ApiError
|
|
2452
|
-
*/
|
|
2453
|
-
static getModelsBuilderDashboard() {
|
|
2454
|
-
return request(OpenAPI, {
|
|
2455
|
-
method: "GET",
|
|
2456
|
-
url: "/umbraco/management/api/v1/models-builder/dashboard"
|
|
2457
|
-
});
|
|
2458
|
-
}
|
|
2459
|
-
/**
|
|
2460
|
-
* @returns any Success
|
|
2461
|
-
* @throws ApiError
|
|
2462
|
-
*/
|
|
2463
|
-
static getModelsBuilderStatus() {
|
|
2464
|
-
return request(OpenAPI, {
|
|
2465
|
-
method: "GET",
|
|
2466
|
-
url: "/umbraco/management/api/v1/models-builder/status"
|
|
2467
|
-
});
|
|
2468
|
-
}
|
|
2469
|
-
}
|
|
2470
|
-
|
|
2471
|
-
class ObjectTypesResource {
|
|
2472
|
-
/**
|
|
2473
|
-
* @returns PagedObjectTypeResponseModel Success
|
|
2474
|
-
* @throws ApiError
|
|
2475
|
-
*/
|
|
2476
|
-
static getObjectTypes({
|
|
2477
|
-
skip,
|
|
2478
|
-
take = 100
|
|
2479
|
-
}) {
|
|
2480
|
-
return request(OpenAPI, {
|
|
2481
|
-
method: "GET",
|
|
2482
|
-
url: "/umbraco/management/api/v1/object-types",
|
|
2483
|
-
query: {
|
|
2484
|
-
"skip": skip,
|
|
2485
|
-
"take": take
|
|
2486
|
-
}
|
|
2487
|
-
});
|
|
2488
|
-
}
|
|
2489
|
-
}
|
|
2490
|
-
|
|
2491
|
-
class PackageResource {
|
|
2492
|
-
/**
|
|
2493
|
-
* @returns any Success
|
|
2494
|
-
* @throws ApiError
|
|
2495
|
-
*/
|
|
2496
|
-
static postPackageByNameRunMigration({
|
|
2497
|
-
name
|
|
2498
|
-
}) {
|
|
2499
|
-
return request(OpenAPI, {
|
|
2500
|
-
method: "POST",
|
|
2501
|
-
url: "/umbraco/management/api/v1/package/{name}/run-migration",
|
|
2502
|
-
path: {
|
|
2503
|
-
"name": name
|
|
2504
|
-
},
|
|
2505
|
-
errors: {
|
|
2506
|
-
404: `Not Found`,
|
|
2507
|
-
409: `Conflict`
|
|
2508
|
-
}
|
|
2509
|
-
});
|
|
2510
|
-
}
|
|
2511
|
-
/**
|
|
2512
|
-
* @returns PagedPackageDefinitionResponseModel Success
|
|
2513
|
-
* @throws ApiError
|
|
2514
|
-
*/
|
|
2515
|
-
static getPackageCreated({
|
|
2516
|
-
skip,
|
|
2517
|
-
take = 100
|
|
2518
|
-
}) {
|
|
2519
|
-
return request(OpenAPI, {
|
|
2520
|
-
method: "GET",
|
|
2521
|
-
url: "/umbraco/management/api/v1/package/created",
|
|
2522
|
-
query: {
|
|
2523
|
-
"skip": skip,
|
|
2524
|
-
"take": take
|
|
2525
|
-
}
|
|
2526
|
-
});
|
|
2527
|
-
}
|
|
2528
|
-
/**
|
|
2529
|
-
* @returns string Created
|
|
2530
|
-
* @throws ApiError
|
|
2531
|
-
*/
|
|
2532
|
-
static postPackageCreated({
|
|
2533
|
-
requestBody
|
|
2534
|
-
}) {
|
|
2535
|
-
return request(OpenAPI, {
|
|
2536
|
-
method: "POST",
|
|
2537
|
-
url: "/umbraco/management/api/v1/package/created",
|
|
2538
|
-
body: requestBody,
|
|
2539
|
-
mediaType: "application/json",
|
|
2540
|
-
responseHeader: "Location",
|
|
2541
|
-
errors: {
|
|
2542
|
-
400: `Bad Request`,
|
|
2543
|
-
404: `Not Found`
|
|
2544
|
-
}
|
|
2545
|
-
});
|
|
2546
|
-
}
|
|
2547
|
-
/**
|
|
2548
|
-
* @returns any Success
|
|
2549
|
-
* @throws ApiError
|
|
2550
|
-
*/
|
|
2551
|
-
static getPackageCreatedById({
|
|
2552
|
-
id
|
|
2553
|
-
}) {
|
|
2554
|
-
return request(OpenAPI, {
|
|
2555
|
-
method: "GET",
|
|
2556
|
-
url: "/umbraco/management/api/v1/package/created/{id}",
|
|
2557
|
-
path: {
|
|
2558
|
-
"id": id
|
|
2559
|
-
},
|
|
2560
|
-
errors: {
|
|
2561
|
-
404: `Not Found`
|
|
2562
|
-
}
|
|
2563
|
-
});
|
|
2564
|
-
}
|
|
2565
|
-
/**
|
|
2566
|
-
* @returns any Success
|
|
2567
|
-
* @throws ApiError
|
|
2568
|
-
*/
|
|
2569
|
-
static deletePackageCreatedById({
|
|
2570
|
-
id
|
|
2571
|
-
}) {
|
|
2572
|
-
return request(OpenAPI, {
|
|
2573
|
-
method: "DELETE",
|
|
2574
|
-
url: "/umbraco/management/api/v1/package/created/{id}",
|
|
2575
|
-
path: {
|
|
2576
|
-
"id": id
|
|
2577
|
-
},
|
|
2578
|
-
errors: {
|
|
2579
|
-
404: `Not Found`
|
|
2580
|
-
}
|
|
2581
|
-
});
|
|
2582
|
-
}
|
|
2583
|
-
/**
|
|
2584
|
-
* @returns any Success
|
|
2585
|
-
* @throws ApiError
|
|
2586
|
-
*/
|
|
2587
|
-
static putPackageCreatedById({
|
|
2588
|
-
id,
|
|
2589
|
-
requestBody
|
|
2590
|
-
}) {
|
|
2591
|
-
return request(OpenAPI, {
|
|
2592
|
-
method: "PUT",
|
|
2593
|
-
url: "/umbraco/management/api/v1/package/created/{id}",
|
|
2594
|
-
path: {
|
|
2595
|
-
"id": id
|
|
2596
|
-
},
|
|
2597
|
-
body: requestBody,
|
|
2598
|
-
mediaType: "application/json",
|
|
2599
|
-
errors: {
|
|
2600
|
-
404: `Not Found`
|
|
2601
|
-
}
|
|
2602
|
-
});
|
|
2603
|
-
}
|
|
2604
|
-
/**
|
|
2605
|
-
* @returns binary Success
|
|
2606
|
-
* @throws ApiError
|
|
2607
|
-
*/
|
|
2608
|
-
static getPackageCreatedByIdDownload({
|
|
2609
|
-
id
|
|
2610
|
-
}) {
|
|
2611
|
-
return request(OpenAPI, {
|
|
2612
|
-
method: "GET",
|
|
2613
|
-
url: "/umbraco/management/api/v1/package/created/{id}/download",
|
|
2614
|
-
path: {
|
|
2615
|
-
"id": id
|
|
2616
|
-
},
|
|
2617
|
-
errors: {
|
|
2618
|
-
404: `Not Found`
|
|
2619
|
-
}
|
|
2620
|
-
});
|
|
2621
|
-
}
|
|
2622
|
-
/**
|
|
2623
|
-
* @returns any Success
|
|
2624
|
-
* @throws ApiError
|
|
2625
|
-
*/
|
|
2626
|
-
static getPackageManifest() {
|
|
2627
|
-
return request(OpenAPI, {
|
|
2628
|
-
method: "GET",
|
|
2629
|
-
url: "/umbraco/management/api/v1/package/manifest"
|
|
2630
|
-
});
|
|
2631
|
-
}
|
|
2632
|
-
/**
|
|
2633
|
-
* @returns PagedPackageMigrationStatusResponseModel Success
|
|
2634
|
-
* @throws ApiError
|
|
2635
|
-
*/
|
|
2636
|
-
static getPackageMigrationStatus({
|
|
2637
|
-
skip,
|
|
2638
|
-
take = 100
|
|
2639
|
-
}) {
|
|
2640
|
-
return request(OpenAPI, {
|
|
2641
|
-
method: "GET",
|
|
2642
|
-
url: "/umbraco/management/api/v1/package/migration-status",
|
|
2643
|
-
query: {
|
|
2644
|
-
"skip": skip,
|
|
2645
|
-
"take": take
|
|
2646
|
-
}
|
|
2647
|
-
});
|
|
2648
|
-
}
|
|
2649
|
-
}
|
|
2650
|
-
|
|
2651
|
-
class PartialViewResource {
|
|
2652
|
-
/**
|
|
2653
|
-
* @returns any Success
|
|
2654
|
-
* @throws ApiError
|
|
2655
|
-
*/
|
|
2656
|
-
static getPartialView({
|
|
2657
|
-
path
|
|
2658
|
-
}) {
|
|
2659
|
-
return request(OpenAPI, {
|
|
2660
|
-
method: "GET",
|
|
2661
|
-
url: "/umbraco/management/api/v1/partial-view",
|
|
2662
|
-
query: {
|
|
2663
|
-
"path": path
|
|
2664
|
-
}
|
|
2665
|
-
});
|
|
2666
|
-
}
|
|
2667
|
-
/**
|
|
2668
|
-
* @returns string Created
|
|
2669
|
-
* @throws ApiError
|
|
2670
|
-
*/
|
|
2671
|
-
static postPartialView({
|
|
2672
|
-
requestBody
|
|
2673
|
-
}) {
|
|
2674
|
-
return request(OpenAPI, {
|
|
2675
|
-
method: "POST",
|
|
2676
|
-
url: "/umbraco/management/api/v1/partial-view",
|
|
2677
|
-
body: requestBody,
|
|
2678
|
-
mediaType: "application/json",
|
|
2679
|
-
responseHeader: "Location"
|
|
2680
|
-
});
|
|
2681
|
-
}
|
|
2682
|
-
/**
|
|
2683
|
-
* @returns any Success
|
|
2684
|
-
* @throws ApiError
|
|
2685
|
-
*/
|
|
2686
|
-
static deletePartialView({
|
|
2687
|
-
path
|
|
2688
|
-
}) {
|
|
2689
|
-
return request(OpenAPI, {
|
|
2690
|
-
method: "DELETE",
|
|
2691
|
-
url: "/umbraco/management/api/v1/partial-view",
|
|
2692
|
-
query: {
|
|
2693
|
-
"path": path
|
|
2694
|
-
}
|
|
2695
|
-
});
|
|
2696
|
-
}
|
|
2697
|
-
/**
|
|
2698
|
-
* @returns any Success
|
|
2699
|
-
* @throws ApiError
|
|
2700
|
-
*/
|
|
2701
|
-
static putPartialView({
|
|
2702
|
-
requestBody
|
|
2703
|
-
}) {
|
|
2704
|
-
return request(OpenAPI, {
|
|
2705
|
-
method: "PUT",
|
|
2706
|
-
url: "/umbraco/management/api/v1/partial-view",
|
|
2707
|
-
body: requestBody,
|
|
2708
|
-
mediaType: "application/json"
|
|
2709
|
-
});
|
|
2710
|
-
}
|
|
2711
|
-
/**
|
|
2712
|
-
* @returns any Success
|
|
2713
|
-
* @throws ApiError
|
|
2714
|
-
*/
|
|
2715
|
-
static getPartialViewFolder({
|
|
2716
|
-
path
|
|
2717
|
-
}) {
|
|
2718
|
-
return request(OpenAPI, {
|
|
2719
|
-
method: "GET",
|
|
2720
|
-
url: "/umbraco/management/api/v1/partial-view/folder",
|
|
2721
|
-
query: {
|
|
2722
|
-
"path": path
|
|
2723
|
-
}
|
|
2724
|
-
});
|
|
2725
|
-
}
|
|
2726
|
-
/**
|
|
2727
|
-
* @returns any Success
|
|
2728
|
-
* @throws ApiError
|
|
2729
|
-
*/
|
|
2730
|
-
static postPartialViewFolder({
|
|
2731
|
-
requestBody
|
|
2732
|
-
}) {
|
|
2733
|
-
return request(OpenAPI, {
|
|
2734
|
-
method: "POST",
|
|
2735
|
-
url: "/umbraco/management/api/v1/partial-view/folder",
|
|
2736
|
-
body: requestBody,
|
|
2737
|
-
mediaType: "application/json"
|
|
2738
|
-
});
|
|
2739
|
-
}
|
|
2740
|
-
/**
|
|
2741
|
-
* @returns any Success
|
|
2742
|
-
* @throws ApiError
|
|
2743
|
-
*/
|
|
2744
|
-
static deletePartialViewFolder({
|
|
2745
|
-
path
|
|
2746
|
-
}) {
|
|
2747
|
-
return request(OpenAPI, {
|
|
2748
|
-
method: "DELETE",
|
|
2749
|
-
url: "/umbraco/management/api/v1/partial-view/folder",
|
|
2750
|
-
query: {
|
|
2751
|
-
"path": path
|
|
2752
|
-
}
|
|
2753
|
-
});
|
|
2754
|
-
}
|
|
2755
|
-
/**
|
|
2756
|
-
* @returns any Success
|
|
2757
|
-
* @throws ApiError
|
|
2758
|
-
*/
|
|
2759
|
-
static getPartialViewItem({
|
|
2760
|
-
id
|
|
2761
|
-
}) {
|
|
2762
|
-
return request(OpenAPI, {
|
|
2763
|
-
method: "GET",
|
|
2764
|
-
url: "/umbraco/management/api/v1/partial-view/item",
|
|
2765
|
-
query: {
|
|
2766
|
-
"id": id
|
|
2767
|
-
}
|
|
2768
|
-
});
|
|
2769
|
-
}
|
|
2770
|
-
/**
|
|
2771
|
-
* @returns PagedSnippetItemResponseModel Success
|
|
2772
|
-
* @throws ApiError
|
|
2773
|
-
*/
|
|
2774
|
-
static getPartialViewSnippet({
|
|
2775
|
-
skip,
|
|
2776
|
-
take = 100
|
|
2777
|
-
}) {
|
|
2778
|
-
return request(OpenAPI, {
|
|
2779
|
-
method: "GET",
|
|
2780
|
-
url: "/umbraco/management/api/v1/partial-view/snippet",
|
|
2781
|
-
query: {
|
|
2782
|
-
"skip": skip,
|
|
2783
|
-
"take": take
|
|
2784
|
-
}
|
|
2785
|
-
});
|
|
2786
|
-
}
|
|
2787
|
-
/**
|
|
2788
|
-
* @returns any Success
|
|
2789
|
-
* @throws ApiError
|
|
2790
|
-
*/
|
|
2791
|
-
static getPartialViewSnippetByName({
|
|
2792
|
-
name
|
|
2793
|
-
}) {
|
|
2794
|
-
return request(OpenAPI, {
|
|
2795
|
-
method: "GET",
|
|
2796
|
-
url: "/umbraco/management/api/v1/partial-view/snippet/{name}",
|
|
2797
|
-
path: {
|
|
2798
|
-
"name": name
|
|
2799
|
-
}
|
|
2800
|
-
});
|
|
2801
|
-
}
|
|
2802
|
-
/**
|
|
2803
|
-
* @returns PagedFileSystemTreeItemPresentationModel Success
|
|
2804
|
-
* @throws ApiError
|
|
2805
|
-
*/
|
|
2806
|
-
static getTreePartialViewChildren({
|
|
2807
|
-
path,
|
|
2808
|
-
skip,
|
|
2809
|
-
take = 100
|
|
2810
|
-
}) {
|
|
2811
|
-
return request(OpenAPI, {
|
|
2812
|
-
method: "GET",
|
|
2813
|
-
url: "/umbraco/management/api/v1/tree/partial-view/children",
|
|
2814
|
-
query: {
|
|
2815
|
-
"path": path,
|
|
2816
|
-
"skip": skip,
|
|
2817
|
-
"take": take
|
|
2818
|
-
}
|
|
2819
|
-
});
|
|
2820
|
-
}
|
|
2821
|
-
/**
|
|
2822
|
-
* @returns PagedFileSystemTreeItemPresentationModel Success
|
|
2823
|
-
* @throws ApiError
|
|
2824
|
-
*/
|
|
2825
|
-
static getTreePartialViewRoot({
|
|
2826
|
-
skip,
|
|
2827
|
-
take = 100
|
|
2828
|
-
}) {
|
|
2829
|
-
return request(OpenAPI, {
|
|
2830
|
-
method: "GET",
|
|
2831
|
-
url: "/umbraco/management/api/v1/tree/partial-view/root",
|
|
2832
|
-
query: {
|
|
2833
|
-
"skip": skip,
|
|
2834
|
-
"take": take
|
|
2835
|
-
}
|
|
2836
|
-
});
|
|
2837
|
-
}
|
|
2838
|
-
}
|
|
2839
|
-
|
|
2840
|
-
class ProfilingResource {
|
|
2841
|
-
/**
|
|
2842
|
-
* @returns any Success
|
|
2843
|
-
* @throws ApiError
|
|
2844
|
-
*/
|
|
2845
|
-
static getProfilingStatus() {
|
|
2846
|
-
return request(OpenAPI, {
|
|
2847
|
-
method: "GET",
|
|
2848
|
-
url: "/umbraco/management/api/v1/profiling/status"
|
|
2849
|
-
});
|
|
2850
|
-
}
|
|
2851
|
-
/**
|
|
2852
|
-
* @returns any Success
|
|
2853
|
-
* @throws ApiError
|
|
2854
|
-
*/
|
|
2855
|
-
static putProfilingStatus({
|
|
2856
|
-
requestBody
|
|
2857
|
-
}) {
|
|
2858
|
-
return request(OpenAPI, {
|
|
2859
|
-
method: "PUT",
|
|
2860
|
-
url: "/umbraco/management/api/v1/profiling/status",
|
|
2861
|
-
body: requestBody,
|
|
2862
|
-
mediaType: "application/json"
|
|
2863
|
-
});
|
|
2864
|
-
}
|
|
2865
|
-
}
|
|
2866
|
-
|
|
2867
|
-
class PropertyTypeResource {
|
|
2868
|
-
/**
|
|
2869
|
-
* @returns PagedBooleanModel Success
|
|
2870
|
-
* @throws ApiError
|
|
2871
|
-
*/
|
|
2872
|
-
static getPropertyTypeIsUsed({
|
|
2873
|
-
contentTypeId,
|
|
2874
|
-
propertyAlias
|
|
2875
|
-
}) {
|
|
2876
|
-
return request(OpenAPI, {
|
|
2877
|
-
method: "GET",
|
|
2878
|
-
url: "/umbraco/management/api/v1/property-type/is-used",
|
|
2879
|
-
query: {
|
|
2880
|
-
"contentTypeId": contentTypeId,
|
|
2881
|
-
"propertyAlias": propertyAlias
|
|
2882
|
-
},
|
|
2883
|
-
errors: {
|
|
2884
|
-
400: `Bad Request`
|
|
2885
|
-
}
|
|
2886
|
-
});
|
|
2887
|
-
}
|
|
2888
|
-
}
|
|
2889
|
-
|
|
2890
|
-
class PublishedCacheResource {
|
|
2891
|
-
/**
|
|
2892
|
-
* @returns any Success
|
|
2893
|
-
* @throws ApiError
|
|
2894
|
-
*/
|
|
2895
|
-
static postPublishedCacheCollect() {
|
|
2896
|
-
return request(OpenAPI, {
|
|
2897
|
-
method: "POST",
|
|
2898
|
-
url: "/umbraco/management/api/v1/published-cache/collect"
|
|
2899
|
-
});
|
|
2900
|
-
}
|
|
2901
|
-
/**
|
|
2902
|
-
* @returns any Success
|
|
2903
|
-
* @throws ApiError
|
|
2904
|
-
*/
|
|
2905
|
-
static postPublishedCacheRebuild() {
|
|
2906
|
-
return request(OpenAPI, {
|
|
2907
|
-
method: "POST",
|
|
2908
|
-
url: "/umbraco/management/api/v1/published-cache/rebuild"
|
|
2909
|
-
});
|
|
2910
|
-
}
|
|
2911
|
-
/**
|
|
2912
|
-
* @returns any Success
|
|
2913
|
-
* @throws ApiError
|
|
2914
|
-
*/
|
|
2915
|
-
static postPublishedCacheReload() {
|
|
2916
|
-
return request(OpenAPI, {
|
|
2917
|
-
method: "POST",
|
|
2918
|
-
url: "/umbraco/management/api/v1/published-cache/reload"
|
|
2919
|
-
});
|
|
2920
|
-
}
|
|
2921
|
-
/**
|
|
2922
|
-
* @returns string Success
|
|
2923
|
-
* @throws ApiError
|
|
2924
|
-
*/
|
|
2925
|
-
static getPublishedCacheStatus() {
|
|
2926
|
-
return request(OpenAPI, {
|
|
2927
|
-
method: "GET",
|
|
2928
|
-
url: "/umbraco/management/api/v1/published-cache/status"
|
|
2929
|
-
});
|
|
2930
|
-
}
|
|
2931
|
-
}
|
|
2932
|
-
|
|
2933
|
-
class RedirectManagementResource {
|
|
2934
|
-
/**
|
|
2935
|
-
* @returns PagedRedirectUrlResponseModel Success
|
|
2936
|
-
* @throws ApiError
|
|
2937
|
-
*/
|
|
2938
|
-
static getRedirectManagement({
|
|
2939
|
-
filter,
|
|
2940
|
-
skip,
|
|
2941
|
-
take
|
|
2942
|
-
}) {
|
|
2943
|
-
return request(OpenAPI, {
|
|
2944
|
-
method: "GET",
|
|
2945
|
-
url: "/umbraco/management/api/v1/redirect-management",
|
|
2946
|
-
query: {
|
|
2947
|
-
"filter": filter,
|
|
2948
|
-
"skip": skip,
|
|
2949
|
-
"take": take
|
|
2950
|
-
},
|
|
2951
|
-
errors: {
|
|
2952
|
-
400: `Bad Request`
|
|
2953
|
-
}
|
|
2954
|
-
});
|
|
2955
|
-
}
|
|
2956
|
-
/**
|
|
2957
|
-
* @returns PagedRedirectUrlResponseModel Success
|
|
2958
|
-
* @throws ApiError
|
|
2959
|
-
*/
|
|
2960
|
-
static getRedirectManagementById({
|
|
2961
|
-
id,
|
|
2962
|
-
skip,
|
|
2963
|
-
take
|
|
2964
|
-
}) {
|
|
2965
|
-
return request(OpenAPI, {
|
|
2966
|
-
method: "GET",
|
|
2967
|
-
url: "/umbraco/management/api/v1/redirect-management/{id}",
|
|
2968
|
-
path: {
|
|
2969
|
-
"id": id
|
|
2970
|
-
},
|
|
2971
|
-
query: {
|
|
2972
|
-
"skip": skip,
|
|
2973
|
-
"take": take
|
|
2974
|
-
}
|
|
2975
|
-
});
|
|
2976
|
-
}
|
|
2977
|
-
/**
|
|
2978
|
-
* @returns any Success
|
|
2979
|
-
* @throws ApiError
|
|
2980
|
-
*/
|
|
2981
|
-
static deleteRedirectManagementById({
|
|
2982
|
-
id
|
|
2983
|
-
}) {
|
|
2984
|
-
return request(OpenAPI, {
|
|
2985
|
-
method: "DELETE",
|
|
2986
|
-
url: "/umbraco/management/api/v1/redirect-management/{id}",
|
|
2987
|
-
path: {
|
|
2988
|
-
"id": id
|
|
2989
|
-
}
|
|
2990
|
-
});
|
|
2991
|
-
}
|
|
2992
|
-
/**
|
|
2993
|
-
* @returns any Success
|
|
2994
|
-
* @throws ApiError
|
|
2995
|
-
*/
|
|
2996
|
-
static getRedirectManagementStatus() {
|
|
2997
|
-
return request(OpenAPI, {
|
|
2998
|
-
method: "GET",
|
|
2999
|
-
url: "/umbraco/management/api/v1/redirect-management/status"
|
|
3000
|
-
});
|
|
3001
|
-
}
|
|
3002
|
-
/**
|
|
3003
|
-
* @returns any Success
|
|
3004
|
-
* @throws ApiError
|
|
3005
|
-
*/
|
|
3006
|
-
static postRedirectManagementStatus({
|
|
3007
|
-
status
|
|
3008
|
-
}) {
|
|
3009
|
-
return request(OpenAPI, {
|
|
3010
|
-
method: "POST",
|
|
3011
|
-
url: "/umbraco/management/api/v1/redirect-management/status",
|
|
3012
|
-
query: {
|
|
3013
|
-
"status": status
|
|
3014
|
-
}
|
|
3015
|
-
});
|
|
3016
|
-
}
|
|
3017
|
-
}
|
|
3018
|
-
|
|
3019
|
-
class RelationResource {
|
|
3020
|
-
/**
|
|
3021
|
-
* @returns any Success
|
|
3022
|
-
* @throws ApiError
|
|
3023
|
-
*/
|
|
3024
|
-
static getRelationById({
|
|
3025
|
-
id
|
|
3026
|
-
}) {
|
|
3027
|
-
return request(OpenAPI, {
|
|
3028
|
-
method: "GET",
|
|
3029
|
-
url: "/umbraco/management/api/v1/relation/{id}",
|
|
3030
|
-
path: {
|
|
3031
|
-
"id": id
|
|
3032
|
-
},
|
|
3033
|
-
errors: {
|
|
3034
|
-
404: `Not Found`
|
|
3035
|
-
}
|
|
3036
|
-
});
|
|
3037
|
-
}
|
|
3038
|
-
/**
|
|
3039
|
-
* @returns PagedRelationResponseModel Success
|
|
3040
|
-
* @throws ApiError
|
|
3041
|
-
*/
|
|
3042
|
-
static getRelationChildRelationByChildId({
|
|
3043
|
-
childId,
|
|
3044
|
-
skip,
|
|
3045
|
-
take,
|
|
3046
|
-
relationTypeAlias = ""
|
|
3047
|
-
}) {
|
|
3048
|
-
return request(OpenAPI, {
|
|
3049
|
-
method: "GET",
|
|
3050
|
-
url: "/umbraco/management/api/v1/relation/child-relation/{childId}",
|
|
3051
|
-
path: {
|
|
3052
|
-
"childId": childId
|
|
3053
|
-
},
|
|
3054
|
-
query: {
|
|
3055
|
-
"skip": skip,
|
|
3056
|
-
"take": take,
|
|
3057
|
-
"relationTypeAlias": relationTypeAlias
|
|
3058
|
-
}
|
|
3059
|
-
});
|
|
3060
|
-
}
|
|
3061
|
-
/**
|
|
3062
|
-
* @returns PagedRelationResponseModel Success
|
|
3063
|
-
* @throws ApiError
|
|
3064
|
-
*/
|
|
3065
|
-
static getRelationTypeById({
|
|
3066
|
-
id,
|
|
3067
|
-
skip,
|
|
3068
|
-
take = 100
|
|
3069
|
-
}) {
|
|
3070
|
-
return request(OpenAPI, {
|
|
3071
|
-
method: "GET",
|
|
3072
|
-
url: "/umbraco/management/api/v1/relation/type/{id}",
|
|
3073
|
-
path: {
|
|
3074
|
-
"id": id
|
|
3075
|
-
},
|
|
3076
|
-
query: {
|
|
3077
|
-
"skip": skip,
|
|
3078
|
-
"take": take
|
|
3079
|
-
}
|
|
3080
|
-
});
|
|
3081
|
-
}
|
|
3082
|
-
}
|
|
3083
|
-
|
|
3084
|
-
class RelationTypeResource {
|
|
3085
|
-
/**
|
|
3086
|
-
* @returns string Created
|
|
3087
|
-
* @throws ApiError
|
|
3088
|
-
*/
|
|
3089
|
-
static postRelationType({
|
|
3090
|
-
requestBody
|
|
3091
|
-
}) {
|
|
3092
|
-
return request(OpenAPI, {
|
|
3093
|
-
method: "POST",
|
|
3094
|
-
url: "/umbraco/management/api/v1/relation-type",
|
|
3095
|
-
body: requestBody,
|
|
3096
|
-
mediaType: "application/json",
|
|
3097
|
-
responseHeader: "Location",
|
|
3098
|
-
errors: {
|
|
3099
|
-
400: `Bad Request`
|
|
3100
|
-
}
|
|
3101
|
-
});
|
|
3102
|
-
}
|
|
3103
|
-
/**
|
|
3104
|
-
* @returns any Success
|
|
3105
|
-
* @throws ApiError
|
|
3106
|
-
*/
|
|
3107
|
-
static getRelationTypeById({
|
|
3108
|
-
id
|
|
3109
|
-
}) {
|
|
3110
|
-
return request(OpenAPI, {
|
|
3111
|
-
method: "GET",
|
|
3112
|
-
url: "/umbraco/management/api/v1/relation-type/{id}",
|
|
3113
|
-
path: {
|
|
3114
|
-
"id": id
|
|
3115
|
-
},
|
|
3116
|
-
errors: {
|
|
3117
|
-
404: `Not Found`
|
|
3118
|
-
}
|
|
3119
|
-
});
|
|
3120
|
-
}
|
|
3121
|
-
/**
|
|
3122
|
-
* @returns any Success
|
|
3123
|
-
* @throws ApiError
|
|
3124
|
-
*/
|
|
3125
|
-
static deleteRelationTypeById({
|
|
3126
|
-
id
|
|
3127
|
-
}) {
|
|
3128
|
-
return request(OpenAPI, {
|
|
3129
|
-
method: "DELETE",
|
|
3130
|
-
url: "/umbraco/management/api/v1/relation-type/{id}",
|
|
3131
|
-
path: {
|
|
3132
|
-
"id": id
|
|
3133
|
-
},
|
|
3134
|
-
errors: {
|
|
3135
|
-
404: `Not Found`
|
|
3136
|
-
}
|
|
3137
|
-
});
|
|
3138
|
-
}
|
|
3139
|
-
/**
|
|
3140
|
-
* @returns any Success
|
|
3141
|
-
* @throws ApiError
|
|
3142
|
-
*/
|
|
3143
|
-
static putRelationTypeById({
|
|
3144
|
-
id,
|
|
3145
|
-
requestBody
|
|
3146
|
-
}) {
|
|
3147
|
-
return request(OpenAPI, {
|
|
3148
|
-
method: "PUT",
|
|
3149
|
-
url: "/umbraco/management/api/v1/relation-type/{id}",
|
|
3150
|
-
path: {
|
|
3151
|
-
"id": id
|
|
3152
|
-
},
|
|
3153
|
-
body: requestBody,
|
|
3154
|
-
mediaType: "application/json",
|
|
3155
|
-
errors: {
|
|
3156
|
-
400: `Bad Request`,
|
|
3157
|
-
404: `Not Found`
|
|
3158
|
-
}
|
|
3159
|
-
});
|
|
3160
|
-
}
|
|
3161
|
-
/**
|
|
3162
|
-
* @returns any Success
|
|
3163
|
-
* @throws ApiError
|
|
3164
|
-
*/
|
|
3165
|
-
static getRelationTypeItem({
|
|
3166
|
-
id
|
|
3167
|
-
}) {
|
|
3168
|
-
return request(OpenAPI, {
|
|
3169
|
-
method: "GET",
|
|
3170
|
-
url: "/umbraco/management/api/v1/relation-type/item",
|
|
3171
|
-
query: {
|
|
3172
|
-
"id": id
|
|
3173
|
-
}
|
|
3174
|
-
});
|
|
3175
|
-
}
|
|
3176
|
-
/**
|
|
3177
|
-
* @returns PagedEntityTreeItemResponseModel Success
|
|
3178
|
-
* @throws ApiError
|
|
3179
|
-
*/
|
|
3180
|
-
static getTreeRelationTypeRoot({
|
|
3181
|
-
skip,
|
|
3182
|
-
take = 100
|
|
3183
|
-
}) {
|
|
3184
|
-
return request(OpenAPI, {
|
|
3185
|
-
method: "GET",
|
|
3186
|
-
url: "/umbraco/management/api/v1/tree/relation-type/root",
|
|
3187
|
-
query: {
|
|
3188
|
-
"skip": skip,
|
|
3189
|
-
"take": take
|
|
3190
|
-
}
|
|
3191
|
-
});
|
|
3192
|
-
}
|
|
3193
|
-
}
|
|
3194
|
-
|
|
3195
|
-
class ScriptResource {
|
|
3196
|
-
/**
|
|
3197
|
-
* @returns any Success
|
|
3198
|
-
* @throws ApiError
|
|
3199
|
-
*/
|
|
3200
|
-
static getScript({
|
|
3201
|
-
path
|
|
3202
|
-
}) {
|
|
3203
|
-
return request(OpenAPI, {
|
|
3204
|
-
method: "GET",
|
|
3205
|
-
url: "/umbraco/management/api/v1/script",
|
|
3206
|
-
query: {
|
|
3207
|
-
"path": path
|
|
3208
|
-
}
|
|
3209
|
-
});
|
|
3210
|
-
}
|
|
3211
|
-
/**
|
|
3212
|
-
* @returns string Created
|
|
3213
|
-
* @throws ApiError
|
|
3214
|
-
*/
|
|
3215
|
-
static postScript({
|
|
3216
|
-
requestBody
|
|
3217
|
-
}) {
|
|
3218
|
-
return request(OpenAPI, {
|
|
3219
|
-
method: "POST",
|
|
3220
|
-
url: "/umbraco/management/api/v1/script",
|
|
3221
|
-
body: requestBody,
|
|
3222
|
-
mediaType: "application/json",
|
|
3223
|
-
responseHeader: "Location"
|
|
3224
|
-
});
|
|
3225
|
-
}
|
|
3226
|
-
/**
|
|
3227
|
-
* @returns any Success
|
|
3228
|
-
* @throws ApiError
|
|
3229
|
-
*/
|
|
3230
|
-
static deleteScript({
|
|
3231
|
-
path
|
|
3232
|
-
}) {
|
|
3233
|
-
return request(OpenAPI, {
|
|
3234
|
-
method: "DELETE",
|
|
3235
|
-
url: "/umbraco/management/api/v1/script",
|
|
3236
|
-
query: {
|
|
3237
|
-
"path": path
|
|
3238
|
-
}
|
|
3239
|
-
});
|
|
3240
|
-
}
|
|
3241
|
-
/**
|
|
3242
|
-
* @returns any Success
|
|
3243
|
-
* @throws ApiError
|
|
3244
|
-
*/
|
|
3245
|
-
static putScript({
|
|
3246
|
-
requestBody
|
|
3247
|
-
}) {
|
|
3248
|
-
return request(OpenAPI, {
|
|
3249
|
-
method: "PUT",
|
|
3250
|
-
url: "/umbraco/management/api/v1/script",
|
|
3251
|
-
body: requestBody,
|
|
3252
|
-
mediaType: "application/json"
|
|
3253
|
-
});
|
|
3254
|
-
}
|
|
3255
|
-
/**
|
|
3256
|
-
* @returns any Success
|
|
3257
|
-
* @throws ApiError
|
|
3258
|
-
*/
|
|
3259
|
-
static getScriptFolder({
|
|
3260
|
-
path
|
|
3261
|
-
}) {
|
|
3262
|
-
return request(OpenAPI, {
|
|
3263
|
-
method: "GET",
|
|
3264
|
-
url: "/umbraco/management/api/v1/script/folder",
|
|
3265
|
-
query: {
|
|
3266
|
-
"path": path
|
|
3267
|
-
}
|
|
3268
|
-
});
|
|
3269
|
-
}
|
|
3270
|
-
/**
|
|
3271
|
-
* @returns any Success
|
|
3272
|
-
* @throws ApiError
|
|
3273
|
-
*/
|
|
3274
|
-
static postScriptFolder({
|
|
3275
|
-
requestBody
|
|
3276
|
-
}) {
|
|
3277
|
-
return request(OpenAPI, {
|
|
3278
|
-
method: "POST",
|
|
3279
|
-
url: "/umbraco/management/api/v1/script/folder",
|
|
3280
|
-
body: requestBody,
|
|
3281
|
-
mediaType: "application/json"
|
|
3282
|
-
});
|
|
3283
|
-
}
|
|
3284
|
-
/**
|
|
3285
|
-
* @returns any Success
|
|
3286
|
-
* @throws ApiError
|
|
3287
|
-
*/
|
|
3288
|
-
static deleteScriptFolder({
|
|
3289
|
-
path
|
|
3290
|
-
}) {
|
|
3291
|
-
return request(OpenAPI, {
|
|
3292
|
-
method: "DELETE",
|
|
3293
|
-
url: "/umbraco/management/api/v1/script/folder",
|
|
3294
|
-
query: {
|
|
3295
|
-
"path": path
|
|
3296
|
-
}
|
|
3297
|
-
});
|
|
3298
|
-
}
|
|
3299
|
-
/**
|
|
3300
|
-
* @returns any Success
|
|
3301
|
-
* @throws ApiError
|
|
3302
|
-
*/
|
|
3303
|
-
static getScriptItem({
|
|
3304
|
-
path
|
|
3305
|
-
}) {
|
|
3306
|
-
return request(OpenAPI, {
|
|
3307
|
-
method: "GET",
|
|
3308
|
-
url: "/umbraco/management/api/v1/script/item",
|
|
3309
|
-
query: {
|
|
3310
|
-
"path": path
|
|
3311
|
-
}
|
|
3312
|
-
});
|
|
3313
|
-
}
|
|
3314
|
-
/**
|
|
3315
|
-
* @returns PagedFileSystemTreeItemPresentationModel Success
|
|
3316
|
-
* @throws ApiError
|
|
3317
|
-
*/
|
|
3318
|
-
static getTreeScriptChildren({
|
|
3319
|
-
path,
|
|
3320
|
-
skip,
|
|
3321
|
-
take = 100
|
|
3322
|
-
}) {
|
|
3323
|
-
return request(OpenAPI, {
|
|
3324
|
-
method: "GET",
|
|
3325
|
-
url: "/umbraco/management/api/v1/tree/script/children",
|
|
3326
|
-
query: {
|
|
3327
|
-
"path": path,
|
|
3328
|
-
"skip": skip,
|
|
3329
|
-
"take": take
|
|
3330
|
-
}
|
|
3331
|
-
});
|
|
3332
|
-
}
|
|
3333
|
-
/**
|
|
3334
|
-
* @returns PagedFileSystemTreeItemPresentationModel Success
|
|
3335
|
-
* @throws ApiError
|
|
3336
|
-
*/
|
|
3337
|
-
static getTreeScriptRoot({
|
|
3338
|
-
skip,
|
|
3339
|
-
take = 100
|
|
3340
|
-
}) {
|
|
3341
|
-
return request(OpenAPI, {
|
|
3342
|
-
method: "GET",
|
|
3343
|
-
url: "/umbraco/management/api/v1/tree/script/root",
|
|
3344
|
-
query: {
|
|
3345
|
-
"skip": skip,
|
|
3346
|
-
"take": take
|
|
3347
|
-
}
|
|
3348
|
-
});
|
|
3349
|
-
}
|
|
3350
|
-
}
|
|
3351
|
-
|
|
3352
|
-
class SearcherResource {
|
|
3353
|
-
/**
|
|
3354
|
-
* @returns PagedSearcherResponseModel Success
|
|
3355
|
-
* @throws ApiError
|
|
3356
|
-
*/
|
|
3357
|
-
static getSearcher({
|
|
3358
|
-
skip,
|
|
3359
|
-
take
|
|
3360
|
-
}) {
|
|
3361
|
-
return request(OpenAPI, {
|
|
3362
|
-
method: "GET",
|
|
3363
|
-
url: "/umbraco/management/api/v1/searcher",
|
|
3364
|
-
query: {
|
|
3365
|
-
"skip": skip,
|
|
3366
|
-
"take": take
|
|
3367
|
-
}
|
|
3368
|
-
});
|
|
3369
|
-
}
|
|
3370
|
-
/**
|
|
3371
|
-
* @returns PagedSearchResultResponseModel Success
|
|
3372
|
-
* @throws ApiError
|
|
3373
|
-
*/
|
|
3374
|
-
static getSearcherBySearcherNameQuery({
|
|
3375
|
-
searcherName,
|
|
3376
|
-
term,
|
|
3377
|
-
skip,
|
|
3378
|
-
take
|
|
3379
|
-
}) {
|
|
3380
|
-
return request(OpenAPI, {
|
|
3381
|
-
method: "GET",
|
|
3382
|
-
url: "/umbraco/management/api/v1/searcher/{searcherName}/query",
|
|
3383
|
-
path: {
|
|
3384
|
-
"searcherName": searcherName
|
|
3385
|
-
},
|
|
3386
|
-
query: {
|
|
3387
|
-
"term": term,
|
|
3388
|
-
"skip": skip,
|
|
3389
|
-
"take": take
|
|
3390
|
-
},
|
|
3391
|
-
errors: {
|
|
3392
|
-
404: `Not Found`
|
|
3393
|
-
}
|
|
3394
|
-
});
|
|
3395
|
-
}
|
|
3396
|
-
}
|
|
3397
|
-
|
|
3398
|
-
class SecurityResource {
|
|
3399
|
-
/**
|
|
3400
|
-
* @returns any Success
|
|
3401
|
-
* @throws ApiError
|
|
3402
|
-
*/
|
|
3403
|
-
static getSecurityBackOfficeAuthorize() {
|
|
3404
|
-
return request(OpenAPI, {
|
|
3405
|
-
method: "GET",
|
|
3406
|
-
url: "/umbraco/management/api/v1/security/back-office/authorize"
|
|
3407
|
-
});
|
|
3408
|
-
}
|
|
3409
|
-
/**
|
|
3410
|
-
* @returns any Success
|
|
3411
|
-
* @throws ApiError
|
|
3412
|
-
*/
|
|
3413
|
-
static postSecurityBackOfficeLogin({
|
|
3414
|
-
requestBody
|
|
3415
|
-
}) {
|
|
3416
|
-
return request(OpenAPI, {
|
|
3417
|
-
method: "POST",
|
|
3418
|
-
url: "/umbraco/management/api/v1/security/back-office/login",
|
|
3419
|
-
body: requestBody,
|
|
3420
|
-
mediaType: "application/json"
|
|
3421
|
-
});
|
|
3422
|
-
}
|
|
3423
|
-
}
|
|
3424
|
-
|
|
3425
|
-
class ServerResource {
|
|
3426
|
-
/**
|
|
3427
|
-
* @returns any Success
|
|
3428
|
-
* @throws ApiError
|
|
3429
|
-
*/
|
|
3430
|
-
static getServerStatus() {
|
|
3431
|
-
return request(OpenAPI, {
|
|
3432
|
-
method: "GET",
|
|
3433
|
-
url: "/umbraco/management/api/v1/server/status",
|
|
3434
|
-
errors: {
|
|
3435
|
-
400: `Bad Request`
|
|
3436
|
-
}
|
|
3437
|
-
});
|
|
3438
|
-
}
|
|
3439
|
-
/**
|
|
3440
|
-
* @returns any Success
|
|
3441
|
-
* @throws ApiError
|
|
3442
|
-
*/
|
|
3443
|
-
static getServerVersion() {
|
|
3444
|
-
return request(OpenAPI, {
|
|
3445
|
-
method: "GET",
|
|
3446
|
-
url: "/umbraco/management/api/v1/server/version",
|
|
3447
|
-
errors: {
|
|
3448
|
-
400: `Bad Request`
|
|
3449
|
-
}
|
|
3450
|
-
});
|
|
3451
|
-
}
|
|
3452
|
-
}
|
|
3453
|
-
|
|
3454
|
-
class StaticFileResource {
|
|
3455
|
-
/**
|
|
3456
|
-
* @returns any Success
|
|
3457
|
-
* @throws ApiError
|
|
3458
|
-
*/
|
|
3459
|
-
static getStaticFileItem({
|
|
3460
|
-
path
|
|
3461
|
-
}) {
|
|
3462
|
-
return request(OpenAPI, {
|
|
3463
|
-
method: "GET",
|
|
3464
|
-
url: "/umbraco/management/api/v1/static-file/item",
|
|
3465
|
-
query: {
|
|
3466
|
-
"path": path
|
|
3467
|
-
}
|
|
3468
|
-
});
|
|
3469
|
-
}
|
|
3470
|
-
/**
|
|
3471
|
-
* @returns PagedFileSystemTreeItemPresentationModel Success
|
|
3472
|
-
* @throws ApiError
|
|
3473
|
-
*/
|
|
3474
|
-
static getTreeStaticFileChildren({
|
|
3475
|
-
path,
|
|
3476
|
-
skip,
|
|
3477
|
-
take = 100
|
|
3478
|
-
}) {
|
|
3479
|
-
return request(OpenAPI, {
|
|
3480
|
-
method: "GET",
|
|
3481
|
-
url: "/umbraco/management/api/v1/tree/static-file/children",
|
|
3482
|
-
query: {
|
|
3483
|
-
"path": path,
|
|
3484
|
-
"skip": skip,
|
|
3485
|
-
"take": take
|
|
3486
|
-
}
|
|
3487
|
-
});
|
|
3488
|
-
}
|
|
3489
|
-
/**
|
|
3490
|
-
* @returns PagedFileSystemTreeItemPresentationModel Success
|
|
3491
|
-
* @throws ApiError
|
|
3492
|
-
*/
|
|
3493
|
-
static getTreeStaticFileRoot({
|
|
3494
|
-
skip,
|
|
3495
|
-
take = 100
|
|
3496
|
-
}) {
|
|
3497
|
-
return request(OpenAPI, {
|
|
3498
|
-
method: "GET",
|
|
3499
|
-
url: "/umbraco/management/api/v1/tree/static-file/root",
|
|
3500
|
-
query: {
|
|
3501
|
-
"skip": skip,
|
|
3502
|
-
"take": take
|
|
3503
|
-
}
|
|
3504
|
-
});
|
|
3505
|
-
}
|
|
3506
|
-
}
|
|
3507
|
-
|
|
3508
|
-
class StylesheetResource {
|
|
3509
|
-
/**
|
|
3510
|
-
* @returns any Success
|
|
3511
|
-
* @throws ApiError
|
|
3512
|
-
*/
|
|
3513
|
-
static getStylesheet({
|
|
3514
|
-
path
|
|
3515
|
-
}) {
|
|
3516
|
-
return request(OpenAPI, {
|
|
3517
|
-
method: "GET",
|
|
3518
|
-
url: "/umbraco/management/api/v1/stylesheet",
|
|
3519
|
-
query: {
|
|
3520
|
-
"path": path
|
|
3521
|
-
}
|
|
3522
|
-
});
|
|
3523
|
-
}
|
|
3524
|
-
/**
|
|
3525
|
-
* @returns string Created
|
|
3526
|
-
* @throws ApiError
|
|
3527
|
-
*/
|
|
3528
|
-
static postStylesheet({
|
|
3529
|
-
requestBody
|
|
3530
|
-
}) {
|
|
3531
|
-
return request(OpenAPI, {
|
|
3532
|
-
method: "POST",
|
|
3533
|
-
url: "/umbraco/management/api/v1/stylesheet",
|
|
3534
|
-
body: requestBody,
|
|
3535
|
-
mediaType: "application/json",
|
|
3536
|
-
responseHeader: "Location"
|
|
3537
|
-
});
|
|
3538
|
-
}
|
|
3539
|
-
/**
|
|
3540
|
-
* @returns any Success
|
|
3541
|
-
* @throws ApiError
|
|
3542
|
-
*/
|
|
3543
|
-
static deleteStylesheet({
|
|
3544
|
-
path
|
|
3545
|
-
}) {
|
|
3546
|
-
return request(OpenAPI, {
|
|
3547
|
-
method: "DELETE",
|
|
3548
|
-
url: "/umbraco/management/api/v1/stylesheet",
|
|
3549
|
-
query: {
|
|
3550
|
-
"path": path
|
|
3551
|
-
}
|
|
3552
|
-
});
|
|
3553
|
-
}
|
|
3554
|
-
/**
|
|
3555
|
-
* @returns any Success
|
|
3556
|
-
* @throws ApiError
|
|
3557
|
-
*/
|
|
3558
|
-
static putStylesheet({
|
|
3559
|
-
requestBody
|
|
3560
|
-
}) {
|
|
3561
|
-
return request(OpenAPI, {
|
|
3562
|
-
method: "PUT",
|
|
3563
|
-
url: "/umbraco/management/api/v1/stylesheet",
|
|
3564
|
-
body: requestBody,
|
|
3565
|
-
mediaType: "application/json"
|
|
3566
|
-
});
|
|
3567
|
-
}
|
|
3568
|
-
/**
|
|
3569
|
-
* @returns PagedStylesheetOverviewResponseModel Success
|
|
3570
|
-
* @throws ApiError
|
|
3571
|
-
*/
|
|
3572
|
-
static getStylesheetAll({
|
|
3573
|
-
skip,
|
|
3574
|
-
take = 100
|
|
3575
|
-
}) {
|
|
3576
|
-
return request(OpenAPI, {
|
|
3577
|
-
method: "GET",
|
|
3578
|
-
url: "/umbraco/management/api/v1/stylesheet/all",
|
|
3579
|
-
query: {
|
|
3580
|
-
"skip": skip,
|
|
3581
|
-
"take": take
|
|
3582
|
-
}
|
|
3583
|
-
});
|
|
3584
|
-
}
|
|
3585
|
-
/**
|
|
3586
|
-
* @returns any Success
|
|
3587
|
-
* @throws ApiError
|
|
3588
|
-
*/
|
|
3589
|
-
static getStylesheetFolder({
|
|
3590
|
-
path
|
|
3591
|
-
}) {
|
|
3592
|
-
return request(OpenAPI, {
|
|
3593
|
-
method: "GET",
|
|
3594
|
-
url: "/umbraco/management/api/v1/stylesheet/folder",
|
|
3595
|
-
query: {
|
|
3596
|
-
"path": path
|
|
3597
|
-
}
|
|
3598
|
-
});
|
|
3599
|
-
}
|
|
3600
|
-
/**
|
|
3601
|
-
* @returns any Success
|
|
3602
|
-
* @throws ApiError
|
|
3603
|
-
*/
|
|
3604
|
-
static postStylesheetFolder({
|
|
3605
|
-
requestBody
|
|
3606
|
-
}) {
|
|
3607
|
-
return request(OpenAPI, {
|
|
3608
|
-
method: "POST",
|
|
3609
|
-
url: "/umbraco/management/api/v1/stylesheet/folder",
|
|
3610
|
-
body: requestBody,
|
|
3611
|
-
mediaType: "application/json"
|
|
3612
|
-
});
|
|
3613
|
-
}
|
|
3614
|
-
/**
|
|
3615
|
-
* @returns any Success
|
|
3616
|
-
* @throws ApiError
|
|
3617
|
-
*/
|
|
3618
|
-
static deleteStylesheetFolder({
|
|
3619
|
-
path
|
|
3620
|
-
}) {
|
|
3621
|
-
return request(OpenAPI, {
|
|
3622
|
-
method: "DELETE",
|
|
3623
|
-
url: "/umbraco/management/api/v1/stylesheet/folder",
|
|
3624
|
-
query: {
|
|
3625
|
-
"path": path
|
|
3626
|
-
}
|
|
3627
|
-
});
|
|
3628
|
-
}
|
|
3629
|
-
/**
|
|
3630
|
-
* @returns any Success
|
|
3631
|
-
* @throws ApiError
|
|
3632
|
-
*/
|
|
3633
|
-
static getStylesheetItem({
|
|
3634
|
-
path
|
|
3635
|
-
}) {
|
|
3636
|
-
return request(OpenAPI, {
|
|
3637
|
-
method: "GET",
|
|
3638
|
-
url: "/umbraco/management/api/v1/stylesheet/item",
|
|
3639
|
-
query: {
|
|
3640
|
-
"path": path
|
|
3641
|
-
}
|
|
3642
|
-
});
|
|
3643
|
-
}
|
|
3644
|
-
/**
|
|
3645
|
-
* @returns any Success
|
|
3646
|
-
* @throws ApiError
|
|
3647
|
-
*/
|
|
3648
|
-
static postStylesheetRichTextExtractRules({
|
|
3649
|
-
requestBody
|
|
3650
|
-
}) {
|
|
3651
|
-
return request(OpenAPI, {
|
|
3652
|
-
method: "POST",
|
|
3653
|
-
url: "/umbraco/management/api/v1/stylesheet/rich-text/extract-rules",
|
|
3654
|
-
body: requestBody,
|
|
3655
|
-
mediaType: "application/json"
|
|
3656
|
-
});
|
|
3657
|
-
}
|
|
3658
|
-
/**
|
|
3659
|
-
* @returns any Success
|
|
3660
|
-
* @throws ApiError
|
|
3661
|
-
*/
|
|
3662
|
-
static postStylesheetRichTextInterpolateRules({
|
|
3663
|
-
requestBody
|
|
3664
|
-
}) {
|
|
3665
|
-
return request(OpenAPI, {
|
|
3666
|
-
method: "POST",
|
|
3667
|
-
url: "/umbraco/management/api/v1/stylesheet/rich-text/interpolate-rules",
|
|
3668
|
-
body: requestBody,
|
|
3669
|
-
mediaType: "application/json"
|
|
3670
|
-
});
|
|
3671
|
-
}
|
|
3672
|
-
/**
|
|
3673
|
-
* @returns any Success
|
|
3674
|
-
* @throws ApiError
|
|
3675
|
-
*/
|
|
3676
|
-
static getStylesheetRichTextRules({
|
|
3677
|
-
path
|
|
3678
|
-
}) {
|
|
3679
|
-
return request(OpenAPI, {
|
|
3680
|
-
method: "GET",
|
|
3681
|
-
url: "/umbraco/management/api/v1/stylesheet/rich-text/rules",
|
|
3682
|
-
query: {
|
|
3683
|
-
"path": path
|
|
3684
|
-
}
|
|
3685
|
-
});
|
|
3686
|
-
}
|
|
3687
|
-
/**
|
|
3688
|
-
* @returns PagedFileSystemTreeItemPresentationModel Success
|
|
3689
|
-
* @throws ApiError
|
|
3690
|
-
*/
|
|
3691
|
-
static getTreeStylesheetChildren({
|
|
3692
|
-
path,
|
|
3693
|
-
skip,
|
|
3694
|
-
take = 100
|
|
3695
|
-
}) {
|
|
3696
|
-
return request(OpenAPI, {
|
|
3697
|
-
method: "GET",
|
|
3698
|
-
url: "/umbraco/management/api/v1/tree/stylesheet/children",
|
|
3699
|
-
query: {
|
|
3700
|
-
"path": path,
|
|
3701
|
-
"skip": skip,
|
|
3702
|
-
"take": take
|
|
3703
|
-
}
|
|
3704
|
-
});
|
|
3705
|
-
}
|
|
3706
|
-
/**
|
|
3707
|
-
* @returns PagedFileSystemTreeItemPresentationModel Success
|
|
3708
|
-
* @throws ApiError
|
|
3709
|
-
*/
|
|
3710
|
-
static getTreeStylesheetRoot({
|
|
3711
|
-
skip,
|
|
3712
|
-
take = 100
|
|
3713
|
-
}) {
|
|
3714
|
-
return request(OpenAPI, {
|
|
3715
|
-
method: "GET",
|
|
3716
|
-
url: "/umbraco/management/api/v1/tree/stylesheet/root",
|
|
3717
|
-
query: {
|
|
3718
|
-
"skip": skip,
|
|
3719
|
-
"take": take
|
|
3720
|
-
}
|
|
3721
|
-
});
|
|
3722
|
-
}
|
|
3723
|
-
}
|
|
3724
|
-
|
|
3725
|
-
class TagResource {
|
|
3726
|
-
/**
|
|
3727
|
-
* @returns PagedTagResponseModel Success
|
|
3728
|
-
* @throws ApiError
|
|
3729
|
-
*/
|
|
3730
|
-
static getTag({
|
|
3731
|
-
query,
|
|
3732
|
-
tagGroup,
|
|
3733
|
-
culture,
|
|
3734
|
-
skip,
|
|
3735
|
-
take = 100
|
|
3736
|
-
}) {
|
|
3737
|
-
return request(OpenAPI, {
|
|
3738
|
-
method: "GET",
|
|
3739
|
-
url: "/umbraco/management/api/v1/tag",
|
|
3740
|
-
query: {
|
|
3741
|
-
"query": query,
|
|
3742
|
-
"tagGroup": tagGroup,
|
|
3743
|
-
"culture": culture,
|
|
3744
|
-
"skip": skip,
|
|
3745
|
-
"take": take
|
|
3746
|
-
}
|
|
3747
|
-
});
|
|
3748
|
-
}
|
|
3749
|
-
}
|
|
3750
|
-
|
|
3751
|
-
class TelemetryResource {
|
|
3752
|
-
/**
|
|
3753
|
-
* @returns PagedTelemetryResponseModel Success
|
|
3754
|
-
* @throws ApiError
|
|
3755
|
-
*/
|
|
3756
|
-
static getTelemetry({
|
|
3757
|
-
skip,
|
|
3758
|
-
take
|
|
3759
|
-
}) {
|
|
3760
|
-
return request(OpenAPI, {
|
|
3761
|
-
method: "GET",
|
|
3762
|
-
url: "/umbraco/management/api/v1/telemetry",
|
|
3763
|
-
query: {
|
|
3764
|
-
"skip": skip,
|
|
3765
|
-
"take": take
|
|
3766
|
-
}
|
|
3767
|
-
});
|
|
3768
|
-
}
|
|
3769
|
-
/**
|
|
3770
|
-
* @returns any Success
|
|
3771
|
-
* @throws ApiError
|
|
3772
|
-
*/
|
|
3773
|
-
static getTelemetryLevel() {
|
|
3774
|
-
return request(OpenAPI, {
|
|
3775
|
-
method: "GET",
|
|
3776
|
-
url: "/umbraco/management/api/v1/telemetry/level"
|
|
3777
|
-
});
|
|
3778
|
-
}
|
|
3779
|
-
/**
|
|
3780
|
-
* @returns any Success
|
|
3781
|
-
* @throws ApiError
|
|
3782
|
-
*/
|
|
3783
|
-
static postTelemetryLevel({
|
|
3784
|
-
requestBody
|
|
3785
|
-
}) {
|
|
3786
|
-
return request(OpenAPI, {
|
|
3787
|
-
method: "POST",
|
|
3788
|
-
url: "/umbraco/management/api/v1/telemetry/level",
|
|
3789
|
-
body: requestBody,
|
|
3790
|
-
mediaType: "application/json",
|
|
3791
|
-
errors: {
|
|
3792
|
-
400: `Bad Request`
|
|
3793
|
-
}
|
|
3794
|
-
});
|
|
3795
|
-
}
|
|
3796
|
-
}
|
|
3797
|
-
|
|
3798
|
-
class TemplateResource {
|
|
3799
|
-
/**
|
|
3800
|
-
* @returns string Created
|
|
3801
|
-
* @throws ApiError
|
|
3802
|
-
*/
|
|
3803
|
-
static postTemplate({
|
|
3804
|
-
requestBody
|
|
3805
|
-
}) {
|
|
3806
|
-
return request(OpenAPI, {
|
|
3807
|
-
method: "POST",
|
|
3808
|
-
url: "/umbraco/management/api/v1/template",
|
|
3809
|
-
body: requestBody,
|
|
3810
|
-
mediaType: "application/json",
|
|
3811
|
-
responseHeader: "Location",
|
|
3812
|
-
errors: {
|
|
3813
|
-
400: `Bad Request`,
|
|
3814
|
-
404: `Not Found`
|
|
3815
|
-
}
|
|
3816
|
-
});
|
|
3817
|
-
}
|
|
3818
|
-
/**
|
|
3819
|
-
* @returns any Success
|
|
3820
|
-
* @throws ApiError
|
|
3821
|
-
*/
|
|
3822
|
-
static getTemplateById({
|
|
3823
|
-
id
|
|
3824
|
-
}) {
|
|
3825
|
-
return request(OpenAPI, {
|
|
3826
|
-
method: "GET",
|
|
3827
|
-
url: "/umbraco/management/api/v1/template/{id}",
|
|
3828
|
-
path: {
|
|
3829
|
-
"id": id
|
|
3830
|
-
},
|
|
3831
|
-
errors: {
|
|
3832
|
-
404: `Not Found`
|
|
3833
|
-
}
|
|
3834
|
-
});
|
|
3835
|
-
}
|
|
3836
|
-
/**
|
|
3837
|
-
* @returns any Success
|
|
3838
|
-
* @throws ApiError
|
|
3839
|
-
*/
|
|
3840
|
-
static deleteTemplateById({
|
|
3841
|
-
id
|
|
3842
|
-
}) {
|
|
3843
|
-
return request(OpenAPI, {
|
|
3844
|
-
method: "DELETE",
|
|
3845
|
-
url: "/umbraco/management/api/v1/template/{id}",
|
|
3846
|
-
path: {
|
|
3847
|
-
"id": id
|
|
3848
|
-
},
|
|
3849
|
-
errors: {
|
|
3850
|
-
400: `Bad Request`,
|
|
3851
|
-
404: `Not Found`
|
|
3852
|
-
}
|
|
3853
|
-
});
|
|
3854
|
-
}
|
|
3855
|
-
/**
|
|
3856
|
-
* @returns any Success
|
|
3857
|
-
* @throws ApiError
|
|
3858
|
-
*/
|
|
3859
|
-
static putTemplateById({
|
|
3860
|
-
id,
|
|
3861
|
-
requestBody
|
|
3862
|
-
}) {
|
|
3863
|
-
return request(OpenAPI, {
|
|
3864
|
-
method: "PUT",
|
|
3865
|
-
url: "/umbraco/management/api/v1/template/{id}",
|
|
3866
|
-
path: {
|
|
3867
|
-
"id": id
|
|
3868
|
-
},
|
|
3869
|
-
body: requestBody,
|
|
3870
|
-
mediaType: "application/json",
|
|
3871
|
-
errors: {
|
|
3872
|
-
400: `Bad Request`,
|
|
3873
|
-
404: `Not Found`
|
|
3874
|
-
}
|
|
3875
|
-
});
|
|
3876
|
-
}
|
|
3877
|
-
/**
|
|
3878
|
-
* @returns any Success
|
|
3879
|
-
* @throws ApiError
|
|
3880
|
-
*/
|
|
3881
|
-
static getTemplateItem({
|
|
3882
|
-
id
|
|
3883
|
-
}) {
|
|
3884
|
-
return request(OpenAPI, {
|
|
3885
|
-
method: "GET",
|
|
3886
|
-
url: "/umbraco/management/api/v1/template/item",
|
|
3887
|
-
query: {
|
|
3888
|
-
"id": id
|
|
3889
|
-
}
|
|
3890
|
-
});
|
|
3891
|
-
}
|
|
3892
|
-
/**
|
|
3893
|
-
* @returns any Success
|
|
3894
|
-
* @throws ApiError
|
|
3895
|
-
*/
|
|
3896
|
-
static postTemplateQueryExecute({
|
|
3897
|
-
requestBody
|
|
3898
|
-
}) {
|
|
3899
|
-
return request(OpenAPI, {
|
|
3900
|
-
method: "POST",
|
|
3901
|
-
url: "/umbraco/management/api/v1/template/query/execute",
|
|
3902
|
-
body: requestBody,
|
|
3903
|
-
mediaType: "application/json"
|
|
3904
|
-
});
|
|
3905
|
-
}
|
|
3906
|
-
/**
|
|
3907
|
-
* @returns any Success
|
|
3908
|
-
* @throws ApiError
|
|
3909
|
-
*/
|
|
3910
|
-
static getTemplateQuerySettings() {
|
|
3911
|
-
return request(OpenAPI, {
|
|
3912
|
-
method: "GET",
|
|
3913
|
-
url: "/umbraco/management/api/v1/template/query/settings"
|
|
3914
|
-
});
|
|
3915
|
-
}
|
|
3916
|
-
/**
|
|
3917
|
-
* @returns any Success
|
|
3918
|
-
* @throws ApiError
|
|
3919
|
-
*/
|
|
3920
|
-
static getTemplateScaffold() {
|
|
3921
|
-
return request(OpenAPI, {
|
|
3922
|
-
method: "GET",
|
|
3923
|
-
url: "/umbraco/management/api/v1/template/scaffold",
|
|
3924
|
-
errors: {
|
|
3925
|
-
404: `Not Found`
|
|
3926
|
-
}
|
|
3927
|
-
});
|
|
3928
|
-
}
|
|
3929
|
-
/**
|
|
3930
|
-
* @returns PagedEntityTreeItemResponseModel Success
|
|
3931
|
-
* @throws ApiError
|
|
3932
|
-
*/
|
|
3933
|
-
static getTreeTemplateChildren({
|
|
3934
|
-
parentId,
|
|
3935
|
-
skip,
|
|
3936
|
-
take = 100
|
|
3937
|
-
}) {
|
|
3938
|
-
return request(OpenAPI, {
|
|
3939
|
-
method: "GET",
|
|
3940
|
-
url: "/umbraco/management/api/v1/tree/template/children",
|
|
3941
|
-
query: {
|
|
3942
|
-
"parentId": parentId,
|
|
3943
|
-
"skip": skip,
|
|
3944
|
-
"take": take
|
|
3945
|
-
}
|
|
3946
|
-
});
|
|
3947
|
-
}
|
|
3948
|
-
/**
|
|
3949
|
-
* @returns PagedEntityTreeItemResponseModel Success
|
|
3950
|
-
* @throws ApiError
|
|
3951
|
-
*/
|
|
3952
|
-
static getTreeTemplateRoot({
|
|
3953
|
-
skip,
|
|
3954
|
-
take = 100
|
|
3955
|
-
}) {
|
|
3956
|
-
return request(OpenAPI, {
|
|
3957
|
-
method: "GET",
|
|
3958
|
-
url: "/umbraco/management/api/v1/tree/template/root",
|
|
3959
|
-
query: {
|
|
3960
|
-
"skip": skip,
|
|
3961
|
-
"take": take
|
|
3962
|
-
}
|
|
3963
|
-
});
|
|
3964
|
-
}
|
|
3965
|
-
}
|
|
3966
|
-
|
|
3967
|
-
class TemporaryFileResource {
|
|
3968
|
-
/**
|
|
3969
|
-
* @returns string Created
|
|
3970
|
-
* @throws ApiError
|
|
3971
|
-
*/
|
|
3972
|
-
static postTemporaryfile({
|
|
3973
|
-
formData
|
|
3974
|
-
}) {
|
|
3975
|
-
return request(OpenAPI, {
|
|
3976
|
-
method: "POST",
|
|
3977
|
-
url: "/umbraco/management/api/v1/temporaryfile",
|
|
3978
|
-
formData,
|
|
3979
|
-
mediaType: "multipart/form-data",
|
|
3980
|
-
responseHeader: "Location",
|
|
3981
|
-
errors: {
|
|
3982
|
-
400: `Bad Request`
|
|
3983
|
-
}
|
|
3984
|
-
});
|
|
3985
|
-
}
|
|
3986
|
-
/**
|
|
3987
|
-
* @returns any Success
|
|
3988
|
-
* @throws ApiError
|
|
3989
|
-
*/
|
|
3990
|
-
static getTemporaryfileById({
|
|
3991
|
-
id
|
|
3992
|
-
}) {
|
|
3993
|
-
return request(OpenAPI, {
|
|
3994
|
-
method: "GET",
|
|
3995
|
-
url: "/umbraco/management/api/v1/temporaryfile/{id}",
|
|
3996
|
-
path: {
|
|
3997
|
-
"id": id
|
|
3998
|
-
},
|
|
3999
|
-
errors: {
|
|
4000
|
-
400: `Bad Request`,
|
|
4001
|
-
404: `Not Found`
|
|
4002
|
-
}
|
|
4003
|
-
});
|
|
4004
|
-
}
|
|
4005
|
-
/**
|
|
4006
|
-
* @returns any Success
|
|
4007
|
-
* @throws ApiError
|
|
4008
|
-
*/
|
|
4009
|
-
static deleteTemporaryfileById({
|
|
4010
|
-
id
|
|
4011
|
-
}) {
|
|
4012
|
-
return request(OpenAPI, {
|
|
4013
|
-
method: "DELETE",
|
|
4014
|
-
url: "/umbraco/management/api/v1/temporaryfile/{id}",
|
|
4015
|
-
path: {
|
|
4016
|
-
"id": id
|
|
4017
|
-
},
|
|
4018
|
-
errors: {
|
|
4019
|
-
400: `Bad Request`,
|
|
4020
|
-
404: `Not Found`
|
|
4021
|
-
}
|
|
4022
|
-
});
|
|
4023
|
-
}
|
|
4024
|
-
}
|
|
4025
|
-
|
|
4026
|
-
class TrackedReferenceResource {
|
|
4027
|
-
/**
|
|
4028
|
-
* @returns PagedRelationItemResponseModel Success
|
|
4029
|
-
* @throws ApiError
|
|
4030
|
-
*/
|
|
4031
|
-
static getTrackedReferenceById({
|
|
4032
|
-
id,
|
|
4033
|
-
skip,
|
|
4034
|
-
take = 20,
|
|
4035
|
-
filterMustBeIsDependency = false
|
|
4036
|
-
}) {
|
|
4037
|
-
return request(OpenAPI, {
|
|
4038
|
-
method: "GET",
|
|
4039
|
-
url: "/umbraco/management/api/v1/tracked-reference/{id}",
|
|
4040
|
-
path: {
|
|
4041
|
-
"id": id
|
|
4042
|
-
},
|
|
4043
|
-
query: {
|
|
4044
|
-
"skip": skip,
|
|
4045
|
-
"take": take,
|
|
4046
|
-
"filterMustBeIsDependency": filterMustBeIsDependency
|
|
4047
|
-
}
|
|
4048
|
-
});
|
|
4049
|
-
}
|
|
4050
|
-
/**
|
|
4051
|
-
* @returns PagedRelationItemResponseModel Success
|
|
4052
|
-
* @throws ApiError
|
|
4053
|
-
*/
|
|
4054
|
-
static getTrackedReferenceDescendantsByParentId({
|
|
4055
|
-
parentId,
|
|
4056
|
-
skip,
|
|
4057
|
-
take,
|
|
4058
|
-
filterMustBeIsDependency = true
|
|
4059
|
-
}) {
|
|
4060
|
-
return request(OpenAPI, {
|
|
4061
|
-
method: "GET",
|
|
4062
|
-
url: "/umbraco/management/api/v1/tracked-reference/descendants/{parentId}",
|
|
4063
|
-
path: {
|
|
4064
|
-
"parentId": parentId
|
|
4065
|
-
},
|
|
4066
|
-
query: {
|
|
4067
|
-
"skip": skip,
|
|
4068
|
-
"take": take,
|
|
4069
|
-
"filterMustBeIsDependency": filterMustBeIsDependency
|
|
4070
|
-
}
|
|
4071
|
-
});
|
|
4072
|
-
}
|
|
4073
|
-
/**
|
|
4074
|
-
* @returns PagedRelationItemResponseModel Success
|
|
4075
|
-
* @throws ApiError
|
|
4076
|
-
*/
|
|
4077
|
-
static getTrackedReferenceItem({
|
|
4078
|
-
id,
|
|
4079
|
-
skip,
|
|
4080
|
-
take = 20,
|
|
4081
|
-
filterMustBeIsDependency = true
|
|
4082
|
-
}) {
|
|
4083
|
-
return request(OpenAPI, {
|
|
4084
|
-
method: "GET",
|
|
4085
|
-
url: "/umbraco/management/api/v1/tracked-reference/item",
|
|
4086
|
-
query: {
|
|
4087
|
-
"id": id,
|
|
4088
|
-
"skip": skip,
|
|
4089
|
-
"take": take,
|
|
4090
|
-
"filterMustBeIsDependency": filterMustBeIsDependency
|
|
4091
|
-
}
|
|
4092
|
-
});
|
|
4093
|
-
}
|
|
4094
|
-
}
|
|
4095
|
-
|
|
4096
|
-
class UpgradeResource {
|
|
4097
|
-
/**
|
|
4098
|
-
* @returns any Success
|
|
4099
|
-
* @throws ApiError
|
|
4100
|
-
*/
|
|
4101
|
-
static postUpgradeAuthorize() {
|
|
4102
|
-
return request(OpenAPI, {
|
|
4103
|
-
method: "POST",
|
|
4104
|
-
url: "/umbraco/management/api/v1/upgrade/authorize",
|
|
4105
|
-
errors: {
|
|
4106
|
-
428: `Client Error`,
|
|
4107
|
-
500: `Server Error`
|
|
4108
|
-
}
|
|
4109
|
-
});
|
|
4110
|
-
}
|
|
4111
|
-
/**
|
|
4112
|
-
* @returns any Success
|
|
4113
|
-
* @throws ApiError
|
|
4114
|
-
*/
|
|
4115
|
-
static getUpgradeSettings() {
|
|
4116
|
-
return request(OpenAPI, {
|
|
4117
|
-
method: "GET",
|
|
4118
|
-
url: "/umbraco/management/api/v1/upgrade/settings",
|
|
4119
|
-
errors: {
|
|
4120
|
-
428: `Client Error`
|
|
4121
|
-
}
|
|
4122
|
-
});
|
|
4123
|
-
}
|
|
4124
|
-
}
|
|
4125
|
-
|
|
4126
|
-
class UserResource {
|
|
4127
|
-
/**
|
|
4128
|
-
* @returns any Success
|
|
4129
|
-
* @throws ApiError
|
|
4130
|
-
*/
|
|
4131
|
-
static postUser({
|
|
4132
|
-
requestBody
|
|
4133
|
-
}) {
|
|
4134
|
-
return request(OpenAPI, {
|
|
4135
|
-
method: "POST",
|
|
4136
|
-
url: "/umbraco/management/api/v1/user",
|
|
4137
|
-
body: requestBody,
|
|
4138
|
-
mediaType: "application/json",
|
|
4139
|
-
errors: {
|
|
4140
|
-
400: `Bad Request`
|
|
4141
|
-
}
|
|
4142
|
-
});
|
|
4143
|
-
}
|
|
4144
|
-
/**
|
|
4145
|
-
* @returns PagedUserResponseModel Success
|
|
4146
|
-
* @throws ApiError
|
|
4147
|
-
*/
|
|
4148
|
-
static getUser({
|
|
4149
|
-
skip,
|
|
4150
|
-
take = 100
|
|
4151
|
-
}) {
|
|
4152
|
-
return request(OpenAPI, {
|
|
4153
|
-
method: "GET",
|
|
4154
|
-
url: "/umbraco/management/api/v1/user",
|
|
4155
|
-
query: {
|
|
4156
|
-
"skip": skip,
|
|
4157
|
-
"take": take
|
|
4158
|
-
}
|
|
4159
|
-
});
|
|
4160
|
-
}
|
|
4161
|
-
/**
|
|
4162
|
-
* @returns any Success
|
|
4163
|
-
* @throws ApiError
|
|
4164
|
-
*/
|
|
4165
|
-
static getUserById({
|
|
4166
|
-
id
|
|
4167
|
-
}) {
|
|
4168
|
-
return request(OpenAPI, {
|
|
4169
|
-
method: "GET",
|
|
4170
|
-
url: "/umbraco/management/api/v1/user/{id}",
|
|
4171
|
-
path: {
|
|
4172
|
-
"id": id
|
|
4173
|
-
},
|
|
4174
|
-
errors: {
|
|
4175
|
-
404: `Not Found`
|
|
4176
|
-
}
|
|
4177
|
-
});
|
|
4178
|
-
}
|
|
4179
|
-
/**
|
|
4180
|
-
* @returns any Success
|
|
4181
|
-
* @throws ApiError
|
|
4182
|
-
*/
|
|
4183
|
-
static deleteUserById({
|
|
4184
|
-
id
|
|
4185
|
-
}) {
|
|
4186
|
-
return request(OpenAPI, {
|
|
4187
|
-
method: "DELETE",
|
|
4188
|
-
url: "/umbraco/management/api/v1/user/{id}",
|
|
4189
|
-
path: {
|
|
4190
|
-
"id": id
|
|
4191
|
-
}
|
|
4192
|
-
});
|
|
4193
|
-
}
|
|
4194
|
-
/**
|
|
4195
|
-
* @returns any Success
|
|
4196
|
-
* @throws ApiError
|
|
4197
|
-
*/
|
|
4198
|
-
static putUserById({
|
|
4199
|
-
id,
|
|
4200
|
-
requestBody
|
|
4201
|
-
}) {
|
|
4202
|
-
return request(OpenAPI, {
|
|
4203
|
-
method: "PUT",
|
|
4204
|
-
url: "/umbraco/management/api/v1/user/{id}",
|
|
4205
|
-
path: {
|
|
4206
|
-
"id": id
|
|
4207
|
-
},
|
|
4208
|
-
body: requestBody,
|
|
4209
|
-
mediaType: "application/json"
|
|
4210
|
-
});
|
|
4211
|
-
}
|
|
4212
|
-
/**
|
|
4213
|
-
* @returns any Success
|
|
4214
|
-
* @throws ApiError
|
|
4215
|
-
*/
|
|
4216
|
-
static deleteUserAvatarById({
|
|
4217
|
-
id
|
|
4218
|
-
}) {
|
|
4219
|
-
return request(OpenAPI, {
|
|
4220
|
-
method: "DELETE",
|
|
4221
|
-
url: "/umbraco/management/api/v1/user/avatar/{id}",
|
|
4222
|
-
path: {
|
|
4223
|
-
"id": id
|
|
4224
|
-
}
|
|
4225
|
-
});
|
|
4226
|
-
}
|
|
4227
|
-
/**
|
|
4228
|
-
* @returns any Success
|
|
4229
|
-
* @throws ApiError
|
|
4230
|
-
*/
|
|
4231
|
-
static postUserAvatarById({
|
|
4232
|
-
id,
|
|
4233
|
-
requestBody
|
|
4234
|
-
}) {
|
|
4235
|
-
return request(OpenAPI, {
|
|
4236
|
-
method: "POST",
|
|
4237
|
-
url: "/umbraco/management/api/v1/user/avatar/{id}",
|
|
4238
|
-
path: {
|
|
4239
|
-
"id": id
|
|
4240
|
-
},
|
|
4241
|
-
body: requestBody,
|
|
4242
|
-
mediaType: "application/json",
|
|
4243
|
-
errors: {
|
|
4244
|
-
400: `Bad Request`
|
|
4245
|
-
}
|
|
4246
|
-
});
|
|
4247
|
-
}
|
|
4248
|
-
/**
|
|
4249
|
-
* @returns any Success
|
|
4250
|
-
* @throws ApiError
|
|
4251
|
-
*/
|
|
4252
|
-
static postUserChangePasswordById({
|
|
4253
|
-
id,
|
|
4254
|
-
requestBody
|
|
4255
|
-
}) {
|
|
4256
|
-
return request(OpenAPI, {
|
|
4257
|
-
method: "POST",
|
|
4258
|
-
url: "/umbraco/management/api/v1/user/change-password/{id}",
|
|
4259
|
-
path: {
|
|
4260
|
-
"id": id
|
|
4261
|
-
},
|
|
4262
|
-
body: requestBody,
|
|
4263
|
-
mediaType: "application/json"
|
|
4264
|
-
});
|
|
4265
|
-
}
|
|
4266
|
-
/**
|
|
4267
|
-
* @returns any Success
|
|
4268
|
-
* @throws ApiError
|
|
4269
|
-
*/
|
|
4270
|
-
static postUserDisable({
|
|
4271
|
-
requestBody
|
|
4272
|
-
}) {
|
|
4273
|
-
return request(OpenAPI, {
|
|
4274
|
-
method: "POST",
|
|
4275
|
-
url: "/umbraco/management/api/v1/user/disable",
|
|
4276
|
-
body: requestBody,
|
|
4277
|
-
mediaType: "application/json",
|
|
4278
|
-
errors: {
|
|
4279
|
-
400: `Bad Request`
|
|
4280
|
-
}
|
|
4281
|
-
});
|
|
4282
|
-
}
|
|
4283
|
-
/**
|
|
4284
|
-
* @returns any Success
|
|
4285
|
-
* @throws ApiError
|
|
4286
|
-
*/
|
|
4287
|
-
static postUserEnable({
|
|
4288
|
-
requestBody
|
|
4289
|
-
}) {
|
|
4290
|
-
return request(OpenAPI, {
|
|
4291
|
-
method: "POST",
|
|
4292
|
-
url: "/umbraco/management/api/v1/user/enable",
|
|
4293
|
-
body: requestBody,
|
|
4294
|
-
mediaType: "application/json",
|
|
4295
|
-
errors: {
|
|
4296
|
-
400: `Bad Request`
|
|
4297
|
-
}
|
|
4298
|
-
});
|
|
4299
|
-
}
|
|
4300
|
-
/**
|
|
4301
|
-
* @returns any Success
|
|
4302
|
-
* @throws ApiError
|
|
4303
|
-
*/
|
|
4304
|
-
static getUserFilter({
|
|
4305
|
-
skip,
|
|
4306
|
-
take = 100,
|
|
4307
|
-
orderBy,
|
|
4308
|
-
orderDirection,
|
|
4309
|
-
userGroupIds,
|
|
4310
|
-
userStates,
|
|
4311
|
-
filter = ""
|
|
4312
|
-
}) {
|
|
4313
|
-
return request(OpenAPI, {
|
|
4314
|
-
method: "GET",
|
|
4315
|
-
url: "/umbraco/management/api/v1/user/filter",
|
|
4316
|
-
query: {
|
|
4317
|
-
"skip": skip,
|
|
4318
|
-
"take": take,
|
|
4319
|
-
"orderBy": orderBy,
|
|
4320
|
-
"orderDirection": orderDirection,
|
|
4321
|
-
"userGroupIds": userGroupIds,
|
|
4322
|
-
"userStates": userStates,
|
|
4323
|
-
"filter": filter
|
|
4324
|
-
}
|
|
4325
|
-
});
|
|
4326
|
-
}
|
|
4327
|
-
/**
|
|
4328
|
-
* @returns string Created
|
|
4329
|
-
* @throws ApiError
|
|
4330
|
-
*/
|
|
4331
|
-
static postUserInvite({
|
|
4332
|
-
requestBody
|
|
4333
|
-
}) {
|
|
4334
|
-
return request(OpenAPI, {
|
|
4335
|
-
method: "POST",
|
|
4336
|
-
url: "/umbraco/management/api/v1/user/invite",
|
|
4337
|
-
body: requestBody,
|
|
4338
|
-
mediaType: "application/json",
|
|
4339
|
-
responseHeader: "Location"
|
|
4340
|
-
});
|
|
4341
|
-
}
|
|
4342
|
-
/**
|
|
4343
|
-
* @returns any Success
|
|
4344
|
-
* @throws ApiError
|
|
4345
|
-
*/
|
|
4346
|
-
static getUserItem({
|
|
4347
|
-
id
|
|
4348
|
-
}) {
|
|
4349
|
-
return request(OpenAPI, {
|
|
4350
|
-
method: "GET",
|
|
4351
|
-
url: "/umbraco/management/api/v1/user/item",
|
|
4352
|
-
query: {
|
|
4353
|
-
"id": id
|
|
4354
|
-
}
|
|
4355
|
-
});
|
|
4356
|
-
}
|
|
4357
|
-
/**
|
|
4358
|
-
* @returns any Success
|
|
4359
|
-
* @throws ApiError
|
|
4360
|
-
*/
|
|
4361
|
-
static postUserSetUserGroups({
|
|
4362
|
-
requestBody
|
|
4363
|
-
}) {
|
|
4364
|
-
return request(OpenAPI, {
|
|
4365
|
-
method: "POST",
|
|
4366
|
-
url: "/umbraco/management/api/v1/user/set-user-groups",
|
|
4367
|
-
body: requestBody,
|
|
4368
|
-
mediaType: "application/json"
|
|
4369
|
-
});
|
|
4370
|
-
}
|
|
4371
|
-
/**
|
|
4372
|
-
* @returns any Success
|
|
4373
|
-
* @throws ApiError
|
|
4374
|
-
*/
|
|
4375
|
-
static postUserUnlock({
|
|
4376
|
-
requestBody
|
|
4377
|
-
}) {
|
|
4378
|
-
return request(OpenAPI, {
|
|
4379
|
-
method: "POST",
|
|
4380
|
-
url: "/umbraco/management/api/v1/user/unlock",
|
|
4381
|
-
body: requestBody,
|
|
4382
|
-
mediaType: "application/json",
|
|
4383
|
-
errors: {
|
|
4384
|
-
400: `Bad Request`
|
|
4385
|
-
}
|
|
4386
|
-
});
|
|
4387
|
-
}
|
|
4388
|
-
}
|
|
4389
|
-
|
|
4390
|
-
class UserGroupResource {
|
|
4391
|
-
/**
|
|
4392
|
-
* @returns string Created
|
|
4393
|
-
* @throws ApiError
|
|
4394
|
-
*/
|
|
4395
|
-
static postUserGroup({
|
|
4396
|
-
requestBody
|
|
4397
|
-
}) {
|
|
4398
|
-
return request(OpenAPI, {
|
|
4399
|
-
method: "POST",
|
|
4400
|
-
url: "/umbraco/management/api/v1/user-group",
|
|
4401
|
-
body: requestBody,
|
|
4402
|
-
mediaType: "application/json",
|
|
4403
|
-
responseHeader: "Location",
|
|
4404
|
-
errors: {
|
|
4405
|
-
400: `Bad Request`
|
|
4406
|
-
}
|
|
4407
|
-
});
|
|
4408
|
-
}
|
|
4409
|
-
/**
|
|
4410
|
-
* @returns PagedUserGroupResponseModel Success
|
|
4411
|
-
* @throws ApiError
|
|
4412
|
-
*/
|
|
4413
|
-
static getUserGroup({
|
|
4414
|
-
skip,
|
|
4415
|
-
take = 100
|
|
4416
|
-
}) {
|
|
4417
|
-
return request(OpenAPI, {
|
|
4418
|
-
method: "GET",
|
|
4419
|
-
url: "/umbraco/management/api/v1/user-group",
|
|
4420
|
-
query: {
|
|
4421
|
-
"skip": skip,
|
|
4422
|
-
"take": take
|
|
4423
|
-
}
|
|
4424
|
-
});
|
|
4425
|
-
}
|
|
4426
|
-
/**
|
|
4427
|
-
* @returns any Success
|
|
4428
|
-
* @throws ApiError
|
|
4429
|
-
*/
|
|
4430
|
-
static getUserGroupById({
|
|
4431
|
-
id
|
|
4432
|
-
}) {
|
|
4433
|
-
return request(OpenAPI, {
|
|
4434
|
-
method: "GET",
|
|
4435
|
-
url: "/umbraco/management/api/v1/user-group/{id}",
|
|
4436
|
-
path: {
|
|
4437
|
-
"id": id
|
|
4438
|
-
},
|
|
4439
|
-
errors: {
|
|
4440
|
-
404: `Not Found`
|
|
4441
|
-
}
|
|
4442
|
-
});
|
|
4443
|
-
}
|
|
4444
|
-
/**
|
|
4445
|
-
* @returns any Success
|
|
4446
|
-
* @throws ApiError
|
|
4447
|
-
*/
|
|
4448
|
-
static deleteUserGroupById({
|
|
4449
|
-
id
|
|
4450
|
-
}) {
|
|
4451
|
-
return request(OpenAPI, {
|
|
4452
|
-
method: "DELETE",
|
|
4453
|
-
url: "/umbraco/management/api/v1/user-group/{id}",
|
|
4454
|
-
path: {
|
|
4455
|
-
"id": id
|
|
4456
|
-
},
|
|
4457
|
-
errors: {
|
|
4458
|
-
404: `Not Found`
|
|
4459
|
-
}
|
|
4460
|
-
});
|
|
4461
|
-
}
|
|
4462
|
-
/**
|
|
4463
|
-
* @returns any Success
|
|
4464
|
-
* @throws ApiError
|
|
4465
|
-
*/
|
|
4466
|
-
static putUserGroupById({
|
|
4467
|
-
id,
|
|
4468
|
-
requestBody
|
|
4469
|
-
}) {
|
|
4470
|
-
return request(OpenAPI, {
|
|
4471
|
-
method: "PUT",
|
|
4472
|
-
url: "/umbraco/management/api/v1/user-group/{id}",
|
|
4473
|
-
path: {
|
|
4474
|
-
"id": id
|
|
4475
|
-
},
|
|
4476
|
-
body: requestBody,
|
|
4477
|
-
mediaType: "application/json",
|
|
4478
|
-
errors: {
|
|
4479
|
-
404: `Not Found`
|
|
4480
|
-
}
|
|
4481
|
-
});
|
|
4482
|
-
}
|
|
4483
|
-
/**
|
|
4484
|
-
* @returns any Success
|
|
4485
|
-
* @throws ApiError
|
|
4486
|
-
*/
|
|
4487
|
-
static getUserGroupItem({
|
|
4488
|
-
id
|
|
4489
|
-
}) {
|
|
4490
|
-
return request(OpenAPI, {
|
|
4491
|
-
method: "GET",
|
|
4492
|
-
url: "/umbraco/management/api/v1/user-group/item",
|
|
4493
|
-
query: {
|
|
4494
|
-
"id": id
|
|
4495
|
-
}
|
|
4496
|
-
});
|
|
4497
|
-
}
|
|
4498
|
-
}
|
|
4499
|
-
|
|
4500
|
-
export { ApiError, AuditLogResource, AuditTypeModel, CancelError, CancelablePromise, ContentStateModel, ContentTypeCompositionTypeModel, CultureResource, DataTypeResource, DictionaryResource, DirectionModel, DocumentBlueprintResource, DocumentResource, DocumentTypeResource, HealthCheckResource, HealthStatusModel, HelpResource, IndexerResource, InstallResource, LanguageResource, LogLevelModel, LogViewerResource, MediaResource, MediaTypeResource, MemberGroupResource, MemberResource, MemberTypeResource, ModelsBuilderResource, ModelsModeModel, ObjectTypesResource, OpenAPI, OperatorModel, OutOfDateTypeModel, PackageResource, PartialViewResource, ProfilingResource, PropertyTypeResource, PublishedCacheResource, RedirectManagementResource, RedirectStatusModel, RelationResource, RelationTypeResource, RuntimeLevelModel, ScriptResource, SearcherResource, SecurityResource, ServerResource, StaticFileResource, StatusResultTypeModel, StylesheetResource, TagResource, TelemetryLevelModel, TelemetryResource, TemplateQueryPropertyTypeModel, TemplateResource, TemporaryFileResource, TrackedReferenceResource, UpgradeResource, UserGroupResource, UserOrderModel, UserResource, UserStateModel };
|
|
1
|
+
class S extends Error{constructor(e,a,i){super(i),this.name="ApiError",this.url=a.url,this.status=a.status,this.statusText=a.statusText,this.body=a.body,this.request=e}}var f=(t,e,a)=>{if(!e.has(t))throw TypeError("Cannot "+a)},d=(t,e,a)=>(f(t,e,"read from private field"),a?a.call(t):e.get(t)),T=(t,e,a)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,a)},c=(t,e,a,i)=>(f(t,e,"write to private field"),i?i.call(t,a):e.set(t,a),a),y,h,l,b,v,B,E;class O extends Error{constructor(e){super(e),this.name="CancelError"}get isCancelled(){return!0}}class C{constructor(e){T(this,y,void 0),T(this,h,void 0),T(this,l,void 0),T(this,b,void 0),T(this,v,void 0),T(this,B,void 0),T(this,E,void 0),c(this,y,!1),c(this,h,!1),c(this,l,!1),c(this,b,[]),c(this,v,new Promise((a,i)=>{c(this,B,a),c(this,E,i);const n=m=>{var p;d(this,y)||d(this,h)||d(this,l)||(c(this,y,!0),(p=d(this,B))==null||p.call(this,m))},s=m=>{var p;d(this,y)||d(this,h)||d(this,l)||(c(this,h,!0),(p=d(this,E))==null||p.call(this,m))},u=m=>{d(this,y)||d(this,h)||d(this,l)||d(this,b).push(m)};return Object.defineProperty(u,"isResolved",{get:()=>d(this,y)}),Object.defineProperty(u,"isRejected",{get:()=>d(this,h)}),Object.defineProperty(u,"isCancelled",{get:()=>d(this,l)}),e(n,s,u)}))}get[Symbol.toStringTag](){return"Cancellable Promise"}then(e,a){return d(this,v).then(e,a)}catch(e){return d(this,v).catch(e)}finally(e){return d(this,v).finally(e)}cancel(){var e;if(!(d(this,y)||d(this,h)||d(this,l))){if(c(this,l,!0),d(this,b).length)try{for(const a of d(this,b))a()}catch(a){console.warn("Cancellation threw an error",a);return}d(this,b).length=0,(e=d(this,E))==null||e.call(this,new O("Request aborted"))}}get isCancelled(){return d(this,l)}}y=new WeakMap,h=new WeakMap,l=new WeakMap,b=new WeakMap,v=new WeakMap,B=new WeakMap,E=new WeakMap;const r={BASE:"",VERSION:"Latest",WITH_CREDENTIALS:!1,CREDENTIALS:"include",TOKEN:void 0,USERNAME:void 0,PASSWORD:void 0,HEADERS:void 0,ENCODE_PATH:void 0};var L=(t=>(t.NEW="New",t.SAVE="Save",t.SAVE_VARIANT="SaveVariant",t.OPEN="Open",t.DELETE="Delete",t.PUBLISH="Publish",t.PUBLISH_VARIANT="PublishVariant",t.SEND_TO_PUBLISH="SendToPublish",t.SEND_TO_PUBLISH_VARIANT="SendToPublishVariant",t.UNPUBLISH="Unpublish",t.UNPUBLISH_VARIANT="UnpublishVariant",t.MOVE="Move",t.COPY="Copy",t.ASSIGN_DOMAIN="AssignDomain",t.PUBLIC_ACCESS="PublicAccess",t.SORT="Sort",t.NOTIFY="Notify",t.SYSTEM="System",t.ROLL_BACK="RollBack",t.PACKAGER_INSTALL="PackagerInstall",t.PACKAGER_UNINSTALL="PackagerUninstall",t.CUSTOM="Custom",t.CONTENT_VERSION_PREVENT_CLEANUP="ContentVersionPreventCleanup",t.CONTENT_VERSION_ENABLE_CLEANUP="ContentVersionEnableCleanup",t))(L||{}),A=(t=>(t.NOT_CREATED="NotCreated",t.DRAFT="Draft",t.PUBLISHED="Published",t.PUBLISHED_PENDING_CHANGES="PublishedPendingChanges",t))(A||{}),U=(t=>(t.COMPOSITION="Composition",t.INHERITANCE="Inheritance",t))(U||{}),F=(t=>(t.ASCENDING="Ascending",t.DESCENDING="Descending",t))(F||{}),M=(t=>(t.HEALTHY="Healthy",t.UNHEALTHY="Unhealthy",t.REBUILDING="Rebuilding",t))(M||{}),w=(t=>(t.VERBOSE="Verbose",t.DEBUG="Debug",t.INFORMATION="Information",t.WARNING="Warning",t.ERROR="Error",t.FATAL="Fatal",t))(w||{}),j=(t=>(t.NOTHING="Nothing",t.IN_MEMORY_AUTO="InMemoryAuto",t.SOURCE_CODE_MANUAL="SourceCodeManual",t.SOURCE_CODE_AUTO="SourceCodeAuto",t))(j||{}),H=(t=>(t.EQUALS="Equals",t.NOT_EQUALS="NotEquals",t.CONTAINS="Contains",t.NOT_CONTAINS="NotContains",t.LESS_THAN="LessThan",t.LESS_THAN_EQUAL_TO="LessThanEqualTo",t.GREATER_THAN="GreaterThan",t.GREATER_THAN_EQUAL_TO="GreaterThanEqualTo",t))(H||{}),_=(t=>(t.OUT_OF_DATE="OutOfDate",t.CURRENT="Current",t.UNKNOWN="Unknown",t))(_||{}),V=(t=>(t.PUBLISHED="Published",t.UNPUBLISHED="Unpublished",t.PUBLISHING="Publishing",t.UNPUBLISHING="Unpublishing",t))(V||{}),x=(t=>(t.ENABLED="Enabled",t.DISABLED="Disabled",t))(x||{}),W=(t=>(t.UNKNOWN="Unknown",t.BOOT="Boot",t.INSTALL="Install",t.UPGRADE="Upgrade",t.RUN="Run",t.BOOT_FAILED="BootFailed",t))(W||{}),$=(t=>(t.SUCCESS="Success",t.WARNING="Warning",t.ERROR="Error",t.INFO="Info",t))($||{}),z=(t=>(t.MINIMAL="Minimal",t.BASIC="Basic",t.DETAILED="Detailed",t))(z||{}),K=(t=>(t.STRING="String",t.DATE_TIME="DateTime",t.INTEGER="Integer",t))(K||{}),Q=(t=>(t.USER_NAME="UserName",t.LANGUAGE="Language",t.NAME="Name",t.EMAIL="Email",t.ID="Id",t.CREATE_DATE="CreateDate",t.UPDATE_DATE="UpdateDate",t.IS_APPROVED="IsApproved",t.IS_LOCKED_OUT="IsLockedOut",t.LAST_LOGIN_DATE="LastLoginDate",t))(Q||{}),Y=(t=>(t.ACTIVE="Active",t.DISABLED="Disabled",t.LOCKED_OUT="LockedOut",t.INVITED="Invited",t.INACTIVE="Inactive",t.ALL="All",t))(Y||{}),te=Object.defineProperty,ae=Object.defineProperties,re=Object.getOwnPropertyDescriptors,J=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,X=(t,e,a)=>e in t?te(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,I=(t,e)=>{for(var a in e||(e={}))oe.call(e,a)&&X(t,a,e[a]);if(J)for(var a of J(e))ie.call(e,a)&&X(t,a,e[a]);return t},ne=(t,e)=>ae(t,re(e));const R=t=>t!=null,k=t=>typeof t=="string",D=t=>k(t)&&t!=="",G=t=>typeof t=="object"&&typeof t.type=="string"&&typeof t.stream=="function"&&typeof t.arrayBuffer=="function"&&typeof t.constructor=="function"&&typeof t.constructor.name=="string"&&/^(Blob|File)$/.test(t.constructor.name)&&/^(Blob|File)$/.test(t[Symbol.toStringTag]),Z=t=>t instanceof FormData,se=t=>{try{return btoa(t)}catch{return Buffer.from(t).toString("base64")}},ue=t=>{const e=[],a=(n,s)=>{e.push(`${encodeURIComponent(n)}=${encodeURIComponent(String(s))}`)},i=(n,s)=>{R(s)&&(Array.isArray(s)?s.forEach(u=>{i(n,u)}):typeof s=="object"?Object.entries(s).forEach(([u,m])=>{i(`${n}[${u}]`,m)}):a(n,s))};return Object.entries(t).forEach(([n,s])=>{i(n,s)}),e.length>0?`?${e.join("&")}`:""},de=(t,e)=>{const a=t.ENCODE_PATH||encodeURI,i=e.url.replace("{api-version}",t.VERSION).replace(/{(.*?)}/g,(s,u)=>{var m;return(m=e.path)!=null&&m.hasOwnProperty(u)?a(String(e.path[u])):s}),n=`${t.BASE}${i}`;return e.query?`${n}${ue(e.query)}`:n},me=t=>{if(t.formData){const e=new FormData,a=(i,n)=>{k(n)||G(n)?e.append(i,n):e.append(i,JSON.stringify(n))};return Object.entries(t.formData).filter(([i,n])=>R(n)).forEach(([i,n])=>{Array.isArray(n)?n.forEach(s=>a(i,s)):a(i,n)}),e}},q=async(t,e)=>typeof e=="function"?e(t):e,pe=async(t,e)=>{const a=await q(e,t.TOKEN),i=await q(e,t.USERNAME),n=await q(e,t.PASSWORD),s=await q(e,t.HEADERS),u=Object.entries(I(I({Accept:"application/json"},s),e.headers)).filter(([m,p])=>R(p)).reduce((m,[p,g])=>ne(I({},m),{[p]:String(g)}),{});if(D(a)&&(u.Authorization=`Bearer ${a}`),D(i)&&D(n)){const m=se(`${i}:${n}`);u.Authorization=`Basic ${m}`}return e.body&&(e.mediaType?u["Content-Type"]=e.mediaType:G(e.body)?u["Content-Type"]=e.body.type||"application/octet-stream":k(e.body)?u["Content-Type"]="text/plain":Z(e.body)||(u["Content-Type"]="application/json")),new Headers(u)},ce=t=>{var e;if(t.body!==void 0)return(e=t.mediaType)!=null&&e.includes("/json")?JSON.stringify(t.body):k(t.body)||G(t.body)||Z(t.body)?t.body:JSON.stringify(t.body)},le=async(t,e,a,i,n,s,u)=>{const m=new AbortController,p={headers:s,body:i??n,method:e.method,signal:m.signal};return t.WITH_CREDENTIALS&&(p.credentials=t.CREDENTIALS),u(()=>m.abort()),await fetch(a,p)},ye=(t,e)=>{if(e){const a=t.headers.get(e);if(k(a))return a}},he=async t=>{if(t.status!==204)try{const e=t.headers.get("Content-Type");if(e)return["application/json","application/problem+json"].some(a=>e.toLowerCase().startsWith(a))?await t.json():await t.text()}catch(e){console.error(e)}},ge=(t,e)=>{const a=I({400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable"},t.errors)[e.status];if(a)throw new S(t,e,a);if(!e.ok)throw new S(t,e,"Generic Error")},o=(t,e)=>new C(async(a,i,n)=>{try{const s=de(t,e),u=me(e),m=ce(e),p=await pe(t,e);if(!n.isCancelled){const g=await le(t,e,s,m,u,p,n),ee=await he(g),P=ye(g,e.responseHeader),N={url:s,ok:g.ok,status:g.status,statusText:g.statusText,body:P??ee};ge(e,N),a(N.body)}}catch(s){i(s)}});class Te{static getAuditLog({orderDirection:e,sinceDate:a,skip:i,take:n=100}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/audit-log",query:{orderDirection:e,sinceDate:a,skip:i,take:n}})}static getAuditLogById({id:e,orderDirection:a,sinceDate:i,skip:n,take:s=100}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/audit-log/{id}",path:{id:e},query:{orderDirection:a,sinceDate:i,skip:n,take:s}})}static getAuditLogTypeByLogType({logType:e,sinceDate:a,skip:i,take:n=100}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/audit-log/type/{logType}",path:{logType:e},query:{sinceDate:a,skip:i,take:n}})}}class be{static getCulture({skip:e,take:a=100}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/culture",query:{skip:e,take:a}})}}class ve{static postDataType({requestBody:e}){return o(r,{method:"POST",url:"/umbraco/management/api/v1/data-type",body:e,mediaType:"application/json",responseHeader:"Location",errors:{400:"Bad Request",404:"Not Found"}})}static getDataTypeById({id:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/data-type/{id}",path:{id:e},errors:{404:"Not Found"}})}static deleteDataTypeById({id:e}){return o(r,{method:"DELETE",url:"/umbraco/management/api/v1/data-type/{id}",path:{id:e},errors:{400:"Bad Request",404:"Not Found"}})}static putDataTypeById({id:e,requestBody:a}){return o(r,{method:"PUT",url:"/umbraco/management/api/v1/data-type/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}static postDataTypeByIdCopy({id:e,requestBody:a}){return o(r,{method:"POST",url:"/umbraco/management/api/v1/data-type/{id}/copy",path:{id:e},body:a,mediaType:"application/json",responseHeader:"Location",errors:{404:"Not Found"}})}static getDataTypeByIdIsUsed({id:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/data-type/{id}/is-used",path:{id:e},errors:{404:"Not Found"}})}static postDataTypeByIdMove({id:e,requestBody:a}){return o(r,{method:"POST",url:"/umbraco/management/api/v1/data-type/{id}/move",path:{id:e},body:a,mediaType:"application/json",errors:{404:"Not Found"}})}static getDataTypeByIdReferences({id:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/data-type/{id}/references",path:{id:e},errors:{404:"Not Found"}})}static postDataTypeFolder({requestBody:e}){return o(r,{method:"POST",url:"/umbraco/management/api/v1/data-type/folder",body:e,mediaType:"application/json",responseHeader:"Location"})}static getDataTypeFolderById({id:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/data-type/folder/{id}",path:{id:e},errors:{404:"Not Found"}})}static deleteDataTypeFolderById({id:e}){return o(r,{method:"DELETE",url:"/umbraco/management/api/v1/data-type/folder/{id}",path:{id:e},errors:{404:"Not Found"}})}static putDataTypeFolderById({id:e,requestBody:a}){return o(r,{method:"PUT",url:"/umbraco/management/api/v1/data-type/folder/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{404:"Not Found"}})}static getDataTypeItem({id:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/data-type/item",query:{id:e}})}static getTreeDataTypeChildren({parentId:e,skip:a,take:i=100,foldersOnly:n=!1}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/tree/data-type/children",query:{parentId:e,skip:a,take:i,foldersOnly:n}})}static getTreeDataTypeRoot({skip:e,take:a=100,foldersOnly:i=!1}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/tree/data-type/root",query:{skip:e,take:a,foldersOnly:i}})}}class Ee{static getDictionary({skip:e,take:a=100}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/dictionary",query:{skip:e,take:a}})}static postDictionary({requestBody:e}){return o(r,{method:"POST",url:"/umbraco/management/api/v1/dictionary",body:e,mediaType:"application/json",responseHeader:"Location",errors:{400:"Bad Request",404:"Not Found",409:"Conflict"}})}static getDictionaryById({id:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/dictionary/{id}",path:{id:e},errors:{404:"Not Found"}})}static deleteDictionaryById({id:e}){return o(r,{method:"DELETE",url:"/umbraco/management/api/v1/dictionary/{id}",path:{id:e},errors:{400:"Bad Request",404:"Not Found"}})}static putDictionaryById({id:e,requestBody:a}){return o(r,{method:"PUT",url:"/umbraco/management/api/v1/dictionary/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}static getDictionaryByIdExport({id:e,includeChildren:a=!1}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/dictionary/{id}/export",path:{id:e},query:{includeChildren:a},errors:{404:"Not Found"}})}static postDictionaryByIdMove({id:e,requestBody:a}){return o(r,{method:"POST",url:"/umbraco/management/api/v1/dictionary/{id}/move",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}static postDictionaryImport({requestBody:e}){return o(r,{method:"POST",url:"/umbraco/management/api/v1/dictionary/import",body:e,mediaType:"application/json",responseHeader:"Location",errors:{400:"Bad Request",404:"Not Found"}})}static getDictionaryItem({id:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/dictionary/item",query:{id:e}})}static getTreeDictionaryChildren({parentId:e,skip:a,take:i=100}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/tree/dictionary/children",query:{parentId:e,skip:a,take:i}})}static getTreeDictionaryRoot({skip:e,take:a=100}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/tree/dictionary/root",query:{skip:e,take:a}})}}class ke{static postDocument({requestBody:e}){return o(r,{method:"POST",url:"/umbraco/management/api/v1/document",body:e,mediaType:"application/json",responseHeader:"Location",errors:{400:"Bad Request",404:"Not Found"}})}static getDocumentById({id:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/document/{id}",path:{id:e},errors:{404:"Not Found"}})}static deleteDocumentById({id:e}){return o(r,{method:"DELETE",url:"/umbraco/management/api/v1/document/{id}",path:{id:e},errors:{400:"Bad Request",404:"Not Found"}})}static putDocumentById({id:e,requestBody:a}){return o(r,{method:"PUT",url:"/umbraco/management/api/v1/document/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}static postDocumentByIdCopy({id:e,requestBody:a}){return o(r,{method:"POST",url:"/umbraco/management/api/v1/document/{id}/copy",path:{id:e},body:a,mediaType:"application/json",responseHeader:"Location",errors:{400:"Bad Request",404:"Not Found"}})}static getDocumentByIdDomains({id:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/document/{id}/domains",path:{id:e}})}static putDocumentByIdDomains({id:e,requestBody:a}){return o(r,{method:"PUT",url:"/umbraco/management/api/v1/document/{id}/domains",path:{id:e},body:a,mediaType:"application/json"})}static putDocumentByIdMove({id:e,requestBody:a}){return o(r,{method:"PUT",url:"/umbraco/management/api/v1/document/{id}/move",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}static getDocumentByIdNotifications({id:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/document/{id}/notifications",path:{id:e},errors:{404:"Not Found"}})}static putDocumentByIdNotifications({id:e,requestBody:a}){return o(r,{method:"PUT",url:"/umbraco/management/api/v1/document/{id}/notifications",path:{id:e},body:a,mediaType:"application/json",errors:{404:"Not Found"}})}static getDocumentItem({id:e,dataTypeId:a,culture:i}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/document/item",query:{id:e,dataTypeId:a,culture:i}})}static getRecycleBinDocumentChildren({parentId:e,skip:a,take:i=100}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/recycle-bin/document/children",query:{parentId:e,skip:a,take:i},errors:{401:"Unauthorized"}})}static getRecycleBinDocumentRoot({skip:e,take:a=100}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/recycle-bin/document/root",query:{skip:e,take:a},errors:{401:"Unauthorized"}})}static getTreeDocumentChildren({parentId:e,skip:a,take:i=100,dataTypeId:n,culture:s}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/tree/document/children",query:{parentId:e,skip:a,take:i,dataTypeId:n,culture:s}})}static getTreeDocumentRoot({skip:e,take:a=100,dataTypeId:i,culture:n}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/tree/document/root",query:{skip:e,take:a,dataTypeId:i,culture:n}})}}class Be{static getDocumentBlueprintItem({id:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/document-blueprint/item",query:{id:e}})}static getTreeDocumentBlueprintRoot({skip:e,take:a=100}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/tree/document-blueprint/root",query:{skip:e,take:a}})}}class Ie{static getDocumentTypeById({id:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/document-type/{id}",path:{id:e},errors:{404:"Not Found"}})}static getDocumentTypeItem({id:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/document-type/item",query:{id:e}})}static getTreeDocumentTypeChildren({parentId:e,skip:a,take:i=100,foldersOnly:n=!1}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/tree/document-type/children",query:{parentId:e,skip:a,take:i,foldersOnly:n}})}static getTreeDocumentTypeRoot({skip:e,take:a=100,foldersOnly:i=!1}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/tree/document-type/root",query:{skip:e,take:a,foldersOnly:i}})}}class qe{static getHealthCheckGroup({skip:e,take:a=100}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/health-check-group",query:{skip:e,take:a}})}static getHealthCheckGroupByName({name:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/health-check-group/{name}",path:{name:e},errors:{404:"Not Found"}})}static postHealthCheckGroupByNameCheck({name:e}){return o(r,{method:"POST",url:"/umbraco/management/api/v1/health-check-group/{name}/check",path:{name:e},errors:{404:"Not Found"}})}static postHealthCheckExecuteAction({requestBody:e}){return o(r,{method:"POST",url:"/umbraco/management/api/v1/health-check/execute-action",body:e,mediaType:"application/json",errors:{400:"Bad Request"}})}}class Se{static getHelp({section:e,tree:a,skip:i,take:n,baseUrl:s="https://our.umbraco.com"}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/help",query:{section:e,tree:a,skip:i,take:n,baseUrl:s},errors:{400:"Bad Request"}})}}class Re{static getIndexer({skip:e,take:a}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/indexer",query:{skip:e,take:a}})}static getIndexerByIndexName({indexName:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/indexer/{indexName}",path:{indexName:e},errors:{400:"Bad Request"}})}static postIndexerByIndexNameRebuild({indexName:e}){return o(r,{method:"POST",url:"/umbraco/management/api/v1/indexer/{indexName}/rebuild",path:{indexName:e},errors:{400:"Bad Request"}})}}class De{static getInstallSettings(){return o(r,{method:"GET",url:"/umbraco/management/api/v1/install/settings",errors:{400:"Bad Request",428:"Client Error"}})}static postInstallSetup({requestBody:e}){return o(r,{method:"POST",url:"/umbraco/management/api/v1/install/setup",body:e,mediaType:"application/json",errors:{400:"Bad Request",428:"Client Error"}})}static postInstallValidateDatabase({requestBody:e}){return o(r,{method:"POST",url:"/umbraco/management/api/v1/install/validate-database",body:e,mediaType:"application/json",errors:{400:"Bad Request"}})}}class Ge{static getLanguage({skip:e,take:a=100}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/language",query:{skip:e,take:a}})}static postLanguage({requestBody:e}){return o(r,{method:"POST",url:"/umbraco/management/api/v1/language",body:e,mediaType:"application/json",responseHeader:"Location",errors:{400:"Bad Request",404:"Not Found"}})}static getLanguageByIsoCode({isoCode:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/language/{isoCode}",path:{isoCode:e},errors:{404:"Not Found"}})}static deleteLanguageByIsoCode({isoCode:e}){return o(r,{method:"DELETE",url:"/umbraco/management/api/v1/language/{isoCode}",path:{isoCode:e},errors:{400:"Bad Request",404:"Not Found"}})}static putLanguageByIsoCode({isoCode:e,requestBody:a}){return o(r,{method:"PUT",url:"/umbraco/management/api/v1/language/{isoCode}",path:{isoCode:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}static getLanguageItem({isoCode:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/language/item",query:{isoCode:e}})}}class Pe{static getLogViewerLevel({skip:e,take:a=100}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/log-viewer/level",query:{skip:e,take:a}})}static getLogViewerLevelCount({startDate:e,endDate:a}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/log-viewer/level-count",query:{startDate:e,endDate:a},errors:{400:"Bad Request"}})}static getLogViewerLog({skip:e,take:a=100,orderDirection:i,filterExpression:n,logLevel:s,startDate:u,endDate:m}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/log-viewer/log",query:{skip:e,take:a,orderDirection:i,filterExpression:n,logLevel:s,startDate:u,endDate:m}})}static getLogViewerMessageTemplate({skip:e,take:a=100,startDate:i,endDate:n}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/log-viewer/message-template",query:{skip:e,take:a,startDate:i,endDate:n},errors:{400:"Bad Request"}})}static getLogViewerSavedSearch({skip:e,take:a=100}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/log-viewer/saved-search",query:{skip:e,take:a}})}static postLogViewerSavedSearch({requestBody:e}){return o(r,{method:"POST",url:"/umbraco/management/api/v1/log-viewer/saved-search",body:e,mediaType:"application/json",responseHeader:"Location",errors:{400:"Bad Request"}})}static getLogViewerSavedSearchByName({name:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/log-viewer/saved-search/{name}",path:{name:e},errors:{404:"Not Found"}})}static deleteLogViewerSavedSearchByName({name:e}){return o(r,{method:"DELETE",url:"/umbraco/management/api/v1/log-viewer/saved-search/{name}",path:{name:e},errors:{404:"Not Found"}})}static getLogViewerValidateLogsSize({startDate:e,endDate:a}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/log-viewer/validate-logs-size",query:{startDate:e,endDate:a},errors:{400:"Bad Request"}})}}class Ne{static postMedia({requestBody:e}){return o(r,{method:"POST",url:"/umbraco/management/api/v1/media",body:e,mediaType:"application/json",responseHeader:"Location",errors:{400:"Bad Request",404:"Not Found"}})}static getMediaById({id:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/media/{id}",path:{id:e},errors:{404:"Not Found"}})}static deleteMediaById({id:e}){return o(r,{method:"DELETE",url:"/umbraco/management/api/v1/media/{id}",path:{id:e},errors:{400:"Bad Request",404:"Not Found"}})}static putMediaById({id:e,requestBody:a}){return o(r,{method:"PUT",url:"/umbraco/management/api/v1/media/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}static putMediaByIdMove({id:e,requestBody:a}){return o(r,{method:"PUT",url:"/umbraco/management/api/v1/media/{id}/move",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}static getMediaItem({id:e,dataTypeId:a}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/media/item",query:{id:e,dataTypeId:a}})}static getRecycleBinMediaChildren({parentId:e,skip:a,take:i=100}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/recycle-bin/media/children",query:{parentId:e,skip:a,take:i},errors:{401:"Unauthorized"}})}static getRecycleBinMediaRoot({skip:e,take:a=100}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/recycle-bin/media/root",query:{skip:e,take:a},errors:{401:"Unauthorized"}})}static getTreeMediaChildren({parentId:e,skip:a,take:i=100,dataTypeId:n}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/tree/media/children",query:{parentId:e,skip:a,take:i,dataTypeId:n}})}static getTreeMediaItem({id:e,dataTypeId:a}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/tree/media/item",query:{id:e,dataTypeId:a}})}static getTreeMediaRoot({skip:e,take:a=100,dataTypeId:i}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/tree/media/root",query:{skip:e,take:a,dataTypeId:i}})}}class fe{static getMediaTypeById({id:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/media-type/{id}",path:{id:e},errors:{404:"Not Found"}})}static getMediaTypeItem({id:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/media-type/item",query:{id:e}})}static getTreeMediaTypeChildren({parentId:e,skip:a,take:i=100,foldersOnly:n=!1}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/tree/media-type/children",query:{parentId:e,skip:a,take:i,foldersOnly:n}})}static getTreeMediaTypeRoot({skip:e,take:a=100,foldersOnly:i=!1}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/tree/media-type/root",query:{skip:e,take:a,foldersOnly:i}})}}class Oe{static getMemberItem({id:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/member/item",query:{id:e}})}}class Ce{static getMemberGroupItem({id:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/member-group/item",query:{id:e}})}static getTreeMemberGroupRoot({skip:e,take:a=100}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/tree/member-group/root",query:{skip:e,take:a}})}}class Le{static getMemberTypeItem({id:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/member-type/item",query:{id:e}})}static getTreeMemberTypeRoot({skip:e,take:a=100}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/tree/member-type/root",query:{skip:e,take:a}})}}class Ae{static postModelsBuilderBuild(){return o(r,{method:"POST",url:"/umbraco/management/api/v1/models-builder/build",errors:{428:"Client Error"}})}static getModelsBuilderDashboard(){return o(r,{method:"GET",url:"/umbraco/management/api/v1/models-builder/dashboard"})}static getModelsBuilderStatus(){return o(r,{method:"GET",url:"/umbraco/management/api/v1/models-builder/status"})}}class Ue{static getObjectTypes({skip:e,take:a=100}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/object-types",query:{skip:e,take:a}})}}class Fe{static postPackageByNameRunMigration({name:e}){return o(r,{method:"POST",url:"/umbraco/management/api/v1/package/{name}/run-migration",path:{name:e},errors:{404:"Not Found",409:"Conflict"}})}static getPackageCreated({skip:e,take:a=100}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/package/created",query:{skip:e,take:a}})}static postPackageCreated({requestBody:e}){return o(r,{method:"POST",url:"/umbraco/management/api/v1/package/created",body:e,mediaType:"application/json",responseHeader:"Location",errors:{400:"Bad Request",404:"Not Found"}})}static getPackageCreatedById({id:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/package/created/{id}",path:{id:e},errors:{404:"Not Found"}})}static deletePackageCreatedById({id:e}){return o(r,{method:"DELETE",url:"/umbraco/management/api/v1/package/created/{id}",path:{id:e},errors:{404:"Not Found"}})}static putPackageCreatedById({id:e,requestBody:a}){return o(r,{method:"PUT",url:"/umbraco/management/api/v1/package/created/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{404:"Not Found"}})}static getPackageCreatedByIdDownload({id:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/package/created/{id}/download",path:{id:e},errors:{404:"Not Found"}})}static getPackageManifest(){return o(r,{method:"GET",url:"/umbraco/management/api/v1/package/manifest"})}static getPackageMigrationStatus({skip:e,take:a=100}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/package/migration-status",query:{skip:e,take:a}})}}class Me{static getPartialView({path:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/partial-view",query:{path:e}})}static postPartialView({requestBody:e}){return o(r,{method:"POST",url:"/umbraco/management/api/v1/partial-view",body:e,mediaType:"application/json",responseHeader:"Location"})}static deletePartialView({path:e}){return o(r,{method:"DELETE",url:"/umbraco/management/api/v1/partial-view",query:{path:e}})}static putPartialView({requestBody:e}){return o(r,{method:"PUT",url:"/umbraco/management/api/v1/partial-view",body:e,mediaType:"application/json"})}static getPartialViewFolder({path:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/partial-view/folder",query:{path:e}})}static postPartialViewFolder({requestBody:e}){return o(r,{method:"POST",url:"/umbraco/management/api/v1/partial-view/folder",body:e,mediaType:"application/json"})}static deletePartialViewFolder({path:e}){return o(r,{method:"DELETE",url:"/umbraco/management/api/v1/partial-view/folder",query:{path:e}})}static getPartialViewItem({id:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/partial-view/item",query:{id:e}})}static getPartialViewSnippet({skip:e,take:a=100}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/partial-view/snippet",query:{skip:e,take:a}})}static getPartialViewSnippetByName({name:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/partial-view/snippet/{name}",path:{name:e}})}static getTreePartialViewChildren({path:e,skip:a,take:i=100}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/tree/partial-view/children",query:{path:e,skip:a,take:i}})}static getTreePartialViewRoot({skip:e,take:a=100}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/tree/partial-view/root",query:{skip:e,take:a}})}}class we{static getProfilingStatus(){return o(r,{method:"GET",url:"/umbraco/management/api/v1/profiling/status"})}static putProfilingStatus({requestBody:e}){return o(r,{method:"PUT",url:"/umbraco/management/api/v1/profiling/status",body:e,mediaType:"application/json"})}}class je{static getPropertyTypeIsUsed({contentTypeId:e,propertyAlias:a}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/property-type/is-used",query:{contentTypeId:e,propertyAlias:a},errors:{400:"Bad Request"}})}}class He{static postPublishedCacheCollect(){return o(r,{method:"POST",url:"/umbraco/management/api/v1/published-cache/collect"})}static postPublishedCacheRebuild(){return o(r,{method:"POST",url:"/umbraco/management/api/v1/published-cache/rebuild"})}static postPublishedCacheReload(){return o(r,{method:"POST",url:"/umbraco/management/api/v1/published-cache/reload"})}static getPublishedCacheStatus(){return o(r,{method:"GET",url:"/umbraco/management/api/v1/published-cache/status"})}}class _e{static getRedirectManagement({filter:e,skip:a,take:i}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/redirect-management",query:{filter:e,skip:a,take:i},errors:{400:"Bad Request"}})}static getRedirectManagementById({id:e,skip:a,take:i}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/redirect-management/{id}",path:{id:e},query:{skip:a,take:i}})}static deleteRedirectManagementById({id:e}){return o(r,{method:"DELETE",url:"/umbraco/management/api/v1/redirect-management/{id}",path:{id:e}})}static getRedirectManagementStatus(){return o(r,{method:"GET",url:"/umbraco/management/api/v1/redirect-management/status"})}static postRedirectManagementStatus({status:e}){return o(r,{method:"POST",url:"/umbraco/management/api/v1/redirect-management/status",query:{status:e}})}}class Ve{static getRelationById({id:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/relation/{id}",path:{id:e},errors:{404:"Not Found"}})}static getRelationChildRelationByChildId({childId:e,skip:a,take:i,relationTypeAlias:n=""}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/relation/child-relation/{childId}",path:{childId:e},query:{skip:a,take:i,relationTypeAlias:n}})}static getRelationTypeById({id:e,skip:a,take:i=100}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/relation/type/{id}",path:{id:e},query:{skip:a,take:i}})}}class xe{static postRelationType({requestBody:e}){return o(r,{method:"POST",url:"/umbraco/management/api/v1/relation-type",body:e,mediaType:"application/json",responseHeader:"Location",errors:{400:"Bad Request"}})}static getRelationTypeById({id:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/relation-type/{id}",path:{id:e},errors:{404:"Not Found"}})}static deleteRelationTypeById({id:e}){return o(r,{method:"DELETE",url:"/umbraco/management/api/v1/relation-type/{id}",path:{id:e},errors:{404:"Not Found"}})}static putRelationTypeById({id:e,requestBody:a}){return o(r,{method:"PUT",url:"/umbraco/management/api/v1/relation-type/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}static getRelationTypeItem({id:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/relation-type/item",query:{id:e}})}static getTreeRelationTypeRoot({skip:e,take:a=100}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/tree/relation-type/root",query:{skip:e,take:a}})}}class We{static getScript({path:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/script",query:{path:e}})}static postScript({requestBody:e}){return o(r,{method:"POST",url:"/umbraco/management/api/v1/script",body:e,mediaType:"application/json",responseHeader:"Location"})}static deleteScript({path:e}){return o(r,{method:"DELETE",url:"/umbraco/management/api/v1/script",query:{path:e}})}static putScript({requestBody:e}){return o(r,{method:"PUT",url:"/umbraco/management/api/v1/script",body:e,mediaType:"application/json"})}static getScriptFolder({path:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/script/folder",query:{path:e}})}static postScriptFolder({requestBody:e}){return o(r,{method:"POST",url:"/umbraco/management/api/v1/script/folder",body:e,mediaType:"application/json"})}static deleteScriptFolder({path:e}){return o(r,{method:"DELETE",url:"/umbraco/management/api/v1/script/folder",query:{path:e}})}static getScriptItem({path:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/script/item",query:{path:e}})}static getTreeScriptChildren({path:e,skip:a,take:i=100}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/tree/script/children",query:{path:e,skip:a,take:i}})}static getTreeScriptRoot({skip:e,take:a=100}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/tree/script/root",query:{skip:e,take:a}})}}class $e{static getSearcher({skip:e,take:a}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/searcher",query:{skip:e,take:a}})}static getSearcherBySearcherNameQuery({searcherName:e,term:a,skip:i,take:n}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/searcher/{searcherName}/query",path:{searcherName:e},query:{term:a,skip:i,take:n},errors:{404:"Not Found"}})}}class ze{static getSecurityBackOfficeAuthorize(){return o(r,{method:"GET",url:"/umbraco/management/api/v1/security/back-office/authorize"})}static postSecurityBackOfficeLogin({requestBody:e}){return o(r,{method:"POST",url:"/umbraco/management/api/v1/security/back-office/login",body:e,mediaType:"application/json"})}}class Ke{static getServerStatus(){return o(r,{method:"GET",url:"/umbraco/management/api/v1/server/status",errors:{400:"Bad Request"}})}static getServerVersion(){return o(r,{method:"GET",url:"/umbraco/management/api/v1/server/version",errors:{400:"Bad Request"}})}}class Qe{static getStaticFileItem({path:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/static-file/item",query:{path:e}})}static getTreeStaticFileChildren({path:e,skip:a,take:i=100}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/tree/static-file/children",query:{path:e,skip:a,take:i}})}static getTreeStaticFileRoot({skip:e,take:a=100}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/tree/static-file/root",query:{skip:e,take:a}})}}class Ye{static getStylesheet({path:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/stylesheet",query:{path:e}})}static postStylesheet({requestBody:e}){return o(r,{method:"POST",url:"/umbraco/management/api/v1/stylesheet",body:e,mediaType:"application/json",responseHeader:"Location"})}static deleteStylesheet({path:e}){return o(r,{method:"DELETE",url:"/umbraco/management/api/v1/stylesheet",query:{path:e}})}static putStylesheet({requestBody:e}){return o(r,{method:"PUT",url:"/umbraco/management/api/v1/stylesheet",body:e,mediaType:"application/json"})}static getStylesheetAll({skip:e,take:a=100}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/stylesheet/all",query:{skip:e,take:a}})}static getStylesheetFolder({path:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/stylesheet/folder",query:{path:e}})}static postStylesheetFolder({requestBody:e}){return o(r,{method:"POST",url:"/umbraco/management/api/v1/stylesheet/folder",body:e,mediaType:"application/json"})}static deleteStylesheetFolder({path:e}){return o(r,{method:"DELETE",url:"/umbraco/management/api/v1/stylesheet/folder",query:{path:e}})}static getStylesheetItem({path:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/stylesheet/item",query:{path:e}})}static postStylesheetRichTextExtractRules({requestBody:e}){return o(r,{method:"POST",url:"/umbraco/management/api/v1/stylesheet/rich-text/extract-rules",body:e,mediaType:"application/json"})}static postStylesheetRichTextInterpolateRules({requestBody:e}){return o(r,{method:"POST",url:"/umbraco/management/api/v1/stylesheet/rich-text/interpolate-rules",body:e,mediaType:"application/json"})}static getStylesheetRichTextRules({path:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/stylesheet/rich-text/rules",query:{path:e}})}static getTreeStylesheetChildren({path:e,skip:a,take:i=100}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/tree/stylesheet/children",query:{path:e,skip:a,take:i}})}static getTreeStylesheetRoot({skip:e,take:a=100}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/tree/stylesheet/root",query:{skip:e,take:a}})}}class Je{static getTag({query:e,tagGroup:a,culture:i,skip:n,take:s=100}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/tag",query:{query:e,tagGroup:a,culture:i,skip:n,take:s}})}}class Xe{static getTelemetry({skip:e,take:a}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/telemetry",query:{skip:e,take:a}})}static getTelemetryLevel(){return o(r,{method:"GET",url:"/umbraco/management/api/v1/telemetry/level"})}static postTelemetryLevel({requestBody:e}){return o(r,{method:"POST",url:"/umbraco/management/api/v1/telemetry/level",body:e,mediaType:"application/json",errors:{400:"Bad Request"}})}}class Ze{static postTemplate({requestBody:e}){return o(r,{method:"POST",url:"/umbraco/management/api/v1/template",body:e,mediaType:"application/json",responseHeader:"Location",errors:{400:"Bad Request",404:"Not Found"}})}static getTemplateById({id:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/template/{id}",path:{id:e},errors:{404:"Not Found"}})}static deleteTemplateById({id:e}){return o(r,{method:"DELETE",url:"/umbraco/management/api/v1/template/{id}",path:{id:e},errors:{400:"Bad Request",404:"Not Found"}})}static putTemplateById({id:e,requestBody:a}){return o(r,{method:"PUT",url:"/umbraco/management/api/v1/template/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request",404:"Not Found"}})}static getTemplateItem({id:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/template/item",query:{id:e}})}static postTemplateQueryExecute({requestBody:e}){return o(r,{method:"POST",url:"/umbraco/management/api/v1/template/query/execute",body:e,mediaType:"application/json"})}static getTemplateQuerySettings(){return o(r,{method:"GET",url:"/umbraco/management/api/v1/template/query/settings"})}static getTemplateScaffold(){return o(r,{method:"GET",url:"/umbraco/management/api/v1/template/scaffold",errors:{404:"Not Found"}})}static getTreeTemplateChildren({parentId:e,skip:a,take:i=100}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/tree/template/children",query:{parentId:e,skip:a,take:i}})}static getTreeTemplateRoot({skip:e,take:a=100}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/tree/template/root",query:{skip:e,take:a}})}}class et{static postTemporaryfile({formData:e}){return o(r,{method:"POST",url:"/umbraco/management/api/v1/temporaryfile",formData:e,mediaType:"multipart/form-data",responseHeader:"Location",errors:{400:"Bad Request"}})}static getTemporaryfileById({id:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/temporaryfile/{id}",path:{id:e},errors:{400:"Bad Request",404:"Not Found"}})}static deleteTemporaryfileById({id:e}){return o(r,{method:"DELETE",url:"/umbraco/management/api/v1/temporaryfile/{id}",path:{id:e},errors:{400:"Bad Request",404:"Not Found"}})}}class tt{static getTrackedReferenceById({id:e,skip:a,take:i=20,filterMustBeIsDependency:n=!1}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/tracked-reference/{id}",path:{id:e},query:{skip:a,take:i,filterMustBeIsDependency:n}})}static getTrackedReferenceDescendantsByParentId({parentId:e,skip:a,take:i,filterMustBeIsDependency:n=!0}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/tracked-reference/descendants/{parentId}",path:{parentId:e},query:{skip:a,take:i,filterMustBeIsDependency:n}})}static getTrackedReferenceItem({id:e,skip:a,take:i=20,filterMustBeIsDependency:n=!0}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/tracked-reference/item",query:{id:e,skip:a,take:i,filterMustBeIsDependency:n}})}}class at{static postUpgradeAuthorize(){return o(r,{method:"POST",url:"/umbraco/management/api/v1/upgrade/authorize",errors:{428:"Client Error",500:"Server Error"}})}static getUpgradeSettings(){return o(r,{method:"GET",url:"/umbraco/management/api/v1/upgrade/settings",errors:{428:"Client Error"}})}}class rt{static postUser({requestBody:e}){return o(r,{method:"POST",url:"/umbraco/management/api/v1/user",body:e,mediaType:"application/json",errors:{400:"Bad Request"}})}static getUser({skip:e,take:a=100}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/user",query:{skip:e,take:a}})}static getUserById({id:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/user/{id}",path:{id:e},errors:{404:"Not Found"}})}static deleteUserById({id:e}){return o(r,{method:"DELETE",url:"/umbraco/management/api/v1/user/{id}",path:{id:e}})}static putUserById({id:e,requestBody:a}){return o(r,{method:"PUT",url:"/umbraco/management/api/v1/user/{id}",path:{id:e},body:a,mediaType:"application/json"})}static deleteUserAvatarById({id:e}){return o(r,{method:"DELETE",url:"/umbraco/management/api/v1/user/avatar/{id}",path:{id:e}})}static postUserAvatarById({id:e,requestBody:a}){return o(r,{method:"POST",url:"/umbraco/management/api/v1/user/avatar/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{400:"Bad Request"}})}static postUserChangePasswordById({id:e,requestBody:a}){return o(r,{method:"POST",url:"/umbraco/management/api/v1/user/change-password/{id}",path:{id:e},body:a,mediaType:"application/json"})}static postUserDisable({requestBody:e}){return o(r,{method:"POST",url:"/umbraco/management/api/v1/user/disable",body:e,mediaType:"application/json",errors:{400:"Bad Request"}})}static postUserEnable({requestBody:e}){return o(r,{method:"POST",url:"/umbraco/management/api/v1/user/enable",body:e,mediaType:"application/json",errors:{400:"Bad Request"}})}static getUserFilter({skip:e,take:a=100,orderBy:i,orderDirection:n,userGroupIds:s,userStates:u,filter:m=""}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/user/filter",query:{skip:e,take:a,orderBy:i,orderDirection:n,userGroupIds:s,userStates:u,filter:m}})}static postUserInvite({requestBody:e}){return o(r,{method:"POST",url:"/umbraco/management/api/v1/user/invite",body:e,mediaType:"application/json",responseHeader:"Location"})}static getUserItem({id:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/user/item",query:{id:e}})}static postUserSetUserGroups({requestBody:e}){return o(r,{method:"POST",url:"/umbraco/management/api/v1/user/set-user-groups",body:e,mediaType:"application/json"})}static postUserUnlock({requestBody:e}){return o(r,{method:"POST",url:"/umbraco/management/api/v1/user/unlock",body:e,mediaType:"application/json",errors:{400:"Bad Request"}})}}class ot{static postUserGroup({requestBody:e}){return o(r,{method:"POST",url:"/umbraco/management/api/v1/user-group",body:e,mediaType:"application/json",responseHeader:"Location",errors:{400:"Bad Request"}})}static getUserGroup({skip:e,take:a=100}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/user-group",query:{skip:e,take:a}})}static getUserGroupById({id:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/user-group/{id}",path:{id:e},errors:{404:"Not Found"}})}static deleteUserGroupById({id:e}){return o(r,{method:"DELETE",url:"/umbraco/management/api/v1/user-group/{id}",path:{id:e},errors:{404:"Not Found"}})}static putUserGroupById({id:e,requestBody:a}){return o(r,{method:"PUT",url:"/umbraco/management/api/v1/user-group/{id}",path:{id:e},body:a,mediaType:"application/json",errors:{404:"Not Found"}})}static getUserGroupItem({id:e}){return o(r,{method:"GET",url:"/umbraco/management/api/v1/user-group/item",query:{id:e}})}}export{S as ApiError,Te as AuditLogResource,L as AuditTypeModel,O as CancelError,C as CancelablePromise,A as ContentStateModel,U as ContentTypeCompositionTypeModel,be as CultureResource,ve as DataTypeResource,Ee as DictionaryResource,F as DirectionModel,Be as DocumentBlueprintResource,ke as DocumentResource,Ie as DocumentTypeResource,qe as HealthCheckResource,M as HealthStatusModel,Se as HelpResource,Re as IndexerResource,De as InstallResource,Ge as LanguageResource,w as LogLevelModel,Pe as LogViewerResource,Ne as MediaResource,fe as MediaTypeResource,Ce as MemberGroupResource,Oe as MemberResource,Le as MemberTypeResource,Ae as ModelsBuilderResource,j as ModelsModeModel,Ue as ObjectTypesResource,r as OpenAPI,H as OperatorModel,_ as OutOfDateTypeModel,Fe as PackageResource,Me as PartialViewResource,we as ProfilingResource,je as PropertyTypeResource,He as PublishedCacheResource,V as PublishedStateModel,_e as RedirectManagementResource,x as RedirectStatusModel,Ve as RelationResource,xe as RelationTypeResource,W as RuntimeLevelModel,We as ScriptResource,$e as SearcherResource,ze as SecurityResource,Ke as ServerResource,Qe as StaticFileResource,$ as StatusResultTypeModel,Ye as StylesheetResource,Je as TagResource,z as TelemetryLevelModel,Xe as TelemetryResource,K as TemplateQueryPropertyTypeModel,Ze as TemplateResource,et as TemporaryFileResource,tt as TrackedReferenceResource,at as UpgradeResource,ot as UserGroupResource,Q as UserOrderModel,rt as UserResource,Y as UserStateModel};
|