@arsedizioni/ars-utils 22.0.37 → 22.0.39
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/package.json
CHANGED
|
@@ -1458,6 +1458,112 @@ declare class ClipperCollaborationService {
|
|
|
1458
1458
|
static ɵprov: i0.ɵɵInjectableDeclaration<ClipperCollaborationService>;
|
|
1459
1459
|
}
|
|
1460
1460
|
|
|
1461
|
+
/**
|
|
1462
|
+
* Shared state and bootstrap for the Clipper application.
|
|
1463
|
+
*
|
|
1464
|
+
* Holds every piece of state used by more than one feature service (service URI,
|
|
1465
|
+
* flags, login context, teams, dashboard, working-documents bag, channels and the
|
|
1466
|
+
* various UI signals) plus the low-level helpers that mutate that state.
|
|
1467
|
+
*
|
|
1468
|
+
* The feature services (`ClipperLoginService`, `ClipperDocumentsService`, ...) inject
|
|
1469
|
+
* this service to read shared state and call shared helpers. `ClipperService` (the
|
|
1470
|
+
* barrel/facade) re-exports the state declared here.
|
|
1471
|
+
*/
|
|
1472
|
+
declare class ClipperCoreService {
|
|
1473
|
+
private readonly httpClient;
|
|
1474
|
+
private readonly destroyRef;
|
|
1475
|
+
private readonly broadcastService;
|
|
1476
|
+
/** Used to lazily resolve feature services inside `initialize`, avoiding circular DI. */
|
|
1477
|
+
private readonly injector;
|
|
1478
|
+
private broadcastInitialized;
|
|
1479
|
+
private _appUri?;
|
|
1480
|
+
/** @returns The URI of the Clipper web application, or `undefined` if not set. */
|
|
1481
|
+
get appUri(): string | undefined;
|
|
1482
|
+
private _serviceUri;
|
|
1483
|
+
/** @returns The base URI of the Clipper REST API. */
|
|
1484
|
+
get serviceUri(): string;
|
|
1485
|
+
private _flags;
|
|
1486
|
+
/** @returns The active feature flags. */
|
|
1487
|
+
get flags(): ClipperServiceFlags;
|
|
1488
|
+
private _loginInfo?;
|
|
1489
|
+
/**
|
|
1490
|
+
* Lazily loads the login context from `localStorage` on first access.
|
|
1491
|
+
* @returns The current login context, or `undefined` if not authenticated.
|
|
1492
|
+
*/
|
|
1493
|
+
get loginInfo(): ClipperLoginInfo | undefined;
|
|
1494
|
+
private readonly _loggedIn;
|
|
1495
|
+
readonly loggedIn: Signal<boolean>;
|
|
1496
|
+
readonly loggingIn: i0.WritableSignal<boolean>;
|
|
1497
|
+
readonly snapshot: i0.WritableSignal<ClipperSearchResult>;
|
|
1498
|
+
readonly supportsRS: i0.WritableSignal<boolean>;
|
|
1499
|
+
readonly referencesSnapshot: i0.WritableSignal<ClipperSearchResult>;
|
|
1500
|
+
readonly dashboard: ClipperDashboard;
|
|
1501
|
+
readonly bag: i0.WritableSignal<ClipperDocumentInfo[]>;
|
|
1502
|
+
readonly bagTotal: Signal<number>;
|
|
1503
|
+
readonly visible: i0.WritableSignal<boolean>;
|
|
1504
|
+
private _teams;
|
|
1505
|
+
/** @returns The shared teams collection. */
|
|
1506
|
+
get teams(): NameValueItem<string>[];
|
|
1507
|
+
readonly availableChannels: i0.WritableSignal<ClipperAvailableChannel[]>;
|
|
1508
|
+
readonly activeChannels: Signal<ClipperAvailableChannel[]>;
|
|
1509
|
+
readonly allowTags: i0.WritableSignal<boolean>;
|
|
1510
|
+
readonly pendingNotes: i0.WritableSignal<number>;
|
|
1511
|
+
/**
|
|
1512
|
+
* Ensures a login-info object exists and returns it for further mutation.
|
|
1513
|
+
* Replaces the inline `if (!this._loginInfo) { ... }` guards now that the field
|
|
1514
|
+
* is private to this service.
|
|
1515
|
+
* @returns The existing login-info object, or a freshly created empty one.
|
|
1516
|
+
*/
|
|
1517
|
+
ensureLoginInfo(): ClipperLoginInfo;
|
|
1518
|
+
/**
|
|
1519
|
+
* Sets the logged-in state. The backing signal is read-only to consumers, so the
|
|
1520
|
+
* feature services use this method instead.
|
|
1521
|
+
* @param value - The new logged-in state.
|
|
1522
|
+
*/
|
|
1523
|
+
setLoggedIn(value: boolean): void;
|
|
1524
|
+
/**
|
|
1525
|
+
* Replaces the shared teams collection (populated by the calendar, archive and
|
|
1526
|
+
* collaboration queries).
|
|
1527
|
+
* @param teams - The teams to store.
|
|
1528
|
+
*/
|
|
1529
|
+
setTeams(teams: NameValueItem<string>[]): void;
|
|
1530
|
+
/**
|
|
1531
|
+
* Persists the current login context to `localStorage`.
|
|
1532
|
+
*/
|
|
1533
|
+
storeContext(): void;
|
|
1534
|
+
/**
|
|
1535
|
+
* Updates the stored login context with the values from a fresh login result.
|
|
1536
|
+
* @param result - The login result containing the new user context and channel settings.
|
|
1537
|
+
*/
|
|
1538
|
+
updateContext(result: ClipperLoginResult): void;
|
|
1539
|
+
/**
|
|
1540
|
+
* Rebuilds the `availableChannels` signal from the current login context.
|
|
1541
|
+
*/
|
|
1542
|
+
initializeChannels(): void;
|
|
1543
|
+
/**
|
|
1544
|
+
* Resets the login state, clears the stored login info, and broadcasts `LOGOUT_COMPLETED`.
|
|
1545
|
+
*/
|
|
1546
|
+
reset(): void;
|
|
1547
|
+
/**
|
|
1548
|
+
* Clears all session-storage authentication keys and resets the login state.
|
|
1549
|
+
* @param clearOAuthToken - When `true`, the OAuth bearer token is also removed.
|
|
1550
|
+
*/
|
|
1551
|
+
clear(clearOAuthToken?: boolean): void;
|
|
1552
|
+
/**
|
|
1553
|
+
* Initialises the service with the API base URI, optional app URI, and feature flags.
|
|
1554
|
+
* @param serviceUri - The base URI of the Clipper REST API.
|
|
1555
|
+
* @param appUri - Optional URI of the Clipper web application (used to build document links).
|
|
1556
|
+
* @param flags - Feature flags that control service behaviour. Defaults to `ClipperServiceFlags.None`.
|
|
1557
|
+
*/
|
|
1558
|
+
initialize(serviceUri: string, appUri?: string, flags?: ClipperServiceFlags): void;
|
|
1559
|
+
/**
|
|
1560
|
+
* Ping
|
|
1561
|
+
*/
|
|
1562
|
+
ping(): void;
|
|
1563
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ClipperCoreService, never>;
|
|
1564
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ClipperCoreService>;
|
|
1565
|
+
}
|
|
1566
|
+
|
|
1461
1567
|
/**
|
|
1462
1568
|
* Document search, references, export and metadata, plus the dashboard counters,
|
|
1463
1569
|
* taxonomy/topics/tags lookups, the working-documents "bag" and saved searches.
|
|
@@ -1683,11 +1789,6 @@ declare class ClipperLoginService {
|
|
|
1683
1789
|
* @returns An observable that completes once the logout request has been processed.
|
|
1684
1790
|
*/
|
|
1685
1791
|
logout(forget?: boolean): rxjs.Observable<any>;
|
|
1686
|
-
/**
|
|
1687
|
-
* Clears all session-storage authentication keys and resets the login state.
|
|
1688
|
-
* @param clearOAuthToken - When `true`, the OAuth bearer token is also removed.
|
|
1689
|
-
*/
|
|
1690
|
-
clear(clearOAuthToken?: boolean): void;
|
|
1691
1792
|
/**
|
|
1692
1793
|
* Requests a new one-time password for the given repository.
|
|
1693
1794
|
* @param id - The repository ID for which the OTP should be generated.
|
|
@@ -1707,7 +1808,6 @@ declare class ClipperLoginService {
|
|
|
1707
1808
|
* `clipper.calendar.queryCalendar(...)`.
|
|
1708
1809
|
*/
|
|
1709
1810
|
declare class ClipperService {
|
|
1710
|
-
private readonly core;
|
|
1711
1811
|
/** Authentication: login/logout, MFA, OTP. */
|
|
1712
1812
|
readonly session: ClipperLoginService;
|
|
1713
1813
|
/** Document search, references, export, working-documents bag and saved searches. */
|
|
@@ -1716,6 +1816,8 @@ declare class ClipperService {
|
|
|
1716
1816
|
readonly account: ClipperAccountService;
|
|
1717
1817
|
/** Archive folders and files. */
|
|
1718
1818
|
readonly archive: ClipperArchiveService;
|
|
1819
|
+
/** Core services and shared state. */
|
|
1820
|
+
readonly core: ClipperCoreService;
|
|
1719
1821
|
/** Calendar deadlines. */
|
|
1720
1822
|
readonly calendar: ClipperCalendarService;
|
|
1721
1823
|
/** Teams, contacts and shared notes. */
|
|
@@ -1771,5 +1873,5 @@ declare class ClipperService {
|
|
|
1771
1873
|
static ɵprov: i0.ɵɵInjectableDeclaration<ClipperService>;
|
|
1772
1874
|
}
|
|
1773
1875
|
|
|
1774
|
-
export { ClipperAccountService, ClipperArchiveCopyMode, ClipperArchiveFileStorageType, ClipperArchiveFileStorageTypes, ClipperArchiveFileType, ClipperArchiveFileTypes, ClipperArchiveFilesSearchParams, ClipperArchiveFoldersSearchParams, ClipperArchiveService, ClipperAuthInterceptor, ClipperAuthors, ClipperCalendarCopyMode, ClipperCalendarSearchParams, ClipperCalendarService, ClipperCalendarState, ClipperCalendarStates, ClipperChannel, ClipperChannelSettings, ClipperChannels, ClipperCollaborationService, ClipperDashboard, ClipperDocumentChangeReasons, ClipperDocumentContainer, ClipperDocumentsService, ClipperExportDocumentsFormat, ClipperFacet, ClipperLoginService, ClipperMessages, ClipperModel, ClipperModels, ClipperModule, ClipperModuleGroup, ClipperModuleGroups, ClipperModules, ClipperQueryDocumentFlags, ClipperQueryReferencesMode, ClipperRecurrenceType, ClipperRecurrenceTypes, ClipperRegions, ClipperSearchCalendarSnapshotResult, ClipperSearchFacetsSnapshot, ClipperSearchParams, ClipperSearchResult, ClipperSearchUtils, ClipperSectorTypes, ClipperSectors, ClipperSelectionMode, ClipperService, ClipperServiceFlags, ClipperSort, ClipperSources, ClipperTeamInfo, ClipperTeamProduct, ClipperTeamProductPermission, ClipperUpdateChannelsStateParams, ClipperUtils, NotesColors };
|
|
1876
|
+
export { ClipperAccountService, ClipperArchiveCopyMode, ClipperArchiveFileStorageType, ClipperArchiveFileStorageTypes, ClipperArchiveFileType, ClipperArchiveFileTypes, ClipperArchiveFilesSearchParams, ClipperArchiveFoldersSearchParams, ClipperArchiveService, ClipperAuthInterceptor, ClipperAuthors, ClipperCalendarCopyMode, ClipperCalendarSearchParams, ClipperCalendarService, ClipperCalendarState, ClipperCalendarStates, ClipperChannel, ClipperChannelSettings, ClipperChannels, ClipperCollaborationService, ClipperCoreService, ClipperDashboard, ClipperDocumentChangeReasons, ClipperDocumentContainer, ClipperDocumentsService, ClipperExportDocumentsFormat, ClipperFacet, ClipperLoginService, ClipperMessages, ClipperModel, ClipperModels, ClipperModule, ClipperModuleGroup, ClipperModuleGroups, ClipperModules, ClipperQueryDocumentFlags, ClipperQueryReferencesMode, ClipperRecurrenceType, ClipperRecurrenceTypes, ClipperRegions, ClipperSearchCalendarSnapshotResult, ClipperSearchFacetsSnapshot, ClipperSearchParams, ClipperSearchResult, ClipperSearchUtils, ClipperSectorTypes, ClipperSectors, ClipperSelectionMode, ClipperService, ClipperServiceFlags, ClipperSort, ClipperSources, ClipperTeamInfo, ClipperTeamProduct, ClipperTeamProductPermission, ClipperUpdateChannelsStateParams, ClipperUtils, NotesColors };
|
|
1775
1877
|
export type { ClipperArchiveFileInfo, ClipperArchiveFilesCopyParams, ClipperArchiveFilesDeleteParams, ClipperArchiveFilesSearchResult, ClipperArchiveFolderTree, ClipperArchiveFoldersImportParams, ClipperArchiveFoldersSearchResult, ClipperArsEventInfo, ClipperAvailableChannel, ClipperCalendarCopyDeadlinesParams, ClipperCalendarSaveDeadlineParams, ClipperCalendarSearchResult, ClipperChannelSettingsItem, ClipperContactInfo, ClipperContactsSearchParams, ClipperDashboardItem, ClipperDashboardModelItem, ClipperDashboardResult, ClipperDayGroup, ClipperDayItem, ClipperDeadlineInfo, ClipperDeleteWorkingDocumentsParams, ClipperDocumentAnchorInfo, ClipperDocumentInfo, ClipperDocumentNote, ClipperDocumentNoteTracking, ClipperDocumentRelevantChunkHit, ClipperDocumentRelevants, ClipperDocumentStructure, ClipperDocumentUpdateStateParams, ClipperExportDocumentsParams, ClipperLastDaysResult, ClipperLoginInfo, ClipperLoginResult, ClipperNotesSearchParams, ClipperNotesSearchResult, ClipperNotifyDocumentNoteParams, ClipperOTPInfo, ClipperReferencesSearchParams, ClipperSearchArsEventsParams, ClipperSearchArsEventsResult, ClipperSearchCalendarSnapshotMonth, ClipperSearchFacet, ClipperSearchFacetGroup, ClipperSearchFacetsResult, ClipperSearchFilter, ClipperSendDocumentsByEmailParams, ClipperSettingsInfo, ClipperTaxonomyParams, ClipperTeamMemberInfo, ClipperTeamMembersSearchResult, ClipperTeamProductInfo, ClipperTeamsSearchParams, ClipperTeamsSearchResult, ClipperTopicInfo, ClipperUserChannelInfo, ClipperUserInfo, ClipperUserLink, ClipperUserSearch, ClipperUserTrialInfo, ClipperUserWorkingDocument, EditDialogCompleted, EditDialogData, EditedEventArgs, SectorInfo };
|