@arsedizioni/ars-utils 18.2.145 → 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
  }
@@ -18,7 +18,7 @@ export declare class ClipperDocumentManager {
18
18
  * @param documentIds: the document id list
19
19
  * @param searchParams: the search params
20
20
  */
21
- exportItems(documentIds: string[], searchParams?: ClipperSearchParams | null): void;
21
+ exportItems(documentIds: string[] | null | undefined, searchParams?: ClipperSearchParams | null | undefined): void;
22
22
  /**
23
23
  * Archive a list of items
24
24
  * @param items: the item list
@@ -102,6 +102,10 @@ export declare class ClipperSearchResultManager extends ClipperDocumentManager i
102
102
  */
103
103
  prepareResults(data?: ClipperSearchResult | null, facets?: ClipperSearchFacetsResult | null, months?: ClipperSearchCalendarSnapshotResult | null, month?: ClipperSearchCalendarSnapshotResult | null, date?: Date | null): void;
104
104
  /**
105
+ * Save current document list or just the selected documents as a csv
106
+ */
107
+ exportResults(): void;
108
+ /**
105
109
  * Return item state css class
106
110
  * @param item : the item to evaluate
107
111
  */