@new-project-media/client-frontends-shared-types 3.3.27 → 3.4.0

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.3.27",
3
+ "version": "3.4.0",
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/",
@@ -95,6 +95,14 @@ export declare enum FilterOperator {
95
95
  equals = "eq",
96
96
  notEquals = "ne"
97
97
  }
98
+ export declare enum RegionType {
99
+ Europe = "EUROPE",
100
+ NA = "NA"
101
+ }
102
+ export declare const RegionLabel: {
103
+ readonly EUROPE: "Europe";
104
+ readonly NA: "North America";
105
+ };
98
106
  type Location = {
99
107
  lat: number;
100
108
  lon: number;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UNASSIGNED_SECTOR = exports.FilterOperator = exports.isBoundsAggregation = exports.isCentroidAggregation = exports.isAggregationItem = void 0;
3
+ exports.UNASSIGNED_SECTOR = exports.RegionLabel = exports.RegionType = exports.FilterOperator = exports.isBoundsAggregation = exports.isCentroidAggregation = exports.isAggregationItem = void 0;
4
4
  const isAggregationItem = (item, columnId) => {
5
5
  return (!!item &&
6
6
  ('buckets' in item ||
@@ -20,5 +20,14 @@ var FilterOperator;
20
20
  FilterOperator["equals"] = "eq";
21
21
  FilterOperator["notEquals"] = "ne";
22
22
  })(FilterOperator || (exports.FilterOperator = FilterOperator = {}));
23
+ var RegionType;
24
+ (function (RegionType) {
25
+ RegionType["Europe"] = "EUROPE";
26
+ RegionType["NA"] = "NA";
27
+ })(RegionType || (exports.RegionType = RegionType = {}));
28
+ exports.RegionLabel = {
29
+ [RegionType.Europe]: 'Europe',
30
+ [RegionType.NA]: 'North America',
31
+ };
23
32
  exports.UNASSIGNED_SECTOR = 'unassigned';
24
33
  //# sourceMappingURL=common.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../../../packages/client-frontends-shared-types/src/lib/dataGrid/api/common.ts"],"names":[],"mappings":";;;AA+EO,MAAM,iBAAiB,GAAG,CAC/B,IAKa,EACb,QAAgB,EACS,EAAE;IAC3B,OAAO,CACL,CAAC,CAAC,IAAI;QACN,CAAC,SAAS,IAAI,IAAI;YAChB,CAAC,IAAI,CAAC,IAAI,QAAQ,EAAE,CAAC,IAAI,SAAS,IAAI,IAAI,CAAC,IAAI,QAAQ,EAAE,CAAC,CAAC,CAAC,CAC/D,CAAA;AACH,CAAC,CAAA;AAdY,QAAA,iBAAiB,qBAc7B;AAUM,MAAM,qBAAqB,GAAG,CACnC,IAKa,EACgB,EAAE;IAC/B,OAAO,CAAC,CAAC,IAAI,IAAI,UAAU,IAAI,IAAI,CAAA;AACrC,CAAC,CAAA;AATY,QAAA,qBAAqB,yBASjC;AASM,MAAM,mBAAmB,GAAG,CACjC,IAKa,EACc,EAAE;IAC7B,OAAO,CAAC,CAAC,IAAI,IAAI,QAAQ,IAAI,IAAI,CAAA;AACnC,CAAC,CAAA;AATY,QAAA,mBAAmB,uBAS/B;AAaD,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,+BAAa,CAAA;IACb,kCAAgB,CAAA;AAClB,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB;AAgGY,QAAA,iBAAiB,GAAG,YAAY,CAAA"}
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../../../packages/client-frontends-shared-types/src/lib/dataGrid/api/common.ts"],"names":[],"mappings":";;;AA+EO,MAAM,iBAAiB,GAAG,CAC/B,IAKa,EACb,QAAgB,EACS,EAAE;IAC3B,OAAO,CACL,CAAC,CAAC,IAAI;QACN,CAAC,SAAS,IAAI,IAAI;YAChB,CAAC,IAAI,CAAC,IAAI,QAAQ,EAAE,CAAC,IAAI,SAAS,IAAI,IAAI,CAAC,IAAI,QAAQ,EAAE,CAAC,CAAC,CAAC,CAC/D,CAAA;AACH,CAAC,CAAA;AAdY,QAAA,iBAAiB,qBAc7B;AAUM,MAAM,qBAAqB,GAAG,CACnC,IAKa,EACgB,EAAE;IAC/B,OAAO,CAAC,CAAC,IAAI,IAAI,UAAU,IAAI,IAAI,CAAA;AACrC,CAAC,CAAA;AATY,QAAA,qBAAqB,yBASjC;AASM,MAAM,mBAAmB,GAAG,CACjC,IAKa,EACc,EAAE;IAC7B,OAAO,CAAC,CAAC,IAAI,IAAI,QAAQ,IAAI,IAAI,CAAA;AACnC,CAAC,CAAA;AATY,QAAA,mBAAmB,uBAS/B;AAaD,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,+BAAa,CAAA;IACb,kCAAgB,CAAA;AAClB,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB;AAED,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,+BAAiB,CAAA;IACjB,uBAAS,CAAA;AACX,CAAC,EAHW,UAAU,0BAAV,UAAU,QAGrB;AAEY,QAAA,WAAW,GAAG;IACzB,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,QAAQ;IAC7B,CAAC,UAAU,CAAC,EAAE,CAAC,EAAE,eAAe;CACxB,CAAA;AAgGG,QAAA,iBAAiB,GAAG,YAAY,CAAA"}
@@ -0,0 +1,4 @@
1
+ export * from './v1';
2
+ export { dataCenterListSchemaV1 as dataCenterListSchema, dataCenterDetailsSchemaV1 as dataCenterDetailsSchema, dataCenterByLocationListSchemaV1 as dataCenterByLocationListSchema, dataCenterExportSchemaV1 as dataCenterExportSchema, dataCenterAPISchemaV1 as dataCenterAPISchema, } from './v1';
3
+ export type { DataCenterListTypeV1 as DataCenterListType, DataCenterDetailsTypeV1 as DataCenterDetailsType, DataCenterByLocationListTypeV1 as DataCenterByLocationListType, DataCenterExportTypeV1 as DataCenterExportType, DataCenterAPITypeV1 as DataCenterAPIType, } from './v1';
4
+ export { baseDataCenterSchemaV1 as baseDataCenterSchema } from './v1';
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.baseDataCenterSchema = exports.dataCenterAPISchema = exports.dataCenterExportSchema = exports.dataCenterByLocationListSchema = exports.dataCenterDetailsSchema = exports.dataCenterListSchema = void 0;
4
+ const tslib_1 = require("tslib");
5
+ tslib_1.__exportStar(require("./v1"), exports);
6
+ // Non-versioned aliases pointing to V1
7
+ var v1_1 = require("./v1");
8
+ // List
9
+ Object.defineProperty(exports, "dataCenterListSchema", { enumerable: true, get: function () { return v1_1.dataCenterListSchemaV1; } });
10
+ // Details
11
+ Object.defineProperty(exports, "dataCenterDetailsSchema", { enumerable: true, get: function () { return v1_1.dataCenterDetailsSchemaV1; } });
12
+ // By-location
13
+ Object.defineProperty(exports, "dataCenterByLocationListSchema", { enumerable: true, get: function () { return v1_1.dataCenterByLocationListSchemaV1; } });
14
+ // Export
15
+ Object.defineProperty(exports, "dataCenterExportSchema", { enumerable: true, get: function () { return v1_1.dataCenterExportSchemaV1; } });
16
+ // API
17
+ Object.defineProperty(exports, "dataCenterAPISchema", { enumerable: true, get: function () { return v1_1.dataCenterAPISchemaV1; } });
18
+ // Base/internal schema alias
19
+ var v1_2 = require("./v1");
20
+ Object.defineProperty(exports, "baseDataCenterSchema", { enumerable: true, get: function () { return v1_2.baseDataCenterSchemaV1; } });
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/client-frontends-shared-types/src/lib/dataGrid/api/dataCenters/index.ts"],"names":[],"mappings":";;;;AAAA,+CAAoB;AAEpB,uCAAuC;AACvC,2BAea;AAdX,OAAO;AACP,0GAAA,sBAAsB,OAAwB;AAE9C,UAAU;AACV,6GAAA,yBAAyB,OAA2B;AAEpD,cAAc;AACd,oHAAA,gCAAgC,OAAkC;AAElE,SAAS;AACT,4GAAA,wBAAwB,OAA0B;AAElD,MAAM;AACN,yGAAA,qBAAqB,OAAuB;AAoB9C,6BAA6B;AAC7B,2BAAqE;AAA5D,0GAAA,sBAAsB,OAAwB"}