@headspace/protos-events 1.46.0 → 1.47.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 CHANGED
@@ -1020,6 +1020,15 @@ export namespace subscription {
1020
1020
 
1021
1021
  /** Plan affiliation */
1022
1022
  affiliation?: (string|null);
1023
+
1024
+ /** Plan category */
1025
+ category?: (string|null);
1026
+
1027
+ /** Plan renewalTermLength */
1028
+ renewalTermLength?: (number|null);
1029
+
1030
+ /** Plan serviceActivationDelay */
1031
+ serviceActivationDelay?: (number|null);
1023
1032
  }
1024
1033
 
1025
1034
  /** Represents a Plan. */
@@ -1049,6 +1058,15 @@ export namespace subscription {
1049
1058
  /** Plan affiliation. */
1050
1059
  public affiliation: string;
1051
1060
 
1061
+ /** Plan category. */
1062
+ public category: string;
1063
+
1064
+ /** Plan renewalTermLength. */
1065
+ public renewalTermLength: number;
1066
+
1067
+ /** Plan serviceActivationDelay. */
1068
+ public serviceActivationDelay: number;
1069
+
1052
1070
  /**
1053
1071
  * Creates a new Plan instance using the specified properties.
1054
1072
  * @param [properties] Properties to set
@@ -3413,6 +3431,9 @@ export interface ISubscriptionCreated {
3413
3431
 
3414
3432
  /** SubscriptionCreated autoRenewalStatus */
3415
3433
  autoRenewalStatus?: (subscription.AutoRenewalStatus|null);
3434
+
3435
+ /** SubscriptionCreated plan */
3436
+ plan?: (subscription.IPlan|null);
3416
3437
  }
3417
3438
 
3418
3439
  /** Represents a SubscriptionCreated. */
@@ -3451,6 +3472,9 @@ export class SubscriptionCreated implements ISubscriptionCreated {
3451
3472
  /** SubscriptionCreated autoRenewalStatus. */
3452
3473
  public autoRenewalStatus: subscription.AutoRenewalStatus;
3453
3474
 
3475
+ /** SubscriptionCreated plan. */
3476
+ public plan?: (subscription.IPlan|null);
3477
+
3454
3478
  /**
3455
3479
  * Creates a new SubscriptionCreated instance using the specified properties.
3456
3480
  * @param [properties] Properties to set
@@ -3554,6 +3578,9 @@ export interface ISubscriptionCancelled {
3554
3578
 
3555
3579
  /** SubscriptionCancelled autoRenewalStatus */
3556
3580
  autoRenewalStatus?: (subscription.AutoRenewalStatus|null);
3581
+
3582
+ /** SubscriptionCancelled plan */
3583
+ plan?: (subscription.IPlan|null);
3557
3584
  }
3558
3585
 
3559
3586
  /** Represents a SubscriptionCancelled. */
@@ -3595,6 +3622,9 @@ export class SubscriptionCancelled implements ISubscriptionCancelled {
3595
3622
  /** SubscriptionCancelled autoRenewalStatus. */
3596
3623
  public autoRenewalStatus: subscription.AutoRenewalStatus;
3597
3624
 
3625
+ /** SubscriptionCancelled plan. */
3626
+ public plan?: (subscription.IPlan|null);
3627
+
3598
3628
  /**
3599
3629
  * Creates a new SubscriptionCancelled instance using the specified properties.
3600
3630
  * @param [properties] Properties to set
@@ -3695,6 +3725,9 @@ export interface ISubscriptionRenewed {
3695
3725
 
3696
3726
  /** SubscriptionRenewed autoRenewalStatus */
3697
3727
  autoRenewalStatus?: (subscription.AutoRenewalStatus|null);
3728
+
3729
+ /** SubscriptionRenewed plan */
3730
+ plan?: (subscription.IPlan|null);
3698
3731
  }
3699
3732
 
3700
3733
  /** Represents a SubscriptionRenewed. */
