@arsedizioni/ars-utils 18.2.47 → 18.2.49

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.
@@ -65,8 +65,34 @@ export declare const ClipperSectors: SectorInfo[];
65
65
  export declare const ClipperSectorTypes: NameValueItem<string>[];
66
66
  export declare const ClipperAuthors: SectorInfo[];
67
67
  export declare const ClipperSources: NameValueItem<string>[];
68
+ export interface ClipperChannelSettingsItem<T> {
69
+ name: string;
70
+ value: T;
71
+ checked: boolean;
72
+ }
73
+ export declare class ClipperChannelSettings {
74
+ channelId: ClipperChannel;
75
+ channelName: string;
76
+ isEnabled?: boolean | null;
77
+ isActive?: boolean | null;
78
+ sectors: ClipperChannelSettingsItem<string>[];
79
+ regions: ClipperChannelSettingsItem<string>[];
80
+ /**
81
+ * Check at least one of sector values is contained in sectors list
82
+ * @param values : the admitted values
83
+ * @returns true if at least one value has been found
84
+ */
85
+ hasAnyOfSectors(values: string[]): boolean;
86
+ /**
87
+ * Check at least one of region values is contained in regions list
88
+ * @param values : the admitted values
89
+ * @returns true if at least one value has been found
90
+ */
91
+ hasAnyOfRegions(values: string[]): boolean;
92
+ }
68
93
  export interface ClipperUserChannelInfo {
69
94
  channel: ClipperChannel;
95
+ channelName?: string | null;
70
96
  expiringDate: string;
71
97
  isTrial?: boolean | null;
72
98
  isDisabled: boolean;
@@ -74,6 +100,7 @@ export interface ClipperUserChannelInfo {
74
100
  isActive: boolean;
75
101
  documentsViewable?: number | null;
76
102
  documentsViewed?: number | null;
103
+ settings?: ClipperChannelSettings | null;
77
104
  }
78
105
  export interface ClipperUserInfo {
79
106
  userId: number;
@@ -405,6 +432,7 @@ export interface ClipperUserLink {
405
432
  export interface ClipperArsEventInfo {
406
433
  id: number;
407
434
  location?: string | null;
435
+ title?: string | null;
408
436
  pictureId?: string | null;
409
437
  date?: string | null;
410
438
  endDate?: string | null;
@@ -417,6 +445,7 @@ export interface ClipperArsEventInfo {
417
445
  group?: string | null;
418
446
  address?: string | null;
419
447
  city?: string | null;
448
+ isOver?: boolean | null;
420
449
  }
421
450
  export interface ClipperQueryArsEventsParams {
422
451
  group?: string | null;