@new-project-media/client-frontends-shared-types 3.12.0 → 3.12.1

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@new-project-media/client-frontends-shared-types",
3
- "version": "3.12.0",
3
+ "version": "3.12.1",
4
4
  "scripts": {
5
5
  "build": "tsc -p tsconfig.json",
6
6
  "postbuild": "mkdir -p ../../dist/packages/client-frontends-shared-types/ && cp package.json ../../dist/packages/client-frontends-shared-types/",
@@ -6,4 +6,73 @@ export interface SelectedFilter {
6
6
  sectionId: string;
7
7
  filter: Filter;
8
8
  }
9
+ export declare enum FilterOptionsEnum {
10
+ SECTOR = "sectors",
11
+ STATE = "state|Provinces",
12
+ COUNTRY = "country",
13
+ INTEL_CHANNEL = "intelChannelTags"
14
+ }
15
+ export interface UserSettingsDigest {
16
+ modified: string;
17
+ name: string;
18
+ id: string;
19
+ userKey: string;
20
+ entity: string;
21
+ time: string;
22
+ created: string;
23
+ }
24
+ interface IsoRegionValue {
25
+ relatedOrganizations: string[];
26
+ 'state|Provinces': string[];
27
+ }
28
+ interface IsoFilter {
29
+ key: string;
30
+ value: IsoRegionValue;
31
+ }
32
+ export interface IsoRegion {
33
+ label: string;
34
+ value: IsoRegionValue;
35
+ }
36
+ export interface UserSettingsFollow {
37
+ filters?: Array<{
38
+ value: {
39
+ [FilterOptionsEnum.COUNTRY]?: string[];
40
+ [FilterOptionsEnum.SECTOR]?: string[];
41
+ [FilterOptionsEnum.INTEL_CHANNEL]?: string[];
42
+ [FilterOptionsEnum.STATE]?: string[];
43
+ };
44
+ key: string;
45
+ }>;
46
+ org?: Filter[];
47
+ rfp?: Filter[];
48
+ projects?: Filter[];
49
+ iso?: IsoFilter[];
50
+ }
51
+ export interface UserSettingsMail {
52
+ [key: string]: {
53
+ immediate: boolean;
54
+ digests?: string[];
55
+ };
56
+ }
57
+ export interface UserSettings {
58
+ follow: UserSettingsFollow;
59
+ site: {
60
+ sideBarOpen: boolean;
61
+ collapseAll: boolean;
62
+ };
63
+ userKey: string;
64
+ entity: string;
65
+ created: string;
66
+ updated: string;
67
+ mail: UserSettingsMail;
68
+ save: {
69
+ intel: Filter[];
70
+ };
71
+ }
72
+ export interface UserSettingsResponse {
73
+ settings: {
74
+ Item: UserSettings;
75
+ };
76
+ digests: UserSettingsDigest[];
77
+ }
9
78
  export {};
@@ -1,3 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FilterOptionsEnum = void 0;
4
+ var FilterOptionsEnum;
5
+ (function (FilterOptionsEnum) {
6
+ FilterOptionsEnum["SECTOR"] = "sectors";
7
+ FilterOptionsEnum["STATE"] = "state|Provinces";
8
+ FilterOptionsEnum["COUNTRY"] = "country";
9
+ FilterOptionsEnum["INTEL_CHANNEL"] = "intelChannelTags";
10
+ })(FilterOptionsEnum || (exports.FilterOptionsEnum = FilterOptionsEnum = {}));
3
11
  //# sourceMappingURL=dashboard.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dashboard.js","sourceRoot":"","sources":["../../../../../packages/client-frontends-shared-types/src/lib/dashboard.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"dashboard.js","sourceRoot":"","sources":["../../../../../packages/client-frontends-shared-types/src/lib/dashboard.ts"],"names":[],"mappings":";;;AAUA,IAAY,iBAKX;AALD,WAAY,iBAAiB;IAC3B,uCAAkB,CAAA;IAClB,8CAAyB,CAAA;IACzB,wCAAmB,CAAA;IACnB,uDAAkC,CAAA;AACpC,CAAC,EALW,iBAAiB,iCAAjB,iBAAiB,QAK5B"}