@headspace/protos-events 1.323.0 → 1.324.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/lib/index.d.ts CHANGED
@@ -8288,7 +8288,7 @@ export namespace productcatalog {
8288
8288
  endDateCondition?: (productcatalog.ProductSkuEndDateCondition|null);
8289
8289
 
8290
8290
  /** when 'end_date_condition' is "FIXED_PERIOD", the number of periods to charge before ending */
8291
- endDatePeriods?: (string|null);
8291
+ endDatePeriods?: (number|null);
8292
8292
 
8293
8293
  /** country & currency specific configuration */
8294
8294
  tiers?: (productcatalog.IRatePlanChargeTier[]|null);
@@ -8313,7 +8313,7 @@ export namespace productcatalog {
8313
8313
  public endDateCondition: productcatalog.ProductSkuEndDateCondition;
8314
8314
 
8315
8315
  /** when 'end_date_condition' is "FIXED_PERIOD", the number of periods to charge before ending */
8316
- public endDatePeriods: string;
8316
+ public endDatePeriods: number;
8317
8317
 
8318
8318
  /** country & currency specific configuration */
8319
8319
  public tiers: productcatalog.IRatePlanChargeTier[];
@@ -8522,7 +8522,8 @@ export namespace productcatalog {
8522
8522
  BC_FREE_CODE = 3,
8523
8523
  BC_FREE_TRIAL = 4,
8524
8524
  BC_PARTNER_PAID = 5,
8525
- BC_DIRECT = 6
8525
+ BC_DIRECT = 6,
8526
+ BC_PARTIAL_PAY = 7
8526
8527
  }
8527
8528
 
8528
8529
  /** ProductSkuCalendarPeriod enum. */
@@ -24933,6 +24934,15 @@ export interface ITranslation {
24933
24934
 
24934
24935
  /** Translation tags */
24935
24936
  tags?: (ITag[]|null);
24937
+
24938
+ /** Translation description */
24939
+ description?: (string|null);
24940
+
24941
+ /** Translation durationRange */
24942
+ durationRange?: (string|null);
24943
+
24944
+ /** Translation teaser */
24945
+ teaser?: (string|null);
24936
24946
  }
24937
24947
 
24938
24948
  /** Represents a Translation. */
@@ -24965,6 +24975,15 @@ export class Translation implements ITranslation {
24965
24975
  /** Translation tags. */
24966
24976
  public tags: ITag[];
24967
24977
 
24978
+ /** Translation description. */
24979
+ public description: string;
24980
+
24981
+ /** Translation durationRange. */
24982
+ public durationRange: string;
24983
+
24984
+ /** Translation teaser. */
24985
+ public teaser: string;
24986
+
24968
24987
  /**
24969
24988
  * Creates a new Translation instance using the specified properties.
24970
24989
  * @param [properties] Properties to set
package/lib/index.js CHANGED
@@ -18947,6 +18947,7 @@ $root.productcatalog = (function() {
18947
18947
  case 4:
18948
18948
  case 5:
18949
18949
  case 6:
18950
+ case 7:
18950
18951
  break;
18951
18952
  }
18952
18953
  if (message.initialTerm != null && message.hasOwnProperty("initialTerm")) {
@@ -19062,6 +19063,10 @@ $root.productcatalog = (function() {
19062
19063
  case 6:
19063
19064
  message.billingCategory = 6;
19064
19065
  break;
19066
+ case "BC_PARTIAL_PAY":
19067
+ case 7:
19068
+ message.billingCategory = 7;
19069
+ break;
19065
19070
  }
19066
19071
  if (object.initialTerm != null) {
19067
19072
  if (typeof object.initialTerm !== "object")
@@ -19923,7 +19928,7 @@ $root.productcatalog = (function() {
19923
19928
  * @property {productcatalog.ProductSkuCalendarPeriod|null} [period] type of calendar period, e.g. "MONTH", "DAY", "YEAR"
19924
19929
  * @property {productcatalog.ProductSkuChargeModel|null} [chargeModel] how to interpret this charge, eg. "FLAT_FEE", "DISCOUNT_FIXED", "DISCOUNT_PCT"
19925
19930
  * @property {productcatalog.ProductSkuEndDateCondition|null} [endDateCondition] when to end this charge, eg. "END_OF_SUBSCRIPTION", "FIXED_PERIODS"
19926
- * @property {string|null} [endDatePeriods] when 'end_date_condition' is "FIXED_PERIOD", the number of periods to charge before ending
19931
+ * @property {number|null} [endDatePeriods] when 'end_date_condition' is "FIXED_PERIOD", the number of periods to charge before ending
19927
19932
  * @property {Array.<productcatalog.IRatePlanChargeTier>|null} [tiers] country & currency specific configuration
19928
19933
  */
19929
19934
 
@@ -19969,11 +19974,11 @@ $root.productcatalog = (function() {
19969
19974
 
19970
19975
  /**
19971
19976
  * when 'end_date_condition' is "FIXED_PERIOD", the number of periods to charge before ending
19972
- * @member {string} endDatePeriods
19977
+ * @member {number} endDatePeriods
19973
19978
  * @memberof productcatalog.RatePlanCharge
19974
19979
  * @instance
19975
19980
  */
19976
- RatePlanCharge.prototype.endDatePeriods = "";
19981
+ RatePlanCharge.prototype.endDatePeriods = 0;
19977
19982
 
19978
19983
  /**
19979
19984
  * country & currency specific configuration
@@ -20014,7 +20019,7 @@ $root.productcatalog = (function() {
20014
20019
  if (message.endDateCondition != null && message.hasOwnProperty("endDateCondition"))
20015
20020
  writer.uint32(/* id 3, wireType 0 =*/24).int32(message.endDateCondition);
20016
20021
  if (message.endDatePeriods != null && message.hasOwnProperty("endDatePeriods"))
20017
- writer.uint32(/* id 4, wireType 2 =*/34).string(message.endDatePeriods);
20022
+ writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.endDatePeriods);
20018
20023
  if (message.tiers != null && message.tiers.length)
20019
20024
  for (var i = 0; i < message.tiers.length; ++i)
20020
20025
  $root.productcatalog.RatePlanChargeTier.encode(message.tiers[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
@@ -20062,7 +20067,7 @@ $root.productcatalog = (function() {
20062
20067
  message.endDateCondition = reader.int32();
20063
20068
  break;
20064
20069
  case 4:
20065
- message.endDatePeriods = reader.string();
20070
+ message.endDatePeriods = reader.uint32();
20066
20071
  break;
20067
20072
  case 5:
20068
20073
  if (!(message.tiers && message.tiers.length))
@@ -20140,8 +20145,8 @@ $root.productcatalog = (function() {
20140
20145
  break;
20141
20146
  }
20142
20147
  if (message.endDatePeriods != null && message.hasOwnProperty("endDatePeriods"))
20143
- if (!$util.isString(message.endDatePeriods))
20144
- return "endDatePeriods: string expected";
20148
+ if (!$util.isInteger(message.endDatePeriods))
20149
+ return "endDatePeriods: integer expected";
20145
20150
  if (message.tiers != null && message.hasOwnProperty("tiers")) {
20146
20151
  if (!Array.isArray(message.tiers))
20147
20152
  return "tiers: array expected";
@@ -20241,7 +20246,7 @@ $root.productcatalog = (function() {
20241
20246
  break;
20242
20247
  }
20243
20248
  if (object.endDatePeriods != null)
20244
- message.endDatePeriods = String(object.endDatePeriods);
20249
+ message.endDatePeriods = object.endDatePeriods >>> 0;
20245
20250
  if (object.tiers) {
20246
20251
  if (!Array.isArray(object.tiers))
20247
20252
  throw TypeError(".productcatalog.RatePlanCharge.tiers: array expected");
@@ -20274,7 +20279,7 @@ $root.productcatalog = (function() {
20274
20279
  object.period = options.enums === String ? "CP_UNKNOWN" : 0;
20275
20280
  object.chargeModel = options.enums === String ? "CM_UNKNOWN" : 0;
20276
20281
  object.endDateCondition = options.enums === String ? "EDC_UNKNOWN" : 0;
20277
- object.endDatePeriods = "";
20282
+ object.endDatePeriods = 0;
20278
20283
  }
20279
20284
  if (message.period != null && message.hasOwnProperty("period"))
20280
20285
  object.period = options.enums === String ? $root.productcatalog.ProductSkuCalendarPeriod[message.period] : message.period;
@@ -20617,6 +20622,7 @@ $root.productcatalog = (function() {
20617
20622
  * @property {number} BC_FREE_TRIAL=4 BC_FREE_TRIAL value
20618
20623
  * @property {number} BC_PARTNER_PAID=5 BC_PARTNER_PAID value
20619
20624
  * @property {number} BC_DIRECT=6 BC_DIRECT value
20625
+ * @property {number} BC_PARTIAL_PAY=7 BC_PARTIAL_PAY value
20620
20626
  */
20621
20627
  productcatalog.ProductSkuBillingCategory = (function() {
20622
20628
  var valuesById = {}, values = Object.create(valuesById);
@@ -20627,6 +20633,7 @@ $root.productcatalog = (function() {
20627
20633
  values[valuesById[4] = "BC_FREE_TRIAL"] = 4;
20628
20634
  values[valuesById[5] = "BC_PARTNER_PAID"] = 5;
20629
20635
  values[valuesById[6] = "BC_DIRECT"] = 6;
20636
+ values[valuesById[7] = "BC_PARTIAL_PAY"] = 7;
20630
20637
  return values;
20631
20638
  })();
20632
20639
 
@@ -68443,6 +68450,9 @@ $root.Translation = (function() {
68443
68450
  * @property {string|null} [subtextSecondary] Translation subtextSecondary
68444
68451
  * @property {Array.<INarrator>|null} [narrators] Translation narrators
68445
68452
  * @property {Array.<ITag>|null} [tags] Translation tags
68453
+ * @property {string|null} [description] Translation description
68454
+ * @property {string|null} [durationRange] Translation durationRange
68455
+ * @property {string|null} [teaser] Translation teaser
68446
68456
  */
68447
68457
 
68448
68458
  /**
@@ -68518,6 +68528,30 @@ $root.Translation = (function() {
68518
68528
  */
68519
68529
  Translation.prototype.tags = $util.emptyArray;
68520
68530
 
68531
+ /**
68532
+ * Translation description.
68533
+ * @member {string} description
68534
+ * @memberof Translation
68535
+ * @instance
68536
+ */
68537
+ Translation.prototype.description = "";
68538
+
68539
+ /**
68540
+ * Translation durationRange.
68541
+ * @member {string} durationRange
68542
+ * @memberof Translation
68543
+ * @instance
68544
+ */
68545
+ Translation.prototype.durationRange = "";
68546
+
68547
+ /**
68548
+ * Translation teaser.
68549
+ * @member {string} teaser
68550
+ * @memberof Translation
68551
+ * @instance
68552
+ */
68553
+ Translation.prototype.teaser = "";
68554
+
68521
68555
  /**
68522
68556
  * Creates a new Translation instance using the specified properties.
68523
68557
  * @function create
@@ -68558,6 +68592,12 @@ $root.Translation = (function() {
68558
68592
  if (message.tags != null && message.tags.length)
68559
68593
  for (var i = 0; i < message.tags.length; ++i)
68560
68594
  $root.Tag.encode(message.tags[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
68595
+ if (message.description != null && message.hasOwnProperty("description"))
68596
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.description);
68597
+ if (message.durationRange != null && message.hasOwnProperty("durationRange"))
68598
+ writer.uint32(/* id 9, wireType 2 =*/74).string(message.durationRange);
68599
+ if (message.teaser != null && message.hasOwnProperty("teaser"))
68600
+ writer.uint32(/* id 10, wireType 2 =*/82).string(message.teaser);
68561
68601
  return writer;
68562
68602
  };
68563
68603
 
@@ -68617,6 +68657,15 @@ $root.Translation = (function() {
68617
68657
  message.tags = [];
68618
68658
  message.tags.push($root.Tag.decode(reader, reader.uint32()));
68619
68659
  break;
68660
+ case 8:
68661
+ message.description = reader.string();
68662
+ break;
68663
+ case 9:
68664
+ message.durationRange = reader.string();
68665
+ break;
68666
+ case 10:
68667
+ message.teaser = reader.string();
68668
+ break;
68620
68669
  default:
68621
68670
  reader.skipType(tag & 7);
68622
68671
  break;
@@ -68685,6 +68734,15 @@ $root.Translation = (function() {
68685
68734
  return "tags." + error;
68686
68735
  }
68687
68736
  }
68737
+ if (message.description != null && message.hasOwnProperty("description"))
68738
+ if (!$util.isString(message.description))
68739
+ return "description: string expected";
68740
+ if (message.durationRange != null && message.hasOwnProperty("durationRange"))
68741
+ if (!$util.isString(message.durationRange))
68742
+ return "durationRange: string expected";
68743
+ if (message.teaser != null && message.hasOwnProperty("teaser"))
68744
+ if (!$util.isString(message.teaser))
68745
+ return "teaser: string expected";
68688
68746
  return null;
68689
68747
  };
68690
68748
 
@@ -68730,6 +68788,12 @@ $root.Translation = (function() {
68730
68788
  message.tags[i] = $root.Tag.fromObject(object.tags[i]);
68731
68789
  }
68732
68790
  }
68791
+ if (object.description != null)
68792
+ message.description = String(object.description);
68793
+ if (object.durationRange != null)
68794
+ message.durationRange = String(object.durationRange);
68795
+ if (object.teaser != null)
68796
+ message.teaser = String(object.teaser);
68733
68797
  return message;
68734
68798
  };
68735
68799
 
@@ -68756,6 +68820,9 @@ $root.Translation = (function() {
68756
68820
  object.bodyText = "";
68757
68821
  object.subtext = "";
68758
68822
  object.subtextSecondary = "";
68823
+ object.description = "";
68824
+ object.durationRange = "";
68825
+ object.teaser = "";
68759
68826
  }
68760
68827
  if (message.formattedContentTypeDisplayValue != null && message.hasOwnProperty("formattedContentTypeDisplayValue"))
68761
68828
  object.formattedContentTypeDisplayValue = message.formattedContentTypeDisplayValue;
@@ -68777,6 +68844,12 @@ $root.Translation = (function() {
68777
68844
  for (var j = 0; j < message.tags.length; ++j)
68778
68845
  object.tags[j] = $root.Tag.toObject(message.tags[j], options);
68779
68846
  }
68847
+ if (message.description != null && message.hasOwnProperty("description"))
68848
+ object.description = message.description;
68849
+ if (message.durationRange != null && message.hasOwnProperty("durationRange"))
68850
+ object.durationRange = message.durationRange;
68851
+ if (message.teaser != null && message.hasOwnProperty("teaser"))
68852
+ object.teaser = message.teaser;
68780
68853
  return object;
68781
68854
  };
68782
68855
 
package/package.json CHANGED
@@ -16,5 +16,5 @@
16
16
  "main": "lib/index.js",
17
17
  "name": "@headspace/protos-events",
18
18
  "typings": "lib/index.d.ts",
19
- "version": "1.323.0"
19
+ "version": "1.324.0"
20
20
  }