@headspace/protos-events 1.96.0 → 1.98.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 +405 -399
- package/lib/index.js +36 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -21019,6 +21019,7 @@ $root.SubscriptionCancelled = (function() {
|
|
|
21019
21019
|
* @property {subscription.CancellationType|null} [cancellationType] SubscriptionCancelled cancellationType
|
|
21020
21020
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionCancelled subscriptionState
|
|
21021
21021
|
* @property {Array.<subscription.SubscriptionLabels>|null} [labels] SubscriptionCancelled labels
|
|
21022
|
+
* @property {number|Long|null} [renewalCount] SubscriptionCancelled renewalCount
|
|
21022
21023
|
*/
|
|
21023
21024
|
|
|
21024
21025
|
/**
|
|
@@ -21149,6 +21150,14 @@ $root.SubscriptionCancelled = (function() {
|
|
|
21149
21150
|
*/
|
|
21150
21151
|
SubscriptionCancelled.prototype.labels = $util.emptyArray;
|
|
21151
21152
|
|
|
21153
|
+
/**
|
|
21154
|
+
* SubscriptionCancelled renewalCount.
|
|
21155
|
+
* @member {number|Long} renewalCount
|
|
21156
|
+
* @memberof SubscriptionCancelled
|
|
21157
|
+
* @instance
|
|
21158
|
+
*/
|
|
21159
|
+
SubscriptionCancelled.prototype.renewalCount = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
21160
|
+
|
|
21152
21161
|
/**
|
|
21153
21162
|
* Creates a new SubscriptionCancelled instance using the specified properties.
|
|
21154
21163
|
* @function create
|
|
@@ -21205,6 +21214,8 @@ $root.SubscriptionCancelled = (function() {
|
|
|
21205
21214
|
writer.int32(message.labels[i]);
|
|
21206
21215
|
writer.ldelim();
|
|
21207
21216
|
}
|
|
21217
|
+
if (message.renewalCount != null && message.hasOwnProperty("renewalCount"))
|
|
21218
|
+
writer.uint32(/* id 15, wireType 0 =*/120).uint64(message.renewalCount);
|
|
21208
21219
|
return writer;
|
|
21209
21220
|
};
|
|
21210
21221
|
|
|
@@ -21288,6 +21299,9 @@ $root.SubscriptionCancelled = (function() {
|
|
|
21288
21299
|
} else
|
|
21289
21300
|
message.labels.push(reader.int32());
|
|
21290
21301
|
break;
|
|
21302
|
+
case 15:
|
|
21303
|
+
message.renewalCount = reader.uint64();
|
|
21304
|
+
break;
|
|
21291
21305
|
default:
|
|
21292
21306
|
reader.skipType(tag & 7);
|
|
21293
21307
|
break;
|
|
@@ -21408,6 +21422,9 @@ $root.SubscriptionCancelled = (function() {
|
|
|
21408
21422
|
break;
|
|
21409
21423
|
}
|
|
21410
21424
|
}
|
|
21425
|
+
if (message.renewalCount != null && message.hasOwnProperty("renewalCount"))
|
|
21426
|
+
if (!$util.isInteger(message.renewalCount) && !(message.renewalCount && $util.isInteger(message.renewalCount.low) && $util.isInteger(message.renewalCount.high)))
|
|
21427
|
+
return "renewalCount: integer|Long expected";
|
|
21411
21428
|
return null;
|
|
21412
21429
|
};
|
|
21413
21430
|
|
|
@@ -21572,6 +21589,15 @@ $root.SubscriptionCancelled = (function() {
|
|
|
21572
21589
|
break;
|
|
21573
21590
|
}
|
|
21574
21591
|
}
|
|
21592
|
+
if (object.renewalCount != null)
|
|
21593
|
+
if ($util.Long)
|
|
21594
|
+
(message.renewalCount = $util.Long.fromValue(object.renewalCount)).unsigned = true;
|
|
21595
|
+
else if (typeof object.renewalCount === "string")
|
|
21596
|
+
message.renewalCount = parseInt(object.renewalCount, 10);
|
|
21597
|
+
else if (typeof object.renewalCount === "number")
|
|
21598
|
+
message.renewalCount = object.renewalCount;
|
|
21599
|
+
else if (typeof object.renewalCount === "object")
|
|
21600
|
+
message.renewalCount = new $util.LongBits(object.renewalCount.low >>> 0, object.renewalCount.high >>> 0).toNumber(true);
|
|
21575
21601
|
return message;
|
|
21576
21602
|
};
|
|
21577
21603
|
|
|
@@ -21620,6 +21646,11 @@ $root.SubscriptionCancelled = (function() {
|
|
|
21620
21646
|
object.plan = null;
|
|
21621
21647
|
object.cancellationType = options.enums === String ? "CT_UNKNOWN" : 0;
|
|
21622
21648
|
object.subscriptionState = options.enums === String ? "SUBSTATE_UNKNOWN" : 0;
|
|
21649
|
+
if ($util.Long) {
|
|
21650
|
+
var long = new $util.Long(0, 0, true);
|
|
21651
|
+
object.renewalCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
21652
|
+
} else
|
|
21653
|
+
object.renewalCount = options.longs === String ? "0" : 0;
|
|
21623
21654
|
}
|
|
21624
21655
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
21625
21656
|
object.id = message.id;
|
|
@@ -21664,6 +21695,11 @@ $root.SubscriptionCancelled = (function() {
|
|
|
21664
21695
|
for (var j = 0; j < message.labels.length; ++j)
|
|
21665
21696
|
object.labels[j] = options.enums === String ? $root.subscription.SubscriptionLabels[message.labels[j]] : message.labels[j];
|
|
21666
21697
|
}
|
|
21698
|
+
if (message.renewalCount != null && message.hasOwnProperty("renewalCount"))
|
|
21699
|
+
if (typeof message.renewalCount === "number")
|
|
21700
|
+
object.renewalCount = options.longs === String ? String(message.renewalCount) : message.renewalCount;
|
|
21701
|
+
else
|
|
21702
|
+
object.renewalCount = options.longs === String ? $util.Long.prototype.toString.call(message.renewalCount) : options.longs === Number ? new $util.LongBits(message.renewalCount.low >>> 0, message.renewalCount.high >>> 0).toNumber(true) : message.renewalCount;
|
|
21667
21703
|
return object;
|
|
21668
21704
|
};
|
|
21669
21705
|
|
package/package.json
CHANGED