@@ -3733,6 +3766,9 @@ export class SubscriptionRenewed implements ISubscriptionRenewed {
3733
3766
  /** SubscriptionRenewed autoRenewalStatus. */
3734
3767
  public autoRenewalStatus: subscription.AutoRenewalStatus;
3735
3768
 
3769
+ /** SubscriptionRenewed plan. */
3770
+ public plan?: (subscription.IPlan|null);
3771
+
3736
3772
  /**
3737
3773
  * Creates a new SubscriptionRenewed instance using the specified properties.
3738
3774
  * @param [properties] Properties to set
package/lib/index.js CHANGED
@@ -2228,6 +2228,9 @@ $root.subscription = (function() {
2228
2228
  * @property {string|null} [name] Plan name
2229
2229
  * @property {string|null} [subscriptionType] Plan subscriptionType
2230
2230
  * @property {string|null} [affiliation] Plan affiliation
2231
+ * @property {string|null} [category] Plan category
2232
+ * @property {number|null} [renewalTermLength] Plan renewalTermLength
2233
+ * @property {number|null} [serviceActivationDelay] Plan serviceActivationDelay
2231
2234
  */
2232
2235
 
2233
2236
  /**
@@ -2293,6 +2296,30 @@ $root.subscription = (function() {
2293
2296
  */
2294
2297
  Plan.prototype.affiliation = "";
2295
2298
 
2299
+ /**
2300
+ * Plan category.
2301
+ * @member {string} category
2302
+ * @memberof subscription.Plan
2303
+ * @instance
2304
+ */
2305
+ Plan.prototype.category = "";
2306
+
2307
+ /**
2308
+ * Plan renewalTermLength.
2309
+ * @member {number} renewalTermLength
2310
+ * @memberof subscription.Plan
2311
+ * @instance
2312
+ */
2313
+ Plan.prototype.renewalTermLength = 0;
2314
+
2315
+ /**
2316
+ * Plan serviceActivationDelay.
2317
+ * @member {number} serviceActivationDelay
2318
+ * @memberof subscription.Plan
2319
+ * @instance
2320
+ */
2321
+ Plan.prototype.serviceActivationDelay = 0;
2322
+
2296
2323
  /**
2297
2324
  * Creates a new Plan instance using the specified properties.
2298
2325
  * @function create
@@ -2329,6 +2356,12 @@ $root.subscription = (function() {
2329
2356
  writer.uint32(/* id 5, wireType 2 =*/42).string(message.subscriptionType);
2330
2357
  if (message.affiliation != null && message.hasOwnProperty("affiliation"))
2331
2358
  writer.uint32(/* id 6, wireType 2 =*/50).string(message.affiliation);
2359
+ if (message.category != null && message.hasOwnProperty("category"))
2360
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.category);
2361
+ if (message.renewalTermLength != null && message.hasOwnProperty("renewalTermLength"))
2362
+ writer.uint32(/* id 8, wireType 0 =*/64).int32(message.renewalTermLength);
2363
+ if (message.serviceActivationDelay != null && message.hasOwnProperty("serviceActivationDelay"))
2364
+ writer.uint32(/* id 9, wireType 0 =*/72).int32(message.serviceActivationDelay);
2332
2365
  return writer;
2333
2366
  };
2334
2367
 
