@sitecore/sc-contenthub-webclient-sdk 1.2.82 → 1.2.83

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.
@@ -1,6 +1,6 @@
1
- import { DateInterval } from "./date-interval";
1
+ import type { DateInterval } from "./date-interval";
2
2
  import { MetricOptionRequestResource } from "./metric-option-request-resource";
3
- import { RequestedAggregationType } from "./requested-aggregation-type";
3
+ import type { RequestedAggregationType } from "./requested-aggregation-type";
4
4
  export declare class AggregationRequestResource {
5
5
  name: string;
6
6
  field: string;
@@ -11,9 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.AggregationRequestResource = void 0;
13
13
  const ta_json_1 = require("ta-json");
14
- const date_interval_1 = require("./date-interval");
15
14
  const metric_option_request_resource_1 = require("./metric-option-request-resource");
16
- const requested_aggregation_type_1 = require("./requested-aggregation-type");
17
15
  let AggregationRequestResource = class AggregationRequestResource {
18
16
  constructor(init) {
19
17
  this.size = 10;
@@ -51,11 +49,11 @@ __decorate([
51
49
  ], AggregationRequestResource.prototype, "metricOption", void 0);
52
50
  __decorate([
53
51
  (0, ta_json_1.JsonProperty)("type"),
54
- __metadata("design:type", Number)
52
+ __metadata("design:type", String)
55
53
  ], AggregationRequestResource.prototype, "requestedAggregationType", void 0);
56
54
  __decorate([
57
55
  (0, ta_json_1.JsonProperty)("interval"),
58
- __metadata("design:type", Number)
56
+ __metadata("design:type", String)
59
57
  ], AggregationRequestResource.prototype, "interval", void 0);
60
58
  __decorate([
61
59
  (0, ta_json_1.JsonProperty)("format"),
@@ -1 +1 @@
1
- {"version":3,"file":"aggregation-request-resource.js","sourceRoot":"","sources":["../../../src/models/search/aggregation-request-resource.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoE;AAEpE,mDAA+C;AAC/C,qFAA+E;AAC/E,6EAAwE;AAGjE,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IAgCnC,YAAY,IAA0C;QAxBtD,SAAI,GAAW,EAAE,CAAC;QAGlB,eAAU,GAAW,EAAE,CAAC;QAIxB,aAAQ,GAAsC,EAAE,CAAC;QAejD,mBAAc,GAAa,KAAK,CAAC;QAG7B,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC9B,CAAC;CACJ,CAAA;AAnCY,gEAA0B;AAEnC;IADC,IAAA,sBAAY,EAAC,MAAM,CAAC;;wDACR;AAGb;IADC,IAAA,sBAAY,EAAC,OAAO,CAAC;;yDACR;AAGd;IADC,IAAA,sBAAY,EAAC,MAAM,CAAC;;wDACH;AAGlB;IADC,IAAA,sBAAY,EAAC,YAAY,CAAC;;8DACH;AAIxB;IAFC,IAAA,sBAAY,EAAC,UAAU,CAAC;IACxB,IAAA,yBAAe,EAAC,0BAA0B,CAAC;8BAClC,KAAK;4DAAkC;AAGjD;IADC,IAAA,sBAAY,EAAC,eAAe,CAAC;8BACf,4DAA2B;gEAAC;AAG3C;IADC,IAAA,sBAAY,EAAC,MAAM,CAAC;;4EAC+B;AAGpD;IADC,IAAA,sBAAY,EAAC,UAAU,CAAC;;4DACD;AAGxB;IADC,IAAA,sBAAY,EAAC,QAAQ,CAAC;;0DACP;AAGhB;IADC,IAAA,sBAAY,EAAC,iBAAiB,CAAC;;kEACC;qCA9BxB,0BAA0B;IADtC,IAAA,oBAAU,GAAE;;GACA,0BAA0B,CAmCtC"}
1
+ {"version":3,"file":"aggregation-request-resource.js","sourceRoot":"","sources":["../../../src/models/search/aggregation-request-resource.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoE;AAGpE,qFAA+E;AAIxE,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IAgCnC,YAAY,IAA0C;QAxBtD,SAAI,GAAW,EAAE,CAAC;QAGlB,eAAU,GAAW,EAAE,CAAC;QAIxB,aAAQ,GAAsC,EAAE,CAAC;QAejD,mBAAc,GAAa,KAAK,CAAC;QAG7B,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC9B,CAAC;CACJ,CAAA;AAnCY,gEAA0B;AAEnC;IADC,IAAA,sBAAY,EAAC,MAAM,CAAC;;wDACR;AAGb;IADC,IAAA,sBAAY,EAAC,OAAO,CAAC;;yDACR;AAGd;IADC,IAAA,sBAAY,EAAC,MAAM,CAAC;;wDACH;AAGlB;IADC,IAAA,sBAAY,EAAC,YAAY,CAAC;;8DACH;AAIxB;IAFC,IAAA,sBAAY,EAAC,UAAU,CAAC;IACxB,IAAA,yBAAe,EAAC,0BAA0B,CAAC;8BAClC,KAAK;4DAAkC;AAGjD;IADC,IAAA,sBAAY,EAAC,eAAe,CAAC;8BACf,4DAA2B;gEAAC;AAG3C;IADC,IAAA,sBAAY,EAAC,MAAM,CAAC;;4EAC+B;AAGpD;IADC,IAAA,sBAAY,EAAC,UAAU,CAAC;;4DACD;AAGxB;IADC,IAAA,sBAAY,EAAC,QAAQ,CAAC;;0DACP;AAGhB;IADC,IAAA,sBAAY,EAAC,iBAAiB,CAAC;;kEACC;qCA9BxB,0BAA0B;IADtC,IAAA,oBAAU,GAAE;;GACA,0BAA0B,CAmCtC"}
@@ -1,10 +1 @@
1
- export declare enum DateInterval {
2
- Second = 0,
3
- Minute = 1,
4
- Hour = 2,
5
- Day = 3,
6
- Week = 4,
7
- Month = 5,
8
- Quarter = 6,
9
- Year = 7
10
- }
1
+ export type DateInterval = "Second" | "Minute" | "Hour" | "Day" | "Week" | "Month" | "Quarter" | "Year";
@@ -1,15 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DateInterval = void 0;
4
- var DateInterval;
5
- (function (DateInterval) {
6
- DateInterval[DateInterval["Second"] = 0] = "Second";
7
- DateInterval[DateInterval["Minute"] = 1] = "Minute";
8
- DateInterval[DateInterval["Hour"] = 2] = "Hour";
9
- DateInterval[DateInterval["Day"] = 3] = "Day";
10
- DateInterval[DateInterval["Week"] = 4] = "Week";
11
- DateInterval[DateInterval["Month"] = 5] = "Month";
12
- DateInterval[DateInterval["Quarter"] = 6] = "Quarter";
13
- DateInterval[DateInterval["Year"] = 7] = "Year";
14
- })(DateInterval || (exports.DateInterval = DateInterval = {}));
15
3
  //# sourceMappingURL=date-interval.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"date-interval.js","sourceRoot":"","sources":["../../../src/models/search/date-interval.ts"],"names":[],"mappings":";;;AAAA,IAAY,YASX;AATD,WAAY,YAAY;IACpB,mDAAU,CAAA;IACV,mDAAU,CAAA;IACV,+CAAQ,CAAA;IACR,6CAAO,CAAA;IACP,+CAAQ,CAAA;IACR,iDAAS,CAAA;IACT,qDAAW,CAAA;IACX,+CAAQ,CAAA;AACZ,CAAC,EATW,YAAY,4BAAZ,YAAY,QASvB"}
1
+ {"version":3,"file":"date-interval.js","sourceRoot":"","sources":["../../../src/models/search/date-interval.ts"],"names":[],"mappings":""}
@@ -1,5 +1 @@
1
- export declare enum RequestedAggregationType {
2
- Term = 0,
3
- Metric = 1,
4
- Date = 2
5
- }
1
+ export type RequestedAggregationType = "Term" | "Metric" | "Date";
@@ -1,10 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RequestedAggregationType = void 0;
4
- var RequestedAggregationType;
5
- (function (RequestedAggregationType) {
6
- RequestedAggregationType[RequestedAggregationType["Term"] = 0] = "Term";
7
- RequestedAggregationType[RequestedAggregationType["Metric"] = 1] = "Metric";
8
- RequestedAggregationType[RequestedAggregationType["Date"] = 2] = "Date";
9
- })(RequestedAggregationType || (exports.RequestedAggregationType = RequestedAggregationType = {}));
10
3
  //# sourceMappingURL=requested-aggregation-type.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"requested-aggregation-type.js","sourceRoot":"","sources":["../../../src/models/search/requested-aggregation-type.ts"],"names":[],"mappings":";;;AAAA,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IAChC,uEAAQ,CAAA;IACR,2EAAU,CAAA;IACV,uEAAQ,CAAA;AACZ,CAAC,EAJW,wBAAwB,wCAAxB,wBAAwB,QAInC"}
1
+ {"version":3,"file":"requested-aggregation-type.js","sourceRoot":"","sources":["../../../src/models/search/requested-aggregation-type.ts"],"names":[],"mappings":""}
@@ -1,6 +1,6 @@
1
- import { DateInterval } from "./date-interval";
1
+ import type { DateInterval } from "./date-interval";
2
2
  import { MetricOptionRequestResource } from "./metric-option-request-resource";
3
- import { RequestedAggregationType } from "./requested-aggregation-type";
3
+ import type { RequestedAggregationType } from "./requested-aggregation-type";
4
4
  export declare class AggregationRequestResource {
5
5
  name: string;
6
6
  field: string;
@@ -8,9 +8,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  };
10
10
  import { JsonElementType, JsonObject, JsonProperty } from "ta-json";
11
- import { DateInterval } from "./date-interval";
12
11
  import { MetricOptionRequestResource } from "./metric-option-request-resource";
13
- import { RequestedAggregationType } from "./requested-aggregation-type";
14
12
  let AggregationRequestResource = class AggregationRequestResource {
15
13
  constructor(init) {
16
14
  this.size = 10;
@@ -47,11 +45,11 @@ __decorate([
47
45
  ], AggregationRequestResource.prototype, "metricOption", void 0);
48
46
  __decorate([
49
47
  JsonProperty("type"),
50
- __metadata("design:type", Number)
48
+ __metadata("design:type", String)
51
49
  ], AggregationRequestResource.prototype, "requestedAggregationType", void 0);
52
50
  __decorate([
53
51
  JsonProperty("interval"),
54
- __metadata("design:type", Number)
52
+ __metadata("design:type", String)
55
53
  ], AggregationRequestResource.prototype, "interval", void 0);
56
54
  __decorate([
57
55
  JsonProperty("format"),
@@ -1 +1 @@
1
- {"version":3,"file":"aggregation-request-resource.js","sourceRoot":"","sources":["../../../src/models/search/aggregation-request-resource.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEpE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAGjE,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IAgCnC,YAAY,IAA0C;QAxBtD,SAAI,GAAW,EAAE,CAAC;QAGlB,eAAU,GAAW,EAAE,CAAC;QAIxB,aAAQ,GAAsC,EAAE,CAAC;QAejD,mBAAc,GAAa,KAAK,CAAC;QAG7B,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC9B,CAAC;CACJ,CAAA;AAjCG;IADC,YAAY,CAAC,MAAM,CAAC;;wDACR;AAGb;IADC,YAAY,CAAC,OAAO,CAAC;;yDACR;AAGd;IADC,YAAY,CAAC,MAAM,CAAC;;wDACH;AAGlB;IADC,YAAY,CAAC,YAAY,CAAC;;8DACH;AAIxB;IAFC,YAAY,CAAC,UAAU,CAAC;IACxB,eAAe,CAAC,0BAA0B,CAAC;8BAClC,KAAK;4DAAkC;AAGjD;IADC,YAAY,CAAC,eAAe,CAAC;8BACf,2BAA2B;gEAAC;AAG3C;IADC,YAAY,CAAC,MAAM,CAAC;;4EAC+B;AAGpD;IADC,YAAY,CAAC,UAAU,CAAC;;4DACD;AAGxB;IADC,YAAY,CAAC,QAAQ,CAAC;;0DACP;AAGhB;IADC,YAAY,CAAC,iBAAiB,CAAC;;kEACC;AA9BxB,0BAA0B;IADtC,UAAU,EAAE;;GACA,0BAA0B,CAmCtC"}
1
+ {"version":3,"file":"aggregation-request-resource.js","sourceRoot":"","sources":["../../../src/models/search/aggregation-request-resource.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAGpE,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAIxE,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IAgCnC,YAAY,IAA0C;QAxBtD,SAAI,GAAW,EAAE,CAAC;QAGlB,eAAU,GAAW,EAAE,CAAC;QAIxB,aAAQ,GAAsC,EAAE,CAAC;QAejD,mBAAc,GAAa,KAAK,CAAC;QAG7B,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC9B,CAAC;CACJ,CAAA;AAjCG;IADC,YAAY,CAAC,MAAM,CAAC;;wDACR;AAGb;IADC,YAAY,CAAC,OAAO,CAAC;;yDACR;AAGd;IADC,YAAY,CAAC,MAAM,CAAC;;wDACH;AAGlB;IADC,YAAY,CAAC,YAAY,CAAC;;8DACH;AAIxB;IAFC,YAAY,CAAC,UAAU,CAAC;IACxB,eAAe,CAAC,0BAA0B,CAAC;8BAClC,KAAK;4DAAkC;AAGjD;IADC,YAAY,CAAC,eAAe,CAAC;8BACf,2BAA2B;gEAAC;AAG3C;IADC,YAAY,CAAC,MAAM,CAAC;;4EAC+B;AAGpD;IADC,YAAY,CAAC,UAAU,CAAC;;4DACD;AAGxB;IADC,YAAY,CAAC,QAAQ,CAAC;;0DACP;AAGhB;IADC,YAAY,CAAC,iBAAiB,CAAC;;kEACC;AA9BxB,0BAA0B;IADtC,UAAU,EAAE;;GACA,0BAA0B,CAmCtC"}
@@ -1,10 +1 @@
1
- export declare enum DateInterval {
2
- Second = 0,
3
- Minute = 1,
4
- Hour = 2,
5
- Day = 3,
6
- Week = 4,
7
- Month = 5,
8
- Quarter = 6,
9
- Year = 7
10
- }
1
+ export type DateInterval = "Second" | "Minute" | "Hour" | "Day" | "Week" | "Month" | "Quarter" | "Year";
@@ -1,12 +1,2 @@
1
- export var DateInterval;
2
- (function (DateInterval) {
3
- DateInterval[DateInterval["Second"] = 0] = "Second";
4
- DateInterval[DateInterval["Minute"] = 1] = "Minute";
5
- DateInterval[DateInterval["Hour"] = 2] = "Hour";
6
- DateInterval[DateInterval["Day"] = 3] = "Day";
7
- DateInterval[DateInterval["Week"] = 4] = "Week";
8
- DateInterval[DateInterval["Month"] = 5] = "Month";
9
- DateInterval[DateInterval["Quarter"] = 6] = "Quarter";
10
- DateInterval[DateInterval["Year"] = 7] = "Year";
11
- })(DateInterval || (DateInterval = {}));
1
+ export {};
12
2
  //# sourceMappingURL=date-interval.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"date-interval.js","sourceRoot":"","sources":["../../../src/models/search/date-interval.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,YASX;AATD,WAAY,YAAY;IACpB,mDAAU,CAAA;IACV,mDAAU,CAAA;IACV,+CAAQ,CAAA;IACR,6CAAO,CAAA;IACP,+CAAQ,CAAA;IACR,iDAAS,CAAA;IACT,qDAAW,CAAA;IACX,+CAAQ,CAAA;AACZ,CAAC,EATW,YAAY,KAAZ,YAAY,QASvB"}
1
+ {"version":3,"file":"date-interval.js","sourceRoot":"","sources":["../../../src/models/search/date-interval.ts"],"names":[],"mappings":""}
@@ -1,5 +1 @@
1
- export declare enum RequestedAggregationType {
2
- Term = 0,
3
- Metric = 1,
4
- Date = 2
5
- }
1
+ export type RequestedAggregationType = "Term" | "Metric" | "Date";
@@ -1,7 +1,2 @@
1
- export var RequestedAggregationType;
2
- (function (RequestedAggregationType) {
3
- RequestedAggregationType[RequestedAggregationType["Term"] = 0] = "Term";
4
- RequestedAggregationType[RequestedAggregationType["Metric"] = 1] = "Metric";
5
- RequestedAggregationType[RequestedAggregationType["Date"] = 2] = "Date";
6
- })(RequestedAggregationType || (RequestedAggregationType = {}));
1
+ export {};
7
2
  //# sourceMappingURL=requested-aggregation-type.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"requested-aggregation-type.js","sourceRoot":"","sources":["../../../src/models/search/requested-aggregation-type.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,wBAIX;AAJD,WAAY,wBAAwB;IAChC,uEAAQ,CAAA;IACR,2EAAU,CAAA;IACV,uEAAQ,CAAA;AACZ,CAAC,EAJW,wBAAwB,KAAxB,wBAAwB,QAInC"}
1
+ {"version":3,"file":"requested-aggregation-type.js","sourceRoot":"","sources":["../../../src/models/search/requested-aggregation-type.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sitecore/sc-contenthub-webclient-sdk",
3
- "version": "1.2.82",
3
+ "version": "1.2.83",
4
4
  "description": "Sitecore Content Hub WebClient SDK.",
5
5
  "sideEffect": false,
6
6
  "scripts": {