@new-project-media/client-frontends-shared-types 1.4.15 → 1.5.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 +5 -2
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
- package/src/index.js.map +1 -1
- package/src/lib/cognito.d.ts +19 -0
- package/src/lib/cognito.js +104 -0
- package/src/lib/cognito.js.map +1 -0
package/package.json
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@new-project-media/client-frontends-shared-types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.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/",
|
|
7
7
|
"build-and-copy": "pnpm run build && pnpm run postbuild"
|
|
8
8
|
},
|
|
9
9
|
"main": "./src/index.js",
|
|
10
|
-
"typings": "./src/index.d.ts"
|
|
10
|
+
"typings": "./src/index.d.ts",
|
|
11
|
+
"peerDependencies": {
|
|
12
|
+
"zod": "^3.24.1"
|
|
13
|
+
}
|
|
11
14
|
}
|
package/src/index.d.ts
CHANGED
package/src/index.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./lib/charts"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./lib/cognito"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./lib/dataGrid"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./lib/userDateFormat"), exports);
|
|
7
8
|
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/client-frontends-shared-types/src/index.ts"],"names":[],"mappings":";;;AAAA,uDAA4B;AAC5B,yDAA8B;AAC9B,+DAAoC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/client-frontends-shared-types/src/index.ts"],"names":[],"mappings":";;;AAAA,uDAA4B;AAC5B,wDAA6B;AAC7B,yDAA8B;AAC9B,+DAAoC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare enum CognitoGroups {
|
|
2
|
+
ContentDistributedGeneration = "DG",
|
|
3
|
+
ContentUtilityScale = "UT",
|
|
4
|
+
ContentDataCenters = "DC",
|
|
5
|
+
ContentEurope = "EUR",
|
|
6
|
+
RegionNA = "NA",
|
|
7
|
+
RegionEU = "EUROPE"
|
|
8
|
+
}
|
|
9
|
+
export declare enum CognitoAttributes {
|
|
10
|
+
FeatureIntelOnly = "IntelOnly"
|
|
11
|
+
}
|
|
12
|
+
export declare const audienceGroups: AudienceGroups[];
|
|
13
|
+
export type AudienceGroups = CognitoGroups | CognitoAttributes;
|
|
14
|
+
export interface RouteAccess {
|
|
15
|
+
path: string;
|
|
16
|
+
requiredGroups: AudienceGroups[];
|
|
17
|
+
rejectedGroups: AudienceGroups[];
|
|
18
|
+
}
|
|
19
|
+
export declare const routeAccessConfig: RouteAccess[];
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.routeAccessConfig = exports.audienceGroups = exports.CognitoAttributes = exports.CognitoGroups = void 0;
|
|
4
|
+
var CognitoGroups;
|
|
5
|
+
(function (CognitoGroups) {
|
|
6
|
+
CognitoGroups["ContentDistributedGeneration"] = "DG";
|
|
7
|
+
CognitoGroups["ContentUtilityScale"] = "UT";
|
|
8
|
+
CognitoGroups["ContentDataCenters"] = "DC";
|
|
9
|
+
CognitoGroups["ContentEurope"] = "EUR";
|
|
10
|
+
CognitoGroups["RegionNA"] = "NA";
|
|
11
|
+
CognitoGroups["RegionEU"] = "EUROPE";
|
|
12
|
+
})(CognitoGroups || (exports.CognitoGroups = CognitoGroups = {}));
|
|
13
|
+
var CognitoAttributes;
|
|
14
|
+
(function (CognitoAttributes) {
|
|
15
|
+
CognitoAttributes["FeatureIntelOnly"] = "IntelOnly";
|
|
16
|
+
})(CognitoAttributes || (exports.CognitoAttributes = CognitoAttributes = {}));
|
|
17
|
+
exports.audienceGroups = [
|
|
18
|
+
CognitoGroups.ContentDistributedGeneration,
|
|
19
|
+
CognitoGroups.ContentUtilityScale,
|
|
20
|
+
CognitoGroups.ContentEurope,
|
|
21
|
+
CognitoGroups.ContentDataCenters,
|
|
22
|
+
CognitoAttributes.FeatureIntelOnly,
|
|
23
|
+
];
|
|
24
|
+
exports.routeAccessConfig = [
|
|
25
|
+
{
|
|
26
|
+
path: '/list/iso_queue{/*subPath}',
|
|
27
|
+
requiredGroups: [
|
|
28
|
+
CognitoGroups.ContentUtilityScale,
|
|
29
|
+
CognitoGroups.ContentDistributedGeneration,
|
|
30
|
+
],
|
|
31
|
+
rejectedGroups: [CognitoAttributes.FeatureIntelOnly],
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
path: '/view/iso_queue{/*subPath}',
|
|
35
|
+
requiredGroups: [
|
|
36
|
+
CognitoGroups.ContentUtilityScale,
|
|
37
|
+
CognitoGroups.ContentDistributedGeneration,
|
|
38
|
+
],
|
|
39
|
+
rejectedGroups: [CognitoAttributes.FeatureIntelOnly],
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
path: '/list/ix-queues{/*subPath}',
|
|
43
|
+
requiredGroups: [
|
|
44
|
+
CognitoGroups.ContentUtilityScale,
|
|
45
|
+
CognitoGroups.ContentDistributedGeneration,
|
|
46
|
+
CognitoGroups.RegionEU,
|
|
47
|
+
],
|
|
48
|
+
rejectedGroups: [CognitoAttributes.FeatureIntelOnly],
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
path: '/rankings',
|
|
52
|
+
requiredGroups: [
|
|
53
|
+
CognitoGroups.ContentUtilityScale,
|
|
54
|
+
CognitoGroups.ContentDistributedGeneration,
|
|
55
|
+
],
|
|
56
|
+
rejectedGroups: [CognitoAttributes.FeatureIntelOnly],
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
path: '/list/signals',
|
|
60
|
+
requiredGroups: [
|
|
61
|
+
CognitoGroups.ContentUtilityScale,
|
|
62
|
+
CognitoGroups.ContentDistributedGeneration,
|
|
63
|
+
CognitoGroups.RegionEU,
|
|
64
|
+
CognitoGroups.ContentDataCenters,
|
|
65
|
+
],
|
|
66
|
+
rejectedGroups: [CognitoAttributes.FeatureIntelOnly],
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
path: '/view/signals{/*subPath}',
|
|
70
|
+
requiredGroups: [
|
|
71
|
+
CognitoGroups.ContentUtilityScale,
|
|
72
|
+
CognitoGroups.ContentDistributedGeneration,
|
|
73
|
+
CognitoGroups.RegionEU,
|
|
74
|
+
CognitoGroups.ContentDataCenters,
|
|
75
|
+
],
|
|
76
|
+
rejectedGroups: [CognitoAttributes.FeatureIntelOnly],
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
path: '/list/events',
|
|
80
|
+
requiredGroups: [
|
|
81
|
+
CognitoGroups.ContentUtilityScale,
|
|
82
|
+
CognitoGroups.ContentDistributedGeneration,
|
|
83
|
+
CognitoGroups.ContentDataCenters,
|
|
84
|
+
],
|
|
85
|
+
rejectedGroups: [CognitoAttributes.FeatureIntelOnly],
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
path: '/list/projects',
|
|
89
|
+
requiredGroups: [
|
|
90
|
+
CognitoGroups.ContentUtilityScale,
|
|
91
|
+
CognitoGroups.ContentDistributedGeneration,
|
|
92
|
+
],
|
|
93
|
+
rejectedGroups: [CognitoAttributes.FeatureIntelOnly],
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
path: '/view/projects{/*subPath}',
|
|
97
|
+
requiredGroups: [
|
|
98
|
+
CognitoGroups.ContentUtilityScale,
|
|
99
|
+
CognitoGroups.ContentDistributedGeneration,
|
|
100
|
+
],
|
|
101
|
+
rejectedGroups: [CognitoAttributes.FeatureIntelOnly],
|
|
102
|
+
},
|
|
103
|
+
];
|
|
104
|
+
//# sourceMappingURL=cognito.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cognito.js","sourceRoot":"","sources":["../../../../../packages/client-frontends-shared-types/src/lib/cognito.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAOX;AAPD,WAAY,aAAa;IACvB,oDAAmC,CAAA;IACnC,2CAA0B,CAAA;IAC1B,0CAAyB,CAAA;IACzB,sCAAqB,CAAA;IACrB,gCAAe,CAAA;IACf,oCAAmB,CAAA;AACrB,CAAC,EAPW,aAAa,6BAAb,aAAa,QAOxB;AAED,IAAY,iBAEX;AAFD,WAAY,iBAAiB;IAC3B,mDAA8B,CAAA;AAChC,CAAC,EAFW,iBAAiB,iCAAjB,iBAAiB,QAE5B;AAEY,QAAA,cAAc,GAAqB;IAC9C,aAAa,CAAC,4BAA4B;IAC1C,aAAa,CAAC,mBAAmB;IACjC,aAAa,CAAC,aAAa;IAC3B,aAAa,CAAC,kBAAkB;IAChC,iBAAiB,CAAC,gBAAgB;CACnC,CAAA;AAWY,QAAA,iBAAiB,GAAkB;IAC9C;QACE,IAAI,EAAE,4BAA4B;QAClC,cAAc,EAAE;YACd,aAAa,CAAC,mBAAmB;YACjC,aAAa,CAAC,4BAA4B;SAC3C;QACD,cAAc,EAAE,CAAC,iBAAiB,CAAC,gBAAgB,CAAC;KACrD;IACD;QACE,IAAI,EAAE,4BAA4B;QAClC,cAAc,EAAE;YACd,aAAa,CAAC,mBAAmB;YACjC,aAAa,CAAC,4BAA4B;SAC3C;QACD,cAAc,EAAE,CAAC,iBAAiB,CAAC,gBAAgB,CAAC;KACrD;IACD;QACE,IAAI,EAAE,4BAA4B;QAClC,cAAc,EAAE;YACd,aAAa,C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