@headspace/protos-events 1.168.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 +162 -0
- package/lib/index.js +648 -9
- package/package.json +1 -1
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
|
|
@@ -19806,6 +20093,7 @@ $root.ContentfulActivityVariationCreated = (function() {
|
|
|
19806
20093
|
* @property {string|null} [slug] ContentfulActivityVariationCreated slug
|
|
19807
20094
|
* @property {Object.<string,number>|null} [duration] ContentfulActivityVariationCreated duration
|
|
19808
20095
|
* @property {Object.<string,contentful.IIdReference>|null} [media] ContentfulActivityVariationCreated media
|
|
20096
|
+
* @property {string|null} [locale] ContentfulActivityVariationCreated locale
|
|
19809
20097
|
* @property {number|Long|null} [createdAt] ContentfulActivityVariationCreated createdAt
|
|
19810
20098
|
*/
|
|
19811
20099
|
|
|
@@ -19850,6 +20138,14 @@ $root.ContentfulActivityVariationCreated = (function() {
|
|
|
19850
20138
|
*/
|
|
19851
20139
|
ContentfulActivityVariationCreated.prototype.media = $util.emptyObject;
|
|
19852
20140
|
|
|
20141
|
+
/**
|
|
20142
|
+
* ContentfulActivityVariationCreated locale.
|
|
20143
|
+
* @member {string} locale
|
|
20144
|
+
* @memberof ContentfulActivityVariationCreated
|
|
20145
|
+
* @instance
|
|
20146
|
+
*/
|
|
20147
|
+
ContentfulActivityVariationCreated.prototype.locale = "";
|
|
20148
|
+
|
|
19853
20149
|
/**
|
|
19854
20150
|
* ContentfulActivityVariationCreated createdAt.
|
|
19855
20151
|
* @member {number|Long} createdAt
|
|
@@ -19892,8 +20188,10 @@ $root.ContentfulActivityVariationCreated = (function() {
|
|
|
19892
20188
|
writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
19893
20189
|
$root.contentful.IdReference.encode(message.media[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
19894
20190
|
}
|
|
20191
|
+
if (message.locale != null && message.hasOwnProperty("locale"))
|
|
20192
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.locale);
|
|
19895
20193
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
19896
|
-
writer.uint32(/* id
|
|
20194
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.createdAt);
|
|
19897
20195
|
return writer;
|
|
19898
20196
|
};
|
|
19899
20197
|
|
|
@@ -19948,6 +20246,9 @@ $root.ContentfulActivityVariationCreated = (function() {
|
|
|
19948
20246
|
message.media[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
19949
20247
|
break;
|
|
19950
20248
|
case 4:
|
|
20249
|
+
message.locale = reader.string();
|
|
20250
|
+
break;
|
|
20251
|
+
case 5:
|
|
19951
20252
|
message.createdAt = reader.uint64();
|
|
19952
20253
|
break;
|
|
19953
20254
|
default:
|
|
@@ -20006,6 +20307,9 @@ $root.ContentfulActivityVariationCreated = (function() {
|
|
|
20006
20307
|
return "media." + error;
|
|
20007
20308
|
}
|
|
20008
20309
|
}
|
|
20310
|
+
if (message.locale != null && message.hasOwnProperty("locale"))
|
|
20311
|
+
if (!$util.isString(message.locale))
|
|
20312
|
+
return "locale: string expected";
|
|
20009
20313
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
20010
20314
|
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
20011
20315
|
return "createdAt: integer|Long expected";
|
|
@@ -20043,6 +20347,8 @@ $root.ContentfulActivityVariationCreated = (function() {
|
|
|
20043
20347
|
message.media[keys[i]] = $root.contentful.IdReference.fromObject(object.media[keys[i]]);
|
|
20044
20348
|
}
|
|
20045
20349
|
}
|
|
20350
|
+
if (object.locale != null)
|
|
20351
|
+
message.locale = String(object.locale);
|
|
20046
20352
|
if (object.createdAt != null)
|
|
20047
20353
|
if ($util.Long)
|
|
20048
20354
|
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
@@ -20074,6 +20380,7 @@ $root.ContentfulActivityVariationCreated = (function() {
|
|
|
20074
20380
|
}
|
|
20075
20381
|
if (options.defaults) {
|
|
20076
20382
|
object.slug = "";
|
|
20383
|
+
object.locale = "";
|
|
20077
20384
|
if ($util.Long) {
|
|
20078
20385
|
var long = new $util.Long(0, 0, true);
|
|
20079
20386
|
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
@@ -20093,6 +20400,8 @@ $root.ContentfulActivityVariationCreated = (function() {
|
|
|
20093
20400
|
for (var j = 0; j < keys2.length; ++j)
|
|
20094
20401
|
object.media[keys2[j]] = $root.contentful.IdReference.toObject(message.media[keys2[j]], options);
|
|
20095
20402
|
}
|
|
20403
|
+
if (message.locale != null && message.hasOwnProperty("locale"))
|
|
20404
|
+
object.locale = message.locale;
|
|
20096
20405
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
20097
20406
|
if (typeof message.createdAt === "number")
|
|
20098
20407
|
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
@@ -20124,6 +20433,7 @@ $root.ContentfulActivityVariationUpdated = (function() {
|
|
|
20124
20433
|
* @property {string|null} [slug] ContentfulActivityVariationUpdated slug
|
|
20125
20434
|
* @property {Object.<string,number>|null} [duration] ContentfulActivityVariationUpdated duration
|
|
20126
20435
|
* @property {Object.<string,contentful.IIdReference>|null} [media] ContentfulActivityVariationUpdated media
|
|
20436
|
+
* @property {string|null} [locale] ContentfulActivityVariationUpdated locale
|
|
20127
20437
|
* @property {number|Long|null} [updatedAt] ContentfulActivityVariationUpdated updatedAt
|
|
20128
20438
|
*/
|
|
20129
20439
|
|
|
@@ -20168,6 +20478,14 @@ $root.ContentfulActivityVariationUpdated = (function() {
|
|
|
20168
20478
|
*/
|
|
20169
20479
|
ContentfulActivityVariationUpdated.prototype.media = $util.emptyObject;
|
|
20170
20480
|
|
|
20481
|
+
/**
|
|
20482
|
+
* ContentfulActivityVariationUpdated locale.
|
|
20483
|
+
* @member {string} locale
|
|
20484
|
+
* @memberof ContentfulActivityVariationUpdated
|
|
20485
|
+
* @instance
|
|
20486
|
+
*/
|
|
20487
|
+
ContentfulActivityVariationUpdated.prototype.locale = "";
|
|
20488
|
+
|
|
20171
20489
|
/**
|
|
20172
20490
|
* ContentfulActivityVariationUpdated updatedAt.
|
|
20173
20491
|
* @member {number|Long} updatedAt
|
|
@@ -20210,8 +20528,10 @@ $root.ContentfulActivityVariationUpdated = (function() {
|
|
|
20210
20528
|
writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
20211
20529
|
$root.contentful.IdReference.encode(message.media[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
20212
20530
|
}
|
|
20531
|
+
if (message.locale != null && message.hasOwnProperty("locale"))
|
|
20532
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.locale);
|
|
20213
20533
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
20214
|
-
writer.uint32(/* id
|
|
20534
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.updatedAt);
|
|
20215
20535
|
return writer;
|
|
20216
20536
|
};
|
|
20217
20537
|
|
|
@@ -20266,6 +20586,9 @@ $root.ContentfulActivityVariationUpdated = (function() {
|
|
|
20266
20586
|
message.media[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
20267
20587
|
break;
|
|
20268
20588
|
case 4:
|
|
20589
|
+
message.locale = reader.string();
|
|
20590
|
+
break;
|
|
20591
|
+
case 5:
|
|
20269
20592
|
message.updatedAt = reader.uint64();
|
|
20270
20593
|
break;
|
|
20271
20594
|
default:
|
|
@@ -20324,6 +20647,9 @@ $root.ContentfulActivityVariationUpdated = (function() {
|
|
|
20324
20647
|
return "media." + error;
|
|
20325
20648
|
}
|
|
20326
20649
|
}
|
|
20650
|
+
if (message.locale != null && message.hasOwnProperty("locale"))
|
|
20651
|
+
if (!$util.isString(message.locale))
|
|
20652
|
+
return "locale: string expected";
|
|
20327
20653
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
20328
20654
|
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
20329
20655
|
return "updatedAt: integer|Long expected";
|
|
@@ -20361,6 +20687,8 @@ $root.ContentfulActivityVariationUpdated = (function() {
|
|
|
20361
20687
|
message.media[keys[i]] = $root.contentful.IdReference.fromObject(object.media[keys[i]]);
|
|
20362
20688
|
}
|
|
20363
20689
|
}
|
|
20690
|
+
if (object.locale != null)
|
|
20691
|
+
message.locale = String(object.locale);
|
|
20364
20692
|
if (object.updatedAt != null)
|
|
20365
20693
|
if ($util.Long)
|
|
20366
20694
|
(message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
|
|
@@ -20392,6 +20720,7 @@ $root.ContentfulActivityVariationUpdated = (function() {
|
|
|
20392
20720
|
}
|
|
20393
20721
|
if (options.defaults) {
|
|
20394
20722
|
object.slug = "";
|
|
20723
|
+
object.locale = "";
|
|
20395
20724
|
if ($util.Long) {
|
|
20396
20725
|
var long = new $util.Long(0, 0, true);
|
|
20397
20726
|
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
@@ -20411,6 +20740,8 @@ $root.ContentfulActivityVariationUpdated = (function() {
|
|
|
20411
20740
|
for (var j = 0; j < keys2.length; ++j)
|
|
20412
20741
|
object.media[keys2[j]] = $root.contentful.IdReference.toObject(message.media[keys2[j]], options);
|
|
20413
20742
|
}
|
|
20743
|
+
if (message.locale != null && message.hasOwnProperty("locale"))
|
|
20744
|
+
object.locale = message.locale;
|
|
20414
20745
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
20415
20746
|
if (typeof message.updatedAt === "number")
|
|
20416
20747
|
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
@@ -56629,6 +56960,7 @@ $root.SubscriptionCreated = (function() {
|
|
|
56629
56960
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionCreated subscriptionState
|
|
56630
56961
|
* @property {Array.<subscription.SubscriptionLabels>|null} [labels] SubscriptionCreated labels
|
|
56631
56962
|
* @property {boolean|null} [isQueuedSubscription] SubscriptionCreated isQueuedSubscription
|
|
56963
|
+
* @property {Array.<subscription.ITerm>|null} [terms] SubscriptionCreated terms
|
|
56632
56964
|
*/
|
|
56633
56965
|
|
|
56634
56966
|
/**
|
|
@@ -56641,6 +56973,7 @@ $root.SubscriptionCreated = (function() {
|
|
|
56641
56973
|
*/
|
|
56642
56974
|
function SubscriptionCreated(properties) {
|
|
56643
56975
|
this.labels = [];
|
|
56976
|
+
this.terms = [];
|
|
56644
56977
|
if (properties)
|
|
56645
56978
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
56646
56979
|
if (properties[keys[i]] != null)
|
|
@@ -56751,6 +57084,14 @@ $root.SubscriptionCreated = (function() {
|
|
|
56751
57084
|
*/
|
|
56752
57085
|
SubscriptionCreated.prototype.isQueuedSubscription = false;
|
|
56753
57086
|
|
|
57087
|
+
/**
|
|
57088
|
+
* SubscriptionCreated terms.
|
|
57089
|
+
* @member {Array.<subscription.ITerm>} terms
|
|
57090
|
+
* @memberof SubscriptionCreated
|
|
57091
|
+
* @instance
|
|
57092
|
+
*/
|
|
57093
|
+
SubscriptionCreated.prototype.terms = $util.emptyArray;
|
|
57094
|
+
|
|
56754
57095
|
/**
|
|
56755
57096
|
* Creates a new SubscriptionCreated instance using the specified properties.
|
|
56756
57097
|
* @function create
|
|
@@ -56805,6 +57146,9 @@ $root.SubscriptionCreated = (function() {
|
|
|
56805
57146
|
}
|
|
56806
57147
|
if (message.isQueuedSubscription != null && message.hasOwnProperty("isQueuedSubscription"))
|
|
56807
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();
|
|
56808
57152
|
return writer;
|
|
56809
57153
|
};
|
|
56810
57154
|
|
|
@@ -56885,6 +57229,11 @@ $root.SubscriptionCreated = (function() {
|
|
|
56885
57229
|
case 13:
|
|
56886
57230
|
message.isQueuedSubscription = reader.bool();
|
|
56887
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;
|
|
56888
57237
|
default:
|
|
56889
57238
|
reader.skipType(tag & 7);
|
|
56890
57239
|
break;
|
|
@@ -56994,6 +57343,15 @@ $root.SubscriptionCreated = (function() {
|
|
|
56994
57343
|
if (message.isQueuedSubscription != null && message.hasOwnProperty("isQueuedSubscription"))
|
|
56995
57344
|
if (typeof message.isQueuedSubscription !== "boolean")
|
|
56996
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
|
+
}
|
|
56997
57355
|
return null;
|
|
56998
57356
|
};
|
|
56999
57357
|
|
|
@@ -57141,6 +57499,16 @@ $root.SubscriptionCreated = (function() {
|
|
|
57141
57499
|
}
|
|
57142
57500
|
if (object.isQueuedSubscription != null)
|
|
57143
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
|
+
}
|
|
57144
57512
|
return message;
|
|
57145
57513
|
};
|
|
57146
57514
|
|
|
@@ -57157,8 +57525,10 @@ $root.SubscriptionCreated = (function() {
|
|
|
57157
57525
|
if (!options)
|
|
57158
57526
|
options = {};
|
|
57159
57527
|
var object = {};
|
|
57160
|
-
if (options.arrays || options.defaults)
|
|
57528
|
+
if (options.arrays || options.defaults) {
|
|
57161
57529
|
object.labels = [];
|
|
57530
|
+
object.terms = [];
|
|
57531
|
+
}
|
|
57162
57532
|
if (options.defaults) {
|
|
57163
57533
|
object.id = 0;
|
|
57164
57534
|
if ($util.Long) {
|
|
@@ -57230,6 +57600,11 @@ $root.SubscriptionCreated = (function() {
|
|
|
57230
57600
|
}
|
|
57231
57601
|
if (message.isQueuedSubscription != null && message.hasOwnProperty("isQueuedSubscription"))
|
|
57232
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
|
+
}
|
|
57233
57608
|
return object;
|
|
57234
57609
|
};
|
|
57235
57610
|
|
|
@@ -57268,6 +57643,7 @@ $root.SubscriptionCancelled = (function() {
|
|
|
57268
57643
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionCancelled subscriptionState
|
|
57269
57644
|
* @property {Array.<subscription.SubscriptionLabels>|null} [labels] SubscriptionCancelled labels
|
|
57270
57645
|
* @property {number|Long|null} [renewalCount] SubscriptionCancelled renewalCount
|
|
57646
|
+
* @property {Array.<subscription.ITerm>|null} [terms] SubscriptionCancelled terms
|
|
57271
57647
|
*/
|
|
57272
57648
|
|
|
57273
57649
|
/**
|
|
@@ -57280,6 +57656,7 @@ $root.SubscriptionCancelled = (function() {
|
|
|
57280
57656
|
*/
|
|
57281
57657
|
function SubscriptionCancelled(properties) {
|
|
57282
57658
|
this.labels = [];
|
|
57659
|
+
this.terms = [];
|
|
57283
57660
|
if (properties)
|
|
57284
57661
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
57285
57662
|
if (properties[keys[i]] != null)
|
|
@@ -57406,6 +57783,14 @@ $root.SubscriptionCancelled = (function() {
|
|
|
57406
57783
|
*/
|
|
57407
57784
|
SubscriptionCancelled.prototype.renewalCount = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
57408
57785
|
|
|
57786
|
+
/**
|
|
57787
|
+
* SubscriptionCancelled terms.
|
|
57788
|
+
* @member {Array.<subscription.ITerm>} terms
|
|
57789
|
+
* @memberof SubscriptionCancelled
|
|
57790
|
+
* @instance
|
|
57791
|
+
*/
|
|
57792
|
+
SubscriptionCancelled.prototype.terms = $util.emptyArray;
|
|
57793
|
+
|
|
57409
57794
|
/**
|
|
57410
57795
|
* Creates a new SubscriptionCancelled instance using the specified properties.
|
|
57411
57796
|
* @function create
|
|
@@ -57464,6 +57849,9 @@ $root.SubscriptionCancelled = (function() {
|
|
|
57464
57849
|
}
|
|
57465
57850
|
if (message.renewalCount != null && message.hasOwnProperty("renewalCount"))
|
|
57466
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();
|
|
57467
57855
|
return writer;
|
|
57468
57856
|
};
|
|
57469
57857
|
|
|
@@ -57550,6 +57938,11 @@ $root.SubscriptionCancelled = (function() {
|
|
|
57550
57938
|
case 15:
|
|
57551
57939
|
message.renewalCount = reader.uint64();
|
|
57552
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;
|
|
57553
57946
|
default:
|
|
57554
57947
|
reader.skipType(tag & 7);
|
|
57555
57948
|
break;
|
|
@@ -57673,6 +58066,15 @@ $root.SubscriptionCancelled = (function() {
|
|
|
57673
58066
|
if (message.renewalCount != null && message.hasOwnProperty("renewalCount"))
|
|
57674
58067
|
if (!$util.isInteger(message.renewalCount) && !(message.renewalCount && $util.isInteger(message.renewalCount.low) && $util.isInteger(message.renewalCount.high)))
|
|
57675
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
|
+
}
|
|
57676
58078
|
return null;
|
|
57677
58079
|
};
|
|
57678
58080
|
|
|
@@ -57846,6 +58248,16 @@ $root.SubscriptionCancelled = (function() {
|
|
|
57846
58248
|
message.renewalCount = object.renewalCount;
|
|
57847
58249
|
else if (typeof object.renewalCount === "object")
|
|
57848
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
|
+
}
|
|
57849
58261
|
return message;
|
|
57850
58262
|
};
|
|
57851
58263
|
|
|
@@ -57862,8 +58274,10 @@ $root.SubscriptionCancelled = (function() {
|
|
|
57862
58274
|
if (!options)
|
|
57863
58275
|
options = {};
|
|
57864
58276
|
var object = {};
|
|
57865
|
-
if (options.arrays || options.defaults)
|
|
58277
|
+
if (options.arrays || options.defaults) {
|
|
57866
58278
|
object.labels = [];
|
|
58279
|
+
object.terms = [];
|
|
58280
|
+
}
|
|
57867
58281
|
if (options.defaults) {
|
|
57868
58282
|
object.id = 0;
|
|
57869
58283
|
if ($util.Long) {
|
|
@@ -57948,6 +58362,11 @@ $root.SubscriptionCancelled = (function() {
|
|
|
57948
58362
|
object.renewalCount = options.longs === String ? String(message.renewalCount) : message.renewalCount;
|
|
57949
58363
|
else
|
|
57950
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
|
+
}
|
|
57951
58370
|
return object;
|
|
57952
58371
|
};
|
|
57953
58372
|
|
|
@@ -57984,6 +58403,7 @@ $root.SubscriptionRenewed = (function() {
|
|
|
57984
58403
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionRenewed subscriptionState
|
|
57985
58404
|
* @property {Array.<subscription.SubscriptionLabels>|null} [labels] SubscriptionRenewed labels
|
|
57986
58405
|
* @property {number|Long|null} [renewalCount] SubscriptionRenewed renewalCount
|
|
58406
|
+
* @property {Array.<subscription.ITerm>|null} [terms] SubscriptionRenewed terms
|
|
57987
58407
|
*/
|
|
57988
58408
|
|
|
57989
58409
|
/**
|
|
@@ -57996,6 +58416,7 @@ $root.SubscriptionRenewed = (function() {
|
|
|
57996
58416
|
*/
|
|
57997
58417
|
function SubscriptionRenewed(properties) {
|
|
57998
58418
|
this.labels = [];
|
|
58419
|
+
this.terms = [];
|
|
57999
58420
|
if (properties)
|
|
58000
58421
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
58001
58422
|
if (properties[keys[i]] != null)
|
|
@@ -58106,6 +58527,14 @@ $root.SubscriptionRenewed = (function() {
|
|
|
58106
58527
|
*/
|
|
58107
58528
|
SubscriptionRenewed.prototype.renewalCount = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
58108
58529
|
|
|
58530
|
+
/**
|
|
58531
|
+
* SubscriptionRenewed terms.
|
|
58532
|
+
* @member {Array.<subscription.ITerm>} terms
|
|
58533
|
+
* @memberof SubscriptionRenewed
|
|
58534
|
+
* @instance
|
|
58535
|
+
*/
|
|
58536
|
+
SubscriptionRenewed.prototype.terms = $util.emptyArray;
|
|
58537
|
+
|
|
58109
58538
|
/**
|
|
58110
58539
|
* Creates a new SubscriptionRenewed instance using the specified properties.
|
|
58111
58540
|
* @function create
|
|
@@ -58160,6 +58589,9 @@ $root.SubscriptionRenewed = (function() {
|
|
|
58160
58589
|
}
|
|
58161
58590
|
if (message.renewalCount != null && message.hasOwnProperty("renewalCount"))
|
|
58162
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();
|
|
58163
58595
|
return writer;
|
|
58164
58596
|
};
|
|
58165
58597
|
|
|
@@ -58240,6 +58672,11 @@ $root.SubscriptionRenewed = (function() {
|
|
|
58240
58672
|
case 15:
|
|
58241
58673
|
message.renewalCount = reader.uint64();
|
|
58242
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;
|
|
58243
58680
|
default:
|
|
58244
58681
|
reader.skipType(tag & 7);
|
|
58245
58682
|
break;
|
|
@@ -58349,6 +58786,15 @@ $root.SubscriptionRenewed = (function() {
|
|
|
58349
58786
|
if (message.renewalCount != null && message.hasOwnProperty("renewalCount"))
|
|
58350
58787
|
if (!$util.isInteger(message.renewalCount) && !(message.renewalCount && $util.isInteger(message.renewalCount.low) && $util.isInteger(message.renewalCount.high)))
|
|
58351
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
|
+
}
|
|
58352
58798
|
return null;
|
|
58353
58799
|
};
|
|
58354
58800
|
|
|
@@ -58503,6 +58949,16 @@ $root.SubscriptionRenewed = (function() {
|
|
|
58503
58949
|
message.renewalCount = object.renewalCount;
|
|
58504
58950
|
else if (typeof object.renewalCount === "object")
|
|
58505
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
|
+
}
|
|
58506
58962
|
return message;
|
|
58507
58963
|
};
|
|
58508
58964
|
|
|
@@ -58519,8 +58975,10 @@ $root.SubscriptionRenewed = (function() {
|
|
|
58519
58975
|
if (!options)
|
|
58520
58976
|
options = {};
|
|
58521
58977
|
var object = {};
|
|
58522
|
-
if (options.arrays || options.defaults)
|
|
58978
|
+
if (options.arrays || options.defaults) {
|
|
58523
58979
|
object.labels = [];
|
|
58980
|
+
object.terms = [];
|
|
58981
|
+
}
|
|
58524
58982
|
if (options.defaults) {
|
|
58525
58983
|
object.id = 0;
|
|
58526
58984
|
if ($util.Long) {
|
|
@@ -58599,6 +59057,11 @@ $root.SubscriptionRenewed = (function() {
|
|
|
58599
59057
|
object.renewalCount = options.longs === String ? String(message.renewalCount) : message.renewalCount;
|
|
58600
59058
|
else
|
|
58601
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
|
+
}
|
|
58602
59065
|
return object;
|
|
58603
59066
|
};
|
|
58604
59067
|
|
|
@@ -59657,6 +60120,7 @@ $root.SubscriptionGraced = (function() {
|
|
|
59657
60120
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionGraced subscriptionState
|
|
59658
60121
|
* @property {Array.<subscription.SubscriptionLabels>|null} [labels] SubscriptionGraced labels
|
|
59659
60122
|
* @property {number|Long|null} [renewalCount] SubscriptionGraced renewalCount
|
|
60123
|
+
* @property {Array.<subscription.ITerm>|null} [terms] SubscriptionGraced terms
|
|
59660
60124
|
*/
|
|
59661
60125
|
|
|
59662
60126
|
/**
|
|
@@ -59669,6 +60133,7 @@ $root.SubscriptionGraced = (function() {
|
|
|
59669
60133
|
*/
|
|
59670
60134
|
function SubscriptionGraced(properties) {
|
|
59671
60135
|
this.labels = [];
|
|
60136
|
+
this.terms = [];
|
|
59672
60137
|
if (properties)
|
|
59673
60138
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
59674
60139
|
if (properties[keys[i]] != null)
|
|
@@ -59779,6 +60244,14 @@ $root.SubscriptionGraced = (function() {
|
|
|
59779
60244
|
*/
|
|
59780
60245
|
SubscriptionGraced.prototype.renewalCount = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
59781
60246
|
|
|
60247
|
+
/**
|
|
60248
|
+
* SubscriptionGraced terms.
|
|
60249
|
+
* @member {Array.<subscription.ITerm>} terms
|
|
60250
|
+
* @memberof SubscriptionGraced
|
|
60251
|
+
* @instance
|
|
60252
|
+
*/
|
|
60253
|
+
SubscriptionGraced.prototype.terms = $util.emptyArray;
|
|
60254
|
+
|
|
59782
60255
|
/**
|
|
59783
60256
|
* Creates a new SubscriptionGraced instance using the specified properties.
|
|
59784
60257
|
* @function create
|
|
@@ -59833,6 +60306,9 @@ $root.SubscriptionGraced = (function() {
|
|
|
59833
60306
|
}
|
|
59834
60307
|
if (message.renewalCount != null && message.hasOwnProperty("renewalCount"))
|
|
59835
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();
|
|
59836
60312
|
return writer;
|
|
59837
60313
|
};
|
|
59838
60314
|
|
|
@@ -59913,6 +60389,11 @@ $root.SubscriptionGraced = (function() {
|
|
|
59913
60389
|
case 13:
|
|
59914
60390
|
message.renewalCount = reader.uint64();
|
|
59915
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;
|
|
59916
60397
|
default:
|
|
59917
60398
|
reader.skipType(tag & 7);
|
|
59918
60399
|
break;
|
|
@@ -60022,6 +60503,15 @@ $root.SubscriptionGraced = (function() {
|
|
|
60022
60503
|
if (message.renewalCount != null && message.hasOwnProperty("renewalCount"))
|
|
60023
60504
|
if (!$util.isInteger(message.renewalCount) && !(message.renewalCount && $util.isInteger(message.renewalCount.low) && $util.isInteger(message.renewalCount.high)))
|
|
60024
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
|
+
}
|
|
60025
60515
|
return null;
|
|
60026
60516
|
};
|
|
60027
60517
|
|
|
@@ -60176,6 +60666,16 @@ $root.SubscriptionGraced = (function() {
|
|
|
60176
60666
|
message.renewalCount = object.renewalCount;
|
|
60177
60667
|
else if (typeof object.renewalCount === "object")
|
|
60178
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
|
+
}
|
|
60179
60679
|
return message;
|
|
60180
60680
|
};
|
|
60181
60681
|
|
|
@@ -60192,8 +60692,10 @@ $root.SubscriptionGraced = (function() {
|
|
|
60192
60692
|
if (!options)
|
|
60193
60693
|
options = {};
|
|
60194
60694
|
var object = {};
|
|
60195
|
-
if (options.arrays || options.defaults)
|
|
60695
|
+
if (options.arrays || options.defaults) {
|
|
60196
60696
|
object.labels = [];
|
|
60697
|
+
object.terms = [];
|
|
60698
|
+
}
|
|
60197
60699
|
if (options.defaults) {
|
|
60198
60700
|
object.id = 0;
|
|
60199
60701
|
if ($util.Long) {
|
|
@@ -60272,6 +60774,11 @@ $root.SubscriptionGraced = (function() {
|
|
|
60272
60774
|
object.renewalCount = options.longs === String ? String(message.renewalCount) : message.renewalCount;
|
|
60273
60775
|
else
|
|
60274
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
|
+
}
|
|
60275
60782
|
return object;
|
|
60276
60783
|
};
|
|
60277
60784
|
|
|
@@ -60308,6 +60815,7 @@ $root.SubscriptionStarted = (function() {
|
|
|
60308
60815
|
* @property {Array.<subscription.SubscriptionLabels>|null} [labels] SubscriptionStarted labels
|
|
60309
60816
|
* @property {number|Long|null} [renewalCount] SubscriptionStarted renewalCount
|
|
60310
60817
|
* @property {number|null} [id] SubscriptionStarted id
|
|
60818
|
+
* @property {Array.<subscription.ITerm>|null} [terms] SubscriptionStarted terms
|
|
60311
60819
|
*/
|
|
60312
60820
|
|
|
60313
60821
|
/**
|
|
@@ -60320,6 +60828,7 @@ $root.SubscriptionStarted = (function() {
|
|
|
60320
60828
|
*/
|
|
60321
60829
|
function SubscriptionStarted(properties) {
|
|
60322
60830
|
this.labels = [];
|
|
60831
|
+
this.terms = [];
|
|
60323
60832
|
if (properties)
|
|
60324
60833
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
60325
60834
|
if (properties[keys[i]] != null)
|
|
@@ -60430,6 +60939,14 @@ $root.SubscriptionStarted = (function() {
|
|
|
60430
60939
|
*/
|
|
60431
60940
|
SubscriptionStarted.prototype.id = 0;
|
|
60432
60941
|
|
|
60942
|
+
/**
|
|
60943
|
+
* SubscriptionStarted terms.
|
|
60944
|
+
* @member {Array.<subscription.ITerm>} terms
|
|
60945
|
+
* @memberof SubscriptionStarted
|
|
60946
|
+
* @instance
|
|
60947
|
+
*/
|
|
60948
|
+
SubscriptionStarted.prototype.terms = $util.emptyArray;
|
|
60949
|
+
|
|
60433
60950
|
/**
|
|
60434
60951
|
* Creates a new SubscriptionStarted instance using the specified properties.
|
|
60435
60952
|
* @function create
|
|
@@ -60484,6 +61001,9 @@ $root.SubscriptionStarted = (function() {
|
|
|
60484
61001
|
writer.uint32(/* id 13, wireType 0 =*/104).uint64(message.renewalCount);
|
|
60485
61002
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
60486
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();
|
|
60487
61007
|
return writer;
|
|
60488
61008
|
};
|
|
60489
61009
|
|
|
@@ -60564,6 +61084,11 @@ $root.SubscriptionStarted = (function() {
|
|
|
60564
61084
|
case 14:
|
|
60565
61085
|
message.id = reader.uint32();
|
|
60566
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;
|
|
60567
61092
|
default:
|
|
60568
61093
|
reader.skipType(tag & 7);
|
|
60569
61094
|
break;
|
|
@@ -60673,6 +61198,15 @@ $root.SubscriptionStarted = (function() {
|
|
|
60673
61198
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
60674
61199
|
if (!$util.isInteger(message.id))
|
|
60675
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
|
+
}
|
|
60676
61210
|
return null;
|
|
60677
61211
|
};
|
|
60678
61212
|
|
|
@@ -60827,6 +61361,16 @@ $root.SubscriptionStarted = (function() {
|
|
|
60827
61361
|
message.renewalCount = new $util.LongBits(object.renewalCount.low >>> 0, object.renewalCount.high >>> 0).toNumber(true);
|
|
60828
61362
|
if (object.id != null)
|
|
60829
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
|
+
}
|
|
60830
61374
|
return message;
|
|
60831
61375
|
};
|
|
60832
61376
|
|
|
@@ -60843,8 +61387,10 @@ $root.SubscriptionStarted = (function() {
|
|
|
60843
61387
|
if (!options)
|
|
60844
61388
|
options = {};
|
|
60845
61389
|
var object = {};
|
|
60846
|
-
if (options.arrays || options.defaults)
|
|
61390
|
+
if (options.arrays || options.defaults) {
|
|
60847
61391
|
object.labels = [];
|
|
61392
|
+
object.terms = [];
|
|
61393
|
+
}
|
|
60848
61394
|
if (options.defaults) {
|
|
60849
61395
|
if ($util.Long) {
|
|
60850
61396
|
var long = new $util.Long(0, 0, true);
|
|
@@ -60923,6 +61469,11 @@ $root.SubscriptionStarted = (function() {
|
|
|
60923
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;
|
|
60924
61470
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
60925
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
|
+
}
|
|
60926
61477
|
return object;
|
|
60927
61478
|
};
|
|
60928
61479
|
|
|
@@ -60960,6 +61511,7 @@ $root.SubscriptionEnded = (function() {
|
|
|
60960
61511
|
* @property {Array.<subscription.SubscriptionLabels>|null} [labels] SubscriptionEnded labels
|
|
60961
61512
|
* @property {number|Long|null} [renewalCount] SubscriptionEnded renewalCount
|
|
60962
61513
|
* @property {number|null} [id] SubscriptionEnded id
|
|
61514
|
+
* @property {Array.<subscription.ITerm>|null} [terms] SubscriptionEnded terms
|
|
60963
61515
|
*/
|
|
60964
61516
|
|
|
60965
61517
|
/**
|
|
@@ -60972,6 +61524,7 @@ $root.SubscriptionEnded = (function() {
|
|
|
60972
61524
|
*/
|
|
60973
61525
|
function SubscriptionEnded(properties) {
|
|
60974
61526
|
this.labels = [];
|
|
61527
|
+
this.terms = [];
|
|
60975
61528
|
if (properties)
|
|
60976
61529
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
60977
61530
|
if (properties[keys[i]] != null)
|
|
@@ -61090,6 +61643,14 @@ $root.SubscriptionEnded = (function() {
|
|
|
61090
61643
|
*/
|
|
61091
61644
|
SubscriptionEnded.prototype.id = 0;
|
|
61092
61645
|
|
|
61646
|
+
/**
|
|
61647
|
+
* SubscriptionEnded terms.
|
|
61648
|
+
* @member {Array.<subscription.ITerm>} terms
|
|
61649
|
+
* @memberof SubscriptionEnded
|
|
61650
|
+
* @instance
|
|
61651
|
+
*/
|
|
61652
|
+
SubscriptionEnded.prototype.terms = $util.emptyArray;
|
|
61653
|
+
|
|
61093
61654
|
/**
|
|
61094
61655
|
* Creates a new SubscriptionEnded instance using the specified properties.
|
|
61095
61656
|
* @function create
|
|
@@ -61146,6 +61707,9 @@ $root.SubscriptionEnded = (function() {
|
|
|
61146
61707
|
writer.uint32(/* id 14, wireType 0 =*/112).uint64(message.renewalCount);
|
|
61147
61708
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
61148
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();
|
|
61149
61713
|
return writer;
|
|
61150
61714
|
};
|
|
61151
61715
|
|
|
@@ -61229,6 +61793,11 @@ $root.SubscriptionEnded = (function() {
|
|
|
61229
61793
|
case 15:
|
|
61230
61794
|
message.id = reader.uint32();
|
|
61231
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;
|
|
61232
61801
|
default:
|
|
61233
61802
|
reader.skipType(tag & 7);
|
|
61234
61803
|
break;
|
|
@@ -61347,6 +61916,15 @@ $root.SubscriptionEnded = (function() {
|
|
|
61347
61916
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
61348
61917
|
if (!$util.isInteger(message.id))
|
|
61349
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
|
+
}
|
|
61350
61928
|
return null;
|
|
61351
61929
|
};
|
|
61352
61930
|
|
|
@@ -61515,6 +62093,16 @@ $root.SubscriptionEnded = (function() {
|
|
|
61515
62093
|
message.renewalCount = new $util.LongBits(object.renewalCount.low >>> 0, object.renewalCount.high >>> 0).toNumber(true);
|
|
61516
62094
|
if (object.id != null)
|
|
61517
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
|
+
}
|
|
61518
62106
|
return message;
|
|
61519
62107
|
};
|
|
61520
62108
|
|
|
@@ -61531,8 +62119,10 @@ $root.SubscriptionEnded = (function() {
|
|
|
61531
62119
|
if (!options)
|
|
61532
62120
|
options = {};
|
|
61533
62121
|
var object = {};
|
|
61534
|
-
if (options.arrays || options.defaults)
|
|
62122
|
+
if (options.arrays || options.defaults) {
|
|
61535
62123
|
object.labels = [];
|
|
62124
|
+
object.terms = [];
|
|
62125
|
+
}
|
|
61536
62126
|
if (options.defaults) {
|
|
61537
62127
|
if ($util.Long) {
|
|
61538
62128
|
var long = new $util.Long(0, 0, true);
|
|
@@ -61614,6 +62204,11 @@ $root.SubscriptionEnded = (function() {
|
|
|
61614
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;
|
|
61615
62205
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
61616
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
|
+
}
|
|
61617
62212
|
return object;
|
|
61618
62213
|
};
|
|
61619
62214
|
|
|
@@ -61650,6 +62245,7 @@ $root.SubscriptionRecovered = (function() {
|
|
|
61650
62245
|
* @property {Array.<subscription.SubscriptionLabels>|null} [labels] SubscriptionRecovered labels
|
|
61651
62246
|
* @property {number|Long|null} [renewalCount] SubscriptionRecovered renewalCount
|
|
61652
62247
|
* @property {number|null} [id] SubscriptionRecovered id
|
|
62248
|
+
* @property {Array.<subscription.ITerm>|null} [terms] SubscriptionRecovered terms
|
|
61653
62249
|
*/
|
|
61654
62250
|
|
|
61655
62251
|
/**
|
|
@@ -61662,6 +62258,7 @@ $root.SubscriptionRecovered = (function() {
|
|
|
61662
62258
|
*/
|
|
61663
62259
|
function SubscriptionRecovered(properties) {
|
|
61664
62260
|
this.labels = [];
|
|
62261
|
+
this.terms = [];
|
|
61665
62262
|
if (properties)
|
|
61666
62263
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
61667
62264
|
if (properties[keys[i]] != null)
|
|
@@ -61772,6 +62369,14 @@ $root.SubscriptionRecovered = (function() {
|
|
|
61772
62369
|
*/
|
|
61773
62370
|
SubscriptionRecovered.prototype.id = 0;
|
|
61774
62371
|
|
|
62372
|
+
/**
|
|
62373
|
+
* SubscriptionRecovered terms.
|
|
62374
|
+
* @member {Array.<subscription.ITerm>} terms
|
|
62375
|
+
* @memberof SubscriptionRecovered
|
|
62376
|
+
* @instance
|
|
62377
|
+
*/
|
|
62378
|
+
SubscriptionRecovered.prototype.terms = $util.emptyArray;
|
|
62379
|
+
|
|
61775
62380
|
/**
|
|
61776
62381
|
* Creates a new SubscriptionRecovered instance using the specified properties.
|
|
61777
62382
|
* @function create
|
|
@@ -61826,6 +62431,9 @@ $root.SubscriptionRecovered = (function() {
|
|
|
61826
62431
|
writer.uint32(/* id 13, wireType 0 =*/104).uint64(message.renewalCount);
|
|
61827
62432
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
61828
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();
|
|
61829
62437
|
return writer;
|
|
61830
62438
|
};
|
|
61831
62439
|
|
|
@@ -61906,6 +62514,11 @@ $root.SubscriptionRecovered = (function() {
|
|
|
61906
62514
|
case 14:
|
|
61907
62515
|
message.id = reader.uint32();
|
|
61908
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;
|
|
61909
62522
|
default:
|
|
61910
62523
|
reader.skipType(tag & 7);
|
|
61911
62524
|
break;
|
|
@@ -62015,6 +62628,15 @@ $root.SubscriptionRecovered = (function() {
|
|
|
62015
62628
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
62016
62629
|
if (!$util.isInteger(message.id))
|
|
62017
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
|
+
}
|
|
62018
62640
|
return null;
|
|
62019
62641
|
};
|
|
62020
62642
|
|
|
@@ -62169,6 +62791,16 @@ $root.SubscriptionRecovered = (function() {
|
|
|
62169
62791
|
message.renewalCount = new $util.LongBits(object.renewalCount.low >>> 0, object.renewalCount.high >>> 0).toNumber(true);
|
|
62170
62792
|
if (object.id != null)
|
|
62171
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
|
+
}
|
|
62172
62804
|
return message;
|
|
62173
62805
|
};
|
|
62174
62806
|
|
|
@@ -62185,8 +62817,10 @@ $root.SubscriptionRecovered = (function() {
|
|
|
62185
62817
|
if (!options)
|
|
62186
62818
|
options = {};
|
|
62187
62819
|
var object = {};
|
|
62188
|
-
if (options.arrays || options.defaults)
|
|
62820
|
+
if (options.arrays || options.defaults) {
|
|
62189
62821
|
object.labels = [];
|
|
62822
|
+
object.terms = [];
|
|
62823
|
+
}
|
|
62190
62824
|
if (options.defaults) {
|
|
62191
62825
|
if ($util.Long) {
|
|
62192
62826
|
var long = new $util.Long(0, 0, true);
|
|
@@ -62265,6 +62899,11 @@ $root.SubscriptionRecovered = (function() {
|
|
|
62265
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;
|
|
62266
62900
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
62267
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
|
+
}
|
|
62268
62907
|
return object;
|
|
62269
62908
|
};
|
|
62270
62909
|
|