From e107f6e818322401a3ca282db691d335de0d4e4c Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Tue, 18 Jun 2024 12:24:25 +0200 Subject: [PATCH] generate new server models --- .../src/external/backend-api/src/models.ts | 1201 +++++++++-------- .../src/external/backend-api/src/services.ts | 23 + 2 files changed, 631 insertions(+), 593 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/external/backend-api/src/models.ts b/src/Umbraco.Web.UI.Client/src/external/backend-api/src/models.ts index a43051d388..2a59f9fe8d 100644 --- a/src/Umbraco.Web.UI.Client/src/external/backend-api/src/models.ts +++ b/src/Umbraco.Web.UI.Client/src/external/backend-api/src/models.ts @@ -73,6 +73,14 @@ folderPath: Array isCompatible: boolean }; +export type CalculatedUserStartNodesResponseModel = { + id: string +documentStartNodeIds: Array +hasDocumentRootAccess: boolean +mediaStartNodeIds: Array +hasMediaRootAccess: boolean + }; + export type ChangePasswordCurrentUserRequestModel = { newPassword: string oldPassword?: string | null @@ -437,7 +445,7 @@ export type CurrentUserResponseModel = { email: string userName: string name: string -languageIsoCode?: string | null +languageIsoCode: string | null documentStartNodeIds: Array hasDocumentRootAccess: boolean mediaStartNodeIds: Array @@ -953,6 +961,7 @@ valueRequired: boolean providedValue?: string | null providedValueValidation?: string | null providedValueValidationRegex?: string | null +actionParameters?: Record | null }; export type HealthCheckGroupPresentationModel = { @@ -1121,6 +1130,7 @@ level: LogLevelModel export type ManifestResponseModel = { name: string +id?: string | null version?: string | null extensions: Array }; @@ -2760,77 +2770,77 @@ events: Array }; export type CultureData = { - + payloads: { GetCulture: { skip?: number take?: number - + }; } - - + + responses: { GetCulture: PagedCultureReponseModel - + } - + } export type DataTypeData = { - + payloads: { PostDataType: { requestBody?: CreateDataTypeRequestModel - + }; GetDataTypeById: { id: string - + }; DeleteDataTypeById: { id: string - + }; PutDataTypeById: { id: string requestBody?: UpdateDataTypeRequestModel - + }; PostDataTypeByIdCopy: { id: string requestBody?: CopyDataTypeRequestModel - + }; GetDataTypeByIdIsUsed: { id: string - + }; PutDataTypeByIdMove: { id: string requestBody?: MoveDataTypeRequestModel - + }; GetDataTypeByIdReferences: { id: string - + }; PostDataTypeFolder: { requestBody?: CreateFolderRequestModel - + }; GetDataTypeFolderById: { id: string - + }; DeleteDataTypeFolderById: { id: string - + }; PutDataTypeFolderById: { id: string requestBody?: UpdateFolderResponseModel - + }; GetFilterDataType: { editorAlias?: string @@ -2838,38 +2848,38 @@ editorUiAlias?: string name?: string skip?: number take?: number - + }; GetItemDataType: { id?: Array - + }; GetItemDataTypeSearch: { query?: string skip?: number take?: number - + }; GetTreeDataTypeAncestors: { descendantId?: string - + }; GetTreeDataTypeChildren: { foldersOnly?: boolean parentId?: string skip?: number take?: number - + }; GetTreeDataTypeRoot: { foldersOnly?: boolean skip?: number take?: number - + }; } - - + + responses: { PostDataType: string ,GetDataTypeById: DataTypeResponseModel @@ -2890,73 +2900,73 @@ take?: number ,GetTreeDataTypeAncestors: Array ,GetTreeDataTypeChildren: PagedDataTypeTreeItemResponseModel ,GetTreeDataTypeRoot: PagedDataTypeTreeItemResponseModel - + } - + } export type DictionaryData = { - + payloads: { GetDictionary: { filter?: string skip?: number take?: number - + }; PostDictionary: { requestBody?: CreateDictionaryItemRequestModel - + }; GetDictionaryById: { id: string - + }; DeleteDictionaryById: { id: string - + }; PutDictionaryById: { id: string requestBody?: UpdateDictionaryItemRequestModel - + }; GetDictionaryByIdExport: { id: string includeChildren?: boolean - + }; PutDictionaryByIdMove: { id: string requestBody?: MoveDictionaryRequestModel - + }; PostDictionaryImport: { requestBody?: ImportDictionaryRequestModel - + }; GetItemDictionary: { id?: Array - + }; GetTreeDictionaryAncestors: { descendantId?: string - + }; GetTreeDictionaryChildren: { parentId?: string skip?: number take?: number - + }; GetTreeDictionaryRoot: { skip?: number take?: number - + }; } - - + + responses: { GetDictionary: PagedDictionaryOverviewResponseModel ,PostDictionary: string @@ -2970,81 +2980,81 @@ take?: number ,GetTreeDictionaryAncestors: Array ,GetTreeDictionaryChildren: PagedNamedEntityTreeItemResponseModel ,GetTreeDictionaryRoot: PagedNamedEntityTreeItemResponseModel - + } - + } export type DocumentBlueprintData = { - + payloads: { PostDocumentBlueprint: { requestBody?: CreateDocumentBlueprintRequestModel - + }; GetDocumentBlueprintById: { id: string - + }; DeleteDocumentBlueprintById: { id: string - + }; PutDocumentBlueprintById: { id: string requestBody?: UpdateDocumentBlueprintRequestModel - + }; PutDocumentBlueprintByIdMove: { id: string requestBody?: MoveDocumentBlueprintRequestModel - + }; PostDocumentBlueprintFolder: { requestBody?: CreateFolderRequestModel - + }; GetDocumentBlueprintFolderById: { id: string - + }; DeleteDocumentBlueprintFolderById: { id: string - + }; PutDocumentBlueprintFolderById: { id: string requestBody?: UpdateFolderResponseModel - + }; PostDocumentBlueprintFromDocument: { requestBody?: CreateDocumentBlueprintFromDocumentRequestModel - + }; GetItemDocumentBlueprint: { id?: Array - + }; GetTreeDocumentBlueprintAncestors: { descendantId?: string - + }; GetTreeDocumentBlueprintChildren: { foldersOnly?: boolean parentId?: string skip?: number take?: number - + }; GetTreeDocumentBlueprintRoot: { foldersOnly?: boolean skip?: number take?: number - + }; } - - + + responses: { PostDocumentBlueprint: string ,GetDocumentBlueprintById: DocumentBlueprintResponseModel @@ -3060,126 +3070,126 @@ take?: number ,GetTreeDocumentBlueprintAncestors: Array ,GetTreeDocumentBlueprintChildren: PagedDocumentBlueprintTreeItemResponseModel ,GetTreeDocumentBlueprintRoot: PagedDocumentBlueprintTreeItemResponseModel - + } - + } export type DocumentTypeData = { - + payloads: { PostDocumentType: { requestBody?: CreateDocumentTypeRequestModel - + }; GetDocumentTypeById: { id: string - + }; DeleteDocumentTypeById: { id: string - + }; PutDocumentTypeById: { id: string requestBody?: UpdateDocumentTypeRequestModel - + }; GetDocumentTypeByIdAllowedChildren: { id: string skip?: number take?: number - + }; GetDocumentTypeByIdBlueprint: { id: string skip?: number take?: number - + }; GetDocumentTypeByIdCompositionReferences: { id: string - + }; PostDocumentTypeByIdCopy: { id: string requestBody?: CopyDocumentTypeRequestModel - + }; GetDocumentTypeByIdExport: { id: string - + }; PutDocumentTypeByIdImport: { id: string requestBody?: ImportDocumentTypeRequestModel - + }; PutDocumentTypeByIdMove: { id: string requestBody?: MoveDocumentTypeRequestModel - + }; GetDocumentTypeAllowedAtRoot: { skip?: number take?: number - + }; PostDocumentTypeAvailableCompositions: { requestBody?: DocumentTypeCompositionRequestModel - + }; PostDocumentTypeFolder: { requestBody?: CreateFolderRequestModel - + }; GetDocumentTypeFolderById: { id: string - + }; DeleteDocumentTypeFolderById: { id: string - + }; PutDocumentTypeFolderById: { id: string requestBody?: UpdateFolderResponseModel - + }; PostDocumentTypeImport: { requestBody?: ImportDocumentTypeRequestModel - + }; GetItemDocumentType: { id?: Array - + }; GetItemDocumentTypeSearch: { query?: string skip?: number take?: number - + }; GetTreeDocumentTypeAncestors: { descendantId?: string - + }; GetTreeDocumentTypeChildren: { foldersOnly?: boolean parentId?: string skip?: number take?: number - + }; GetTreeDocumentTypeRoot: { foldersOnly?: boolean skip?: number take?: number - + }; } - - + + responses: { PostDocumentType: string ,GetDocumentTypeById: DocumentTypeResponseModel @@ -3205,50 +3215,50 @@ take?: number ,GetTreeDocumentTypeAncestors: Array ,GetTreeDocumentTypeChildren: PagedDocumentTypeTreeItemResponseModel ,GetTreeDocumentTypeRoot: PagedDocumentTypeTreeItemResponseModel - + } - + } export type DocumentVersionData = { - + payloads: { GetDocumentVersion: { culture?: string documentId: string skip?: number take?: number - + }; GetDocumentVersionById: { id: string - + }; PutDocumentVersionByIdPreventCleanup: { id: string preventCleanup?: boolean - + }; PostDocumentVersionByIdRollback: { culture?: string id: string - + }; } - - + + responses: { GetDocumentVersion: PagedDocumentVersionItemResponseModel ,GetDocumentVersionById: DocumentVersionResponseModel ,PutDocumentVersionByIdPreventCleanup: string ,PostDocumentVersionByIdRollback: string - + } - + } export type DocumentData = { - + payloads: { GetCollectionDocumentById: { dataTypeId?: string @@ -3259,24 +3269,24 @@ orderCulture?: string orderDirection?: DirectionModel skip?: number take?: number - + }; PostDocument: { requestBody?: CreateDocumentRequestModel - + }; GetDocumentById: { id: string - + }; DeleteDocumentById: { id: string - + }; PutDocumentById: { id: string requestBody?: UpdateDocumentRequestModel - + }; GetDocumentByIdAuditLog: { id: string @@ -3284,162 +3294,162 @@ orderDirection?: DirectionModel sinceDate?: string skip?: number take?: number - + }; PostDocumentByIdCopy: { id: string requestBody?: CopyDocumentRequestModel - + }; GetDocumentByIdDomains: { id: string - + }; PutDocumentByIdDomains: { id: string requestBody?: UpdateDomainsRequestModel - + }; PutDocumentByIdMove: { id: string requestBody?: MoveDocumentRequestModel - + }; PutDocumentByIdMoveToRecycleBin: { id: string - + }; GetDocumentByIdNotifications: { id: string - + }; PutDocumentByIdNotifications: { id: string requestBody?: UpdateDocumentNotificationsRequestModel - + }; PostDocumentByIdPublicAccess: { id: string requestBody?: PublicAccessRequestModel - + }; DeleteDocumentByIdPublicAccess: { id: string - + }; GetDocumentByIdPublicAccess: { id: string - + }; PutDocumentByIdPublicAccess: { id: string requestBody?: PublicAccessRequestModel - + }; PutDocumentByIdPublish: { id: string requestBody?: PublishDocumentRequestModel - + }; PutDocumentByIdPublishWithDescendants: { id: string requestBody?: PublishDocumentWithDescendantsRequestModel - + }; GetDocumentByIdReferencedBy: { id: string skip?: number take?: number - + }; GetDocumentByIdReferencedDescendants: { id: string skip?: number take?: number - + }; PutDocumentByIdUnpublish: { id: string requestBody?: UnpublishDocumentRequestModel - + }; PutDocumentByIdValidate: { id: string requestBody?: UpdateDocumentRequestModel - + }; GetDocumentAreReferenced: { id?: Array skip?: number take?: number - + }; PutDocumentSort: { requestBody?: SortingRequestModel - + }; GetDocumentUrls: { id?: Array - + }; PostDocumentValidate: { requestBody?: CreateDocumentRequestModel - + }; GetItemDocument: { id?: Array - + }; GetItemDocumentSearch: { query?: string skip?: number take?: number - + }; DeleteRecycleBinDocumentById: { id: string - + }; GetRecycleBinDocumentByIdOriginalParent: { id: string - + }; PutRecycleBinDocumentByIdRestore: { id: string requestBody?: MoveMediaRequestModel - + }; GetRecycleBinDocumentChildren: { parentId?: string skip?: number take?: number - + }; GetRecycleBinDocumentRoot: { skip?: number take?: number - + }; GetTreeDocumentAncestors: { descendantId?: string - + }; GetTreeDocumentChildren: { dataTypeId?: string parentId?: string skip?: number take?: number - + }; GetTreeDocumentRoot: { dataTypeId?: string skip?: number take?: number - + }; } - - + + responses: { GetCollectionDocumentById: PagedDocumentCollectionResponseModel ,PostDocument: string @@ -3480,64 +3490,64 @@ take?: number ,GetTreeDocumentAncestors: Array ,GetTreeDocumentChildren: PagedDocumentTreeItemResponseModel ,GetTreeDocumentRoot: PagedDocumentTreeItemResponseModel - + } - + } export type DynamicRootData = { - + payloads: { PostDynamicRootQuery: { requestBody?: DynamicRootRequestModel - + }; } - - + + responses: { PostDynamicRootQuery: DynamicRootResponseModel ,GetDynamicRootSteps: Array - + } - + } export type HealthCheckData = { - + payloads: { GetHealthCheckGroup: { skip?: number take?: number - + }; GetHealthCheckGroupByName: { name: string - + }; PostHealthCheckGroupByNameCheck: { name: string - + }; PostHealthCheckExecuteAction: { requestBody?: HealthCheckActionRequestModel - + }; } - - + + responses: { GetHealthCheckGroup: PagedHealthCheckGroupResponseModel ,GetHealthCheckGroupByName: HealthCheckGroupPresentationModel ,PostHealthCheckGroupByNameCheck: HealthCheckGroupWithResultResponseModel ,PostHealthCheckExecuteAction: HealthCheckResultResponseModel - + } - + } export type HelpData = { - + payloads: { GetHelp: { baseUrl?: string @@ -3545,138 +3555,138 @@ section?: string skip?: number take?: number tree?: string - + }; } - - + + responses: { GetHelp: PagedHelpPageResponseModel - + } - + } export type ImagingData = { - + payloads: { GetImagingResizeUrls: { height?: number id?: Array mode?: ImageCropModeModel width?: number - + }; } - - + + responses: { GetImagingResizeUrls: Array - + } - + } export type ImportData = { - + payloads: { GetImportAnalyze: { temporaryFileId?: string - + }; } - - + + responses: { GetImportAnalyze: EntityImportAnalysisResponseModel - + } - + } export type IndexerData = { - + payloads: { GetIndexer: { skip?: number take?: number - + }; GetIndexerByIndexName: { indexName: string - + }; PostIndexerByIndexNameRebuild: { indexName: string - + }; } - - + + responses: { GetIndexer: PagedIndexResponseModel ,GetIndexerByIndexName: IndexResponseModel ,PostIndexerByIndexNameRebuild: string - + } - + } export type InstallData = { - + payloads: { PostInstallSetup: { requestBody?: InstallRequestModel - + }; PostInstallValidateDatabase: { requestBody?: DatabaseInstallRequestModel - + }; } - - + + responses: { GetInstallSettings: InstallSettingsResponseModel ,PostInstallSetup: string ,PostInstallValidateDatabase: string - + } - + } export type LanguageData = { - + payloads: { GetItemLanguage: { isoCode?: Array - + }; GetLanguage: { skip?: number take?: number - + }; PostLanguage: { requestBody?: CreateLanguageRequestModel - + }; GetLanguageByIsoCode: { isoCode: string - + }; DeleteLanguageByIsoCode: { isoCode: string - + }; PutLanguageByIsoCode: { isoCode: string requestBody?: UpdateLanguageRequestModel - + }; } - - + + responses: { GetItemLanguage: Array ,GetItemLanguageDefault: LanguageItemResponseModel @@ -3685,23 +3695,23 @@ requestBody?: UpdateLanguageRequestModel ,GetLanguageByIsoCode: LanguageResponseModel ,DeleteLanguageByIsoCode: string ,PutLanguageByIsoCode: string - + } - + } export type LogViewerData = { - + payloads: { GetLogViewerLevel: { skip?: number take?: number - + }; GetLogViewerLevelCount: { endDate?: string startDate?: string - + }; GetLogViewerLog: { endDate?: string @@ -3711,40 +3721,40 @@ orderDirection?: DirectionModel skip?: number startDate?: string take?: number - + }; GetLogViewerMessageTemplate: { endDate?: string skip?: number startDate?: string take?: number - + }; GetLogViewerSavedSearch: { skip?: number take?: number - + }; PostLogViewerSavedSearch: { requestBody?: SavedLogSearchRequestModel - + }; GetLogViewerSavedSearchByName: { name: string - + }; DeleteLogViewerSavedSearchByName: { name: string - + }; GetLogViewerValidateLogsSize: { endDate?: string startDate?: string - + }; } - - + + responses: { GetLogViewerLevel: PagedLoggerResponseModel ,GetLogViewerLevelCount: LogLevelCountsReponseModel @@ -3755,143 +3765,143 @@ startDate?: string ,GetLogViewerSavedSearchByName: SavedLogSearchResponseModel ,DeleteLogViewerSavedSearchByName: string ,GetLogViewerValidateLogsSize: any - + } - + } export type ManifestData = { - - + + responses: { GetManifestManifest: Array ,GetManifestManifestPrivate: Array ,GetManifestManifestPublic: Array - + } - + } export type MediaTypeData = { - + payloads: { GetItemMediaType: { id?: Array - + }; GetItemMediaTypeAllowed: { fileExtension?: string skip?: number take?: number - + }; GetItemMediaTypeFolders: { skip?: number take?: number - + }; GetItemMediaTypeSearch: { query?: string skip?: number take?: number - + }; PostMediaType: { requestBody?: CreateMediaTypeRequestModel - + }; GetMediaTypeById: { id: string - + }; DeleteMediaTypeById: { id: string - + }; PutMediaTypeById: { id: string requestBody?: UpdateMediaTypeRequestModel - + }; GetMediaTypeByIdAllowedChildren: { id: string skip?: number take?: number - + }; GetMediaTypeByIdCompositionReferences: { id: string - + }; PostMediaTypeByIdCopy: { id: string requestBody?: CopyMediaTypeRequestModel - + }; GetMediaTypeByIdExport: { id: string - + }; PutMediaTypeByIdImport: { id: string requestBody?: ImportMediaTypeRequestModel - + }; PutMediaTypeByIdMove: { id: string requestBody?: MoveMediaTypeRequestModel - + }; GetMediaTypeAllowedAtRoot: { skip?: number take?: number - + }; PostMediaTypeAvailableCompositions: { requestBody?: MediaTypeCompositionRequestModel - + }; PostMediaTypeFolder: { requestBody?: CreateFolderRequestModel - + }; GetMediaTypeFolderById: { id: string - + }; DeleteMediaTypeFolderById: { id: string - + }; PutMediaTypeFolderById: { id: string requestBody?: UpdateFolderResponseModel - + }; PostMediaTypeImport: { requestBody?: ImportMediaTypeRequestModel - + }; GetTreeMediaTypeAncestors: { descendantId?: string - + }; GetTreeMediaTypeChildren: { foldersOnly?: boolean parentId?: string skip?: number take?: number - + }; GetTreeMediaTypeRoot: { foldersOnly?: boolean skip?: number take?: number - + }; } - - + + responses: { GetItemMediaType: Array ,GetItemMediaTypeAllowed: PagedModelMediaTypeItemResponseModel @@ -3917,13 +3927,13 @@ take?: number ,GetTreeMediaTypeAncestors: Array ,GetTreeMediaTypeChildren: PagedMediaTypeTreeItemResponseModel ,GetTreeMediaTypeRoot: PagedMediaTypeTreeItemResponseModel - + } - + } export type MediaData = { - + payloads: { GetCollectionMedia: { dataTypeId?: string @@ -3933,34 +3943,34 @@ orderBy?: string orderDirection?: DirectionModel skip?: number take?: number - + }; GetItemMedia: { id?: Array - + }; GetItemMediaSearch: { query?: string skip?: number take?: number - + }; PostMedia: { requestBody?: CreateMediaRequestModel - + }; GetMediaById: { id: string - + }; DeleteMediaById: { id: string - + }; PutMediaById: { id: string requestBody?: UpdateMediaRequestModel - + }; GetMediaByIdAuditLog: { id: string @@ -3968,96 +3978,96 @@ orderDirection?: DirectionModel sinceDate?: string skip?: number take?: number - + }; PutMediaByIdMove: { id: string requestBody?: MoveMediaRequestModel - + }; PutMediaByIdMoveToRecycleBin: { id: string - + }; GetMediaByIdReferencedBy: { id: string skip?: number take?: number - + }; GetMediaByIdReferencedDescendants: { id: string skip?: number take?: number - + }; PutMediaByIdValidate: { id: string requestBody?: UpdateMediaRequestModel - + }; GetMediaAreReferenced: { id?: Array skip?: number take?: number - + }; PutMediaSort: { requestBody?: SortingRequestModel - + }; GetMediaUrls: { id?: Array - + }; PostMediaValidate: { requestBody?: CreateMediaRequestModel - + }; DeleteRecycleBinMediaById: { id: string - + }; GetRecycleBinMediaByIdOriginalParent: { id: string - + }; PutRecycleBinMediaByIdRestore: { id: string requestBody?: MoveMediaRequestModel - + }; GetRecycleBinMediaChildren: { parentId?: string skip?: number take?: number - + }; GetRecycleBinMediaRoot: { skip?: number take?: number - + }; GetTreeMediaAncestors: { descendantId?: string - + }; GetTreeMediaChildren: { dataTypeId?: string parentId?: string skip?: number take?: number - + }; GetTreeMediaRoot: { dataTypeId?: string skip?: number take?: number - + }; } - - + + responses: { GetCollectionMedia: PagedMediaCollectionResponseModel ,GetItemMedia: Array @@ -4086,48 +4096,48 @@ take?: number ,GetTreeMediaAncestors: Array ,GetTreeMediaChildren: PagedMediaTreeItemResponseModel ,GetTreeMediaRoot: PagedMediaTreeItemResponseModel - + } - + } export type MemberGroupData = { - + payloads: { GetItemMemberGroup: { id?: Array - + }; GetMemberGroup: { skip?: number take?: number - + }; PostMemberGroup: { requestBody?: CreateMemberGroupRequestModel - + }; GetMemberGroupById: { id: string - + }; DeleteMemberGroupById: { id: string - + }; PutMemberGroupById: { id: string requestBody?: UpdateMemberGroupRequestModel - + }; GetTreeMemberGroupRoot: { skip?: number take?: number - + }; } - - + + responses: { GetItemMemberGroup: Array ,GetMemberGroup: PagedMemberGroupResponseModel @@ -4136,61 +4146,61 @@ take?: number ,DeleteMemberGroupById: string ,PutMemberGroupById: string ,GetTreeMemberGroupRoot: PagedNamedEntityTreeItemResponseModel - + } - + } export type MemberTypeData = { - + payloads: { GetItemMemberType: { id?: Array - + }; GetItemMemberTypeSearch: { query?: string skip?: number take?: number - + }; PostMemberType: { requestBody?: CreateMemberTypeRequestModel - + }; GetMemberTypeById: { id: string - + }; DeleteMemberTypeById: { id: string - + }; PutMemberTypeById: { id: string requestBody?: UpdateMemberTypeRequestModel - + }; GetMemberTypeByIdCompositionReferences: { id: string - + }; PostMemberTypeByIdCopy: { id: string - + }; PostMemberTypeAvailableCompositions: { requestBody?: MemberTypeCompositionRequestModel - + }; GetTreeMemberTypeRoot: { skip?: number take?: number - + }; } - - + + responses: { GetItemMemberType: Array ,GetItemMemberTypeSearch: PagedModelMemberTypeItemResponseModel @@ -4202,13 +4212,13 @@ take?: number ,PostMemberTypeByIdCopy: string ,PostMemberTypeAvailableCompositions: Array ,GetTreeMemberTypeRoot: PagedMemberTypeTreeItemResponseModel - + } - + } export type MemberData = { - + payloads: { GetFilterMember: { filter?: string @@ -4220,47 +4230,47 @@ orderBy?: string orderDirection?: DirectionModel skip?: number take?: number - + }; GetItemMember: { id?: Array - + }; GetItemMemberSearch: { query?: string skip?: number take?: number - + }; PostMember: { requestBody?: CreateMemberRequestModel - + }; GetMemberById: { id: string - + }; DeleteMemberById: { id: string - + }; PutMemberById: { id: string requestBody?: UpdateMemberRequestModel - + }; PutMemberByIdValidate: { id: string requestBody?: UpdateMemberRequestModel - + }; PostMemberValidate: { requestBody?: CreateMemberRequestModel - + }; } - - + + responses: { GetFilterMember: PagedMemberResponseModel ,GetItemMember: Array @@ -4272,101 +4282,101 @@ PostMemberValidate: { ,PutMemberByIdValidate: string ,GetMemberConfiguration: MemberConfigurationResponseModel ,PostMemberValidate: string - + } - + } export type ModelsBuilderData = { - - + + responses: { PostModelsBuilderBuild: string ,GetModelsBuilderDashboard: ModelsBuilderResponseModel ,GetModelsBuilderStatus: OutOfDateStatusResponseModel - + } - + } export type ObjectTypesData = { - + payloads: { GetObjectTypes: { skip?: number take?: number - + }; } - - + + responses: { GetObjectTypes: PagedObjectTypeResponseModel - + } - + } export type OembedData = { - + payloads: { GetOembedQuery: { maxHeight?: number maxWidth?: number url?: string - + }; } - - + + responses: { GetOembedQuery: OEmbedResponseModel - + } - + } export type PackageData = { - + payloads: { PostPackageByNameRunMigration: { name: string - + }; GetPackageCreated: { skip?: number take?: number - + }; PostPackageCreated: { requestBody?: CreatePackageRequestModel - + }; GetPackageCreatedById: { id: string - + }; DeletePackageCreatedById: { id: string - + }; PutPackageCreatedById: { id: string requestBody?: UpdatePackageRequestModel - + }; GetPackageCreatedByIdDownload: { id: string - + }; GetPackageMigrationStatus: { skip?: number take?: number - + }; } - - + + responses: { PostPackageByNameRunMigration: string ,GetPackageConfiguration: PackageConfigurationResponseModel @@ -4377,79 +4387,79 @@ take?: number ,PutPackageCreatedById: string ,GetPackageCreatedByIdDownload: Blob | File ,GetPackageMigrationStatus: PagedPackageMigrationStatusResponseModel - + } - + } export type PartialViewData = { - + payloads: { GetItemPartialView: { path?: Array - + }; PostPartialView: { requestBody?: CreatePartialViewRequestModel - + }; GetPartialViewByPath: { path: string - + }; DeletePartialViewByPath: { path: string - + }; PutPartialViewByPath: { path: string requestBody?: UpdatePartialViewRequestModel - + }; PutPartialViewByPathRename: { path: string requestBody?: RenamePartialViewRequestModel - + }; PostPartialViewFolder: { requestBody?: CreatePartialViewFolderRequestModel - + }; GetPartialViewFolderByPath: { path: string - + }; DeletePartialViewFolderByPath: { path: string - + }; GetPartialViewSnippet: { skip?: number take?: number - + }; GetPartialViewSnippetById: { id: string - + }; GetTreePartialViewAncestors: { descendantPath?: string - + }; GetTreePartialViewChildren: { parentPath?: string skip?: number take?: number - + }; GetTreePartialViewRoot: { skip?: number take?: number - + }; } - - + + responses: { GetItemPartialView: Array ,PostPartialView: string @@ -4465,214 +4475,214 @@ take?: number ,GetTreePartialViewAncestors: Array ,GetTreePartialViewChildren: PagedFileSystemTreeItemPresentationModel ,GetTreePartialViewRoot: PagedFileSystemTreeItemPresentationModel - + } - + } export type PreviewData = { - - + + responses: { DeletePreview: string ,PostPreview: string - + } - + } export type ProfilingData = { - + payloads: { PutProfilingStatus: { requestBody?: ProfilingStatusRequestModel - + }; } - - + + responses: { GetProfilingStatus: ProfilingStatusResponseModel ,PutProfilingStatus: string - + } - + } export type PropertyTypeData = { - + payloads: { GetPropertyTypeIsUsed: { contentTypeId?: string propertyAlias?: string - + }; } - - + + responses: { GetPropertyTypeIsUsed: boolean - + } - + } export type PublishedCacheData = { - - + + responses: { PostPublishedCacheCollect: string ,PostPublishedCacheRebuild: string ,PostPublishedCacheReload: string ,GetPublishedCacheStatus: string - + } - + } export type RedirectManagementData = { - + payloads: { GetRedirectManagement: { filter?: string skip?: number take?: number - + }; GetRedirectManagementById: { id: string skip?: number take?: number - + }; DeleteRedirectManagementById: { id: string - + }; PostRedirectManagementStatus: { status?: RedirectStatusModel - + }; } - - + + responses: { GetRedirectManagement: PagedRedirectUrlResponseModel ,GetRedirectManagementById: PagedRedirectUrlResponseModel ,DeleteRedirectManagementById: string ,GetRedirectManagementStatus: RedirectUrlStatusResponseModel ,PostRedirectManagementStatus: string - + } - + } export type RelationTypeData = { - + payloads: { GetItemRelationType: { id?: Array - + }; GetRelationType: { skip?: number take?: number - + }; GetRelationTypeById: { id: string - + }; } - - + + responses: { GetItemRelationType: Array ,GetRelationType: PagedRelationTypeResponseModel ,GetRelationTypeById: RelationTypeResponseModel - + } - + } export type RelationData = { - + payloads: { GetRelationTypeById: { id: string skip?: number take?: number - + }; } - - + + responses: { GetRelationTypeById: PagedRelationResponseModel - + } - + } export type ScriptData = { - + payloads: { GetItemScript: { path?: Array - + }; PostScript: { requestBody?: CreateScriptRequestModel - + }; GetScriptByPath: { path: string - + }; DeleteScriptByPath: { path: string - + }; PutScriptByPath: { path: string requestBody?: UpdateScriptRequestModel - + }; PutScriptByPathRename: { path: string requestBody?: RenameScriptRequestModel - + }; PostScriptFolder: { requestBody?: CreateScriptFolderRequestModel - + }; GetScriptFolderByPath: { path: string - + }; DeleteScriptFolderByPath: { path: string - + }; GetTreeScriptAncestors: { descendantPath?: string - + }; GetTreeScriptChildren: { parentPath?: string skip?: number take?: number - + }; GetTreeScriptRoot: { skip?: number take?: number - + }; } - - + + responses: { GetItemScript: Array ,PostScript: string @@ -4686,190 +4696,190 @@ take?: number ,GetTreeScriptAncestors: Array ,GetTreeScriptChildren: PagedFileSystemTreeItemPresentationModel ,GetTreeScriptRoot: PagedFileSystemTreeItemPresentationModel - + } - + } export type SearcherData = { - + payloads: { GetSearcher: { skip?: number take?: number - + }; GetSearcherBySearcherNameQuery: { searcherName: string skip?: number take?: number term?: string - + }; } - - + + responses: { GetSearcher: PagedSearcherResponseModel ,GetSearcherBySearcherNameQuery: PagedSearchResultResponseModel - + } - + } export type SecurityData = { - + payloads: { PostSecurityForgotPassword: { requestBody?: ResetPasswordRequestModel - + }; PostSecurityForgotPasswordReset: { requestBody?: ResetPasswordTokenRequestModel - + }; PostSecurityForgotPasswordVerify: { requestBody?: VerifyResetPasswordTokenRequestModel - + }; } - - + + responses: { GetSecurityConfiguration: SecurityConfigurationResponseModel ,PostSecurityForgotPassword: string ,PostSecurityForgotPasswordReset: string ,PostSecurityForgotPasswordVerify: VerifyResetPasswordResponseModel - + } - + } export type SegmentData = { - + payloads: { GetSegment: { skip?: number take?: number - + }; } - - + + responses: { GetSegment: PagedSegmentResponseModel - + } - + } export type ServerData = { - - + + responses: { GetServerConfiguration: ServerConfigurationResponseModel ,GetServerInformation: ServerInformationResponseModel ,GetServerStatus: ServerStatusResponseModel ,GetServerTroubleshooting: ServerTroubleshootingResponseModel - + } - + } export type StaticFileData = { - + payloads: { GetItemStaticFile: { path?: Array - + }; GetTreeStaticFileAncestors: { descendantPath?: string - + }; GetTreeStaticFileChildren: { parentPath?: string skip?: number take?: number - + }; GetTreeStaticFileRoot: { skip?: number take?: number - + }; } - - + + responses: { GetItemStaticFile: Array ,GetTreeStaticFileAncestors: Array ,GetTreeStaticFileChildren: PagedFileSystemTreeItemPresentationModel ,GetTreeStaticFileRoot: PagedFileSystemTreeItemPresentationModel - + } - + } export type StylesheetData = { - + payloads: { GetItemStylesheet: { path?: Array - + }; PostStylesheet: { requestBody?: CreateStylesheetRequestModel - + }; GetStylesheetByPath: { path: string - + }; DeleteStylesheetByPath: { path: string - + }; PutStylesheetByPath: { path: string requestBody?: UpdateStylesheetRequestModel - + }; PutStylesheetByPathRename: { path: string requestBody?: RenameStylesheetRequestModel - + }; PostStylesheetFolder: { requestBody?: CreateStylesheetFolderRequestModel - + }; GetStylesheetFolderByPath: { path: string - + }; DeleteStylesheetFolderByPath: { path: string - + }; GetTreeStylesheetAncestors: { descendantPath?: string - + }; GetTreeStylesheetChildren: { parentPath?: string skip?: number take?: number - + }; GetTreeStylesheetRoot: { skip?: number take?: number - + }; } - - + + responses: { GetItemStylesheet: Array ,PostStylesheet: string @@ -4883,13 +4893,13 @@ take?: number ,GetTreeStylesheetAncestors: Array ,GetTreeStylesheetChildren: PagedFileSystemTreeItemPresentationModel ,GetTreeStylesheetRoot: PagedFileSystemTreeItemPresentationModel - + } - + } export type TagData = { - + payloads: { GetTag: { culture?: string @@ -4897,94 +4907,94 @@ query?: string skip?: number tagGroup?: string take?: number - + }; } - - + + responses: { GetTag: PagedTagResponseModel - + } - + } export type TelemetryData = { - + payloads: { GetTelemetry: { skip?: number take?: number - + }; PostTelemetryLevel: { requestBody?: TelemetryRequestModel - + }; } - - + + responses: { GetTelemetry: PagedTelemetryResponseModel ,GetTelemetryLevel: TelemetryResponseModel ,PostTelemetryLevel: string - + } - + } export type TemplateData = { - + payloads: { GetItemTemplate: { id?: Array - + }; GetItemTemplateSearch: { query?: string skip?: number take?: number - + }; PostTemplate: { requestBody?: CreateTemplateRequestModel - + }; GetTemplateById: { id: string - + }; DeleteTemplateById: { id: string - + }; PutTemplateById: { id: string requestBody?: UpdateTemplateRequestModel - + }; PostTemplateQueryExecute: { requestBody?: TemplateQueryExecuteModel - + }; GetTreeTemplateAncestors: { descendantId?: string - + }; GetTreeTemplateChildren: { parentId?: string skip?: number take?: number - + }; GetTreeTemplateRoot: { skip?: number take?: number - + }; } - - + + responses: { GetItemTemplate: Array ,GetItemTemplateSearch: PagedModelTemplateItemResponseModel @@ -4998,140 +5008,140 @@ take?: number ,GetTreeTemplateAncestors: Array ,GetTreeTemplateChildren: PagedNamedEntityTreeItemResponseModel ,GetTreeTemplateRoot: PagedNamedEntityTreeItemResponseModel - + } - + } export type TemporaryFileData = { - + payloads: { PostTemporaryFile: { formData?: { Id: string File: Blob | File } - + }; GetTemporaryFileById: { id: string - + }; DeleteTemporaryFileById: { id: string - + }; } - - + + responses: { PostTemporaryFile: string ,GetTemporaryFileById: TemporaryFileResponseModel ,DeleteTemporaryFileById: string ,GetTemporaryFileConfiguration: TemporaryFileConfigurationResponseModel - + } - + } export type UpgradeData = { - - + + responses: { PostUpgradeAuthorize: string ,GetUpgradeSettings: UpgradeSettingsResponseModel - + } - + } export type UserDataData = { - + payloads: { PostUserData: { requestBody?: CreateUserDataRequestModel - + }; GetUserData: { groups?: Array identifiers?: Array skip?: number take?: number - + }; PutUserData: { requestBody?: UpdateUserDataRequestModel - + }; GetUserDataById: { id: string - + }; } - - + + responses: { PostUserData: string ,GetUserData: PagedUserDataResponseModel ,PutUserData: string ,GetUserDataById: UserDataModel - + } - + } export type UserGroupData = { - + payloads: { GetFilterUserGroup: { filter?: string skip?: number take?: number - + }; GetItemUserGroup: { id?: Array - + }; DeleteUserGroup: { requestBody?: DeleteUserGroupsRequestModel - + }; PostUserGroup: { requestBody?: CreateUserGroupRequestModel - + }; GetUserGroup: { skip?: number take?: number - + }; GetUserGroupById: { id: string - + }; DeleteUserGroupById: { id: string - + }; PutUserGroupById: { id: string requestBody?: UpdateUserGroupRequestModel - + }; DeleteUserGroupByIdUsers: { id: string requestBody?: Array - + }; PostUserGroupByIdUsers: { id: string requestBody?: Array - + }; } - - + + responses: { GetFilterUserGroup: PagedUserGroupResponseModel ,GetItemUserGroup: Array @@ -5143,13 +5153,13 @@ requestBody?: Array ,PutUserGroupById: string ,DeleteUserGroupByIdUsers: string ,PostUserGroupByIdUsers: string - + } - + } export type UserData = { - + payloads: { GetFilterUser: { filter?: string @@ -5159,134 +5169,138 @@ skip?: number take?: number userGroupIds?: Array userStates?: Array - + }; GetItemUser: { id?: Array - + }; PostUser: { requestBody?: CreateUserRequestModel - + }; DeleteUser: { requestBody?: DeleteUsersRequestModel - + }; GetUser: { skip?: number take?: number - + }; GetUserById: { id: string - + }; DeleteUserById: { id: string - + }; PutUserById: { id: string requestBody?: UpdateUserRequestModel - + }; GetUserById2Fa: { id: string - + }; DeleteUserById2FaByProviderName: { id: string providerName: string - + + }; +GetUserByIdCalculateStartNodes: { + id: string + }; PostUserByIdChangePassword: { id: string requestBody?: ChangePasswordUserRequestModel - + }; PostUserByIdResetPassword: { id: string - + }; DeleteUserAvatarById: { id: string - + }; PostUserAvatarById: { id: string requestBody?: SetAvatarRequestModel - + }; DeleteUserCurrent2FaByProviderName: { code?: string providerName: string - + }; PostUserCurrent2FaByProviderName: { providerName: string requestBody?: EnableTwoFactorRequestModel - + }; GetUserCurrent2FaByProviderName: { providerName: string - + }; PostUserCurrentAvatar: { requestBody?: SetAvatarRequestModel - + }; PostUserCurrentChangePassword: { requestBody?: ChangePasswordCurrentUserRequestModel - + }; GetUserCurrentPermissions: { id?: Array - + }; GetUserCurrentPermissionsDocument: { id?: Array - + }; GetUserCurrentPermissionsMedia: { id?: Array - + }; PostUserDisable: { requestBody?: DisableUserRequestModel - + }; PostUserEnable: { requestBody?: EnableUserRequestModel - + }; PostUserInvite: { requestBody?: InviteUserRequestModel - + }; PostUserInviteCreatePassword: { requestBody?: CreateInitialPasswordUserRequestModel - + }; PostUserInviteResend: { requestBody?: ResendInviteUserRequestModel - + }; PostUserInviteVerify: { requestBody?: VerifyInviteUserRequestModel - + }; PostUserSetUserGroups: { requestBody?: UpdateUserGroupsOnUserRequestModel - + }; PostUserUnlock: { requestBody?: UnlockUsersRequestModel - + }; } - - + + responses: { GetFilterUser: PagedUserResponseModel ,GetItemUser: Array @@ -5298,6 +5312,7 @@ PostUserUnlock: { ,PutUserById: string ,GetUserById2Fa: Array ,DeleteUserById2FaByProviderName: string + ,GetUserByIdCalculateStartNodes: CalculatedUserStartNodesResponseModel ,PostUserByIdChangePassword: string ,PostUserByIdResetPassword: ResetPasswordUserResponseModel ,DeleteUserAvatarById: string @@ -5323,48 +5338,48 @@ PostUserUnlock: { ,PostUserInviteVerify: VerifyInviteUserResponseModel ,PostUserSetUserGroups: string ,PostUserUnlock: string - + } - + } export type WebhookData = { - + payloads: { GetItemWebhook: { id?: Array - + }; GetWebhook: { skip?: number take?: number - + }; PostWebhook: { requestBody?: CreateWebhookRequestModel - + }; GetWebhookById: { id: string - + }; DeleteWebhookById: { id: string - + }; PutWebhookById: { id: string requestBody?: UpdateWebhookRequestModel - + }; GetWebhookEvents: { skip?: number take?: number - + }; } - - + + responses: { GetItemWebhook: Array ,GetWebhook: PagedWebhookResponseModel @@ -5373,7 +5388,7 @@ take?: number ,DeleteWebhookById: string ,PutWebhookById: string ,GetWebhookEvents: PagedWebhookEventModel - + } - - } + + } \ No newline at end of file diff --git a/src/Umbraco.Web.UI.Client/src/external/backend-api/src/services.ts b/src/Umbraco.Web.UI.Client/src/external/backend-api/src/services.ts index 39f875d253..07693b5ecb 100644 --- a/src/Umbraco.Web.UI.Client/src/external/backend-api/src/services.ts +++ b/src/Umbraco.Web.UI.Client/src/external/backend-api/src/services.ts @@ -8566,6 +8566,29 @@ providerName }); } + /** + * @returns unknown OK + * @throws ApiError + */ + public static getUserByIdCalculateStartNodes(data: UserData['payloads']['GetUserByIdCalculateStartNodes']): CancelablePromise { + const { + + id + } = data; + return __request(OpenAPI, { + method: 'GET', + url: '/umbraco/management/api/v1/user/{id}/calculate-start-nodes', + path: { + id + }, + errors: { + 401: `The resource is protected and requires an authentication token`, + 403: `The authenticated user do not have access to this resource`, + 404: `Not Found`, + }, + }); + } + /** * @returns string OK * @throws ApiError