@headspace/protos-events 1.169.0 → 1.170.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
@@ -1845,6 +1845,114 @@ export namespace subscription {
1845
1845
  public toJSON(): { [k: string]: any };
1846
1846
  }
1847
1847
 
1848
+ /** Properties of a Term. */
1849
+ interface ITerm {
1850
+
1851
+ /** Term startsMillis */
1852
+ startsMillis?: (number|Long|null);
1853
+
1854
+ /** Term endsMillis */
1855
+ endsMillis?: (number|Long|null);
1856
+
1857
+ /** Term termType */
1858
+ termType?: (subscription.TermType|null);
1859
+ }
1860
+
1861
+ /** Represents a Term. */
1862
+ class Term implements ITerm {
1863
+
1864
+ /**
1865
+ * Constructs a new Term.
1866
+ * @param [properties] Properties to set
1867
+ */
1868
+ constructor(properties?: subscription.ITerm);
1869
+
1870
+ /** Term startsMillis. */
1871
+ public startsMillis: (number|Long);
1872
+
1873
+ /** Term endsMillis. */
1874
+ public endsMillis: (number|Long);
1875
+
1876
+ /** Term termType. */
1877
+ public termType: subscription.TermType;
1878
+
1879
+ /**
1880
+ * Creates a new Term instance using the specified properties.
1881
+ * @param [properties] Properties to set
1882
+ * @returns Term instance
1883
+ */
1884
+ public static create(properties?: subscription.ITerm): subscription.Term;
1885
+
1886
+ /**
1887
+ * Encodes the specified Term message. Does not implicitly {@link subscription.Term.verify|verify} messages.
1888
+ * @param message Term message or plain object to encode
1889
+ * @param [writer] Writer to encode to
1890
+ * @returns Writer
1891
+ */
1892
+ public static encode(message: subscription.ITerm, writer?: $protobuf.Writer): $protobuf.Writer;
1893
+
1894
+ /**
1895
+ * Encodes the specified Term message, length delimited. Does not implicitly {@link subscription.Term.verify|verify} messages.
1896
+ * @param message Term message or plain object to encode
1897
+ * @param [writer] Writer to encode to
1898
+ * @returns Writer
1899
+ */
1900
+ public static encodeDelimited(message: subscription.ITerm, writer?: $protobuf.Writer): $protobuf.Writer;
1901
+
1902
+ /**
1903
+ * Decodes a Term message from the specified reader or buffer.
1904
+ * @param reader Reader or buffer to decode from
1905
+ * @param [length] Message length if known beforehand
1906
+ * @returns Term
1907
+ * @throws {Error} If the payload is not a reader or valid buffer
1908
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1909
+ */
1910
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): subscription.Term;
1911
+
1912
+ /**
1913
+ * Decodes a Term message from the specified reader or buffer, length delimited.
1914
+ * @param reader Reader or buffer to decode from
1915
+ * @returns Term
1916
+ * @throws {Error} If the payload is not a reader or valid buffer
1917
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1918
+ */
1919
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): subscription.Term;
1920
+
1921
+ /**
1922
+ * Verifies a Term message.
1923
+ * @param message Plain object to verify
1924
+ * @returns `null` if valid, otherwise the reason why it is not
1925
+ */
1926
+ public static verify(message: { [k: string]: any }): (string|null);
1927
+
1928
+ /**
1929
+ * Creates a Term message from a plain object. Also converts values to their respective internal types.
1930
+ * @param object Plain object
1931
+ * @returns Term
1932
+ */
1933
+ public static fromObject(object: { [k: string]: any }): subscription.Term;
1934
+
1935
+ /**
1936
+ * Creates a plain object from a Term message. Also converts values to other types if specified.
1937
+ * @param message Term
1938
+ * @param [options] Conversion options
1939
+ * @returns Plain object
1940
+ */
1941
+ public static toObject(message: subscription.Term, options?: $protobuf.IConversionOptions): { [k: string]: any };
1942
+
1943
+ /**
1944
+ * Converts this Term to JSON.
1945
+ * @returns JSON object
1946
+ */
1947
+ public toJSON(): { [k: string]: any };
1948
+ }
1949
+
1950
+ /** TermType enum. */
1951
+ enum TermType {
1952
+ TERM_TYPE_UNKNOWN = 0,
1953
+ FREE_TRIAL = 1
1954
+ }
1955
+
1848
1956
  /** PlanAffiliation enum. */
