@headspace/protos-events 1.277.0 → 1.278.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
@@ -14254,6 +14254,330 @@ export class ContentfulCategoryDeleted implements IContentfulCategoryDeleted {
14254
14254
  public toJSON(): { [k: string]: any };
14255
14255
  }
14256
14256
 
14257
+ /** Properties of a ContentfulCollectionCreated. */
14258
+ export interface IContentfulCollectionCreated {
14259
+
14260
+ /** ContentfulCollectionCreated name */
14261
+ name?: ({ [k: string]: string }|null);
14262
+
14263
+ /** ContentfulCollectionCreated slug */
14264
+ slug?: (string|null);
14265
+
14266
+ /** ContentfulCollectionCreated teaser */
14267
+ teaser?: ({ [k: string]: string }|null);
14268
+
14269
+ /** ContentfulCollectionCreated description */
14270
+ description?: ({ [k: string]: string }|null);
14271
+
14272
+ /** ContentfulCollectionCreated createdAt */
14273
+ createdAt?: (number|Long|null);
14274
+ }
14275
+
14276
+ /** Represents a ContentfulCollectionCreated. */
14277
+ export class ContentfulCollectionCreated implements IContentfulCollectionCreated {
14278
+
14279
+ /**
14280
+ * Constructs a new ContentfulCollectionCreated.
14281
+ * @param [properties] Properties to set
14282
+ */
14283
+ constructor(properties?: IContentfulCollectionCreated);
14284
+
14285
+ /** ContentfulCollectionCreated name. */
14286
+ public name: { [k: string]: string };
14287
+
14288
+ /** ContentfulCollectionCreated slug. */
14289
+ public slug: string;
14290
+
14291
+ /** ContentfulCollectionCreated teaser. */
14292
+ public teaser: { [k: string]: string };
14293
+
14294
+ /** ContentfulCollectionCreated description. */
14295
+ public description: { [k: string]: string };
14296
+
14297
+ /** ContentfulCollectionCreated createdAt. */
14298
+ public createdAt: (number|Long);
14299
+
14300
+ /**
14301
+ * Creates a new ContentfulCollectionCreated instance using the specified properties.
14302
+ * @param [properties] Properties to set
14303
+ * @returns ContentfulCollectionCreated instance
14304
+ */
14305
+ public static create(properties?: IContentfulCollectionCreated): ContentfulCollectionCreated;
14306
+
14307
+ /**
14308
+ * Encodes the specified ContentfulCollectionCreated message. Does not implicitly {@link ContentfulCollectionCreated.verify|verify} messages.
14309
+ * @param message ContentfulCollectionCreated message or plain object to encode
14310
+ * @param [writer] Writer to encode to
14311
+ * @returns Writer
14312
+ */
14313
+ public static encode(message: IContentfulCollectionCreated, writer?: $protobuf.Writer): $protobuf.Writer;
14314
+
14315
+ /**
14316
+ * Encodes the specified ContentfulCollectionCreated message, length delimited. Does not implicitly {@link ContentfulCollectionCreated.verify|verify} messages.
14317
+ * @param message ContentfulCollectionCreated message or plain object to encode
14318
+ * @param [writer] Writer to encode to
14319
+ * @returns Writer
14320
+ */
14321
+ public static encodeDelimited(message: IContentfulCollectionCreated, writer?: $protobuf.Writer): $protobuf.Writer;
14322
+
14323
+ /**
14324
+ * Decodes a ContentfulCollectionCreated message from the specified reader or buffer.
14325
+ * @param reader Reader or buffer to decode from
14326
+ * @param [length] Message length if known beforehand
14327
+ * @returns ContentfulCollectionCreated
14328
+ * @throws {Error} If the payload is not a reader or valid buffer
14329
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14330
+ */
14331
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ContentfulCollectionCreated;
14332
+
14333
+ /**
14334
+ * Decodes a ContentfulCollectionCreated message from the specified reader or buffer, length delimited.
14335
+ * @param reader Reader or buffer to decode from
14336
+ * @returns ContentfulCollectionCreated
14337
+ * @throws {Error} If the payload is not a reader or valid buffer
14338
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14339
+ */
14340
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ContentfulCollectionCreated;
14341
+
14342
+ /**
14343
+ * Verifies a ContentfulCollectionCreated message.
14344
+ * @param message Plain object to verify
14345
+ * @returns `null` if valid, otherwise the reason why it is not
14346
+ */
14347
+ public static verify(message: { [k: string]: any }): (string|null);
14348
+
14349
+ /**
14350
+ * Creates a ContentfulCollectionCreated message from a plain object. Also converts values to their respective internal types.
14351
+ * @param object Plain object
14352
+ * @returns ContentfulCollectionCreated
14353
+ */
14354
+ public static fromObject(object: { [k: string]: any }): ContentfulCollectionCreated;
14355
+
14356
+ /**
14357
+ * Creates a plain object from a ContentfulCollectionCreated message. Also converts values to other types if specified.
14358
+ * @param message ContentfulCollectionCreated
14359
+ * @param [options] Conversion options
14360
+ * @returns Plain object
14361
+ */
14362
+ public static toObject(message: ContentfulCollectionCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
14363
+
14364
+ /**
14365
+ * Converts this ContentfulCollectionCreated to JSON.
14366
+ * @returns JSON object
14367
+ */
14368
+ public toJSON(): { [k: string]: any };
14369
+ }
14370
+
14371
+ /** Properties of a ContentfulCollectionUpdated. */
14372
+ export interface IContentfulCollectionUpdated {
14373
+
14374
+ /** ContentfulCollectionUpdated name */
14375
+ name?: ({ [k: string]: string }|null);
14376
+
14377
+ /** ContentfulCollectionUpdated slug */
14378
+ slug?: (string|null);
14379
+
14380
+ /** ContentfulCollectionUpdated teaser */
14381
+ teaser?: ({ [k: string]: string }|null);
14382
+
14383
+ /** ContentfulCollectionUpdated description */
14384
+ description?: ({ [k: string]: string }|null);
14385
+
14386
+ /** ContentfulCollectionUpdated updatedAt */
14387
+ updatedAt?: (number|Long|null);
14388
+ }
14389
+
14390
+ /** Represents a ContentfulCollectionUpdated. */
14391
+ export class ContentfulCollectionUpdated implements IContentfulCollectionUpdated {
14392
+
14393
+ /**
14394
+ * Constructs a new ContentfulCollectionUpdated.
14395
+ * @param [properties] Properties to set
14396
+ */
14397
+ constructor(properties?: IContentfulCollectionUpdated);
14398
+
14399
+ /** ContentfulCollectionUpdated name. */
14400
+ public name: { [k: string]: string };
14401
+
14402
+ /** ContentfulCollectionUpdated slug. */
14403
+ public slug: string;
14404
+
14405
+ /** ContentfulCollectionUpdated teaser. */
14406
+ public teaser: { [k: string]: string };
14407
+
14408
+ /** ContentfulCollectionUpdated description. */
14409
+ public description: { [k: string]: string };
14410
+
14411
+ /** ContentfulCollectionUpdated updatedAt. */
14412
+ public updatedAt: (number|Long);
14413
+
14414
+ /**
14415
+ * Creates a new ContentfulCollectionUpdated instance using the specified properties.
14416
+ * @param [properties] Properties to set
14417
+ * @returns ContentfulCollectionUpdated instance
14418
+ */
14419
+ public static create(properties?: IContentfulCollectionUpdated): ContentfulCollectionUpdated;
14420
+
14421
+ /**
14422
+ * Encodes the specified ContentfulCollectionUpdated message. Does not implicitly {@link ContentfulCollectionUpdated.verify|verify} messages.
14423
+ * @param message ContentfulCollectionUpdated message or plain object to encode
14424
+ * @param [writer] Writer to encode to
14425
+ * @returns Writer
14426
+ */
14427
+ public static encode(message: IContentfulCollectionUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
14428
+
14429
+ /**
14430
+ * Encodes the specified ContentfulCollectionUpdated message, length delimited. Does not implicitly {@link ContentfulCollectionUpdated.verify|verify} messages.
14431
+ * @param message ContentfulCollectionUpdated message or plain object to encode
14432
+ * @param [writer] Writer to encode to
14433
+ * @returns Writer
14434
+ */
14435
+ public static encodeDelimited(message: IContentfulCollectionUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
14436
+
14437
+ /**
14438
+ * Decodes a ContentfulCollectionUpdated message from the specified reader or buffer.
14439
+ * @param reader Reader or buffer to decode from
14440
+ * @param [length] Message length if known beforehand
14441
+ * @returns ContentfulCollectionUpdated
14442
+ * @throws {Error} If the payload is not a reader or valid buffer
14443
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14444
+ */
14445
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ContentfulCollectionUpdated;
14446
+
14447
+ /**
14448
+ * Decodes a ContentfulCollectionUpdated message from the specified reader or buffer, length delimited.
14449
+ * @param reader Reader or buffer to decode from
14450
+ * @returns ContentfulCollectionUpdated
14451
+ * @throws {Error} If the payload is not a reader or valid buffer
14452
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14453
+ */
14454
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ContentfulCollectionUpdated;
14455
+
14456
+ /**
14457
+ * Verifies a ContentfulCollectionUpdated message.
14458
+ * @param message Plain object to verify
14459
+ * @returns `null` if valid, otherwise the reason why it is not
14460
+ */
14461
+ public static verify(message: { [k: string]: any }): (string|null);
14462
+
14463
+ /**
14464
+ * Creates a ContentfulCollectionUpdated message from a plain object. Also converts values to their respective internal types.
14465
+ * @param object Plain object
14466
+ * @returns ContentfulCollectionUpdated
14467
+ */
14468
+ public static fromObject(object: { [k: string]: any }): ContentfulCollectionUpdated;
14469
+
14470
+ /**
14471
+ * Creates a plain object from a ContentfulCollectionUpdated message. Also converts values to other types if specified.
14472
+ * @param message ContentfulCollectionUpdated
14473
+ * @param [options] Conversion options
14474
+ * @returns Plain object
14475
+ */
14476
+ public static toObject(message: ContentfulCollectionUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
14477
+
14478
+ /**
14479
+ * Converts this ContentfulCollectionUpdated to JSON.
14480
+ * @returns JSON object
14481
+ */
14482
+ public toJSON(): { [k: string]: any };
14483
+ }
14484
+
14485
+ /** Properties of a ContentfulCollectionDeleted. */
14486
+ export interface IContentfulCollectionDeleted {
14487
+
14488
+ /** ContentfulCollectionDeleted slug */
14489
+ slug?: (string|null);
14490
+
14491
+ /** ContentfulCollectionDeleted deletedAt */
14492
+ deletedAt?: (number|Long|null);
14493
+ }
14494
+
14495
+ /** Represents a ContentfulCollectionDeleted. */
14496
+ export class ContentfulCollectionDeleted implements IContentfulCollectionDeleted {
14497
+
14498
+ /**
14499
+ * Constructs a new ContentfulCollectionDeleted.
14500
+ * @param [properties] Properties to set
14501
+ */
14502
+ constructor(properties?: IContentfulCollectionDeleted);
14503
+
14504
+ /** ContentfulCollectionDeleted slug. */
14505
+ public slug: string;
14506
+
14507
+ /** ContentfulCollectionDeleted deletedAt. */
14508
+ public deletedAt: (number|Long);
14509
+
14510
+ /**
14511
+ * Creates a new ContentfulCollectionDeleted instance using the specified properties.
14512
+ * @param [properties] Properties to set
14513
+ * @returns ContentfulCollectionDeleted instance
14514
+ */
14515
+ public static create(properties?: IContentfulCollectionDeleted): ContentfulCollectionDeleted;
14516
+
14517
+ /**
14518
+ * Encodes the specified ContentfulCollectionDeleted message. Does not implicitly {@link ContentfulCollectionDeleted.verify|verify} messages.
14519
+ * @param message ContentfulCollectionDeleted message or plain object to encode
14520
+ * @param [writer] Writer to encode to
14521
+ * @returns Writer
14522
+ */
14523
+ public static encode(message: IContentfulCollectionDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
14524
+
14525
+ /**
14526
+ * Encodes the specified ContentfulCollectionDeleted message, length delimited. Does not implicitly {@link ContentfulCollectionDeleted.verify|verify} messages.
14527
+ * @param message ContentfulCollectionDeleted message or plain object to encode
14528
+ * @param [writer] Writer to encode to
14529
+ * @returns Writer
14530
+ */
14531
+ public static encodeDelimited(message: IContentfulCollectionDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
14532
+
14533
+ /**
14534
+ * Decodes a ContentfulCollectionDeleted message from the specified reader or buffer.
14535
+ * @param reader Reader or buffer to decode from
14536
+ * @param [length] Message length if known beforehand
14537
+ * @returns ContentfulCollectionDeleted
14538
+ * @throws {Error} If the payload is not a reader or valid buffer
14539
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14540
+ */
14541
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ContentfulCollectionDeleted;
14542
+
14543
+ /**
14544
+ * Decodes a ContentfulCollectionDeleted message from the specified reader or buffer, length delimited.
14545
+ * @param reader Reader or buffer to decode from
14546
+ * @returns ContentfulCollectionDeleted
14547
+ * @throws {Error} If the payload is not a reader or valid buffer
14548
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
14549
+ */
14550
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ContentfulCollectionDeleted;
14551
+
14552
+ /**
14553
+ * Verifies a ContentfulCollectionDeleted message.
14554
+ * @param message Plain object to verify
14555
+ * @returns `null` if valid, otherwise the reason why it is not
14556
+ */
14557
+ public static verify(message: { [k: string]: any }): (string|null);
14558
+
14559
+ /**
14560
+ * Creates a ContentfulCollectionDeleted message from a plain object. Also converts values to their respective internal types.
14561
+ * @param object Plain object
14562
+ * @returns ContentfulCollectionDeleted
14563
+ */
14564
+ public static fromObject(object: { [k: string]: any }): ContentfulCollectionDeleted;
14565
+
14566
+ /**
14567
+ * Creates a plain object from a ContentfulCollectionDeleted message. Also converts values to other types if specified.
14568
+ * @param message ContentfulCollectionDeleted
14569
+ * @param [options] Conversion options
14570
+ * @returns Plain object
14571
+ */
14572
+ public static toObject(message: ContentfulCollectionDeleted, options?: $protobuf.IConversionOptions): { [k: string]: any };
14573
+
14574
+ /**
14575
+ * Converts this ContentfulCollectionDeleted to JSON.
14576
+ * @returns JSON object
14577
+ */
14578
+ public toJSON(): { [k: string]: any };
14579
+ }
14580
+
14257
14581
  /** Properties of a ContentfulMediaWrapperCreated. */
14258
14582
  export interface IContentfulMediaWrapperCreated {
14259
14583
 
package/lib/index.js CHANGED
@@ -36310,6 +36310,936 @@ $root.ContentfulCategoryDeleted = (function() {
36310
36310
  return ContentfulCategoryDeleted;
36311
36311
  })();
36312
36312
 
36313
+ $root.ContentfulCollectionCreated = (function() {
36314
+
36315
+ /**
36316
+ * Properties of a ContentfulCollectionCreated.
36317
+ * @exports IContentfulCollectionCreated
36318
+ * @interface IContentfulCollectionCreated
36319
+ * @property {Object.<string,string>|null} [name] ContentfulCollectionCreated name
36320
+ * @property {string|null} [slug] ContentfulCollectionCreated slug
36321
+ * @property {Object.<string,string>|null} [teaser] ContentfulCollectionCreated teaser
36322
+ * @property {Object.<string,string>|null} [description] ContentfulCollectionCreated description
36323
+ * @property {number|Long|null} [createdAt] ContentfulCollectionCreated createdAt
36324
+ */
36325
+
36326
+ /**
36327
+ * Constructs a new ContentfulCollectionCreated.
36328
+ * @exports ContentfulCollectionCreated
36329
+ * @classdesc Represents a ContentfulCollectionCreated.
36330
+ * @implements IContentfulCollectionCreated
36331
+ * @constructor
36332
+ * @param {IContentfulCollectionCreated=} [properties] Properties to set
36333
+ */
36334
+ function ContentfulCollectionCreated(properties) {
36335
+ this.name = {};
36336
+ this.teaser = {};
36337
+ this.description = {};
36338
+ if (properties)
36339
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
36340
+ if (properties[keys[i]] != null)
36341
+ this[keys[i]] = properties[keys[i]];
36342
+ }
36343
+
36344
+ /**
36345
+ * ContentfulCollectionCreated name.
36346
+ * @member {Object.<string,string>} name
36347
+ * @memberof ContentfulCollectionCreated
36348
+ * @instance
36349
+ */
36350
+ ContentfulCollectionCreated.prototype.name = $util.emptyObject;
36351
+
36352
+ /**
36353
+ * ContentfulCollectionCreated slug.
36354
+ * @member {string} slug
36355
+ * @memberof ContentfulCollectionCreated
36356
+ * @instance
36357
+ */
36358
+ ContentfulCollectionCreated.prototype.slug = "";
36359
+
36360
+ /**
36361
+ * ContentfulCollectionCreated teaser.
36362
+ * @member {Object.<string,string>} teaser
36363
+ * @memberof ContentfulCollectionCreated
36364
+ * @instance
36365
+ */
36366
+ ContentfulCollectionCreated.prototype.teaser = $util.emptyObject;
36367
+
36368
+ /**
36369
+ * ContentfulCollectionCreated description.
36370
+ * @member {Object.<string,string>} description
36371
+ * @memberof ContentfulCollectionCreated
36372
+ * @instance
36373
+ */
36374
+ ContentfulCollectionCreated.prototype.description = $util.emptyObject;
36375
+
36376
+ /**
36377
+ * ContentfulCollectionCreated createdAt.
36378
+ * @member {number|Long} createdAt
36379
+ * @memberof ContentfulCollectionCreated
36380
+ * @instance
36381
+ */
36382
+ ContentfulCollectionCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
36383
+
36384
+ /**
36385
+ * Creates a new ContentfulCollectionCreated instance using the specified properties.
36386
+ * @function create
36387
+ * @memberof ContentfulCollectionCreated
36388
+ * @static
36389
+ * @param {IContentfulCollectionCreated=} [properties] Properties to set
36390
+ * @returns {ContentfulCollectionCreated} ContentfulCollectionCreated instance
36391
+ */
36392
+ ContentfulCollectionCreated.create = function create(properties) {
36393
+ return new ContentfulCollectionCreated(properties);
36394
+ };
36395
+
36396
+ /**
36397
+ * Encodes the specified ContentfulCollectionCreated message. Does not implicitly {@link ContentfulCollectionCreated.verify|verify} messages.
36398
+ * @function encode
36399
+ * @memberof ContentfulCollectionCreated
36400
+ * @static
36401
+ * @param {IContentfulCollectionCreated} message ContentfulCollectionCreated message or plain object to encode
36402
+ * @param {$protobuf.Writer} [writer] Writer to encode to
36403
+ * @returns {$protobuf.Writer} Writer
36404
+ */
36405
+ ContentfulCollectionCreated.encode = function encode(message, writer) {
36406
+ if (!writer)
36407
+ writer = $Writer.create();
36408
+ if (message.name != null && message.hasOwnProperty("name"))
36409
+ for (var keys = Object.keys(message.name), i = 0; i < keys.length; ++i)
36410
+ writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.name[keys[i]]).ldelim();
36411
+ if (message.slug != null && message.hasOwnProperty("slug"))
36412
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
36413
+ if (message.teaser != null && message.hasOwnProperty("teaser"))
36414
+ for (var keys = Object.keys(message.teaser), i = 0; i < keys.length; ++i)
36415
+ writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.teaser[keys[i]]).ldelim();
36416
+ if (message.description != null && message.hasOwnProperty("description"))
36417
+ for (var keys = Object.keys(message.description), i = 0; i < keys.length; ++i)
36418
+ writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.description[keys[i]]).ldelim();
36419
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
36420
+ writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.createdAt);
36421
+ return writer;
36422
+ };
36423
+
36424
+ /**
36425
+ * Encodes the specified ContentfulCollectionCreated message, length delimited. Does not implicitly {@link ContentfulCollectionCreated.verify|verify} messages.
36426
+ * @function encodeDelimited
36427
+ * @memberof ContentfulCollectionCreated
36428
+ * @static
36429
+ * @param {IContentfulCollectionCreated} message ContentfulCollectionCreated message or plain object to encode
36430
+ * @param {$protobuf.Writer} [writer] Writer to encode to
36431
+ * @returns {$protobuf.Writer} Writer
36432
+ */
36433
+ ContentfulCollectionCreated.encodeDelimited = function encodeDelimited(message, writer) {
36434
+ return this.encode(message, writer).ldelim();
36435
+ };
36436
+
36437
+ /**
36438
+ * Decodes a ContentfulCollectionCreated message from the specified reader or buffer.
36439
+ * @function decode
36440
+ * @memberof ContentfulCollectionCreated
36441
+ * @static
36442
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
36443
+ * @param {number} [length] Message length if known beforehand
36444
+ * @returns {ContentfulCollectionCreated} ContentfulCollectionCreated
36445
+ * @throws {Error} If the payload is not a reader or valid buffer
36446
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
36447
+ */
36448
+ ContentfulCollectionCreated.decode = function decode(reader, length) {
36449
+ if (!(reader instanceof $Reader))
36450
+ reader = $Reader.create(reader);
36451
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulCollectionCreated(), key;
36452
+ while (reader.pos < end) {
36453
+ var tag = reader.uint32();
36454
+ switch (tag >>> 3) {
36455
+ case 1:
36456
+ reader.skip().pos++;
36457
+ if (message.name === $util.emptyObject)
36458
+ message.name = {};
36459
+ key = reader.string();
36460
+ reader.pos++;
36461
+ message.name[key] = reader.string();
36462
+ break;
36463
+ case 2:
36464
+ message.slug = reader.string();
36465
+ break;
36466
+ case 3:
36467
+ reader.skip().pos++;
36468
+ if (message.teaser === $util.emptyObject)
36469
+ message.teaser = {};
36470
+ key = reader.string();
36471
+ reader.pos++;
36472
+ message.teaser[key] = reader.string();
36473
+ break;
36474
+ case 4:
36475
+ reader.skip().pos++;
36476
+ if (message.description === $util.emptyObject)
36477
+ message.description = {};
36478
+ key = reader.string();
36479
+ reader.pos++;
36480
+ message.description[key] = reader.string();
36481
+ break;
36482
+ case 5:
36483
+ message.createdAt = reader.uint64();
36484
+ break;
36485
+ default:
36486
+ reader.skipType(tag & 7);
36487
+ break;
36488
+ }
36489
+ }
36490
+ return message;
36491
+ };
36492
+
36493
+ /**
36494
+ * Decodes a ContentfulCollectionCreated message from the specified reader or buffer, length delimited.
36495
+ * @function decodeDelimited
36496
+ * @memberof ContentfulCollectionCreated
36497
+ * @static
36498
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
36499
+ * @returns {ContentfulCollectionCreated} ContentfulCollectionCreated
36500
+ * @throws {Error} If the payload is not a reader or valid buffer
36501
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
36502
+ */
36503
+ ContentfulCollectionCreated.decodeDelimited = function decodeDelimited(reader) {
36504
+ if (!(reader instanceof $Reader))
36505
+ reader = new $Reader(reader);
36506
+ return this.decode(reader, reader.uint32());
36507
+ };
36508
+
36509
+ /**
36510
+ * Verifies a ContentfulCollectionCreated message.
36511
+ * @function verify
36512
+ * @memberof ContentfulCollectionCreated
36513
+ * @static
36514
+ * @param {Object.<string,*>} message Plain object to verify
36515
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
36516
+ */
36517
+ ContentfulCollectionCreated.verify = function verify(message) {
36518
+ if (typeof message !== "object" || message === null)
36519
+ return "object expected";
36520
+ if (message.name != null && message.hasOwnProperty("name")) {
36521
+ if (!$util.isObject(message.name))
36522
+ return "name: object expected";
36523
+ var key = Object.keys(message.name);
36524
+ for (var i = 0; i < key.length; ++i)
36525
+ if (!$util.isString(message.name[key[i]]))
36526
+ return "name: string{k:string} expected";
36527
+ }
36528
+ if (message.slug != null && message.hasOwnProperty("slug"))
36529
+ if (!$util.isString(message.slug))
36530
+ return "slug: string expected";
36531
+ if (message.teaser != null && message.hasOwnProperty("teaser")) {
36532
+ if (!$util.isObject(message.teaser))
36533
+ return "teaser: object expected";
36534
+ var key = Object.keys(message.teaser);
36535
+ for (var i = 0; i < key.length; ++i)
36536
+ if (!$util.isString(message.teaser[key[i]]))
36537
+ return "teaser: string{k:string} expected";
36538
+ }
36539
+ if (message.description != null && message.hasOwnProperty("description")) {
36540
+ if (!$util.isObject(message.description))
36541
+ return "description: object expected";
36542
+ var key = Object.keys(message.description);
36543
+ for (var i = 0; i < key.length; ++i)
36544
+ if (!$util.isString(message.description[key[i]]))
36545
+ return "description: string{k:string} expected";
36546
+ }
36547
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
36548
+ if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
36549
+ return "createdAt: integer|Long expected";
36550
+ return null;
36551
+ };
36552
+
36553
+ /**
36554
+ * Creates a ContentfulCollectionCreated message from a plain object. Also converts values to their respective internal types.
36555
+ * @function fromObject
36556
+ * @memberof ContentfulCollectionCreated
36557
+ * @static
36558
+ * @param {Object.<string,*>} object Plain object
36559
+ * @returns {ContentfulCollectionCreated} ContentfulCollectionCreated
36560
+ */
36561
+ ContentfulCollectionCreated.fromObject = function fromObject(object) {
36562
+ if (object instanceof $root.ContentfulCollectionCreated)
36563
+ return object;
36564
+ var message = new $root.ContentfulCollectionCreated();
36565
+ if (object.name) {
36566
+ if (typeof object.name !== "object")
36567
+ throw TypeError(".ContentfulCollectionCreated.name: object expected");
36568
+ message.name = {};
36569
+ for (var keys = Object.keys(object.name), i = 0; i < keys.length; ++i)
36570
+ message.name[keys[i]] = String(object.name[keys[i]]);
36571
+ }
36572
+ if (object.slug != null)
36573
+ message.slug = String(object.slug);
36574
+ if (object.teaser) {
36575
+ if (typeof object.teaser !== "object")
36576
+ throw TypeError(".ContentfulCollectionCreated.teaser: object expected");
36577
+ message.teaser = {};
36578
+ for (var keys = Object.keys(object.teaser), i = 0; i < keys.length; ++i)
36579
+ message.teaser[keys[i]] = String(object.teaser[keys[i]]);
36580
+ }
36581
+ if (object.description) {
36582
+ if (typeof object.description !== "object")
36583
+ throw TypeError(".ContentfulCollectionCreated.description: object expected");
36584
+ message.description = {};
36585
+ for (var keys = Object.keys(object.description), i = 0; i < keys.length; ++i)
36586
+ message.description[keys[i]] = String(object.description[keys[i]]);
36587
+ }
36588
+ if (object.createdAt != null)
36589
+ if ($util.Long)
36590
+ (message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
36591
+ else if (typeof object.createdAt === "string")
36592
+ message.createdAt = parseInt(object.createdAt, 10);
36593
+ else if (typeof object.createdAt === "number")
36594
+ message.createdAt = object.createdAt;
36595
+ else if (typeof object.createdAt === "object")
36596
+ message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
36597
+ return message;
36598
+ };
36599
+
36600
+ /**
36601
+ * Creates a plain object from a ContentfulCollectionCreated message. Also converts values to other types if specified.
36602
+ * @function toObject
36603
+ * @memberof ContentfulCollectionCreated
36604
+ * @static
36605
+ * @param {ContentfulCollectionCreated} message ContentfulCollectionCreated
36606
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
36607
+ * @returns {Object.<string,*>} Plain object
36608
+ */
36609
+ ContentfulCollectionCreated.toObject = function toObject(message, options) {
36610
+ if (!options)
36611
+ options = {};
36612
+ var object = {};
36613
+ if (options.objects || options.defaults) {
36614
+ object.name = {};
36615
+ object.teaser = {};
36616
+ object.description = {};
36617
+ }
36618
+ if (options.defaults) {
36619
+ object.slug = "";
36620
+ if ($util.Long) {
36621
+ var long = new $util.Long(0, 0, true);
36622
+ object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
36623
+ } else
36624
+ object.createdAt = options.longs === String ? "0" : 0;
36625
+ }
36626
+ var keys2;
36627
+ if (message.name && (keys2 = Object.keys(message.name)).length) {
36628
+ object.name = {};
36629
+ for (var j = 0; j < keys2.length; ++j)
36630
+ object.name[keys2[j]] = message.name[keys2[j]];
36631
+ }
36632
+ if (message.slug != null && message.hasOwnProperty("slug"))
36633
+ object.slug = message.slug;
36634
+ if (message.teaser && (keys2 = Object.keys(message.teaser)).length) {
36635
+ object.teaser = {};
36636
+ for (var j = 0; j < keys2.length; ++j)
36637
+ object.teaser[keys2[j]] = message.teaser[keys2[j]];
36638
+ }
36639
+ if (message.description && (keys2 = Object.keys(message.description)).length) {
36640
+ object.description = {};
36641
+ for (var j = 0; j < keys2.length; ++j)
36642
+ object.description[keys2[j]] = message.description[keys2[j]];
36643
+ }
36644
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
36645
+ if (typeof message.createdAt === "number")
36646
+ object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
36647
+ else
36648
+ object.createdAt = options.longs === String ? $util.Long.prototype.toString.call(message.createdAt) : options.longs === Number ? new $util.LongBits(message.createdAt.low >>> 0, message.createdAt.high >>> 0).toNumber(true) : message.createdAt;
36649
+ return object;
36650
+ };
36651
+
36652
+ /**
36653
+ * Converts this ContentfulCollectionCreated to JSON.
36654
+ * @function toJSON
36655
+ * @memberof ContentfulCollectionCreated
36656
+ * @instance
36657
+ * @returns {Object.<string,*>} JSON object
36658
+ */
36659
+ ContentfulCollectionCreated.prototype.toJSON = function toJSON() {
36660
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
36661
+ };
36662
+
36663
+ return ContentfulCollectionCreated;
36664
+ })();
36665
+
36666
+ $root.ContentfulCollectionUpdated = (function() {
36667
+
36668
+ /**
36669
+ * Properties of a ContentfulCollectionUpdated.
36670
+ * @exports IContentfulCollectionUpdated
36671
+ * @interface IContentfulCollectionUpdated
36672
+ * @property {Object.<string,string>|null} [name] ContentfulCollectionUpdated name
36673
+ * @property {string|null} [slug] ContentfulCollectionUpdated slug
36674
+ * @property {Object.<string,string>|null} [teaser] ContentfulCollectionUpdated teaser
36675
+ * @property {Object.<string,string>|null} [description] ContentfulCollectionUpdated description
36676
+ * @property {number|Long|null} [updatedAt] ContentfulCollectionUpdated updatedAt
36677
+ */
36678
+
36679
+ /**
36680
+ * Constructs a new ContentfulCollectionUpdated.
36681
+ * @exports ContentfulCollectionUpdated
36682
+ * @classdesc Represents a ContentfulCollectionUpdated.
36683
+ * @implements IContentfulCollectionUpdated
36684
+ * @constructor
36685
+ * @param {IContentfulCollectionUpdated=} [properties] Properties to set
36686
+ */
36687
+ function ContentfulCollectionUpdated(properties) {
36688
+ this.name = {};
36689
+ this.teaser = {};
36690
+ this.description = {};
36691
+ if (properties)
36692
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
36693
+ if (properties[keys[i]] != null)
36694
+ this[keys[i]] = properties[keys[i]];
36695
+ }
36696
+
36697
+ /**
36698
+ * ContentfulCollectionUpdated name.
36699
+ * @member {Object.<string,string>} name
36700
+ * @memberof ContentfulCollectionUpdated
36701
+ * @instance
36702
+ */
36703
+ ContentfulCollectionUpdated.prototype.name = $util.emptyObject;
36704
+
36705
+ /**
36706
+ * ContentfulCollectionUpdated slug.
36707
+ * @member {string} slug
36708
+ * @memberof ContentfulCollectionUpdated
36709
+ * @instance
36710
+ */
36711
+ ContentfulCollectionUpdated.prototype.slug = "";
36712
+
36713
+ /**
36714
+ * ContentfulCollectionUpdated teaser.
36715
+ * @member {Object.<string,string>} teaser
36716
+ * @memberof ContentfulCollectionUpdated
36717
+ * @instance
36718
+ */
36719
+ ContentfulCollectionUpdated.prototype.teaser = $util.emptyObject;
36720
+
36721
+ /**
36722
+ * ContentfulCollectionUpdated description.
36723
+ * @member {Object.<string,string>} description
36724
+ * @memberof ContentfulCollectionUpdated
36725
+ * @instance
36726
+ */
36727
+ ContentfulCollectionUpdated.prototype.description = $util.emptyObject;
36728
+
36729
+ /**
36730
+ * ContentfulCollectionUpdated updatedAt.
36731
+ * @member {number|Long} updatedAt
36732
+ * @memberof ContentfulCollectionUpdated
36733
+ * @instance
36734
+ */
36735
+ ContentfulCollectionUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
36736
+
36737
+ /**
36738
+ * Creates a new ContentfulCollectionUpdated instance using the specified properties.
36739
+ * @function create
36740
+ * @memberof ContentfulCollectionUpdated
36741
+ * @static
36742
+ * @param {IContentfulCollectionUpdated=} [properties] Properties to set
36743
+ * @returns {ContentfulCollectionUpdated} ContentfulCollectionUpdated instance
36744
+ */
36745
+ ContentfulCollectionUpdated.create = function create(properties) {
36746
+ return new ContentfulCollectionUpdated(properties);
36747
+ };
36748
+
36749
+ /**
36750
+ * Encodes the specified ContentfulCollectionUpdated message. Does not implicitly {@link ContentfulCollectionUpdated.verify|verify} messages.
36751
+ * @function encode
36752
+ * @memberof ContentfulCollectionUpdated
36753
+ * @static
36754
+ * @param {IContentfulCollectionUpdated} message ContentfulCollectionUpdated message or plain object to encode
36755
+ * @param {$protobuf.Writer} [writer] Writer to encode to
36756
+ * @returns {$protobuf.Writer} Writer
36757
+ */
36758
+ ContentfulCollectionUpdated.encode = function encode(message, writer) {
36759
+ if (!writer)
36760
+ writer = $Writer.create();
36761
+ if (message.name != null && message.hasOwnProperty("name"))
36762
+ for (var keys = Object.keys(message.name), i = 0; i < keys.length; ++i)
36763
+ writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.name[keys[i]]).ldelim();
36764
+ if (message.slug != null && message.hasOwnProperty("slug"))
36765
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
36766
+ if (message.teaser != null && message.hasOwnProperty("teaser"))
36767
+ for (var keys = Object.keys(message.teaser), i = 0; i < keys.length; ++i)
36768
+ writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.teaser[keys[i]]).ldelim();
36769
+ if (message.description != null && message.hasOwnProperty("description"))
36770
+ for (var keys = Object.keys(message.description), i = 0; i < keys.length; ++i)
36771
+ writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.description[keys[i]]).ldelim();
36772
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
36773
+ writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.updatedAt);
36774
+ return writer;
36775
+ };
36776
+
36777
+ /**
36778
+ * Encodes the specified ContentfulCollectionUpdated message, length delimited. Does not implicitly {@link ContentfulCollectionUpdated.verify|verify} messages.
36779
+ * @function encodeDelimited
36780
+ * @memberof ContentfulCollectionUpdated
36781
+ * @static
36782
+ * @param {IContentfulCollectionUpdated} message ContentfulCollectionUpdated message or plain object to encode
36783
+ * @param {$protobuf.Writer} [writer] Writer to encode to
36784
+ * @returns {$protobuf.Writer} Writer
36785
+ */
36786
+ ContentfulCollectionUpdated.encodeDelimited = function encodeDelimited(message, writer) {
36787
+ return this.encode(message, writer).ldelim();
36788
+ };
36789
+
36790
+ /**
36791
+ * Decodes a ContentfulCollectionUpdated message from the specified reader or buffer.
36792
+ * @function decode
36793
+ * @memberof ContentfulCollectionUpdated
36794
+ * @static
36795
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
36796
+ * @param {number} [length] Message length if known beforehand
36797
+ * @returns {ContentfulCollectionUpdated} ContentfulCollectionUpdated
36798
+ * @throws {Error} If the payload is not a reader or valid buffer
36799
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
36800
+ */
36801
+ ContentfulCollectionUpdated.decode = function decode(reader, length) {
36802
+ if (!(reader instanceof $Reader))
36803
+ reader = $Reader.create(reader);
36804
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulCollectionUpdated(), key;
36805
+ while (reader.pos < end) {
36806
+ var tag = reader.uint32();
36807
+ switch (tag >>> 3) {
36808
+ case 1:
36809
+ reader.skip().pos++;
36810
+ if (message.name === $util.emptyObject)
36811
+ message.name = {};
36812
+ key = reader.string();
36813
+ reader.pos++;
36814
+ message.name[key] = reader.string();
36815
+ break;
36816
+ case 2:
36817
+ message.slug = reader.string();
36818
+ break;
36819
+ case 3:
36820
+ reader.skip().pos++;
36821
+ if (message.teaser === $util.emptyObject)
36822
+ message.teaser = {};
36823
+ key = reader.string();
36824
+ reader.pos++;
36825
+ message.teaser[key] = reader.string();
36826
+ break;
36827
+ case 4:
36828
+ reader.skip().pos++;
36829
+ if (message.description === $util.emptyObject)
36830
+ message.description = {};
36831
+ key = reader.string();
36832
+ reader.pos++;
36833
+ message.description[key] = reader.string();
36834
+ break;
36835
+ case 5:
36836
+ message.updatedAt = reader.uint64();
36837
+ break;
36838
+ default:
36839
+ reader.skipType(tag & 7);
36840
+ break;
36841
+ }
36842
+ }
36843
+ return message;
36844
+ };
36845
+
36846
+ /**
36847
+ * Decodes a ContentfulCollectionUpdated message from the specified reader or buffer, length delimited.
36848
+ * @function decodeDelimited
36849
+ * @memberof ContentfulCollectionUpdated
36850
+ * @static
36851
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
36852
+ * @returns {ContentfulCollectionUpdated} ContentfulCollectionUpdated
36853
+ * @throws {Error} If the payload is not a reader or valid buffer
36854
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
36855
+ */
36856
+ ContentfulCollectionUpdated.decodeDelimited = function decodeDelimited(reader) {
36857
+ if (!(reader instanceof $Reader))
36858
+ reader = new $Reader(reader);
36859
+ return this.decode(reader, reader.uint32());
36860
+ };
36861
+
36862
+ /**
36863
+ * Verifies a ContentfulCollectionUpdated message.
36864
+ * @function verify
36865
+ * @memberof ContentfulCollectionUpdated
36866
+ * @static
36867
+ * @param {Object.<string,*>} message Plain object to verify
36868
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
36869
+ */
36870
+ ContentfulCollectionUpdated.verify = function verify(message) {
36871
+ if (typeof message !== "object" || message === null)
36872
+ return "object expected";
36873
+ if (message.name != null && message.hasOwnProperty("name")) {
36874
+ if (!$util.isObject(message.name))
36875
+ return "name: object expected";
36876
+ var key = Object.keys(message.name);
36877
+ for (var i = 0; i < key.length; ++i)
36878
+ if (!$util.isString(message.name[key[i]]))
36879
+ return "name: string{k:string} expected";
36880
+ }
36881
+ if (message.slug != null && message.hasOwnProperty("slug"))
36882
+ if (!$util.isString(message.slug))
36883
+ return "slug: string expected";
36884
+ if (message.teaser != null && message.hasOwnProperty("teaser")) {
36885
+ if (!$util.isObject(message.teaser))
36886
+ return "teaser: object expected";
36887
+ var key = Object.keys(message.teaser);
36888
+ for (var i = 0; i < key.length; ++i)
36889
+ if (!$util.isString(message.teaser[key[i]]))
36890
+ return "teaser: string{k:string} expected";
36891
+ }
36892
+ if (message.description != null && message.hasOwnProperty("description")) {
36893
+ if (!$util.isObject(message.description))
36894
+ return "description: object expected";
36895
+ var key = Object.keys(message.description);
36896
+ for (var i = 0; i < key.length; ++i)
36897
+ if (!$util.isString(message.description[key[i]]))
36898
+ return "description: string{k:string} expected";
36899
+ }
36900
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
36901
+ if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
36902
+ return "updatedAt: integer|Long expected";
36903
+ return null;
36904
+ };
36905
+
36906
+ /**
36907
+ * Creates a ContentfulCollectionUpdated message from a plain object. Also converts values to their respective internal types.
36908
+ * @function fromObject
36909
+ * @memberof ContentfulCollectionUpdated
36910
+ * @static
36911
+ * @param {Object.<string,*>} object Plain object
36912
+ * @returns {ContentfulCollectionUpdated} ContentfulCollectionUpdated
36913
+ */
36914
+ ContentfulCollectionUpdated.fromObject = function fromObject(object) {
36915
+ if (object instanceof $root.ContentfulCollectionUpdated)
36916
+ return object;
36917
+ var message = new $root.ContentfulCollectionUpdated();
36918
+ if (object.name) {
36919
+ if (typeof object.name !== "object")
36920
+ throw TypeError(".ContentfulCollectionUpdated.name: object expected");
36921
+ message.name = {};
36922
+ for (var keys = Object.keys(object.name), i = 0; i < keys.length; ++i)
36923
+ message.name[keys[i]] = String(object.name[keys[i]]);
36924
+ }
36925
+ if (object.slug != null)
36926
+ message.slug = String(object.slug);
36927
+ if (object.teaser) {
36928
+ if (typeof object.teaser !== "object")
36929
+ throw TypeError(".ContentfulCollectionUpdated.teaser: object expected");
36930
+ message.teaser = {};
36931
+ for (var keys = Object.keys(object.teaser), i = 0; i < keys.length; ++i)
36932
+ message.teaser[keys[i]] = String(object.teaser[keys[i]]);
36933
+ }
36934
+ if (object.description) {
36935
+ if (typeof object.description !== "object")
36936
+ throw TypeError(".ContentfulCollectionUpdated.description: object expected");
36937
+ message.description = {};
36938
+ for (var keys = Object.keys(object.description), i = 0; i < keys.length; ++i)
36939
+ message.description[keys[i]] = String(object.description[keys[i]]);
36940
+ }
36941
+ if (object.updatedAt != null)
36942
+ if ($util.Long)
36943
+ (message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
36944
+ else if (typeof object.updatedAt === "string")
36945
+ message.updatedAt = parseInt(object.updatedAt, 10);
36946
+ else if (typeof object.updatedAt === "number")
36947
+ message.updatedAt = object.updatedAt;
36948
+ else if (typeof object.updatedAt === "object")
36949
+ message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
36950
+ return message;
36951
+ };
36952
+
36953
+ /**
36954
+ * Creates a plain object from a ContentfulCollectionUpdated message. Also converts values to other types if specified.
36955
+ * @function toObject
36956
+ * @memberof ContentfulCollectionUpdated
36957
+ * @static
36958
+ * @param {ContentfulCollectionUpdated} message ContentfulCollectionUpdated
36959
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
36960
+ * @returns {Object.<string,*>} Plain object
36961
+ */
36962
+ ContentfulCollectionUpdated.toObject = function toObject(message, options) {
36963
+ if (!options)
36964
+ options = {};
36965
+ var object = {};
36966
+ if (options.objects || options.defaults) {
36967
+ object.name = {};
36968
+ object.teaser = {};
36969
+ object.description = {};
36970
+ }
36971
+ if (options.defaults) {
36972
+ object.slug = "";
36973
+ if ($util.Long) {
36974
+ var long = new $util.Long(0, 0, true);
36975
+ object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
36976
+ } else
36977
+ object.updatedAt = options.longs === String ? "0" : 0;
36978
+ }
36979
+ var keys2;
36980
+ if (message.name && (keys2 = Object.keys(message.name)).length) {
36981
+ object.name = {};
36982
+ for (var j = 0; j < keys2.length; ++j)
36983
+ object.name[keys2[j]] = message.name[keys2[j]];
36984
+ }
36985
+ if (message.slug != null && message.hasOwnProperty("slug"))
36986
+ object.slug = message.slug;
36987
+ if (message.teaser && (keys2 = Object.keys(message.teaser)).length) {
36988
+ object.teaser = {};
36989
+ for (var j = 0; j < keys2.length; ++j)
36990
+ object.teaser[keys2[j]] = message.teaser[keys2[j]];
36991
+ }
36992
+ if (message.description && (keys2 = Object.keys(message.description)).length) {
36993
+ object.description = {};
36994
+ for (var j = 0; j < keys2.length; ++j)
36995
+ object.description[keys2[j]] = message.description[keys2[j]];
36996
+ }
36997
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
36998
+ if (typeof message.updatedAt === "number")
36999
+ object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
37000
+ else
37001
+ object.updatedAt = options.longs === String ? $util.Long.prototype.toString.call(message.updatedAt) : options.longs === Number ? new $util.LongBits(message.updatedAt.low >>> 0, message.updatedAt.high >>> 0).toNumber(true) : message.updatedAt;
37002
+ return object;
37003
+ };
37004
+
37005
+ /**
37006
+ * Converts this ContentfulCollectionUpdated to JSON.
37007
+ * @function toJSON
37008
+ * @memberof ContentfulCollectionUpdated
37009
+ * @instance
37010
+ * @returns {Object.<string,*>} JSON object
37011
+ */
37012
+ ContentfulCollectionUpdated.prototype.toJSON = function toJSON() {
37013
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
37014
+ };
37015
+
37016
+ return ContentfulCollectionUpdated;
37017
+ })();
37018
+
37019
+ $root.ContentfulCollectionDeleted = (function() {
37020
+
37021
+ /**
37022
+ * Properties of a ContentfulCollectionDeleted.
37023
+ * @exports IContentfulCollectionDeleted
37024
+ * @interface IContentfulCollectionDeleted
37025
+ * @property {string|null} [slug] ContentfulCollectionDeleted slug
37026
+ * @property {number|Long|null} [deletedAt] ContentfulCollectionDeleted deletedAt
37027
+ */
37028
+
37029
+ /**
37030
+ * Constructs a new ContentfulCollectionDeleted.
37031
+ * @exports ContentfulCollectionDeleted
37032
+ * @classdesc Represents a ContentfulCollectionDeleted.
37033
+ * @implements IContentfulCollectionDeleted
37034
+ * @constructor
37035
+ * @param {IContentfulCollectionDeleted=} [properties] Properties to set
37036
+ */
37037
+ function ContentfulCollectionDeleted(properties) {
37038
+ if (properties)
37039
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
37040
+ if (properties[keys[i]] != null)
37041
+ this[keys[i]] = properties[keys[i]];
37042
+ }
37043
+
37044
+ /**
37045
+ * ContentfulCollectionDeleted slug.
37046
+ * @member {string} slug
37047
+ * @memberof ContentfulCollectionDeleted
37048
+ * @instance
37049
+ */
37050
+ ContentfulCollectionDeleted.prototype.slug = "";
37051
+
37052
+ /**
37053
+ * ContentfulCollectionDeleted deletedAt.
37054
+ * @member {number|Long} deletedAt
37055
+ * @memberof ContentfulCollectionDeleted
37056
+ * @instance
37057
+ */
37058
+ ContentfulCollectionDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
37059
+
37060
+ /**
37061
+ * Creates a new ContentfulCollectionDeleted instance using the specified properties.
37062
+ * @function create
37063
+ * @memberof ContentfulCollectionDeleted
37064
+ * @static
37065
+ * @param {IContentfulCollectionDeleted=} [properties] Properties to set
37066
+ * @returns {ContentfulCollectionDeleted} ContentfulCollectionDeleted instance
37067
+ */
37068
+ ContentfulCollectionDeleted.create = function create(properties) {
37069
+ return new ContentfulCollectionDeleted(properties);
37070
+ };
37071
+
37072
+ /**
37073
+ * Encodes the specified ContentfulCollectionDeleted message. Does not implicitly {@link ContentfulCollectionDeleted.verify|verify} messages.
37074
+ * @function encode
37075
+ * @memberof ContentfulCollectionDeleted
37076
+ * @static
37077
+ * @param {IContentfulCollectionDeleted} message ContentfulCollectionDeleted message or plain object to encode
37078
+ * @param {$protobuf.Writer} [writer] Writer to encode to
37079
+ * @returns {$protobuf.Writer} Writer
37080
+ */
37081
+ ContentfulCollectionDeleted.encode = function encode(message, writer) {
37082
+ if (!writer)
37083
+ writer = $Writer.create();
37084
+ if (message.slug != null && message.hasOwnProperty("slug"))
37085
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
37086
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
37087
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
37088
+ return writer;
37089
+ };
37090
+
37091
+ /**
37092
+ * Encodes the specified ContentfulCollectionDeleted message, length delimited. Does not implicitly {@link ContentfulCollectionDeleted.verify|verify} messages.
37093
+ * @function encodeDelimited
37094
+ * @memberof ContentfulCollectionDeleted
37095
+ * @static
37096
+ * @param {IContentfulCollectionDeleted} message ContentfulCollectionDeleted message or plain object to encode
37097
+ * @param {$protobuf.Writer} [writer] Writer to encode to
37098
+ * @returns {$protobuf.Writer} Writer
37099
+ */
37100
+ ContentfulCollectionDeleted.encodeDelimited = function encodeDelimited(message, writer) {
37101
+ return this.encode(message, writer).ldelim();
37102
+ };
37103
+
37104
+ /**
37105
+ * Decodes a ContentfulCollectionDeleted message from the specified reader or buffer.
37106
+ * @function decode
37107
+ * @memberof ContentfulCollectionDeleted
37108
+ * @static
37109
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
37110
+ * @param {number} [length] Message length if known beforehand
37111
+ * @returns {ContentfulCollectionDeleted} ContentfulCollectionDeleted
37112
+ * @throws {Error} If the payload is not a reader or valid buffer
37113
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
37114
+ */
37115
+ ContentfulCollectionDeleted.decode = function decode(reader, length) {
37116
+ if (!(reader instanceof $Reader))
37117
+ reader = $Reader.create(reader);
37118
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulCollectionDeleted();
37119
+ while (reader.pos < end) {
37120
+ var tag = reader.uint32();
37121
+ switch (tag >>> 3) {
37122
+ case 1:
37123
+ message.slug = reader.string();
37124
+ break;
37125
+ case 2:
37126
+ message.deletedAt = reader.uint64();
37127
+ break;
37128
+ default:
37129
+ reader.skipType(tag & 7);
37130
+ break;
37131
+ }
37132
+ }
37133
+ return message;
37134
+ };
37135
+
37136
+ /**
37137
+ * Decodes a ContentfulCollectionDeleted message from the specified reader or buffer, length delimited.
37138
+ * @function decodeDelimited
37139
+ * @memberof ContentfulCollectionDeleted
37140
+ * @static
37141
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
37142
+ * @returns {ContentfulCollectionDeleted} ContentfulCollectionDeleted
37143
+ * @throws {Error} If the payload is not a reader or valid buffer
37144
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
37145
+ */
37146
+ ContentfulCollectionDeleted.decodeDelimited = function decodeDelimited(reader) {
37147
+ if (!(reader instanceof $Reader))
37148
+ reader = new $Reader(reader);
37149
+ return this.decode(reader, reader.uint32());
37150
+ };
37151
+
37152
+ /**
37153
+ * Verifies a ContentfulCollectionDeleted message.
37154
+ * @function verify
37155
+ * @memberof ContentfulCollectionDeleted
37156
+ * @static
37157
+ * @param {Object.<string,*>} message Plain object to verify
37158
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
37159
+ */
37160
+ ContentfulCollectionDeleted.verify = function verify(message) {
37161
+ if (typeof message !== "object" || message === null)
37162
+ return "object expected";
37163
+ if (message.slug != null && message.hasOwnProperty("slug"))
37164
+ if (!$util.isString(message.slug))
37165
+ return "slug: string expected";
37166
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
37167
+ if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
37168
+ return "deletedAt: integer|Long expected";
37169
+ return null;
37170
+ };
37171
+
37172
+ /**
37173
+ * Creates a ContentfulCollectionDeleted message from a plain object. Also converts values to their respective internal types.
37174
+ * @function fromObject
37175
+ * @memberof ContentfulCollectionDeleted
37176
+ * @static
37177
+ * @param {Object.<string,*>} object Plain object
37178
+ * @returns {ContentfulCollectionDeleted} ContentfulCollectionDeleted
37179
+ */
37180
+ ContentfulCollectionDeleted.fromObject = function fromObject(object) {
37181
+ if (object instanceof $root.ContentfulCollectionDeleted)
37182
+ return object;
37183
+ var message = new $root.ContentfulCollectionDeleted();
37184
+ if (object.slug != null)
37185
+ message.slug = String(object.slug);
37186
+ if (object.deletedAt != null)
37187
+ if ($util.Long)
37188
+ (message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
37189
+ else if (typeof object.deletedAt === "string")
37190
+ message.deletedAt = parseInt(object.deletedAt, 10);
37191
+ else if (typeof object.deletedAt === "number")
37192
+ message.deletedAt = object.deletedAt;
37193
+ else if (typeof object.deletedAt === "object")
37194
+ message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
37195
+ return message;
37196
+ };
37197
+
37198
+ /**
37199
+ * Creates a plain object from a ContentfulCollectionDeleted message. Also converts values to other types if specified.
37200
+ * @function toObject
37201
+ * @memberof ContentfulCollectionDeleted
37202
+ * @static
37203
+ * @param {ContentfulCollectionDeleted} message ContentfulCollectionDeleted
37204
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
37205
+ * @returns {Object.<string,*>} Plain object
37206
+ */
37207
+ ContentfulCollectionDeleted.toObject = function toObject(message, options) {
37208
+ if (!options)
37209
+ options = {};
37210
+ var object = {};
37211
+ if (options.defaults) {
37212
+ object.slug = "";
37213
+ if ($util.Long) {
37214
+ var long = new $util.Long(0, 0, true);
37215
+ object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
37216
+ } else
37217
+ object.deletedAt = options.longs === String ? "0" : 0;
37218
+ }
37219
+ if (message.slug != null && message.hasOwnProperty("slug"))
37220
+ object.slug = message.slug;
37221
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
37222
+ if (typeof message.deletedAt === "number")
37223
+ object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
37224
+ else
37225
+ object.deletedAt = options.longs === String ? $util.Long.prototype.toString.call(message.deletedAt) : options.longs === Number ? new $util.LongBits(message.deletedAt.low >>> 0, message.deletedAt.high >>> 0).toNumber(true) : message.deletedAt;
37226
+ return object;
37227
+ };
37228
+
37229
+ /**
37230
+ * Converts this ContentfulCollectionDeleted to JSON.
37231
+ * @function toJSON
37232
+ * @memberof ContentfulCollectionDeleted
37233
+ * @instance
37234
+ * @returns {Object.<string,*>} JSON object
37235
+ */
37236
+ ContentfulCollectionDeleted.prototype.toJSON = function toJSON() {
37237
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
37238
+ };
37239
+
37240
+ return ContentfulCollectionDeleted;
37241
+ })();
37242
+
36313
37243
  $root.ContentfulMediaWrapperCreated = (function() {
36314
37244
 
36315
37245
  /**
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.277.0"
19
+ "version": "1.278.0"
20
20
  }