@arsedizioni/ars-utils 18.2.389 → 18.2.390

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.
@@ -527,6 +527,44 @@ export declare class ClipperDashboard {
527
527
  */
528
528
  getUnreadItems(module: ClipperModule): number;
529
529
  }
530
+ export interface ClipperTeamMemberInfo {
531
+ id?: number | null;
532
+ teamId?: string | null;
533
+ name: string;
534
+ email: string;
535
+ isAdmin: boolean;
536
+ hasPermission55: boolean;
537
+ hasPermission56: boolean;
538
+ hasPermission57: boolean;
539
+ }
540
+ export interface ClipperQueryTeamMembersResult {
541
+ teamId: string;
542
+ teamTitle: string;
543
+ total: number;
544
+ customerId: number;
545
+ canEdit: boolean;
546
+ products: any;
547
+ items: ClipperTeamMemberInfo[];
548
+ }
549
+ export interface ClipperQueryTeamsParams {
550
+ teamId?: string | null;
551
+ permissionId?: number | null;
552
+ productId?: number | null;
553
+ activeMembersOnly: boolean;
554
+ includeRSTeams: boolean;
555
+ }
556
+ export interface ClipperQueryTeamResult {
557
+ total: number;
558
+ items: NameValueItem<string>[];
559
+ }
560
+ export interface ClipperTeamInfo {
561
+ id: string;
562
+ customerId: number;
563
+ title: string;
564
+ isDisabled: boolean;
565
+ created: string;
566
+ lastModified: string;
567
+ }
530
568
  export declare class ClipperUtils {
531
569
  /**
532
570
  * Check if a model is readable
@@ -1,9 +1,9 @@
1
1
  import { OnDestroy, Signal } from '@angular/core';
2
2
  import { ApiResult, FolderTree, NameValueItem } from '@arsedizioni/ars-utils/core';
3
- import { RecoverPasswordDialogResult, ResetPasswordDialogResult } from '@arsedizioni/ars-utils/ui';
3
+ import { RecoverPasswordDialogData, RecoverPasswordDialogResult, ResetPasswordDialogResult } from '@arsedizioni/ars-utils/ui';
4
4
  import { LoginOAuthType } from '@arsedizioni/ars-utils/ui.oauth';
5
5
  import { Subscription } from 'rxjs';
6
- import { ClipperServiceFlags, ClipperDashboard, ClipperDashboardResult, ClipperDocumentInfo, ClipperDocumentStructure, ClipperDocumentUpdateStateParams, ClipperExportDocumentsParams, ClipperLoginInfo, ClipperLoginResult, ClipperModule, ClipperOTPInfo, ClipperQueryArsEventsParams, ClipperQueryArsEventsResult, ClipperReferencesSearchParams, ClipperSearchFacetsResult, ClipperSearchParams, ClipperSearchResult, ClipperSendDocumentsByEmailParams, ClipperTaxonomyParams, ClipperUserLink, ClipperUserSearch } from '../definitions';
6
+ import { ClipperServiceFlags, ClipperDashboard, ClipperDashboardResult, ClipperDocumentInfo, ClipperDocumentStructure, ClipperDocumentUpdateStateParams, ClipperExportDocumentsParams, ClipperLoginInfo, ClipperLoginResult, ClipperModule, ClipperOTPInfo, ClipperQueryArsEventsParams, ClipperQueryArsEventsResult, ClipperReferencesSearchParams, ClipperSearchFacetsResult, ClipperSearchParams, ClipperSearchResult, ClipperSendDocumentsByEmailParams, ClipperTaxonomyParams, ClipperUserLink, ClipperUserSearch, ClipperTeamMemberInfo, ClipperQueryTeamsParams, ClipperQueryTeamResult, ClipperTeamInfo } from '../definitions';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class ClipperService implements OnDestroy {
9
9
  private httpClient;
@@ -25,6 +25,9 @@ export declare class ClipperService implements OnDestroy {
25
25
  readonly bag: import("@angular/core").WritableSignal<ClipperDocumentInfo[]>;
26
26
  readonly bagTotal: Signal<number>;
27
27
  readonly visible: import("@angular/core").WritableSignal<boolean>;
28
+ private _teams;
29
+ get teams(): NameValueItem<string>[];
30
+ currentTeamId: string | null;
28
31
  ngOnDestroy(): void;
29
32
  /**
30
33
  * Initialize service
@@ -217,7 +220,7 @@ export declare class ClipperService implements OnDestroy {
217
220
  loadSearches(module: ClipperModule): import("rxjs").Observable<ApiResult<ClipperUserSearch[]>>;
218
221
  /**
219
222
  * Save a working search
220
- * @param documentIds : the document ids to add
223
+ * @param params : the clipper user search
221
224
  */
222
225
  saveSearch(params: ClipperUserSearch): import("rxjs").Observable<ApiResult<ClipperUserSearch>>;
223
226
  /**
@@ -234,9 +237,10 @@ export declare class ClipperService implements OnDestroy {
234
237
  * Recover password
235
238
  * @param params parameters
236
239
  */
237
- recoverPassword(params: any): import("rxjs").Observable<ApiResult<RecoverPasswordDialogResult>>;
240
+ recoverPassword(params: RecoverPasswordDialogData): import("rxjs").Observable<ApiResult<RecoverPasswordDialogResult>>;
238
241
  /**
239
242
  * Update settings
243
+ * @param params parameters
240
244
  */
241
245
  updateSettings(params: any): import("rxjs").Observable<ApiResult<boolean>>;
242
246
  /**
@@ -252,6 +256,29 @@ export declare class ClipperService implements OnDestroy {
252
256
  * Update trial info
253
257
  */
254
258
  updateTrialInfo(): void;
259
+ /**
260
+ * Rename a team
261
+ * @param newName : the new name
262
+ */
263
+ renameTeam(newName: string): import("rxjs").Observable<ApiResult<ClipperTeamInfo>>;
264
+ /**
265
+ * Retrieve teams
266
+ */
267
+ getTeams(params: ClipperQueryTeamsParams): import("rxjs").Observable<ApiResult<ClipperQueryTeamResult>>;
268
+ /**
269
+ * Retrieve team members
270
+ */
271
+ getTeamMembers(params: ClipperQueryTeamsParams): import("rxjs").Observable<ApiResult<ClipperQueryTeamsParams>>;
272
+ /**
273
+ * Delete members
274
+ * @param ids: the id list to delete
275
+ */
276
+ deleteTeamMembers(ids: number[]): import("rxjs").Observable<ApiResult<number>>;
277
+ /**
278
+ * Save member
279
+ * @param item: the item to save
280
+ */
281
+ saveTeamMember(item: ClipperTeamMemberInfo): import("rxjs").Observable<ApiResult<ClipperTeamMemberInfo>>;
255
282
  static ɵfac: i0.ɵɵFactoryDeclaration<ClipperService, never>;
256
283
  static ɵprov: i0.ɵɵInjectableDeclaration<ClipperService>;
257
284
  }