@headspace/protos-events 1.67.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 +59 -0
- package/lib/index.js +469 -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,
|
|
@@ -3175,6 +3180,9 @@ export interface IBuddyAccepted {
|
|
|
3175
3180
|
|
|
3176
3181
|
/** BuddyAccepted buddyAcceptedTitle */
|
|
3177
3182
|
buddyAcceptedTitle?: (string|null);
|
|
3183
|
+
|
|
3184
|
+
/** BuddyAccepted buddyUserId */
|
|
3185
|
+
buddyUserId?: (string|null);
|
|
3178
3186
|
}
|
|
3179
3187
|
|
|
3180
3188
|
/** Represents a BuddyAccepted. */
|
|
@@ -3201,6 +3209,9 @@ export class BuddyAccepted implements IBuddyAccepted {
|
|
|
3201
3209
|
/** BuddyAccepted buddyAcceptedTitle. */
|
|
3202
3210
|
public buddyAcceptedTitle: string;
|
|
3203
3211
|
|
|
3212
|
+
/** BuddyAccepted buddyUserId. */
|
|
3213
|
+
public buddyUserId: string;
|
|
3214
|
+
|
|
3204
3215
|
/**
|
|
3205
3216
|
* Creates a new BuddyAccepted instance using the specified properties.
|
|
3206
3217
|
* @param [properties] Properties to set
|
|
@@ -5125,6 +5136,9 @@ export interface ISubscriptionCreated {
|
|
|
5125
5136
|
|
|
5126
5137
|
/** SubscriptionCreated subscriptionState */
|
|
5127
5138
|
subscriptionState?: (subscription.SubscriptionState|null);
|
|
5139
|
+
|
|
5140
|
+
/** SubscriptionCreated labels */
|
|
5141
|
+
labels?: (subscription.Labels[]|null);
|
|
5128
5142
|
}
|
|
5129
5143
|
|
|
5130
5144
|
/** Represents a SubscriptionCreated. */
|
|
@@ -5169,6 +5183,9 @@ export class SubscriptionCreated implements ISubscriptionCreated {
|
|
|
5169
5183
|
/** SubscriptionCreated subscriptionState. */
|
|
5170
5184
|
public subscriptionState: subscription.SubscriptionState;
|
|
5171
5185
|
|
|
5186
|
+
/** SubscriptionCreated labels. */
|
|
5187
|
+
public labels: subscription.Labels[];
|
|
5188
|
+
|
|
5172
5189
|
/**
|
|
5173
5190
|
* Creates a new SubscriptionCreated instance using the specified properties.
|
|
5174
5191
|
* @param [properties] Properties to set
|
|
@@ -5281,6 +5298,9 @@ export interface ISubscriptionCancelled {
|
|
|
5281
5298
|
|
|
5282
5299
|
/** SubscriptionCancelled subscriptionState */
|
|
5283
5300
|
subscriptionState?: (subscription.SubscriptionState|null);
|
|
5301
|
+
|
|
5302
|
+
/** SubscriptionCancelled labels */
|
|
5303
|
+
labels?: (subscription.Labels[]|null);
|
|
5284
5304
|
}
|
|
5285
5305
|
|
|
5286
5306
|
/** Represents a SubscriptionCancelled. */
|
|
@@ -5331,6 +5351,9 @@ export class SubscriptionCancelled implements ISubscriptionCancelled {
|
|
|
5331
5351
|
/** SubscriptionCancelled subscriptionState. */
|
|
5332
5352
|
public subscriptionState: subscription.SubscriptionState;
|
|
5333
5353
|
|
|
5354
|
+
/** SubscriptionCancelled labels. */
|
|
5355
|
+
public labels: subscription.Labels[];
|
|
5356
|
+
|
|
5334
5357
|
/**
|
|
5335
5358
|
* Creates a new SubscriptionCancelled instance using the specified properties.
|
|
5336
5359
|
* @param [properties] Properties to set
|
|
@@ -5437,6 +5460,12 @@ export interface ISubscriptionRenewed {
|
|
|
5437
5460
|
|
|
5438
5461
|
/** SubscriptionRenewed subscriptionState */
|
|
5439
5462
|
subscriptionState?: (subscription.SubscriptionState|null);
|
|
5463
|
+
|
|
5464
|
+
/** SubscriptionRenewed labels */
|
|
5465
|
+
labels?: (subscription.Labels[]|null);
|
|
5466
|
+
|
|
5467
|
+
/** SubscriptionRenewed renewalCount */
|
|
5468
|
+
renewalCount?: (number|Long|null);
|
|
5440
5469
|
}
|
|
5441
5470
|
|
|
5442
5471
|
/** Represents a SubscriptionRenewed. */
|
|
@@ -5481,6 +5510,12 @@ export class SubscriptionRenewed implements ISubscriptionRenewed {
|
|
|
5481
5510
|
/** SubscriptionRenewed subscriptionState. */
|
|
5482
5511
|
public subscriptionState: subscription.SubscriptionState;
|
|
5483
5512
|
|
|
5513
|
+
/** SubscriptionRenewed labels. */
|
|
5514
|
+
public labels: subscription.Labels[];
|
|
5515
|
+
|
|
5516
|
+
/** SubscriptionRenewed renewalCount. */
|
|
5517
|
+
public renewalCount: (number|Long);
|
|
5518
|
+
|
|
5484
5519
|
/**
|
|
5485
5520
|
* Creates a new SubscriptionRenewed instance using the specified properties.
|
|
5486
5521
|
* @param [properties] Properties to set
|
|
@@ -5953,6 +5988,9 @@ export interface ISubscriptionGraced {
|
|
|
5953
5988
|
|
|
5954
5989
|
/** SubscriptionGraced subscriptionState */
|
|
5955
5990
|
subscriptionState?: (subscription.SubscriptionState|null);
|
|
5991
|
+
|
|
5992
|
+
/** SubscriptionGraced labels */
|
|
5993
|
+
labels?: (subscription.Labels[]|null);
|
|
5956
5994
|
}
|
|
5957
5995
|
|
|
5958
5996
|
/** Represents a SubscriptionGraced. */
|
|
@@ -5997,6 +6035,9 @@ export class SubscriptionGraced implements ISubscriptionGraced {
|
|
|
5997
6035
|
/** SubscriptionGraced subscriptionState. */
|
|
5998
6036
|
public subscriptionState: subscription.SubscriptionState;
|
|
5999
6037
|
|
|
6038
|
+
/** SubscriptionGraced labels. */
|
|
6039
|
+
public labels: subscription.Labels[];
|
|
6040
|
+
|
|
6000
6041
|
/**
|
|
6001
6042
|
* Creates a new SubscriptionGraced instance using the specified properties.
|
|
6002
6043
|
* @param [properties] Properties to set
|
|
@@ -6100,6 +6141,9 @@ export interface ISubscriptionStarted {
|
|
|
6100
6141
|
|
|
6101
6142
|
/** SubscriptionStarted subscriptionState */
|
|
6102
6143
|
subscriptionState?: (subscription.SubscriptionState|null);
|
|
6144
|
+
|
|
6145
|
+
/** SubscriptionStarted labels */
|
|
6146
|
+
labels?: (subscription.Labels[]|null);
|
|
6103
6147
|
}
|
|
6104
6148
|
|
|
6105
6149
|
/** Represents a SubscriptionStarted. */
|
|
@@ -6141,6 +6185,9 @@ export class SubscriptionStarted implements ISubscriptionStarted {
|
|
|
6141
6185
|
/** SubscriptionStarted subscriptionState. */
|
|
6142
6186
|
public subscriptionState: subscription.SubscriptionState;
|
|
6143
6187
|
|
|
6188
|
+
/** SubscriptionStarted labels. */
|
|
6189
|
+
public labels: subscription.Labels[];
|
|
6190
|
+
|
|
6144
6191
|
/**
|
|
6145
6192
|
* Creates a new SubscriptionStarted instance using the specified properties.
|
|
6146
6193
|
* @param [properties] Properties to set
|
|
@@ -6247,6 +6294,9 @@ export interface ISubscriptionEnded {
|
|
|
6247
6294
|
|
|
6248
6295
|
/** SubscriptionEnded subscriptionState */
|
|
6249
6296
|
subscriptionState?: (subscription.SubscriptionState|null);
|
|
6297
|
+
|
|
6298
|
+
/** SubscriptionEnded labels */
|
|
6299
|
+
labels?: (subscription.Labels[]|null);
|
|
6250
6300
|
}
|
|
6251
6301
|
|
|
6252
6302
|
/** Represents a SubscriptionEnded. */
|
|
@@ -6291,6 +6341,9 @@ export class SubscriptionEnded implements ISubscriptionEnded {
|
|
|
6291
6341
|
/** SubscriptionEnded subscriptionState. */
|
|
6292
6342
|
public subscriptionState: subscription.SubscriptionState;
|
|
6293
6343
|
|
|
6344
|
+
/** SubscriptionEnded labels. */
|
|
6345
|
+
public labels: subscription.Labels[];
|
|
6346
|
+
|
|
6294
6347
|
/**
|
|
6295
6348
|
* Creates a new SubscriptionEnded instance using the specified properties.
|
|
6296
6349
|
* @param [properties] Properties to set
|
|
@@ -6394,6 +6447,9 @@ export interface ISubscriptionRecovered {
|
|
|
6394
6447
|
|
|
6395
6448
|
/** SubscriptionRecovered subscriptionState */
|
|
6396
6449
|
subscriptionState?: (subscription.SubscriptionState|null);
|
|
6450
|
+
|
|
6451
|
+
/** SubscriptionRecovered labels */
|
|
6452
|
+
labels?: (subscription.Labels[]|null);
|
|
6397
6453
|
}
|
|
6398
6454
|
|
|
6399
6455
|
/** Represents a SubscriptionRecovered. */
|
|
@@ -6435,6 +6491,9 @@ export class SubscriptionRecovered implements ISubscriptionRecovered {
|
|
|
6435
6491
|
/** SubscriptionRecovered subscriptionState. */
|
|
6436
6492
|
public subscriptionState: subscription.SubscriptionState;
|
|
6437
6493
|
|
|
6494
|
+
/** SubscriptionRecovered labels. */
|
|
6495
|
+
public labels: subscription.Labels[];
|
|
6496
|
+
|
|
6438
6497
|
/**
|
|
6439
6498
|
* Creates a new SubscriptionRecovered instance using the specified properties.
|
|
6440
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
|
|
@@ -7671,6 +7683,7 @@ $root.BuddyAccepted = (function() {
|
|
|
7671
7683
|
* @property {string|null} [deepLink] BuddyAccepted deepLink
|
|
7672
7684
|
* @property {string|null} [buddyAcceptedText] BuddyAccepted buddyAcceptedText
|
|
7673
7685
|
* @property {string|null} [buddyAcceptedTitle] BuddyAccepted buddyAcceptedTitle
|
|
7686
|
+
* @property {string|null} [buddyUserId] BuddyAccepted buddyUserId
|
|
7674
7687
|
*/
|
|
7675
7688
|
|
|
7676
7689
|
/**
|
|
@@ -7728,6 +7741,14 @@ $root.BuddyAccepted = (function() {
|
|
|
7728
7741
|
*/
|
|
7729
7742
|
BuddyAccepted.prototype.buddyAcceptedTitle = "";
|
|
7730
7743
|
|
|
7744
|
+
/**
|
|
7745
|
+
* BuddyAccepted buddyUserId.
|
|
7746
|
+
* @member {string} buddyUserId
|
|
7747
|
+
* @memberof BuddyAccepted
|
|
7748
|
+
* @instance
|
|
7749
|
+
*/
|
|
7750
|
+
BuddyAccepted.prototype.buddyUserId = "";
|
|
7751
|
+
|
|
7731
7752
|
/**
|
|
7732
7753
|
* Creates a new BuddyAccepted instance using the specified properties.
|
|
7733
7754
|
* @function create
|
|
@@ -7762,6 +7783,8 @@ $root.BuddyAccepted = (function() {
|
|
|
7762
7783
|
writer.uint32(/* id 4, wireType 2 =*/34).string(message.buddyAcceptedText);
|
|
7763
7784
|
if (message.buddyAcceptedTitle != null && message.hasOwnProperty("buddyAcceptedTitle"))
|
|
7764
7785
|
writer.uint32(/* id 5, wireType 2 =*/42).string(message.buddyAcceptedTitle);
|
|
7786
|
+
if (message.buddyUserId != null && message.hasOwnProperty("buddyUserId"))
|
|
7787
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.buddyUserId);
|
|
7765
7788
|
return writer;
|
|
7766
7789
|
};
|
|
7767
7790
|
|
|
@@ -7811,6 +7834,9 @@ $root.BuddyAccepted = (function() {
|
|
|
7811
7834
|
case 5:
|
|
7812
7835
|
message.buddyAcceptedTitle = reader.string();
|
|
7813
7836
|
break;
|
|
7837
|
+
case 6:
|
|
7838
|
+
message.buddyUserId = reader.string();
|
|
7839
|
+
break;
|
|
7814
7840
|
default:
|
|
7815
7841
|
reader.skipType(tag & 7);
|
|
7816
7842
|
break;
|
|
@@ -7861,6 +7887,9 @@ $root.BuddyAccepted = (function() {
|
|
|
7861
7887
|
if (message.buddyAcceptedTitle != null && message.hasOwnProperty("buddyAcceptedTitle"))
|
|
7862
7888
|
if (!$util.isString(message.buddyAcceptedTitle))
|
|
7863
7889
|
return "buddyAcceptedTitle: string expected";
|
|
7890
|
+
if (message.buddyUserId != null && message.hasOwnProperty("buddyUserId"))
|
|
7891
|
+
if (!$util.isString(message.buddyUserId))
|
|
7892
|
+
return "buddyUserId: string expected";
|
|
7864
7893
|
return null;
|
|
7865
7894
|
};
|
|
7866
7895
|
|
|
@@ -7886,6 +7915,8 @@ $root.BuddyAccepted = (function() {
|
|
|
7886
7915
|
message.buddyAcceptedText = String(object.buddyAcceptedText);
|
|
7887
7916
|
if (object.buddyAcceptedTitle != null)
|
|
7888
7917
|
message.buddyAcceptedTitle = String(object.buddyAcceptedTitle);
|
|
7918
|
+
if (object.buddyUserId != null)
|
|
7919
|
+
message.buddyUserId = String(object.buddyUserId);
|
|
7889
7920
|
return message;
|
|
7890
7921
|
};
|
|
7891
7922
|
|
|
@@ -7908,6 +7939,7 @@ $root.BuddyAccepted = (function() {
|
|
|
7908
7939
|
object.deepLink = "";
|
|
7909
7940
|
object.buddyAcceptedText = "";
|
|
7910
7941
|
object.buddyAcceptedTitle = "";
|
|
7942
|
+
object.buddyUserId = "";
|
|
7911
7943
|
}
|
|
7912
7944
|
if (message.buddyName != null && message.hasOwnProperty("buddyName"))
|
|
7913
7945
|
object.buddyName = message.buddyName;
|
|
@@ -7919,6 +7951,8 @@ $root.BuddyAccepted = (function() {
|
|
|
7919
7951
|
object.buddyAcceptedText = message.buddyAcceptedText;
|
|
7920
7952
|
if (message.buddyAcceptedTitle != null && message.hasOwnProperty("buddyAcceptedTitle"))
|
|
7921
7953
|
object.buddyAcceptedTitle = message.buddyAcceptedTitle;
|
|
7954
|
+
if (message.buddyUserId != null && message.hasOwnProperty("buddyUserId"))
|
|
7955
|
+
object.buddyUserId = message.buddyUserId;
|
|
7922
7956
|
return object;
|
|
7923
7957
|
};
|
|
7924
7958
|
|
|
@@ -12413,6 +12447,7 @@ $root.SubscriptionCreated = (function() {
|
|
|
12413
12447
|
* @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionCreated autoRenewalStatus
|
|
12414
12448
|
* @property {subscription.IPlan|null} [plan] SubscriptionCreated plan
|
|
12415
12449
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionCreated subscriptionState
|
|
12450
|
+
* @property {Array.<subscription.Labels>|null} [labels] SubscriptionCreated labels
|
|
12416
12451
|
*/
|
|
12417
12452
|
|
|
12418
12453
|
/**
|
|
@@ -12424,6 +12459,7 @@ $root.SubscriptionCreated = (function() {
|
|
|
12424
12459
|
* @param {ISubscriptionCreated=} [properties] Properties to set
|
|
12425
12460
|
*/
|
|
12426
12461
|
function SubscriptionCreated(properties) {
|
|
12462
|
+
this.labels = [];
|
|
12427
12463
|
if (properties)
|
|
12428
12464
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
12429
12465
|
if (properties[keys[i]] != null)
|
|
@@ -12518,6 +12554,14 @@ $root.SubscriptionCreated = (function() {
|
|
|
12518
12554
|
*/
|
|
12519
12555
|
SubscriptionCreated.prototype.subscriptionState = 0;
|
|
12520
12556
|
|
|
12557
|
+
/**
|
|
12558
|
+
* SubscriptionCreated labels.
|
|
12559
|
+
* @member {Array.<subscription.Labels>} labels
|
|
12560
|
+
* @memberof SubscriptionCreated
|
|
12561
|
+
* @instance
|
|
12562
|
+
*/
|
|
12563
|
+
SubscriptionCreated.prototype.labels = $util.emptyArray;
|
|
12564
|
+
|
|
12521
12565
|
/**
|
|
12522
12566
|
* Creates a new SubscriptionCreated instance using the specified properties.
|
|
12523
12567
|
* @function create
|
|
@@ -12564,6 +12608,12 @@ $root.SubscriptionCreated = (function() {
|
|
|
12564
12608
|
$root.subscription.Plan.encode(message.plan, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
12565
12609
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
12566
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
|
+
}
|
|
12567
12617
|
return writer;
|
|
12568
12618
|
};
|
|
12569
12619
|
|
|
@@ -12631,6 +12681,16 @@ $root.SubscriptionCreated = (function() {
|
|
|
12631
12681
|
case 11:
|
|
12632
12682
|
message.subscriptionState = reader.int32();
|
|
12633
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;
|
|
12634
12694
|
default:
|
|
12635
12695
|
reader.skipType(tag & 7);
|
|
12636
12696
|
break;
|
|
@@ -12726,6 +12786,17 @@ $root.SubscriptionCreated = (function() {
|
|
|
12726
12786
|
case 5:
|
|
12727
12787
|
break;
|
|
12728
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
|
+
}
|
|
12729
12800
|
return null;
|
|
12730
12801
|
};
|
|
12731
12802
|
|
|
@@ -12858,6 +12929,19 @@ $root.SubscriptionCreated = (function() {
|
|
|
12858
12929
|
message.subscriptionState = 5;
|
|
12859
12930
|
break;
|
|
12860
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
|
+
}
|
|
12861
12945
|
return message;
|
|
12862
12946
|
};
|
|
12863
12947
|
|
|
@@ -12874,6 +12958,8 @@ $root.SubscriptionCreated = (function() {
|
|
|
12874
12958
|
if (!options)
|
|
12875
12959
|
options = {};
|
|
12876
12960
|
var object = {};
|
|
12961
|
+
if (options.arrays || options.defaults)
|
|
12962
|
+
object.labels = [];
|
|
12877
12963
|
if (options.defaults) {
|
|
12878
12964
|
object.id = 0;
|
|
12879
12965
|
if ($util.Long) {
|
|
@@ -12937,6 +13023,11 @@ $root.SubscriptionCreated = (function() {
|
|
|
12937
13023
|
object.plan = $root.subscription.Plan.toObject(message.plan, options);
|
|
12938
13024
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
12939
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
|
+
}
|
|
12940
13031
|
return object;
|
|
12941
13032
|
};
|
|
12942
13033
|
|
|
@@ -12973,6 +13064,7 @@ $root.SubscriptionCancelled = (function() {
|
|
|
12973
13064
|
* @property {subscription.IPlan|null} [plan] SubscriptionCancelled plan
|
|
12974
13065
|
* @property {subscription.CancellationType|null} [cancellationType] SubscriptionCancelled cancellationType
|
|
12975
13066
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionCancelled subscriptionState
|
|
13067
|
+
* @property {Array.<subscription.Labels>|null} [labels] SubscriptionCancelled labels
|
|
12976
13068
|
*/
|
|
12977
13069
|
|
|
12978
13070
|
/**
|
|
@@ -12984,6 +13076,7 @@ $root.SubscriptionCancelled = (function() {
|
|
|
12984
13076
|
* @param {ISubscriptionCancelled=} [properties] Properties to set
|
|
12985
13077
|
*/
|
|
12986
13078
|
function SubscriptionCancelled(properties) {
|
|
13079
|
+
this.labels = [];
|
|
12987
13080
|
if (properties)
|
|
12988
13081
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
12989
13082
|
if (properties[keys[i]] != null)
|
|
@@ -13094,6 +13187,14 @@ $root.SubscriptionCancelled = (function() {
|
|
|
13094
13187
|
*/
|
|
13095
13188
|
SubscriptionCancelled.prototype.subscriptionState = 0;
|
|
13096
13189
|
|
|
13190
|
+
/**
|
|
13191
|
+
* SubscriptionCancelled labels.
|
|
13192
|
+
* @member {Array.<subscription.Labels>} labels
|
|
13193
|
+
* @memberof SubscriptionCancelled
|
|
13194
|
+
* @instance
|
|
13195
|
+
*/
|
|
13196
|
+
SubscriptionCancelled.prototype.labels = $util.emptyArray;
|
|
13197
|
+
|
|
13097
13198
|
/**
|
|
13098
13199
|
* Creates a new SubscriptionCancelled instance using the specified properties.
|
|
13099
13200
|
* @function create
|
|
@@ -13144,6 +13245,12 @@ $root.SubscriptionCancelled = (function() {
|
|
|
13144
13245
|
writer.uint32(/* id 12, wireType 0 =*/96).int32(message.cancellationType);
|
|
13145
13246
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
13146
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
|
+
}
|
|
13147
13254
|
return writer;
|
|
13148
13255
|
};
|
|
13149
13256
|
|
|
@@ -13217,6 +13324,16 @@ $root.SubscriptionCancelled = (function() {
|
|
|
13217
13324
|
case 13:
|
|
13218
13325
|
message.subscriptionState = reader.int32();
|
|
13219
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;
|
|
13220
13337
|
default:
|
|
13221
13338
|
reader.skipType(tag & 7);
|
|
13222
13339
|
break;
|
|
@@ -13326,6 +13443,17 @@ $root.SubscriptionCancelled = (function() {
|
|
|
13326
13443
|
case 5:
|
|
13327
13444
|
break;
|
|
13328
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
|
+
}
|
|
13329
13457
|
return null;
|
|
13330
13458
|
};
|
|
13331
13459
|
|
|
@@ -13477,6 +13605,19 @@ $root.SubscriptionCancelled = (function() {
|
|
|
13477
13605
|
message.subscriptionState = 5;
|
|
13478
13606
|
break;
|
|
13479
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
|
+
}
|
|
13480
13621
|
return message;
|
|
13481
13622
|
};
|
|
13482
13623
|
|
|
@@ -13493,6 +13634,8 @@ $root.SubscriptionCancelled = (function() {
|
|
|
13493
13634
|
if (!options)
|
|
13494
13635
|
options = {};
|
|
13495
13636
|
var object = {};
|
|
13637
|
+
if (options.arrays || options.defaults)
|
|
13638
|
+
object.labels = [];
|
|
13496
13639
|
if (options.defaults) {
|
|
13497
13640
|
object.id = 0;
|
|
13498
13641
|
if ($util.Long) {
|
|
@@ -13562,6 +13705,11 @@ $root.SubscriptionCancelled = (function() {
|
|
|
13562
13705
|
object.cancellationType = options.enums === String ? $root.subscription.CancellationType[message.cancellationType] : message.cancellationType;
|
|
13563
13706
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
13564
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
|
+
}
|
|
13565
13713
|
return object;
|
|
13566
13714
|
};
|
|
13567
13715
|
|
|
@@ -13596,6 +13744,8 @@ $root.SubscriptionRenewed = (function() {
|
|
|
13596
13744
|
* @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionRenewed autoRenewalStatus
|
|
13597
13745
|
* @property {subscription.IPlan|null} [plan] SubscriptionRenewed plan
|
|
13598
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
|
|
13599
13749
|
*/
|
|
13600
13750
|
|
|
13601
13751
|
/**
|
|
@@ -13607,6 +13757,7 @@ $root.SubscriptionRenewed = (function() {
|
|
|
13607
13757
|
* @param {ISubscriptionRenewed=} [properties] Properties to set
|
|
13608
13758
|
*/
|
|
13609
13759
|
function SubscriptionRenewed(properties) {
|
|
13760
|
+
this.labels = [];
|
|
13610
13761
|
if (properties)
|
|
13611
13762
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
13612
13763
|
if (properties[keys[i]] != null)
|
|
@@ -13701,6 +13852,22 @@ $root.SubscriptionRenewed = (function() {
|
|
|
13701
13852
|
*/
|
|
13702
13853
|
SubscriptionRenewed.prototype.subscriptionState = 0;
|
|
13703
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
|
+
|
|
13704
13871
|
/**
|
|
13705
13872
|
* Creates a new SubscriptionRenewed instance using the specified properties.
|
|
13706
13873
|
* @function create
|
|
@@ -13747,6 +13914,14 @@ $root.SubscriptionRenewed = (function() {
|
|
|
13747
13914
|
$root.subscription.Plan.encode(message.plan, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
13748
13915
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
13749
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);
|
|
13750
13925
|
return writer;
|
|
13751
13926
|
};
|
|
13752
13927
|
|
|
@@ -13814,6 +13989,19 @@ $root.SubscriptionRenewed = (function() {
|
|
|
13814
13989
|
case 11:
|
|
13815
13990
|
message.subscriptionState = reader.int32();
|
|
13816
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;
|
|
13817
14005
|
default:
|
|
13818
14006
|
reader.skipType(tag & 7);
|
|
13819
14007
|
break;
|
|
@@ -13909,6 +14097,20 @@ $root.SubscriptionRenewed = (function() {
|
|
|
13909
14097
|
case 5:
|
|
13910
14098
|
break;
|
|
13911
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";
|
|
13912
14114
|
return null;
|
|
13913
14115
|
};
|
|
13914
14116
|
|
|
@@ -14041,6 +14243,28 @@ $root.SubscriptionRenewed = (function() {
|
|
|
14041
14243
|
message.subscriptionState = 5;
|
|
14042
14244
|
break;
|
|
14043
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);
|
|
14044
14268
|
return message;
|
|
14045
14269
|
};
|
|
14046
14270
|
|
|
@@ -14057,6 +14281,8 @@ $root.SubscriptionRenewed = (function() {
|
|
|
14057
14281
|
if (!options)
|
|
14058
14282
|
options = {};
|
|
14059
14283
|
var object = {};
|
|
14284
|
+
if (options.arrays || options.defaults)
|
|
14285
|
+
object.labels = [];
|
|
14060
14286
|
if (options.defaults) {
|
|
14061
14287
|
object.id = 0;
|
|
14062
14288
|
if ($util.Long) {
|
|
@@ -14085,6 +14311,11 @@ $root.SubscriptionRenewed = (function() {
|
|
|
14085
14311
|
object.autoRenewalStatus = options.enums === String ? "UNKNOWN_STATUS" : 0;
|
|
14086
14312
|
object.plan = null;
|
|
14087
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;
|
|
14088
14319
|
}
|
|
14089
14320
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
14090
14321
|
object.id = message.id;
|
|
@@ -14120,6 +14351,16 @@ $root.SubscriptionRenewed = (function() {
|
|
|
14120
14351
|
object.plan = $root.subscription.Plan.toObject(message.plan, options);
|
|
14121
14352
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
14122
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;
|
|
14123
14364
|
return object;
|
|
14124
14365
|
};
|
|
14125
14366
|
|
|
@@ -15176,6 +15417,7 @@ $root.SubscriptionGraced = (function() {
|
|
|
15176
15417
|
* @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionGraced autoRenewalStatus
|
|
15177
15418
|
* @property {subscription.IPlan|null} [plan] SubscriptionGraced plan
|
|
15178
15419
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionGraced subscriptionState
|
|
15420
|
+
* @property {Array.<subscription.Labels>|null} [labels] SubscriptionGraced labels
|
|
15179
15421
|
*/
|
|
15180
15422
|
|
|
15181
15423
|
/**
|
|
@@ -15187,6 +15429,7 @@ $root.SubscriptionGraced = (function() {
|
|
|
15187
15429
|
* @param {ISubscriptionGraced=} [properties] Properties to set
|
|
15188
15430
|
*/
|
|
15189
15431
|
function SubscriptionGraced(properties) {
|
|
15432
|
+
this.labels = [];
|
|
15190
15433
|
if (properties)
|
|
15191
15434
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
15192
15435
|
if (properties[keys[i]] != null)
|
|
@@ -15281,6 +15524,14 @@ $root.SubscriptionGraced = (function() {
|
|
|
15281
15524
|
*/
|
|
15282
15525
|
SubscriptionGraced.prototype.subscriptionState = 0;
|
|
15283
15526
|
|
|
15527
|
+
/**
|
|
15528
|
+
* SubscriptionGraced labels.
|
|
15529
|
+
* @member {Array.<subscription.Labels>} labels
|
|
15530
|
+
* @memberof SubscriptionGraced
|
|
15531
|
+
* @instance
|
|
15532
|
+
*/
|
|
15533
|
+
SubscriptionGraced.prototype.labels = $util.emptyArray;
|
|
15534
|
+
|
|
15284
15535
|
/**
|
|
15285
15536
|
* Creates a new SubscriptionGraced instance using the specified properties.
|
|
15286
15537
|
* @function create
|
|
@@ -15327,6 +15578,12 @@ $root.SubscriptionGraced = (function() {
|
|
|
15327
15578
|
$root.subscription.Plan.encode(message.plan, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
15328
15579
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
15329
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
|
+
}
|
|
15330
15587
|
return writer;
|
|
15331
15588
|
};
|
|
15332
15589
|
|
|
@@ -15394,6 +15651,16 @@ $root.SubscriptionGraced = (function() {
|
|
|
15394
15651
|
case 11:
|
|
15395
15652
|
message.subscriptionState = reader.int32();
|
|
15396
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;
|
|
15397
15664
|
default:
|
|
15398
15665
|
reader.skipType(tag & 7);
|
|
15399
15666
|
break;
|
|
@@ -15489,6 +15756,17 @@ $root.SubscriptionGraced = (function() {
|
|
|
15489
15756
|
case 5:
|
|
15490
15757
|
break;
|
|
15491
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
|
+
}
|
|
15492
15770
|
return null;
|
|
15493
15771
|
};
|
|
15494
15772
|
|
|
@@ -15621,6 +15899,19 @@ $root.SubscriptionGraced = (function() {
|
|
|
15621
15899
|
message.subscriptionState = 5;
|
|
15622
15900
|
break;
|
|
15623
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
|
+
}
|
|
15624
15915
|
return message;
|
|
15625
15916
|
};
|
|
15626
15917
|
|
|
@@ -15637,6 +15928,8 @@ $root.SubscriptionGraced = (function() {
|
|
|
15637
15928
|
if (!options)
|
|
15638
15929
|
options = {};
|
|
15639
15930
|
var object = {};
|
|
15931
|
+
if (options.arrays || options.defaults)
|
|
15932
|
+
object.labels = [];
|
|
15640
15933
|
if (options.defaults) {
|
|
15641
15934
|
object.id = 0;
|
|
15642
15935
|
if ($util.Long) {
|
|
@@ -15700,6 +15993,11 @@ $root.SubscriptionGraced = (function() {
|
|
|
15700
15993
|
object.plan = $root.subscription.Plan.toObject(message.plan, options);
|
|
15701
15994
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
15702
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
|
+
}
|
|
15703
16001
|
return object;
|
|
15704
16002
|
};
|
|
15705
16003
|
|
|
@@ -15733,6 +16031,7 @@ $root.SubscriptionStarted = (function() {
|
|
|
15733
16031
|
* @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionStarted autoRenewalStatus
|
|
15734
16032
|
* @property {subscription.IPlan|null} [plan] SubscriptionStarted plan
|
|
15735
16033
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionStarted subscriptionState
|
|
16034
|
+
* @property {Array.<subscription.Labels>|null} [labels] SubscriptionStarted labels
|
|
15736
16035
|
*/
|
|
15737
16036
|
|
|
15738
16037
|
/**
|
|
@@ -15744,6 +16043,7 @@ $root.SubscriptionStarted = (function() {
|
|
|
15744
16043
|
* @param {ISubscriptionStarted=} [properties] Properties to set
|
|
15745
16044
|
*/
|
|
15746
16045
|
function SubscriptionStarted(properties) {
|
|
16046
|
+
this.labels = [];
|
|
15747
16047
|
if (properties)
|
|
15748
16048
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
15749
16049
|
if (properties[keys[i]] != null)
|
|
@@ -15830,6 +16130,14 @@ $root.SubscriptionStarted = (function() {
|
|
|
15830
16130
|
*/
|
|
15831
16131
|
SubscriptionStarted.prototype.subscriptionState = 0;
|
|
15832
16132
|
|
|
16133
|
+
/**
|
|
16134
|
+
* SubscriptionStarted labels.
|
|
16135
|
+
* @member {Array.<subscription.Labels>} labels
|
|
16136
|
+
* @memberof SubscriptionStarted
|
|
16137
|
+
* @instance
|
|
16138
|
+
*/
|
|
16139
|
+
SubscriptionStarted.prototype.labels = $util.emptyArray;
|
|
16140
|
+
|
|
15833
16141
|
/**
|
|
15834
16142
|
* Creates a new SubscriptionStarted instance using the specified properties.
|
|
15835
16143
|
* @function create
|
|
@@ -15874,6 +16182,12 @@ $root.SubscriptionStarted = (function() {
|
|
|
15874
16182
|
$root.subscription.Plan.encode(message.plan, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
15875
16183
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
15876
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
|
+
}
|
|
15877
16191
|
return writer;
|
|
15878
16192
|
};
|
|
15879
16193
|
|
|
@@ -15938,6 +16252,16 @@ $root.SubscriptionStarted = (function() {
|
|
|
15938
16252
|
case 11:
|
|
15939
16253
|
message.subscriptionState = reader.int32();
|
|
15940
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;
|
|
15941
16265
|
default:
|
|
15942
16266
|
reader.skipType(tag & 7);
|
|
15943
16267
|
break;
|
|
@@ -16030,6 +16354,17 @@ $root.SubscriptionStarted = (function() {
|
|
|
16030
16354
|
case 5:
|
|
16031
16355
|
break;
|
|
16032
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
|
+
}
|
|
16033
16368
|
return null;
|
|
16034
16369
|
};
|
|
16035
16370
|
|
|
@@ -16160,6 +16495,19 @@ $root.SubscriptionStarted = (function() {
|
|
|
16160
16495
|
message.subscriptionState = 5;
|
|
16161
16496
|
break;
|
|
16162
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
|
+
}
|
|
16163
16511
|
return message;
|
|
16164
16512
|
};
|
|
16165
16513
|
|
|
@@ -16176,6 +16524,8 @@ $root.SubscriptionStarted = (function() {
|
|
|
16176
16524
|
if (!options)
|
|
16177
16525
|
options = {};
|
|
16178
16526
|
var object = {};
|
|
16527
|
+
if (options.arrays || options.defaults)
|
|
16528
|
+
object.labels = [];
|
|
16179
16529
|
if (options.defaults) {
|
|
16180
16530
|
if ($util.Long) {
|
|
16181
16531
|
var long = new $util.Long(0, 0, true);
|
|
@@ -16236,6 +16586,11 @@ $root.SubscriptionStarted = (function() {
|
|
|
16236
16586
|
object.plan = $root.subscription.Plan.toObject(message.plan, options);
|
|
16237
16587
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
16238
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
|
+
}
|
|
16239
16594
|
return object;
|
|
16240
16595
|
};
|
|
16241
16596
|
|
|
@@ -16270,6 +16625,7 @@ $root.SubscriptionEnded = (function() {
|
|
|
16270
16625
|
* @property {subscription.IPlan|null} [plan] SubscriptionEnded plan
|
|
16271
16626
|
* @property {subscription.CancellationType|null} [cancellationType] SubscriptionEnded cancellationType
|
|
16272
16627
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionEnded subscriptionState
|
|
16628
|
+
* @property {Array.<subscription.Labels>|null} [labels] SubscriptionEnded labels
|
|
16273
16629
|
*/
|
|
16274
16630
|
|
|
16275
16631
|
/**
|
|
@@ -16281,6 +16637,7 @@ $root.SubscriptionEnded = (function() {
|
|
|
16281
16637
|
* @param {ISubscriptionEnded=} [properties] Properties to set
|
|
16282
16638
|
*/
|
|
16283
16639
|
function SubscriptionEnded(properties) {
|
|
16640
|
+
this.labels = [];
|
|
16284
16641
|
if (properties)
|
|
16285
16642
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
16286
16643
|
if (properties[keys[i]] != null)
|
|
@@ -16375,6 +16732,14 @@ $root.SubscriptionEnded = (function() {
|
|
|
16375
16732
|
*/
|
|
16376
16733
|
SubscriptionEnded.prototype.subscriptionState = 0;
|
|
16377
16734
|
|
|
16735
|
+
/**
|
|
16736
|
+
* SubscriptionEnded labels.
|
|
16737
|
+
* @member {Array.<subscription.Labels>} labels
|
|
16738
|
+
* @memberof SubscriptionEnded
|
|
16739
|
+
* @instance
|
|
16740
|
+
*/
|
|
16741
|
+
SubscriptionEnded.prototype.labels = $util.emptyArray;
|
|
16742
|
+
|
|
16378
16743
|
/**
|
|
16379
16744
|
* Creates a new SubscriptionEnded instance using the specified properties.
|
|
16380
16745
|
* @function create
|
|
@@ -16421,6 +16786,12 @@ $root.SubscriptionEnded = (function() {
|
|
|
16421
16786
|
writer.uint32(/* id 11, wireType 0 =*/88).int32(message.cancellationType);
|
|
16422
16787
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
16423
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
|
+
}
|
|
16424
16795
|
return writer;
|
|
16425
16796
|
};
|
|
16426
16797
|
|
|
@@ -16488,6 +16859,16 @@ $root.SubscriptionEnded = (function() {
|
|
|
16488
16859
|
case 12:
|
|
16489
16860
|
message.subscriptionState = reader.int32();
|
|
16490
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;
|
|
16491
16872
|
default:
|
|
16492
16873
|
reader.skipType(tag & 7);
|
|
16493
16874
|
break;
|
|
@@ -16589,6 +16970,17 @@ $root.SubscriptionEnded = (function() {
|
|
|
16589
16970
|
case 5:
|
|
16590
16971
|
break;
|
|
16591
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
|
+
}
|
|
16592
16984
|
return null;
|
|
16593
16985
|
};
|
|
16594
16986
|
|
|
@@ -16733,6 +17125,19 @@ $root.SubscriptionEnded = (function() {
|
|
|
16733
17125
|
message.subscriptionState = 5;
|
|
16734
17126
|
break;
|
|
16735
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
|
+
}
|
|
16736
17141
|
return message;
|
|
16737
17142
|
};
|
|
16738
17143
|
|
|
@@ -16749,6 +17154,8 @@ $root.SubscriptionEnded = (function() {
|
|
|
16749
17154
|
if (!options)
|
|
16750
17155
|
options = {};
|
|
16751
17156
|
var object = {};
|
|
17157
|
+
if (options.arrays || options.defaults)
|
|
17158
|
+
object.labels = [];
|
|
16752
17159
|
if (options.defaults) {
|
|
16753
17160
|
if ($util.Long) {
|
|
16754
17161
|
var long = new $util.Long(0, 0, true);
|
|
@@ -16812,6 +17219,11 @@ $root.SubscriptionEnded = (function() {
|
|
|
16812
17219
|
object.cancellationType = options.enums === String ? $root.subscription.CancellationType[message.cancellationType] : message.cancellationType;
|
|
16813
17220
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
16814
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
|
+
}
|
|
16815
17227
|
return object;
|
|
16816
17228
|
};
|
|
16817
17229
|
|
|
@@ -16845,6 +17257,7 @@ $root.SubscriptionRecovered = (function() {
|
|
|
16845
17257
|
* @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionRecovered autoRenewalStatus
|
|
16846
17258
|
* @property {subscription.IPlan|null} [plan] SubscriptionRecovered plan
|
|
16847
17259
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionRecovered subscriptionState
|
|
17260
|
+
* @property {Array.<subscription.Labels>|null} [labels] SubscriptionRecovered labels
|
|
16848
17261
|
*/
|
|
16849
17262
|
|
|
16850
17263
|
/**
|
|
@@ -16856,6 +17269,7 @@ $root.SubscriptionRecovered = (function() {
|
|
|
16856
17269
|
* @param {ISubscriptionRecovered=} [properties] Properties to set
|
|
16857
17270
|
*/
|
|
16858
17271
|
function SubscriptionRecovered(properties) {
|
|
17272
|
+
this.labels = [];
|
|
16859
17273
|
if (properties)
|
|
16860
17274
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
16861
17275
|
if (properties[keys[i]] != null)
|
|
@@ -16942,6 +17356,14 @@ $root.SubscriptionRecovered = (function() {
|
|
|
16942
17356
|
*/
|
|
16943
17357
|
SubscriptionRecovered.prototype.subscriptionState = 0;
|
|
16944
17358
|
|
|
17359
|
+
/**
|
|
17360
|
+
* SubscriptionRecovered labels.
|
|
17361
|
+
* @member {Array.<subscription.Labels>} labels
|
|
17362
|
+
* @memberof SubscriptionRecovered
|
|
17363
|
+
* @instance
|
|
17364
|
+
*/
|
|
17365
|
+
SubscriptionRecovered.prototype.labels = $util.emptyArray;
|
|
17366
|
+
|
|
16945
17367
|
/**
|
|
16946
17368
|
* Creates a new SubscriptionRecovered instance using the specified properties.
|
|
16947
17369
|
* @function create
|
|
@@ -16986,6 +17408,12 @@ $root.SubscriptionRecovered = (function() {
|
|
|
16986
17408
|
$root.subscription.Plan.encode(message.plan, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
16987
17409
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
16988
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
|
+
}
|
|
16989
17417
|
return writer;
|
|
16990
17418
|
};
|
|
16991
17419
|
|
|
@@ -17050,6 +17478,16 @@ $root.SubscriptionRecovered = (function() {
|
|
|
17050
17478
|
case 11:
|
|
17051
17479
|
message.subscriptionState = reader.int32();
|
|
17052
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;
|
|
17053
17491
|
default:
|
|
17054
17492
|
reader.skipType(tag & 7);
|
|
17055
17493
|
break;
|
|
@@ -17142,6 +17580,17 @@ $root.SubscriptionRecovered = (function() {
|
|
|
17142
17580
|
case 5:
|
|
17143
17581
|
break;
|
|
17144
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
|
+
}
|
|
17145
17594
|
return null;
|
|
17146
17595
|
};
|
|
17147
17596
|
|
|
@@ -17272,6 +17721,19 @@ $root.SubscriptionRecovered = (function() {
|
|
|
17272
17721
|
message.subscriptionState = 5;
|
|
17273
17722
|
break;
|
|
17274
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
|
+
}
|
|
17275
17737
|
return message;
|
|
17276
17738
|
};
|
|
17277
17739
|
|
|
@@ -17288,6 +17750,8 @@ $root.SubscriptionRecovered = (function() {
|
|
|
17288
17750
|
if (!options)
|
|
17289
17751
|
options = {};
|
|
17290
17752
|
var object = {};
|
|
17753
|
+
if (options.arrays || options.defaults)
|
|
17754
|
+
object.labels = [];
|
|
17291
17755
|
if (options.defaults) {
|
|
17292
17756
|
if ($util.Long) {
|
|
17293
17757
|
var long = new $util.Long(0, 0, true);
|
|
@@ -17348,6 +17812,11 @@ $root.SubscriptionRecovered = (function() {
|
|
|
17348
17812
|
object.plan = $root.subscription.Plan.toObject(message.plan, options);
|
|
17349
17813
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
17350
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
|
+
}
|
|
17351
17820
|
return object;
|
|
17352
17821
|
};
|
|
17353
17822
|
|
package/package.json
CHANGED