@@ -2381,6 +2414,15 @@ $root.subscription = (function() {
2381
2414
  case 6:
2382
2415
  message.affiliation = reader.string();
2383
2416
  break;
2417
+ case 7:
2418
+ message.category = reader.string();
2419
+ break;
2420
+ case 8:
2421
+ message.renewalTermLength = reader.int32();
2422
+ break;
2423
+ case 9:
2424
+ message.serviceActivationDelay = reader.int32();
2425
+ break;
2384
2426
  default:
2385
2427
  reader.skipType(tag & 7);
2386
2428
  break;
@@ -2434,6 +2476,15 @@ $root.subscription = (function() {
2434
2476
  if (message.affiliation != null && message.hasOwnProperty("affiliation"))
2435
2477
  if (!$util.isString(message.affiliation))
2436
2478
  return "affiliation: string expected";
2479
+ if (message.category != null && message.hasOwnProperty("category"))
2480
+ if (!$util.isString(message.category))
2481
+ return "category: string expected";
2482
+ if (message.renewalTermLength != null && message.hasOwnProperty("renewalTermLength"))
2483
+ if (!$util.isInteger(message.renewalTermLength))
2484
+ return "renewalTermLength: integer expected";
2485
+ if (message.serviceActivationDelay != null && message.hasOwnProperty("serviceActivationDelay"))
2486
+ if (!$util.isInteger(message.serviceActivationDelay))
2487
+ return "serviceActivationDelay: integer expected";
2437
2488
  return null;
2438
2489
  };
2439
2490
 
@@ -2461,6 +2512,12 @@ $root.subscription = (function() {
2461
2512
  message.subscriptionType = String(object.subscriptionType);
2462
2513
  if (object.affiliation != null)
2463
2514
  message.affiliation = String(object.affiliation);
2515
+ if (object.category != null)
2516
+ message.category = String(object.category);
2517
+ if (object.renewalTermLength != null)
2518
+ message.renewalTermLength = object.renewalTermLength | 0;
2519
+ if (object.serviceActivationDelay != null)
2520
+ message.serviceActivationDelay = object.serviceActivationDelay | 0;
2464
2521
  return message;
2465
2522
  };
2466
2523
 
@@ -2484,6 +2541,9 @@ $root.subscription = (function() {
2484
2541
  object.name = "";
2485
2542
  object.subscriptionType = "";
2486
2543
  object.affiliation = "";
2544
+ object.category = "";
2545
+ object.renewalTermLength = 0;
2546
+ object.serviceActivationDelay = 0;
2487
2547
  }
2488
2548
  if (message.id != null && message.hasOwnProperty("id"))
2489
2549
  object.id = message.id;
@@ -2497,6 +2557,12 @@ $root.subscription = (function() {
2497
2557
  object.subscriptionType = message.subscriptionType;
2498
2558
  if (message.affiliation != null && message.hasOwnProperty("affiliation"))
2499
2559
  object.affiliation = message.affiliation;
2560
+ if (message.category != null && message.hasOwnProperty("category"))
2561
+ object.category = message.category;
2562
+ if (message.renewalTermLength != null && message.hasOwnProperty("renewalTermLength"))
2563
+ object.renewalTermLength = message.renewalTermLength;
2564
+ if (message.serviceActivationDelay != null && message.hasOwnProperty("serviceActivationDelay"))
2565
+ object.serviceActivationDelay = message.serviceActivationDelay;
2500
2566
  return object;
2501
2567
  };
2502
2568
 
@@ -8149,6 +8215,7 @@ $root.SubscriptionCreated = (function() {
8149
8215
  * @property {string|null} [voucherCode] SubscriptionCreated voucherCode
8150
8216
  * @property {subscription.SubscriptionPlatform|null} [platform] SubscriptionCreated platform
8151
8217
  * @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionCreated autoRenewalStatus
8218
+ * @property {subscription.IPlan|null} [plan] SubscriptionCreated plan
8152
8219
  */
8153
8220
 
8154
8221
  /**
@@ -8238,6 +8305,14 @@ $root.SubscriptionCreated = (function() {
8238
8305
  */
8239
8306
  SubscriptionCreated.prototype.autoRenewalStatus = 0;
8240
8307
 
8308
+ /**
8309
+ * SubscriptionCreated plan.
8310
+ * @member {subscription.IPlan|null|undefined} plan
8311
+ * @memberof SubscriptionCreated
8312
+ * @instance
8313
+ */
8314
+ SubscriptionCreated.prototype.plan = null;
8315
+
8241
8316
  /**
8242
8317
  * Creates a new SubscriptionCreated instance using the specified properties.
8243
8318
  * @function create
@@ -8280,6 +8355,8 @@ $root.SubscriptionCreated = (function() {
8280
8355
  writer.uint32(/* id 8, wireType 0 =*/64).int32(message.platform);
8281
8356
  if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
8282
8357
  writer.uint32(/* id 9, wireType 0 =*/72).int32(message.autoRenewalStatus);
8358
+ if (message.plan != null && message.hasOwnProperty("plan"))
8359
+ $root.subscription.Plan.encode(message.plan, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
8283
8360
  return writer;
8284
8361
  };
8285
8362
 
@@ -8341,6 +8418,9 @@ $root.SubscriptionCreated = (function() {
8341
8418
  case 9:
8342
8419
  message.autoRenewalStatus = reader.int32();
8343
8420
  break;
8421
+ case 10:
8422
+ message.plan = $root.subscription.Plan.decode(reader, reader.uint32());
8423
+ break;
8344
8424
  default:
8345
8425
  reader.skipType(tag & 7);
8346
8426
  break;
@@ -8418,6 +8498,11 @@ $root.SubscriptionCreated = (function() {
8418
8498
  case 2:
8419
8499
  break;
8420
8500
  }
8501
+ if (message.plan != null && message.hasOwnProperty("plan")) {
8502
+ var error = $root.subscription.Plan.verify(message.plan);
8503
+ if (error)
8504
+ return "plan." + error;
8505
+ }
8421
8506
  return null;
8422
8507
  };
8423
8508
 
@@ -8515,6 +8600,11 @@ $root.SubscriptionCreated = (function() {
8515
8600
  message.autoRenewalStatus = 2;
8516
8601
  break;
8517
8602
  }
8603
+ if (object.plan != null) {
8604
+ if (typeof object.plan !== "object")
8605
+ throw TypeError(".SubscriptionCreated.plan: object expected");
8606
+ message.plan = $root.subscription.Plan.fromObject(object.plan);
8607
+ }
8518
8608
  return message;
8519
8609
  };
8520
8610
 
@@ -8557,6 +8647,7 @@ $root.SubscriptionCreated = (function() {
8557
8647
  object.voucherCode = "";
8558
8648
  object.platform = options.enums === String ? "PLATFORM_UNKNOWN" : 0;
8559
8649
  object.autoRenewalStatus = options.enums === String ? "UNKNOWN_STATUS" : 0;
8650
+ object.plan = null;
8560
8651
  }
8561
8652
  if (message.id != null && message.hasOwnProperty("id"))
8562
8653
  object.id = message.id;
@@ -8588,6 +8679,8 @@ $root.SubscriptionCreated = (function() {
8588
8679
  object.platform = options.enums === String ? $root.subscription.SubscriptionPlatform[message.platform] : message.platform;
8589
8680
  if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
8590
8681
  object.autoRenewalStatus = options.enums === String ? $root.subscription.AutoRenewalStatus[message.autoRenewalStatus] : message.autoRenewalStatus;
8682
+ if (message.plan != null && message.hasOwnProperty("plan"))
8683
+ object.plan = $root.subscription.Plan.toObject(message.plan, options);
8591
8684
  return object;
8592
8685
  };
8593
8686
 
@@ -8621,6 +8714,7 @@ $root.SubscriptionCancelled = (function() {
8621
8714
  * @property {string|null} [voucherCode] SubscriptionCancelled voucherCode
8622
8715
  * @property {subscription.SubscriptionPlatform|null} [platform] SubscriptionCancelled platform
8623
8716
  * @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionCancelled autoRenewalStatus
8717
+ * @property {subscription.IPlan|null} [plan] SubscriptionCancelled plan
8624
8718
  */
8625
8719
 
8626
8720
  /**
@@ -8718,6 +8812,14 @@ $root.SubscriptionCancelled = (function() {
8718
8812
  */
8719
8813
  SubscriptionCancelled.prototype.autoRenewalStatus = 0;
8720
8814
 
8815
+ /**
8816
+ * SubscriptionCancelled plan.
8817
+ * @member {subscription.IPlan|null|undefined} plan
8818
+ * @memberof SubscriptionCancelled
8819
+ * @instance
8820
+ */
8821
+ SubscriptionCancelled.prototype.plan = null;
8822
+
8721
8823
  /**
8722
8824
  * Creates a new SubscriptionCancelled instance using the specified properties.
8723
8825
  * @function create
@@ -8762,6 +8864,8 @@ $root.SubscriptionCancelled = (function() {
8762
8864
  writer.uint32(/* id 9, wireType 0 =*/72).int32(message.platform);
8763
8865
  if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
8764
8866
  writer.uint32(/* id 10, wireType 0 =*/80).int32(message.autoRenewalStatus);
8867
+ if (message.plan != null && message.hasOwnProperty("plan"))
8868
+ $root.subscription.Plan.encode(message.plan, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
8765
8869
  return writer;
8766
8870
  };
8767
8871
 
@@ -8826,6 +8930,9 @@ $root.SubscriptionCancelled = (function() {
8826
8930
  case 10:
8827
8931
  message.autoRenewalStatus = reader.int32();
8828
8932
  break;
8933
+ case 11:
8934
+ message.plan = $root.subscription.Plan.decode(reader, reader.uint32());
8935
+ break;
8829
8936
  default:
8830
8937
  reader.skipType(tag & 7);
8831
8938
  break;
@@ -8908,6 +9015,11 @@ $root.SubscriptionCancelled = (function() {
8908
9015
  case 2:
8909
9016
  break;
8910
9017
  }
9018
+ if (message.plan != null && message.hasOwnProperty("plan")) {
9019
+ var error = $root.subscription.Plan.verify(message.plan);
9020
+ if (error)
9021
+ return "plan." + error;
9022
+ }
8911
9023
  return null;
8912
9024
  };
8913
9025
 
@@ -9010,6 +9122,11 @@ $root.SubscriptionCancelled = (function() {
9010
9122
  message.autoRenewalStatus = 2;
9011
9123
  break;
9012
9124
  }
9125
+ if (object.plan != null) {
9126
+ if (typeof object.plan !== "object")
9127
+ throw TypeError(".SubscriptionCancelled.plan: object expected");
9128
+ message.plan = $root.subscription.Plan.fromObject(object.plan);
9129
+ }
9013
9130
  return message;
9014
9131
  };
9015
9132
 
@@ -9053,6 +9170,7 @@ $root.SubscriptionCancelled = (function() {
9053
9170
  object.voucherCode = "";
9054
9171
  object.platform = options.enums === String ? "PLATFORM_UNKNOWN" : 0;
9055
9172
  object.autoRenewalStatus = options.enums === String ? "UNKNOWN_STATUS" : 0;
9173
+ object.plan = null;
9056
9174
  }
9057
9175
  if (message.id != null && message.hasOwnProperty("id"))
9058
9176
  object.id = message.id;
@@ -9086,6 +9204,8 @@ $root.SubscriptionCancelled = (function() {
9086
9204
  object.platform = options.enums === String ? $root.subscription.SubscriptionPlatform[message.platform] : message.platform;
9087
9205
  if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
9088
9206
  object.autoRenewalStatus = options.enums === String ? $root.subscription.AutoRenewalStatus[message.autoRenewalStatus] : message.autoRenewalStatus;
9207
+ if (message.plan != null && message.hasOwnProperty("plan"))
9208
+ object.plan = $root.subscription.Plan.toObject(message.plan, options);
9089
9209
  return object;
9090
9210
  };
9091
9211
 
@@ -9118,6 +9238,7 @@ $root.SubscriptionRenewed = (function() {
9118
9238
  * @property {string|null} [voucherCode] SubscriptionRenewed voucherCode
9119
9239
  * @property {subscription.SubscriptionPlatform|null} [platform] SubscriptionRenewed platform
9120
9240
  * @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionRenewed autoRenewalStatus
9241
+ * @property {subscription.IPlan|null} [plan] SubscriptionRenewed plan
9121
9242
  */
9122
9243
 
9123
9244
  /**
@@ -9207,6 +9328,14 @@ $root.SubscriptionRenewed = (function() {
9207
9328
  */
9208
9329
  SubscriptionRenewed.prototype.autoRenewalStatus = 0;
9209
9330
 
9331
+ /**
9332
+ * SubscriptionRenewed plan.
9333
+ * @member {subscription.IPlan|null|undefined} plan
9334
+ * @memberof SubscriptionRenewed
9335
+ * @instance
9336
+ */
9337
+ SubscriptionRenewed.prototype.plan = null;
9338
+
9210
9339
  /**
9211
9340
  * Creates a new SubscriptionRenewed instance using the specified properties.
9212
9341
  * @function create
@@ -9249,6 +9378,8 @@ $root.SubscriptionRenewed = (function() {
9249
9378
  writer.uint32(/* id 8, wireType 0 =*/64).int32(message.platform);
9250
9379
  if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
9251
9380
  writer.uint32(/* id 9, wireType 0 =*/72).int32(message.autoRenewalStatus);
9381
+ if (message.plan != null && message.hasOwnProperty("plan"))
9382
+ $root.subscription.Plan.encode(message.plan, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
9252
9383
  return writer;
9253
9384
  };
9254
9385
 
@@ -9310,6 +9441,9 @@ $root.SubscriptionRenewed = (function() {
9310
9441
  case 9:
9311
9442
  message.autoRenewalStatus = reader.int32();
9312
9443
  break;
9444
+ case 10:
9445
+ message.plan = $root.subscription.Plan.decode(reader, reader.uint32());
9446
+ break;
9313
9447
  default:
9314
9448
  reader.skipType(tag & 7);
9315
9449
  break;
@@ -9387,6 +9521,11 @@ $root.SubscriptionRenewed = (function() {
9387
9521
  case 2:
9388
9522
  break;
9389
9523
  }
9524
+ if (message.plan != null && message.hasOwnProperty("plan")) {
9525
+ var error = $root.subscription.Plan.verify(message.plan);
9526
+ if (error)
9527
+ return "plan." + error;
9528
+ }
9390
9529
  return null;
9391
9530
  };
9392
9531
 
@@ -9484,6 +9623,11 @@ $root.SubscriptionRenewed = (function() {
9484
9623
  message.autoRenewalStatus = 2;
9485
9624
  break;
9486
9625
  }
9626
+ if (object.plan != null) {
9627
+ if (typeof object.plan !== "object")
9628
+ throw TypeError(".SubscriptionRenewed.plan: object expected");
9629
+ message.plan = $root.subscription.Plan.fromObject(object.plan);
9630
+ }
9487
9631
  return message;
9488
9632
  };
9489
9633
 
@@ -9526,6 +9670,7 @@ $root.SubscriptionRenewed = (function() {
9526
9670
  object.voucherCode = "";
9527
9671
  object.platform = options.enums === String ? "PLATFORM_UNKNOWN" : 0;
9528
9672
  object.autoRenewalStatus = options.enums === String ? "UNKNOWN_STATUS" : 0;
9673
+ object.plan = null;
9529
9674
  }
9530
9675
  if (message.id != null && message.hasOwnProperty("id"))
9531
9676
  object.id = message.id;
@@ -9557,6 +9702,8 @@ $root.SubscriptionRenewed = (function() {
9557
9702
  object.platform = options.enums === String ? $root.subscription.SubscriptionPlatform[message.platform] : message.platform;
9558
9703
  if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
9559
9704
  object.autoRenewalStatus = options.enums === String ? $root.subscription.AutoRenewalStatus[message.autoRenewalStatus] : message.autoRenewalStatus;
9705
+ if (message.plan != null && message.hasOwnProperty("plan"))
9706
+ object.plan = $root.subscription.Plan.toObject(message.plan, options);
9560
9707
  return object;
9561
9708
  };
9562
9709
 
package/package.json CHANGED
@@ -16,5 +16,5 @@
16
16
  "main": "lib/index.js",
17
17
  "name": "@headspace/protos-events",
18
18
  "typings": "lib/index.d.ts",
19
- "version": "1.46.0"
19
+ "version": "1.47.0"
20
20
  }