@endge/core 11.0.0 → 11.1.0

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.
@@ -25,6 +25,25 @@ export interface EndgeDocumentMutationResult {
25
25
  document: EndgeLiveDomainDocument;
26
26
  etag: string | null;
27
27
  }
28
+ /** Minimal deleted-document metadata returned by the workspace archive. */
29
+ export interface EndgeArchivedDocument {
30
+ type: EndgeDomainCollection;
31
+ identity: string;
32
+ displayName: string;
33
+ description?: string;
34
+ deletedAt: string;
35
+ revision: number;
36
+ }
37
+ export interface EndgeArchiveListRequest {
38
+ workspaceIdentity: string;
39
+ limit?: number;
40
+ cursor?: string;
41
+ signal?: AbortSignal;
42
+ }
43
+ export interface EndgeArchivePage {
44
+ items: EndgeArchivedDocument[];
45
+ nextCursor?: string;
46
+ }
28
47
  /** Документ с optimistic revision для атомарного перемещения. */
29
48
  export interface EndgeDocumentMoveRequestItem {
30
49
  collection: EndgeDomainCollection;
@@ -106,6 +125,7 @@ export interface EndgeDomainProvider {
106
125
  updateDocument: (request: EndgeDocumentMutationRequest) => Promise<EndgeDocumentMutationResult>;
107
126
  softDeleteDocument: (request: EndgeDocumentMutationRequest) => Promise<EndgeDocumentMutationResult>;
108
127
  restoreDocument: (request: EndgeDocumentMutationRequest) => Promise<EndgeDocumentMutationResult>;
128
+ listArchivedDocuments?: (request: EndgeArchiveListRequest) => Promise<EndgeArchivePage>;
109
129
  moveDocuments?: (request: EndgeDocumentsMoveRequest) => Promise<EndgeDocumentsMoveResult>;
110
130
  updateWorkspace: (request: EndgeWorkspaceMutationRequest) => Promise<EndgeWorkspaceMutationResult>;
111
131
  listFacets?: (request: EndgeFacetListRequest) => Promise<EndgeLiveDomainDocument[]>;
@@ -2,8 +2,8 @@ import { EndgeBootContext } from '../../kernel/types/bootstrap.types';
2
2
  import { DocumentCreateRequest, DocumentCreateResult } from '../domain/types/document/document-create.type';
3
3
  import { EndgeDomainDocumentMove } from '../domain/types/document/document-move.type';
4
4
  import { DomainDocumentType } from '../domain/types/document/document.types';
5
- import { EndgeDomainRepositoryCapabilities } from '../domain/types/document/domain-provider.type';
6
- import { EndgeDocumentServerState, EndgeLiveDomainSnapshot } from '../domain/types/document/domain-snapshot.type';
5
+ import { EndgeArchivedDocument, EndgeArchivePage, EndgeDomainRepositoryCapabilities } from '../domain/types/document/domain-provider.type';
6
+ import { EndgeDocumentServerState, EndgeLiveDomainDocument, EndgeLiveDomainSnapshot } from '../domain/types/document/domain-snapshot.type';
7
7
  import { RFacet } from '../domain/entities/RFacet';
8
8
  import { RFacetDocument } from '../domain/entities/RFacetDocument';
9
9
  import { EndgeModule } from '../../../federation/EndgeModule';
@@ -44,6 +44,10 @@ export declare class EndgeDomainRepository_Module extends EndgeModule<EndgeBootC
44
44
  }): Promise<void>;
45
45
  deleteDocument(documentIdOrIdentity: string, documentType: DomainDocumentType): Promise<void>;
46
46
  restoreDocument(documentIdOrIdentity: string, documentType: DomainDocumentType): Promise<void>;
47
+ /** Lists deleted generic documents for the active service workspace. */
48
+ listArchivedDocuments(cursor?: string, limit?: number): Promise<EndgeArchivePage>;
49
+ /** Restores a tombstone returned by listArchivedDocuments. */
50
+ restoreArchivedDocument(item: EndgeArchivedDocument): Promise<EndgeLiveDomainDocument>;
47
51
  changeDocumentFolder(documentId: string | number, documentType: DomainDocumentType, folderIdOrIdentity: string | number | null, placement?: 'frontend' | 'workspace'): Promise<void>;
48
52
  /** Атомарно переносит несколько persisted-документов в одну папку. */
49
53
  changeDocumentsFolder(documents: readonly EndgeDomainDocumentMove[], folderIdOrIdentity: string | number, placement?: 'frontend' | 'workspace'): Promise<number>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@endge/core",
3
3
  "type": "module",
4
- "version": "11.0.0",
4
+ "version": "11.1.0",
5
5
  "private": false,
6
6
  "packageManager": "pnpm@8.8.0",
7
7
  "license": "Apache-2.0",