@headspace/protos-events 1.821.0 → 1.823.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 +94 -1
- package/lib/index.js +552 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -67959,6 +67959,7 @@ $root.coaching = (function() {
|
|
|
67959
67959
|
* @property {boolean|null} [memberCancelled] ScheduledCoachingSession memberCancelled
|
|
67960
67960
|
* @property {number|Long|null} [coachEngagedAt] ScheduledCoachingSession coachEngagedAt
|
|
67961
67961
|
* @property {boolean|null} [coachCancelled] ScheduledCoachingSession coachCancelled
|
|
67962
|
+
* @property {number|null} [scheduledDuration] ScheduledCoachingSession scheduledDuration
|
|
67962
67963
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
67963
67964
|
*/
|
|
67964
67965
|
|
|
@@ -68157,6 +68158,23 @@ $root.coaching = (function() {
|
|
|
68157
68158
|
*/
|
|
68158
68159
|
ScheduledCoachingSession.prototype.coachCancelled = false;
|
|
68159
68160
|
|
|
68161
|
+
/**
|
|
68162
|
+
* ScheduledCoachingSession scheduledDuration.
|
|
68163
|
+
* @member {number|null|undefined} scheduledDuration
|
|
68164
|
+
* @memberof coaching.ScheduledCoachingSession
|
|
68165
|
+
* @instance
|
|
68166
|
+
*/
|
|
68167
|
+
ScheduledCoachingSession.prototype.scheduledDuration = null;
|
|
68168
|
+
|
|
68169
|
+
// OneOf field names bound to virtual getters and setters
|
|
68170
|
+
var $oneOfFields;
|
|
68171
|
+
|
|
68172
|
+
// Virtual OneOf for proto3 optional field
|
|
68173
|
+
Object.defineProperty(ScheduledCoachingSession.prototype, "_scheduledDuration", {
|
|
68174
|
+
get: $util.oneOfGetter($oneOfFields = ["scheduledDuration"]),
|
|
68175
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
68176
|
+
});
|
|
68177
|
+
|
|
68160
68178
|
/**
|
|
68161
68179
|
* Creates a new ScheduledCoachingSession instance using the specified properties.
|
|
68162
68180
|
* @function create
|
|
@@ -68223,6 +68241,8 @@ $root.coaching = (function() {
|
|
|
68223
68241
|
writer.uint32(/* id 18, wireType 0 =*/144).uint64(message.coachEngagedAt);
|
|
68224
68242
|
if (message.coachCancelled != null && Object.hasOwnProperty.call(message, "coachCancelled"))
|
|
68225
68243
|
writer.uint32(/* id 19, wireType 0 =*/152).bool(message.coachCancelled);
|
|
68244
|
+
if (message.scheduledDuration != null && Object.hasOwnProperty.call(message, "scheduledDuration"))
|
|
68245
|
+
writer.uint32(/* id 20, wireType 0 =*/160).uint32(message.scheduledDuration);
|
|
68226
68246
|
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
68227
68247
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
68228
68248
|
writer.raw(message.$unknowns[i]);
|
|
@@ -68441,6 +68461,13 @@ $root.coaching = (function() {
|
|
|
68441
68461
|
delete message.coachCancelled;
|
|
68442
68462
|
continue;
|
|
68443
68463
|
}
|
|
68464
|
+
case 20: {
|
|
68465
|
+
if (wireType !== 0)
|
|
68466
|
+
break;
|
|
68467
|
+
message.scheduledDuration = reader.uint32();
|
|
68468
|
+
message._scheduledDuration = "scheduledDuration";
|
|
68469
|
+
continue;
|
|
68470
|
+
}
|
|
68444
68471
|
}
|
|
68445
68472
|
reader.skipType(wireType, _depth, tag);
|
|
68446
68473
|
$util.makeProp(message, "$unknowns", false);
|
|
@@ -68482,6 +68509,7 @@ $root.coaching = (function() {
|
|
|
68482
68509
|
_depth = 0;
|
|
68483
68510
|
if (_depth > $util.recursionLimit)
|
|
68484
68511
|
return "max depth exceeded";
|
|
68512
|
+
var properties = {};
|
|
68485
68513
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
68486
68514
|
if (!$util.isString(message.id))
|
|
68487
68515
|
return "id: string expected";
|
|
@@ -68552,6 +68580,11 @@ $root.coaching = (function() {
|
|
|
68552
68580
|
if (message.coachCancelled != null && message.hasOwnProperty("coachCancelled"))
|
|
68553
68581
|
if (typeof message.coachCancelled !== "boolean")
|
|
68554
68582
|
return "coachCancelled: boolean expected";
|
|
68583
|
+
if (message.scheduledDuration != null && message.hasOwnProperty("scheduledDuration")) {
|
|
68584
|
+
properties._scheduledDuration = 1;
|
|
68585
|
+
if (!$util.isInteger(message.scheduledDuration))
|
|
68586
|
+
return "scheduledDuration: integer expected";
|
|
68587
|
+
}
|
|
68555
68588
|
return null;
|
|
68556
68589
|
};
|
|
68557
68590
|
|
|
@@ -68724,6 +68757,8 @@ $root.coaching = (function() {
|
|
|
68724
68757
|
if (object.coachCancelled != null)
|
|
68725
68758
|
if (object.coachCancelled)
|
|
68726
68759
|
message.coachCancelled = Boolean(object.coachCancelled);
|
|
68760
|
+
if (object.scheduledDuration != null)
|
|
68761
|
+
message.scheduledDuration = object.scheduledDuration >>> 0;
|
|
68727
68762
|
return message;
|
|
68728
68763
|
};
|
|
68729
68764
|
|
|
@@ -68871,6 +68906,11 @@ $root.coaching = (function() {
|
|
|
68871
68906
|
object.coachEngagedAt = options.longs === String ? $util.Long.prototype.toString.call(message.coachEngagedAt) : options.longs === Number ? new $util.LongBits(message.coachEngagedAt.low >>> 0, message.coachEngagedAt.high >>> 0).toNumber(true) : message.coachEngagedAt;
|
|
68872
68907
|
if (message.coachCancelled != null && message.hasOwnProperty("coachCancelled"))
|
|
68873
68908
|
object.coachCancelled = message.coachCancelled;
|
|
68909
|
+
if (message.scheduledDuration != null && message.hasOwnProperty("scheduledDuration")) {
|
|
68910
|
+
object.scheduledDuration = message.scheduledDuration;
|
|
68911
|
+
if (options.oneofs)
|
|
68912
|
+
object._scheduledDuration = "scheduledDuration";
|
|
68913
|
+
}
|
|
68874
68914
|
return object;
|
|
68875
68915
|
};
|
|
68876
68916
|
|
|
@@ -77664,6 +77704,11 @@ $root.CoachingSessionCompleted = (function() {
|
|
|
77664
77704
|
* @property {string|null} [engagementTimestampIso] CoachingSessionCompleted engagementTimestampIso
|
|
77665
77705
|
* @property {number|Long|null} [endTimestamp] CoachingSessionCompleted endTimestamp
|
|
77666
77706
|
* @property {string|null} [endTimestampIso] CoachingSessionCompleted endTimestampIso
|
|
77707
|
+
* @property {number|Long|null} [scheduledStartTimestamp] CoachingSessionCompleted scheduledStartTimestamp
|
|
77708
|
+
* @property {string|null} [scheduledStartTimestampIso] CoachingSessionCompleted scheduledStartTimestampIso
|
|
77709
|
+
* @property {number|Long|null} [scheduledEndTimestamp] CoachingSessionCompleted scheduledEndTimestamp
|
|
77710
|
+
* @property {string|null} [scheduledEndTimestampIso] CoachingSessionCompleted scheduledEndTimestampIso
|
|
77711
|
+
* @property {number|null} [scheduledDuration] CoachingSessionCompleted scheduledDuration
|
|
77667
77712
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
77668
77713
|
*/
|
|
77669
77714
|
|
|
@@ -77775,6 +77820,46 @@ $root.CoachingSessionCompleted = (function() {
|
|
|
77775
77820
|
*/
|
|
77776
77821
|
CoachingSessionCompleted.prototype.endTimestampIso = null;
|
|
77777
77822
|
|
|
77823
|
+
/**
|
|
77824
|
+
* CoachingSessionCompleted scheduledStartTimestamp.
|
|
77825
|
+
* @member {number|Long|null|undefined} scheduledStartTimestamp
|
|
77826
|
+
* @memberof CoachingSessionCompleted
|
|
77827
|
+
* @instance
|
|
77828
|
+
*/
|
|
77829
|
+
CoachingSessionCompleted.prototype.scheduledStartTimestamp = null;
|
|
77830
|
+
|
|
77831
|
+
/**
|
|
77832
|
+
* CoachingSessionCompleted scheduledStartTimestampIso.
|
|
77833
|
+
* @member {string|null|undefined} scheduledStartTimestampIso
|
|
77834
|
+
* @memberof CoachingSessionCompleted
|
|
77835
|
+
* @instance
|
|
77836
|
+
*/
|
|
77837
|
+
CoachingSessionCompleted.prototype.scheduledStartTimestampIso = null;
|
|
77838
|
+
|
|
77839
|
+
/**
|
|
77840
|
+
* CoachingSessionCompleted scheduledEndTimestamp.
|
|
77841
|
+
* @member {number|Long|null|undefined} scheduledEndTimestamp
|
|
77842
|
+
* @memberof CoachingSessionCompleted
|
|
77843
|
+
* @instance
|
|
77844
|
+
*/
|
|
77845
|
+
CoachingSessionCompleted.prototype.scheduledEndTimestamp = null;
|
|
77846
|
+
|
|
77847
|
+
/**
|
|
77848
|
+
* CoachingSessionCompleted scheduledEndTimestampIso.
|
|
77849
|
+
* @member {string|null|undefined} scheduledEndTimestampIso
|
|
77850
|
+
* @memberof CoachingSessionCompleted
|
|
77851
|
+
* @instance
|
|
77852
|
+
*/
|
|
77853
|
+
CoachingSessionCompleted.prototype.scheduledEndTimestampIso = null;
|
|
77854
|
+
|
|
77855
|
+
/**
|
|
77856
|
+
* CoachingSessionCompleted scheduledDuration.
|
|
77857
|
+
* @member {number|null|undefined} scheduledDuration
|
|
77858
|
+
* @memberof CoachingSessionCompleted
|
|
77859
|
+
* @instance
|
|
77860
|
+
*/
|
|
77861
|
+
CoachingSessionCompleted.prototype.scheduledDuration = null;
|
|
77862
|
+
|
|
77778
77863
|
// OneOf field names bound to virtual getters and setters
|
|
77779
77864
|
var $oneOfFields;
|
|
77780
77865
|
|
|
@@ -77820,6 +77905,36 @@ $root.CoachingSessionCompleted = (function() {
|
|
|
77820
77905
|
set: $util.oneOfSetter($oneOfFields)
|
|
77821
77906
|
});
|
|
77822
77907
|
|
|
77908
|
+
// Virtual OneOf for proto3 optional field
|
|
77909
|
+
Object.defineProperty(CoachingSessionCompleted.prototype, "_scheduledStartTimestamp", {
|
|
77910
|
+
get: $util.oneOfGetter($oneOfFields = ["scheduledStartTimestamp"]),
|
|
77911
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
77912
|
+
});
|
|
77913
|
+
|
|
77914
|
+
// Virtual OneOf for proto3 optional field
|
|
77915
|
+
Object.defineProperty(CoachingSessionCompleted.prototype, "_scheduledStartTimestampIso", {
|
|
77916
|
+
get: $util.oneOfGetter($oneOfFields = ["scheduledStartTimestampIso"]),
|
|
77917
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
77918
|
+
});
|
|
77919
|
+
|
|
77920
|
+
// Virtual OneOf for proto3 optional field
|
|
77921
|
+
Object.defineProperty(CoachingSessionCompleted.prototype, "_scheduledEndTimestamp", {
|
|
77922
|
+
get: $util.oneOfGetter($oneOfFields = ["scheduledEndTimestamp"]),
|
|
77923
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
77924
|
+
});
|
|
77925
|
+
|
|
77926
|
+
// Virtual OneOf for proto3 optional field
|
|
77927
|
+
Object.defineProperty(CoachingSessionCompleted.prototype, "_scheduledEndTimestampIso", {
|
|
77928
|
+
get: $util.oneOfGetter($oneOfFields = ["scheduledEndTimestampIso"]),
|
|
77929
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
77930
|
+
});
|
|
77931
|
+
|
|
77932
|
+
// Virtual OneOf for proto3 optional field
|
|
77933
|
+
Object.defineProperty(CoachingSessionCompleted.prototype, "_scheduledDuration", {
|
|
77934
|
+
get: $util.oneOfGetter($oneOfFields = ["scheduledDuration"]),
|
|
77935
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
77936
|
+
});
|
|
77937
|
+
|
|
77823
77938
|
/**
|
|
77824
77939
|
* Creates a new CoachingSessionCompleted instance using the specified properties.
|
|
77825
77940
|
* @function create
|
|
@@ -77868,6 +77983,16 @@ $root.CoachingSessionCompleted = (function() {
|
|
|
77868
77983
|
writer.uint32(/* id 9, wireType 0 =*/72).uint64(message.endTimestamp);
|
|
77869
77984
|
if (message.endTimestampIso != null && Object.hasOwnProperty.call(message, "endTimestampIso"))
|
|
77870
77985
|
writer.uint32(/* id 10, wireType 2 =*/82).string(message.endTimestampIso);
|
|
77986
|
+
if (message.scheduledStartTimestamp != null && Object.hasOwnProperty.call(message, "scheduledStartTimestamp"))
|
|
77987
|
+
writer.uint32(/* id 11, wireType 0 =*/88).uint64(message.scheduledStartTimestamp);
|
|
77988
|
+
if (message.scheduledStartTimestampIso != null && Object.hasOwnProperty.call(message, "scheduledStartTimestampIso"))
|
|
77989
|
+
writer.uint32(/* id 12, wireType 2 =*/98).string(message.scheduledStartTimestampIso);
|
|
77990
|
+
if (message.scheduledEndTimestamp != null && Object.hasOwnProperty.call(message, "scheduledEndTimestamp"))
|
|
77991
|
+
writer.uint32(/* id 13, wireType 0 =*/104).uint64(message.scheduledEndTimestamp);
|
|
77992
|
+
if (message.scheduledEndTimestampIso != null && Object.hasOwnProperty.call(message, "scheduledEndTimestampIso"))
|
|
77993
|
+
writer.uint32(/* id 14, wireType 2 =*/114).string(message.scheduledEndTimestampIso);
|
|
77994
|
+
if (message.scheduledDuration != null && Object.hasOwnProperty.call(message, "scheduledDuration"))
|
|
77995
|
+
writer.uint32(/* id 15, wireType 0 =*/120).uint32(message.scheduledDuration);
|
|
77871
77996
|
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
77872
77997
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
77873
77998
|
writer.raw(message.$unknowns[i]);
|
|
@@ -77988,6 +78113,41 @@ $root.CoachingSessionCompleted = (function() {
|
|
|
77988
78113
|
message._endTimestampIso = "endTimestampIso";
|
|
77989
78114
|
continue;
|
|
77990
78115
|
}
|
|
78116
|
+
case 11: {
|
|
78117
|
+
if (wireType !== 0)
|
|
78118
|
+
break;
|
|
78119
|
+
message.scheduledStartTimestamp = reader.uint64();
|
|
78120
|
+
message._scheduledStartTimestamp = "scheduledStartTimestamp";
|
|
78121
|
+
continue;
|
|
78122
|
+
}
|
|
78123
|
+
case 12: {
|
|
78124
|
+
if (wireType !== 2)
|
|
78125
|
+
break;
|
|
78126
|
+
message.scheduledStartTimestampIso = reader.string();
|
|
78127
|
+
message._scheduledStartTimestampIso = "scheduledStartTimestampIso";
|
|
78128
|
+
continue;
|
|
78129
|
+
}
|
|
78130
|
+
case 13: {
|
|
78131
|
+
if (wireType !== 0)
|
|
78132
|
+
break;
|
|
78133
|
+
message.scheduledEndTimestamp = reader.uint64();
|
|
78134
|
+
message._scheduledEndTimestamp = "scheduledEndTimestamp";
|
|
78135
|
+
continue;
|
|
78136
|
+
}
|
|
78137
|
+
case 14: {
|
|
78138
|
+
if (wireType !== 2)
|
|
78139
|
+
break;
|
|
78140
|
+
message.scheduledEndTimestampIso = reader.string();
|
|
78141
|
+
message._scheduledEndTimestampIso = "scheduledEndTimestampIso";
|
|
78142
|
+
continue;
|
|
78143
|
+
}
|
|
78144
|
+
case 15: {
|
|
78145
|
+
if (wireType !== 0)
|
|
78146
|
+
break;
|
|
78147
|
+
message.scheduledDuration = reader.uint32();
|
|
78148
|
+
message._scheduledDuration = "scheduledDuration";
|
|
78149
|
+
continue;
|
|
78150
|
+
}
|
|
77991
78151
|
}
|
|
77992
78152
|
reader.skipType(wireType, _depth, tag);
|
|
77993
78153
|
$util.makeProp(message, "$unknowns", false);
|
|
@@ -78082,6 +78242,31 @@ $root.CoachingSessionCompleted = (function() {
|
|
|
78082
78242
|
if (!$util.isString(message.endTimestampIso))
|
|
78083
78243
|
return "endTimestampIso: string expected";
|
|
78084
78244
|
}
|
|
78245
|
+
if (message.scheduledStartTimestamp != null && message.hasOwnProperty("scheduledStartTimestamp")) {
|
|
78246
|
+
properties._scheduledStartTimestamp = 1;
|
|
78247
|
+
if (!$util.isInteger(message.scheduledStartTimestamp) && !(message.scheduledStartTimestamp && $util.isInteger(message.scheduledStartTimestamp.low) && $util.isInteger(message.scheduledStartTimestamp.high)))
|
|
78248
|
+
return "scheduledStartTimestamp: integer|Long expected";
|
|
78249
|
+
}
|
|
78250
|
+
if (message.scheduledStartTimestampIso != null && message.hasOwnProperty("scheduledStartTimestampIso")) {
|
|
78251
|
+
properties._scheduledStartTimestampIso = 1;
|
|
78252
|
+
if (!$util.isString(message.scheduledStartTimestampIso))
|
|
78253
|
+
return "scheduledStartTimestampIso: string expected";
|
|
78254
|
+
}
|
|
78255
|
+
if (message.scheduledEndTimestamp != null && message.hasOwnProperty("scheduledEndTimestamp")) {
|
|
78256
|
+
properties._scheduledEndTimestamp = 1;
|
|
78257
|
+
if (!$util.isInteger(message.scheduledEndTimestamp) && !(message.scheduledEndTimestamp && $util.isInteger(message.scheduledEndTimestamp.low) && $util.isInteger(message.scheduledEndTimestamp.high)))
|
|
78258
|
+
return "scheduledEndTimestamp: integer|Long expected";
|
|
78259
|
+
}
|
|
78260
|
+
if (message.scheduledEndTimestampIso != null && message.hasOwnProperty("scheduledEndTimestampIso")) {
|
|
78261
|
+
properties._scheduledEndTimestampIso = 1;
|
|
78262
|
+
if (!$util.isString(message.scheduledEndTimestampIso))
|
|
78263
|
+
return "scheduledEndTimestampIso: string expected";
|
|
78264
|
+
}
|
|
78265
|
+
if (message.scheduledDuration != null && message.hasOwnProperty("scheduledDuration")) {
|
|
78266
|
+
properties._scheduledDuration = 1;
|
|
78267
|
+
if (!$util.isInteger(message.scheduledDuration))
|
|
78268
|
+
return "scheduledDuration: integer expected";
|
|
78269
|
+
}
|
|
78085
78270
|
return null;
|
|
78086
78271
|
};
|
|
78087
78272
|
|
|
@@ -78165,6 +78350,30 @@ $root.CoachingSessionCompleted = (function() {
|
|
|
78165
78350
|
message.endTimestamp = new $util.LongBits(object.endTimestamp.low >>> 0, object.endTimestamp.high >>> 0).toNumber(true);
|
|
78166
78351
|
if (object.endTimestampIso != null)
|
|
78167
78352
|
message.endTimestampIso = String(object.endTimestampIso);
|
|
78353
|
+
if (object.scheduledStartTimestamp != null)
|
|
78354
|
+
if ($util.Long)
|
|
78355
|
+
(message.scheduledStartTimestamp = $util.Long.fromValue(object.scheduledStartTimestamp)).unsigned = true;
|
|
78356
|
+
else if (typeof object.scheduledStartTimestamp === "string")
|
|
78357
|
+
message.scheduledStartTimestamp = parseInt(object.scheduledStartTimestamp, 10);
|
|
78358
|
+
else if (typeof object.scheduledStartTimestamp === "number")
|
|
78359
|
+
message.scheduledStartTimestamp = object.scheduledStartTimestamp;
|
|
78360
|
+
else if (typeof object.scheduledStartTimestamp === "object")
|
|
78361
|
+
message.scheduledStartTimestamp = new $util.LongBits(object.scheduledStartTimestamp.low >>> 0, object.scheduledStartTimestamp.high >>> 0).toNumber(true);
|
|
78362
|
+
if (object.scheduledStartTimestampIso != null)
|
|
78363
|
+
message.scheduledStartTimestampIso = String(object.scheduledStartTimestampIso);
|
|
78364
|
+
if (object.scheduledEndTimestamp != null)
|
|
78365
|
+
if ($util.Long)
|
|
78366
|
+
(message.scheduledEndTimestamp = $util.Long.fromValue(object.scheduledEndTimestamp)).unsigned = true;
|
|
78367
|
+
else if (typeof object.scheduledEndTimestamp === "string")
|
|
78368
|
+
message.scheduledEndTimestamp = parseInt(object.scheduledEndTimestamp, 10);
|
|
78369
|
+
else if (typeof object.scheduledEndTimestamp === "number")
|
|
78370
|
+
message.scheduledEndTimestamp = object.scheduledEndTimestamp;
|
|
78371
|
+
else if (typeof object.scheduledEndTimestamp === "object")
|
|
78372
|
+
message.scheduledEndTimestamp = new $util.LongBits(object.scheduledEndTimestamp.low >>> 0, object.scheduledEndTimestamp.high >>> 0).toNumber(true);
|
|
78373
|
+
if (object.scheduledEndTimestampIso != null)
|
|
78374
|
+
message.scheduledEndTimestampIso = String(object.scheduledEndTimestampIso);
|
|
78375
|
+
if (object.scheduledDuration != null)
|
|
78376
|
+
message.scheduledDuration = object.scheduledDuration >>> 0;
|
|
78168
78377
|
return message;
|
|
78169
78378
|
};
|
|
78170
78379
|
|
|
@@ -78242,6 +78451,41 @@ $root.CoachingSessionCompleted = (function() {
|
|
|
78242
78451
|
if (options.oneofs)
|
|
78243
78452
|
object._endTimestampIso = "endTimestampIso";
|
|
78244
78453
|
}
|
|
78454
|
+
if (message.scheduledStartTimestamp != null && message.hasOwnProperty("scheduledStartTimestamp")) {
|
|
78455
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
78456
|
+
object.scheduledStartTimestamp = typeof message.scheduledStartTimestamp === "number" ? BigInt(message.scheduledStartTimestamp) : $util.Long.fromBits(message.scheduledStartTimestamp.low >>> 0, message.scheduledStartTimestamp.high >>> 0, true).toBigInt();
|
|
78457
|
+
else if (typeof message.scheduledStartTimestamp === "number")
|
|
78458
|
+
object.scheduledStartTimestamp = options.longs === String ? String(message.scheduledStartTimestamp) : message.scheduledStartTimestamp;
|
|
78459
|
+
else
|
|
78460
|
+
object.scheduledStartTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.scheduledStartTimestamp) : options.longs === Number ? new $util.LongBits(message.scheduledStartTimestamp.low >>> 0, message.scheduledStartTimestamp.high >>> 0).toNumber(true) : message.scheduledStartTimestamp;
|
|
78461
|
+
if (options.oneofs)
|
|
78462
|
+
object._scheduledStartTimestamp = "scheduledStartTimestamp";
|
|
78463
|
+
}
|
|
78464
|
+
if (message.scheduledStartTimestampIso != null && message.hasOwnProperty("scheduledStartTimestampIso")) {
|
|
78465
|
+
object.scheduledStartTimestampIso = message.scheduledStartTimestampIso;
|
|
78466
|
+
if (options.oneofs)
|
|
78467
|
+
object._scheduledStartTimestampIso = "scheduledStartTimestampIso";
|
|
78468
|
+
}
|
|
78469
|
+
if (message.scheduledEndTimestamp != null && message.hasOwnProperty("scheduledEndTimestamp")) {
|
|
78470
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
78471
|
+
object.scheduledEndTimestamp = typeof message.scheduledEndTimestamp === "number" ? BigInt(message.scheduledEndTimestamp) : $util.Long.fromBits(message.scheduledEndTimestamp.low >>> 0, message.scheduledEndTimestamp.high >>> 0, true).toBigInt();
|
|
78472
|
+
else if (typeof message.scheduledEndTimestamp === "number")
|
|
78473
|
+
object.scheduledEndTimestamp = options.longs === String ? String(message.scheduledEndTimestamp) : message.scheduledEndTimestamp;
|
|
78474
|
+
else
|
|
78475
|
+
object.scheduledEndTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.scheduledEndTimestamp) : options.longs === Number ? new $util.LongBits(message.scheduledEndTimestamp.low >>> 0, message.scheduledEndTimestamp.high >>> 0).toNumber(true) : message.scheduledEndTimestamp;
|
|
78476
|
+
if (options.oneofs)
|
|
78477
|
+
object._scheduledEndTimestamp = "scheduledEndTimestamp";
|
|
78478
|
+
}
|
|
78479
|
+
if (message.scheduledEndTimestampIso != null && message.hasOwnProperty("scheduledEndTimestampIso")) {
|
|
78480
|
+
object.scheduledEndTimestampIso = message.scheduledEndTimestampIso;
|
|
78481
|
+
if (options.oneofs)
|
|
78482
|
+
object._scheduledEndTimestampIso = "scheduledEndTimestampIso";
|
|
78483
|
+
}
|
|
78484
|
+
if (message.scheduledDuration != null && message.hasOwnProperty("scheduledDuration")) {
|
|
78485
|
+
object.scheduledDuration = message.scheduledDuration;
|
|
78486
|
+
if (options.oneofs)
|
|
78487
|
+
object._scheduledDuration = "scheduledDuration";
|
|
78488
|
+
}
|
|
78245
78489
|
return object;
|
|
78246
78490
|
};
|
|
78247
78491
|
|
|
@@ -285179,6 +285423,7 @@ $root.SubscriptionCreated = (function() {
|
|
|
285179
285423
|
* @property {Array.<subscription.Term.$Properties>|null} [terms] SubscriptionCreated terms
|
|
285180
285424
|
* @property {subscription.SubscriptionMembership|null} [membership] SubscriptionCreated membership
|
|
285181
285425
|
* @property {subscription.SubscriptionProductSku.$Properties|null} [productSku] SubscriptionCreated productSku
|
|
285426
|
+
* @property {string|null} [externalId] SubscriptionCreated externalId
|
|
285182
285427
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
285183
285428
|
*/
|
|
285184
285429
|
|
|
@@ -285343,6 +285588,14 @@ $root.SubscriptionCreated = (function() {
|
|
|
285343
285588
|
*/
|
|
285344
285589
|
SubscriptionCreated.prototype.productSku = null;
|
|
285345
285590
|
|
|
285591
|
+
/**
|
|
285592
|
+
* SubscriptionCreated externalId.
|
|
285593
|
+
* @member {string} externalId
|
|
285594
|
+
* @memberof SubscriptionCreated
|
|
285595
|
+
* @instance
|
|
285596
|
+
*/
|
|
285597
|
+
SubscriptionCreated.prototype.externalId = "";
|
|
285598
|
+
|
|
285346
285599
|
/**
|
|
285347
285600
|
* Creates a new SubscriptionCreated instance using the specified properties.
|
|
285348
285601
|
* @function create
|
|
@@ -285408,6 +285661,8 @@ $root.SubscriptionCreated = (function() {
|
|
|
285408
285661
|
writer.uint32(/* id 15, wireType 0 =*/120).int32(message.membership);
|
|
285409
285662
|
if (message.productSku != null && Object.hasOwnProperty.call(message, "productSku"))
|
|
285410
285663
|
$root.subscription.SubscriptionProductSku.encode(message.productSku, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
|
|
285664
|
+
if (message.externalId != null && Object.hasOwnProperty.call(message, "externalId"))
|
|
285665
|
+
writer.uint32(/* id 18, wireType 2 =*/146).string(message.externalId);
|
|
285411
285666
|
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
285412
285667
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
285413
285668
|
writer.raw(message.$unknowns[i]);
|
|
@@ -285599,6 +285854,15 @@ $root.SubscriptionCreated = (function() {
|
|
|
285599
285854
|
message.productSku = $root.subscription.SubscriptionProductSku.decode(reader, reader.uint32(), undefined, _depth + 1, message.productSku);
|
|
285600
285855
|
continue;
|
|
285601
285856
|
}
|
|
285857
|
+
case 18: {
|
|
285858
|
+
if (wireType !== 2)
|
|
285859
|
+
break;
|
|
285860
|
+
if ((value = reader.string()).length)
|
|
285861
|
+
message.externalId = value;
|
|
285862
|
+
else
|
|
285863
|
+
delete message.externalId;
|
|
285864
|
+
continue;
|
|
285865
|
+
}
|
|
285602
285866
|
}
|
|
285603
285867
|
reader.skipType(wireType, _depth, tag);
|
|
285604
285868
|
$util.makeProp(message, "$unknowns", false);
|
|
@@ -285674,6 +285938,7 @@ $root.SubscriptionCreated = (function() {
|
|
|
285674
285938
|
case 6:
|
|
285675
285939
|
case 7:
|
|
285676
285940
|
case 8:
|
|
285941
|
+
case 9:
|
|
285677
285942
|
break;
|
|
285678
285943
|
}
|
|
285679
285944
|
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
@@ -285741,6 +286006,9 @@ $root.SubscriptionCreated = (function() {
|
|
|
285741
286006
|
if (error)
|
|
285742
286007
|
return "productSku." + error;
|
|
285743
286008
|
}
|
|
286009
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
286010
|
+
if (!$util.isString(message.externalId))
|
|
286011
|
+
return "externalId: string expected";
|
|
285744
286012
|
return null;
|
|
285745
286013
|
};
|
|
285746
286014
|
|
|
@@ -285853,6 +286121,10 @@ $root.SubscriptionCreated = (function() {
|
|
|
285853
286121
|
case 8:
|
|
285854
286122
|
message.platform = 8;
|
|
285855
286123
|
break;
|
|
286124
|
+
case "SUBSCRIPTION_PLATFORM_B2B_ORG_SUB":
|
|
286125
|
+
case 9:
|
|
286126
|
+
message.platform = 9;
|
|
286127
|
+
break;
|
|
285856
286128
|
}
|
|
285857
286129
|
if (object.autoRenewalStatus !== 0 && (typeof object.autoRenewalStatus !== "string" || $root.subscription.AutoRenewalStatus[object.autoRenewalStatus] !== 0))
|
|
285858
286130
|
switch (object.autoRenewalStatus) {
|
|
@@ -285977,6 +286249,9 @@ $root.SubscriptionCreated = (function() {
|
|
|
285977
286249
|
throw TypeError(".SubscriptionCreated.productSku: object expected");
|
|
285978
286250
|
message.productSku = $root.subscription.SubscriptionProductSku.fromObject(object.productSku, _depth + 1);
|
|
285979
286251
|
}
|
|
286252
|
+
if (object.externalId != null)
|
|
286253
|
+
if (typeof object.externalId !== "string" || object.externalId.length)
|
|
286254
|
+
message.externalId = String(object.externalId);
|
|
285980
286255
|
return message;
|
|
285981
286256
|
};
|
|
285982
286257
|
|
|
@@ -286028,6 +286303,7 @@ $root.SubscriptionCreated = (function() {
|
|
|
286028
286303
|
object.isQueuedSubscription = false;
|
|
286029
286304
|
object.membership = options.enums === String ? "PRIMARY" : 0;
|
|
286030
286305
|
object.productSku = null;
|
|
286306
|
+
object.externalId = "";
|
|
286031
286307
|
}
|
|
286032
286308
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
286033
286309
|
object.id = message.id;
|
|
@@ -286087,6 +286363,8 @@ $root.SubscriptionCreated = (function() {
|
|
|
286087
286363
|
object.membership = options.enums === String ? $root.subscription.SubscriptionMembership[message.membership] === undefined ? message.membership : $root.subscription.SubscriptionMembership[message.membership] : message.membership;
|
|
286088
286364
|
if (message.productSku != null && message.hasOwnProperty("productSku"))
|
|
286089
286365
|
object.productSku = $root.subscription.SubscriptionProductSku.toObject(message.productSku, options);
|
|
286366
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
286367
|
+
object.externalId = message.externalId;
|
|
286090
286368
|
return object;
|
|
286091
286369
|
};
|
|
286092
286370
|
|
|
@@ -286142,6 +286420,7 @@ $root.SubscriptionCancelled = (function() {
|
|
|
286142
286420
|
* @property {subscription.SubscriptionMembership|null} [membership] SubscriptionCancelled membership
|
|
286143
286421
|
* @property {subscription.SubscriptionProductSku.$Properties|null} [productSku] SubscriptionCancelled productSku
|
|
286144
286422
|
* @property {string|null} [cancellationReason] SubscriptionCancelled cancellationReason
|
|
286423
|
+
* @property {string|null} [externalId] SubscriptionCancelled externalId
|
|
286145
286424
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
286146
286425
|
*/
|
|
286147
286426
|
|
|
@@ -286330,6 +286609,14 @@ $root.SubscriptionCancelled = (function() {
|
|
|
286330
286609
|
*/
|
|
286331
286610
|
SubscriptionCancelled.prototype.cancellationReason = "";
|
|
286332
286611
|
|
|
286612
|
+
/**
|
|
286613
|
+
* SubscriptionCancelled externalId.
|
|
286614
|
+
* @member {string} externalId
|
|
286615
|
+
* @memberof SubscriptionCancelled
|
|
286616
|
+
* @instance
|
|
286617
|
+
*/
|
|
286618
|
+
SubscriptionCancelled.prototype.externalId = "";
|
|
286619
|
+
|
|
286333
286620
|
/**
|
|
286334
286621
|
* Creates a new SubscriptionCancelled instance using the specified properties.
|
|
286335
286622
|
* @function create
|
|
@@ -286401,6 +286688,8 @@ $root.SubscriptionCancelled = (function() {
|
|
|
286401
286688
|
$root.subscription.SubscriptionProductSku.encode(message.productSku, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
|
|
286402
286689
|
if (message.cancellationReason != null && Object.hasOwnProperty.call(message, "cancellationReason"))
|
|
286403
286690
|
writer.uint32(/* id 20, wireType 2 =*/162).string(message.cancellationReason);
|
|
286691
|
+
if (message.externalId != null && Object.hasOwnProperty.call(message, "externalId"))
|
|
286692
|
+
writer.uint32(/* id 21, wireType 2 =*/170).string(message.externalId);
|
|
286404
286693
|
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
286405
286694
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
286406
286695
|
writer.raw(message.$unknowns[i]);
|
|
@@ -286616,6 +286905,15 @@ $root.SubscriptionCancelled = (function() {
|
|
|
286616
286905
|
delete message.cancellationReason;
|
|
286617
286906
|
continue;
|
|
286618
286907
|
}
|
|
286908
|
+
case 21: {
|
|
286909
|
+
if (wireType !== 2)
|
|
286910
|
+
break;
|
|
286911
|
+
if ((value = reader.string()).length)
|
|
286912
|
+
message.externalId = value;
|
|
286913
|
+
else
|
|
286914
|
+
delete message.externalId;
|
|
286915
|
+
continue;
|
|
286916
|
+
}
|
|
286619
286917
|
}
|
|
286620
286918
|
reader.skipType(wireType, _depth, tag);
|
|
286621
286919
|
$util.makeProp(message, "$unknowns", false);
|
|
@@ -286696,6 +286994,7 @@ $root.SubscriptionCancelled = (function() {
|
|
|
286696
286994
|
case 6:
|
|
286697
286995
|
case 7:
|
|
286698
286996
|
case 8:
|
|
286997
|
+
case 9:
|
|
286699
286998
|
break;
|
|
286700
286999
|
}
|
|
286701
287000
|
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
@@ -286775,6 +287074,9 @@ $root.SubscriptionCancelled = (function() {
|
|
|
286775
287074
|
if (message.cancellationReason != null && message.hasOwnProperty("cancellationReason"))
|
|
286776
287075
|
if (!$util.isString(message.cancellationReason))
|
|
286777
287076
|
return "cancellationReason: string expected";
|
|
287077
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
287078
|
+
if (!$util.isString(message.externalId))
|
|
287079
|
+
return "externalId: string expected";
|
|
286778
287080
|
return null;
|
|
286779
287081
|
};
|
|
286780
287082
|
|
|
@@ -286892,6 +287194,10 @@ $root.SubscriptionCancelled = (function() {
|
|
|
286892
287194
|
case 8:
|
|
286893
287195
|
message.platform = 8;
|
|
286894
287196
|
break;
|
|
287197
|
+
case "SUBSCRIPTION_PLATFORM_B2B_ORG_SUB":
|
|
287198
|
+
case 9:
|
|
287199
|
+
message.platform = 9;
|
|
287200
|
+
break;
|
|
286895
287201
|
}
|
|
286896
287202
|
if (object.autoRenewalStatus !== 0 && (typeof object.autoRenewalStatus !== "string" || $root.subscription.AutoRenewalStatus[object.autoRenewalStatus] !== 0))
|
|
286897
287203
|
switch (object.autoRenewalStatus) {
|
|
@@ -287047,6 +287353,9 @@ $root.SubscriptionCancelled = (function() {
|
|
|
287047
287353
|
if (object.cancellationReason != null)
|
|
287048
287354
|
if (typeof object.cancellationReason !== "string" || object.cancellationReason.length)
|
|
287049
287355
|
message.cancellationReason = String(object.cancellationReason);
|
|
287356
|
+
if (object.externalId != null)
|
|
287357
|
+
if (typeof object.externalId !== "string" || object.externalId.length)
|
|
287358
|
+
message.externalId = String(object.externalId);
|
|
287050
287359
|
return message;
|
|
287051
287360
|
};
|
|
287052
287361
|
|
|
@@ -287105,6 +287414,7 @@ $root.SubscriptionCancelled = (function() {
|
|
|
287105
287414
|
object.membership = options.enums === String ? "PRIMARY" : 0;
|
|
287106
287415
|
object.productSku = null;
|
|
287107
287416
|
object.cancellationReason = "";
|
|
287417
|
+
object.externalId = "";
|
|
287108
287418
|
}
|
|
287109
287419
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
287110
287420
|
object.id = message.id;
|
|
@@ -287175,6 +287485,8 @@ $root.SubscriptionCancelled = (function() {
|
|
|
287175
287485
|
object.productSku = $root.subscription.SubscriptionProductSku.toObject(message.productSku, options);
|
|
287176
287486
|
if (message.cancellationReason != null && message.hasOwnProperty("cancellationReason"))
|
|
287177
287487
|
object.cancellationReason = message.cancellationReason;
|
|
287488
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
287489
|
+
object.externalId = message.externalId;
|
|
287178
287490
|
return object;
|
|
287179
287491
|
};
|
|
287180
287492
|
|
|
@@ -287550,6 +287862,7 @@ $root.SubscriptionRenewed = (function() {
|
|
|
287550
287862
|
* @property {Array.<subscription.Term.$Properties>|null} [terms] SubscriptionRenewed terms
|
|
287551
287863
|
* @property {subscription.SubscriptionMembership|null} [membership] SubscriptionRenewed membership
|
|
287552
287864
|
* @property {subscription.SubscriptionProductSku.$Properties|null} [productSku] SubscriptionRenewed productSku
|
|
287865
|
+
* @property {string|null} [externalId] SubscriptionRenewed externalId
|
|
287553
287866
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
287554
287867
|
*/
|
|
287555
287868
|
|
|
@@ -287713,6 +288026,14 @@ $root.SubscriptionRenewed = (function() {
|
|
|
287713
288026
|
*/
|
|
287714
288027
|
SubscriptionRenewed.prototype.productSku = null;
|
|
287715
288028
|
|
|
288029
|
+
/**
|
|
288030
|
+
* SubscriptionRenewed externalId.
|
|
288031
|
+
* @member {string} externalId
|
|
288032
|
+
* @memberof SubscriptionRenewed
|
|
288033
|
+
* @instance
|
|
288034
|
+
*/
|
|
288035
|
+
SubscriptionRenewed.prototype.externalId = "";
|
|
288036
|
+
|
|
287716
288037
|
/**
|
|
287717
288038
|
* Creates a new SubscriptionRenewed instance using the specified properties.
|
|
287718
288039
|
* @function create
|
|
@@ -287778,6 +288099,8 @@ $root.SubscriptionRenewed = (function() {
|
|
|
287778
288099
|
writer.uint32(/* id 17, wireType 0 =*/136).int32(message.membership);
|
|
287779
288100
|
if (message.productSku != null && Object.hasOwnProperty.call(message, "productSku"))
|
|
287780
288101
|
$root.subscription.SubscriptionProductSku.encode(message.productSku, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
|
|
288102
|
+
if (message.externalId != null && Object.hasOwnProperty.call(message, "externalId"))
|
|
288103
|
+
writer.uint32(/* id 19, wireType 2 =*/154).string(message.externalId);
|
|
287781
288104
|
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
287782
288105
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
287783
288106
|
writer.raw(message.$unknowns[i]);
|
|
@@ -287969,6 +288292,15 @@ $root.SubscriptionRenewed = (function() {
|
|
|
287969
288292
|
message.productSku = $root.subscription.SubscriptionProductSku.decode(reader, reader.uint32(), undefined, _depth + 1, message.productSku);
|
|
287970
288293
|
continue;
|
|
287971
288294
|
}
|
|
288295
|
+
case 19: {
|
|
288296
|
+
if (wireType !== 2)
|
|
288297
|
+
break;
|
|
288298
|
+
if ((value = reader.string()).length)
|
|
288299
|
+
message.externalId = value;
|
|
288300
|
+
else
|
|
288301
|
+
delete message.externalId;
|
|
288302
|
+
continue;
|
|
288303
|
+
}
|
|
287972
288304
|
}
|
|
287973
288305
|
reader.skipType(wireType, _depth, tag);
|
|
287974
288306
|
$util.makeProp(message, "$unknowns", false);
|
|
@@ -288044,6 +288376,7 @@ $root.SubscriptionRenewed = (function() {
|
|
|
288044
288376
|
case 6:
|
|
288045
288377
|
case 7:
|
|
288046
288378
|
case 8:
|
|
288379
|
+
case 9:
|
|
288047
288380
|
break;
|
|
288048
288381
|
}
|
|
288049
288382
|
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
@@ -288111,6 +288444,9 @@ $root.SubscriptionRenewed = (function() {
|
|
|
288111
288444
|
if (error)
|
|
288112
288445
|
return "productSku." + error;
|
|
288113
288446
|
}
|
|
288447
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
288448
|
+
if (!$util.isString(message.externalId))
|
|
288449
|
+
return "externalId: string expected";
|
|
288114
288450
|
return null;
|
|
288115
288451
|
};
|
|
288116
288452
|
|
|
@@ -288223,6 +288559,10 @@ $root.SubscriptionRenewed = (function() {
|
|
|
288223
288559
|
case 8:
|
|
288224
288560
|
message.platform = 8;
|
|
288225
288561
|
break;
|
|
288562
|
+
case "SUBSCRIPTION_PLATFORM_B2B_ORG_SUB":
|
|
288563
|
+
case 9:
|
|
288564
|
+
message.platform = 9;
|
|
288565
|
+
break;
|
|
288226
288566
|
}
|
|
288227
288567
|
if (object.autoRenewalStatus !== 0 && (typeof object.autoRenewalStatus !== "string" || $root.subscription.AutoRenewalStatus[object.autoRenewalStatus] !== 0))
|
|
288228
288568
|
switch (object.autoRenewalStatus) {
|
|
@@ -288354,6 +288694,9 @@ $root.SubscriptionRenewed = (function() {
|
|
|
288354
288694
|
throw TypeError(".SubscriptionRenewed.productSku: object expected");
|
|
288355
288695
|
message.productSku = $root.subscription.SubscriptionProductSku.fromObject(object.productSku, _depth + 1);
|
|
288356
288696
|
}
|
|
288697
|
+
if (object.externalId != null)
|
|
288698
|
+
if (typeof object.externalId !== "string" || object.externalId.length)
|
|
288699
|
+
message.externalId = String(object.externalId);
|
|
288357
288700
|
return message;
|
|
288358
288701
|
};
|
|
288359
288702
|
|
|
@@ -288409,6 +288752,7 @@ $root.SubscriptionRenewed = (function() {
|
|
|
288409
288752
|
object.renewalCount = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
288410
288753
|
object.membership = options.enums === String ? "PRIMARY" : 0;
|
|
288411
288754
|
object.productSku = null;
|
|
288755
|
+
object.externalId = "";
|
|
288412
288756
|
}
|
|
288413
288757
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
288414
288758
|
object.id = message.id;
|
|
@@ -288473,6 +288817,8 @@ $root.SubscriptionRenewed = (function() {
|
|
|
288473
288817
|
object.membership = options.enums === String ? $root.subscription.SubscriptionMembership[message.membership] === undefined ? message.membership : $root.subscription.SubscriptionMembership[message.membership] : message.membership;
|
|
288474
288818
|
if (message.productSku != null && message.hasOwnProperty("productSku"))
|
|
288475
288819
|
object.productSku = $root.subscription.SubscriptionProductSku.toObject(message.productSku, options);
|
|
288820
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
288821
|
+
object.externalId = message.externalId;
|
|
288476
288822
|
return object;
|
|
288477
288823
|
};
|
|
288478
288824
|
|
|
@@ -288520,6 +288866,7 @@ $root.SubscriptionUpcomingRenewal = (function() {
|
|
|
288520
288866
|
* @property {string|null} [currency] SubscriptionUpcomingRenewal currency
|
|
288521
288867
|
* @property {number|null} [renewalTermLength] SubscriptionUpcomingRenewal renewalTermLength
|
|
288522
288868
|
* @property {subscription.SubscriptionPlatform|null} [platform] SubscriptionUpcomingRenewal platform
|
|
288869
|
+
* @property {string|null} [externalId] SubscriptionUpcomingRenewal externalId
|
|
288523
288870
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
288524
288871
|
*/
|
|
288525
288872
|
|
|
@@ -288640,6 +288987,14 @@ $root.SubscriptionUpcomingRenewal = (function() {
|
|
|
288640
288987
|
*/
|
|
288641
288988
|
SubscriptionUpcomingRenewal.prototype.platform = 0;
|
|
288642
288989
|
|
|
288990
|
+
/**
|
|
288991
|
+
* SubscriptionUpcomingRenewal externalId.
|
|
288992
|
+
* @member {string} externalId
|
|
288993
|
+
* @memberof SubscriptionUpcomingRenewal
|
|
288994
|
+
* @instance
|
|
288995
|
+
*/
|
|
288996
|
+
SubscriptionUpcomingRenewal.prototype.externalId = "";
|
|
288997
|
+
|
|
288643
288998
|
/**
|
|
288644
288999
|
* Creates a new SubscriptionUpcomingRenewal instance using the specified properties.
|
|
288645
289000
|
* @function create
|
|
@@ -288690,6 +289045,8 @@ $root.SubscriptionUpcomingRenewal = (function() {
|
|
|
288690
289045
|
writer.uint32(/* id 10, wireType 0 =*/80).uint32(message.renewalTermLength);
|
|
288691
289046
|
if (message.platform != null && Object.hasOwnProperty.call(message, "platform"))
|
|
288692
289047
|
writer.uint32(/* id 11, wireType 0 =*/88).int32(message.platform);
|
|
289048
|
+
if (message.externalId != null && Object.hasOwnProperty.call(message, "externalId"))
|
|
289049
|
+
writer.uint32(/* id 12, wireType 2 =*/98).string(message.externalId);
|
|
288693
289050
|
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
288694
289051
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
288695
289052
|
writer.raw(message.$unknowns[i]);
|
|
@@ -288833,6 +289190,15 @@ $root.SubscriptionUpcomingRenewal = (function() {
|
|
|
288833
289190
|
delete message.platform;
|
|
288834
289191
|
continue;
|
|
288835
289192
|
}
|
|
289193
|
+
case 12: {
|
|
289194
|
+
if (wireType !== 2)
|
|
289195
|
+
break;
|
|
289196
|
+
if ((value = reader.string()).length)
|
|
289197
|
+
message.externalId = value;
|
|
289198
|
+
else
|
|
289199
|
+
delete message.externalId;
|
|
289200
|
+
continue;
|
|
289201
|
+
}
|
|
288836
289202
|
}
|
|
288837
289203
|
reader.skipType(wireType, _depth, tag);
|
|
288838
289204
|
$util.makeProp(message, "$unknowns", false);
|
|
@@ -288931,8 +289297,12 @@ $root.SubscriptionUpcomingRenewal = (function() {
|
|
|
288931
289297
|
case 6:
|
|
288932
289298
|
case 7:
|
|
288933
289299
|
case 8:
|
|
289300
|
+
case 9:
|
|
288934
289301
|
break;
|
|
288935
289302
|
}
|
|
289303
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
289304
|
+
if (!$util.isString(message.externalId))
|
|
289305
|
+
return "externalId: string expected";
|
|
288936
289306
|
return null;
|
|
288937
289307
|
};
|
|
288938
289308
|
|
|
@@ -289071,7 +289441,14 @@ $root.SubscriptionUpcomingRenewal = (function() {
|
|
|
289071
289441
|
case 8:
|
|
289072
289442
|
message.platform = 8;
|
|
289073
289443
|
break;
|
|
289444
|
+
case "SUBSCRIPTION_PLATFORM_B2B_ORG_SUB":
|
|
289445
|
+
case 9:
|
|
289446
|
+
message.platform = 9;
|
|
289447
|
+
break;
|
|
289074
289448
|
}
|
|
289449
|
+
if (object.externalId != null)
|
|
289450
|
+
if (typeof object.externalId !== "string" || object.externalId.length)
|
|
289451
|
+
message.externalId = String(object.externalId);
|
|
289075
289452
|
return message;
|
|
289076
289453
|
};
|
|
289077
289454
|
|
|
@@ -289104,6 +289481,7 @@ $root.SubscriptionUpcomingRenewal = (function() {
|
|
|
289104
289481
|
object.currency = "";
|
|
289105
289482
|
object.renewalTermLength = 0;
|
|
289106
289483
|
object.platform = options.enums === String ? "PLATFORM_UNKNOWN" : 0;
|
|
289484
|
+
object.externalId = "";
|
|
289107
289485
|
}
|
|
289108
289486
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
289109
289487
|
object.id = message.id;
|
|
@@ -289132,6 +289510,8 @@ $root.SubscriptionUpcomingRenewal = (function() {
|
|
|
289132
289510
|
object.renewalTermLength = message.renewalTermLength;
|
|
289133
289511
|
if (message.platform != null && message.hasOwnProperty("platform"))
|
|
289134
289512
|
object.platform = options.enums === String ? $root.subscription.SubscriptionPlatform[message.platform] === undefined ? message.platform : $root.subscription.SubscriptionPlatform[message.platform] : message.platform;
|
|
289513
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
289514
|
+
object.externalId = message.externalId;
|
|
289135
289515
|
return object;
|
|
289136
289516
|
};
|
|
289137
289517
|
|
|
@@ -290038,6 +290418,7 @@ $root.SubscriptionGraced = (function() {
|
|
|
290038
290418
|
* @property {Array.<subscription.Term.$Properties>|null} [terms] SubscriptionGraced terms
|
|
290039
290419
|
* @property {subscription.SubscriptionMembership|null} [membership] SubscriptionGraced membership
|
|
290040
290420
|
* @property {subscription.SubscriptionProductSku.$Properties|null} [productSku] SubscriptionGraced productSku
|
|
290421
|
+
* @property {string|null} [externalId] SubscriptionGraced externalId
|
|
290041
290422
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
290042
290423
|
*/
|
|
290043
290424
|
|
|
@@ -290201,6 +290582,14 @@ $root.SubscriptionGraced = (function() {
|
|
|
290201
290582
|
*/
|
|
290202
290583
|
SubscriptionGraced.prototype.productSku = null;
|
|
290203
290584
|
|
|
290585
|
+
/**
|
|
290586
|
+
* SubscriptionGraced externalId.
|
|
290587
|
+
* @member {string} externalId
|
|
290588
|
+
* @memberof SubscriptionGraced
|
|
290589
|
+
* @instance
|
|
290590
|
+
*/
|
|
290591
|
+
SubscriptionGraced.prototype.externalId = "";
|
|
290592
|
+
|
|
290204
290593
|
/**
|
|
290205
290594
|
* Creates a new SubscriptionGraced instance using the specified properties.
|
|
290206
290595
|
* @function create
|
|
@@ -290266,6 +290655,8 @@ $root.SubscriptionGraced = (function() {
|
|
|
290266
290655
|
writer.uint32(/* id 15, wireType 0 =*/120).int32(message.membership);
|
|
290267
290656
|
if (message.productSku != null && Object.hasOwnProperty.call(message, "productSku"))
|
|
290268
290657
|
$root.subscription.SubscriptionProductSku.encode(message.productSku, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
|
|
290658
|
+
if (message.externalId != null && Object.hasOwnProperty.call(message, "externalId"))
|
|
290659
|
+
writer.uint32(/* id 17, wireType 2 =*/138).string(message.externalId);
|
|
290269
290660
|
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
290270
290661
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
290271
290662
|
writer.raw(message.$unknowns[i]);
|
|
@@ -290457,6 +290848,15 @@ $root.SubscriptionGraced = (function() {
|
|
|
290457
290848
|
message.productSku = $root.subscription.SubscriptionProductSku.decode(reader, reader.uint32(), undefined, _depth + 1, message.productSku);
|
|
290458
290849
|
continue;
|
|
290459
290850
|
}
|
|
290851
|
+
case 17: {
|
|
290852
|
+
if (wireType !== 2)
|
|
290853
|
+
break;
|
|
290854
|
+
if ((value = reader.string()).length)
|
|
290855
|
+
message.externalId = value;
|
|
290856
|
+
else
|
|
290857
|
+
delete message.externalId;
|
|
290858
|
+
continue;
|
|
290859
|
+
}
|
|
290460
290860
|
}
|
|
290461
290861
|
reader.skipType(wireType, _depth, tag);
|
|
290462
290862
|
$util.makeProp(message, "$unknowns", false);
|
|
@@ -290532,6 +290932,7 @@ $root.SubscriptionGraced = (function() {
|
|
|
290532
290932
|
case 6:
|
|
290533
290933
|
case 7:
|
|
290534
290934
|
case 8:
|
|
290935
|
+
case 9:
|
|
290535
290936
|
break;
|
|
290536
290937
|
}
|
|
290537
290938
|
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
@@ -290599,6 +291000,9 @@ $root.SubscriptionGraced = (function() {
|
|
|
290599
291000
|
if (error)
|
|
290600
291001
|
return "productSku." + error;
|
|
290601
291002
|
}
|
|
291003
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
291004
|
+
if (!$util.isString(message.externalId))
|
|
291005
|
+
return "externalId: string expected";
|
|
290602
291006
|
return null;
|
|
290603
291007
|
};
|
|
290604
291008
|
|
|
@@ -290711,6 +291115,10 @@ $root.SubscriptionGraced = (function() {
|
|
|
290711
291115
|
case 8:
|
|
290712
291116
|
message.platform = 8;
|
|
290713
291117
|
break;
|
|
291118
|
+
case "SUBSCRIPTION_PLATFORM_B2B_ORG_SUB":
|
|
291119
|
+
case 9:
|
|
291120
|
+
message.platform = 9;
|
|
291121
|
+
break;
|
|
290714
291122
|
}
|
|
290715
291123
|
if (object.autoRenewalStatus !== 0 && (typeof object.autoRenewalStatus !== "string" || $root.subscription.AutoRenewalStatus[object.autoRenewalStatus] !== 0))
|
|
290716
291124
|
switch (object.autoRenewalStatus) {
|
|
@@ -290842,6 +291250,9 @@ $root.SubscriptionGraced = (function() {
|
|
|
290842
291250
|
throw TypeError(".SubscriptionGraced.productSku: object expected");
|
|
290843
291251
|
message.productSku = $root.subscription.SubscriptionProductSku.fromObject(object.productSku, _depth + 1);
|
|
290844
291252
|
}
|
|
291253
|
+
if (object.externalId != null)
|
|
291254
|
+
if (typeof object.externalId !== "string" || object.externalId.length)
|
|
291255
|
+
message.externalId = String(object.externalId);
|
|
290845
291256
|
return message;
|
|
290846
291257
|
};
|
|
290847
291258
|
|
|
@@ -290897,6 +291308,7 @@ $root.SubscriptionGraced = (function() {
|
|
|
290897
291308
|
object.renewalCount = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
290898
291309
|
object.membership = options.enums === String ? "PRIMARY" : 0;
|
|
290899
291310
|
object.productSku = null;
|
|
291311
|
+
object.externalId = "";
|
|
290900
291312
|
}
|
|
290901
291313
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
290902
291314
|
object.id = message.id;
|
|
@@ -290961,6 +291373,8 @@ $root.SubscriptionGraced = (function() {
|
|
|
290961
291373
|
object.membership = options.enums === String ? $root.subscription.SubscriptionMembership[message.membership] === undefined ? message.membership : $root.subscription.SubscriptionMembership[message.membership] : message.membership;
|
|
290962
291374
|
if (message.productSku != null && message.hasOwnProperty("productSku"))
|
|
290963
291375
|
object.productSku = $root.subscription.SubscriptionProductSku.toObject(message.productSku, options);
|
|
291376
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
291377
|
+
object.externalId = message.externalId;
|
|
290964
291378
|
return object;
|
|
290965
291379
|
};
|
|
290966
291380
|
|
|
@@ -291013,6 +291427,7 @@ $root.SubscriptionStarted = (function() {
|
|
|
291013
291427
|
* @property {Array.<subscription.Term.$Properties>|null} [terms] SubscriptionStarted terms
|
|
291014
291428
|
* @property {subscription.SubscriptionMembership|null} [membership] SubscriptionStarted membership
|
|
291015
291429
|
* @property {subscription.SubscriptionProductSku.$Properties|null} [productSku] SubscriptionStarted productSku
|
|
291430
|
+
* @property {string|null} [externalId] SubscriptionStarted externalId
|
|
291016
291431
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
291017
291432
|
*/
|
|
291018
291433
|
|
|
@@ -291175,6 +291590,14 @@ $root.SubscriptionStarted = (function() {
|
|
|
291175
291590
|
*/
|
|
291176
291591
|
SubscriptionStarted.prototype.productSku = null;
|
|
291177
291592
|
|
|
291593
|
+
/**
|
|
291594
|
+
* SubscriptionStarted externalId.
|
|
291595
|
+
* @member {string} externalId
|
|
291596
|
+
* @memberof SubscriptionStarted
|
|
291597
|
+
* @instance
|
|
291598
|
+
*/
|
|
291599
|
+
SubscriptionStarted.prototype.externalId = "";
|
|
291600
|
+
|
|
291178
291601
|
/**
|
|
291179
291602
|
* Creates a new SubscriptionStarted instance using the specified properties.
|
|
291180
291603
|
* @function create
|
|
@@ -291240,6 +291663,8 @@ $root.SubscriptionStarted = (function() {
|
|
|
291240
291663
|
writer.uint32(/* id 16, wireType 0 =*/128).int32(message.membership);
|
|
291241
291664
|
if (message.productSku != null && Object.hasOwnProperty.call(message, "productSku"))
|
|
291242
291665
|
$root.subscription.SubscriptionProductSku.encode(message.productSku, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
|
|
291666
|
+
if (message.externalId != null && Object.hasOwnProperty.call(message, "externalId"))
|
|
291667
|
+
writer.uint32(/* id 18, wireType 2 =*/146).string(message.externalId);
|
|
291243
291668
|
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
291244
291669
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
291245
291670
|
writer.raw(message.$unknowns[i]);
|
|
@@ -291431,6 +291856,15 @@ $root.SubscriptionStarted = (function() {
|
|
|
291431
291856
|
message.productSku = $root.subscription.SubscriptionProductSku.decode(reader, reader.uint32(), undefined, _depth + 1, message.productSku);
|
|
291432
291857
|
continue;
|
|
291433
291858
|
}
|
|
291859
|
+
case 18: {
|
|
291860
|
+
if (wireType !== 2)
|
|
291861
|
+
break;
|
|
291862
|
+
if ((value = reader.string()).length)
|
|
291863
|
+
message.externalId = value;
|
|
291864
|
+
else
|
|
291865
|
+
delete message.externalId;
|
|
291866
|
+
continue;
|
|
291867
|
+
}
|
|
291434
291868
|
}
|
|
291435
291869
|
reader.skipType(wireType, _depth, tag);
|
|
291436
291870
|
$util.makeProp(message, "$unknowns", false);
|
|
@@ -291503,6 +291937,7 @@ $root.SubscriptionStarted = (function() {
|
|
|
291503
291937
|
case 6:
|
|
291504
291938
|
case 7:
|
|
291505
291939
|
case 8:
|
|
291940
|
+
case 9:
|
|
291506
291941
|
break;
|
|
291507
291942
|
}
|
|
291508
291943
|
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
@@ -291573,6 +292008,9 @@ $root.SubscriptionStarted = (function() {
|
|
|
291573
292008
|
if (error)
|
|
291574
292009
|
return "productSku." + error;
|
|
291575
292010
|
}
|
|
292011
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
292012
|
+
if (!$util.isString(message.externalId))
|
|
292013
|
+
return "externalId: string expected";
|
|
291576
292014
|
return null;
|
|
291577
292015
|
};
|
|
291578
292016
|
|
|
@@ -291682,6 +292120,10 @@ $root.SubscriptionStarted = (function() {
|
|
|
291682
292120
|
case 8:
|
|
291683
292121
|
message.platform = 8;
|
|
291684
292122
|
break;
|
|
292123
|
+
case "SUBSCRIPTION_PLATFORM_B2B_ORG_SUB":
|
|
292124
|
+
case 9:
|
|
292125
|
+
message.platform = 9;
|
|
292126
|
+
break;
|
|
291685
292127
|
}
|
|
291686
292128
|
if (object.autoRenewalStatus !== 0 && (typeof object.autoRenewalStatus !== "string" || $root.subscription.AutoRenewalStatus[object.autoRenewalStatus] !== 0))
|
|
291687
292129
|
switch (object.autoRenewalStatus) {
|
|
@@ -291816,6 +292258,9 @@ $root.SubscriptionStarted = (function() {
|
|
|
291816
292258
|
throw TypeError(".SubscriptionStarted.productSku: object expected");
|
|
291817
292259
|
message.productSku = $root.subscription.SubscriptionProductSku.fromObject(object.productSku, _depth + 1);
|
|
291818
292260
|
}
|
|
292261
|
+
if (object.externalId != null)
|
|
292262
|
+
if (typeof object.externalId !== "string" || object.externalId.length)
|
|
292263
|
+
message.externalId = String(object.externalId);
|
|
291819
292264
|
return message;
|
|
291820
292265
|
};
|
|
291821
292266
|
|
|
@@ -291871,6 +292316,7 @@ $root.SubscriptionStarted = (function() {
|
|
|
291871
292316
|
object.id = 0;
|
|
291872
292317
|
object.membership = options.enums === String ? "PRIMARY" : 0;
|
|
291873
292318
|
object.productSku = null;
|
|
292319
|
+
object.externalId = "";
|
|
291874
292320
|
}
|
|
291875
292321
|
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
291876
292322
|
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
@@ -291935,6 +292381,8 @@ $root.SubscriptionStarted = (function() {
|
|
|
291935
292381
|
object.membership = options.enums === String ? $root.subscription.SubscriptionMembership[message.membership] === undefined ? message.membership : $root.subscription.SubscriptionMembership[message.membership] : message.membership;
|
|
291936
292382
|
if (message.productSku != null && message.hasOwnProperty("productSku"))
|
|
291937
292383
|
object.productSku = $root.subscription.SubscriptionProductSku.toObject(message.productSku, options);
|
|
292384
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
292385
|
+
object.externalId = message.externalId;
|
|
291938
292386
|
return object;
|
|
291939
292387
|
};
|
|
291940
292388
|
|
|
@@ -291988,6 +292436,7 @@ $root.SubscriptionEnded = (function() {
|
|
|
291988
292436
|
* @property {Array.<subscription.Term.$Properties>|null} [terms] SubscriptionEnded terms
|
|
291989
292437
|
* @property {subscription.SubscriptionMembership|null} [membership] SubscriptionEnded membership
|
|
291990
292438
|
* @property {subscription.SubscriptionProductSku.$Properties|null} [productSku] SubscriptionEnded productSku
|
|
292439
|
+
* @property {string|null} [externalId] SubscriptionEnded externalId
|
|
291991
292440
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
291992
292441
|
*/
|
|
291993
292442
|
|
|
@@ -292158,6 +292607,14 @@ $root.SubscriptionEnded = (function() {
|
|
|
292158
292607
|
*/
|
|
292159
292608
|
SubscriptionEnded.prototype.productSku = null;
|
|
292160
292609
|
|
|
292610
|
+
/**
|
|
292611
|
+
* SubscriptionEnded externalId.
|
|
292612
|
+
* @member {string} externalId
|
|
292613
|
+
* @memberof SubscriptionEnded
|
|
292614
|
+
* @instance
|
|
292615
|
+
*/
|
|
292616
|
+
SubscriptionEnded.prototype.externalId = "";
|
|
292617
|
+
|
|
292161
292618
|
/**
|
|
292162
292619
|
* Creates a new SubscriptionEnded instance using the specified properties.
|
|
292163
292620
|
* @function create
|
|
@@ -292225,6 +292682,8 @@ $root.SubscriptionEnded = (function() {
|
|
|
292225
292682
|
writer.uint32(/* id 17, wireType 0 =*/136).int32(message.membership);
|
|
292226
292683
|
if (message.productSku != null && Object.hasOwnProperty.call(message, "productSku"))
|
|
292227
292684
|
$root.subscription.SubscriptionProductSku.encode(message.productSku, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
|
|
292685
|
+
if (message.externalId != null && Object.hasOwnProperty.call(message, "externalId"))
|
|
292686
|
+
writer.uint32(/* id 19, wireType 2 =*/154).string(message.externalId);
|
|
292228
292687
|
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
292229
292688
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
292230
292689
|
writer.raw(message.$unknowns[i]);
|
|
@@ -292425,6 +292884,15 @@ $root.SubscriptionEnded = (function() {
|
|
|
292425
292884
|
message.productSku = $root.subscription.SubscriptionProductSku.decode(reader, reader.uint32(), undefined, _depth + 1, message.productSku);
|
|
292426
292885
|
continue;
|
|
292427
292886
|
}
|
|
292887
|
+
case 19: {
|
|
292888
|
+
if (wireType !== 2)
|
|
292889
|
+
break;
|
|
292890
|
+
if ((value = reader.string()).length)
|
|
292891
|
+
message.externalId = value;
|
|
292892
|
+
else
|
|
292893
|
+
delete message.externalId;
|
|
292894
|
+
continue;
|
|
292895
|
+
}
|
|
292428
292896
|
}
|
|
292429
292897
|
reader.skipType(wireType, _depth, tag);
|
|
292430
292898
|
$util.makeProp(message, "$unknowns", false);
|
|
@@ -292497,6 +292965,7 @@ $root.SubscriptionEnded = (function() {
|
|
|
292497
292965
|
case 6:
|
|
292498
292966
|
case 7:
|
|
292499
292967
|
case 8:
|
|
292968
|
+
case 9:
|
|
292500
292969
|
break;
|
|
292501
292970
|
}
|
|
292502
292971
|
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
@@ -292576,6 +293045,9 @@ $root.SubscriptionEnded = (function() {
|
|
|
292576
293045
|
if (error)
|
|
292577
293046
|
return "productSku." + error;
|
|
292578
293047
|
}
|
|
293048
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
293049
|
+
if (!$util.isString(message.externalId))
|
|
293050
|
+
return "externalId: string expected";
|
|
292579
293051
|
return null;
|
|
292580
293052
|
};
|
|
292581
293053
|
|
|
@@ -292685,6 +293157,10 @@ $root.SubscriptionEnded = (function() {
|
|
|
292685
293157
|
case 8:
|
|
292686
293158
|
message.platform = 8;
|
|
292687
293159
|
break;
|
|
293160
|
+
case "SUBSCRIPTION_PLATFORM_B2B_ORG_SUB":
|
|
293161
|
+
case 9:
|
|
293162
|
+
message.platform = 9;
|
|
293163
|
+
break;
|
|
292688
293164
|
}
|
|
292689
293165
|
if (object.autoRenewalStatus !== 0 && (typeof object.autoRenewalStatus !== "string" || $root.subscription.AutoRenewalStatus[object.autoRenewalStatus] !== 0))
|
|
292690
293166
|
switch (object.autoRenewalStatus) {
|
|
@@ -292840,6 +293316,9 @@ $root.SubscriptionEnded = (function() {
|
|
|
292840
293316
|
throw TypeError(".SubscriptionEnded.productSku: object expected");
|
|
292841
293317
|
message.productSku = $root.subscription.SubscriptionProductSku.fromObject(object.productSku, _depth + 1);
|
|
292842
293318
|
}
|
|
293319
|
+
if (object.externalId != null)
|
|
293320
|
+
if (typeof object.externalId !== "string" || object.externalId.length)
|
|
293321
|
+
message.externalId = String(object.externalId);
|
|
292843
293322
|
return message;
|
|
292844
293323
|
};
|
|
292845
293324
|
|
|
@@ -292896,6 +293375,7 @@ $root.SubscriptionEnded = (function() {
|
|
|
292896
293375
|
object.id = 0;
|
|
292897
293376
|
object.membership = options.enums === String ? "PRIMARY" : 0;
|
|
292898
293377
|
object.productSku = null;
|
|
293378
|
+
object.externalId = "";
|
|
292899
293379
|
}
|
|
292900
293380
|
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
292901
293381
|
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
@@ -292962,6 +293442,8 @@ $root.SubscriptionEnded = (function() {
|
|
|
292962
293442
|
object.membership = options.enums === String ? $root.subscription.SubscriptionMembership[message.membership] === undefined ? message.membership : $root.subscription.SubscriptionMembership[message.membership] : message.membership;
|
|
292963
293443
|
if (message.productSku != null && message.hasOwnProperty("productSku"))
|
|
292964
293444
|
object.productSku = $root.subscription.SubscriptionProductSku.toObject(message.productSku, options);
|
|
293445
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
293446
|
+
object.externalId = message.externalId;
|
|
292965
293447
|
return object;
|
|
292966
293448
|
};
|
|
292967
293449
|
|
|
@@ -293014,6 +293496,7 @@ $root.SubscriptionRecovered = (function() {
|
|
|
293014
293496
|
* @property {Array.<subscription.Term.$Properties>|null} [terms] SubscriptionRecovered terms
|
|
293015
293497
|
* @property {subscription.SubscriptionMembership|null} [membership] SubscriptionRecovered membership
|
|
293016
293498
|
* @property {subscription.SubscriptionProductSku.$Properties|null} [productSku] SubscriptionRecovered productSku
|
|
293499
|
+
* @property {string|null} [externalId] SubscriptionRecovered externalId
|
|
293017
293500
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
293018
293501
|
*/
|
|
293019
293502
|
|
|
@@ -293175,6 +293658,14 @@ $root.SubscriptionRecovered = (function() {
|
|
|
293175
293658
|
*/
|
|
293176
293659
|
SubscriptionRecovered.prototype.productSku = null;
|
|
293177
293660
|
|
|
293661
|
+
/**
|
|
293662
|
+
* SubscriptionRecovered externalId.
|
|
293663
|
+
* @member {string} externalId
|
|
293664
|
+
* @memberof SubscriptionRecovered
|
|
293665
|
+
* @instance
|
|
293666
|
+
*/
|
|
293667
|
+
SubscriptionRecovered.prototype.externalId = "";
|
|
293668
|
+
|
|
293178
293669
|
/**
|
|
293179
293670
|
* Creates a new SubscriptionRecovered instance using the specified properties.
|
|
293180
293671
|
* @function create
|
|
@@ -293240,6 +293731,8 @@ $root.SubscriptionRecovered = (function() {
|
|
|
293240
293731
|
writer.uint32(/* id 16, wireType 0 =*/128).int32(message.membership);
|
|
293241
293732
|
if (message.productSku != null && Object.hasOwnProperty.call(message, "productSku"))
|
|
293242
293733
|
$root.subscription.SubscriptionProductSku.encode(message.productSku, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
|
|
293734
|
+
if (message.externalId != null && Object.hasOwnProperty.call(message, "externalId"))
|
|
293735
|
+
writer.uint32(/* id 18, wireType 2 =*/146).string(message.externalId);
|
|
293243
293736
|
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
293244
293737
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
293245
293738
|
writer.raw(message.$unknowns[i]);
|
|
@@ -293431,6 +293924,15 @@ $root.SubscriptionRecovered = (function() {
|
|
|
293431
293924
|
message.productSku = $root.subscription.SubscriptionProductSku.decode(reader, reader.uint32(), undefined, _depth + 1, message.productSku);
|
|
293432
293925
|
continue;
|
|
293433
293926
|
}
|
|
293927
|
+
case 18: {
|
|
293928
|
+
if (wireType !== 2)
|
|
293929
|
+
break;
|
|
293930
|
+
if ((value = reader.string()).length)
|
|
293931
|
+
message.externalId = value;
|
|
293932
|
+
else
|
|
293933
|
+
delete message.externalId;
|
|
293934
|
+
continue;
|
|
293935
|
+
}
|
|
293434
293936
|
}
|
|
293435
293937
|
reader.skipType(wireType, _depth, tag);
|
|
293436
293938
|
$util.makeProp(message, "$unknowns", false);
|
|
@@ -293503,6 +294005,7 @@ $root.SubscriptionRecovered = (function() {
|
|
|
293503
294005
|
case 6:
|
|
293504
294006
|
case 7:
|
|
293505
294007
|
case 8:
|
|
294008
|
+
case 9:
|
|
293506
294009
|
break;
|
|
293507
294010
|
}
|
|
293508
294011
|
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
@@ -293573,6 +294076,9 @@ $root.SubscriptionRecovered = (function() {
|
|
|
293573
294076
|
if (error)
|
|
293574
294077
|
return "productSku." + error;
|
|
293575
294078
|
}
|
|
294079
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
294080
|
+
if (!$util.isString(message.externalId))
|
|
294081
|
+
return "externalId: string expected";
|
|
293576
294082
|
return null;
|
|
293577
294083
|
};
|
|
293578
294084
|
|
|
@@ -293682,6 +294188,10 @@ $root.SubscriptionRecovered = (function() {
|
|
|
293682
294188
|
case 8:
|
|
293683
294189
|
message.platform = 8;
|
|
293684
294190
|
break;
|
|
294191
|
+
case "SUBSCRIPTION_PLATFORM_B2B_ORG_SUB":
|
|
294192
|
+
case 9:
|
|
294193
|
+
message.platform = 9;
|
|
294194
|
+
break;
|
|
293685
294195
|
}
|
|
293686
294196
|
if (object.autoRenewalStatus !== 0 && (typeof object.autoRenewalStatus !== "string" || $root.subscription.AutoRenewalStatus[object.autoRenewalStatus] !== 0))
|
|
293687
294197
|
switch (object.autoRenewalStatus) {
|
|
@@ -293816,6 +294326,9 @@ $root.SubscriptionRecovered = (function() {
|
|
|
293816
294326
|
throw TypeError(".SubscriptionRecovered.productSku: object expected");
|
|
293817
294327
|
message.productSku = $root.subscription.SubscriptionProductSku.fromObject(object.productSku, _depth + 1);
|
|
293818
294328
|
}
|
|
294329
|
+
if (object.externalId != null)
|
|
294330
|
+
if (typeof object.externalId !== "string" || object.externalId.length)
|
|
294331
|
+
message.externalId = String(object.externalId);
|
|
293819
294332
|
return message;
|
|
293820
294333
|
};
|
|
293821
294334
|
|
|
@@ -293871,6 +294384,7 @@ $root.SubscriptionRecovered = (function() {
|
|
|
293871
294384
|
object.id = 0;
|
|
293872
294385
|
object.membership = options.enums === String ? "PRIMARY" : 0;
|
|
293873
294386
|
object.productSku = null;
|
|
294387
|
+
object.externalId = "";
|
|
293874
294388
|
}
|
|
293875
294389
|
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
293876
294390
|
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
@@ -293935,6 +294449,8 @@ $root.SubscriptionRecovered = (function() {
|
|
|
293935
294449
|
object.membership = options.enums === String ? $root.subscription.SubscriptionMembership[message.membership] === undefined ? message.membership : $root.subscription.SubscriptionMembership[message.membership] : message.membership;
|
|
293936
294450
|
if (message.productSku != null && message.hasOwnProperty("productSku"))
|
|
293937
294451
|
object.productSku = $root.subscription.SubscriptionProductSku.toObject(message.productSku, options);
|
|
294452
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
294453
|
+
object.externalId = message.externalId;
|
|
293938
294454
|
return object;
|
|
293939
294455
|
};
|
|
293940
294456
|
|
|
@@ -293987,6 +294503,7 @@ $root.SubscriptionAmended = (function() {
|
|
|
293987
294503
|
* @property {Array.<subscription.Term.$Properties>|null} [terms] SubscriptionAmended terms
|
|
293988
294504
|
* @property {subscription.SubscriptionMembership|null} [membership] SubscriptionAmended membership
|
|
293989
294505
|
* @property {subscription.SubscriptionProductSku.$Properties|null} [productSku] SubscriptionAmended productSku
|
|
294506
|
+
* @property {string|null} [externalId] SubscriptionAmended externalId
|
|
293990
294507
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
293991
294508
|
*/
|
|
293992
294509
|
|
|
@@ -294150,6 +294667,14 @@ $root.SubscriptionAmended = (function() {
|
|
|
294150
294667
|
*/
|
|
294151
294668
|
SubscriptionAmended.prototype.productSku = null;
|
|
294152
294669
|
|
|
294670
|
+
/**
|
|
294671
|
+
* SubscriptionAmended externalId.
|
|
294672
|
+
* @member {string} externalId
|
|
294673
|
+
* @memberof SubscriptionAmended
|
|
294674
|
+
* @instance
|
|
294675
|
+
*/
|
|
294676
|
+
SubscriptionAmended.prototype.externalId = "";
|
|
294677
|
+
|
|
294153
294678
|
/**
|
|
294154
294679
|
* Creates a new SubscriptionAmended instance using the specified properties.
|
|
294155
294680
|
* @function create
|
|
@@ -294215,6 +294740,8 @@ $root.SubscriptionAmended = (function() {
|
|
|
294215
294740
|
writer.uint32(/* id 16, wireType 0 =*/128).int32(message.membership);
|
|
294216
294741
|
if (message.productSku != null && Object.hasOwnProperty.call(message, "productSku"))
|
|
294217
294742
|
$root.subscription.SubscriptionProductSku.encode(message.productSku, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
|
|
294743
|
+
if (message.externalId != null && Object.hasOwnProperty.call(message, "externalId"))
|
|
294744
|
+
writer.uint32(/* id 19, wireType 2 =*/154).string(message.externalId);
|
|
294218
294745
|
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
294219
294746
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
294220
294747
|
writer.raw(message.$unknowns[i]);
|
|
@@ -294406,6 +294933,15 @@ $root.SubscriptionAmended = (function() {
|
|
|
294406
294933
|
message.productSku = $root.subscription.SubscriptionProductSku.decode(reader, reader.uint32(), undefined, _depth + 1, message.productSku);
|
|
294407
294934
|
continue;
|
|
294408
294935
|
}
|
|
294936
|
+
case 19: {
|
|
294937
|
+
if (wireType !== 2)
|
|
294938
|
+
break;
|
|
294939
|
+
if ((value = reader.string()).length)
|
|
294940
|
+
message.externalId = value;
|
|
294941
|
+
else
|
|
294942
|
+
delete message.externalId;
|
|
294943
|
+
continue;
|
|
294944
|
+
}
|
|
294409
294945
|
}
|
|
294410
294946
|
reader.skipType(wireType, _depth, tag);
|
|
294411
294947
|
$util.makeProp(message, "$unknowns", false);
|
|
@@ -294478,6 +295014,7 @@ $root.SubscriptionAmended = (function() {
|
|
|
294478
295014
|
case 6:
|
|
294479
295015
|
case 7:
|
|
294480
295016
|
case 8:
|
|
295017
|
+
case 9:
|
|
294481
295018
|
break;
|
|
294482
295019
|
}
|
|
294483
295020
|
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
@@ -294548,6 +295085,9 @@ $root.SubscriptionAmended = (function() {
|
|
|
294548
295085
|
if (error)
|
|
294549
295086
|
return "productSku." + error;
|
|
294550
295087
|
}
|
|
295088
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
295089
|
+
if (!$util.isString(message.externalId))
|
|
295090
|
+
return "externalId: string expected";
|
|
294551
295091
|
return null;
|
|
294552
295092
|
};
|
|
294553
295093
|
|
|
@@ -294657,6 +295197,10 @@ $root.SubscriptionAmended = (function() {
|
|
|
294657
295197
|
case 8:
|
|
294658
295198
|
message.platform = 8;
|
|
294659
295199
|
break;
|
|
295200
|
+
case "SUBSCRIPTION_PLATFORM_B2B_ORG_SUB":
|
|
295201
|
+
case 9:
|
|
295202
|
+
message.platform = 9;
|
|
295203
|
+
break;
|
|
294660
295204
|
}
|
|
294661
295205
|
if (object.autoRenewalStatus !== 0 && (typeof object.autoRenewalStatus !== "string" || $root.subscription.AutoRenewalStatus[object.autoRenewalStatus] !== 0))
|
|
294662
295206
|
switch (object.autoRenewalStatus) {
|
|
@@ -294791,6 +295335,9 @@ $root.SubscriptionAmended = (function() {
|
|
|
294791
295335
|
throw TypeError(".SubscriptionAmended.productSku: object expected");
|
|
294792
295336
|
message.productSku = $root.subscription.SubscriptionProductSku.fromObject(object.productSku, _depth + 1);
|
|
294793
295337
|
}
|
|
295338
|
+
if (object.externalId != null)
|
|
295339
|
+
if (typeof object.externalId !== "string" || object.externalId.length)
|
|
295340
|
+
message.externalId = String(object.externalId);
|
|
294794
295341
|
return message;
|
|
294795
295342
|
};
|
|
294796
295343
|
|
|
@@ -294846,6 +295393,7 @@ $root.SubscriptionAmended = (function() {
|
|
|
294846
295393
|
object.id = 0;
|
|
294847
295394
|
object.membership = options.enums === String ? "PRIMARY" : 0;
|
|
294848
295395
|
object.productSku = null;
|
|
295396
|
+
object.externalId = "";
|
|
294849
295397
|
}
|
|
294850
295398
|
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
294851
295399
|
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
@@ -294910,6 +295458,8 @@ $root.SubscriptionAmended = (function() {
|
|
|
294910
295458
|
object.membership = options.enums === String ? $root.subscription.SubscriptionMembership[message.membership] === undefined ? message.membership : $root.subscription.SubscriptionMembership[message.membership] : message.membership;
|
|
294911
295459
|
if (message.productSku != null && message.hasOwnProperty("productSku"))
|
|
294912
295460
|
object.productSku = $root.subscription.SubscriptionProductSku.toObject(message.productSku, options);
|
|
295461
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
295462
|
+
object.externalId = message.externalId;
|
|
294913
295463
|
return object;
|
|
294914
295464
|
};
|
|
294915
295465
|
|
|
@@ -299774,6 +300324,7 @@ $root.subscription = (function() {
|
|
|
299774
300324
|
* @property {number} AMAZON=6 AMAZON value
|
|
299775
300325
|
* @property {number} SUBSCRIPTION_PLATFORM_SIKA=7 SUBSCRIPTION_PLATFORM_SIKA value
|
|
299776
300326
|
* @property {number} SUBSCRIPTION_PLATFORM_PAPI=8 SUBSCRIPTION_PLATFORM_PAPI value
|
|
300327
|
+
* @property {number} SUBSCRIPTION_PLATFORM_B2B_ORG_SUB=9 SUBSCRIPTION_PLATFORM_B2B_ORG_SUB value
|
|
299777
300328
|
*/
|
|
299778
300329
|
subscription.SubscriptionPlatform = (function() {
|
|
299779
300330
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -299786,6 +300337,7 @@ $root.subscription = (function() {
|
|
|
299786
300337
|
values[valuesById[6] = "AMAZON"] = 6;
|
|
299787
300338
|
values[valuesById[7] = "SUBSCRIPTION_PLATFORM_SIKA"] = 7;
|
|
299788
300339
|
values[valuesById[8] = "SUBSCRIPTION_PLATFORM_PAPI"] = 8;
|
|
300340
|
+
values[valuesById[9] = "SUBSCRIPTION_PLATFORM_B2B_ORG_SUB"] = 9;
|
|
299789
300341
|
return values;
|
|
299790
300342
|
})();
|
|
299791
300343
|
|