1849
1957
  enum PlanAffiliation {
1850
1958
  STUDENT = 0,
@@ -20685,6 +20793,9 @@ export interface ISubscriptionCreated {
20685
20793
 
20686
20794
  /** SubscriptionCreated isQueuedSubscription */
20687
20795
  isQueuedSubscription?: (boolean|null);
20796
+
20797
+ /** SubscriptionCreated terms */
20798
+ terms?: (subscription.ITerm[]|null);
20688
20799
  }
20689
20800
 
20690
20801
  /** Represents a SubscriptionCreated. */
@@ -20735,6 +20846,9 @@ export class SubscriptionCreated implements ISubscriptionCreated {
20735
20846
  /** SubscriptionCreated isQueuedSubscription. */
20736
20847
  public isQueuedSubscription: boolean;
20737
20848
 
20849
+ /** SubscriptionCreated terms. */
20850
+ public terms: subscription.ITerm[];
20851
+
20738
20852
  /**
20739
20853
  * Creates a new SubscriptionCreated instance using the specified properties.
20740
20854
  * @param [properties] Properties to set
@@ -20853,6 +20967,9 @@ export interface ISubscriptionCancelled {
20853
20967
 
20854
20968
  /** SubscriptionCancelled renewalCount */
20855
20969
  renewalCount?: (number|Long|null);
20970
+
20971
+ /** SubscriptionCancelled terms */
20972
+ terms?: (subscription.ITerm[]|null);
20856
20973
  }
20857
20974
 
20858
20975
  /** Represents a SubscriptionCancelled. */
@@ -20909,6 +21026,9 @@ export class SubscriptionCancelled implements ISubscriptionCancelled {
20909
21026
  /** SubscriptionCancelled renewalCount. */
20910
21027
  public renewalCount: (number|Long);
20911
21028
 
21029
+ /** SubscriptionCancelled terms. */
21030
+ public terms: subscription.ITerm[];
21031
+
20912
21032
  /**
20913
21033
  * Creates a new SubscriptionCancelled instance using the specified properties.
20914
21034
  * @param [properties] Properties to set
@@ -21021,6 +21141,9 @@ export interface ISubscriptionRenewed {
21021
21141
 
21022
21142
  /** SubscriptionRenewed renewalCount */
21023
21143
  renewalCount?: (number|Long|null);
21144
+
21145
+ /** SubscriptionRenewed terms */
21146
+ terms?: (subscription.ITerm[]|null);
21024
21147
  }
21025
21148
 
21026
21149
  /** Represents a SubscriptionRenewed. */
@@ -21071,6 +21194,9 @@ export class SubscriptionRenewed implements ISubscriptionRenewed {
21071
21194
  /** SubscriptionRenewed renewalCount. */
21072
21195
  public renewalCount: (number|Long);
21073
21196
 
21197
+ /** SubscriptionRenewed terms. */
21198
+ public terms: subscription.ITerm[];
21199
+
21074
21200
  /**
21075
21201
  * Creates a new SubscriptionRenewed instance using the specified properties.
21076
21202
  * @param [properties] Properties to set
@@ -21549,6 +21675,9 @@ export interface ISubscriptionGraced {
21549
21675
 
21550
21676
  /** SubscriptionGraced renewalCount */
21551
21677
  renewalCount?: (number|Long|null);
21678
+
21679
+ /** SubscriptionGraced terms */
21680
+ terms?: (subscription.ITerm[]|null);
21552
21681
  }
21553
21682
 
21554
21683
  /** Represents a SubscriptionGraced. */
@@ -21599,6 +21728,9 @@ export class SubscriptionGraced implements ISubscriptionGraced {
21599
21728
  /** SubscriptionGraced renewalCount. */
21600
21729
  public renewalCount: (number|Long);
21601
21730
 
21731
+ /** SubscriptionGraced terms. */
21732
+ public terms: subscription.ITerm[];
21733
+
21602
21734
  /**
21603
21735
  * Creates a new SubscriptionGraced instance using the specified properties.
21604
21736
  * @param [properties] Properties to set
@@ -21711,6 +21843,9 @@ export interface ISubscriptionStarted {
21711
21843
 
21712
21844
  /** SubscriptionStarted id */
21713
21845
  id?: (number|null);
21846
+
21847
+ /** SubscriptionStarted terms */
21848
+ terms?: (subscription.ITerm[]|null);
21714
21849
  }
21715
21850
 
21716
21851
  /** Represents a SubscriptionStarted. */
@@ -21761,6 +21896,9 @@ export class SubscriptionStarted implements ISubscriptionStarted {
21761
21896
  /** SubscriptionStarted id. */
21762
21897
  public id: number;
21763
21898
 
21899
+ /** SubscriptionStarted terms. */
21900
+ public terms: subscription.ITerm[];
21901
+
21764
21902
  /**
21765
21903
  * Creates a new SubscriptionStarted instance using the specified properties.
21766
21904
  * @param [properties] Properties to set
@@ -21876,6 +22014,9 @@ export interface ISubscriptionEnded {
21876
22014
 
21877
22015
  /** SubscriptionEnded id */
21878
22016
  id?: (number|null);
22017
+
22018
+ /** SubscriptionEnded terms */
22019
+ terms?: (subscription.ITerm[]|null);
21879
22020
  }
21880
22021
 
21881
22022
  /** Represents a SubscriptionEnded. */
@@ -21929,6 +22070,9 @@ export class SubscriptionEnded implements ISubscriptionEnded {
21929
22070
  /** SubscriptionEnded id. */
21930
22071
  public id: number;
21931
22072
 
22073
+ /** SubscriptionEnded terms. */
22074
+ public terms: subscription.ITerm[];
22075
+
21932
22076
  /**
21933
22077
  * Creates a new SubscriptionEnded instance using the specified properties.
21934
22078
  * @param [properties] Properties to set
@@ -22041,6 +22185,9 @@ export interface ISubscriptionRecovered {
22041
22185
 
22042
22186
  /** SubscriptionRecovered id */
22043
22187
  id?: (number|null);
22188
+
22189
+ /** SubscriptionRecovered terms */
22190
+ terms?: (subscription.ITerm[]|null);
22044
22191
  }
22045
22192
 
22046
22193
  /** Represents a SubscriptionRecovered. */
@@ -22091,6 +22238,9 @@ export class SubscriptionRecovered implements ISubscriptionRecovered {
22091
22238
  /** SubscriptionRecovered id. */
22092
22239
  public id: number;
22093
22240
 
22241
+ /** SubscriptionRecovered terms. */
22242
+ public terms: subscription.ITerm[];
22243
+
22094
22244
  /**
22095
22245
  * Creates a new SubscriptionRecovered instance using the specified properties.
22096
22246
  * @param [properties] Properties to set
package/lib/index.js CHANGED
@@ -4196,6 +4196,293 @@ $root.subscription = (function() {
4196
4196
  return Plan;
4197
4197
  })();
4198
4198
 
4199
+ subscription.Term = (function() {
4200
+
4201
+ /**
4202
+ * Properties of a Term.
4203
+ * @memberof subscription
4204
+ * @interface ITerm
4205
+ * @property {number|Long|null} [startsMillis] Term startsMillis
4206
+ * @property {number|Long|null} [endsMillis] Term endsMillis
4207
+ * @property {subscription.TermType|null} [termType] Term termType
4208
+ */
4209
+
4210
+ /**
4211
+ * Constructs a new Term.
4212
+ * @memberof subscription
4213
+ * @classdesc Represents a Term.
4214
+ * @implements ITerm
4215
+ * @constructor
4216
+ * @param {subscription.ITerm=} [properties] Properties to set
4217
+ */
4218
+ function Term(properties) {
4219
+ if (properties)
4220
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
4221
+ if (properties[keys[i]] != null)
4222
+ this[keys[i]] = properties[keys[i]];
4223
+ }
4224
+
4225
+ /**
4226
+ * Term startsMillis.
4227
+ * @member {number|Long} startsMillis
4228
+ * @memberof subscription.Term
4229
+ * @instance
4230
+ */
4231
+ Term.prototype.startsMillis = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
4232
+
4233
+ /**
4234
+ * Term endsMillis.
4235
+ * @member {number|Long} endsMillis
4236
+ * @memberof subscription.Term
4237
+ * @instance
4238
+ */
4239
+ Term.prototype.endsMillis = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
4240
+
4241
+ /**
4242
+ * Term termType.
4243
+ * @member {subscription.TermType} termType
4244
+ * @memberof subscription.Term
4245
+ * @instance
4246
+ */
4247
+ Term.prototype.termType = 0;
4248
+
4249
+ /**
4250
+ * Creates a new Term instance using the specified properties.
4251
+ * @function create
4252
+ * @memberof subscription.Term
4253
+ * @static
4254
+ * @param {subscription.ITerm=} [properties] Properties to set
4255
+ * @returns {subscription.Term} Term instance
4256
+ */
4257
+ Term.create = function create(properties) {
4258
+ return new Term(properties);
4259
+ };
4260
+
4261
+ /**
4262
+ * Encodes the specified Term message. Does not implicitly {@link subscription.Term.verify|verify} messages.
4263
+ * @function encode
4264
+ * @memberof subscription.Term
4265
+ * @static
4266
+ * @param {subscription.ITerm} message Term message or plain object to encode
4267
+ * @param {$protobuf.Writer} [writer] Writer to encode to
4268
+ * @returns {$protobuf.Writer} Writer
4269
+ */
4270
+ Term.encode = function encode(message, writer) {
4271
+ if (!writer)
4272
+ writer = $Writer.create();
4273
+ if (message.startsMillis != null && message.hasOwnProperty("startsMillis"))
4274
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.startsMillis);
4275
+ if (message.endsMillis != null && message.hasOwnProperty("endsMillis"))
4276
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.endsMillis);
4277
+ if (message.termType != null && message.hasOwnProperty("termType"))
4278
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.termType);
4279
+ return writer;
4280
+ };
4281
+
4282
+ /**
4283
+ * Encodes the specified Term message, length delimited. Does not implicitly {@link subscription.Term.verify|verify} messages.
4284
+ * @function encodeDelimited
4285
+ * @memberof subscription.Term
4286
+ * @static
4287
+ * @param {subscription.ITerm} message Term message or plain object to encode
4288
+ * @param {$protobuf.Writer} [writer] Writer to encode to
4289
+ * @returns {$protobuf.Writer} Writer
4290
+ */
4291
+ Term.encodeDelimited = function encodeDelimited(message, writer) {
4292
+ return this.encode(message, writer).ldelim();
4293
+ };
4294
+
4295
+ /**
4296
+ * Decodes a Term message from the specified reader or buffer.
4297
+ * @function decode
4298
+ * @memberof subscription.Term
4299
+ * @static
4300
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
4301
+ * @param {number} [length] Message length if known beforehand
4302
+ * @returns {subscription.Term} Term
4303
+ * @throws {Error} If the payload is not a reader or valid buffer
4304
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4305
+ */
4306
+ Term.decode = function decode(reader, length) {
4307
+ if (!(reader instanceof $Reader))
4308
+ reader = $Reader.create(reader);
4309
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.subscription.Term();
4310
+ while (reader.pos < end) {
4311
+ var tag = reader.uint32();
4312
+ switch (tag >>> 3) {
4313
+ case 1:
4314
+ message.startsMillis = reader.uint64();
4315
+ break;
4316
+ case 2:
4317
+ message.endsMillis = reader.uint64();
4318
+ break;
4319
+ case 3:
4320
+ message.termType = reader.int32();
4321
+ break;
4322
+ default:
4323
+ reader.skipType(tag & 7);
4324
+ break;
4325
+ }
4326
+ }
4327
+ return message;
4328
+ };
4329
+
4330
+ /**
4331
+ * Decodes a Term message from the specified reader or buffer, length delimited.
4332
+ * @function decodeDelimited
4333
+ * @memberof subscription.Term
4334
+ * @static
4335
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
4336
+ * @returns {subscription.Term} Term
4337
+ * @throws {Error} If the payload is not a reader or valid buffer
4338
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4339
+ */
4340
+ Term.decodeDelimited = function decodeDelimited(reader) {
4341
+ if (!(reader instanceof $Reader))
4342
+ reader = new $Reader(reader);
4343
+ return this.decode(reader, reader.uint32());
4344
+ };
4345
+
4346
+ /**
4347
+ * Verifies a Term message.
4348
+ * @function verify
4349
+ * @memberof subscription.Term
4350
+ * @static
4351
+ * @param {Object.<string,*>} message Plain object to verify
4352
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
4353
+ */
4354
+ Term.verify = function verify(message) {
4355
+ if (typeof message !== "object" || message === null)
4356
+ return "object expected";
4357
+ if (message.startsMillis != null && message.hasOwnProperty("startsMillis"))
4358
+ if (!$util.isInteger(message.startsMillis) && !(message.startsMillis && $util.isInteger(message.startsMillis.low) && $util.isInteger(message.startsMillis.high)))
4359
+ return "startsMillis: integer|Long expected";
4360
+ if (message.endsMillis != null && message.hasOwnProperty("endsMillis"))
4361
+ if (!$util.isInteger(message.endsMillis) && !(message.endsMillis && $util.isInteger(message.endsMillis.low) && $util.isInteger(message.endsMillis.high)))
4362
+ return "endsMillis: integer|Long expected";
4363
+ if (message.termType != null && message.hasOwnProperty("termType"))
4364
+ switch (message.termType) {
4365
+ default:
4366
+ return "termType: enum value expected";
4367
+ case 0:
4368
+ case 1:
4369
+ break;
4370
+ }
4371
+ return null;
4372
+ };
4373
+
4374
+ /**
4375
+ * Creates a Term message from a plain object. Also converts values to their respective internal types.
4376
+ * @function fromObject
4377
+ * @memberof subscription.Term
4378
+ * @static
4379
+ * @param {Object.<string,*>} object Plain object
4380
+ * @returns {subscription.Term} Term
4381
+ */
4382
+ Term.fromObject = function fromObject(object) {
4383
+ if (object instanceof $root.subscription.Term)
4384
+ return object;
4385
+ var message = new $root.subscription.Term();
4386
+ if (object.startsMillis != null)
4387
+ if ($util.Long)
4388
+ (message.startsMillis = $util.Long.fromValue(object.startsMillis)).unsigned = true;
4389
+ else if (typeof object.startsMillis === "string")
4390
+ message.startsMillis = parseInt(object.startsMillis, 10);
4391
+ else if (typeof object.startsMillis === "number")
4392
+ message.startsMillis = object.startsMillis;
4393
+ else if (typeof object.startsMillis === "object")
4394
+ message.startsMillis = new $util.LongBits(object.startsMillis.low >>> 0, object.startsMillis.high >>> 0).toNumber(true);
4395
+ if (object.endsMillis != null)
4396
+ if ($util.Long)
4397
+ (message.endsMillis = $util.Long.fromValue(object.endsMillis)).unsigned = true;
4398
+ else if (typeof object.endsMillis === "string")
4399
+ message.endsMillis = parseInt(object.endsMillis, 10);
4400
+ else if (typeof object.endsMillis === "number")
4401
+ message.endsMillis = object.endsMillis;
4402
+ else if (typeof object.endsMillis === "object")
4403
+ message.endsMillis = new $util.LongBits(object.endsMillis.low >>> 0, object.endsMillis.high >>> 0).toNumber(true);
4404
+ switch (object.termType) {
4405
+ case "TERM_TYPE_UNKNOWN":
4406
+ case 0:
4407
+ message.termType = 0;
4408
+ break;
4409
+ case "FREE_TRIAL":
4410
+ case 1:
4411
+ message.termType = 1;
4412
+ break;
4413
+ }
4414
+ return message;
4415
+ };
4416
+
4417
+ /**
4418
+ * Creates a plain object from a Term message. Also converts values to other types if specified.
4419
+ * @function toObject
4420
+ * @memberof subscription.Term
4421
+ * @static
4422
+ * @param {subscription.Term} message Term
4423
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
4424
+ * @returns {Object.<string,*>} Plain object
4425
+ */
4426
+ Term.toObject = function toObject(message, options) {
4427
+ if (!options)
4428
+ options = {};
4429
+ var object = {};
4430
+ if (options.defaults) {
4431
+ if ($util.Long) {
4432
+ var long = new $util.Long(0, 0, true);
4433
+ object.startsMillis = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
4434
+ } else
4435
+ object.startsMillis = options.longs === String ? "0" : 0;
4436
+ if ($util.Long) {
4437
+ var long = new $util.Long(0, 0, true);
4438
+ object.endsMillis = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
4439
+ } else
4440
+ object.endsMillis = options.longs === String ? "0" : 0;
4441
+ object.termType = options.enums === String ? "TERM_TYPE_UNKNOWN" : 0;
4442
+ }
4443
+ if (message.startsMillis != null && message.hasOwnProperty("startsMillis"))
4444
+ if (typeof message.startsMillis === "number")
4445
+ object.startsMillis = options.longs === String ? String(message.startsMillis) : message.startsMillis;
4446
+ else
4447
+ object.startsMillis = options.longs === String ? $util.Long.prototype.toString.call(message.startsMillis) : options.longs === Number ? new $util.LongBits(message.startsMillis.low >>> 0, message.startsMillis.high >>> 0).toNumber(true) : message.startsMillis;
4448
+ if (message.endsMillis != null && message.hasOwnProperty("endsMillis"))
4449
+ if (typeof message.endsMillis === "number")
4450
+ object.endsMillis = options.longs === String ? String(message.endsMillis) : message.endsMillis;
4451
+ else
4452
+ object.endsMillis = options.longs === String ? $util.Long.prototype.toString.call(message.endsMillis) : options.longs === Number ? new $util.LongBits(message.endsMillis.low >>> 0, message.endsMillis.high >>> 0).toNumber(true) : message.endsMillis;
4453
+ if (message.termType != null && message.hasOwnProperty("termType"))
4454
+ object.termType = options.enums === String ? $root.subscription.TermType[message.termType] : message.termType;
4455
+ return object;
4456
+ };
4457
+
4458
+ /**
4459
+ * Converts this Term to JSON.
4460
+ * @function toJSON
4461
+ * @memberof subscription.Term
4462
+ * @instance
4463
+ * @returns {Object.<string,*>} JSON object
4464
+ */
4465
+ Term.prototype.toJSON = function toJSON() {
4466
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
4467
+ };
4468
+
4469
+ return Term;
4470
+ })();
4471
+
4472
+ /**
4473
+ * TermType enum.
4474
+ * @name subscription.TermType
4475
+ * @enum {string}
4476
+ * @property {number} TERM_TYPE_UNKNOWN=0 TERM_TYPE_UNKNOWN value
4477
+ * @property {number} FREE_TRIAL=1 FREE_TRIAL value
4478
+ */
4479
+ subscription.TermType = (function() {
4480
+ var valuesById = {}, values = Object.create(valuesById);
4481
+ values[valuesById[0] = "TERM_TYPE_UNKNOWN"] = 0;
4482
+ values[valuesById[1] = "FREE_TRIAL"] = 1;
4483
+ return values;
4484
+ })();
4485
+
4199
4486
  /**
4200
4487
  * PlanAffiliation enum.
4201
4488
  * @name subscription.PlanAffiliation
@@ -56673,6 +56960,7 @@ $root.SubscriptionCreated = (function() {
56673
56960
  * @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionCreated subscriptionState
56674
56961
  * @property {Array.<subscription.SubscriptionLabels>|null} [labels] SubscriptionCreated labels
56675
56962
  * @property {boolean|null} [isQueuedSubscription] SubscriptionCreated isQueuedSubscription
56963
+ * @property {Array.<subscription.ITerm>|null} [terms] SubscriptionCreated terms
56676
56964
  */
