@arsedizioni/ars-utils 18.2.146 → 18.2.147

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.
@@ -49,9 +49,9 @@ export declare enum ClipperChannel {
49
49
  None = 0,
50
50
  LavoroEAmbiente = 1,
51
51
  SostanzeAlimentari = 2,
52
- MerciPericolose = 3,
53
- Energia = 4,
54
- DGInfo = 5
52
+ MerciPericolose = 4,
53
+ Energia = 8,
54
+ DGInfo = 16
55
55
  }
56
56
  export declare const ClipperChannels: NameValueItem<ClipperChannel>[];
57
57
  export declare const ClipperRegions: NameValueItem<string>[];
@@ -70,6 +70,13 @@ export interface ClipperChannelSettingsItem<T> {
70
70
  value: T;
71
71
  checked: boolean;
72
72
  }
73
+ export interface ClipperChannelUserSearchFilter {
74
+ container: ClipperDocumentContainer;
75
+ isEnabled?: boolean | null;
76
+ isActive?: boolean | null;
77
+ sectors?: string[] | null;
78
+ regions?: string[] | null;
79
+ }
73
80
  export declare class ClipperChannelSettings {
74
81
  channelId: ClipperChannel;
75
82
  channelName: string;
@@ -89,6 +96,11 @@ export declare class ClipperChannelSettings {
89
96
  * @returns true if at least one value has been found
90
97
  */
91
98
  hasAnyOfRegions(values: string[]): boolean;
99
+ /**
100
+ * Update current data using the new downloaded settings
101
+ * @param settings: the settings to update
102
+ */
103
+ update(settings: ClipperChannelUserSearchFilter): void;
92
104
  }
93
105
  export interface ClipperUserChannelInfo {
94
106
  channel: ClipperChannel;
@@ -120,10 +132,12 @@ export interface ClipperUserInfo {
120
132
  firstChannelTrial: ClipperUserChannelInfo;
121
133
  }
122
134
  export interface ClipperLoginResult extends LoginResult<ClipperUserInfo> {
135
+ settings?: ClipperChannelUserSearchFilter[] | null;
123
136
  }
124
137
  export interface ClipperLoginInfo {
125
138
  context: ClipperUserInfo;
126
139
  complianceContext?: any | null;
140
+ userSettings?: ClipperChannelUserSearchFilter[] | null;
127
141
  userCredentials?: string | null;
128
142
  OAUTH?: LoginOAuthType | null;
129
143
  }
@@ -4,7 +4,7 @@ import { ClipperSearchResultManager } from '../search-result-manager/search-resu
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class ClipperDocumentMenuComponent {
6
6
  useSelections: import("@angular/core").InputSignal<boolean>;
7
- selectionSource: import("@angular/core").InputSignal<"bag" | "selection" | "none">;
7
+ selectionSource: import("@angular/core").InputSignal<"none" | "bag" | "selection">;
8
8
  protected selection: Signal<ClipperDocumentInfo[]>;
9
9
  parent: import("@angular/core").InputSignal<ClipperSearchResultManager>;
10
10
  item: import("@angular/core").InputSignal<ClipperDocumentInfo>;