@headspace/protos-events 1.323.0 → 1.325.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 +28 -3
- package/lib/index.js +104 -9
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -7875,6 +7875,9 @@ export namespace productcatalog {
|
|
|
7875
7875
|
|
|
7876
7876
|
/** extra information (e.g. student, family) */
|
|
7877
7877
|
tags?: (productcatalog.ProductSkuTag[]|null);
|
|
7878
|
+
|
|
7879
|
+
/** product id */
|
|
7880
|
+
productId?: (string|null);
|
|
7878
7881
|
}
|
|
7879
7882
|
|
|
7880
7883
|
/** Represents a ProductSku. */
|
|
@@ -7916,6 +7919,9 @@ export namespace productcatalog {
|
|
|
7916
7919
|
/** extra information (e.g. student, family) */
|
|
7917
7920
|
public tags: productcatalog.ProductSkuTag[];
|
|
7918
7921
|
|
|
7922
|
+
/** product id */
|
|
7923
|
+
public productId: string;
|
|
7924
|
+
|
|
7919
7925
|
/**
|
|
7920
7926
|
* Creates a new ProductSku instance using the specified properties.
|
|
7921
7927
|
* @param [properties] Properties to set
|
|
@@ -8288,7 +8294,7 @@ export namespace productcatalog {
|
|
|
8288
8294
|
endDateCondition?: (productcatalog.ProductSkuEndDateCondition|null);
|
|
8289
8295
|
|
|
8290
8296
|
/** when 'end_date_condition' is "FIXED_PERIOD", the number of periods to charge before ending */
|
|
8291
|
-
endDatePeriods?: (
|
|
8297
|
+
endDatePeriods?: (number|null);
|
|
8292
8298
|
|
|
8293
8299
|
/** country & currency specific configuration */
|
|
8294
8300
|
tiers?: (productcatalog.IRatePlanChargeTier[]|null);
|
|
@@ -8313,7 +8319,7 @@ export namespace productcatalog {
|
|
|
8313
8319
|
public endDateCondition: productcatalog.ProductSkuEndDateCondition;
|
|
8314
8320
|
|
|
8315
8321
|
/** when 'end_date_condition' is "FIXED_PERIOD", the number of periods to charge before ending */
|
|
8316
|
-
public endDatePeriods:
|
|
8322
|
+
public endDatePeriods: number;
|
|
8317
8323
|
|
|
8318
8324
|
/** country & currency specific configuration */
|
|
8319
8325
|
public tiers: productcatalog.IRatePlanChargeTier[];
|
|
@@ -8522,7 +8528,8 @@ export namespace productcatalog {
|
|
|
8522
8528
|
BC_FREE_CODE = 3,
|
|
8523
8529
|
BC_FREE_TRIAL = 4,
|
|
8524
8530
|
BC_PARTNER_PAID = 5,
|
|
8525
|
-
BC_DIRECT = 6
|
|
8531
|
+
BC_DIRECT = 6,
|
|
8532
|
+
BC_PARTIAL_PAY = 7
|
|
8526
8533
|
}
|
|
8527
8534
|
|
|
8528
8535
|
/** ProductSkuCalendarPeriod enum. */
|
|
@@ -24933,6 +24940,15 @@ export interface ITranslation {
|
|
|
24933
24940
|
|
|
24934
24941
|
/** Translation tags */
|
|
24935
24942
|
tags?: (ITag[]|null);
|
|
24943
|
+
|
|
24944
|
+
/** Translation description */
|
|
24945
|
+
description?: (string|null);
|
|
24946
|
+
|
|
24947
|
+
/** Translation durationRange */
|
|
24948
|
+
durationRange?: (string|null);
|
|
24949
|
+
|
|
24950
|
+
/** Translation teaser */
|
|
24951
|
+
teaser?: (string|null);
|
|
24936
24952
|
}
|
|
24937
24953
|
|
|
24938
24954
|
/** Represents a Translation. */
|
|
@@ -24965,6 +24981,15 @@ export class Translation implements ITranslation {
|
|
|
24965
24981
|
/** Translation tags. */
|
|
24966
24982
|
public tags: ITag[];
|
|
24967
24983
|
|
|
24984
|
+
/** Translation description. */
|
|
24985
|
+
public description: string;
|
|
24986
|
+
|
|
24987
|
+
/** Translation durationRange. */
|
|
24988
|
+
public durationRange: string;
|
|
24989
|
+
|
|
24990
|
+
/** Translation teaser. */
|
|
24991
|
+
public teaser: string;
|
|
24992
|
+
|
|
24968
24993
|
/**
|
|
24969
24994
|
* Creates a new Translation instance using the specified properties.
|
|
24970
24995
|
* @param [properties] Properties to set
|
package/lib/index.js
CHANGED
|
@@ -18662,6 +18662,7 @@ $root.productcatalog = (function() {
|
|
|
18662
18662
|
* @property {productcatalog.ITermConfiguration|null} [billingDelay] length of time to wait before we start billing the user
|
|
18663
18663
|
* @property {productcatalog.IBillingPlan|null} [billingPlan] billing information
|
|
18664
18664
|
* @property {Array.<productcatalog.ProductSkuTag>|null} [tags] extra information (e.g. student, family)
|
|
18665
|
+
* @property {string|null} [productId] product id
|
|
18665
18666
|
*/
|
|
18666
18667
|
|
|
18667
18668
|
/**
|
|
@@ -18760,6 +18761,14 @@ $root.productcatalog = (function() {
|
|
|
18760
18761
|
*/
|
|
18761
18762
|
ProductSku.prototype.tags = $util.emptyArray;
|
|
18762
18763
|
|
|
18764
|
+
/**
|
|
18765
|
+
* product id
|
|
18766
|
+
* @member {string} productId
|
|
18767
|
+
* @memberof productcatalog.ProductSku
|
|
18768
|
+
* @instance
|
|
18769
|
+
*/
|
|
18770
|
+
ProductSku.prototype.productId = "";
|
|
18771
|
+
|
|
18763
18772
|
/**
|
|
18764
18773
|
* Creates a new ProductSku instance using the specified properties.
|
|
18765
18774
|
* @function create
|
|
@@ -18808,6 +18817,8 @@ $root.productcatalog = (function() {
|
|
|
18808
18817
|
writer.int32(message.tags[i]);
|
|
18809
18818
|
writer.ldelim();
|
|
18810
18819
|
}
|
|
18820
|
+
if (message.productId != null && message.hasOwnProperty("productId"))
|
|
18821
|
+
writer.uint32(/* id 11, wireType 2 =*/90).string(message.productId);
|
|
18811
18822
|
return writer;
|
|
18812
18823
|
};
|
|
18813
18824
|
|
|
@@ -18879,6 +18890,9 @@ $root.productcatalog = (function() {
|
|
|
18879
18890
|
} else
|
|
18880
18891
|
message.tags.push(reader.int32());
|
|
18881
18892
|
break;
|
|
18893
|
+
case 11:
|
|
18894
|
+
message.productId = reader.string();
|
|
18895
|
+
break;
|
|
18882
18896
|
default:
|
|
18883
18897
|
reader.skipType(tag & 7);
|
|
18884
18898
|
break;
|
|
@@ -18947,6 +18961,7 @@ $root.productcatalog = (function() {
|
|
|
18947
18961
|
case 4:
|
|
18948
18962
|
case 5:
|
|
18949
18963
|
case 6:
|
|
18964
|
+
case 7:
|
|
18950
18965
|
break;
|
|
18951
18966
|
}
|
|
18952
18967
|
if (message.initialTerm != null && message.hasOwnProperty("initialTerm")) {
|
|
@@ -18982,6 +18997,9 @@ $root.productcatalog = (function() {
|
|
|
18982
18997
|
break;
|
|
18983
18998
|
}
|
|
18984
18999
|
}
|
|
19000
|
+
if (message.productId != null && message.hasOwnProperty("productId"))
|
|
19001
|
+
if (!$util.isString(message.productId))
|
|
19002
|
+
return "productId: string expected";
|
|
18985
19003
|
return null;
|
|
18986
19004
|
};
|
|
18987
19005
|
|
|
@@ -19062,6 +19080,10 @@ $root.productcatalog = (function() {
|
|
|
19062
19080
|
case 6:
|
|
19063
19081
|
message.billingCategory = 6;
|
|
19064
19082
|
break;
|
|
19083
|
+
case "BC_PARTIAL_PAY":
|
|
19084
|
+
case 7:
|
|
19085
|
+
message.billingCategory = 7;
|
|
19086
|
+
break;
|
|
19065
19087
|
}
|
|
19066
19088
|
if (object.initialTerm != null) {
|
|
19067
19089
|
if (typeof object.initialTerm !== "object")
|
|
@@ -19104,6 +19126,8 @@ $root.productcatalog = (function() {
|
|
|
19104
19126
|
break;
|
|
19105
19127
|
}
|
|
19106
19128
|
}
|
|
19129
|
+
if (object.productId != null)
|
|
19130
|
+
message.productId = String(object.productId);
|
|
19107
19131
|
return message;
|
|
19108
19132
|
};
|
|
19109
19133
|
|
|
@@ -19132,6 +19156,7 @@ $root.productcatalog = (function() {
|
|
|
19132
19156
|
object.renewalTerm = null;
|
|
19133
19157
|
object.billingDelay = null;
|
|
19134
19158
|
object.billingPlan = null;
|
|
19159
|
+
object.productId = "";
|
|
19135
19160
|
}
|
|
19136
19161
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
19137
19162
|
object.id = message.id;
|
|
@@ -19156,6 +19181,8 @@ $root.productcatalog = (function() {
|
|
|
19156
19181
|
for (var j = 0; j < message.tags.length; ++j)
|
|
19157
19182
|
object.tags[j] = options.enums === String ? $root.productcatalog.ProductSkuTag[message.tags[j]] : message.tags[j];
|
|
19158
19183
|
}
|
|
19184
|
+
if (message.productId != null && message.hasOwnProperty("productId"))
|
|
19185
|
+
object.productId = message.productId;
|
|
19159
19186
|
return object;
|
|
19160
19187
|
};
|
|
19161
19188
|
|
|
@@ -19923,7 +19950,7 @@ $root.productcatalog = (function() {
|
|
|
19923
19950
|
* @property {productcatalog.ProductSkuCalendarPeriod|null} [period] type of calendar period, e.g. "MONTH", "DAY", "YEAR"
|
|
19924
19951
|
* @property {productcatalog.ProductSkuChargeModel|null} [chargeModel] how to interpret this charge, eg. "FLAT_FEE", "DISCOUNT_FIXED", "DISCOUNT_PCT"
|
|
19925
19952
|
* @property {productcatalog.ProductSkuEndDateCondition|null} [endDateCondition] when to end this charge, eg. "END_OF_SUBSCRIPTION", "FIXED_PERIODS"
|
|
19926
|
-
* @property {
|
|
19953
|
+
* @property {number|null} [endDatePeriods] when 'end_date_condition' is "FIXED_PERIOD", the number of periods to charge before ending
|
|
19927
19954
|
* @property {Array.<productcatalog.IRatePlanChargeTier>|null} [tiers] country & currency specific configuration
|
|
19928
19955
|
*/
|
|
19929
19956
|
|
|
@@ -19969,11 +19996,11 @@ $root.productcatalog = (function() {
|
|
|
19969
19996
|
|
|
19970
19997
|
/**
|
|
19971
19998
|
* when 'end_date_condition' is "FIXED_PERIOD", the number of periods to charge before ending
|
|
19972
|
-
* @member {
|
|
19999
|
+
* @member {number} endDatePeriods
|
|
19973
20000
|
* @memberof productcatalog.RatePlanCharge
|
|
19974
20001
|
* @instance
|
|
19975
20002
|
*/
|
|
19976
|
-
RatePlanCharge.prototype.endDatePeriods =
|
|
20003
|
+
RatePlanCharge.prototype.endDatePeriods = 0;
|
|
19977
20004
|
|
|
19978
20005
|
/**
|
|
19979
20006
|
* country & currency specific configuration
|
|
@@ -20014,7 +20041,7 @@ $root.productcatalog = (function() {
|
|
|
20014
20041
|
if (message.endDateCondition != null && message.hasOwnProperty("endDateCondition"))
|
|
20015
20042
|
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.endDateCondition);
|
|
20016
20043
|
if (message.endDatePeriods != null && message.hasOwnProperty("endDatePeriods"))
|
|
20017
|
-
writer.uint32(/* id 4, wireType
|
|
20044
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.endDatePeriods);
|
|
20018
20045
|
if (message.tiers != null && message.tiers.length)
|
|
20019
20046
|
for (var i = 0; i < message.tiers.length; ++i)
|
|
20020
20047
|
$root.productcatalog.RatePlanChargeTier.encode(message.tiers[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
@@ -20062,7 +20089,7 @@ $root.productcatalog = (function() {
|
|
|
20062
20089
|
message.endDateCondition = reader.int32();
|
|
20063
20090
|
break;
|
|
20064
20091
|
case 4:
|
|
20065
|
-
message.endDatePeriods = reader.
|
|
20092
|
+
message.endDatePeriods = reader.uint32();
|
|
20066
20093
|
break;
|
|
20067
20094
|
case 5:
|
|
20068
20095
|
if (!(message.tiers && message.tiers.length))
|
|
@@ -20140,8 +20167,8 @@ $root.productcatalog = (function() {
|
|
|
20140
20167
|
break;
|
|
20141
20168
|
}
|
|
20142
20169
|
if (message.endDatePeriods != null && message.hasOwnProperty("endDatePeriods"))
|
|
20143
|
-
if (!$util.
|
|
20144
|
-
return "endDatePeriods:
|
|
20170
|
+
if (!$util.isInteger(message.endDatePeriods))
|
|
20171
|
+
return "endDatePeriods: integer expected";
|
|
20145
20172
|
if (message.tiers != null && message.hasOwnProperty("tiers")) {
|
|
20146
20173
|
if (!Array.isArray(message.tiers))
|
|
20147
20174
|
return "tiers: array expected";
|
|
@@ -20241,7 +20268,7 @@ $root.productcatalog = (function() {
|
|
|
20241
20268
|
break;
|
|
20242
20269
|
}
|
|
20243
20270
|
if (object.endDatePeriods != null)
|
|
20244
|
-
message.endDatePeriods =
|
|
20271
|
+
message.endDatePeriods = object.endDatePeriods >>> 0;
|
|
20245
20272
|
if (object.tiers) {
|
|
20246
20273
|
if (!Array.isArray(object.tiers))
|
|
20247
20274
|
throw TypeError(".productcatalog.RatePlanCharge.tiers: array expected");
|
|
@@ -20274,7 +20301,7 @@ $root.productcatalog = (function() {
|
|
|
20274
20301
|
object.period = options.enums === String ? "CP_UNKNOWN" : 0;
|
|
20275
20302
|
object.chargeModel = options.enums === String ? "CM_UNKNOWN" : 0;
|
|
20276
20303
|
object.endDateCondition = options.enums === String ? "EDC_UNKNOWN" : 0;
|
|
20277
|
-
object.endDatePeriods =
|
|
20304
|
+
object.endDatePeriods = 0;
|
|
20278
20305
|
}
|
|
20279
20306
|
if (message.period != null && message.hasOwnProperty("period"))
|
|
20280
20307
|
object.period = options.enums === String ? $root.productcatalog.ProductSkuCalendarPeriod[message.period] : message.period;
|
|
@@ -20617,6 +20644,7 @@ $root.productcatalog = (function() {
|
|
|
20617
20644
|
* @property {number} BC_FREE_TRIAL=4 BC_FREE_TRIAL value
|
|
20618
20645
|
* @property {number} BC_PARTNER_PAID=5 BC_PARTNER_PAID value
|
|
20619
20646
|
* @property {number} BC_DIRECT=6 BC_DIRECT value
|
|
20647
|
+
* @property {number} BC_PARTIAL_PAY=7 BC_PARTIAL_PAY value
|
|
20620
20648
|
*/
|
|
20621
20649
|
productcatalog.ProductSkuBillingCategory = (function() {
|
|
20622
20650
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -20627,6 +20655,7 @@ $root.productcatalog = (function() {
|
|
|
20627
20655
|
values[valuesById[4] = "BC_FREE_TRIAL"] = 4;
|
|
20628
20656
|
values[valuesById[5] = "BC_PARTNER_PAID"] = 5;
|
|
20629
20657
|
values[valuesById[6] = "BC_DIRECT"] = 6;
|
|
20658
|
+
values[valuesById[7] = "BC_PARTIAL_PAY"] = 7;
|
|
20630
20659
|
return values;
|
|
20631
20660
|
})();
|
|
20632
20661
|
|
|
@@ -68443,6 +68472,9 @@ $root.Translation = (function() {
|
|
|
68443
68472
|
* @property {string|null} [subtextSecondary] Translation subtextSecondary
|
|
68444
68473
|
* @property {Array.<INarrator>|null} [narrators] Translation narrators
|
|
68445
68474
|
* @property {Array.<ITag>|null} [tags] Translation tags
|
|
68475
|
+
* @property {string|null} [description] Translation description
|
|
68476
|
+
* @property {string|null} [durationRange] Translation durationRange
|
|
68477
|
+
* @property {string|null} [teaser] Translation teaser
|
|
68446
68478
|
*/
|
|
68447
68479
|
|
|
68448
68480
|
/**
|
|
@@ -68518,6 +68550,30 @@ $root.Translation = (function() {
|
|
|
68518
68550
|
*/
|
|
68519
68551
|
Translation.prototype.tags = $util.emptyArray;
|
|
68520
68552
|
|
|
68553
|
+
/**
|
|
68554
|
+
* Translation description.
|
|
68555
|
+
* @member {string} description
|
|
68556
|
+
* @memberof Translation
|
|
68557
|
+
* @instance
|
|
68558
|
+
*/
|
|
68559
|
+
Translation.prototype.description = "";
|
|
68560
|
+
|
|
68561
|
+
/**
|
|
68562
|
+
* Translation durationRange.
|
|
68563
|
+
* @member {string} durationRange
|
|
68564
|
+
* @memberof Translation
|
|
68565
|
+
* @instance
|
|
68566
|
+
*/
|
|
68567
|
+
Translation.prototype.durationRange = "";
|
|
68568
|
+
|
|
68569
|
+
/**
|
|
68570
|
+
* Translation teaser.
|
|
68571
|
+
* @member {string} teaser
|
|
68572
|
+
* @memberof Translation
|
|
68573
|
+
* @instance
|
|
68574
|
+
*/
|
|
68575
|
+
Translation.prototype.teaser = "";
|
|
68576
|
+
|
|
68521
68577
|
/**
|
|
68522
68578
|
* Creates a new Translation instance using the specified properties.
|
|
68523
68579
|
* @function create
|
|
@@ -68558,6 +68614,12 @@ $root.Translation = (function() {
|
|
|
68558
68614
|
if (message.tags != null && message.tags.length)
|
|
68559
68615
|
for (var i = 0; i < message.tags.length; ++i)
|
|
68560
68616
|
$root.Tag.encode(message.tags[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
68617
|
+
if (message.description != null && message.hasOwnProperty("description"))
|
|
68618
|
+
writer.uint32(/* id 8, wireType 2 =*/66).string(message.description);
|
|
68619
|
+
if (message.durationRange != null && message.hasOwnProperty("durationRange"))
|
|
68620
|
+
writer.uint32(/* id 9, wireType 2 =*/74).string(message.durationRange);
|
|
68621
|
+
if (message.teaser != null && message.hasOwnProperty("teaser"))
|
|
68622
|
+
writer.uint32(/* id 10, wireType 2 =*/82).string(message.teaser);
|
|
68561
68623
|
return writer;
|
|
68562
68624
|
};
|
|
68563
68625
|
|
|
@@ -68617,6 +68679,15 @@ $root.Translation = (function() {
|
|
|
68617
68679
|
message.tags = [];
|
|
68618
68680
|
message.tags.push($root.Tag.decode(reader, reader.uint32()));
|
|
68619
68681
|
break;
|
|
68682
|
+
case 8:
|
|
68683
|
+
message.description = reader.string();
|
|
68684
|
+
break;
|
|
68685
|
+
case 9:
|
|
68686
|
+
message.durationRange = reader.string();
|
|
68687
|
+
break;
|
|
68688
|
+
case 10:
|
|
68689
|
+
message.teaser = reader.string();
|
|
68690
|
+
break;
|
|
68620
68691
|
default:
|
|
68621
68692
|
reader.skipType(tag & 7);
|
|
68622
68693
|
break;
|
|
@@ -68685,6 +68756,15 @@ $root.Translation = (function() {
|
|
|
68685
68756
|
return "tags." + error;
|
|
68686
68757
|
}
|
|
68687
68758
|
}
|
|
68759
|
+
if (message.description != null && message.hasOwnProperty("description"))
|
|
68760
|
+
if (!$util.isString(message.description))
|
|
68761
|
+
return "description: string expected";
|
|
68762
|
+
if (message.durationRange != null && message.hasOwnProperty("durationRange"))
|
|
68763
|
+
if (!$util.isString(message.durationRange))
|
|
68764
|
+
return "durationRange: string expected";
|
|
68765
|
+
if (message.teaser != null && message.hasOwnProperty("teaser"))
|
|
68766
|
+
if (!$util.isString(message.teaser))
|
|
68767
|
+
return "teaser: string expected";
|
|
68688
68768
|
return null;
|
|
68689
68769
|
};
|
|
68690
68770
|
|
|
@@ -68730,6 +68810,12 @@ $root.Translation = (function() {
|
|
|
68730
68810
|
message.tags[i] = $root.Tag.fromObject(object.tags[i]);
|
|
68731
68811
|
}
|
|
68732
68812
|
}
|
|
68813
|
+
if (object.description != null)
|
|
68814
|
+
message.description = String(object.description);
|
|
68815
|
+
if (object.durationRange != null)
|
|
68816
|
+
message.durationRange = String(object.durationRange);
|
|
68817
|
+
if (object.teaser != null)
|
|
68818
|
+
message.teaser = String(object.teaser);
|
|
68733
68819
|
return message;
|
|
68734
68820
|
};
|
|
68735
68821
|
|
|
@@ -68756,6 +68842,9 @@ $root.Translation = (function() {
|
|
|
68756
68842
|
object.bodyText = "";
|
|
68757
68843
|
object.subtext = "";
|
|
68758
68844
|
object.subtextSecondary = "";
|
|
68845
|
+
object.description = "";
|
|
68846
|
+
object.durationRange = "";
|
|
68847
|
+
object.teaser = "";
|
|
68759
68848
|
}
|
|
68760
68849
|
if (message.formattedContentTypeDisplayValue != null && message.hasOwnProperty("formattedContentTypeDisplayValue"))
|
|
68761
68850
|
object.formattedContentTypeDisplayValue = message.formattedContentTypeDisplayValue;
|
|
@@ -68777,6 +68866,12 @@ $root.Translation = (function() {
|
|
|
68777
68866
|
for (var j = 0; j < message.tags.length; ++j)
|
|
68778
68867
|
object.tags[j] = $root.Tag.toObject(message.tags[j], options);
|
|
68779
68868
|
}
|
|
68869
|
+
if (message.description != null && message.hasOwnProperty("description"))
|
|
68870
|
+
object.description = message.description;
|
|
68871
|
+
if (message.durationRange != null && message.hasOwnProperty("durationRange"))
|
|
68872
|
+
object.durationRange = message.durationRange;
|
|
68873
|
+
if (message.teaser != null && message.hasOwnProperty("teaser"))
|
|
68874
|
+
object.teaser = message.teaser;
|
|
68780
68875
|
return object;
|
|
68781
68876
|
};
|
|
68782
68877
|
|
package/package.json
CHANGED