跳到主要内容

Type Aliases

Configuration, event, filter and data shapes exchanged with the embedded frame. Most integrations only need TFrameConfig and TFrameEvents; the remaining types describe what the instance methods accept and return.

Overview​

The following types are available:

TypeDescription
TAppReadyPayloadPayload of TFrameEvents.onAppReady.
TAuthErrorPayload of TFrameEvents.onAuthError.
TAuthErrorCodeFailure categories reported through TFrameEvents.onAuthError in OAuth mode.
TBannerDisplayingString literal union of all HeaderBannerDisplaying values.
TCreatedByUser reference in file/folder/room metadata.
TCreateRoomOptionsOptional settings for SDKInstance.createRoom.
TCustomActionEventPayload of TFrameEvents.onCustomAction.
TCustomActionsConfigCustom actions of a frame, set with TFrameConfig.customActions or SDKInstance.setCustomActions.
TCustomActionSectionA section a custom action can be limited to: a TManagerSection, a TPersonalSection or a TFormsSection, matched against the mode the frame runs in.
TCustomContextMenuActionA custom context menu item.
TCustomContextMenuActionsCustom context menu actions grouped by the entity type they apply to.
TCustomCreateActionA custom item of the create ("+") menu.
TEditorActionEditor action the manager requests when it opens a file: "view" read-only, "fill" form filling, "edit" editing.
TEditorAnonymousAnonymous user settings for the editor, passed via TEditorCustomization.anonymous.
TEditorCustomizationEditor customization options passed via TFrameConfig.editorCustomization.
TEditorOpenPayloadPayload of TFrameEvents.onEditorOpen: the file the frame is about to open plus the requested action.
TEditorTypeString literal union of all EditorType values.
TEntityBaseCommon fields shared by file, folder, and room metadata.
TFileInfoFile information returned by SDK methods.
TFilesResponseResponse wrapper for file/folder listing methods.
TFilterSearchPayloadPayload of TFrameEvents.onFilterSearch.
TFilterSortByString literal union of all FilterSortBy values.
TFilterSortOrderString literal union of all FilterSortOrder values.
TFolderInfoFolder information returned by SDK methods.
TFormsSectionNavigation sections available in SDKMode.Forms mode.
TFrameConfigThe main configuration object for initializing an ONLYOFFICE Apps frame.
TFrameEventsEvent handler map for the ONLYOFFICE Apps iframe.
TFrameFilterFilter and pagination parameters for the file list in SDKMode.Manager mode.
TFrameModeString literal union of all SDKMode values.
TGetExternalDataRequestPayload the ONLYOFFICE Apps iframe sends when it asks the host to read a value from external storage.
THashSettingsPassword hash settings returned by SDKInstance.getHashSettings.
TInitConfigConfiguration accepted by the mode-specific SDK.init* wrappers (SDK.initManager, SDK.initPersonal, ...): a TFrameConfig whose mode is optional because the wrapper sets it.
TListResponse<TFolder>Response wrapper for paginated listing methods.
TLoginResultResult of SDKInstance.login.
TLogoRoom logo information.
TManagerSectionSections of SDKMode.Manager a custom action can be limited to, named after the root folder the user is in: rooms, archive, my-documents, recent, favorites, shared (shared with me) and trash.
TManagerViewModeString literal union of all ManagerViewMode values.
TNavigatePayloadPayload of TFrameEvents.onNavigate.
TPathPartsBreadcrumb path segment in file/room listing responses.
TPersonalSectionNavigation sections available in SDKMode.Personal mode.
TRejectedFileA file the SDKMode.Uploader dialog refused before uploading.
TRequestTokenInfoOne external link of a selected room or file, attached to selector payloads.
TRoomInfoRoom information returned by SDK methods.
TRoomsResponseResponse wrapper for room listing methods.
TSDKErrorDetailsExtra details attached to an SDKError.
TSelectedFileThe SDKMode.FileSelector payload of TFrameEvents.onSelectCallback: a single object, not an array.
TSelectedRoomOne selected room in the SDKMode.RoomSelector payload.
TSelectorTypeString literal union of all SelectorFilterType values.
TSetExternalDataPayloadPayload the ONLYOFFICE Apps iframe sends when it asks the host to persist a value in external storage.
TThemeString literal union of all Theme values.
TUploadedFileA file stored by the SDKMode.Uploader dialog: the upload session response of the portal.
TUploadErrorPayload of TFrameEvents.onUploadError in SDKMode.Forms and SDKMode.Personal: the file transferred with SDKInstance.upload that the frame could not store.
TUploaderUploadErrorPayload of TFrameEvents.onUploadError in SDKMode.Uploader: the batch failed or some files were refused.
TUploaderUploadResultOne element of the TFrameEvents.onUploadSuccess payload in SDKMode.Uploader: the portal's API envelope around the stored file.
TUploadProgressPayload of TFrameEvents.onUploadProgress in SDKMode.Uploader: one event per uploaded chunk of each file.
TUploadRejectionOne reason a file was rejected by the SDKMode.Uploader dialog.
TUploadResultPayload of TFrameEvents.onUploadSuccess in SDKMode.Forms and SDKMode.Personal: one object per file transferred with SDKInstance.upload.
TUserGroupA group the user belongs to, as listed in TUserInfo.groups.
TUserInfoUser information returned by SDKInstance.getUserInfo.