@headspace/protos-events 1.159.0 → 1.161.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.
Files changed (3) hide show
  1. package/lib/index.d.ts +12 -228
  2. package/lib/index.js +106 -662
  3. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -6387,9 +6387,6 @@ export interface IContentfulCategoryCreated {
6387
6387
  /** ContentfulCategoryCreated slug */
6388
6388
  slug?: (string|null);
6389
6389
 
6390
- /** ContentfulCategoryCreated topic */
6391
- topic?: (contentful.ISlugReference|null);
6392
-
6393
6390
  /** ContentfulCategoryCreated type */
6394
6391
  type?: (string|null);
6395
6392
 
@@ -6415,9 +6412,6 @@ export class ContentfulCategoryCreated implements IContentfulCategoryCreated {
6415
6412
  /** ContentfulCategoryCreated slug. */
6416
6413
  public slug: string;
6417
6414
 
6418
- /** ContentfulCategoryCreated topic. */
6419
- public topic?: (contentful.ISlugReference|null);
6420
-
6421
6415
  /** ContentfulCategoryCreated type. */
6422
6416
  public type: string;
6423
6417
 
@@ -6507,9 +6501,6 @@ export interface IContentfulCategoryUpdated {
6507
6501
  /** ContentfulCategoryUpdated slug */
6508
6502
  slug?: (string|null);
6509
6503
 
6510
- /** ContentfulCategoryUpdated topic */
6511
- topic?: (contentful.ISlugReference|null);
6512
-
6513
6504
  /** ContentfulCategoryUpdated type */
6514
6505
  type?: (string|null);
6515
6506
 
@@ -6535,9 +6526,6 @@ export class ContentfulCategoryUpdated implements IContentfulCategoryUpdated {
6535
6526
  /** ContentfulCategoryUpdated slug. */
6536
6527
  public slug: string;
6537
6528
 
6538
- /** ContentfulCategoryUpdated topic. */
6539
- public topic?: (contentful.ISlugReference|null);
6540
-
6541
6529
  /** ContentfulCategoryUpdated type. */
6542
6530
  public type: string;
6543
6531
 
@@ -6747,6 +6735,9 @@ export interface IContentfulTopicCreated {
6747
6735
  /** ContentfulTopicCreated menuPatternMedia */
6748
6736
  menuPatternMedia?: ({ [k: string]: contentful.IIdReference }|null);
6749
6737
 
6738
+ /** ContentfulTopicCreated categories */
6739
+ categories?: (contentful.ISlugReference[]|null);
6740
+
6750
6741
  /** ContentfulTopicCreated accessGroups */
6751
6742
  accessGroups?: (contentful.ISlugReference[]|null);
6752
6743
 
@@ -6793,6 +6784,9 @@ export class ContentfulTopicCreated implements IContentfulTopicCreated {
6793
6784
  /** ContentfulTopicCreated menuPatternMedia. */
6794
6785
  public menuPatternMedia: { [k: string]: contentful.IIdReference };
6795
6786
 
6787
+ /** ContentfulTopicCreated categories. */
6788
+ public categories: contentful.ISlugReference[];
6789
+
6796
6790
  /** ContentfulTopicCreated accessGroups. */
6797
6791
  public accessGroups: contentful.ISlugReference[];
6798
6792
 
@@ -6903,6 +6897,9 @@ export interface IContentfulTopicUpdated {
6903
6897
  /** ContentfulTopicUpdated menuPatternMedia */
6904
6898
  menuPatternMedia?: ({ [k: string]: contentful.IIdReference }|null);
6905
6899
 
6900
+ /** ContentfulTopicUpdated categories */
6901
+ categories?: (contentful.ISlugReference[]|null);
6902
+
6906
6903
  /** ContentfulTopicUpdated accessGroups */
6907
6904
  accessGroups?: (contentful.ISlugReference[]|null);
6908
6905
 
@@ -6949,6 +6946,9 @@ export class ContentfulTopicUpdated implements IContentfulTopicUpdated {
6949
6946
  /** ContentfulTopicUpdated menuPatternMedia. */
6950
6947
  public menuPatternMedia: { [k: string]: contentful.IIdReference };
6951
6948
 
6949
+ /** ContentfulTopicUpdated categories. */
6950
+ public categories: contentful.ISlugReference[];
6951
+
6952
6952
  /** ContentfulTopicUpdated accessGroups. */
6953
6953
  public accessGroups: contentful.ISlugReference[];
6954
6954
 
@@ -7338,222 +7338,6 @@ export class ContentfulOrderedTopicsUpdated implements IContentfulOrderedTopicsU
7338
7338
  public toJSON(): { [k: string]: any };
7339
7339
  }
7340
7340
 
7341
- /** Properties of a ContentfulOrderedCategoriesCreated. */
7342
- export interface IContentfulOrderedCategoriesCreated {
7343
-
7344
- /** ContentfulOrderedCategoriesCreated slug */
7345
- slug?: (string|null);
7346
-
7347
- /** ContentfulOrderedCategoriesCreated topic */
7348
- topic?: (contentful.ISlugReference|null);
7349
-
7350
- /** ContentfulOrderedCategoriesCreated categories */
7351
- categories?: (contentful.ISlugReference[]|null);
7352
-
7353
- /** ContentfulOrderedCategoriesCreated createdAt */
7354
- createdAt?: (number|Long|null);
7355
- }
7356
-
7357
- /** Represents a ContentfulOrderedCategoriesCreated. */
7358
- export class ContentfulOrderedCategoriesCreated implements IContentfulOrderedCategoriesCreated {
7359
-
7360
- /**
7361
- * Constructs a new ContentfulOrderedCategoriesCreated.
7362
- * @param [properties] Properties to set
7363
- */
7364
- constructor(properties?: IContentfulOrderedCategoriesCreated);
7365
-
7366
- /** ContentfulOrderedCategoriesCreated slug. */
7367
- public slug: string;
7368
-
7369
- /** ContentfulOrderedCategoriesCreated topic. */
7370
- public topic?: (contentful.ISlugReference|null);
7371
-
7372
- /** ContentfulOrderedCategoriesCreated categories. */
7373
- public categories: contentful.ISlugReference[];
7374
-
7375
- /** ContentfulOrderedCategoriesCreated createdAt. */
7376
- public createdAt: (number|Long);
7377
-
7378
- /**
7379
- * Creates a new ContentfulOrderedCategoriesCreated instance using the specified properties.
7380
- * @param [properties] Properties to set
7381
- * @returns ContentfulOrderedCategoriesCreated instance
7382
- */
7383
- public static create(properties?: IContentfulOrderedCategoriesCreated): ContentfulOrderedCategoriesCreated;
7384
-
7385
- /**
7386
- * Encodes the specified ContentfulOrderedCategoriesCreated message. Does not implicitly {@link ContentfulOrderedCategoriesCreated.verify|verify} messages.
7387
- * @param message ContentfulOrderedCategoriesCreated message or plain object to encode
7388
- * @param [writer] Writer to encode to
7389
- * @returns Writer
7390
- */
7391
- public static encode(message: IContentfulOrderedCategoriesCreated, writer?: $protobuf.Writer): $protobuf.Writer;
7392
-
7393
- /**
7394
- * Encodes the specified ContentfulOrderedCategoriesCreated message, length delimited. Does not implicitly {@link ContentfulOrderedCategoriesCreated.verify|verify} messages.
7395
- * @param message ContentfulOrderedCategoriesCreated message or plain object to encode
7396
- * @param [writer] Writer to encode to
7397
- * @returns Writer
7398
- */
7399
- public static encodeDelimited(message: IContentfulOrderedCategoriesCreated, writer?: $protobuf.Writer): $protobuf.Writer;
7400
-
7401
- /**
7402
- * Decodes a ContentfulOrderedCategoriesCreated message from the specified reader or buffer.
7403
- * @param reader Reader or buffer to decode from
7404
- * @param [length] Message length if known beforehand
7405
- * @returns ContentfulOrderedCategoriesCreated
7406
- * @throws {Error} If the payload is not a reader or valid buffer
7407
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
7408
- */
7409
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ContentfulOrderedCategoriesCreated;
7410
-
7411
- /**
7412
- * Decodes a ContentfulOrderedCategoriesCreated message from the specified reader or buffer, length delimited.
7413
- * @param reader Reader or buffer to decode from
7414
- * @returns ContentfulOrderedCategoriesCreated
7415
- * @throws {Error} If the payload is not a reader or valid buffer
7416
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
7417
- */
7418
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ContentfulOrderedCategoriesCreated;
7419
-
7420
- /**
7421
- * Verifies a ContentfulOrderedCategoriesCreated message.
7422
- * @param message Plain object to verify
7423
- * @returns `null` if valid, otherwise the reason why it is not
7424
- */
7425
- public static verify(message: { [k: string]: any }): (string|null);
7426
-
7427
- /**
7428
- * Creates a ContentfulOrderedCategoriesCreated message from a plain object. Also converts values to their respective internal types.
7429
- * @param object Plain object
7430
- * @returns ContentfulOrderedCategoriesCreated
7431
- */
7432
- public static fromObject(object: { [k: string]: any }): ContentfulOrderedCategoriesCreated;
7433
-
7434
- /**
7435
- * Creates a plain object from a ContentfulOrderedCategoriesCreated message. Also converts values to other types if specified.
7436
- * @param message ContentfulOrderedCategoriesCreated
7437
- * @param [options] Conversion options
7438
- * @returns Plain object
7439
- */
7440
- public static toObject(message: ContentfulOrderedCategoriesCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
7441
-
7442
- /**
7443
- * Converts this ContentfulOrderedCategoriesCreated to JSON.
7444
- * @returns JSON object
7445
- */
7446
- public toJSON(): { [k: string]: any };
7447
- }
7448
-
7449
- /** Properties of a ContentfulOrderedCategoriesUpdated. */
7450
- export interface IContentfulOrderedCategoriesUpdated {
7451
-
7452
- /** ContentfulOrderedCategoriesUpdated slug */
7453
- slug?: (string|null);
7454
-
7455
- /** ContentfulOrderedCategoriesUpdated topic */
7456
- topic?: (contentful.ISlugReference|null);
7457
-
7458
- /** ContentfulOrderedCategoriesUpdated categories */
7459
- categories?: (contentful.ISlugReference[]|null);
7460
-
7461
- /** ContentfulOrderedCategoriesUpdated updatedAt */
7462
- updatedAt?: (number|Long|null);
7463
- }
7464
-
7465
- /** Represents a ContentfulOrderedCategoriesUpdated. */
7466
- export class ContentfulOrderedCategoriesUpdated implements IContentfulOrderedCategoriesUpdated {
7467
-
7468
- /**
7469
- * Constructs a new ContentfulOrderedCategoriesUpdated.
7470
- * @param [properties] Properties to set
7471
- */
7472
- constructor(properties?: IContentfulOrderedCategoriesUpdated);
7473
-
7474
- /** ContentfulOrderedCategoriesUpdated slug. */
7475
- public slug: string;
7476
-
7477
- /** ContentfulOrderedCategoriesUpdated topic. */
7478
- public topic?: (contentful.ISlugReference|null);
7479
-
7480
- /** ContentfulOrderedCategoriesUpdated categories. */
7481
- public categories: contentful.ISlugReference[];
7482
-
7483
- /** ContentfulOrderedCategoriesUpdated updatedAt. */
7484
- public updatedAt: (number|Long);
7485
-
7486
- /**
7487
- * Creates a new ContentfulOrderedCategoriesUpdated instance using the specified properties.
7488
- * @param [properties] Properties to set
7489
- * @returns ContentfulOrderedCategoriesUpdated instance
7490
- */
7491
- public static create(properties?: IContentfulOrderedCategoriesUpdated): ContentfulOrderedCategoriesUpdated;
7492
-
7493
- /**
7494
- * Encodes the specified ContentfulOrderedCategoriesUpdated message. Does not implicitly {@link ContentfulOrderedCategoriesUpdated.verify|verify} messages.
7495
- * @param message ContentfulOrderedCategoriesUpdated message or plain object to encode
7496
- * @param [writer] Writer to encode to
7497
- * @returns Writer
7498
- */
7499
- public static encode(message: IContentfulOrderedCategoriesUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
7500
-
7501
- /**
7502
- * Encodes the specified ContentfulOrderedCategoriesUpdated message, length delimited. Does not implicitly {@link ContentfulOrderedCategoriesUpdated.verify|verify} messages.
7503
- * @param message ContentfulOrderedCategoriesUpdated message or plain object to encode
7504
- * @param [writer] Writer to encode to
7505
- * @returns Writer
7506
- */
7507
- public static encodeDelimited(message: IContentfulOrderedCategoriesUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
7508
-
7509
- /**
7510
- * Decodes a ContentfulOrderedCategoriesUpdated message from the specified reader or buffer.
7511
- * @param reader Reader or buffer to decode from
7512
- * @param [length] Message length if known beforehand
7513
- * @returns ContentfulOrderedCategoriesUpdated
7514
- * @throws {Error} If the payload is not a reader or valid buffer
7515
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
7516
- */
7517
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ContentfulOrderedCategoriesUpdated;
7518
-
7519
- /**
7520
- * Decodes a ContentfulOrderedCategoriesUpdated message from the specified reader or buffer, length delimited.
7521
- * @param reader Reader or buffer to decode from
7522
- * @returns ContentfulOrderedCategoriesUpdated
7523
- * @throws {Error} If the payload is not a reader or valid buffer
7524
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
7525
- */
7526
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ContentfulOrderedCategoriesUpdated;
7527
-
7528
- /**
7529
- * Verifies a ContentfulOrderedCategoriesUpdated message.
7530
- * @param message Plain object to verify
7531
- * @returns `null` if valid, otherwise the reason why it is not
7532
- */
7533
- public static verify(message: { [k: string]: any }): (string|null);
7534
-
7535
- /**
7536
- * Creates a ContentfulOrderedCategoriesUpdated message from a plain object. Also converts values to their respective internal types.
7537
- * @param object Plain object
7538
- * @returns ContentfulOrderedCategoriesUpdated
7539
- */
7540
- public static fromObject(object: { [k: string]: any }): ContentfulOrderedCategoriesUpdated;
7541
-
7542
- /**
7543
- * Creates a plain object from a ContentfulOrderedCategoriesUpdated message. Also converts values to other types if specified.
7544
- * @param message ContentfulOrderedCategoriesUpdated
7545
- * @param [options] Conversion options
7546
- * @returns Plain object
7547
- */
7548
- public static toObject(message: ContentfulOrderedCategoriesUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
7549
-
7550
- /**
7551
- * Converts this ContentfulOrderedCategoriesUpdated to JSON.
7552
- * @returns JSON object
7553
- */
7554
- public toJSON(): { [k: string]: any };
7555
- }
7556
-
7557
7341
  /** Properties of a ContentfulActivityVariationCreated. */
7558
7342
  export interface IContentfulActivityVariationCreated {
7559
7343
 
package/lib/index.js CHANGED
@@ -16473,7 +16473,6 @@ $root.ContentfulCategoryCreated = (function() {
16473
16473
  * @interface IContentfulCategoryCreated
16474
16474
  * @property {Object.<string,string>|null} [name] ContentfulCategoryCreated name
16475
16475
  * @property {string|null} [slug] ContentfulCategoryCreated slug
16476
- * @property {contentful.ISlugReference|null} [topic] ContentfulCategoryCreated topic
16477
16476
  * @property {string|null} [type] ContentfulCategoryCreated type
16478
16477
  * @property {Array.<contentful.ISlugReference>|null} [content] ContentfulCategoryCreated content
16479
16478
  * @property {number|Long|null} [createdAt] ContentfulCategoryCreated createdAt
@@ -16512,14 +16511,6 @@ $root.ContentfulCategoryCreated = (function() {
16512
16511
  */
16513
16512
  ContentfulCategoryCreated.prototype.slug = "";
16514
16513
 
16515
- /**
16516
- * ContentfulCategoryCreated topic.
16517
- * @member {contentful.ISlugReference|null|undefined} topic
16518
- * @memberof ContentfulCategoryCreated
16519
- * @instance
16520
- */
16521
- ContentfulCategoryCreated.prototype.topic = null;
16522
-
16523
16514
  /**
16524
16515
  * ContentfulCategoryCreated type.
16525
16516
  * @member {string} type
@@ -16573,15 +16564,13 @@ $root.ContentfulCategoryCreated = (function() {
16573
16564
  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();
16574
16565
  if (message.slug != null && message.hasOwnProperty("slug"))
16575
16566
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
16576
- if (message.topic != null && message.hasOwnProperty("topic"))
16577
- $root.contentful.SlugReference.encode(message.topic, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
16578
16567
  if (message.type != null && message.hasOwnProperty("type"))
16579
- writer.uint32(/* id 4, wireType 2 =*/34).string(message.type);
16568
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.type);
16580
16569
  if (message.content != null && message.content.length)
16581
16570
  for (var i = 0; i < message.content.length; ++i)
16582
- $root.contentful.SlugReference.encode(message.content[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
16571
+ $root.contentful.SlugReference.encode(message.content[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
16583
16572
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
16584
- writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.createdAt);
16573
+ writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.createdAt);
16585
16574
  return writer;
16586
16575
  };
16587
16576
 
@@ -16628,17 +16617,14 @@ $root.ContentfulCategoryCreated = (function() {
16628
16617
  message.slug = reader.string();
16629
16618
  break;
16630
16619
  case 3:
16631
- message.topic = $root.contentful.SlugReference.decode(reader, reader.uint32());
16632
- break;
16633
- case 4:
16634
16620
  message.type = reader.string();
16635
16621
  break;
16636
- case 5:
16622
+ case 4:
16637
16623
  if (!(message.content && message.content.length))
16638
16624
  message.content = [];
16639
16625
  message.content.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
16640
16626
  break;
16641
- case 6:
16627
+ case 5:
16642
16628
  message.createdAt = reader.uint64();
16643
16629
  break;
16644
16630
  default:
@@ -16687,11 +16673,6 @@ $root.ContentfulCategoryCreated = (function() {
16687
16673
  if (message.slug != null && message.hasOwnProperty("slug"))
16688
16674
  if (!$util.isString(message.slug))
16689
16675
  return "slug: string expected";
16690
- if (message.topic != null && message.hasOwnProperty("topic")) {
16691
- var error = $root.contentful.SlugReference.verify(message.topic);
16692
- if (error)
16693
- return "topic." + error;
16694
- }
16695
16676
  if (message.type != null && message.hasOwnProperty("type"))
16696
16677
  if (!$util.isString(message.type))
16697
16678
  return "type: string expected";
@@ -16731,11 +16712,6 @@ $root.ContentfulCategoryCreated = (function() {
16731
16712
  }
16732
16713
  if (object.slug != null)
16733
16714
  message.slug = String(object.slug);
16734
- if (object.topic != null) {
16735
- if (typeof object.topic !== "object")
16736
- throw TypeError(".ContentfulCategoryCreated.topic: object expected");
16737
- message.topic = $root.contentful.SlugReference.fromObject(object.topic);
16738
- }
16739
16715
  if (object.type != null)
16740
16716
  message.type = String(object.type);
16741
16717
  if (object.content) {
@@ -16779,7 +16755,6 @@ $root.ContentfulCategoryCreated = (function() {
16779
16755
  object.name = {};
16780
16756
  if (options.defaults) {
16781
16757
  object.slug = "";
16782
- object.topic = null;
16783
16758
  object.type = "";
16784
16759
  if ($util.Long) {
16785
16760
  var long = new $util.Long(0, 0, true);
@@ -16795,8 +16770,6 @@ $root.ContentfulCategoryCreated = (function() {
16795
16770
  }
16796
16771
  if (message.slug != null && message.hasOwnProperty("slug"))
16797
16772
  object.slug = message.slug;
16798
- if (message.topic != null && message.hasOwnProperty("topic"))
16799
- object.topic = $root.contentful.SlugReference.toObject(message.topic, options);
16800
16773
  if (message.type != null && message.hasOwnProperty("type"))
16801
16774
  object.type = message.type;
16802
16775
  if (message.content && message.content.length) {
@@ -16834,7 +16807,6 @@ $root.ContentfulCategoryUpdated = (function() {
16834
16807
  * @interface IContentfulCategoryUpdated
16835
16808
  * @property {Object.<string,string>|null} [name] ContentfulCategoryUpdated name
16836
16809
  * @property {string|null} [slug] ContentfulCategoryUpdated slug
16837
- * @property {contentful.ISlugReference|null} [topic] ContentfulCategoryUpdated topic
16838
16810
  * @property {string|null} [type] ContentfulCategoryUpdated type
16839
16811
  * @property {Array.<contentful.ISlugReference>|null} [content] ContentfulCategoryUpdated content
16840
16812
  * @property {number|Long|null} [updatedAt] ContentfulCategoryUpdated updatedAt
@@ -16873,14 +16845,6 @@ $root.ContentfulCategoryUpdated = (function() {
16873
16845
  */
16874
16846
  ContentfulCategoryUpdated.prototype.slug = "";
16875
16847
 
16876
- /**
16877
- * ContentfulCategoryUpdated topic.
16878
- * @member {contentful.ISlugReference|null|undefined} topic
16879
- * @memberof ContentfulCategoryUpdated
16880
- * @instance
16881
- */
16882
- ContentfulCategoryUpdated.prototype.topic = null;
16883
-
16884
16848
  /**
16885
16849
  * ContentfulCategoryUpdated type.
16886
16850
  * @member {string} type
@@ -16934,15 +16898,13 @@ $root.ContentfulCategoryUpdated = (function() {
16934
16898
  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();
16935
16899
  if (message.slug != null && message.hasOwnProperty("slug"))
16936
16900
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
16937
- if (message.topic != null && message.hasOwnProperty("topic"))
16938
- $root.contentful.SlugReference.encode(message.topic, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
16939
16901
  if (message.type != null && message.hasOwnProperty("type"))
16940
- writer.uint32(/* id 4, wireType 2 =*/34).string(message.type);
16902
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.type);
16941
16903
  if (message.content != null && message.content.length)
16942
16904
  for (var i = 0; i < message.content.length; ++i)
16943
- $root.contentful.SlugReference.encode(message.content[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
16905
+ $root.contentful.SlugReference.encode(message.content[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
16944
16906
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
16945
- writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.updatedAt);
16907
+ writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.updatedAt);
16946
16908
  return writer;
16947
16909
  };
16948
16910
 
@@ -16989,17 +16951,14 @@ $root.ContentfulCategoryUpdated = (function() {
16989
16951
  message.slug = reader.string();
16990
16952
  break;
16991
16953
  case 3:
16992
- message.topic = $root.contentful.SlugReference.decode(reader, reader.uint32());
16993
- break;
16994
- case 4:
16995
16954
  message.type = reader.string();
16996
16955
  break;
16997
- case 5:
16956
+ case 4:
16998
16957
  if (!(message.content && message.content.length))
16999
16958
  message.content = [];
17000
16959
  message.content.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
17001
16960
  break;
17002
- case 6:
16961
+ case 5:
17003
16962
  message.updatedAt = reader.uint64();
17004
16963
  break;
17005
16964
  default:
@@ -17048,11 +17007,6 @@ $root.ContentfulCategoryUpdated = (function() {
17048
17007
  if (message.slug != null && message.hasOwnProperty("slug"))
17049
17008
  if (!$util.isString(message.slug))
17050
17009
  return "slug: string expected";
17051
- if (message.topic != null && message.hasOwnProperty("topic")) {
17052
- var error = $root.contentful.SlugReference.verify(message.topic);
17053
- if (error)
17054
- return "topic." + error;
17055
- }
17056
17010
  if (message.type != null && message.hasOwnProperty("type"))
17057
17011
  if (!$util.isString(message.type))
17058
17012
  return "type: string expected";
@@ -17092,11 +17046,6 @@ $root.ContentfulCategoryUpdated = (function() {
17092
17046
  }
17093
17047
  if (object.slug != null)
17094
17048
  message.slug = String(object.slug);
17095
- if (object.topic != null) {
17096
- if (typeof object.topic !== "object")
17097
- throw TypeError(".ContentfulCategoryUpdated.topic: object expected");
17098
- message.topic = $root.contentful.SlugReference.fromObject(object.topic);
17099
- }
17100
17049
  if (object.type != null)
17101
17050
  message.type = String(object.type);
17102
17051
  if (object.content) {
@@ -17140,7 +17089,6 @@ $root.ContentfulCategoryUpdated = (function() {
17140
17089
  object.name = {};
17141
17090
  if (options.defaults) {
17142
17091
  object.slug = "";
17143
- object.topic = null;
17144
17092
  object.type = "";
17145
17093
  if ($util.Long) {
17146
17094
  var long = new $util.Long(0, 0, true);
@@ -17156,8 +17104,6 @@ $root.ContentfulCategoryUpdated = (function() {
17156
17104
  }
17157
17105
  if (message.slug != null && message.hasOwnProperty("slug"))
17158
17106
  object.slug = message.slug;
17159
- if (message.topic != null && message.hasOwnProperty("topic"))
17160
- object.topic = $root.contentful.SlugReference.toObject(message.topic, options);
17161
17107
  if (message.type != null && message.hasOwnProperty("type"))
17162
17108
  object.type = message.type;
17163
17109
  if (message.content && message.content.length) {
@@ -17427,6 +17373,7 @@ $root.ContentfulTopicCreated = (function() {
17427
17373
  * @property {Object.<string,contentful.IIdReference>|null} [iconMedia] ContentfulTopicCreated iconMedia
17428
17374
  * @property {Object.<string,contentful.IIdReference>|null} [headerPatternMedia] ContentfulTopicCreated headerPatternMedia
17429
17375
  * @property {Object.<string,contentful.IIdReference>|null} [menuPatternMedia] ContentfulTopicCreated menuPatternMedia
17376
+ * @property {Array.<contentful.ISlugReference>|null} [categories] ContentfulTopicCreated categories
17430
17377
  * @property {Array.<contentful.ISlugReference>|null} [accessGroups] ContentfulTopicCreated accessGroups
17431
17378
  * @property {number|Long|null} [createdAt] ContentfulTopicCreated createdAt
17432
17379
  */
@@ -17445,6 +17392,7 @@ $root.ContentfulTopicCreated = (function() {
17445
17392
  this.iconMedia = {};
17446
17393
  this.headerPatternMedia = {};
17447
17394
  this.menuPatternMedia = {};
17395
+ this.categories = [];
17448
17396
  this.accessGroups = [];
17449
17397
  if (properties)
17450
17398
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
@@ -17532,6 +17480,14 @@ $root.ContentfulTopicCreated = (function() {
17532
17480
  */
17533
17481
  ContentfulTopicCreated.prototype.menuPatternMedia = $util.emptyObject;
17534
17482
 
17483
+ /**
17484
+ * ContentfulTopicCreated categories.
17485
+ * @member {Array.<contentful.ISlugReference>} categories
17486
+ * @memberof ContentfulTopicCreated
17487
+ * @instance
17488
+ */
17489
+ ContentfulTopicCreated.prototype.categories = $util.emptyArray;
17490
+
17535
17491
  /**
17536
17492
  * ContentfulTopicCreated accessGroups.
17537
17493
  * @member {Array.<contentful.ISlugReference>} accessGroups
@@ -17603,11 +17559,14 @@ $root.ContentfulTopicCreated = (function() {
17603
17559
  writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
17604
17560
  $root.contentful.IdReference.encode(message.menuPatternMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
17605
17561
  }
17562
+ if (message.categories != null && message.categories.length)
17563
+ for (var i = 0; i < message.categories.length; ++i)
17564
+ $root.contentful.SlugReference.encode(message.categories[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
17606
17565
  if (message.accessGroups != null && message.accessGroups.length)
17607
17566
  for (var i = 0; i < message.accessGroups.length; ++i)
17608
- $root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
17567
+ $root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
17609
17568
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
17610
- writer.uint32(/* id 12, wireType 0 =*/96).uint64(message.createdAt);
17569
+ writer.uint32(/* id 13, wireType 0 =*/104).uint64(message.createdAt);
17611
17570
  return writer;
17612
17571
  };
17613
17572
 
@@ -17698,11 +17657,16 @@ $root.ContentfulTopicCreated = (function() {
17698
17657
  message.menuPatternMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
17699
17658
  break;
17700
17659
  case 11:
17660
+ if (!(message.categories && message.categories.length))
17661
+ message.categories = [];
17662
+ message.categories.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
17663
+ break;
17664
+ case 12:
17701
17665
  if (!(message.accessGroups && message.accessGroups.length))
17702
17666
  message.accessGroups = [];
17703
17667
  message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
17704
17668
  break;
17705
- case 12:
17669
+ case 13:
17706
17670
  message.createdAt = reader.uint64();
17707
17671
  break;
17708
17672
  default:
@@ -17801,6 +17765,15 @@ $root.ContentfulTopicCreated = (function() {
17801
17765
  return "menuPatternMedia." + error;
17802
17766
  }
17803
17767
  }
17768
+ if (message.categories != null && message.hasOwnProperty("categories")) {
17769
+ if (!Array.isArray(message.categories))
17770
+ return "categories: array expected";
17771
+ for (var i = 0; i < message.categories.length; ++i) {
17772
+ var error = $root.contentful.SlugReference.verify(message.categories[i]);
17773
+ if (error)
17774
+ return "categories." + error;
17775
+ }
17776
+ }
17804
17777
  if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
17805
17778
  if (!Array.isArray(message.accessGroups))
17806
17779
  return "accessGroups: array expected";
@@ -17882,6 +17855,16 @@ $root.ContentfulTopicCreated = (function() {
17882
17855
  message.menuPatternMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.menuPatternMedia[keys[i]]);
17883
17856
  }
17884
17857
  }
17858
+ if (object.categories) {
17859
+ if (!Array.isArray(object.categories))
17860
+ throw TypeError(".ContentfulTopicCreated.categories: array expected");
17861
+ message.categories = [];
17862
+ for (var i = 0; i < object.categories.length; ++i) {
17863
+ if (typeof object.categories[i] !== "object")
17864
+ throw TypeError(".ContentfulTopicCreated.categories: object expected");
17865
+ message.categories[i] = $root.contentful.SlugReference.fromObject(object.categories[i]);
17866
+ }
17867
+ }
17885
17868
  if (object.accessGroups) {
17886
17869
  if (!Array.isArray(object.accessGroups))
17887
17870
  throw TypeError(".ContentfulTopicCreated.accessGroups: array expected");
@@ -17917,8 +17900,10 @@ $root.ContentfulTopicCreated = (function() {
17917
17900
  if (!options)
17918
17901
  options = {};
17919
17902
  var object = {};
17920
- if (options.arrays || options.defaults)
17903
+ if (options.arrays || options.defaults) {
17904
+ object.categories = [];
17921
17905
  object.accessGroups = [];
17906
+ }
17922
17907
  if (options.objects || options.defaults) {
17923
17908
  object.name = {};
17924
17909
  object.description = {};
@@ -17974,6 +17959,11 @@ $root.ContentfulTopicCreated = (function() {
17974
17959
  for (var j = 0; j < keys2.length; ++j)
17975
17960
  object.menuPatternMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.menuPatternMedia[keys2[j]], options);
17976
17961
  }
17962
+ if (message.categories && message.categories.length) {
17963
+ object.categories = [];
17964
+ for (var j = 0; j < message.categories.length; ++j)
17965
+ object.categories[j] = $root.contentful.SlugReference.toObject(message.categories[j], options);
17966
+ }
17977
17967
  if (message.accessGroups && message.accessGroups.length) {
17978
17968
  object.accessGroups = [];
17979
17969
  for (var j = 0; j < message.accessGroups.length; ++j)
@@ -18017,6 +18007,7 @@ $root.ContentfulTopicUpdated = (function() {
18017
18007
  * @property {Object.<string,contentful.IIdReference>|null} [iconMedia] ContentfulTopicUpdated iconMedia
18018
18008
  * @property {Object.<string,contentful.IIdReference>|null} [headerPatternMedia] ContentfulTopicUpdated headerPatternMedia
18019
18009
  * @property {Object.<string,contentful.IIdReference>|null} [menuPatternMedia] ContentfulTopicUpdated menuPatternMedia
18010
+ * @property {Array.<contentful.ISlugReference>|null} [categories] ContentfulTopicUpdated categories
18020
18011
  * @property {Array.<contentful.ISlugReference>|null} [accessGroups] ContentfulTopicUpdated accessGroups
18021
18012
  * @property {number|Long|null} [updatedAt] ContentfulTopicUpdated updatedAt
18022
18013
  */
@@ -18035,6 +18026,7 @@ $root.ContentfulTopicUpdated = (function() {
18035
18026
  this.iconMedia = {};
18036
18027
  this.headerPatternMedia = {};
18037
18028
  this.menuPatternMedia = {};
18029
+ this.categories = [];
18038
18030
  this.accessGroups = [];
18039
18031
  if (properties)
18040
18032
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
@@ -18122,6 +18114,14 @@ $root.ContentfulTopicUpdated = (function() {
18122
18114
  */
18123
18115
  ContentfulTopicUpdated.prototype.menuPatternMedia = $util.emptyObject;
18124
18116
 
18117
+ /**
18118
+ * ContentfulTopicUpdated categories.
18119
+ * @member {Array.<contentful.ISlugReference>} categories
18120
+ * @memberof ContentfulTopicUpdated
18121
+ * @instance
18122
+ */
18123
+ ContentfulTopicUpdated.prototype.categories = $util.emptyArray;
18124
+
18125
18125
  /**
18126
18126
  * ContentfulTopicUpdated accessGroups.
18127
18127
  * @member {Array.<contentful.ISlugReference>} accessGroups
@@ -18193,11 +18193,14 @@ $root.ContentfulTopicUpdated = (function() {
18193
18193
  writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
18194
18194
  $root.contentful.IdReference.encode(message.menuPatternMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
18195
18195
  }
18196
+ if (message.categories != null && message.categories.length)
18197
+ for (var i = 0; i < message.categories.length; ++i)
18198
+ $root.contentful.SlugReference.encode(message.categories[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
18196
18199
  if (message.accessGroups != null && message.accessGroups.length)
18197
18200
  for (var i = 0; i < message.accessGroups.length; ++i)
18198
- $root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
18201
+ $root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
18199
18202
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
18200
- writer.uint32(/* id 12, wireType 0 =*/96).uint64(message.updatedAt);
18203
+ writer.uint32(/* id 13, wireType 0 =*/104).uint64(message.updatedAt);
18201
18204
  return writer;
18202
18205
  };
18203
18206
 
@@ -18288,11 +18291,16 @@ $root.ContentfulTopicUpdated = (function() {
18288
18291
  message.menuPatternMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
18289
18292
  break;
18290
18293
  case 11:
18294
+ if (!(message.categories && message.categories.length))
18295
+ message.categories = [];
18296
+ message.categories.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
18297
+ break;
18298
+ case 12:
18291
18299
  if (!(message.accessGroups && message.accessGroups.length))
18292
18300
  message.accessGroups = [];
18293
18301
  message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
18294
18302
  break;
18295
- case 12:
18303
+ case 13:
18296
18304
  message.updatedAt = reader.uint64();
18297
18305
  break;
18298
18306
  default:
@@ -18391,6 +18399,15 @@ $root.ContentfulTopicUpdated = (function() {
18391
18399
  return "menuPatternMedia." + error;
18392
18400
  }
18393
18401
  }
18402
+ if (message.categories != null && message.hasOwnProperty("categories")) {
18403
+ if (!Array.isArray(message.categories))
18404
+ return "categories: array expected";
18405
+ for (var i = 0; i < message.categories.length; ++i) {
18406
+ var error = $root.contentful.SlugReference.verify(message.categories[i]);
18407
+ if (error)
18408
+ return "categories." + error;
18409
+ }
18410
+ }
18394
18411
  if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
18395
18412
  if (!Array.isArray(message.accessGroups))
18396
18413
  return "accessGroups: array expected";
@@ -18472,6 +18489,16 @@ $root.ContentfulTopicUpdated = (function() {
18472
18489
  message.menuPatternMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.menuPatternMedia[keys[i]]);
18473
18490
  }
18474
18491
  }
18492
+ if (object.categories) {
18493
+ if (!Array.isArray(object.categories))
18494
+ throw TypeError(".ContentfulTopicUpdated.categories: array expected");
18495
+ message.categories = [];
18496
+ for (var i = 0; i < object.categories.length; ++i) {
18497
+ if (typeof object.categories[i] !== "object")
18498
+ throw TypeError(".ContentfulTopicUpdated.categories: object expected");
18499
+ message.categories[i] = $root.contentful.SlugReference.fromObject(object.categories[i]);
18500
+ }
18501
+ }
18475
18502
  if (object.accessGroups) {
18476
18503
  if (!Array.isArray(object.accessGroups))
18477
18504
  throw TypeError(".ContentfulTopicUpdated.accessGroups: array expected");
@@ -18507,8 +18534,10 @@ $root.ContentfulTopicUpdated = (function() {
18507
18534
  if (!options)
18508
18535
  options = {};
18509
18536
  var object = {};
18510
- if (options.arrays || options.defaults)
18537
+ if (options.arrays || options.defaults) {
18538
+ object.categories = [];
18511
18539
  object.accessGroups = [];
18540
+ }
18512
18541
  if (options.objects || options.defaults) {
18513
18542
  object.name = {};
18514
18543
  object.description = {};
@@ -18564,6 +18593,11 @@ $root.ContentfulTopicUpdated = (function() {
18564
18593
  for (var j = 0; j < keys2.length; ++j)
18565
18594
  object.menuPatternMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.menuPatternMedia[keys2[j]], options);
18566
18595
  }
18596
+ if (message.categories && message.categories.length) {
18597
+ object.categories = [];
18598
+ for (var j = 0; j < message.categories.length; ++j)
18599
+ object.categories[j] = $root.contentful.SlugReference.toObject(message.categories[j], options);
18600
+ }
18567
18601
  if (message.accessGroups && message.accessGroups.length) {
18568
18602
  object.accessGroups = [];
18569
18603
  for (var j = 0; j < message.accessGroups.length; ++j)
@@ -19395,596 +19429,6 @@ $root.ContentfulOrderedTopicsUpdated = (function() {
19395
19429
  return ContentfulOrderedTopicsUpdated;
19396
19430
  })();
19397
19431
 
19398
- $root.ContentfulOrderedCategoriesCreated = (function() {
19399
-
19400
- /**
19401
- * Properties of a ContentfulOrderedCategoriesCreated.
19402
- * @exports IContentfulOrderedCategoriesCreated
19403
- * @interface IContentfulOrderedCategoriesCreated
19404
- * @property {string|null} [slug] ContentfulOrderedCategoriesCreated slug
19405
- * @property {contentful.ISlugReference|null} [topic] ContentfulOrderedCategoriesCreated topic
19406
- * @property {Array.<contentful.ISlugReference>|null} [categories] ContentfulOrderedCategoriesCreated categories
19407
- * @property {number|Long|null} [createdAt] ContentfulOrderedCategoriesCreated createdAt
19408
- */
19409
-
19410
- /**
19411
- * Constructs a new ContentfulOrderedCategoriesCreated.
19412
- * @exports ContentfulOrderedCategoriesCreated
19413
- * @classdesc Represents a ContentfulOrderedCategoriesCreated.
19414
- * @implements IContentfulOrderedCategoriesCreated
19415
- * @constructor
19416
- * @param {IContentfulOrderedCategoriesCreated=} [properties] Properties to set
19417
- */
19418
- function ContentfulOrderedCategoriesCreated(properties) {
19419
- this.categories = [];
19420
- if (properties)
19421
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
19422
- if (properties[keys[i]] != null)
19423
- this[keys[i]] = properties[keys[i]];
19424
- }
19425
-
19426
- /**
19427
- * ContentfulOrderedCategoriesCreated slug.
19428
- * @member {string} slug
19429
- * @memberof ContentfulOrderedCategoriesCreated
19430
- * @instance
19431
- */
19432
- ContentfulOrderedCategoriesCreated.prototype.slug = "";
19433
-
19434
- /**
19435
- * ContentfulOrderedCategoriesCreated topic.
19436
- * @member {contentful.ISlugReference|null|undefined} topic
19437
- * @memberof ContentfulOrderedCategoriesCreated
19438
- * @instance
19439
- */
19440
- ContentfulOrderedCategoriesCreated.prototype.topic = null;
19441
-
19442
- /**
19443
- * ContentfulOrderedCategoriesCreated categories.
19444
- * @member {Array.<contentful.ISlugReference>} categories
19445
- * @memberof ContentfulOrderedCategoriesCreated
19446
- * @instance
19447
- */
19448
- ContentfulOrderedCategoriesCreated.prototype.categories = $util.emptyArray;
19449
-
19450
- /**
19451
- * ContentfulOrderedCategoriesCreated createdAt.
19452
- * @member {number|Long} createdAt
19453
- * @memberof ContentfulOrderedCategoriesCreated
19454
- * @instance
19455
- */
19456
- ContentfulOrderedCategoriesCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
19457
-
19458
- /**
19459
- * Creates a new ContentfulOrderedCategoriesCreated instance using the specified properties.
19460
- * @function create
19461
- * @memberof ContentfulOrderedCategoriesCreated
19462
- * @static
19463
- * @param {IContentfulOrderedCategoriesCreated=} [properties] Properties to set
19464
- * @returns {ContentfulOrderedCategoriesCreated} ContentfulOrderedCategoriesCreated instance
19465
- */
19466
- ContentfulOrderedCategoriesCreated.create = function create(properties) {
19467
- return new ContentfulOrderedCategoriesCreated(properties);
19468
- };
19469
-
19470
- /**
19471
- * Encodes the specified ContentfulOrderedCategoriesCreated message. Does not implicitly {@link ContentfulOrderedCategoriesCreated.verify|verify} messages.
19472
- * @function encode
19473
- * @memberof ContentfulOrderedCategoriesCreated
19474
- * @static
19475
- * @param {IContentfulOrderedCategoriesCreated} message ContentfulOrderedCategoriesCreated message or plain object to encode
19476
- * @param {$protobuf.Writer} [writer] Writer to encode to
19477
- * @returns {$protobuf.Writer} Writer
19478
- */
19479
- ContentfulOrderedCategoriesCreated.encode = function encode(message, writer) {
19480
- if (!writer)
19481
- writer = $Writer.create();
19482
- if (message.slug != null && message.hasOwnProperty("slug"))
19483
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
19484
- if (message.topic != null && message.hasOwnProperty("topic"))
19485
- $root.contentful.SlugReference.encode(message.topic, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
19486
- if (message.categories != null && message.categories.length)
19487
- for (var i = 0; i < message.categories.length; ++i)
19488
- $root.contentful.SlugReference.encode(message.categories[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
19489
- if (message.createdAt != null && message.hasOwnProperty("createdAt"))
19490
- writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.createdAt);
19491
- return writer;
19492
- };
19493
-
19494
- /**
19495
- * Encodes the specified ContentfulOrderedCategoriesCreated message, length delimited. Does not implicitly {@link ContentfulOrderedCategoriesCreated.verify|verify} messages.
19496
- * @function encodeDelimited
19497
- * @memberof ContentfulOrderedCategoriesCreated
19498
- * @static
19499
- * @param {IContentfulOrderedCategoriesCreated} message ContentfulOrderedCategoriesCreated message or plain object to encode
19500
- * @param {$protobuf.Writer} [writer] Writer to encode to
19501
- * @returns {$protobuf.Writer} Writer
19502
- */
19503
- ContentfulOrderedCategoriesCreated.encodeDelimited = function encodeDelimited(message, writer) {
19504
- return this.encode(message, writer).ldelim();
19505
- };
19506
-
19507
- /**
19508
- * Decodes a ContentfulOrderedCategoriesCreated message from the specified reader or buffer.
19509
- * @function decode
19510
- * @memberof ContentfulOrderedCategoriesCreated
19511
- * @static
19512
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
19513
- * @param {number} [length] Message length if known beforehand
19514
- * @returns {ContentfulOrderedCategoriesCreated} ContentfulOrderedCategoriesCreated
19515
- * @throws {Error} If the payload is not a reader or valid buffer
19516
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
19517
- */
19518
- ContentfulOrderedCategoriesCreated.decode = function decode(reader, length) {
19519
- if (!(reader instanceof $Reader))
19520
- reader = $Reader.create(reader);
19521
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulOrderedCategoriesCreated();
19522
- while (reader.pos < end) {
19523
- var tag = reader.uint32();
19524
- switch (tag >>> 3) {
19525
- case 1:
19526
- message.slug = reader.string();
19527
- break;
19528
- case 2:
19529
- message.topic = $root.contentful.SlugReference.decode(reader, reader.uint32());
19530
- break;
19531
- case 3:
19532
- if (!(message.categories && message.categories.length))
19533
- message.categories = [];
19534
- message.categories.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
19535
- break;
19536
- case 4:
19537
- message.createdAt = reader.uint64();
19538
- break;
19539
- default:
19540
- reader.skipType(tag & 7);
19541
- break;
19542
- }
19543
- }
19544
- return message;
19545
- };
19546
-
19547
- /**
19548
- * Decodes a ContentfulOrderedCategoriesCreated message from the specified reader or buffer, length delimited.
19549
- * @function decodeDelimited
19550
- * @memberof ContentfulOrderedCategoriesCreated
19551
- * @static
19552
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
19553
- * @returns {ContentfulOrderedCategoriesCreated} ContentfulOrderedCategoriesCreated
19554
- * @throws {Error} If the payload is not a reader or valid buffer
19555
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
19556
- */
19557
- ContentfulOrderedCategoriesCreated.decodeDelimited = function decodeDelimited(reader) {
19558
- if (!(reader instanceof $Reader))
19559
- reader = new $Reader(reader);
19560
- return this.decode(reader, reader.uint32());
19561
- };
19562
-
19563
- /**
19564
- * Verifies a ContentfulOrderedCategoriesCreated message.
19565
- * @function verify
19566
- * @memberof ContentfulOrderedCategoriesCreated
19567
- * @static
19568
- * @param {Object.<string,*>} message Plain object to verify
19569
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
19570
- */
19571
- ContentfulOrderedCategoriesCreated.verify = function verify(message) {
19572
- if (typeof message !== "object" || message === null)
19573
- return "object expected";
19574
- if (message.slug != null && message.hasOwnProperty("slug"))
19575
- if (!$util.isString(message.slug))
19576
- return "slug: string expected";
19577
- if (message.topic != null && message.hasOwnProperty("topic")) {
19578
- var error = $root.contentful.SlugReference.verify(message.topic);
19579
- if (error)
19580
- return "topic." + error;
19581
- }
19582
- if (message.categories != null && message.hasOwnProperty("categories")) {
19583
- if (!Array.isArray(message.categories))
19584
- return "categories: array expected";
19585
- for (var i = 0; i < message.categories.length; ++i) {
19586
- var error = $root.contentful.SlugReference.verify(message.categories[i]);
19587
- if (error)
19588
- return "categories." + error;
19589
- }
19590
- }
19591
- if (message.createdAt != null && message.hasOwnProperty("createdAt"))
19592
- if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
19593
- return "createdAt: integer|Long expected";
19594
- return null;
19595
- };
19596
-
19597
- /**
19598
- * Creates a ContentfulOrderedCategoriesCreated message from a plain object. Also converts values to their respective internal types.
19599
- * @function fromObject
19600
- * @memberof ContentfulOrderedCategoriesCreated
19601
- * @static
19602
- * @param {Object.<string,*>} object Plain object
19603
- * @returns {ContentfulOrderedCategoriesCreated} ContentfulOrderedCategoriesCreated
19604
- */
19605
- ContentfulOrderedCategoriesCreated.fromObject = function fromObject(object) {
19606
- if (object instanceof $root.ContentfulOrderedCategoriesCreated)
19607
- return object;
19608
- var message = new $root.ContentfulOrderedCategoriesCreated();
19609
- if (object.slug != null)
19610
- message.slug = String(object.slug);
19611
- if (object.topic != null) {
19612
- if (typeof object.topic !== "object")
19613
- throw TypeError(".ContentfulOrderedCategoriesCreated.topic: object expected");
19614
- message.topic = $root.contentful.SlugReference.fromObject(object.topic);
19615
- }
19616
- if (object.categories) {
19617
- if (!Array.isArray(object.categories))
19618
- throw TypeError(".ContentfulOrderedCategoriesCreated.categories: array expected");
19619
- message.categories = [];
19620
- for (var i = 0; i < object.categories.length; ++i) {
19621
- if (typeof object.categories[i] !== "object")
19622
- throw TypeError(".ContentfulOrderedCategoriesCreated.categories: object expected");
19623
- message.categories[i] = $root.contentful.SlugReference.fromObject(object.categories[i]);
19624
- }
19625
- }
19626
- if (object.createdAt != null)
19627
- if ($util.Long)
19628
- (message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
19629
- else if (typeof object.createdAt === "string")
19630
- message.createdAt = parseInt(object.createdAt, 10);
19631
- else if (typeof object.createdAt === "number")
19632
- message.createdAt = object.createdAt;
19633
- else if (typeof object.createdAt === "object")
19634
- message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
19635
- return message;
19636
- };
19637
-
19638
- /**
19639
- * Creates a plain object from a ContentfulOrderedCategoriesCreated message. Also converts values to other types if specified.
19640
- * @function toObject
19641
- * @memberof ContentfulOrderedCategoriesCreated
19642
- * @static
19643
- * @param {ContentfulOrderedCategoriesCreated} message ContentfulOrderedCategoriesCreated
19644
- * @param {$protobuf.IConversionOptions} [options] Conversion options
19645
- * @returns {Object.<string,*>} Plain object
19646
- */
19647
- ContentfulOrderedCategoriesCreated.toObject = function toObject(message, options) {
19648
- if (!options)
19649
- options = {};
19650
- var object = {};
19651
- if (options.arrays || options.defaults)
19652
- object.categories = [];
19653
- if (options.defaults) {
19654
- object.slug = "";
19655
- object.topic = null;
19656
- if ($util.Long) {
19657
- var long = new $util.Long(0, 0, true);
19658
- object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
19659
- } else
19660
- object.createdAt = options.longs === String ? "0" : 0;
19661
- }
19662
- if (message.slug != null && message.hasOwnProperty("slug"))
19663
- object.slug = message.slug;
19664
- if (message.topic != null && message.hasOwnProperty("topic"))
19665
- object.topic = $root.contentful.SlugReference.toObject(message.topic, options);
19666
- if (message.categories && message.categories.length) {
19667
- object.categories = [];
19668
- for (var j = 0; j < message.categories.length; ++j)
19669
- object.categories[j] = $root.contentful.SlugReference.toObject(message.categories[j], options);
19670
- }
19671
- if (message.createdAt != null && message.hasOwnProperty("createdAt"))
19672
- if (typeof message.createdAt === "number")
19673
- object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
19674
- else
19675
- 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;
19676
- return object;
19677
- };
19678
-
19679
- /**
19680
- * Converts this ContentfulOrderedCategoriesCreated to JSON.
19681
- * @function toJSON
19682
- * @memberof ContentfulOrderedCategoriesCreated
19683
- * @instance
19684
- * @returns {Object.<string,*>} JSON object
19685
- */
19686
- ContentfulOrderedCategoriesCreated.prototype.toJSON = function toJSON() {
19687
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
19688
- };
19689
-
19690
- return ContentfulOrderedCategoriesCreated;
19691
- })();
19692
-
19693
- $root.ContentfulOrderedCategoriesUpdated = (function() {
19694
-
19695
- /**
19696
- * Properties of a ContentfulOrderedCategoriesUpdated.
19697
- * @exports IContentfulOrderedCategoriesUpdated
19698
- * @interface IContentfulOrderedCategoriesUpdated
19699
- * @property {string|null} [slug] ContentfulOrderedCategoriesUpdated slug
19700
- * @property {contentful.ISlugReference|null} [topic] ContentfulOrderedCategoriesUpdated topic
19701
- * @property {Array.<contentful.ISlugReference>|null} [categories] ContentfulOrderedCategoriesUpdated categories
19702
- * @property {number|Long|null} [updatedAt] ContentfulOrderedCategoriesUpdated updatedAt
19703
- */
19704
-
19705
- /**
19706
- * Constructs a new ContentfulOrderedCategoriesUpdated.
19707
- * @exports ContentfulOrderedCategoriesUpdated
19708
- * @classdesc Represents a ContentfulOrderedCategoriesUpdated.
19709
- * @implements IContentfulOrderedCategoriesUpdated
19710
- * @constructor
19711
- * @param {IContentfulOrderedCategoriesUpdated=} [properties] Properties to set
19712
- */
19713
- function ContentfulOrderedCategoriesUpdated(properties) {
19714
- this.categories = [];
19715
- if (properties)
19716
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
19717
- if (properties[keys[i]] != null)
19718
- this[keys[i]] = properties[keys[i]];
19719
- }
19720
-
19721
- /**
19722
- * ContentfulOrderedCategoriesUpdated slug.
19723
- * @member {string} slug
19724
- * @memberof ContentfulOrderedCategoriesUpdated
19725
- * @instance
19726
- */
19727
- ContentfulOrderedCategoriesUpdated.prototype.slug = "";
19728
-
19729
- /**
19730
- * ContentfulOrderedCategoriesUpdated topic.
19731
- * @member {contentful.ISlugReference|null|undefined} topic
19732
- * @memberof ContentfulOrderedCategoriesUpdated
19733
- * @instance
19734
- */
19735
- ContentfulOrderedCategoriesUpdated.prototype.topic = null;
19736
-
19737
- /**
19738
- * ContentfulOrderedCategoriesUpdated categories.
19739
- * @member {Array.<contentful.ISlugReference>} categories
19740
- * @memberof ContentfulOrderedCategoriesUpdated
19741
- * @instance
19742
- */
19743
- ContentfulOrderedCategoriesUpdated.prototype.categories = $util.emptyArray;
19744
-
19745
- /**
19746
- * ContentfulOrderedCategoriesUpdated updatedAt.
19747
- * @member {number|Long} updatedAt
19748
- * @memberof ContentfulOrderedCategoriesUpdated
19749
- * @instance
19750
- */
19751
- ContentfulOrderedCategoriesUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
19752
-
19753
- /**
19754
- * Creates a new ContentfulOrderedCategoriesUpdated instance using the specified properties.
19755
- * @function create
19756
- * @memberof ContentfulOrderedCategoriesUpdated
19757
- * @static
19758
- * @param {IContentfulOrderedCategoriesUpdated=} [properties] Properties to set
19759
- * @returns {ContentfulOrderedCategoriesUpdated} ContentfulOrderedCategoriesUpdated instance
19760
- */
19761
- ContentfulOrderedCategoriesUpdated.create = function create(properties) {
19762
- return new ContentfulOrderedCategoriesUpdated(properties);
19763
- };
19764
-
19765
- /**
19766
- * Encodes the specified ContentfulOrderedCategoriesUpdated message. Does not implicitly {@link ContentfulOrderedCategoriesUpdated.verify|verify} messages.
19767
- * @function encode
19768
- * @memberof ContentfulOrderedCategoriesUpdated
19769
- * @static
19770
- * @param {IContentfulOrderedCategoriesUpdated} message ContentfulOrderedCategoriesUpdated message or plain object to encode
19771
- * @param {$protobuf.Writer} [writer] Writer to encode to
19772
- * @returns {$protobuf.Writer} Writer
19773
- */
19774
- ContentfulOrderedCategoriesUpdated.encode = function encode(message, writer) {
19775
- if (!writer)
19776
- writer = $Writer.create();
19777
- if (message.slug != null && message.hasOwnProperty("slug"))
19778
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
19779
- if (message.topic != null && message.hasOwnProperty("topic"))
19780
- $root.contentful.SlugReference.encode(message.topic, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
19781
- if (message.categories != null && message.categories.length)
19782
- for (var i = 0; i < message.categories.length; ++i)
19783
- $root.contentful.SlugReference.encode(message.categories[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
19784
- if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
19785
- writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.updatedAt);
19786
- return writer;
19787
- };
19788
-
19789
- /**
19790
- * Encodes the specified ContentfulOrderedCategoriesUpdated message, length delimited. Does not implicitly {@link ContentfulOrderedCategoriesUpdated.verify|verify} messages.
19791
- * @function encodeDelimited
19792
- * @memberof ContentfulOrderedCategoriesUpdated
19793
- * @static
19794
- * @param {IContentfulOrderedCategoriesUpdated} message ContentfulOrderedCategoriesUpdated message or plain object to encode
19795
- * @param {$protobuf.Writer} [writer] Writer to encode to
19796
- * @returns {$protobuf.Writer} Writer
19797
- */
19798
- ContentfulOrderedCategoriesUpdated.encodeDelimited = function encodeDelimited(message, writer) {
19799
- return this.encode(message, writer).ldelim();
19800
- };
19801
-
19802
- /**
19803
- * Decodes a ContentfulOrderedCategoriesUpdated message from the specified reader or buffer.
19804
- * @function decode
19805
- * @memberof ContentfulOrderedCategoriesUpdated
19806
- * @static
19807
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
19808
- * @param {number} [length] Message length if known beforehand
19809
- * @returns {ContentfulOrderedCategoriesUpdated} ContentfulOrderedCategoriesUpdated
19810
- * @throws {Error} If the payload is not a reader or valid buffer
19811
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
19812
- */
19813
- ContentfulOrderedCategoriesUpdated.decode = function decode(reader, length) {
19814
- if (!(reader instanceof $Reader))
19815
- reader = $Reader.create(reader);
19816
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulOrderedCategoriesUpdated();
19817
- while (reader.pos < end) {
19818
- var tag = reader.uint32();
19819
- switch (tag >>> 3) {
19820
- case 1:
19821
- message.slug = reader.string();
19822
- break;
19823
- case 2:
19824
- message.topic = $root.contentful.SlugReference.decode(reader, reader.uint32());
19825
- break;
19826
- case 3:
19827
- if (!(message.categories && message.categories.length))
19828
- message.categories = [];
19829
- message.categories.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
19830
- break;
19831
- case 4:
19832
- message.updatedAt = reader.uint64();
19833
- break;
19834
- default:
19835
- reader.skipType(tag & 7);
19836
- break;
19837
- }
19838
- }
19839
- return message;
19840
- };
19841
-
19842
- /**
19843
- * Decodes a ContentfulOrderedCategoriesUpdated message from the specified reader or buffer, length delimited.
19844
- * @function decodeDelimited
19845
- * @memberof ContentfulOrderedCategoriesUpdated
19846
- * @static
19847
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
19848
- * @returns {ContentfulOrderedCategoriesUpdated} ContentfulOrderedCategoriesUpdated
19849
- * @throws {Error} If the payload is not a reader or valid buffer
19850
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
19851
- */
19852
- ContentfulOrderedCategoriesUpdated.decodeDelimited = function decodeDelimited(reader) {
19853
- if (!(reader instanceof $Reader))
19854
- reader = new $Reader(reader);
19855
- return this.decode(reader, reader.uint32());
19856
- };
19857
-
19858
- /**
19859
- * Verifies a ContentfulOrderedCategoriesUpdated message.
19860
- * @function verify
19861
- * @memberof ContentfulOrderedCategoriesUpdated
19862
- * @static
19863
- * @param {Object.<string,*>} message Plain object to verify
19864
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
19865
- */
19866
- ContentfulOrderedCategoriesUpdated.verify = function verify(message) {
19867
- if (typeof message !== "object" || message === null)
19868
- return "object expected";
19869
- if (message.slug != null && message.hasOwnProperty("slug"))
19870
- if (!$util.isString(message.slug))
19871
- return "slug: string expected";
19872
- if (message.topic != null && message.hasOwnProperty("topic")) {
19873
- var error = $root.contentful.SlugReference.verify(message.topic);
19874
- if (error)
19875
- return "topic." + error;
19876
- }
19877
- if (message.categories != null && message.hasOwnProperty("categories")) {
19878
- if (!Array.isArray(message.categories))
19879
- return "categories: array expected";
19880
- for (var i = 0; i < message.categories.length; ++i) {
19881
- var error = $root.contentful.SlugReference.verify(message.categories[i]);
19882
- if (error)
19883
- return "categories." + error;
19884
- }
19885
- }
19886
- if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
19887
- if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
19888
- return "updatedAt: integer|Long expected";
19889
- return null;
19890
- };
19891
-
19892
- /**
19893
- * Creates a ContentfulOrderedCategoriesUpdated message from a plain object. Also converts values to their respective internal types.
19894
- * @function fromObject
19895
- * @memberof ContentfulOrderedCategoriesUpdated
19896
- * @static
19897
- * @param {Object.<string,*>} object Plain object
19898
- * @returns {ContentfulOrderedCategoriesUpdated} ContentfulOrderedCategoriesUpdated
19899
- */
19900
- ContentfulOrderedCategoriesUpdated.fromObject = function fromObject(object) {
19901
- if (object instanceof $root.ContentfulOrderedCategoriesUpdated)
19902
- return object;
19903
- var message = new $root.ContentfulOrderedCategoriesUpdated();
19904
- if (object.slug != null)
19905
- message.slug = String(object.slug);
19906
- if (object.topic != null) {
19907
- if (typeof object.topic !== "object")
19908
- throw TypeError(".ContentfulOrderedCategoriesUpdated.topic: object expected");
19909
- message.topic = $root.contentful.SlugReference.fromObject(object.topic);
19910
- }
19911
- if (object.categories) {
19912
- if (!Array.isArray(object.categories))
19913
- throw TypeError(".ContentfulOrderedCategoriesUpdated.categories: array expected");
19914
- message.categories = [];
19915
- for (var i = 0; i < object.categories.length; ++i) {
19916
- if (typeof object.categories[i] !== "object")
19917
- throw TypeError(".ContentfulOrderedCategoriesUpdated.categories: object expected");
19918
- message.categories[i] = $root.contentful.SlugReference.fromObject(object.categories[i]);
19919
- }
19920
- }
19921
- if (object.updatedAt != null)
19922
- if ($util.Long)
19923
- (message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
19924
- else if (typeof object.updatedAt === "string")
19925
- message.updatedAt = parseInt(object.updatedAt, 10);
19926
- else if (typeof object.updatedAt === "number")
19927
- message.updatedAt = object.updatedAt;
19928
- else if (typeof object.updatedAt === "object")
19929
- message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
19930
- return message;
19931
- };
19932
-
19933
- /**
19934
- * Creates a plain object from a ContentfulOrderedCategoriesUpdated message. Also converts values to other types if specified.
19935
- * @function toObject
19936
- * @memberof ContentfulOrderedCategoriesUpdated
19937
- * @static
19938
- * @param {ContentfulOrderedCategoriesUpdated} message ContentfulOrderedCategoriesUpdated
19939
- * @param {$protobuf.IConversionOptions} [options] Conversion options
19940
- * @returns {Object.<string,*>} Plain object
19941
- */
19942
- ContentfulOrderedCategoriesUpdated.toObject = function toObject(message, options) {
19943
- if (!options)
19944
- options = {};
19945
- var object = {};
19946
- if (options.arrays || options.defaults)
19947
- object.categories = [];
19948
- if (options.defaults) {
19949
- object.slug = "";
19950
- object.topic = null;
19951
- if ($util.Long) {
19952
- var long = new $util.Long(0, 0, true);
19953
- object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
19954
- } else
19955
- object.updatedAt = options.longs === String ? "0" : 0;
19956
- }
19957
- if (message.slug != null && message.hasOwnProperty("slug"))
19958
- object.slug = message.slug;
19959
- if (message.topic != null && message.hasOwnProperty("topic"))
19960
- object.topic = $root.contentful.SlugReference.toObject(message.topic, options);
19961
- if (message.categories && message.categories.length) {
19962
- object.categories = [];
19963
- for (var j = 0; j < message.categories.length; ++j)
19964
- object.categories[j] = $root.contentful.SlugReference.toObject(message.categories[j], options);
19965
- }
19966
- if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
19967
- if (typeof message.updatedAt === "number")
19968
- object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
19969
- else
19970
- 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;
19971
- return object;
19972
- };
19973
-
19974
- /**
19975
- * Converts this ContentfulOrderedCategoriesUpdated to JSON.
19976
- * @function toJSON
19977
- * @memberof ContentfulOrderedCategoriesUpdated
19978
- * @instance
19979
- * @returns {Object.<string,*>} JSON object
19980
- */
19981
- ContentfulOrderedCategoriesUpdated.prototype.toJSON = function toJSON() {
19982
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
19983
- };
19984
-
19985
- return ContentfulOrderedCategoriesUpdated;
19986
- })();
19987
-
19988
19432
  $root.ContentfulActivityVariationCreated = (function() {
19989
19433
 
19990
19434
  /**
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.159.0"
19
+ "version": "1.161.0"
20
20
  }