@headspace/protos-events 1.235.0 → 1.236.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 +48 -0
- package/lib/index.js +280 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -24982,6 +24982,9 @@ export interface ISubscriptionCreated {
|
|
|
24982
24982
|
|
|
24983
24983
|
/** SubscriptionCreated terms */
|
|
24984
24984
|
terms?: (subscription.ITerm[]|null);
|
|
24985
|
+
|
|
24986
|
+
/** SubscriptionCreated membership */
|
|
24987
|
+
membership?: (subscription.SubscriptionMembership|null);
|
|
24985
24988
|
}
|
|
24986
24989
|
|
|
24987
24990
|
/** Represents a SubscriptionCreated. */
|
|
@@ -25035,6 +25038,9 @@ export class SubscriptionCreated implements ISubscriptionCreated {
|
|
|
25035
25038
|
/** SubscriptionCreated terms. */
|
|
25036
25039
|
public terms: subscription.ITerm[];
|
|
25037
25040
|
|
|
25041
|
+
/** SubscriptionCreated membership. */
|
|
25042
|
+
public membership: subscription.SubscriptionMembership;
|
|
25043
|
+
|
|
25038
25044
|
/**
|
|
25039
25045
|
* Creates a new SubscriptionCreated instance using the specified properties.
|
|
25040
25046
|
* @param [properties] Properties to set
|
|
@@ -25156,6 +25162,9 @@ export interface ISubscriptionCancelled {
|
|
|
25156
25162
|
|
|
25157
25163
|
/** SubscriptionCancelled terms */
|
|
25158
25164
|
terms?: (subscription.ITerm[]|null);
|
|
25165
|
+
|
|
25166
|
+
/** SubscriptionCancelled membership */
|
|
25167
|
+
membership?: (subscription.SubscriptionMembership|null);
|
|
25159
25168
|
}
|
|
25160
25169
|
|
|
25161
25170
|
/** Represents a SubscriptionCancelled. */
|
|
@@ -25215,6 +25224,9 @@ export class SubscriptionCancelled implements ISubscriptionCancelled {
|
|
|
25215
25224
|
/** SubscriptionCancelled terms. */
|
|
25216
25225
|
public terms: subscription.ITerm[];
|
|
25217
25226
|
|
|
25227
|
+
/** SubscriptionCancelled membership. */
|
|
25228
|
+
public membership: subscription.SubscriptionMembership;
|
|
25229
|
+
|
|
25218
25230
|
/**
|
|
25219
25231
|
* Creates a new SubscriptionCancelled instance using the specified properties.
|
|
25220
25232
|
* @param [properties] Properties to set
|
|
@@ -25330,6 +25342,9 @@ export interface ISubscriptionRenewed {
|
|
|
25330
25342
|
|
|
25331
25343
|
/** SubscriptionRenewed terms */
|
|
25332
25344
|
terms?: (subscription.ITerm[]|null);
|
|
25345
|
+
|
|
25346
|
+
/** SubscriptionRenewed membership */
|
|
25347
|
+
membership?: (subscription.SubscriptionMembership|null);
|
|
25333
25348
|
}
|
|
25334
25349
|
|
|
25335
25350
|
/** Represents a SubscriptionRenewed. */
|
|
@@ -25383,6 +25398,9 @@ export class SubscriptionRenewed implements ISubscriptionRenewed {
|
|
|
25383
25398
|
/** SubscriptionRenewed terms. */
|
|
25384
25399
|
public terms: subscription.ITerm[];
|
|
25385
25400
|
|
|
25401
|
+
/** SubscriptionRenewed membership. */
|
|
25402
|
+
public membership: subscription.SubscriptionMembership;
|
|
25403
|
+
|
|
25386
25404
|
/**
|
|
25387
25405
|
* Creates a new SubscriptionRenewed instance using the specified properties.
|
|
25388
25406
|
* @param [properties] Properties to set
|
|
@@ -25864,6 +25882,9 @@ export interface ISubscriptionGraced {
|
|
|
25864
25882
|
|
|
25865
25883
|
/** SubscriptionGraced terms */
|
|
25866
25884
|
terms?: (subscription.ITerm[]|null);
|
|
25885
|
+
|
|
25886
|
+
/** SubscriptionGraced membership */
|
|
25887
|
+
membership?: (subscription.SubscriptionMembership|null);
|
|
25867
25888
|
}
|
|
25868
25889
|
|
|
25869
25890
|
/** Represents a SubscriptionGraced. */
|
|
@@ -25917,6 +25938,9 @@ export class SubscriptionGraced implements ISubscriptionGraced {
|
|
|
25917
25938
|
/** SubscriptionGraced terms. */
|
|
25918
25939
|
public terms: subscription.ITerm[];
|
|
25919
25940
|
|
|
25941
|
+
/** SubscriptionGraced membership. */
|
|
25942
|
+
public membership: subscription.SubscriptionMembership;
|
|
25943
|
+
|
|
25920
25944
|
/**
|
|
25921
25945
|
* Creates a new SubscriptionGraced instance using the specified properties.
|
|
25922
25946
|
* @param [properties] Properties to set
|
|
@@ -26032,6 +26056,9 @@ export interface ISubscriptionStarted {
|
|
|
26032
26056
|
|
|
26033
26057
|
/** SubscriptionStarted terms */
|
|
26034
26058
|
terms?: (subscription.ITerm[]|null);
|
|
26059
|
+
|
|
26060
|
+
/** SubscriptionStarted membership */
|
|
26061
|
+
membership?: (subscription.SubscriptionMembership|null);
|
|
26035
26062
|
}
|
|
26036
26063
|
|
|
26037
26064
|
/** Represents a SubscriptionStarted. */
|
|
@@ -26085,6 +26112,9 @@ export class SubscriptionStarted implements ISubscriptionStarted {
|
|
|
26085
26112
|
/** SubscriptionStarted terms. */
|
|
26086
26113
|
public terms: subscription.ITerm[];
|
|
26087
26114
|
|
|
26115
|
+
/** SubscriptionStarted membership. */
|
|
26116
|
+
public membership: subscription.SubscriptionMembership;
|
|
26117
|
+
|
|
26088
26118
|
/**
|
|
26089
26119
|
* Creates a new SubscriptionStarted instance using the specified properties.
|
|
26090
26120
|
* @param [properties] Properties to set
|
|
@@ -26203,6 +26233,9 @@ export interface ISubscriptionEnded {
|
|
|
26203
26233
|
|
|
26204
26234
|
/** SubscriptionEnded terms */
|
|
26205
26235
|
terms?: (subscription.ITerm[]|null);
|
|
26236
|
+
|
|
26237
|
+
/** SubscriptionEnded membership */
|
|
26238
|
+
membership?: (subscription.SubscriptionMembership|null);
|
|
26206
26239
|
}
|
|
26207
26240
|
|
|
26208
26241
|
/** Represents a SubscriptionEnded. */
|
|
@@ -26259,6 +26292,9 @@ export class SubscriptionEnded implements ISubscriptionEnded {
|
|
|
26259
26292
|
/** SubscriptionEnded terms. */
|
|
26260
26293
|
public terms: subscription.ITerm[];
|
|
26261
26294
|
|
|
26295
|
+
/** SubscriptionEnded membership. */
|
|
26296
|
+
public membership: subscription.SubscriptionMembership;
|
|
26297
|
+
|
|
26262
26298
|
/**
|
|
26263
26299
|
* Creates a new SubscriptionEnded instance using the specified properties.
|
|
26264
26300
|
* @param [properties] Properties to set
|
|
@@ -26374,6 +26410,9 @@ export interface ISubscriptionRecovered {
|
|
|
26374
26410
|
|
|
26375
26411
|
/** SubscriptionRecovered terms */
|
|
26376
26412
|
terms?: (subscription.ITerm[]|null);
|
|
26413
|
+
|
|
26414
|
+
/** SubscriptionRecovered membership */
|
|
26415
|
+
membership?: (subscription.SubscriptionMembership|null);
|
|
26377
26416
|
}
|
|
26378
26417
|
|
|
26379
26418
|
/** Represents a SubscriptionRecovered. */
|
|
@@ -26427,6 +26466,9 @@ export class SubscriptionRecovered implements ISubscriptionRecovered {
|
|
|
26427
26466
|
/** SubscriptionRecovered terms. */
|
|
26428
26467
|
public terms: subscription.ITerm[];
|
|
26429
26468
|
|
|
26469
|
+
/** SubscriptionRecovered membership. */
|
|
26470
|
+
public membership: subscription.SubscriptionMembership;
|
|
26471
|
+
|
|
26430
26472
|
/**
|
|
26431
26473
|
* Creates a new SubscriptionRecovered instance using the specified properties.
|
|
26432
26474
|
* @param [properties] Properties to set
|
|
@@ -26542,6 +26584,9 @@ export interface ISubscriptionAmended {
|
|
|
26542
26584
|
|
|
26543
26585
|
/** SubscriptionAmended terms */
|
|
26544
26586
|
terms?: (subscription.ITerm[]|null);
|
|
26587
|
+
|
|
26588
|
+
/** SubscriptionAmended membership */
|
|
26589
|
+
membership?: (subscription.SubscriptionMembership|null);
|
|
26545
26590
|
}
|
|
26546
26591
|
|
|
26547
26592
|
/** Represents a SubscriptionAmended. */
|
|
@@ -26595,6 +26640,9 @@ export class SubscriptionAmended implements ISubscriptionAmended {
|
|
|
26595
26640
|
/** SubscriptionAmended terms. */
|
|
26596
26641
|
public terms: subscription.ITerm[];
|
|
26597
26642
|
|
|
26643
|
+
/** SubscriptionAmended membership. */
|
|
26644
|
+
public membership: subscription.SubscriptionMembership;
|
|
26645
|
+
|
|
26598
26646
|
/**
|
|
26599
26647
|
* Creates a new SubscriptionAmended instance using the specified properties.
|
|
26600
26648
|
* @param [properties] Properties to set
|
package/lib/index.js
CHANGED
|
@@ -69824,6 +69824,7 @@ $root.SubscriptionCreated = (function() {
|
|
|
69824
69824
|
* @property {Array.<subscription.SubscriptionLabels>|null} [labels] SubscriptionCreated labels
|
|
69825
69825
|
* @property {boolean|null} [isQueuedSubscription] SubscriptionCreated isQueuedSubscription
|
|
69826
69826
|
* @property {Array.<subscription.ITerm>|null} [terms] SubscriptionCreated terms
|
|
69827
|
+
* @property {subscription.SubscriptionMembership|null} [membership] SubscriptionCreated membership
|
|
69827
69828
|
*/
|
|
69828
69829
|
|
|
69829
69830
|
/**
|
|
@@ -69955,6 +69956,14 @@ $root.SubscriptionCreated = (function() {
|
|
|
69955
69956
|
*/
|
|
69956
69957
|
SubscriptionCreated.prototype.terms = $util.emptyArray;
|
|
69957
69958
|
|
|
69959
|
+
/**
|
|
69960
|
+
* SubscriptionCreated membership.
|
|
69961
|
+
* @member {subscription.SubscriptionMembership} membership
|
|
69962
|
+
* @memberof SubscriptionCreated
|
|
69963
|
+
* @instance
|
|
69964
|
+
*/
|
|
69965
|
+
SubscriptionCreated.prototype.membership = 0;
|
|
69966
|
+
|
|
69958
69967
|
/**
|
|
69959
69968
|
* Creates a new SubscriptionCreated instance using the specified properties.
|
|
69960
69969
|
* @function create
|
|
@@ -70012,6 +70021,8 @@ $root.SubscriptionCreated = (function() {
|
|
|
70012
70021
|
if (message.terms != null && message.terms.length)
|
|
70013
70022
|
for (var i = 0; i < message.terms.length; ++i)
|
|
70014
70023
|
$root.subscription.Term.encode(message.terms[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
|
|
70024
|
+
if (message.membership != null && message.hasOwnProperty("membership"))
|
|
70025
|
+
writer.uint32(/* id 15, wireType 0 =*/120).int32(message.membership);
|
|
70015
70026
|
return writer;
|
|
70016
70027
|
};
|
|
70017
70028
|
|
|
@@ -70097,6 +70108,9 @@ $root.SubscriptionCreated = (function() {
|
|
|
70097
70108
|
message.terms = [];
|
|
70098
70109
|
message.terms.push($root.subscription.Term.decode(reader, reader.uint32()));
|
|
70099
70110
|
break;
|
|
70111
|
+
case 15:
|
|
70112
|
+
message.membership = reader.int32();
|
|
70113
|
+
break;
|
|
70100
70114
|
default:
|
|
70101
70115
|
reader.skipType(tag & 7);
|
|
70102
70116
|
break;
|
|
@@ -70216,6 +70230,14 @@ $root.SubscriptionCreated = (function() {
|
|
|
70216
70230
|
return "terms." + error;
|
|
70217
70231
|
}
|
|
70218
70232
|
}
|
|
70233
|
+
if (message.membership != null && message.hasOwnProperty("membership"))
|
|
70234
|
+
switch (message.membership) {
|
|
70235
|
+
default:
|
|
70236
|
+
return "membership: enum value expected";
|
|
70237
|
+
case 0:
|
|
70238
|
+
case 1:
|
|
70239
|
+
break;
|
|
70240
|
+
}
|
|
70219
70241
|
return null;
|
|
70220
70242
|
};
|
|
70221
70243
|
|
|
@@ -70377,6 +70399,16 @@ $root.SubscriptionCreated = (function() {
|
|
|
70377
70399
|
message.terms[i] = $root.subscription.Term.fromObject(object.terms[i]);
|
|
70378
70400
|
}
|
|
70379
70401
|
}
|
|
70402
|
+
switch (object.membership) {
|
|
70403
|
+
case "PRIMARY":
|
|
70404
|
+
case 0:
|
|
70405
|
+
message.membership = 0;
|
|
70406
|
+
break;
|
|
70407
|
+
case "MEMBER":
|
|
70408
|
+
case 1:
|
|
70409
|
+
message.membership = 1;
|
|
70410
|
+
break;
|
|
70411
|
+
}
|
|
70380
70412
|
return message;
|
|
70381
70413
|
};
|
|
70382
70414
|
|
|
@@ -70426,6 +70458,7 @@ $root.SubscriptionCreated = (function() {
|
|
|
70426
70458
|
object.plan = null;
|
|
70427
70459
|
object.subscriptionState = options.enums === String ? "SUBSTATE_UNKNOWN" : 0;
|
|
70428
70460
|
object.isQueuedSubscription = false;
|
|
70461
|
+
object.membership = options.enums === String ? "PRIMARY" : 0;
|
|
70429
70462
|
}
|
|
70430
70463
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
70431
70464
|
object.id = message.id;
|
|
@@ -70473,6 +70506,8 @@ $root.SubscriptionCreated = (function() {
|
|
|
70473
70506
|
for (var j = 0; j < message.terms.length; ++j)
|
|
70474
70507
|
object.terms[j] = $root.subscription.Term.toObject(message.terms[j], options);
|
|
70475
70508
|
}
|
|
70509
|
+
if (message.membership != null && message.hasOwnProperty("membership"))
|
|
70510
|
+
object.membership = options.enums === String ? $root.subscription.SubscriptionMembership[message.membership] : message.membership;
|
|
70476
70511
|
return object;
|
|
70477
70512
|
};
|
|
70478
70513
|
|
|
@@ -70512,6 +70547,7 @@ $root.SubscriptionCancelled = (function() {
|
|
|
70512
70547
|
* @property {Array.<subscription.SubscriptionLabels>|null} [labels] SubscriptionCancelled labels
|
|
70513
70548
|
* @property {number|Long|null} [renewalCount] SubscriptionCancelled renewalCount
|
|
70514
70549
|
* @property {Array.<subscription.ITerm>|null} [terms] SubscriptionCancelled terms
|
|
70550
|
+
* @property {subscription.SubscriptionMembership|null} [membership] SubscriptionCancelled membership
|
|
70515
70551
|
*/
|
|
70516
70552
|
|
|
70517
70553
|
/**
|
|
@@ -70659,6 +70695,14 @@ $root.SubscriptionCancelled = (function() {
|
|
|
70659
70695
|
*/
|
|
70660
70696
|
SubscriptionCancelled.prototype.terms = $util.emptyArray;
|
|
70661
70697
|
|
|
70698
|
+
/**
|
|
70699
|
+
* SubscriptionCancelled membership.
|
|
70700
|
+
* @member {subscription.SubscriptionMembership} membership
|
|
70701
|
+
* @memberof SubscriptionCancelled
|
|
70702
|
+
* @instance
|
|
70703
|
+
*/
|
|
70704
|
+
SubscriptionCancelled.prototype.membership = 0;
|
|
70705
|
+
|
|
70662
70706
|
/**
|
|
70663
70707
|
* Creates a new SubscriptionCancelled instance using the specified properties.
|
|
70664
70708
|
* @function create
|
|
@@ -70720,6 +70764,8 @@ $root.SubscriptionCancelled = (function() {
|
|
|
70720
70764
|
if (message.terms != null && message.terms.length)
|
|
70721
70765
|
for (var i = 0; i < message.terms.length; ++i)
|
|
70722
70766
|
$root.subscription.Term.encode(message.terms[i], writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
|
|
70767
|
+
if (message.membership != null && message.hasOwnProperty("membership"))
|
|
70768
|
+
writer.uint32(/* id 17, wireType 0 =*/136).int32(message.membership);
|
|
70723
70769
|
return writer;
|
|
70724
70770
|
};
|
|
70725
70771
|
|
|
@@ -70811,6 +70857,9 @@ $root.SubscriptionCancelled = (function() {
|
|
|
70811
70857
|
message.terms = [];
|
|
70812
70858
|
message.terms.push($root.subscription.Term.decode(reader, reader.uint32()));
|
|
70813
70859
|
break;
|
|
70860
|
+
case 17:
|
|
70861
|
+
message.membership = reader.int32();
|
|
70862
|
+
break;
|
|
70814
70863
|
default:
|
|
70815
70864
|
reader.skipType(tag & 7);
|
|
70816
70865
|
break;
|
|
@@ -70944,6 +70993,14 @@ $root.SubscriptionCancelled = (function() {
|
|
|
70944
70993
|
return "terms." + error;
|
|
70945
70994
|
}
|
|
70946
70995
|
}
|
|
70996
|
+
if (message.membership != null && message.hasOwnProperty("membership"))
|
|
70997
|
+
switch (message.membership) {
|
|
70998
|
+
default:
|
|
70999
|
+
return "membership: enum value expected";
|
|
71000
|
+
case 0:
|
|
71001
|
+
case 1:
|
|
71002
|
+
break;
|
|
71003
|
+
}
|
|
70947
71004
|
return null;
|
|
70948
71005
|
};
|
|
70949
71006
|
|
|
@@ -71131,6 +71188,16 @@ $root.SubscriptionCancelled = (function() {
|
|
|
71131
71188
|
message.terms[i] = $root.subscription.Term.fromObject(object.terms[i]);
|
|
71132
71189
|
}
|
|
71133
71190
|
}
|
|
71191
|
+
switch (object.membership) {
|
|
71192
|
+
case "PRIMARY":
|
|
71193
|
+
case 0:
|
|
71194
|
+
message.membership = 0;
|
|
71195
|
+
break;
|
|
71196
|
+
case "MEMBER":
|
|
71197
|
+
case 1:
|
|
71198
|
+
message.membership = 1;
|
|
71199
|
+
break;
|
|
71200
|
+
}
|
|
71134
71201
|
return message;
|
|
71135
71202
|
};
|
|
71136
71203
|
|
|
@@ -71186,6 +71253,7 @@ $root.SubscriptionCancelled = (function() {
|
|
|
71186
71253
|
object.renewalCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
71187
71254
|
} else
|
|
71188
71255
|
object.renewalCount = options.longs === String ? "0" : 0;
|
|
71256
|
+
object.membership = options.enums === String ? "PRIMARY" : 0;
|
|
71189
71257
|
}
|
|
71190
71258
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
71191
71259
|
object.id = message.id;
|
|
@@ -71240,6 +71308,8 @@ $root.SubscriptionCancelled = (function() {
|
|
|
71240
71308
|
for (var j = 0; j < message.terms.length; ++j)
|
|
71241
71309
|
object.terms[j] = $root.subscription.Term.toObject(message.terms[j], options);
|
|
71242
71310
|
}
|
|
71311
|
+
if (message.membership != null && message.hasOwnProperty("membership"))
|
|
71312
|
+
object.membership = options.enums === String ? $root.subscription.SubscriptionMembership[message.membership] : message.membership;
|
|
71243
71313
|
return object;
|
|
71244
71314
|
};
|
|
71245
71315
|
|
|
@@ -71277,6 +71347,7 @@ $root.SubscriptionRenewed = (function() {
|
|
|
71277
71347
|
* @property {Array.<subscription.SubscriptionLabels>|null} [labels] SubscriptionRenewed labels
|
|
71278
71348
|
* @property {number|Long|null} [renewalCount] SubscriptionRenewed renewalCount
|
|
71279
71349
|
* @property {Array.<subscription.ITerm>|null} [terms] SubscriptionRenewed terms
|
|
71350
|
+
* @property {subscription.SubscriptionMembership|null} [membership] SubscriptionRenewed membership
|
|
71280
71351
|
*/
|
|
71281
71352
|
|
|
71282
71353
|
/**
|
|
@@ -71408,6 +71479,14 @@ $root.SubscriptionRenewed = (function() {
|
|
|
71408
71479
|
*/
|
|
71409
71480
|
SubscriptionRenewed.prototype.terms = $util.emptyArray;
|
|
71410
71481
|
|
|
71482
|
+
/**
|
|
71483
|
+
* SubscriptionRenewed membership.
|
|
71484
|
+
* @member {subscription.SubscriptionMembership} membership
|
|
71485
|
+
* @memberof SubscriptionRenewed
|
|
71486
|
+
* @instance
|
|
71487
|
+
*/
|
|
71488
|
+
SubscriptionRenewed.prototype.membership = 0;
|
|
71489
|
+
|
|
71411
71490
|
/**
|
|
71412
71491
|
* Creates a new SubscriptionRenewed instance using the specified properties.
|
|
71413
71492
|
* @function create
|
|
@@ -71465,6 +71544,8 @@ $root.SubscriptionRenewed = (function() {
|
|
|
71465
71544
|
if (message.terms != null && message.terms.length)
|
|
71466
71545
|
for (var i = 0; i < message.terms.length; ++i)
|
|
71467
71546
|
$root.subscription.Term.encode(message.terms[i], writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
|
|
71547
|
+
if (message.membership != null && message.hasOwnProperty("membership"))
|
|
71548
|
+
writer.uint32(/* id 17, wireType 0 =*/136).int32(message.membership);
|
|
71468
71549
|
return writer;
|
|
71469
71550
|
};
|
|
71470
71551
|
|
|
@@ -71550,6 +71631,9 @@ $root.SubscriptionRenewed = (function() {
|
|
|
71550
71631
|
message.terms = [];
|
|
71551
71632
|
message.terms.push($root.subscription.Term.decode(reader, reader.uint32()));
|
|
71552
71633
|
break;
|
|
71634
|
+
case 17:
|
|
71635
|
+
message.membership = reader.int32();
|
|
71636
|
+
break;
|
|
71553
71637
|
default:
|
|
71554
71638
|
reader.skipType(tag & 7);
|
|
71555
71639
|
break;
|
|
@@ -71669,6 +71753,14 @@ $root.SubscriptionRenewed = (function() {
|
|
|
71669
71753
|
return "terms." + error;
|
|
71670
71754
|
}
|
|
71671
71755
|
}
|
|
71756
|
+
if (message.membership != null && message.hasOwnProperty("membership"))
|
|
71757
|
+
switch (message.membership) {
|
|
71758
|
+
default:
|
|
71759
|
+
return "membership: enum value expected";
|
|
71760
|
+
case 0:
|
|
71761
|
+
case 1:
|
|
71762
|
+
break;
|
|
71763
|
+
}
|
|
71672
71764
|
return null;
|
|
71673
71765
|
};
|
|
71674
71766
|
|
|
@@ -71837,6 +71929,16 @@ $root.SubscriptionRenewed = (function() {
|
|
|
71837
71929
|
message.terms[i] = $root.subscription.Term.fromObject(object.terms[i]);
|
|
71838
71930
|
}
|
|
71839
71931
|
}
|
|
71932
|
+
switch (object.membership) {
|
|
71933
|
+
case "PRIMARY":
|
|
71934
|
+
case 0:
|
|
71935
|
+
message.membership = 0;
|
|
71936
|
+
break;
|
|
71937
|
+
case "MEMBER":
|
|
71938
|
+
case 1:
|
|
71939
|
+
message.membership = 1;
|
|
71940
|
+
break;
|
|
71941
|
+
}
|
|
71840
71942
|
return message;
|
|
71841
71943
|
};
|
|
71842
71944
|
|
|
@@ -71890,6 +71992,7 @@ $root.SubscriptionRenewed = (function() {
|
|
|
71890
71992
|
object.renewalCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
71891
71993
|
} else
|
|
71892
71994
|
object.renewalCount = options.longs === String ? "0" : 0;
|
|
71995
|
+
object.membership = options.enums === String ? "PRIMARY" : 0;
|
|
71893
71996
|
}
|
|
71894
71997
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
71895
71998
|
object.id = message.id;
|
|
@@ -71940,6 +72043,8 @@ $root.SubscriptionRenewed = (function() {
|
|
|
71940
72043
|
for (var j = 0; j < message.terms.length; ++j)
|
|
71941
72044
|
object.terms[j] = $root.subscription.Term.toObject(message.terms[j], options);
|
|
71942
72045
|
}
|
|
72046
|
+
if (message.membership != null && message.hasOwnProperty("membership"))
|
|
72047
|
+
object.membership = options.enums === String ? $root.subscription.SubscriptionMembership[message.membership] : message.membership;
|
|
71943
72048
|
return object;
|
|
71944
72049
|
};
|
|
71945
72050
|
|
|
@@ -72999,6 +73104,7 @@ $root.SubscriptionGraced = (function() {
|
|
|
72999
73104
|
* @property {Array.<subscription.SubscriptionLabels>|null} [labels] SubscriptionGraced labels
|
|
73000
73105
|
* @property {number|Long|null} [renewalCount] SubscriptionGraced renewalCount
|
|
73001
73106
|
* @property {Array.<subscription.ITerm>|null} [terms] SubscriptionGraced terms
|
|
73107
|
+
* @property {subscription.SubscriptionMembership|null} [membership] SubscriptionGraced membership
|
|
73002
73108
|
*/
|
|
73003
73109
|
|
|
73004
73110
|
/**
|
|
@@ -73130,6 +73236,14 @@ $root.SubscriptionGraced = (function() {
|
|
|
73130
73236
|
*/
|
|
73131
73237
|
SubscriptionGraced.prototype.terms = $util.emptyArray;
|
|
73132
73238
|
|
|
73239
|
+
/**
|
|
73240
|
+
* SubscriptionGraced membership.
|
|
73241
|
+
* @member {subscription.SubscriptionMembership} membership
|
|
73242
|
+
* @memberof SubscriptionGraced
|
|
73243
|
+
* @instance
|
|
73244
|
+
*/
|
|
73245
|
+
SubscriptionGraced.prototype.membership = 0;
|
|
73246
|
+
|
|
73133
73247
|
/**
|
|
73134
73248
|
* Creates a new SubscriptionGraced instance using the specified properties.
|
|
73135
73249
|
* @function create
|
|
@@ -73187,6 +73301,8 @@ $root.SubscriptionGraced = (function() {
|
|
|
73187
73301
|
if (message.terms != null && message.terms.length)
|
|
73188
73302
|
for (var i = 0; i < message.terms.length; ++i)
|
|
73189
73303
|
$root.subscription.Term.encode(message.terms[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
|
|
73304
|
+
if (message.membership != null && message.hasOwnProperty("membership"))
|
|
73305
|
+
writer.uint32(/* id 15, wireType 0 =*/120).int32(message.membership);
|
|
73190
73306
|
return writer;
|
|
73191
73307
|
};
|
|
73192
73308
|
|
|
@@ -73272,6 +73388,9 @@ $root.SubscriptionGraced = (function() {
|
|
|
73272
73388
|
message.terms = [];
|
|
73273
73389
|
message.terms.push($root.subscription.Term.decode(reader, reader.uint32()));
|
|
73274
73390
|
break;
|
|
73391
|
+
case 15:
|
|
73392
|
+
message.membership = reader.int32();
|
|
73393
|
+
break;
|
|
73275
73394
|
default:
|
|
73276
73395
|
reader.skipType(tag & 7);
|
|
73277
73396
|
break;
|
|
@@ -73391,6 +73510,14 @@ $root.SubscriptionGraced = (function() {
|
|
|
73391
73510
|
return "terms." + error;
|
|
73392
73511
|
}
|
|
73393
73512
|
}
|
|
73513
|
+
if (message.membership != null && message.hasOwnProperty("membership"))
|
|
73514
|
+
switch (message.membership) {
|
|
73515
|
+
default:
|
|
73516
|
+
return "membership: enum value expected";
|
|
73517
|
+
case 0:
|
|
73518
|
+
case 1:
|
|
73519
|
+
break;
|
|
73520
|
+
}
|
|
73394
73521
|
return null;
|
|
73395
73522
|
};
|
|
73396
73523
|
|
|
@@ -73559,6 +73686,16 @@ $root.SubscriptionGraced = (function() {
|
|
|
73559
73686
|
message.terms[i] = $root.subscription.Term.fromObject(object.terms[i]);
|
|
73560
73687
|
}
|
|
73561
73688
|
}
|
|
73689
|
+
switch (object.membership) {
|
|
73690
|
+
case "PRIMARY":
|
|
73691
|
+
case 0:
|
|
73692
|
+
message.membership = 0;
|
|
73693
|
+
break;
|
|
73694
|
+
case "MEMBER":
|
|
73695
|
+
case 1:
|
|
73696
|
+
message.membership = 1;
|
|
73697
|
+
break;
|
|
73698
|
+
}
|
|
73562
73699
|
return message;
|
|
73563
73700
|
};
|
|
73564
73701
|
|
|
@@ -73612,6 +73749,7 @@ $root.SubscriptionGraced = (function() {
|
|
|
73612
73749
|
object.renewalCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
73613
73750
|
} else
|
|
73614
73751
|
object.renewalCount = options.longs === String ? "0" : 0;
|
|
73752
|
+
object.membership = options.enums === String ? "PRIMARY" : 0;
|
|
73615
73753
|
}
|
|
73616
73754
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
73617
73755
|
object.id = message.id;
|
|
@@ -73662,6 +73800,8 @@ $root.SubscriptionGraced = (function() {
|
|
|
73662
73800
|
for (var j = 0; j < message.terms.length; ++j)
|
|
73663
73801
|
object.terms[j] = $root.subscription.Term.toObject(message.terms[j], options);
|
|
73664
73802
|
}
|
|
73803
|
+
if (message.membership != null && message.hasOwnProperty("membership"))
|
|
73804
|
+
object.membership = options.enums === String ? $root.subscription.SubscriptionMembership[message.membership] : message.membership;
|
|
73665
73805
|
return object;
|
|
73666
73806
|
};
|
|
73667
73807
|
|
|
@@ -73699,6 +73839,7 @@ $root.SubscriptionStarted = (function() {
|
|
|
73699
73839
|
* @property {number|Long|null} [renewalCount] SubscriptionStarted renewalCount
|
|
73700
73840
|
* @property {number|null} [id] SubscriptionStarted id
|
|
73701
73841
|
* @property {Array.<subscription.ITerm>|null} [terms] SubscriptionStarted terms
|
|
73842
|
+
* @property {subscription.SubscriptionMembership|null} [membership] SubscriptionStarted membership
|
|
73702
73843
|
*/
|
|
73703
73844
|
|
|
73704
73845
|
/**
|
|
@@ -73830,6 +73971,14 @@ $root.SubscriptionStarted = (function() {
|
|
|
73830
73971
|
*/
|
|
73831
73972
|
SubscriptionStarted.prototype.terms = $util.emptyArray;
|
|
73832
73973
|
|
|
73974
|
+
/**
|
|
73975
|
+
* SubscriptionStarted membership.
|
|
73976
|
+
* @member {subscription.SubscriptionMembership} membership
|
|
73977
|
+
* @memberof SubscriptionStarted
|
|
73978
|
+
* @instance
|
|
73979
|
+
*/
|
|
73980
|
+
SubscriptionStarted.prototype.membership = 0;
|
|
73981
|
+
|
|
73833
73982
|
/**
|
|
73834
73983
|
* Creates a new SubscriptionStarted instance using the specified properties.
|
|
73835
73984
|
* @function create
|
|
@@ -73887,6 +74036,8 @@ $root.SubscriptionStarted = (function() {
|
|
|
73887
74036
|
if (message.terms != null && message.terms.length)
|
|
73888
74037
|
for (var i = 0; i < message.terms.length; ++i)
|
|
73889
74038
|
$root.subscription.Term.encode(message.terms[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
|
|
74039
|
+
if (message.membership != null && message.hasOwnProperty("membership"))
|
|
74040
|
+
writer.uint32(/* id 16, wireType 0 =*/128).int32(message.membership);
|
|
73890
74041
|
return writer;
|
|
73891
74042
|
};
|
|
73892
74043
|
|
|
@@ -73972,6 +74123,9 @@ $root.SubscriptionStarted = (function() {
|
|
|
73972
74123
|
message.terms = [];
|
|
73973
74124
|
message.terms.push($root.subscription.Term.decode(reader, reader.uint32()));
|
|
73974
74125
|
break;
|
|
74126
|
+
case 16:
|
|
74127
|
+
message.membership = reader.int32();
|
|
74128
|
+
break;
|
|
73975
74129
|
default:
|
|
73976
74130
|
reader.skipType(tag & 7);
|
|
73977
74131
|
break;
|
|
@@ -74091,6 +74245,14 @@ $root.SubscriptionStarted = (function() {
|
|
|
74091
74245
|
return "terms." + error;
|
|
74092
74246
|
}
|
|
74093
74247
|
}
|
|
74248
|
+
if (message.membership != null && message.hasOwnProperty("membership"))
|
|
74249
|
+
switch (message.membership) {
|
|
74250
|
+
default:
|
|
74251
|
+
return "membership: enum value expected";
|
|
74252
|
+
case 0:
|
|
74253
|
+
case 1:
|
|
74254
|
+
break;
|
|
74255
|
+
}
|
|
74094
74256
|
return null;
|
|
74095
74257
|
};
|
|
74096
74258
|
|
|
@@ -74259,6 +74421,16 @@ $root.SubscriptionStarted = (function() {
|
|
|
74259
74421
|
message.terms[i] = $root.subscription.Term.fromObject(object.terms[i]);
|
|
74260
74422
|
}
|
|
74261
74423
|
}
|
|
74424
|
+
switch (object.membership) {
|
|
74425
|
+
case "PRIMARY":
|
|
74426
|
+
case 0:
|
|
74427
|
+
message.membership = 0;
|
|
74428
|
+
break;
|
|
74429
|
+
case "MEMBER":
|
|
74430
|
+
case 1:
|
|
74431
|
+
message.membership = 1;
|
|
74432
|
+
break;
|
|
74433
|
+
}
|
|
74262
74434
|
return message;
|
|
74263
74435
|
};
|
|
74264
74436
|
|
|
@@ -74312,6 +74484,7 @@ $root.SubscriptionStarted = (function() {
|
|
|
74312
74484
|
} else
|
|
74313
74485
|
object.renewalCount = options.longs === String ? "0" : 0;
|
|
74314
74486
|
object.id = 0;
|
|
74487
|
+
object.membership = options.enums === String ? "PRIMARY" : 0;
|
|
74315
74488
|
}
|
|
74316
74489
|
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
74317
74490
|
if (typeof message.updatedOn === "number")
|
|
@@ -74362,6 +74535,8 @@ $root.SubscriptionStarted = (function() {
|
|
|
74362
74535
|
for (var j = 0; j < message.terms.length; ++j)
|
|
74363
74536
|
object.terms[j] = $root.subscription.Term.toObject(message.terms[j], options);
|
|
74364
74537
|
}
|
|
74538
|
+
if (message.membership != null && message.hasOwnProperty("membership"))
|
|
74539
|
+
object.membership = options.enums === String ? $root.subscription.SubscriptionMembership[message.membership] : message.membership;
|
|
74365
74540
|
return object;
|
|
74366
74541
|
};
|
|
74367
74542
|
|
|
@@ -74400,6 +74575,7 @@ $root.SubscriptionEnded = (function() {
|
|
|
74400
74575
|
* @property {number|Long|null} [renewalCount] SubscriptionEnded renewalCount
|
|
74401
74576
|
* @property {number|null} [id] SubscriptionEnded id
|
|
74402
74577
|
* @property {Array.<subscription.ITerm>|null} [terms] SubscriptionEnded terms
|
|
74578
|
+
* @property {subscription.SubscriptionMembership|null} [membership] SubscriptionEnded membership
|
|
74403
74579
|
*/
|
|
74404
74580
|
|
|
74405
74581
|
/**
|
|
@@ -74539,6 +74715,14 @@ $root.SubscriptionEnded = (function() {
|
|
|
74539
74715
|
*/
|
|
74540
74716
|
SubscriptionEnded.prototype.terms = $util.emptyArray;
|
|
74541
74717
|
|
|
74718
|
+
/**
|
|
74719
|
+
* SubscriptionEnded membership.
|
|
74720
|
+
* @member {subscription.SubscriptionMembership} membership
|
|
74721
|
+
* @memberof SubscriptionEnded
|
|
74722
|
+
* @instance
|
|
74723
|
+
*/
|
|
74724
|
+
SubscriptionEnded.prototype.membership = 0;
|
|
74725
|
+
|
|
74542
74726
|
/**
|
|
74543
74727
|
* Creates a new SubscriptionEnded instance using the specified properties.
|
|
74544
74728
|
* @function create
|
|
@@ -74598,6 +74782,8 @@ $root.SubscriptionEnded = (function() {
|
|
|
74598
74782
|
if (message.terms != null && message.terms.length)
|
|
74599
74783
|
for (var i = 0; i < message.terms.length; ++i)
|
|
74600
74784
|
$root.subscription.Term.encode(message.terms[i], writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
|
|
74785
|
+
if (message.membership != null && message.hasOwnProperty("membership"))
|
|
74786
|
+
writer.uint32(/* id 17, wireType 0 =*/136).int32(message.membership);
|
|
74601
74787
|
return writer;
|
|
74602
74788
|
};
|
|
74603
74789
|
|
|
@@ -74686,6 +74872,9 @@ $root.SubscriptionEnded = (function() {
|
|
|
74686
74872
|
message.terms = [];
|
|
74687
74873
|
message.terms.push($root.subscription.Term.decode(reader, reader.uint32()));
|
|
74688
74874
|
break;
|
|
74875
|
+
case 17:
|
|
74876
|
+
message.membership = reader.int32();
|
|
74877
|
+
break;
|
|
74689
74878
|
default:
|
|
74690
74879
|
reader.skipType(tag & 7);
|
|
74691
74880
|
break;
|
|
@@ -74814,6 +75003,14 @@ $root.SubscriptionEnded = (function() {
|
|
|
74814
75003
|
return "terms." + error;
|
|
74815
75004
|
}
|
|
74816
75005
|
}
|
|
75006
|
+
if (message.membership != null && message.hasOwnProperty("membership"))
|
|
75007
|
+
switch (message.membership) {
|
|
75008
|
+
default:
|
|
75009
|
+
return "membership: enum value expected";
|
|
75010
|
+
case 0:
|
|
75011
|
+
case 1:
|
|
75012
|
+
break;
|
|
75013
|
+
}
|
|
74817
75014
|
return null;
|
|
74818
75015
|
};
|
|
74819
75016
|
|
|
@@ -74996,6 +75193,16 @@ $root.SubscriptionEnded = (function() {
|
|
|
74996
75193
|
message.terms[i] = $root.subscription.Term.fromObject(object.terms[i]);
|
|
74997
75194
|
}
|
|
74998
75195
|
}
|
|
75196
|
+
switch (object.membership) {
|
|
75197
|
+
case "PRIMARY":
|
|
75198
|
+
case 0:
|
|
75199
|
+
message.membership = 0;
|
|
75200
|
+
break;
|
|
75201
|
+
case "MEMBER":
|
|
75202
|
+
case 1:
|
|
75203
|
+
message.membership = 1;
|
|
75204
|
+
break;
|
|
75205
|
+
}
|
|
74999
75206
|
return message;
|
|
75000
75207
|
};
|
|
75001
75208
|
|
|
@@ -75050,6 +75257,7 @@ $root.SubscriptionEnded = (function() {
|
|
|
75050
75257
|
} else
|
|
75051
75258
|
object.renewalCount = options.longs === String ? "0" : 0;
|
|
75052
75259
|
object.id = 0;
|
|
75260
|
+
object.membership = options.enums === String ? "PRIMARY" : 0;
|
|
75053
75261
|
}
|
|
75054
75262
|
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
75055
75263
|
if (typeof message.updatedOn === "number")
|
|
@@ -75102,6 +75310,8 @@ $root.SubscriptionEnded = (function() {
|
|
|
75102
75310
|
for (var j = 0; j < message.terms.length; ++j)
|
|
75103
75311
|
object.terms[j] = $root.subscription.Term.toObject(message.terms[j], options);
|
|
75104
75312
|
}
|
|
75313
|
+
if (message.membership != null && message.hasOwnProperty("membership"))
|
|
75314
|
+
object.membership = options.enums === String ? $root.subscription.SubscriptionMembership[message.membership] : message.membership;
|
|
75105
75315
|
return object;
|
|
75106
75316
|
};
|
|
75107
75317
|
|
|
@@ -75139,6 +75349,7 @@ $root.SubscriptionRecovered = (function() {
|
|
|
75139
75349
|
* @property {number|Long|null} [renewalCount] SubscriptionRecovered renewalCount
|
|
75140
75350
|
* @property {number|null} [id] SubscriptionRecovered id
|
|
75141
75351
|
* @property {Array.<subscription.ITerm>|null} [terms] SubscriptionRecovered terms
|
|
75352
|
+
* @property {subscription.SubscriptionMembership|null} [membership] SubscriptionRecovered membership
|
|
75142
75353
|
*/
|
|
75143
75354
|
|
|
75144
75355
|
/**
|
|
@@ -75270,6 +75481,14 @@ $root.SubscriptionRecovered = (function() {
|
|
|
75270
75481
|
*/
|
|
75271
75482
|
SubscriptionRecovered.prototype.terms = $util.emptyArray;
|
|
75272
75483
|
|
|
75484
|
+
/**
|
|
75485
|
+
* SubscriptionRecovered membership.
|
|
75486
|
+
* @member {subscription.SubscriptionMembership} membership
|
|
75487
|
+
* @memberof SubscriptionRecovered
|
|
75488
|
+
* @instance
|
|
75489
|
+
*/
|
|
75490
|
+
SubscriptionRecovered.prototype.membership = 0;
|
|
75491
|
+
|
|
75273
75492
|
/**
|
|
75274
75493
|
* Creates a new SubscriptionRecovered instance using the specified properties.
|
|
75275
75494
|
* @function create
|
|
@@ -75327,6 +75546,8 @@ $root.SubscriptionRecovered = (function() {
|
|
|
75327
75546
|
if (message.terms != null && message.terms.length)
|
|
75328
75547
|
for (var i = 0; i < message.terms.length; ++i)
|
|
75329
75548
|
$root.subscription.Term.encode(message.terms[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
|
|
75549
|
+
if (message.membership != null && message.hasOwnProperty("membership"))
|
|
75550
|
+
writer.uint32(/* id 16, wireType 0 =*/128).int32(message.membership);
|
|
75330
75551
|
return writer;
|
|
75331
75552
|
};
|
|
75332
75553
|
|
|
@@ -75412,6 +75633,9 @@ $root.SubscriptionRecovered = (function() {
|
|
|
75412
75633
|
message.terms = [];
|
|
75413
75634
|
message.terms.push($root.subscription.Term.decode(reader, reader.uint32()));
|
|
75414
75635
|
break;
|
|
75636
|
+
case 16:
|
|
75637
|
+
message.membership = reader.int32();
|
|
75638
|
+
break;
|
|
75415
75639
|
default:
|
|
75416
75640
|
reader.skipType(tag & 7);
|
|
75417
75641
|
break;
|
|
@@ -75531,6 +75755,14 @@ $root.SubscriptionRecovered = (function() {
|
|
|
75531
75755
|
return "terms." + error;
|
|
75532
75756
|
}
|
|
75533
75757
|
}
|
|
75758
|
+
if (message.membership != null && message.hasOwnProperty("membership"))
|
|
75759
|
+
switch (message.membership) {
|
|
75760
|
+
default:
|
|
75761
|
+
return "membership: enum value expected";
|
|
75762
|
+
case 0:
|
|
75763
|
+
case 1:
|
|
75764
|
+
break;
|
|
75765
|
+
}
|
|
75534
75766
|
return null;
|
|
75535
75767
|
};
|
|
75536
75768
|
|
|
@@ -75699,6 +75931,16 @@ $root.SubscriptionRecovered = (function() {
|
|
|
75699
75931
|
message.terms[i] = $root.subscription.Term.fromObject(object.terms[i]);
|
|
75700
75932
|
}
|
|
75701
75933
|
}
|
|
75934
|
+
switch (object.membership) {
|
|
75935
|
+
case "PRIMARY":
|
|
75936
|
+
case 0:
|
|
75937
|
+
message.membership = 0;
|
|
75938
|
+
break;
|
|
75939
|
+
case "MEMBER":
|
|
75940
|
+
case 1:
|
|
75941
|
+
message.membership = 1;
|
|
75942
|
+
break;
|
|
75943
|
+
}
|
|
75702
75944
|
return message;
|
|
75703
75945
|
};
|
|
75704
75946
|
|
|
@@ -75752,6 +75994,7 @@ $root.SubscriptionRecovered = (function() {
|
|
|
75752
75994
|
} else
|
|
75753
75995
|
object.renewalCount = options.longs === String ? "0" : 0;
|
|
75754
75996
|
object.id = 0;
|
|
75997
|
+
object.membership = options.enums === String ? "PRIMARY" : 0;
|
|
75755
75998
|
}
|
|
75756
75999
|
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
75757
76000
|
if (typeof message.updatedOn === "number")
|
|
@@ -75802,6 +76045,8 @@ $root.SubscriptionRecovered = (function() {
|
|
|
75802
76045
|
for (var j = 0; j < message.terms.length; ++j)
|
|
75803
76046
|
object.terms[j] = $root.subscription.Term.toObject(message.terms[j], options);
|
|
75804
76047
|
}
|
|
76048
|
+
if (message.membership != null && message.hasOwnProperty("membership"))
|
|
76049
|
+
object.membership = options.enums === String ? $root.subscription.SubscriptionMembership[message.membership] : message.membership;
|
|
75805
76050
|
return object;
|
|
75806
76051
|
};
|
|
75807
76052
|
|
|
@@ -75839,6 +76084,7 @@ $root.SubscriptionAmended = (function() {
|
|
|
75839
76084
|
* @property {number|Long|null} [renewalCount] SubscriptionAmended renewalCount
|
|
75840
76085
|
* @property {number|null} [id] SubscriptionAmended id
|
|
75841
76086
|
* @property {Array.<subscription.ITerm>|null} [terms] SubscriptionAmended terms
|
|
76087
|
+
* @property {subscription.SubscriptionMembership|null} [membership] SubscriptionAmended membership
|
|
75842
76088
|
*/
|
|
75843
76089
|
|
|
75844
76090
|
/**
|
|
@@ -75970,6 +76216,14 @@ $root.SubscriptionAmended = (function() {
|
|
|
75970
76216
|
*/
|
|
75971
76217
|
SubscriptionAmended.prototype.terms = $util.emptyArray;
|
|
75972
76218
|
|
|
76219
|
+
/**
|
|
76220
|
+
* SubscriptionAmended membership.
|
|
76221
|
+
* @member {subscription.SubscriptionMembership} membership
|
|
76222
|
+
* @memberof SubscriptionAmended
|
|
76223
|
+
* @instance
|
|
76224
|
+
*/
|
|
76225
|
+
SubscriptionAmended.prototype.membership = 0;
|
|
76226
|
+
|
|
75973
76227
|
/**
|
|
75974
76228
|
* Creates a new SubscriptionAmended instance using the specified properties.
|
|
75975
76229
|
* @function create
|
|
@@ -76027,6 +76281,8 @@ $root.SubscriptionAmended = (function() {
|
|
|
76027
76281
|
if (message.terms != null && message.terms.length)
|
|
76028
76282
|
for (var i = 0; i < message.terms.length; ++i)
|
|
76029
76283
|
$root.subscription.Term.encode(message.terms[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
|
|
76284
|
+
if (message.membership != null && message.hasOwnProperty("membership"))
|
|
76285
|
+
writer.uint32(/* id 16, wireType 0 =*/128).int32(message.membership);
|
|
76030
76286
|
return writer;
|
|
76031
76287
|
};
|
|
76032
76288
|
|
|
@@ -76112,6 +76368,9 @@ $root.SubscriptionAmended = (function() {
|
|
|
76112
76368
|
message.terms = [];
|
|
76113
76369
|
message.terms.push($root.subscription.Term.decode(reader, reader.uint32()));
|
|
76114
76370
|
break;
|
|
76371
|
+
case 16:
|
|
76372
|
+
message.membership = reader.int32();
|
|
76373
|
+
break;
|
|
76115
76374
|
default:
|
|
76116
76375
|
reader.skipType(tag & 7);
|
|
76117
76376
|
break;
|
|
@@ -76231,6 +76490,14 @@ $root.SubscriptionAmended = (function() {
|
|
|
76231
76490
|
return "terms." + error;
|
|
76232
76491
|
}
|
|
76233
76492
|
}
|
|
76493
|
+
if (message.membership != null && message.hasOwnProperty("membership"))
|
|
76494
|
+
switch (message.membership) {
|
|
76495
|
+
default:
|
|
76496
|
+
return "membership: enum value expected";
|
|
76497
|
+
case 0:
|
|
76498
|
+
case 1:
|
|
76499
|
+
break;
|
|
76500
|
+
}
|
|
76234
76501
|
return null;
|
|
76235
76502
|
};
|
|
76236
76503
|
|
|
@@ -76399,6 +76666,16 @@ $root.SubscriptionAmended = (function() {
|
|
|
76399
76666
|
message.terms[i] = $root.subscription.Term.fromObject(object.terms[i]);
|
|
76400
76667
|
}
|
|
76401
76668
|
}
|
|
76669
|
+
switch (object.membership) {
|
|
76670
|
+
case "PRIMARY":
|
|
76671
|
+
case 0:
|
|
76672
|
+
message.membership = 0;
|
|
76673
|
+
break;
|
|
76674
|
+
case "MEMBER":
|
|
76675
|
+
case 1:
|
|
76676
|
+
message.membership = 1;
|
|
76677
|
+
break;
|
|
76678
|
+
}
|
|
76402
76679
|
return message;
|
|
76403
76680
|
};
|
|
76404
76681
|
|
|
@@ -76452,6 +76729,7 @@ $root.SubscriptionAmended = (function() {
|
|
|
76452
76729
|
} else
|
|
76453
76730
|
object.renewalCount = options.longs === String ? "0" : 0;
|
|
76454
76731
|
object.id = 0;
|
|
76732
|
+
object.membership = options.enums === String ? "PRIMARY" : 0;
|
|
76455
76733
|
}
|
|
76456
76734
|
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
76457
76735
|
if (typeof message.updatedOn === "number")
|
|
@@ -76502,6 +76780,8 @@ $root.SubscriptionAmended = (function() {
|
|
|
76502
76780
|
for (var j = 0; j < message.terms.length; ++j)
|
|
76503
76781
|
object.terms[j] = $root.subscription.Term.toObject(message.terms[j], options);
|
|
76504
76782
|
}
|
|
76783
|
+
if (message.membership != null && message.hasOwnProperty("membership"))
|
|
76784
|
+
object.membership = options.enums === String ? $root.subscription.SubscriptionMembership[message.membership] : message.membership;
|
|
76505
76785
|
return object;
|
|
76506
76786
|
};
|
|
76507
76787
|
|
package/package.json
CHANGED