56677
56965
 
56678
56966
  /**
@@ -56685,6 +56973,7 @@ $root.SubscriptionCreated = (function() {
56685
56973
  */
56686
56974
  function SubscriptionCreated(properties) {
56687
56975
  this.labels = [];
56976
+ this.terms = [];
56688
56977
  if (properties)
56689
56978
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
56690
56979
  if (properties[keys[i]] != null)
@@ -56795,6 +57084,14 @@ $root.SubscriptionCreated = (function() {
56795
57084
  */
56796
57085
  SubscriptionCreated.prototype.isQueuedSubscription = false;
56797
57086
 
57087
+ /**
57088
+ * SubscriptionCreated terms.
57089
+ * @member {Array.<subscription.ITerm>} terms
57090
+ * @memberof SubscriptionCreated
57091
+ * @instance
57092
+ */
57093
+ SubscriptionCreated.prototype.terms = $util.emptyArray;
57094
+
56798
57095
  /**
56799
57096
  * Creates a new SubscriptionCreated instance using the specified properties.
56800
57097
  * @function create
@@ -56849,6 +57146,9 @@ $root.SubscriptionCreated = (function() {
56849
57146
  }
56850
57147
  if (message.isQueuedSubscription != null && message.hasOwnProperty("isQueuedSubscription"))
56851
57148
  writer.uint32(/* id 13, wireType 0 =*/104).bool(message.isQueuedSubscription);
57149
+ if (message.terms != null && message.terms.length)
57150
+ for (var i = 0; i < message.terms.length; ++i)
57151
+ $root.subscription.Term.encode(message.terms[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
56852
57152
  return writer;
56853
57153
  };
56854
57154
 
@@ -56929,6 +57229,11 @@ $root.SubscriptionCreated = (function() {
56929
57229
  case 13:
56930
57230
  message.isQueuedSubscription = reader.bool();
56931
57231
  break;
57232
+ case 14:
57233
+ if (!(message.terms && message.terms.length))
57234
+ message.terms = [];
57235
+ message.terms.push($root.subscription.Term.decode(reader, reader.uint32()));
57236
+ break;
56932
57237
  default:
56933
57238
  reader.skipType(tag & 7);
56934
57239
  break;
@@ -57038,6 +57343,15 @@ $root.SubscriptionCreated = (function() {
57038
57343
  if (message.isQueuedSubscription != null && message.hasOwnProperty("isQueuedSubscription"))
57039
57344
  if (typeof message.isQueuedSubscription !== "boolean")
57040
57345
  return "isQueuedSubscription: boolean expected";
57346
+ if (message.terms != null && message.hasOwnProperty("terms")) {
57347
+ if (!Array.isArray(message.terms))
57348
+ return "terms: array expected";
57349
+ for (var i = 0; i < message.terms.length; ++i) {
57350
+ var error = $root.subscription.Term.verify(message.terms[i]);
57351
+ if (error)
57352
+ return "terms." + error;
57353
+ }
57354
+ }
57041
57355
  return null;
57042
57356
  };
57043
57357
 
@@ -57185,6 +57499,16 @@ $root.SubscriptionCreated = (function() {
57185
57499
  }
57186
57500
  if (object.isQueuedSubscription != null)
57187
57501
  message.isQueuedSubscription = Boolean(object.isQueuedSubscription);
57502
+ if (object.terms) {
57503
+ if (!Array.isArray(object.terms))
57504
+ throw TypeError(".SubscriptionCreated.terms: array expected");
57505
+ message.terms = [];
57506
+ for (var i = 0; i < object.terms.length; ++i) {
57507
+ if (typeof object.terms[i] !== "object")
57508
+ throw TypeError(".SubscriptionCreated.terms: object expected");
57509
+ message.terms[i] = $root.subscription.Term.fromObject(object.terms[i]);
57510
+ }
57511
+ }
57188
57512
  return message;
57189
57513
  };
57190
57514
 
@@ -57201,8 +57525,10 @@ $root.SubscriptionCreated = (function() {
57201
57525
  if (!options)
57202
57526
  options = {};
57203
57527
  var object = {};
57204
- if (options.arrays || options.defaults)
57528
+ if (options.arrays || options.defaults) {
57205
57529
  object.labels = [];
57530
+ object.terms = [];
57531
+ }
57206
57532
  if (options.defaults) {
57207
57533
  object.id = 0;
57208
57534
  if ($util.Long) {
@@ -57274,6 +57600,11 @@ $root.SubscriptionCreated = (function() {
57274
57600
  }
57275
57601
  if (message.isQueuedSubscription != null && message.hasOwnProperty("isQueuedSubscription"))
57276
57602
  object.isQueuedSubscription = message.isQueuedSubscription;
57603
+ if (message.terms && message.terms.length) {
57604
+ object.terms = [];
57605
+ for (var j = 0; j < message.terms.length; ++j)
57606
+ object.terms[j] = $root.subscription.Term.toObject(message.terms[j], options);
57607
+ }
57277
57608
  return object;
57278
57609
  };
57279
57610
 
@@ -57312,6 +57643,7 @@ $root.SubscriptionCancelled = (function() {
57312
57643
  * @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionCancelled subscriptionState
57313
57644
  * @property {Array.<subscription.SubscriptionLabels>|null} [labels] SubscriptionCancelled labels
57314
57645
  * @property {number|Long|null} [renewalCount] SubscriptionCancelled renewalCount
57646
+ * @property {Array.<subscription.ITerm>|null} [terms] SubscriptionCancelled terms
57315
57647
  */
57316
57648
 
57317
57649
  /**
@@ -57324,6 +57656,7 @@ $root.SubscriptionCancelled = (function() {
57324
57656
  */
57325
57657
  function SubscriptionCancelled(properties) {
57326
57658
  this.labels = [];
57659
+ this.terms = [];
57327
57660
  if (properties)
57328
57661
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
57329
57662
  if (properties[keys[i]] != null)
@@ -57450,6 +57783,14 @@ $root.SubscriptionCancelled = (function() {
57450
57783
  */
57451
57784
  SubscriptionCancelled.prototype.renewalCount = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
57452
57785
 
57786
+ /**
57787
+ * SubscriptionCancelled terms.
57788
+ * @member {Array.<subscription.ITerm>} terms
57789
+ * @memberof SubscriptionCancelled
57790
+ * @instance
57791
+ */
57792
+ SubscriptionCancelled.prototype.terms = $util.emptyArray;
57793
+
57453
57794
  /**
57454
57795
  * Creates a new SubscriptionCancelled instance using the specified properties.
57455
57796
  * @function create
@@ -57508,6 +57849,9 @@ $root.SubscriptionCancelled = (function() {
57508
57849
  }
57509
57850
  if (message.renewalCount != null && message.hasOwnProperty("renewalCount"))
57510
57851
  writer.uint32(/* id 15, wireType 0 =*/120).uint64(message.renewalCount);
57852
+ if (message.terms != null && message.terms.length)
57853
+ for (var i = 0; i < message.terms.length; ++i)
57854
+ $root.subscription.Term.encode(message.terms[i], writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
57511
57855
  return writer;
57512
57856
  };
57513
57857
 
@@ -57594,6 +57938,11 @@ $root.SubscriptionCancelled = (function() {
57594
57938
  case 15:
57595
57939
  message.renewalCount = reader.uint64();
57596
57940
  break;
57941
+ case 16:
57942
+ if (!(message.terms && message.terms.length))
57943
+ message.terms = [];
57944
+ message.terms.push($root.subscription.Term.decode(reader, reader.uint32()));
57945
+ break;
57597
57946
  default:
57598
57947
  reader.skipType(tag & 7);
57599
57948
  break;
@@ -57717,6 +58066,15 @@ $root.SubscriptionCancelled = (function() {
57717
58066
  if (message.renewalCount != null && message.hasOwnProperty("renewalCount"))
57718
58067
  if (!$util.isInteger(message.renewalCount) && !(message.renewalCount && $util.isInteger(message.renewalCount.low) && $util.isInteger(message.renewalCount.high)))
57719
58068
  return "renewalCount: integer|Long expected";
58069
+ if (message.terms != null && message.hasOwnProperty("terms")) {
58070
+ if (!Array.isArray(message.terms))
58071
+ return "terms: array expected";
58072
+ for (var i = 0; i < message.terms.length; ++i) {
58073
+ var error = $root.subscription.Term.verify(message.terms[i]);
58074
+ if (error)
58075
+ return "terms." + error;
58076
+ }
58077
+ }
57720
58078
  return null;
57721
58079
  };
57722
58080
 
@@ -57890,6 +58248,16 @@ $root.SubscriptionCancelled = (function() {
57890
58248
  message.renewalCount = object.renewalCount;
57891
58249
  else if (typeof object.renewalCount === "object")
57892
58250
  message.renewalCount = new $util.LongBits(object.renewalCount.low >>> 0, object.renewalCount.high >>> 0).toNumber(true);
58251
+ if (object.terms) {
58252
+ if (!Array.isArray(object.terms))
58253
+ throw TypeError(".SubscriptionCancelled.terms: array expected");
58254
+ message.terms = [];
58255
+ for (var i = 0; i < object.terms.length; ++i) {
58256
+ if (typeof object.terms[i] !== "object")
58257
+ throw TypeError(".SubscriptionCancelled.terms: object expected");
58258
+ message.terms[i] = $root.subscription.Term.fromObject(object.terms[i]);
58259
+ }
58260
+ }
57893
58261
  return message;
57894
58262
  };
57895
58263
 
@@ -57906,8 +58274,10 @@ $root.SubscriptionCancelled = (function() {
57906
58274
  if (!options)
57907
58275
  options = {};
57908
58276
  var object = {};
57909
- if (options.arrays || options.defaults)
58277
+ if (options.arrays || options.defaults) {
57910
58278
  object.labels = [];
58279
+ object.terms = [];
58280
+ }
57911
58281
  if (options.defaults) {
57912
58282
  object.id = 0;
57913
58283
  if ($util.Long) {
@@ -57992,6 +58362,11 @@ $root.SubscriptionCancelled = (function() {
57992
58362
  object.renewalCount = options.longs === String ? String(message.renewalCount) : message.renewalCount;
57993
58363
  else
57994
58364
  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;
58365
+ if (message.terms && message.terms.length) {
58366
+ object.terms = [];
58367
+ for (var j = 0; j < message.terms.length; ++j)
58368
+ object.terms[j] = $root.subscription.Term.toObject(message.terms[j], options);
58369
+ }
57995
58370
  return object;
57996
58371
  };
57997
58372
 
@@ -58028,6 +58403,7 @@ $root.SubscriptionRenewed = (function() {
58028
58403
  * @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionRenewed subscriptionState
58029
58404
  * @property {Array.<subscription.SubscriptionLabels>|null} [labels] SubscriptionRenewed labels
58030
58405
  * @property {number|Long|null} [renewalCount] SubscriptionRenewed renewalCount
58406
+ * @property {Array.<subscription.ITerm>|null} [terms] SubscriptionRenewed terms
58031
58407
  */
58032
58408
 
58033
58409
  /**
@@ -58040,6 +58416,7 @@ $root.SubscriptionRenewed = (function() {
58040
58416
  */
58041
58417
  function SubscriptionRenewed(properties) {
58042
58418
  this.labels = [];
58419
+ this.terms = [];
58043
58420
  if (properties)
58044
58421
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
58045
58422
  if (properties[keys[i]] != null)
@@ -58150,6 +58527,14 @@ $root.SubscriptionRenewed = (function() {
58150
58527
  */
58151
58528
  SubscriptionRenewed.prototype.renewalCount = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
58152
58529
 
58530
+ /**
58531
+ * SubscriptionRenewed terms.
58532
+ * @member {Array.<subscription.ITerm>} terms
58533
+ * @memberof SubscriptionRenewed
58534
+ * @instance
58535
+ */
58536
+ SubscriptionRenewed.prototype.terms = $util.emptyArray;
58537
+
58153
58538
  /**
58154
58539
  * Creates a new SubscriptionRenewed instance using the specified properties.
58155
58540
  * @function create
@@ -58204,6 +58589,9 @@ $root.SubscriptionRenewed = (function() {
58204
58589
  }
58205
58590
  if (message.renewalCount != null && message.hasOwnProperty("renewalCount"))
58206
58591
  writer.uint32(/* id 15, wireType 0 =*/120).uint64(message.renewalCount);
58592
+ if (message.terms != null && message.terms.length)
58593
+ for (var i = 0; i < message.terms.length; ++i)
58594
+ $root.subscription.Term.encode(message.terms[i], writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
58207
58595
  return writer;
58208
58596
  };
58209
58597
 
@@ -58284,6 +58672,11 @@ $root.SubscriptionRenewed = (function() {
58284
58672
  case 15:
58285
58673
  message.renewalCount = reader.uint64();
58286
58674
  break;
58675
+ case 16:
58676
+ if (!(message.terms && message.terms.length))
58677
+ message.terms = [];
58678
+ message.terms.push($root.subscription.Term.decode(reader, reader.uint32()));
58679
+ break;
58287
58680
  default:
58288
58681
  reader.skipType(tag & 7);
58289
58682
  break;
@@ -58393,6 +58786,15 @@ $root.SubscriptionRenewed = (function() {
58393
58786
  if (message.renewalCount != null && message.hasOwnProperty("renewalCount"))
58394
58787
  if (!$util.isInteger(message.renewalCount) && !(message.renewalCount && $util.isInteger(message.renewalCount.low) && $util.isInteger(message.renewalCount.high)))
58395
58788
  return "renewalCount: integer|Long expected";
58789
+ if (message.terms != null && message.hasOwnProperty("terms")) {
58790
+ if (!Array.isArray(message.terms))
58791
+ return "terms: array expected";
58792
+ for (var i = 0; i < message.terms.length; ++i) {
58793
+ var error = $root.subscription.Term.verify(message.terms[i]);
58794
+ if (error)
58795
+ return "terms." + error;
58796
+ }
58797
+ }
58396
58798
  return null;
58397
58799
  };
58398
58800
 
@@ -58547,6 +58949,16 @@ $root.SubscriptionRenewed = (function() {
58547
58949
  message.renewalCount = object.renewalCount;
58548
58950
  else if (typeof object.renewalCount === "object")
58549
58951
  message.renewalCount = new $util.LongBits(object.renewalCount.low >>> 0, object.renewalCount.high >>> 0).toNumber(true);
58952
+ if (object.terms) {
58953
+ if (!Array.isArray(object.terms))
58954
+ throw TypeError(".SubscriptionRenewed.terms: array expected");
58955
+ message.terms = [];
58956
+ for (var i = 0; i < object.terms.length; ++i) {
58957
+ if (typeof object.terms[i] !== "object")
58958
+ throw TypeError(".SubscriptionRenewed.terms: object expected");
58959
+ message.terms[i] = $root.subscription.Term.fromObject(object.terms[i]);
58960
+ }
58961
+ }
58550
58962
  return message;
58551
58963
  };
58552
58964
 
@@ -58563,8 +58975,10 @@ $root.SubscriptionRenewed = (function() {
58563
58975
  if (!options)
58564
58976
  options = {};
58565
58977
  var object = {};
58566
- if (options.arrays || options.defaults)
58978
+ if (options.arrays || options.defaults) {
58567
58979
  object.labels = [];
58980
+ object.terms = [];
58981
+ }
58568
58982
  if (options.defaults) {
58569
58983
  object.id = 0;
58570
58984
  if ($util.Long) {
@@ -58643,6 +59057,11 @@ $root.SubscriptionRenewed = (function() {
58643
59057
  object.renewalCount = options.longs === String ? String(message.renewalCount) : message.renewalCount;
58644
59058
  else
58645
59059
  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;
59060
+ if (message.terms && message.terms.length) {
59061
+ object.terms = [];
59062
+ for (var j = 0; j < message.terms.length; ++j)
59063
+ object.terms[j] = $root.subscription.Term.toObject(message.terms[j], options);
59064
+ }
58646
59065
  return object;
58647
59066
  };
58648
59067
 
@@ -59701,6 +60120,7 @@ $root.SubscriptionGraced = (function() {
59701
60120
  * @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionGraced subscriptionState
59702
60121
  * @property {Array.<subscription.SubscriptionLabels>|null} [labels] SubscriptionGraced labels
59703
60122
  * @property {number|Long|null} [renewalCount] SubscriptionGraced renewalCount
60123
+ * @property {Array.<subscription.ITerm>|null} [terms] SubscriptionGraced terms
59704
60124
  */
59705
60125
 
59706
60126
  /**
@@ -59713,6 +60133,7 @@ $root.SubscriptionGraced = (function() {
59713
60133
  */
59714
60134
  function SubscriptionGraced(properties) {
59715
60135
  this.labels = [];
60136
+ this.terms = [];
59716
60137
  if (properties)
59717
60138
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
59718
60139
  if (properties[keys[i]] != null)
@@ -59823,6 +60244,14 @@ $root.SubscriptionGraced = (function() {
59823
60244
  */
59824
60245
  SubscriptionGraced.prototype.renewalCount = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
59825
60246
 
60247
+ /**
60248
+ * SubscriptionGraced terms.
60249
+ * @member {Array.<subscription.ITerm>} terms
60250
+ * @memberof SubscriptionGraced
60251
+ * @instance
60252
+ */
60253
+ SubscriptionGraced.prototype.terms = $util.emptyArray;
60254
+
59826
60255
  /**
59827
60256
  * Creates a new SubscriptionGraced instance using the specified properties.
59828
60257
  * @function create
@@ -59877,6 +60306,9 @@ $root.SubscriptionGraced = (function() {
59877
60306
  }
59878
60307
  if (message.renewalCount != null && message.hasOwnProperty("renewalCount"))
59879
60308
  writer.uint32(/* id 13, wireType 0 =*/104).uint64(message.renewalCount);
60309
+ if (message.terms != null && message.terms.length)
60310
+ for (var i = 0; i < message.terms.length; ++i)
60311
+ $root.subscription.Term.encode(message.terms[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
59880
60312
  return writer;
59881
60313
  };
59882
60314
 
@@ -59957,6 +60389,11 @@ $root.SubscriptionGraced = (function() {
59957
60389
  case 13:
59958
60390
  message.renewalCount = reader.uint64();
59959
60391
  break;
60392
+ case 14:
60393
+ if (!(message.terms && message.terms.length))
60394
+ message.terms = [];
60395
+ message.terms.push($root.subscription.Term.decode(reader, reader.uint32()));
60396
+ break;
59960
60397
  default:
59961
60398
  reader.skipType(tag & 7);
59962
60399
  break;
@@ -60066,6 +60503,15 @@ $root.SubscriptionGraced = (function() {
60066
60503
  if (message.renewalCount != null && message.hasOwnProperty("renewalCount"))
60067
60504
  if (!$util.isInteger(message.renewalCount) && !(message.renewalCount && $util.isInteger(message.renewalCount.low) && $util.isInteger(message.renewalCount.high)))
60068
60505
  return "renewalCount: integer|Long expected";
60506
+ if (message.terms != null && message.hasOwnProperty("terms")) {
60507
+ if (!Array.isArray(message.terms))
60508
+ return "terms: array expected";
60509
+ for (var i = 0; i < message.terms.length; ++i) {
60510
+ var error = $root.subscription.Term.verify(message.terms[i]);
60511
+ if (error)
60512
+ return "terms." + error;
60513
+ }
60514
+ }
60069
60515
  return null;
60070
60516
  };
60071
60517
 
@@ -60220,6 +60666,16 @@ $root.SubscriptionGraced = (function() {
60220
60666
  message.renewalCount = object.renewalCount;
60221
60667
  else if (typeof object.renewalCount === "object")
60222
60668
  message.renewalCount = new $util.LongBits(object.renewalCount.low >>> 0, object.renewalCount.high >>> 0).toNumber(true);
60669
+ if (object.terms) {
60670
+ if (!Array.isArray(object.terms))
60671
+ throw TypeError(".SubscriptionGraced.terms: array expected");
60672
+ message.terms = [];
60673
+ for (var i = 0; i < object.terms.length; ++i) {
60674
+ if (typeof object.terms[i] !== "object")
60675
+ throw TypeError(".SubscriptionGraced.terms: object expected");
60676
+ message.terms[i] = $root.subscription.Term.fromObject(object.terms[i]);
60677
+ }
60678
+ }
60223
60679
  return message;
60224
60680
  };
60225
60681
 
@@ -60236,8 +60692,10 @@ $root.SubscriptionGraced = (function() {
60236
60692
  if (!options)
60237
60693
  options = {};
60238
60694
  var object = {};
60239
- if (options.arrays || options.defaults)
60695
+ if (options.arrays || options.defaults) {
60240
60696
  object.labels = [];
60697
+ object.terms = [];
60698
+ }
60241
60699
  if (options.defaults) {
60242
60700
  object.id = 0;
60243
60701
  if ($util.Long) {
@@ -60316,6 +60774,11 @@ $root.SubscriptionGraced = (function() {
60316
60774
  object.renewalCount = options.longs === String ? String(message.renewalCount) : message.renewalCount;
60317
60775
  else
60318
60776
  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;
60777
+ if (message.terms && message.terms.length) {
60778
+ object.terms = [];
60779
+ for (var j = 0; j < message.terms.length; ++j)
60780
+ object.terms[j] = $root.subscription.Term.toObject(message.terms[j], options);
60781
+ }
60319
60782
  return object;
60320
60783
  };
60321
60784
 
@@ -60352,6 +60815,7 @@ $root.SubscriptionStarted = (function() {
60352
60815
  * @property {Array.<subscription.SubscriptionLabels>|null} [labels] SubscriptionStarted labels
60353
60816
  * @property {number|Long|null} [renewalCount] SubscriptionStarted renewalCount
60354
60817
  * @property {number|null} [id] SubscriptionStarted id
60818
+ * @property {Array.<subscription.ITerm>|null} [terms] SubscriptionStarted terms
60355
60819
  */
60356
60820
 
60357
60821
  /**
@@ -60364,6 +60828,7 @@ $root.SubscriptionStarted = (function() {
60364
60828
  */
60365
60829
  function SubscriptionStarted(properties) {
60366
60830
  this.labels = [];
60831
+ this.terms = [];
60367
60832
  if (properties)
60368
60833
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
60369
60834
  if (properties[keys[i]] != null)
@@ -60474,6 +60939,14 @@ $root.SubscriptionStarted = (function() {
60474
60939
  */
60475
60940
  SubscriptionStarted.prototype.id = 0;
60476
60941
 
60942
+ /**
60943
+ * SubscriptionStarted terms.
60944
+ * @member {Array.<subscription.ITerm>} terms
60945
+ * @memberof SubscriptionStarted
60946
+ * @instance
60947
+ */
60948
+ SubscriptionStarted.prototype.terms = $util.emptyArray;
60949
+
60477
60950
  /**
60478
60951
  * Creates a new SubscriptionStarted instance using the specified properties.
60479
60952
  * @function create
@@ -60528,6 +61001,9 @@ $root.SubscriptionStarted = (function() {
60528
61001
  writer.uint32(/* id 13, wireType 0 =*/104).uint64(message.renewalCount);
60529
61002
  if (message.id != null && message.hasOwnProperty("id"))
60530
61003
  writer.uint32(/* id 14, wireType 0 =*/112).uint32(message.id);
61004
+ if (message.terms != null && message.terms.length)
61005
+ for (var i = 0; i < message.terms.length; ++i)
61006
+ $root.subscription.Term.encode(message.terms[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
60531
61007
  return writer;
60532
61008
  };
60533
61009
 
@@ -60608,6 +61084,11 @@ $root.SubscriptionStarted = (function() {
60608
61084
  case 14:
60609
61085
  message.id = reader.uint32();
60610
61086
  break;
61087
+ case 15:
61088
+ if (!(message.terms && message.terms.length))
61089
+ message.terms = [];
61090
+ message.terms.push($root.subscription.Term.decode(reader, reader.uint32()));
61091
+ break;
60611
61092
  default:
60612
61093
  reader.skipType(tag & 7);
60613
61094
  break;
@@ -60717,6 +61198,15 @@ $root.SubscriptionStarted = (function() {
60717
61198
  if (message.id != null && message.hasOwnProperty("id"))
60718
61199
  if (!$util.isInteger(message.id))
60719
61200
  return "id: integer expected";
61201
+ if (message.terms != null && message.hasOwnProperty("terms")) {
61202
+ if (!Array.isArray(message.terms))
61203
+ return "terms: array expected";
61204
+ for (var i = 0; i < message.terms.length; ++i) {
61205
+ var error = $root.subscription.Term.verify(message.terms[i]);
61206
+ if (error)
61207
+ return "terms." + error;
61208
+ }
61209
+ }
60720
61210
  return null;
60721
61211
  };
60722
61212
 
@@ -60871,6 +61361,16 @@ $root.SubscriptionStarted = (function() {
60871
61361
  message.renewalCount = new $util.LongBits(object.renewalCount.low >>> 0, object.renewalCount.high >>> 0).toNumber(true);
60872
61362
  if (object.id != null)
60873
61363
  message.id = object.id >>> 0;
61364
+ if (object.terms) {
61365
+ if (!Array.isArray(object.terms))
61366
+ throw TypeError(".SubscriptionStarted.terms: array expected");
61367
+ message.terms = [];
61368
+ for (var i = 0; i < object.terms.length; ++i) {
61369
+ if (typeof object.terms[i] !== "object")
61370
+ throw TypeError(".SubscriptionStarted.terms: object expected");
61371
+ message.terms[i] = $root.subscription.Term.fromObject(object.terms[i]);
61372
+ }
61373
+ }
60874
61374
  return message;
60875
61375
  };
60876
61376
 
@@ -60887,8 +61387,10 @@ $root.SubscriptionStarted = (function() {
60887
61387
  if (!options)
60888
61388
  options = {};
60889
61389
  var object = {};
60890
- if (options.arrays || options.defaults)
61390
+ if (options.arrays || options.defaults) {
60891
61391
  object.labels = [];
61392
+ object.terms = [];
61393
+ }
60892
61394
  if (options.defaults) {
60893
61395
  if ($util.Long) {
60894
61396
  var long = new $util.Long(0, 0, true);
@@ -60967,6 +61469,11 @@ $root.SubscriptionStarted = (function() {
60967
61469
  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;
60968
61470
  if (message.id != null && message.hasOwnProperty("id"))
60969
61471
  object.id = message.id;
61472
+ if (message.terms && message.terms.length) {
61473
+ object.terms = [];
61474
+ for (var j = 0; j < message.terms.length; ++j)
61475
+ object.terms[j] = $root.subscription.Term.toObject(message.terms[j], options);
61476
+ }
60970
61477
  return object;
60971
61478
  };
60972
61479
 
@@ -61004,6 +61511,7 @@ $root.SubscriptionEnded = (function() {
61004
61511
  * @property {Array.<subscription.SubscriptionLabels>|null} [labels] SubscriptionEnded labels
61005
61512
  * @property {number|Long|null} [renewalCount] SubscriptionEnded renewalCount
61006
61513
  * @property {number|null} [id] SubscriptionEnded id
61514
+ * @property {Array.<subscription.ITerm>|null} [terms] SubscriptionEnded terms
61007
61515
  */
61008
61516
 
61009
61517
  /**
@@ -61016,6 +61524,7 @@ $root.SubscriptionEnded = (function() {
61016
61524
  */
61017
61525
  function SubscriptionEnded(properties) {
61018
61526
  this.labels = [];
61527
+ this.terms = [];
61019
61528
  if (properties)
61020
61529
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
61021
61530
  if (properties[keys[i]] != null)
@@ -61134,6 +61643,14 @@ $root.SubscriptionEnded = (function() {
61134
61643
  */
61135
61644
  SubscriptionEnded.prototype.id = 0;
61136
61645
 
61646
+ /**
61647
+ * SubscriptionEnded terms.
61648
+ * @member {Array.<subscription.ITerm>} terms
61649
+ * @memberof SubscriptionEnded
61650
+ * @instance
61651
+ */
61652
+ SubscriptionEnded.prototype.terms = $util.emptyArray;
61653
+
61137
61654
  /**
61138
61655
  * Creates a new SubscriptionEnded instance using the specified properties.
61139
61656
  * @function create
@@ -61190,6 +61707,9 @@ $root.SubscriptionEnded = (function() {
61190
61707
  writer.uint32(/* id 14, wireType 0 =*/112).uint64(message.renewalCount);
61191
61708
  if (message.id != null && message.hasOwnProperty("id"))
61192
61709
  writer.uint32(/* id 15, wireType 0 =*/120).uint32(message.id);
61710
+ if (message.terms != null && message.terms.length)
61711
+ for (var i = 0; i < message.terms.length; ++i)
61712
+ $root.subscription.Term.encode(message.terms[i], writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
61193
61713
  return writer;
61194
61714
  };
61195
61715
 
@@ -61273,6 +61793,11 @@ $root.SubscriptionEnded = (function() {
61273
61793
  case 15:
61274
61794
  message.id = reader.uint32();
61275
61795
  break;
61796
+ case 16:
61797
+ if (!(message.terms && message.terms.length))
61798
+ message.terms = [];
61799
+ message.terms.push($root.subscription.Term.decode(reader, reader.uint32()));
61800
+ break;
61276
61801
  default:
61277
61802
  reader.skipType(tag & 7);
61278
61803
  break;
@@ -61391,6 +61916,15 @@ $root.SubscriptionEnded = (function() {
61391
61916
  if (message.id != null && message.hasOwnProperty("id"))
61392
61917
  if (!$util.isInteger(message.id))
61393
61918
  return "id: integer expected";
61919
+ if (message.terms != null && message.hasOwnProperty("terms")) {
61920
+ if (!Array.isArray(message.terms))
61921
+ return "terms: array expected";
61922
+ for (var i = 0; i < message.terms.length; ++i) {
61923
+ var error = $root.subscription.Term.verify(message.terms[i]);
61924
+ if (error)
61925
+ return "terms." + error;
61926
+ }
61927
+ }
61394
61928
  return null;
61395
61929
  };
61396
61930
 
@@ -61559,6 +62093,16 @@ $root.SubscriptionEnded = (function() {
61559
62093
  message.renewalCount = new $util.LongBits(object.renewalCount.low >>> 0, object.renewalCount.high >>> 0).toNumber(true);
61560
62094
  if (object.id != null)
61561
62095
  message.id = object.id >>> 0;
62096
+ if (object.terms) {
62097
+ if (!Array.isArray(object.terms))
62098
+ throw TypeError(".SubscriptionEnded.terms: array expected");
62099
+ message.terms = [];
62100
+ for (var i = 0; i < object.terms.length; ++i) {
62101
+ if (typeof object.terms[i] !== "object")
62102
+ throw TypeError(".SubscriptionEnded.terms: object expected");
62103
+ message.terms[i] = $root.subscription.Term.fromObject(object.terms[i]);
62104
+ }
62105
+ }
61562
62106
  return message;
61563
62107
  };
61564
62108
 
@@ -61575,8 +62119,10 @@ $root.SubscriptionEnded = (function() {
61575
62119
  if (!options)
61576
62120
  options = {};
61577
62121
  var object = {};
61578
- if (options.arrays || options.defaults)
62122
+ if (options.arrays || options.defaults) {
61579
62123
  object.labels = [];
62124
+ object.terms = [];
62125
+ }
61580
62126
  if (options.defaults) {
61581
62127
  if ($util.Long) {
61582
62128
  var long = new $util.Long(0, 0, true);
@@ -61658,6 +62204,11 @@ $root.SubscriptionEnded = (function() {
61658
62204
  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;
61659
62205
  if (message.id != null && message.hasOwnProperty("id"))
61660
62206
  object.id = message.id;
62207
+ if (message.terms && message.terms.length) {
62208
+ object.terms = [];
62209
+ for (var j = 0; j < message.terms.length; ++j)
62210
+ object.terms[j] = $root.subscription.Term.toObject(message.terms[j], options);
62211
+ }
61661
62212
  return object;
61662
62213
  };
61663
62214
 
@@ -61694,6 +62245,7 @@ $root.SubscriptionRecovered = (function() {
61694
62245
  * @property {Array.<subscription.SubscriptionLabels>|null} [labels] SubscriptionRecovered labels
61695
62246
  * @property {number|Long|null} [renewalCount] SubscriptionRecovered renewalCount
61696
62247
  * @property {number|null} [id] SubscriptionRecovered id
62248
+ * @property {Array.<subscription.ITerm>|null} [terms] SubscriptionRecovered terms
61697
62249
  */
61698
62250
 
61699
62251
  /**
@@ -61706,6 +62258,7 @@ $root.SubscriptionRecovered = (function() {
61706
62258
  */
61707
62259
  function SubscriptionRecovered(properties) {
61708
62260
  this.labels = [];
62261
+ this.terms = [];
61709
62262
  if (properties)
61710
62263
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
61711
62264
  if (properties[keys[i]] != null)
@@ -61816,6 +62369,14 @@ $root.SubscriptionRecovered = (function() {
61816
62369
  */
61817
62370
  SubscriptionRecovered.prototype.id = 0;
61818
62371
 
62372
+ /**
62373
+ * SubscriptionRecovered terms.
62374
+ * @member {Array.<subscription.ITerm>} terms
62375
+ * @memberof SubscriptionRecovered
62376
+ * @instance
62377
+ */
62378
+ SubscriptionRecovered.prototype.terms = $util.emptyArray;
62379
+
61819
62380
  /**
61820
62381
  * Creates a new SubscriptionRecovered instance using the specified properties.
61821
62382
  * @function create
@@ -61870,6 +62431,9 @@ $root.SubscriptionRecovered = (function() {
61870
62431
  writer.uint32(/* id 13, wireType 0 =*/104).uint64(message.renewalCount);
61871
62432
  if (message.id != null && message.hasOwnProperty("id"))
61872
62433
  writer.uint32(/* id 14, wireType 0 =*/112).uint32(message.id);
62434
+ if (message.terms != null && message.terms.length)
62435
+ for (var i = 0; i < message.terms.length; ++i)
62436
+ $root.subscription.Term.encode(message.terms[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
61873
62437
  return writer;
61874
62438
  };
61875
62439
 
@@ -61950,6 +62514,11 @@ $root.SubscriptionRecovered = (function() {
61950
62514
  case 14:
61951
62515
  message.id = reader.uint32();
61952
62516
  break;
62517
+ case 15:
62518
+ if (!(message.terms && message.terms.length))
62519
+ message.terms = [];
62520
+ message.terms.push($root.subscription.Term.decode(reader, reader.uint32()));
62521
+ break;
61953
62522
  default:
61954
62523
  reader.skipType(tag & 7);
61955
62524
  break;
@@ -62059,6 +62628,15 @@ $root.SubscriptionRecovered = (function() {
62059
62628
  if (message.id != null && message.hasOwnProperty("id"))
62060
62629
  if (!$util.isInteger(message.id))
62061
62630
  return "id: integer expected";
62631
+ if (message.terms != null && message.hasOwnProperty("terms")) {
62632
+ if (!Array.isArray(message.terms))
62633
+ return "terms: array expected";
62634
+ for (var i = 0; i < message.terms.length; ++i) {
62635
+ var error = $root.subscription.Term.verify(message.terms[i]);
62636
+ if (error)
62637
+ return "terms." + error;
62638
+ }
62639
+ }
62062
62640
  return null;
62063
62641
  };
62064
62642
 
@@ -62213,6 +62791,16 @@ $root.SubscriptionRecovered = (function() {
62213
62791
  message.renewalCount = new $util.LongBits(object.renewalCount.low >>> 0, object.renewalCount.high >>> 0).toNumber(true);
62214
62792
  if (object.id != null)
62215
62793
  message.id = object.id >>> 0;
62794
+ if (object.terms) {
62795
+ if (!Array.isArray(object.terms))
62796
+ throw TypeError(".SubscriptionRecovered.terms: array expected");
62797
+ message.terms = [];
62798
+ for (var i = 0; i < object.terms.length; ++i) {
62799
+ if (typeof object.terms[i] !== "object")
62800
+ throw TypeError(".SubscriptionRecovered.terms: object expected");
62801
+ message.terms[i] = $root.subscription.Term.fromObject(object.terms[i]);
62802
+ }
62803
+ }
62216
62804
  return message;
62217
62805
  };
62218
62806
 
@@ -62229,8 +62817,10 @@ $root.SubscriptionRecovered = (function() {
62229
62817
  if (!options)
62230
62818
  options = {};
62231
62819
  var object = {};
62232
- if (options.arrays || options.defaults)
62820
+ if (options.arrays || options.defaults) {
62233
62821
  object.labels = [];
62822
+ object.terms = [];
62823
+ }
62234
62824
  if (options.defaults) {
62235
62825
  if ($util.Long) {
62236
62826
  var long = new $util.Long(0, 0, true);
@@ -62309,6 +62899,11 @@ $root.SubscriptionRecovered = (function() {
62309
62899
  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;
62310
62900
  if (message.id != null && message.hasOwnProperty("id"))
62311
62901
  object.id = message.id;
62902
+ if (message.terms && message.terms.length) {
62903
+ object.terms = [];
62904
+ for (var j = 0; j < message.terms.length; ++j)
62905
+ object.terms[j] = $root.subscription.Term.toObject(message.terms[j], options);
62906
+ }
62312
62907
  return object;
62313
62908
  };
62314
62909
 
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.169.0"
19
+ "version": "1.170.0"
20
20
  }