@headspace/protos-events 1.68.0 → 1.69.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 +53 -0
- package/lib/index.js +447 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1175,6 +1175,11 @@ export namespace subscription {
|
|
|
1175
1175
|
CT_PASSIVE = 2
|
|
1176
1176
|
}
|
|
1177
1177
|
|
|
1178
|
+
/** Labels enum. */
|
|
1179
|
+
enum Labels {
|
|
1180
|
+
LABELS_FREE_TRIAL = 0
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1178
1183
|
/** SubscriptionState enum. */
|
|
1179
1184
|
enum SubscriptionState {
|
|
1180
1185
|
SUBSTATE_UNKNOWN = 0,
|
|
@@ -5131,6 +5136,9 @@ export interface ISubscriptionCreated {
|
|
|
5131
5136
|
|
|
5132
5137
|
/** SubscriptionCreated subscriptionState */
|
|
5133
5138
|
subscriptionState?: (subscription.SubscriptionState|null);
|
|
5139
|
+
|
|
5140
|
+
/** SubscriptionCreated labels */
|
|
5141
|
+
labels?: (subscription.Labels[]|null);
|
|
5134
5142
|
}
|
|
5135
5143
|
|
|
5136
5144
|
/** Represents a SubscriptionCreated. */
|
|
@@ -5175,6 +5183,9 @@ export class SubscriptionCreated implements ISubscriptionCreated {
|
|
|
5175
5183
|
/** SubscriptionCreated subscriptionState. */
|
|
5176
5184
|
public subscriptionState: subscription.SubscriptionState;
|
|
5177
5185
|
|
|
5186
|
+
/** SubscriptionCreated labels. */
|
|
5187
|
+
public labels: subscription.Labels[];
|
|
5188
|
+
|
|
5178
5189
|
/**
|
|
5179
5190
|
* Creates a new SubscriptionCreated instance using the specified properties.
|
|
5180
5191
|
* @param [properties] Properties to set
|
|
@@ -5287,6 +5298,9 @@ export interface ISubscriptionCancelled {
|
|
|
5287
5298
|
|
|
5288
5299
|
/** SubscriptionCancelled subscriptionState */
|
|
5289
5300
|
subscriptionState?: (subscription.SubscriptionState|null);
|
|
5301
|
+
|
|
5302
|
+
/** SubscriptionCancelled labels */
|
|
5303
|
+
labels?: (subscription.Labels[]|null);
|
|
5290
5304
|
}
|
|
5291
5305
|
|
|
5292
5306
|
/** Represents a SubscriptionCancelled. */
|
|
@@ -5337,6 +5351,9 @@ export class SubscriptionCancelled implements ISubscriptionCancelled {
|
|
|
5337
5351
|
/** SubscriptionCancelled subscriptionState. */
|
|
5338
5352
|
public subscriptionState: subscription.SubscriptionState;
|
|
5339
5353
|
|
|
5354
|
+
/** SubscriptionCancelled labels. */
|
|
5355
|
+
public labels: subscription.Labels[];
|
|
5356
|
+
|
|
5340
5357
|
/**
|
|
5341
5358
|
* Creates a new SubscriptionCancelled instance using the specified properties.
|
|
5342
5359
|
* @param [properties] Properties to set
|
|
@@ -5443,6 +5460,12 @@ export interface ISubscriptionRenewed {
|
|
|
5443
5460
|
|
|
5444
5461
|
/** SubscriptionRenewed subscriptionState */
|
|
5445
5462
|
subscriptionState?: (subscription.SubscriptionState|null);
|
|
5463
|
+
|
|
5464
|
+
/** SubscriptionRenewed labels */
|
|
5465
|
+
labels?: (subscription.Labels[]|null);
|
|
5466
|
+
|
|
5467
|
+
/** SubscriptionRenewed renewalCount */
|
|
5468
|
+
renewalCount?: (number|Long|null);
|
|
5446
5469
|
}
|
|
5447
5470
|
|
|
5448
5471
|
/** Represents a SubscriptionRenewed. */
|
|
@@ -5487,6 +5510,12 @@ export class SubscriptionRenewed implements ISubscriptionRenewed {
|
|
|
5487
5510
|
/** SubscriptionRenewed subscriptionState. */
|
|
5488
5511
|
public subscriptionState: subscription.SubscriptionState;
|
|
5489
5512
|
|
|
5513
|
+
/** SubscriptionRenewed labels. */
|
|
5514
|
+
public labels: subscription.Labels[];
|
|
5515
|
+
|
|
5516
|
+
/** SubscriptionRenewed renewalCount. */
|
|
5517
|
+
public renewalCount: (number|Long);
|
|
5518
|
+
|
|
5490
5519
|
/**
|
|
5491
5520
|
* Creates a new SubscriptionRenewed instance using the specified properties.
|
|
5492
5521
|
* @param [properties] Properties to set
|
|
@@ -5959,6 +5988,9 @@ export interface ISubscriptionGraced {
|
|
|
5959
5988
|
|
|
5960
5989
|
/** SubscriptionGraced subscriptionState */
|
|
5961
5990
|
subscriptionState?: (subscription.SubscriptionState|null);
|
|
5991
|
+
|
|
5992
|
+
/** SubscriptionGraced labels */
|
|
5993
|
+
labels?: (subscription.Labels[]|null);
|
|
5962
5994
|
}
|
|
5963
5995
|
|
|
5964
5996
|
/** Represents a SubscriptionGraced. */
|
|
@@ -6003,6 +6035,9 @@ export class SubscriptionGraced implements ISubscriptionGraced {
|
|
|
6003
6035
|
/** SubscriptionGraced subscriptionState. */
|
|
6004
6036
|
public subscriptionState: subscription.SubscriptionState;
|
|
6005
6037
|
|
|
6038
|
+
/** SubscriptionGraced labels. */
|
|
6039
|
+
public labels: subscription.Labels[];
|
|
6040
|
+
|
|
6006
6041
|
/**
|
|
6007
6042
|
* Creates a new SubscriptionGraced instance using the specified properties.
|
|
6008
6043
|
* @param [properties] Properties to set
|
|
@@ -6106,6 +6141,9 @@ export interface ISubscriptionStarted {
|
|
|
6106
6141
|
|
|
6107
6142
|
/** SubscriptionStarted subscriptionState */
|
|
6108
6143
|
subscriptionState?: (subscription.SubscriptionState|null);
|
|
6144
|
+
|
|
6145
|
+
/** SubscriptionStarted labels */
|
|
6146
|
+
labels?: (subscription.Labels[]|null);
|
|
6109
6147
|
}
|
|
6110
6148
|
|
|
6111
6149
|
/** Represents a SubscriptionStarted. */
|
|
@@ -6147,6 +6185,9 @@ export class SubscriptionStarted implements ISubscriptionStarted {
|
|
|
6147
6185
|
/** SubscriptionStarted subscriptionState. */
|
|
6148
6186
|
public subscriptionState: subscription.SubscriptionState;
|
|
6149
6187
|
|
|
6188
|
+
/** SubscriptionStarted labels. */
|
|
6189
|
+
public labels: subscription.Labels[];
|
|
6190
|
+
|
|
6150
6191
|
/**
|
|
6151
6192
|
* Creates a new SubscriptionStarted instance using the specified properties.
|
|
6152
6193
|
* @param [properties] Properties to set
|
|
@@ -6253,6 +6294,9 @@ export interface ISubscriptionEnded {
|
|
|
6253
6294
|
|
|
6254
6295
|
/** SubscriptionEnded subscriptionState */
|
|
6255
6296
|
subscriptionState?: (subscription.SubscriptionState|null);
|
|
6297
|
+
|
|
6298
|
+
/** SubscriptionEnded labels */
|
|
6299
|
+
labels?: (subscription.Labels[]|null);
|
|
6256
6300
|
}
|
|
6257
6301
|
|
|
6258
6302
|
/** Represents a SubscriptionEnded. */
|
|
@@ -6297,6 +6341,9 @@ export class SubscriptionEnded implements ISubscriptionEnded {
|
|
|
6297
6341
|
/** SubscriptionEnded subscriptionState. */
|
|
6298
6342
|
public subscriptionState: subscription.SubscriptionState;
|
|
6299
6343
|
|
|
6344
|
+
/** SubscriptionEnded labels. */
|
|
6345
|
+
public labels: subscription.Labels[];
|
|
6346
|
+
|
|
6300
6347
|
/**
|
|
6301
6348
|
* Creates a new SubscriptionEnded instance using the specified properties.
|
|
6302
6349
|
* @param [properties] Properties to set
|
|
@@ -6400,6 +6447,9 @@ export interface ISubscriptionRecovered {
|
|
|
6400
6447
|
|
|
6401
6448
|
/** SubscriptionRecovered subscriptionState */
|
|
6402
6449
|
subscriptionState?: (subscription.SubscriptionState|null);
|
|
6450
|
+
|
|
6451
|
+
/** SubscriptionRecovered labels */
|
|
6452
|
+
labels?: (subscription.Labels[]|null);
|
|
6403
6453
|
}
|
|
6404
6454
|
|
|
6405
6455
|
/** Represents a SubscriptionRecovered. */
|
|
@@ -6441,6 +6491,9 @@ export class SubscriptionRecovered implements ISubscriptionRecovered {
|
|
|
6441
6491
|
/** SubscriptionRecovered subscriptionState. */
|
|
6442
6492
|
public subscriptionState: subscription.SubscriptionState;
|
|
6443
6493
|
|
|
6494
|
+
/** SubscriptionRecovered labels. */
|
|
6495
|
+
public labels: subscription.Labels[];
|
|
6496
|
+
|
|
6444
6497
|
/**
|
|
6445
6498
|
* Creates a new SubscriptionRecovered instance using the specified properties.
|
|
6446
6499
|
* @param [properties] Properties to set
|
package/lib/index.js
CHANGED
|
@@ -2664,6 +2664,18 @@ $root.subscription = (function() {
|
|
|
2664
2664
|
return values;
|
|
2665
2665
|
})();
|
|
2666
2666
|
|
|
2667
|
+
/**
|
|
2668
|
+
* Labels enum.
|
|
2669
|
+
* @name subscription.Labels
|
|
2670
|
+
* @enum {string}
|
|
2671
|
+
* @property {number} LABELS_FREE_TRIAL=0 LABELS_FREE_TRIAL value
|
|
2672
|
+
*/
|
|
2673
|
+
subscription.Labels = (function() {
|
|
2674
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
2675
|
+
values[valuesById[0] = "LABELS_FREE_TRIAL"] = 0;
|
|
2676
|
+
return values;
|
|
2677
|
+
})();
|
|
2678
|
+
|
|
2667
2679
|
/**
|
|
2668
2680
|
* SubscriptionState enum.
|
|
2669
2681
|
* @name subscription.SubscriptionState
|
|
@@ -12435,6 +12447,7 @@ $root.SubscriptionCreated = (function() {
|
|
|
12435
12447
|
* @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionCreated autoRenewalStatus
|
|
12436
12448
|
* @property {subscription.IPlan|null} [plan] SubscriptionCreated plan
|
|
12437
12449
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionCreated subscriptionState
|
|
12450
|
+
* @property {Array.<subscription.Labels>|null} [labels] SubscriptionCreated labels
|
|
12438
12451
|
*/
|
|
12439
12452
|
|
|
12440
12453
|
/**
|
|
@@ -12446,6 +12459,7 @@ $root.SubscriptionCreated = (function() {
|
|
|
12446
12459
|
* @param {ISubscriptionCreated=} [properties] Properties to set
|
|
12447
12460
|
*/
|
|
12448
12461
|
function SubscriptionCreated(properties) {
|
|
12462
|
+
this.labels = [];
|
|
12449
12463
|
if (properties)
|
|
12450
12464
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
12451
12465
|
if (properties[keys[i]] != null)
|
|
@@ -12540,6 +12554,14 @@ $root.SubscriptionCreated = (function() {
|
|
|
12540
12554
|
*/
|
|
12541
12555
|
SubscriptionCreated.prototype.subscriptionState = 0;
|
|
12542
12556
|
|
|
12557
|
+
/**
|
|
12558
|
+
* SubscriptionCreated labels.
|
|
12559
|
+
* @member {Array.<subscription.Labels>} labels
|
|
12560
|
+
* @memberof SubscriptionCreated
|
|
12561
|
+
* @instance
|
|
12562
|
+
*/
|
|
12563
|
+
SubscriptionCreated.prototype.labels = $util.emptyArray;
|
|
12564
|
+
|
|
12543
12565
|
/**
|
|
12544
12566
|
* Creates a new SubscriptionCreated instance using the specified properties.
|
|
12545
12567
|
* @function create
|
|
@@ -12586,6 +12608,12 @@ $root.SubscriptionCreated = (function() {
|
|
|
12586
12608
|
$root.subscription.Plan.encode(message.plan, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
12587
12609
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
12588
12610
|
writer.uint32(/* id 11, wireType 0 =*/88).int32(message.subscriptionState);
|
|
12611
|
+
if (message.labels != null && message.labels.length) {
|
|
12612
|
+
writer.uint32(/* id 12, wireType 2 =*/98).fork();
|
|
12613
|
+
for (var i = 0; i < message.labels.length; ++i)
|
|
12614
|
+
writer.int32(message.labels[i]);
|
|
12615
|
+
writer.ldelim();
|
|
12616
|
+
}
|
|
12589
12617
|
return writer;
|
|
12590
12618
|
};
|
|
12591
12619
|
|
|
@@ -12653,6 +12681,16 @@ $root.SubscriptionCreated = (function() {
|
|
|
12653
12681
|
case 11:
|
|
12654
12682
|
message.subscriptionState = reader.int32();
|
|
12655
12683
|
break;
|
|
12684
|
+
case 12:
|
|
12685
|
+
if (!(message.labels && message.labels.length))
|
|
12686
|
+
message.labels = [];
|
|
12687
|
+
if ((tag & 7) === 2) {
|
|
12688
|
+
var end2 = reader.uint32() + reader.pos;
|
|
12689
|
+
while (reader.pos < end2)
|
|
12690
|
+
message.labels.push(reader.int32());
|
|
12691
|
+
} else
|
|
12692
|
+
message.labels.push(reader.int32());
|
|
12693
|
+
break;
|
|
12656
12694
|
default:
|
|
12657
12695
|
reader.skipType(tag & 7);
|
|
12658
12696
|
break;
|
|
@@ -12748,6 +12786,17 @@ $root.SubscriptionCreated = (function() {
|
|
|
12748
12786
|
case 5:
|
|
12749
12787
|
break;
|
|
12750
12788
|
}
|
|
12789
|
+
if (message.labels != null && message.hasOwnProperty("labels")) {
|
|
12790
|
+
if (!Array.isArray(message.labels))
|
|
12791
|
+
return "labels: array expected";
|
|
12792
|
+
for (var i = 0; i < message.labels.length; ++i)
|
|
12793
|
+
switch (message.labels[i]) {
|
|
12794
|
+
default:
|
|
12795
|
+
return "labels: enum value[] expected";
|
|
12796
|
+
case 0:
|
|
12797
|
+
break;
|
|
12798
|
+
}
|
|
12799
|
+
}
|
|
12751
12800
|
return null;
|
|
12752
12801
|
};
|
|
12753
12802
|
|
|
@@ -12880,6 +12929,19 @@ $root.SubscriptionCreated = (function() {
|
|
|
12880
12929
|
message.subscriptionState = 5;
|
|
12881
12930
|
break;
|
|
12882
12931
|
}
|
|
12932
|
+
if (object.labels) {
|
|
12933
|
+
if (!Array.isArray(object.labels))
|
|
12934
|
+
throw TypeError(".SubscriptionCreated.labels: array expected");
|
|
12935
|
+
message.labels = [];
|
|
12936
|
+
for (var i = 0; i < object.labels.length; ++i)
|
|
12937
|
+
switch (object.labels[i]) {
|
|
12938
|
+
default:
|
|
12939
|
+
case "LABELS_FREE_TRIAL":
|
|
12940
|
+
case 0:
|
|
12941
|
+
message.labels[i] = 0;
|
|
12942
|
+
break;
|
|
12943
|
+
}
|
|
12944
|
+
}
|
|
12883
12945
|
return message;
|
|
12884
12946
|
};
|
|
12885
12947
|
|
|
@@ -12896,6 +12958,8 @@ $root.SubscriptionCreated = (function() {
|
|
|
12896
12958
|
if (!options)
|
|
12897
12959
|
options = {};
|
|
12898
12960
|
var object = {};
|
|
12961
|
+
if (options.arrays || options.defaults)
|
|
12962
|
+
object.labels = [];
|
|
12899
12963
|
if (options.defaults) {
|
|
12900
12964
|
object.id = 0;
|
|
12901
12965
|
if ($util.Long) {
|
|
@@ -12959,6 +13023,11 @@ $root.SubscriptionCreated = (function() {
|
|
|
12959
13023
|
object.plan = $root.subscription.Plan.toObject(message.plan, options);
|
|
12960
13024
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
12961
13025
|
object.subscriptionState = options.enums === String ? $root.subscription.SubscriptionState[message.subscriptionState] : message.subscriptionState;
|
|
13026
|
+
if (message.labels && message.labels.length) {
|
|
13027
|
+
object.labels = [];
|
|
13028
|
+
for (var j = 0; j < message.labels.length; ++j)
|
|
13029
|
+
object.labels[j] = options.enums === String ? $root.subscription.Labels[message.labels[j]] : message.labels[j];
|
|
13030
|
+
}
|
|
12962
13031
|
return object;
|
|
12963
13032
|
};
|
|
12964
13033
|
|
|
@@ -12995,6 +13064,7 @@ $root.SubscriptionCancelled = (function() {
|
|
|
12995
13064
|
* @property {subscription.IPlan|null} [plan] SubscriptionCancelled plan
|
|
12996
13065
|
* @property {subscription.CancellationType|null} [cancellationType] SubscriptionCancelled cancellationType
|
|
12997
13066
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionCancelled subscriptionState
|
|
13067
|
+
* @property {Array.<subscription.Labels>|null} [labels] SubscriptionCancelled labels
|
|
12998
13068
|
*/
|
|
12999
13069
|
|
|
13000
13070
|
/**
|
|
@@ -13006,6 +13076,7 @@ $root.SubscriptionCancelled = (function() {
|
|
|
13006
13076
|
* @param {ISubscriptionCancelled=} [properties] Properties to set
|
|
13007
13077
|
*/
|
|
13008
13078
|
function SubscriptionCancelled(properties) {
|
|
13079
|
+
this.labels = [];
|
|
13009
13080
|
if (properties)
|
|
13010
13081
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
13011
13082
|
if (properties[keys[i]] != null)
|
|
@@ -13116,6 +13187,14 @@ $root.SubscriptionCancelled = (function() {
|
|
|
13116
13187
|
*/
|
|
13117
13188
|
SubscriptionCancelled.prototype.subscriptionState = 0;
|
|
13118
13189
|
|
|
13190
|
+
/**
|
|
13191
|
+
* SubscriptionCancelled labels.
|
|
13192
|
+
* @member {Array.<subscription.Labels>} labels
|
|
13193
|
+
* @memberof SubscriptionCancelled
|
|
13194
|
+
* @instance
|
|
13195
|
+
*/
|
|
13196
|
+
SubscriptionCancelled.prototype.labels = $util.emptyArray;
|
|
13197
|
+
|
|
13119
13198
|
/**
|
|
13120
13199
|
* Creates a new SubscriptionCancelled instance using the specified properties.
|
|
13121
13200
|
* @function create
|
|
@@ -13166,6 +13245,12 @@ $root.SubscriptionCancelled = (function() {
|
|
|
13166
13245
|
writer.uint32(/* id 12, wireType 0 =*/96).int32(message.cancellationType);
|
|
13167
13246
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
13168
13247
|
writer.uint32(/* id 13, wireType 0 =*/104).int32(message.subscriptionState);
|
|
13248
|
+
if (message.labels != null && message.labels.length) {
|
|
13249
|
+
writer.uint32(/* id 14, wireType 2 =*/114).fork();
|
|
13250
|
+
for (var i = 0; i < message.labels.length; ++i)
|
|
13251
|
+
writer.int32(message.labels[i]);
|
|
13252
|
+
writer.ldelim();
|
|
13253
|
+
}
|
|
13169
13254
|
return writer;
|
|
13170
13255
|
};
|
|
13171
13256
|
|
|
@@ -13239,6 +13324,16 @@ $root.SubscriptionCancelled = (function() {
|
|
|
13239
13324
|
case 13:
|
|
13240
13325
|
message.subscriptionState = reader.int32();
|
|
13241
13326
|
break;
|
|
13327
|
+
case 14:
|
|
13328
|
+
if (!(message.labels && message.labels.length))
|
|
13329
|
+
message.labels = [];
|
|
13330
|
+
if ((tag & 7) === 2) {
|
|
13331
|
+
var end2 = reader.uint32() + reader.pos;
|
|
13332
|
+
while (reader.pos < end2)
|
|
13333
|
+
message.labels.push(reader.int32());
|
|
13334
|
+
} else
|
|
13335
|
+
message.labels.push(reader.int32());
|
|
13336
|
+
break;
|
|
13242
13337
|
default:
|
|
13243
13338
|
reader.skipType(tag & 7);
|
|
13244
13339
|
break;
|
|
@@ -13348,6 +13443,17 @@ $root.SubscriptionCancelled = (function() {
|
|
|
13348
13443
|
case 5:
|
|
13349
13444
|
break;
|
|
13350
13445
|
}
|
|
13446
|
+
if (message.labels != null && message.hasOwnProperty("labels")) {
|
|
13447
|
+
if (!Array.isArray(message.labels))
|
|
13448
|
+
return "labels: array expected";
|
|
13449
|
+
for (var i = 0; i < message.labels.length; ++i)
|
|
13450
|
+
switch (message.labels[i]) {
|
|
13451
|
+
default:
|
|
13452
|
+
return "labels: enum value[] expected";
|
|
13453
|
+
case 0:
|
|
13454
|
+
break;
|
|
13455
|
+
}
|
|
13456
|
+
}
|
|
13351
13457
|
return null;
|
|
13352
13458
|
};
|
|
13353
13459
|
|
|
@@ -13499,6 +13605,19 @@ $root.SubscriptionCancelled = (function() {
|
|
|
13499
13605
|
message.subscriptionState = 5;
|
|
13500
13606
|
break;
|
|
13501
13607
|
}
|
|
13608
|
+
if (object.labels) {
|
|
13609
|
+
if (!Array.isArray(object.labels))
|
|
13610
|
+
throw TypeError(".SubscriptionCancelled.labels: array expected");
|
|
13611
|
+
message.labels = [];
|
|
13612
|
+
for (var i = 0; i < object.labels.length; ++i)
|
|
13613
|
+
switch (object.labels[i]) {
|
|
13614
|
+
default:
|
|
13615
|
+
case "LABELS_FREE_TRIAL":
|
|
13616
|
+
case 0:
|
|
13617
|
+
message.labels[i] = 0;
|
|
13618
|
+
break;
|
|
13619
|
+
}
|
|
13620
|
+
}
|
|
13502
13621
|
return message;
|
|
13503
13622
|
};
|
|
13504
13623
|
|
|
@@ -13515,6 +13634,8 @@ $root.SubscriptionCancelled = (function() {
|
|
|
13515
13634
|
if (!options)
|
|
13516
13635
|
options = {};
|
|
13517
13636
|
var object = {};
|
|
13637
|
+
if (options.arrays || options.defaults)
|
|
13638
|
+
object.labels = [];
|
|
13518
13639
|
if (options.defaults) {
|
|
13519
13640
|
object.id = 0;
|
|
13520
13641
|
if ($util.Long) {
|
|
@@ -13584,6 +13705,11 @@ $root.SubscriptionCancelled = (function() {
|
|
|
13584
13705
|
object.cancellationType = options.enums === String ? $root.subscription.CancellationType[message.cancellationType] : message.cancellationType;
|
|
13585
13706
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
13586
13707
|
object.subscriptionState = options.enums === String ? $root.subscription.SubscriptionState[message.subscriptionState] : message.subscriptionState;
|
|
13708
|
+
if (message.labels && message.labels.length) {
|
|
13709
|
+
object.labels = [];
|
|
13710
|
+
for (var j = 0; j < message.labels.length; ++j)
|
|
13711
|
+
object.labels[j] = options.enums === String ? $root.subscription.Labels[message.labels[j]] : message.labels[j];
|
|
13712
|
+
}
|
|
13587
13713
|
return object;
|
|
13588
13714
|
};
|
|
13589
13715
|
|
|
@@ -13618,6 +13744,8 @@ $root.SubscriptionRenewed = (function() {
|
|
|
13618
13744
|
* @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionRenewed autoRenewalStatus
|
|
13619
13745
|
* @property {subscription.IPlan|null} [plan] SubscriptionRenewed plan
|
|
13620
13746
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionRenewed subscriptionState
|
|
13747
|
+
* @property {Array.<subscription.Labels>|null} [labels] SubscriptionRenewed labels
|
|
13748
|
+
* @property {number|Long|null} [renewalCount] SubscriptionRenewed renewalCount
|
|
13621
13749
|
*/
|
|
13622
13750
|
|
|
13623
13751
|
/**
|
|
@@ -13629,6 +13757,7 @@ $root.SubscriptionRenewed = (function() {
|
|
|
13629
13757
|
* @param {ISubscriptionRenewed=} [properties] Properties to set
|
|
13630
13758
|
*/
|
|
13631
13759
|
function SubscriptionRenewed(properties) {
|
|
13760
|
+
this.labels = [];
|
|
13632
13761
|
if (properties)
|
|
13633
13762
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
13634
13763
|
if (properties[keys[i]] != null)
|
|
@@ -13723,6 +13852,22 @@ $root.SubscriptionRenewed = (function() {
|
|
|
13723
13852
|
*/
|
|
13724
13853
|
SubscriptionRenewed.prototype.subscriptionState = 0;
|
|
13725
13854
|
|
|
13855
|
+
/**
|
|
13856
|
+
* SubscriptionRenewed labels.
|
|
13857
|
+
* @member {Array.<subscription.Labels>} labels
|
|
13858
|
+
* @memberof SubscriptionRenewed
|
|
13859
|
+
* @instance
|
|
13860
|
+
*/
|
|
13861
|
+
SubscriptionRenewed.prototype.labels = $util.emptyArray;
|
|
13862
|
+
|
|
13863
|
+
/**
|
|
13864
|
+
* SubscriptionRenewed renewalCount.
|
|
13865
|
+
* @member {number|Long} renewalCount
|
|
13866
|
+
* @memberof SubscriptionRenewed
|
|
13867
|
+
* @instance
|
|
13868
|
+
*/
|
|
13869
|
+
SubscriptionRenewed.prototype.renewalCount = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
13870
|
+
|
|
13726
13871
|
/**
|
|
13727
13872
|
* Creates a new SubscriptionRenewed instance using the specified properties.
|
|
13728
13873
|
* @function create
|
|
@@ -13769,6 +13914,14 @@ $root.SubscriptionRenewed = (function() {
|
|
|
13769
13914
|
$root.subscription.Plan.encode(message.plan, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
13770
13915
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
13771
13916
|
writer.uint32(/* id 11, wireType 0 =*/88).int32(message.subscriptionState);
|
|
13917
|
+
if (message.labels != null && message.labels.length) {
|
|
13918
|
+
writer.uint32(/* id 14, wireType 2 =*/114).fork();
|
|
13919
|
+
for (var i = 0; i < message.labels.length; ++i)
|
|
13920
|
+
writer.int32(message.labels[i]);
|
|
13921
|
+
writer.ldelim();
|
|
13922
|
+
}
|
|
13923
|
+
if (message.renewalCount != null && message.hasOwnProperty("renewalCount"))
|
|
13924
|
+
writer.uint32(/* id 15, wireType 0 =*/120).uint64(message.renewalCount);
|
|
13772
13925
|
return writer;
|
|
13773
13926
|
};
|
|
13774
13927
|
|
|
@@ -13836,6 +13989,19 @@ $root.SubscriptionRenewed = (function() {
|
|
|
13836
13989
|
case 11:
|
|
13837
13990
|
message.subscriptionState = reader.int32();
|
|
13838
13991
|
break;
|
|
13992
|
+
case 14:
|
|
13993
|
+
if (!(message.labels && message.labels.length))
|
|
13994
|
+
message.labels = [];
|
|
13995
|
+
if ((tag & 7) === 2) {
|
|
13996
|
+
var end2 = reader.uint32() + reader.pos;
|
|
13997
|
+
while (reader.pos < end2)
|
|
13998
|
+
message.labels.push(reader.int32());
|
|
13999
|
+
} else
|
|
14000
|
+
message.labels.push(reader.int32());
|
|
14001
|
+
break;
|
|
14002
|
+
case 15:
|
|
14003
|
+
message.renewalCount = reader.uint64();
|
|
14004
|
+
break;
|
|
13839
14005
|
default:
|
|
13840
14006
|
reader.skipType(tag & 7);
|
|
13841
14007
|
break;
|
|
@@ -13931,6 +14097,20 @@ $root.SubscriptionRenewed = (function() {
|
|
|
13931
14097
|
case 5:
|
|
13932
14098
|
break;
|
|
13933
14099
|
}
|
|
14100
|
+
if (message.labels != null && message.hasOwnProperty("labels")) {
|
|
14101
|
+
if (!Array.isArray(message.labels))
|
|
14102
|
+
return "labels: array expected";
|
|
14103
|
+
for (var i = 0; i < message.labels.length; ++i)
|
|
14104
|
+
switch (message.labels[i]) {
|
|
14105
|
+
default:
|
|
14106
|
+
return "labels: enum value[] expected";
|
|
14107
|
+
case 0:
|
|
14108
|
+
break;
|
|
14109
|
+
}
|
|
14110
|
+
}
|
|
14111
|
+
if (message.renewalCount != null && message.hasOwnProperty("renewalCount"))
|
|
14112
|
+
if (!$util.isInteger(message.renewalCount) && !(message.renewalCount && $util.isInteger(message.renewalCount.low) && $util.isInteger(message.renewalCount.high)))
|
|
14113
|
+
return "renewalCount: integer|Long expected";
|
|
13934
14114
|
return null;
|
|
13935
14115
|
};
|
|
13936
14116
|
|
|
@@ -14063,6 +14243,28 @@ $root.SubscriptionRenewed = (function() {
|
|
|
14063
14243
|
message.subscriptionState = 5;
|
|
14064
14244
|
break;
|
|
14065
14245
|
}
|
|
14246
|
+
if (object.labels) {
|
|
14247
|
+
if (!Array.isArray(object.labels))
|
|
14248
|
+
throw TypeError(".SubscriptionRenewed.labels: array expected");
|
|
14249
|
+
message.labels = [];
|
|
14250
|
+
for (var i = 0; i < object.labels.length; ++i)
|
|
14251
|
+
switch (object.labels[i]) {
|
|
14252
|
+
default:
|
|
14253
|
+
case "LABELS_FREE_TRIAL":
|
|
14254
|
+
case 0:
|
|
14255
|
+
message.labels[i] = 0;
|
|
14256
|
+
break;
|
|
14257
|
+
}
|
|
14258
|
+
}
|
|
14259
|
+
if (object.renewalCount != null)
|
|
14260
|
+
if ($util.Long)
|
|
14261
|
+
(message.renewalCount = $util.Long.fromValue(object.renewalCount)).unsigned = true;
|
|
14262
|
+
else if (typeof object.renewalCount === "string")
|
|
14263
|
+
message.renewalCount = parseInt(object.renewalCount, 10);
|
|
14264
|
+
else if (typeof object.renewalCount === "number")
|
|
14265
|
+
message.renewalCount = object.renewalCount;
|
|
14266
|
+
else if (typeof object.renewalCount === "object")
|
|
14267
|
+
message.renewalCount = new $util.LongBits(object.renewalCount.low >>> 0, object.renewalCount.high >>> 0).toNumber(true);
|
|
14066
14268
|
return message;
|
|
14067
14269
|
};
|
|
14068
14270
|
|
|
@@ -14079,6 +14281,8 @@ $root.SubscriptionRenewed = (function() {
|
|
|
14079
14281
|
if (!options)
|
|
14080
14282
|
options = {};
|
|
14081
14283
|
var object = {};
|
|
14284
|
+
if (options.arrays || options.defaults)
|
|
14285
|
+
object.labels = [];
|
|
14082
14286
|
if (options.defaults) {
|
|
14083
14287
|
object.id = 0;
|
|
14084
14288
|
if ($util.Long) {
|
|
@@ -14107,6 +14311,11 @@ $root.SubscriptionRenewed = (function() {
|
|
|
14107
14311
|
object.autoRenewalStatus = options.enums === String ? "UNKNOWN_STATUS" : 0;
|
|
14108
14312
|
object.plan = null;
|
|
14109
14313
|
object.subscriptionState = options.enums === String ? "SUBSTATE_UNKNOWN" : 0;
|
|
14314
|
+
if ($util.Long) {
|
|
14315
|
+
var long = new $util.Long(0, 0, true);
|
|
14316
|
+
object.renewalCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
14317
|
+
} else
|
|
14318
|
+
object.renewalCount = options.longs === String ? "0" : 0;
|
|
14110
14319
|
}
|
|
14111
14320
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
14112
14321
|
object.id = message.id;
|
|
@@ -14142,6 +14351,16 @@ $root.SubscriptionRenewed = (function() {
|
|
|
14142
14351
|
object.plan = $root.subscription.Plan.toObject(message.plan, options);
|
|
14143
14352
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
14144
14353
|
object.subscriptionState = options.enums === String ? $root.subscription.SubscriptionState[message.subscriptionState] : message.subscriptionState;
|
|
14354
|
+
if (message.labels && message.labels.length) {
|
|
14355
|
+
object.labels = [];
|
|
14356
|
+
for (var j = 0; j < message.labels.length; ++j)
|
|
14357
|
+
object.labels[j] = options.enums === String ? $root.subscription.Labels[message.labels[j]] : message.labels[j];
|
|
14358
|
+
}
|
|
14359
|
+
if (message.renewalCount != null && message.hasOwnProperty("renewalCount"))
|
|
14360
|
+
if (typeof message.renewalCount === "number")
|
|
14361
|
+
object.renewalCount = options.longs === String ? String(message.renewalCount) : message.renewalCount;
|
|
14362
|
+
else
|
|
14363
|
+
object.renewalCount = options.longs === String ? $util.Long.prototype.toString.call(message.renewalCount) : options.longs === Number ? new $util.LongBits(message.renewalCount.low >>> 0, message.renewalCount.high >>> 0).toNumber(true) : message.renewalCount;
|
|
14145
14364
|
return object;
|
|
14146
14365
|
};
|
|
14147
14366
|
|
|
@@ -15198,6 +15417,7 @@ $root.SubscriptionGraced = (function() {
|
|
|
15198
15417
|
* @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionGraced autoRenewalStatus
|
|
15199
15418
|
* @property {subscription.IPlan|null} [plan] SubscriptionGraced plan
|
|
15200
15419
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionGraced subscriptionState
|
|
15420
|
+
* @property {Array.<subscription.Labels>|null} [labels] SubscriptionGraced labels
|
|
15201
15421
|
*/
|
|
15202
15422
|
|
|
15203
15423
|
/**
|
|
@@ -15209,6 +15429,7 @@ $root.SubscriptionGraced = (function() {
|
|
|
15209
15429
|
* @param {ISubscriptionGraced=} [properties] Properties to set
|
|
15210
15430
|
*/
|
|
15211
15431
|
function SubscriptionGraced(properties) {
|
|
15432
|
+
this.labels = [];
|
|
15212
15433
|
if (properties)
|
|
15213
15434
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
15214
15435
|
if (properties[keys[i]] != null)
|
|
@@ -15303,6 +15524,14 @@ $root.SubscriptionGraced = (function() {
|
|
|
15303
15524
|
*/
|
|
15304
15525
|
SubscriptionGraced.prototype.subscriptionState = 0;
|
|
15305
15526
|
|
|
15527
|
+
/**
|
|
15528
|
+
* SubscriptionGraced labels.
|
|
15529
|
+
* @member {Array.<subscription.Labels>} labels
|
|
15530
|
+
* @memberof SubscriptionGraced
|
|
15531
|
+
* @instance
|
|
15532
|
+
*/
|
|
15533
|
+
SubscriptionGraced.prototype.labels = $util.emptyArray;
|
|
15534
|
+
|
|
15306
15535
|
/**
|
|
15307
15536
|
* Creates a new SubscriptionGraced instance using the specified properties.
|
|
15308
15537
|
* @function create
|
|
@@ -15349,6 +15578,12 @@ $root.SubscriptionGraced = (function() {
|
|
|
15349
15578
|
$root.subscription.Plan.encode(message.plan, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
15350
15579
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
15351
15580
|
writer.uint32(/* id 11, wireType 0 =*/88).int32(message.subscriptionState);
|
|
15581
|
+
if (message.labels != null && message.labels.length) {
|
|
15582
|
+
writer.uint32(/* id 12, wireType 2 =*/98).fork();
|
|
15583
|
+
for (var i = 0; i < message.labels.length; ++i)
|
|
15584
|
+
writer.int32(message.labels[i]);
|
|
15585
|
+
writer.ldelim();
|
|
15586
|
+
}
|
|
15352
15587
|
return writer;
|
|
15353
15588
|
};
|
|
15354
15589
|
|
|
@@ -15416,6 +15651,16 @@ $root.SubscriptionGraced = (function() {
|
|
|
15416
15651
|
case 11:
|
|
15417
15652
|
message.subscriptionState = reader.int32();
|
|
15418
15653
|
break;
|
|
15654
|
+
case 12:
|
|
15655
|
+
if (!(message.labels && message.labels.length))
|
|
15656
|
+
message.labels = [];
|
|
15657
|
+
if ((tag & 7) === 2) {
|
|
15658
|
+
var end2 = reader.uint32() + reader.pos;
|
|
15659
|
+
while (reader.pos < end2)
|
|
15660
|
+
message.labels.push(reader.int32());
|
|
15661
|
+
} else
|
|
15662
|
+
message.labels.push(reader.int32());
|
|
15663
|
+
break;
|
|
15419
15664
|
default:
|
|
15420
15665
|
reader.skipType(tag & 7);
|
|
15421
15666
|
break;
|
|
@@ -15511,6 +15756,17 @@ $root.SubscriptionGraced = (function() {
|
|
|
15511
15756
|
case 5:
|
|
15512
15757
|
break;
|
|
15513
15758
|
}
|
|
15759
|
+
if (message.labels != null && message.hasOwnProperty("labels")) {
|
|
15760
|
+
if (!Array.isArray(message.labels))
|
|
15761
|
+
return "labels: array expected";
|
|
15762
|
+
for (var i = 0; i < message.labels.length; ++i)
|
|
15763
|
+
switch (message.labels[i]) {
|
|
15764
|
+
default:
|
|
15765
|
+
return "labels: enum value[] expected";
|
|
15766
|
+
case 0:
|
|
15767
|
+
break;
|
|
15768
|
+
}
|
|
15769
|
+
}
|
|
15514
15770
|
return null;
|
|
15515
15771
|
};
|
|
15516
15772
|
|
|
@@ -15643,6 +15899,19 @@ $root.SubscriptionGraced = (function() {
|
|
|
15643
15899
|
message.subscriptionState = 5;
|
|
15644
15900
|
break;
|
|
15645
15901
|
}
|
|
15902
|
+
if (object.labels) {
|
|
15903
|
+
if (!Array.isArray(object.labels))
|
|
15904
|
+
throw TypeError(".SubscriptionGraced.labels: array expected");
|
|
15905
|
+
message.labels = [];
|
|
15906
|
+
for (var i = 0; i < object.labels.length; ++i)
|
|
15907
|
+
switch (object.labels[i]) {
|
|
15908
|
+
default:
|
|
15909
|
+
case "LABELS_FREE_TRIAL":
|
|
15910
|
+
case 0:
|
|
15911
|
+
message.labels[i] = 0;
|
|
15912
|
+
break;
|
|
15913
|
+
}
|
|
15914
|
+
}
|
|
15646
15915
|
return message;
|
|
15647
15916
|
};
|
|
15648
15917
|
|
|
@@ -15659,6 +15928,8 @@ $root.SubscriptionGraced = (function() {
|
|
|
15659
15928
|
if (!options)
|
|
15660
15929
|
options = {};
|
|
15661
15930
|
var object = {};
|
|
15931
|
+
if (options.arrays || options.defaults)
|
|
15932
|
+
object.labels = [];
|
|
15662
15933
|
if (options.defaults) {
|
|
15663
15934
|
object.id = 0;
|
|
15664
15935
|
if ($util.Long) {
|
|
@@ -15722,6 +15993,11 @@ $root.SubscriptionGraced = (function() {
|
|
|
15722
15993
|
object.plan = $root.subscription.Plan.toObject(message.plan, options);
|
|
15723
15994
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
15724
15995
|
object.subscriptionState = options.enums === String ? $root.subscription.SubscriptionState[message.subscriptionState] : message.subscriptionState;
|
|
15996
|
+
if (message.labels && message.labels.length) {
|
|
15997
|
+
object.labels = [];
|
|
15998
|
+
for (var j = 0; j < message.labels.length; ++j)
|
|
15999
|
+
object.labels[j] = options.enums === String ? $root.subscription.Labels[message.labels[j]] : message.labels[j];
|
|
16000
|
+
}
|
|
15725
16001
|
return object;
|
|
15726
16002
|
};
|
|
15727
16003
|
|
|
@@ -15755,6 +16031,7 @@ $root.SubscriptionStarted = (function() {
|
|
|
15755
16031
|
* @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionStarted autoRenewalStatus
|
|
15756
16032
|
* @property {subscription.IPlan|null} [plan] SubscriptionStarted plan
|
|
15757
16033
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionStarted subscriptionState
|
|
16034
|
+
* @property {Array.<subscription.Labels>|null} [labels] SubscriptionStarted labels
|
|
15758
16035
|
*/
|
|
15759
16036
|
|
|
15760
16037
|
/**
|
|
@@ -15766,6 +16043,7 @@ $root.SubscriptionStarted = (function() {
|
|
|
15766
16043
|
* @param {ISubscriptionStarted=} [properties] Properties to set
|
|
15767
16044
|
*/
|
|
15768
16045
|
function SubscriptionStarted(properties) {
|
|
16046
|
+
this.labels = [];
|
|
15769
16047
|
if (properties)
|
|
15770
16048
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
15771
16049
|
if (properties[keys[i]] != null)
|
|
@@ -15852,6 +16130,14 @@ $root.SubscriptionStarted = (function() {
|
|
|
15852
16130
|
*/
|
|
15853
16131
|
SubscriptionStarted.prototype.subscriptionState = 0;
|
|
15854
16132
|
|
|
16133
|
+
/**
|
|
16134
|
+
* SubscriptionStarted labels.
|
|
16135
|
+
* @member {Array.<subscription.Labels>} labels
|
|
16136
|
+
* @memberof SubscriptionStarted
|
|
16137
|
+
* @instance
|
|
16138
|
+
*/
|
|
16139
|
+
SubscriptionStarted.prototype.labels = $util.emptyArray;
|
|
16140
|
+
|
|
15855
16141
|
/**
|
|
15856
16142
|
* Creates a new SubscriptionStarted instance using the specified properties.
|
|
15857
16143
|
* @function create
|
|
@@ -15896,6 +16182,12 @@ $root.SubscriptionStarted = (function() {
|
|
|
15896
16182
|
$root.subscription.Plan.encode(message.plan, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
15897
16183
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
15898
16184
|
writer.uint32(/* id 11, wireType 0 =*/88).int32(message.subscriptionState);
|
|
16185
|
+
if (message.labels != null && message.labels.length) {
|
|
16186
|
+
writer.uint32(/* id 12, wireType 2 =*/98).fork();
|
|
16187
|
+
for (var i = 0; i < message.labels.length; ++i)
|
|
16188
|
+
writer.int32(message.labels[i]);
|
|
16189
|
+
writer.ldelim();
|
|
16190
|
+
}
|
|
15899
16191
|
return writer;
|
|
15900
16192
|
};
|
|
15901
16193
|
|
|
@@ -15960,6 +16252,16 @@ $root.SubscriptionStarted = (function() {
|
|
|
15960
16252
|
case 11:
|
|
15961
16253
|
message.subscriptionState = reader.int32();
|
|
15962
16254
|
break;
|
|
16255
|
+
case 12:
|
|
16256
|
+
if (!(message.labels && message.labels.length))
|
|
16257
|
+
message.labels = [];
|
|
16258
|
+
if ((tag & 7) === 2) {
|
|
16259
|
+
var end2 = reader.uint32() + reader.pos;
|
|
16260
|
+
while (reader.pos < end2)
|
|
16261
|
+
message.labels.push(reader.int32());
|
|
16262
|
+
} else
|
|
16263
|
+
message.labels.push(reader.int32());
|
|
16264
|
+
break;
|
|
15963
16265
|
default:
|
|
15964
16266
|
reader.skipType(tag & 7);
|
|
15965
16267
|
break;
|
|
@@ -16052,6 +16354,17 @@ $root.SubscriptionStarted = (function() {
|
|
|
16052
16354
|
case 5:
|
|
16053
16355
|
break;
|
|
16054
16356
|
}
|
|
16357
|
+
if (message.labels != null && message.hasOwnProperty("labels")) {
|
|
16358
|
+
if (!Array.isArray(message.labels))
|
|
16359
|
+
return "labels: array expected";
|
|
16360
|
+
for (var i = 0; i < message.labels.length; ++i)
|
|
16361
|
+
switch (message.labels[i]) {
|
|
16362
|
+
default:
|
|
16363
|
+
return "labels: enum value[] expected";
|
|
16364
|
+
case 0:
|
|
16365
|
+
break;
|
|
16366
|
+
}
|
|
16367
|
+
}
|
|
16055
16368
|
return null;
|
|
16056
16369
|
};
|
|
16057
16370
|
|
|
@@ -16182,6 +16495,19 @@ $root.SubscriptionStarted = (function() {
|
|
|
16182
16495
|
message.subscriptionState = 5;
|
|
16183
16496
|
break;
|
|
16184
16497
|
}
|
|
16498
|
+
if (object.labels) {
|
|
16499
|
+
if (!Array.isArray(object.labels))
|
|
16500
|
+
throw TypeError(".SubscriptionStarted.labels: array expected");
|
|
16501
|
+
message.labels = [];
|
|
16502
|
+
for (var i = 0; i < object.labels.length; ++i)
|
|
16503
|
+
switch (object.labels[i]) {
|
|
16504
|
+
default:
|
|
16505
|
+
case "LABELS_FREE_TRIAL":
|
|
16506
|
+
case 0:
|
|
16507
|
+
message.labels[i] = 0;
|
|
16508
|
+
break;
|
|
16509
|
+
}
|
|
16510
|
+
}
|
|
16185
16511
|
return message;
|
|
16186
16512
|
};
|
|
16187
16513
|
|
|
@@ -16198,6 +16524,8 @@ $root.SubscriptionStarted = (function() {
|
|
|
16198
16524
|
if (!options)
|
|
16199
16525
|
options = {};
|
|
16200
16526
|
var object = {};
|
|
16527
|
+
if (options.arrays || options.defaults)
|
|
16528
|
+
object.labels = [];
|
|
16201
16529
|
if (options.defaults) {
|
|
16202
16530
|
if ($util.Long) {
|
|
16203
16531
|
var long = new $util.Long(0, 0, true);
|
|
@@ -16258,6 +16586,11 @@ $root.SubscriptionStarted = (function() {
|
|
|
16258
16586
|
object.plan = $root.subscription.Plan.toObject(message.plan, options);
|
|
16259
16587
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
16260
16588
|
object.subscriptionState = options.enums === String ? $root.subscription.SubscriptionState[message.subscriptionState] : message.subscriptionState;
|
|
16589
|
+
if (message.labels && message.labels.length) {
|
|
16590
|
+
object.labels = [];
|
|
16591
|
+
for (var j = 0; j < message.labels.length; ++j)
|
|
16592
|
+
object.labels[j] = options.enums === String ? $root.subscription.Labels[message.labels[j]] : message.labels[j];
|
|
16593
|
+
}
|
|
16261
16594
|
return object;
|
|
16262
16595
|
};
|
|
16263
16596
|
|
|
@@ -16292,6 +16625,7 @@ $root.SubscriptionEnded = (function() {
|
|
|
16292
16625
|
* @property {subscription.IPlan|null} [plan] SubscriptionEnded plan
|
|
16293
16626
|
* @property {subscription.CancellationType|null} [cancellationType] SubscriptionEnded cancellationType
|
|
16294
16627
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionEnded subscriptionState
|
|
16628
|
+
* @property {Array.<subscription.Labels>|null} [labels] SubscriptionEnded labels
|
|
16295
16629
|
*/
|
|
16296
16630
|
|
|
16297
16631
|
/**
|
|
@@ -16303,6 +16637,7 @@ $root.SubscriptionEnded = (function() {
|
|
|
16303
16637
|
* @param {ISubscriptionEnded=} [properties] Properties to set
|
|
16304
16638
|
*/
|
|
16305
16639
|
function SubscriptionEnded(properties) {
|
|
16640
|
+
this.labels = [];
|
|
16306
16641
|
if (properties)
|
|
16307
16642
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
16308
16643
|
if (properties[keys[i]] != null)
|
|
@@ -16397,6 +16732,14 @@ $root.SubscriptionEnded = (function() {
|
|
|
16397
16732
|
*/
|
|
16398
16733
|
SubscriptionEnded.prototype.subscriptionState = 0;
|
|
16399
16734
|
|
|
16735
|
+
/**
|
|
16736
|
+
* SubscriptionEnded labels.
|
|
16737
|
+
* @member {Array.<subscription.Labels>} labels
|
|
16738
|
+
* @memberof SubscriptionEnded
|
|
16739
|
+
* @instance
|
|
16740
|
+
*/
|
|
16741
|
+
SubscriptionEnded.prototype.labels = $util.emptyArray;
|
|
16742
|
+
|
|
16400
16743
|
/**
|
|
16401
16744
|
* Creates a new SubscriptionEnded instance using the specified properties.
|
|
16402
16745
|
* @function create
|
|
@@ -16443,6 +16786,12 @@ $root.SubscriptionEnded = (function() {
|
|
|
16443
16786
|
writer.uint32(/* id 11, wireType 0 =*/88).int32(message.cancellationType);
|
|
16444
16787
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
16445
16788
|
writer.uint32(/* id 12, wireType 0 =*/96).int32(message.subscriptionState);
|
|
16789
|
+
if (message.labels != null && message.labels.length) {
|
|
16790
|
+
writer.uint32(/* id 13, wireType 2 =*/106).fork();
|
|
16791
|
+
for (var i = 0; i < message.labels.length; ++i)
|
|
16792
|
+
writer.int32(message.labels[i]);
|
|
16793
|
+
writer.ldelim();
|
|
16794
|
+
}
|
|
16446
16795
|
return writer;
|
|
16447
16796
|
};
|
|
16448
16797
|
|
|
@@ -16510,6 +16859,16 @@ $root.SubscriptionEnded = (function() {
|
|
|
16510
16859
|
case 12:
|
|
16511
16860
|
message.subscriptionState = reader.int32();
|
|
16512
16861
|
break;
|
|
16862
|
+
case 13:
|
|
16863
|
+
if (!(message.labels && message.labels.length))
|
|
16864
|
+
message.labels = [];
|
|
16865
|
+
if ((tag & 7) === 2) {
|
|
16866
|
+
var end2 = reader.uint32() + reader.pos;
|
|
16867
|
+
while (reader.pos < end2)
|
|
16868
|
+
message.labels.push(reader.int32());
|
|
16869
|
+
} else
|
|
16870
|
+
message.labels.push(reader.int32());
|
|
16871
|
+
break;
|
|
16513
16872
|
default:
|
|
16514
16873
|
reader.skipType(tag & 7);
|
|
16515
16874
|
break;
|
|
@@ -16611,6 +16970,17 @@ $root.SubscriptionEnded = (function() {
|
|
|
16611
16970
|
case 5:
|
|
16612
16971
|
break;
|
|
16613
16972
|
}
|
|
16973
|
+
if (message.labels != null && message.hasOwnProperty("labels")) {
|
|
16974
|
+
if (!Array.isArray(message.labels))
|
|
16975
|
+
return "labels: array expected";
|
|
16976
|
+
for (var i = 0; i < message.labels.length; ++i)
|
|
16977
|
+
switch (message.labels[i]) {
|
|
16978
|
+
default:
|
|
16979
|
+
return "labels: enum value[] expected";
|
|
16980
|
+
case 0:
|
|
16981
|
+
break;
|
|
16982
|
+
}
|
|
16983
|
+
}
|
|
16614
16984
|
return null;
|
|
16615
16985
|
};
|
|
16616
16986
|
|
|
@@ -16755,6 +17125,19 @@ $root.SubscriptionEnded = (function() {
|
|
|
16755
17125
|
message.subscriptionState = 5;
|
|
16756
17126
|
break;
|
|
16757
17127
|
}
|
|
17128
|
+
if (object.labels) {
|
|
17129
|
+
if (!Array.isArray(object.labels))
|
|
17130
|
+
throw TypeError(".SubscriptionEnded.labels: array expected");
|
|
17131
|
+
message.labels = [];
|
|
17132
|
+
for (var i = 0; i < object.labels.length; ++i)
|
|
17133
|
+
switch (object.labels[i]) {
|
|
17134
|
+
default:
|
|
17135
|
+
case "LABELS_FREE_TRIAL":
|
|
17136
|
+
case 0:
|
|
17137
|
+
message.labels[i] = 0;
|
|
17138
|
+
break;
|
|
17139
|
+
}
|
|
17140
|
+
}
|
|
16758
17141
|
return message;
|
|
16759
17142
|
};
|
|
16760
17143
|
|
|
@@ -16771,6 +17154,8 @@ $root.SubscriptionEnded = (function() {
|
|
|
16771
17154
|
if (!options)
|
|
16772
17155
|
options = {};
|
|
16773
17156
|
var object = {};
|
|
17157
|
+
if (options.arrays || options.defaults)
|
|
17158
|
+
object.labels = [];
|
|
16774
17159
|
if (options.defaults) {
|
|
16775
17160
|
if ($util.Long) {
|
|
16776
17161
|
var long = new $util.Long(0, 0, true);
|
|
@@ -16834,6 +17219,11 @@ $root.SubscriptionEnded = (function() {
|
|
|
16834
17219
|
object.cancellationType = options.enums === String ? $root.subscription.CancellationType[message.cancellationType] : message.cancellationType;
|
|
16835
17220
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
16836
17221
|
object.subscriptionState = options.enums === String ? $root.subscription.SubscriptionState[message.subscriptionState] : message.subscriptionState;
|
|
17222
|
+
if (message.labels && message.labels.length) {
|
|
17223
|
+
object.labels = [];
|
|
17224
|
+
for (var j = 0; j < message.labels.length; ++j)
|
|
17225
|
+
object.labels[j] = options.enums === String ? $root.subscription.Labels[message.labels[j]] : message.labels[j];
|
|
17226
|
+
}
|
|
16837
17227
|
return object;
|
|
16838
17228
|
};
|
|
16839
17229
|
|
|
@@ -16867,6 +17257,7 @@ $root.SubscriptionRecovered = (function() {
|
|
|
16867
17257
|
* @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionRecovered autoRenewalStatus
|
|
16868
17258
|
* @property {subscription.IPlan|null} [plan] SubscriptionRecovered plan
|
|
16869
17259
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionRecovered subscriptionState
|
|
17260
|
+
* @property {Array.<subscription.Labels>|null} [labels] SubscriptionRecovered labels
|
|
16870
17261
|
*/
|
|
16871
17262
|
|
|
16872
17263
|
/**
|
|
@@ -16878,6 +17269,7 @@ $root.SubscriptionRecovered = (function() {
|
|
|
16878
17269
|
* @param {ISubscriptionRecovered=} [properties] Properties to set
|
|
16879
17270
|
*/
|
|
16880
17271
|
function SubscriptionRecovered(properties) {
|
|
17272
|
+
this.labels = [];
|
|
16881
17273
|
if (properties)
|
|
16882
17274
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
16883
17275
|
if (properties[keys[i]] != null)
|
|
@@ -16964,6 +17356,14 @@ $root.SubscriptionRecovered = (function() {
|
|
|
16964
17356
|
*/
|
|
16965
17357
|
SubscriptionRecovered.prototype.subscriptionState = 0;
|
|
16966
17358
|
|
|
17359
|
+
/**
|
|
17360
|
+
* SubscriptionRecovered labels.
|
|
17361
|
+
* @member {Array.<subscription.Labels>} labels
|
|
17362
|
+
* @memberof SubscriptionRecovered
|
|
17363
|
+
* @instance
|
|
17364
|
+
*/
|
|
17365
|
+
SubscriptionRecovered.prototype.labels = $util.emptyArray;
|
|
17366
|
+
|
|
16967
17367
|
/**
|
|
16968
17368
|
* Creates a new SubscriptionRecovered instance using the specified properties.
|
|
16969
17369
|
* @function create
|
|
@@ -17008,6 +17408,12 @@ $root.SubscriptionRecovered = (function() {
|
|
|
17008
17408
|
$root.subscription.Plan.encode(message.plan, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
17009
17409
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
17010
17410
|
writer.uint32(/* id 11, wireType 0 =*/88).int32(message.subscriptionState);
|
|
17411
|
+
if (message.labels != null && message.labels.length) {
|
|
17412
|
+
writer.uint32(/* id 12, wireType 2 =*/98).fork();
|
|
17413
|
+
for (var i = 0; i < message.labels.length; ++i)
|
|
17414
|
+
writer.int32(message.labels[i]);
|
|
17415
|
+
writer.ldelim();
|
|
17416
|
+
}
|
|
17011
17417
|
return writer;
|
|
17012
17418
|
};
|
|
17013
17419
|
|
|
@@ -17072,6 +17478,16 @@ $root.SubscriptionRecovered = (function() {
|
|
|
17072
17478
|
case 11:
|
|
17073
17479
|
message.subscriptionState = reader.int32();
|
|
17074
17480
|
break;
|
|
17481
|
+
case 12:
|
|
17482
|
+
if (!(message.labels && message.labels.length))
|
|
17483
|
+
message.labels = [];
|
|
17484
|
+
if ((tag & 7) === 2) {
|
|
17485
|
+
var end2 = reader.uint32() + reader.pos;
|
|
17486
|
+
while (reader.pos < end2)
|
|
17487
|
+
message.labels.push(reader.int32());
|
|
17488
|
+
} else
|
|
17489
|
+
message.labels.push(reader.int32());
|
|
17490
|
+
break;
|
|
17075
17491
|
default:
|
|
17076
17492
|
reader.skipType(tag & 7);
|
|
17077
17493
|
break;
|
|
@@ -17164,6 +17580,17 @@ $root.SubscriptionRecovered = (function() {
|
|
|
17164
17580
|
case 5:
|
|
17165
17581
|
break;
|
|
17166
17582
|
}
|
|
17583
|
+
if (message.labels != null && message.hasOwnProperty("labels")) {
|
|
17584
|
+
if (!Array.isArray(message.labels))
|
|
17585
|
+
return "labels: array expected";
|
|
17586
|
+
for (var i = 0; i < message.labels.length; ++i)
|
|
17587
|
+
switch (message.labels[i]) {
|
|
17588
|
+
default:
|
|
17589
|
+
return "labels: enum value[] expected";
|
|
17590
|
+
case 0:
|
|
17591
|
+
break;
|
|
17592
|
+
}
|
|
17593
|
+
}
|
|
17167
17594
|
return null;
|
|
17168
17595
|
};
|
|
17169
17596
|
|
|
@@ -17294,6 +17721,19 @@ $root.SubscriptionRecovered = (function() {
|
|
|
17294
17721
|
message.subscriptionState = 5;
|
|
17295
17722
|
break;
|
|
17296
17723
|
}
|
|
17724
|
+
if (object.labels) {
|
|
17725
|
+
if (!Array.isArray(object.labels))
|
|
17726
|
+
throw TypeError(".SubscriptionRecovered.labels: array expected");
|
|
17727
|
+
message.labels = [];
|
|
17728
|
+
for (var i = 0; i < object.labels.length; ++i)
|
|
17729
|
+
switch (object.labels[i]) {
|
|
17730
|
+
default:
|
|
17731
|
+
case "LABELS_FREE_TRIAL":
|
|
17732
|
+
case 0:
|
|
17733
|
+
message.labels[i] = 0;
|
|
17734
|
+
break;
|
|
17735
|
+
}
|
|
17736
|
+
}
|
|
17297
17737
|
return message;
|
|
17298
17738
|
};
|
|
17299
17739
|
|
|
@@ -17310,6 +17750,8 @@ $root.SubscriptionRecovered = (function() {
|
|
|
17310
17750
|
if (!options)
|
|
17311
17751
|
options = {};
|
|
17312
17752
|
var object = {};
|
|
17753
|
+
if (options.arrays || options.defaults)
|
|
17754
|
+
object.labels = [];
|
|
17313
17755
|
if (options.defaults) {
|
|
17314
17756
|
if ($util.Long) {
|
|
17315
17757
|
var long = new $util.Long(0, 0, true);
|
|
@@ -17370,6 +17812,11 @@ $root.SubscriptionRecovered = (function() {
|
|
|
17370
17812
|
object.plan = $root.subscription.Plan.toObject(message.plan, options);
|
|
17371
17813
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
17372
17814
|
object.subscriptionState = options.enums === String ? $root.subscription.SubscriptionState[message.subscriptionState] : message.subscriptionState;
|
|
17815
|
+
if (message.labels && message.labels.length) {
|
|
17816
|
+
object.labels = [];
|
|
17817
|
+
for (var j = 0; j < message.labels.length; ++j)
|
|
17818
|
+
object.labels[j] = options.enums === String ? $root.subscription.Labels[message.labels[j]] : message.labels[j];
|
|
17819
|
+
}
|
|
17373
17820
|
return object;
|
|
17374
17821
|
};
|
|
17375
17822
|
|
package/package.json
CHANGED