@headspace/protos-events 1.288.0 → 1.289.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 +48 -0
- package/lib/index.js +276 -2
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -14287,6 +14287,18 @@ export interface IContentfulCollectionCreated {
|
|
|
14287
14287
|
|
|
14288
14288
|
/** ContentfulCollectionCreated collectionContent */
|
|
14289
14289
|
collectionContent?: (contentful.ISlugReference[]|null);
|
|
14290
|
+
|
|
14291
|
+
/** ContentfulCollectionCreated enabled */
|
|
14292
|
+
enabled?: (boolean|null);
|
|
14293
|
+
|
|
14294
|
+
/** ContentfulCollectionCreated isInternationalOnly */
|
|
14295
|
+
isInternationalOnly?: (boolean|null);
|
|
14296
|
+
|
|
14297
|
+
/** ContentfulCollectionCreated accessGroups */
|
|
14298
|
+
accessGroups?: (contentful.ISlugReference[]|null);
|
|
14299
|
+
|
|
14300
|
+
/** ContentfulCollectionCreated tags */
|
|
14301
|
+
tags?: ({ [k: string]: contentful.ITags }|null);
|
|
14290
14302
|
}
|
|
14291
14303
|
|
|
14292
14304
|
/** Represents a ContentfulCollectionCreated. */
|
|
@@ -14322,6 +14334,18 @@ export class ContentfulCollectionCreated implements IContentfulCollectionCreated
|
|
|
14322
14334
|
/** ContentfulCollectionCreated collectionContent. */
|
|
14323
14335
|
public collectionContent: contentful.ISlugReference[];
|
|
14324
14336
|
|
|
14337
|
+
/** ContentfulCollectionCreated enabled. */
|
|
14338
|
+
public enabled: boolean;
|
|
14339
|
+
|
|
14340
|
+
/** ContentfulCollectionCreated isInternationalOnly. */
|
|
14341
|
+
public isInternationalOnly: boolean;
|
|
14342
|
+
|
|
14343
|
+
/** ContentfulCollectionCreated accessGroups. */
|
|
14344
|
+
public accessGroups: contentful.ISlugReference[];
|
|
14345
|
+
|
|
14346
|
+
/** ContentfulCollectionCreated tags. */
|
|
14347
|
+
public tags: { [k: string]: contentful.ITags };
|
|
14348
|
+
|
|
14325
14349
|
/**
|
|
14326
14350
|
* Creates a new ContentfulCollectionCreated instance using the specified properties.
|
|
14327
14351
|
* @param [properties] Properties to set
|
|
@@ -14419,6 +14443,18 @@ export interface IContentfulCollectionUpdated {
|
|
|
14419
14443
|
|
|
14420
14444
|
/** ContentfulCollectionUpdated collectionContent */
|
|
14421
14445
|
collectionContent?: (contentful.ISlugReference[]|null);
|
|
14446
|
+
|
|
14447
|
+
/** ContentfulCollectionUpdated enabled */
|
|
14448
|
+
enabled?: (boolean|null);
|
|
14449
|
+
|
|
14450
|
+
/** ContentfulCollectionUpdated isInternationalOnly */
|
|
14451
|
+
isInternationalOnly?: (boolean|null);
|
|
14452
|
+
|
|
14453
|
+
/** ContentfulCollectionUpdated accessGroups */
|
|
14454
|
+
accessGroups?: (contentful.ISlugReference[]|null);
|
|
14455
|
+
|
|
14456
|
+
/** ContentfulCollectionUpdated tags */
|
|
14457
|
+
tags?: ({ [k: string]: contentful.ITags }|null);
|
|
14422
14458
|
}
|
|
14423
14459
|
|
|
14424
14460
|
/** Represents a ContentfulCollectionUpdated. */
|
|
@@ -14454,6 +14490,18 @@ export class ContentfulCollectionUpdated implements IContentfulCollectionUpdated
|
|
|
14454
14490
|
/** ContentfulCollectionUpdated collectionContent. */
|
|
14455
14491
|
public collectionContent: contentful.ISlugReference[];
|
|
14456
14492
|
|
|
14493
|
+
/** ContentfulCollectionUpdated enabled. */
|
|
14494
|
+
public enabled: boolean;
|
|
14495
|
+
|
|
14496
|
+
/** ContentfulCollectionUpdated isInternationalOnly. */
|
|
14497
|
+
public isInternationalOnly: boolean;
|
|
14498
|
+
|
|
14499
|
+
/** ContentfulCollectionUpdated accessGroups. */
|
|
14500
|
+
public accessGroups: contentful.ISlugReference[];
|
|
14501
|
+
|
|
14502
|
+
/** ContentfulCollectionUpdated tags. */
|
|
14503
|
+
public tags: { [k: string]: contentful.ITags };
|
|
14504
|
+
|
|
14457
14505
|
/**
|
|
14458
14506
|
* Creates a new ContentfulCollectionUpdated instance using the specified properties.
|
|
14459
14507
|
* @param [properties] Properties to set
|
package/lib/index.js
CHANGED
|
@@ -36355,6 +36355,10 @@ $root.ContentfulCollectionCreated = (function() {
|
|
|
36355
36355
|
* @property {ContentCollectionType|null} [collectionType] ContentfulCollectionCreated collectionType
|
|
36356
36356
|
* @property {Object.<string,contentful.IIdReference>|null} [tileMedia] ContentfulCollectionCreated tileMedia
|
|
36357
36357
|
* @property {Array.<contentful.ISlugReference>|null} [collectionContent] ContentfulCollectionCreated collectionContent
|
|
36358
|
+
* @property {boolean|null} [enabled] ContentfulCollectionCreated enabled
|
|
36359
|
+
* @property {boolean|null} [isInternationalOnly] ContentfulCollectionCreated isInternationalOnly
|
|
36360
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessGroups] ContentfulCollectionCreated accessGroups
|
|
36361
|
+
* @property {Object.<string,contentful.ITags>|null} [tags] ContentfulCollectionCreated tags
|
|
36358
36362
|
*/
|
|
36359
36363
|
|
|
36360
36364
|
/**
|
|
@@ -36371,6 +36375,8 @@ $root.ContentfulCollectionCreated = (function() {
|
|
|
36371
36375
|
this.description = {};
|
|
36372
36376
|
this.tileMedia = {};
|
|
36373
36377
|
this.collectionContent = [];
|
|
36378
|
+
this.accessGroups = [];
|
|
36379
|
+
this.tags = {};
|
|
36374
36380
|
if (properties)
|
|
36375
36381
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
36376
36382
|
if (properties[keys[i]] != null)
|
|
@@ -36441,6 +36447,38 @@ $root.ContentfulCollectionCreated = (function() {
|
|
|
36441
36447
|
*/
|
|
36442
36448
|
ContentfulCollectionCreated.prototype.collectionContent = $util.emptyArray;
|
|
36443
36449
|
|
|
36450
|
+
/**
|
|
36451
|
+
* ContentfulCollectionCreated enabled.
|
|
36452
|
+
* @member {boolean} enabled
|
|
36453
|
+
* @memberof ContentfulCollectionCreated
|
|
36454
|
+
* @instance
|
|
36455
|
+
*/
|
|
36456
|
+
ContentfulCollectionCreated.prototype.enabled = false;
|
|
36457
|
+
|
|
36458
|
+
/**
|
|
36459
|
+
* ContentfulCollectionCreated isInternationalOnly.
|
|
36460
|
+
* @member {boolean} isInternationalOnly
|
|
36461
|
+
* @memberof ContentfulCollectionCreated
|
|
36462
|
+
* @instance
|
|
36463
|
+
*/
|
|
36464
|
+
ContentfulCollectionCreated.prototype.isInternationalOnly = false;
|
|
36465
|
+
|
|
36466
|
+
/**
|
|
36467
|
+
* ContentfulCollectionCreated accessGroups.
|
|
36468
|
+
* @member {Array.<contentful.ISlugReference>} accessGroups
|
|
36469
|
+
* @memberof ContentfulCollectionCreated
|
|
36470
|
+
* @instance
|
|
36471
|
+
*/
|
|
36472
|
+
ContentfulCollectionCreated.prototype.accessGroups = $util.emptyArray;
|
|
36473
|
+
|
|
36474
|
+
/**
|
|
36475
|
+
* ContentfulCollectionCreated tags.
|
|
36476
|
+
* @member {Object.<string,contentful.ITags>} tags
|
|
36477
|
+
* @memberof ContentfulCollectionCreated
|
|
36478
|
+
* @instance
|
|
36479
|
+
*/
|
|
36480
|
+
ContentfulCollectionCreated.prototype.tags = $util.emptyObject;
|
|
36481
|
+
|
|
36444
36482
|
/**
|
|
36445
36483
|
* Creates a new ContentfulCollectionCreated instance using the specified properties.
|
|
36446
36484
|
* @function create
|
|
@@ -36488,6 +36526,18 @@ $root.ContentfulCollectionCreated = (function() {
|
|
|
36488
36526
|
if (message.collectionContent != null && message.collectionContent.length)
|
|
36489
36527
|
for (var i = 0; i < message.collectionContent.length; ++i)
|
|
36490
36528
|
$root.contentful.SlugReference.encode(message.collectionContent[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
36529
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
36530
|
+
writer.uint32(/* id 9, wireType 0 =*/72).bool(message.enabled);
|
|
36531
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
36532
|
+
writer.uint32(/* id 10, wireType 0 =*/80).bool(message.isInternationalOnly);
|
|
36533
|
+
if (message.accessGroups != null && message.accessGroups.length)
|
|
36534
|
+
for (var i = 0; i < message.accessGroups.length; ++i)
|
|
36535
|
+
$root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
|
|
36536
|
+
if (message.tags != null && message.hasOwnProperty("tags"))
|
|
36537
|
+
for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) {
|
|
36538
|
+
writer.uint32(/* id 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
36539
|
+
$root.contentful.Tags.encode(message.tags[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
36540
|
+
}
|
|
36491
36541
|
return writer;
|
|
36492
36542
|
};
|
|
36493
36543
|
|
|
@@ -36568,6 +36618,25 @@ $root.ContentfulCollectionCreated = (function() {
|
|
|
36568
36618
|
message.collectionContent = [];
|
|
36569
36619
|
message.collectionContent.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
36570
36620
|
break;
|
|
36621
|
+
case 9:
|
|
36622
|
+
message.enabled = reader.bool();
|
|
36623
|
+
break;
|
|
36624
|
+
case 10:
|
|
36625
|
+
message.isInternationalOnly = reader.bool();
|
|
36626
|
+
break;
|
|
36627
|
+
case 11:
|
|
36628
|
+
if (!(message.accessGroups && message.accessGroups.length))
|
|
36629
|
+
message.accessGroups = [];
|
|
36630
|
+
message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
36631
|
+
break;
|
|
36632
|
+
case 12:
|
|
36633
|
+
reader.skip().pos++;
|
|
36634
|
+
if (message.tags === $util.emptyObject)
|
|
36635
|
+
message.tags = {};
|
|
36636
|
+
key = reader.string();
|
|
36637
|
+
reader.pos++;
|
|
36638
|
+
message.tags[key] = $root.contentful.Tags.decode(reader, reader.uint32());
|
|
36639
|
+
break;
|
|
36571
36640
|
default:
|
|
36572
36641
|
reader.skipType(tag & 7);
|
|
36573
36642
|
break;
|
|
@@ -36660,6 +36729,31 @@ $root.ContentfulCollectionCreated = (function() {
|
|
|
36660
36729
|
return "collectionContent." + error;
|
|
36661
36730
|
}
|
|
36662
36731
|
}
|
|
36732
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
36733
|
+
if (typeof message.enabled !== "boolean")
|
|
36734
|
+
return "enabled: boolean expected";
|
|
36735
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
36736
|
+
if (typeof message.isInternationalOnly !== "boolean")
|
|
36737
|
+
return "isInternationalOnly: boolean expected";
|
|
36738
|
+
if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
|
|
36739
|
+
if (!Array.isArray(message.accessGroups))
|
|
36740
|
+
return "accessGroups: array expected";
|
|
36741
|
+
for (var i = 0; i < message.accessGroups.length; ++i) {
|
|
36742
|
+
var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
|
|
36743
|
+
if (error)
|
|
36744
|
+
return "accessGroups." + error;
|
|
36745
|
+
}
|
|
36746
|
+
}
|
|
36747
|
+
if (message.tags != null && message.hasOwnProperty("tags")) {
|
|
36748
|
+
if (!$util.isObject(message.tags))
|
|
36749
|
+
return "tags: object expected";
|
|
36750
|
+
var key = Object.keys(message.tags);
|
|
36751
|
+
for (var i = 0; i < key.length; ++i) {
|
|
36752
|
+
var error = $root.contentful.Tags.verify(message.tags[key[i]]);
|
|
36753
|
+
if (error)
|
|
36754
|
+
return "tags." + error;
|
|
36755
|
+
}
|
|
36756
|
+
}
|
|
36663
36757
|
return null;
|
|
36664
36758
|
};
|
|
36665
36759
|
|
|
@@ -36737,6 +36831,30 @@ $root.ContentfulCollectionCreated = (function() {
|
|
|
36737
36831
|
message.collectionContent[i] = $root.contentful.SlugReference.fromObject(object.collectionContent[i]);
|
|
36738
36832
|
}
|
|
36739
36833
|
}
|
|
36834
|
+
if (object.enabled != null)
|
|
36835
|
+
message.enabled = Boolean(object.enabled);
|
|
36836
|
+
if (object.isInternationalOnly != null)
|
|
36837
|
+
message.isInternationalOnly = Boolean(object.isInternationalOnly);
|
|
36838
|
+
if (object.accessGroups) {
|
|
36839
|
+
if (!Array.isArray(object.accessGroups))
|
|
36840
|
+
throw TypeError(".ContentfulCollectionCreated.accessGroups: array expected");
|
|
36841
|
+
message.accessGroups = [];
|
|
36842
|
+
for (var i = 0; i < object.accessGroups.length; ++i) {
|
|
36843
|
+
if (typeof object.accessGroups[i] !== "object")
|
|
36844
|
+
throw TypeError(".ContentfulCollectionCreated.accessGroups: object expected");
|
|
36845
|
+
message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
|
|
36846
|
+
}
|
|
36847
|
+
}
|
|
36848
|
+
if (object.tags) {
|
|
36849
|
+
if (typeof object.tags !== "object")
|
|
36850
|
+
throw TypeError(".ContentfulCollectionCreated.tags: object expected");
|
|
36851
|
+
message.tags = {};
|
|
36852
|
+
for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) {
|
|
36853
|
+
if (typeof object.tags[keys[i]] !== "object")
|
|
36854
|
+
throw TypeError(".ContentfulCollectionCreated.tags: object expected");
|
|
36855
|
+
message.tags[keys[i]] = $root.contentful.Tags.fromObject(object.tags[keys[i]]);
|
|
36856
|
+
}
|
|
36857
|
+
}
|
|
36740
36858
|
return message;
|
|
36741
36859
|
};
|
|
36742
36860
|
|
|
@@ -36753,13 +36871,16 @@ $root.ContentfulCollectionCreated = (function() {
|
|
|
36753
36871
|
if (!options)
|
|
36754
36872
|
options = {};
|
|
36755
36873
|
var object = {};
|
|
36756
|
-
if (options.arrays || options.defaults)
|
|
36874
|
+
if (options.arrays || options.defaults) {
|
|
36757
36875
|
object.collectionContent = [];
|
|
36876
|
+
object.accessGroups = [];
|
|
36877
|
+
}
|
|
36758
36878
|
if (options.objects || options.defaults) {
|
|
36759
36879
|
object.name = {};
|
|
36760
36880
|
object.teaser = {};
|
|
36761
36881
|
object.description = {};
|
|
36762
36882
|
object.tileMedia = {};
|
|
36883
|
+
object.tags = {};
|
|
36763
36884
|
}
|
|
36764
36885
|
if (options.defaults) {
|
|
36765
36886
|
object.slug = "";
|
|
@@ -36769,6 +36890,8 @@ $root.ContentfulCollectionCreated = (function() {
|
|
|
36769
36890
|
} else
|
|
36770
36891
|
object.createdAt = options.longs === String ? "0" : 0;
|
|
36771
36892
|
object.collectionType = options.enums === String ? "CONTENT_COLLECTION_TYPE_UNRECOGNIZED" : 0;
|
|
36893
|
+
object.enabled = false;
|
|
36894
|
+
object.isInternationalOnly = false;
|
|
36772
36895
|
}
|
|
36773
36896
|
var keys2;
|
|
36774
36897
|
if (message.name && (keys2 = Object.keys(message.name)).length) {
|
|
@@ -36805,6 +36928,20 @@ $root.ContentfulCollectionCreated = (function() {
|
|
|
36805
36928
|
for (var j = 0; j < message.collectionContent.length; ++j)
|
|
36806
36929
|
object.collectionContent[j] = $root.contentful.SlugReference.toObject(message.collectionContent[j], options);
|
|
36807
36930
|
}
|
|
36931
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
36932
|
+
object.enabled = message.enabled;
|
|
36933
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
36934
|
+
object.isInternationalOnly = message.isInternationalOnly;
|
|
36935
|
+
if (message.accessGroups && message.accessGroups.length) {
|
|
36936
|
+
object.accessGroups = [];
|
|
36937
|
+
for (var j = 0; j < message.accessGroups.length; ++j)
|
|
36938
|
+
object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
|
|
36939
|
+
}
|
|
36940
|
+
if (message.tags && (keys2 = Object.keys(message.tags)).length) {
|
|
36941
|
+
object.tags = {};
|
|
36942
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
36943
|
+
object.tags[keys2[j]] = $root.contentful.Tags.toObject(message.tags[keys2[j]], options);
|
|
36944
|
+
}
|
|
36808
36945
|
return object;
|
|
36809
36946
|
};
|
|
36810
36947
|
|
|
@@ -36836,6 +36973,10 @@ $root.ContentfulCollectionUpdated = (function() {
|
|
|
36836
36973
|
* @property {ContentCollectionType|null} [collectionType] ContentfulCollectionUpdated collectionType
|
|
36837
36974
|
* @property {Object.<string,contentful.IIdReference>|null} [tileMedia] ContentfulCollectionUpdated tileMedia
|
|
36838
36975
|
* @property {Array.<contentful.ISlugReference>|null} [collectionContent] ContentfulCollectionUpdated collectionContent
|
|
36976
|
+
* @property {boolean|null} [enabled] ContentfulCollectionUpdated enabled
|
|
36977
|
+
* @property {boolean|null} [isInternationalOnly] ContentfulCollectionUpdated isInternationalOnly
|
|
36978
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessGroups] ContentfulCollectionUpdated accessGroups
|
|
36979
|
+
* @property {Object.<string,contentful.ITags>|null} [tags] ContentfulCollectionUpdated tags
|
|
36839
36980
|
*/
|
|
36840
36981
|
|
|
36841
36982
|
/**
|
|
@@ -36852,6 +36993,8 @@ $root.ContentfulCollectionUpdated = (function() {
|
|
|
36852
36993
|
this.description = {};
|
|
36853
36994
|
this.tileMedia = {};
|
|
36854
36995
|
this.collectionContent = [];
|
|
36996
|
+
this.accessGroups = [];
|
|
36997
|
+
this.tags = {};
|
|
36855
36998
|
if (properties)
|
|
36856
36999
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
36857
37000
|
if (properties[keys[i]] != null)
|
|
@@ -36922,6 +37065,38 @@ $root.ContentfulCollectionUpdated = (function() {
|
|
|
36922
37065
|
*/
|
|
36923
37066
|
ContentfulCollectionUpdated.prototype.collectionContent = $util.emptyArray;
|
|
36924
37067
|
|
|
37068
|
+
/**
|
|
37069
|
+
* ContentfulCollectionUpdated enabled.
|
|
37070
|
+
* @member {boolean} enabled
|
|
37071
|
+
* @memberof ContentfulCollectionUpdated
|
|
37072
|
+
* @instance
|
|
37073
|
+
*/
|
|
37074
|
+
ContentfulCollectionUpdated.prototype.enabled = false;
|
|
37075
|
+
|
|
37076
|
+
/**
|
|
37077
|
+
* ContentfulCollectionUpdated isInternationalOnly.
|
|
37078
|
+
* @member {boolean} isInternationalOnly
|
|
37079
|
+
* @memberof ContentfulCollectionUpdated
|
|
37080
|
+
* @instance
|
|
37081
|
+
*/
|
|
37082
|
+
ContentfulCollectionUpdated.prototype.isInternationalOnly = false;
|
|
37083
|
+
|
|
37084
|
+
/**
|
|
37085
|
+
* ContentfulCollectionUpdated accessGroups.
|
|
37086
|
+
* @member {Array.<contentful.ISlugReference>} accessGroups
|
|
37087
|
+
* @memberof ContentfulCollectionUpdated
|
|
37088
|
+
* @instance
|
|
37089
|
+
*/
|
|
37090
|
+
ContentfulCollectionUpdated.prototype.accessGroups = $util.emptyArray;
|
|
37091
|
+
|
|
37092
|
+
/**
|
|
37093
|
+
* ContentfulCollectionUpdated tags.
|
|
37094
|
+
* @member {Object.<string,contentful.ITags>} tags
|
|
37095
|
+
* @memberof ContentfulCollectionUpdated
|
|
37096
|
+
* @instance
|
|
37097
|
+
*/
|
|
37098
|
+
ContentfulCollectionUpdated.prototype.tags = $util.emptyObject;
|
|
37099
|
+
|
|
36925
37100
|
/**
|
|
36926
37101
|
* Creates a new ContentfulCollectionUpdated instance using the specified properties.
|
|
36927
37102
|
* @function create
|
|
@@ -36969,6 +37144,18 @@ $root.ContentfulCollectionUpdated = (function() {
|
|
|
36969
37144
|
if (message.collectionContent != null && message.collectionContent.length)
|
|
36970
37145
|
for (var i = 0; i < message.collectionContent.length; ++i)
|
|
36971
37146
|
$root.contentful.SlugReference.encode(message.collectionContent[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
37147
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
37148
|
+
writer.uint32(/* id 9, wireType 0 =*/72).bool(message.enabled);
|
|
37149
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
37150
|
+
writer.uint32(/* id 10, wireType 0 =*/80).bool(message.isInternationalOnly);
|
|
37151
|
+
if (message.accessGroups != null && message.accessGroups.length)
|
|
37152
|
+
for (var i = 0; i < message.accessGroups.length; ++i)
|
|
37153
|
+
$root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
|
|
37154
|
+
if (message.tags != null && message.hasOwnProperty("tags"))
|
|
37155
|
+
for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) {
|
|
37156
|
+
writer.uint32(/* id 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
37157
|
+
$root.contentful.Tags.encode(message.tags[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
37158
|
+
}
|
|
36972
37159
|
return writer;
|
|
36973
37160
|
};
|
|
36974
37161
|
|
|
@@ -37049,6 +37236,25 @@ $root.ContentfulCollectionUpdated = (function() {
|
|
|
37049
37236
|
message.collectionContent = [];
|
|
37050
37237
|
message.collectionContent.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
37051
37238
|
break;
|
|
37239
|
+
case 9:
|
|
37240
|
+
message.enabled = reader.bool();
|
|
37241
|
+
break;
|
|
37242
|
+
case 10:
|
|
37243
|
+
message.isInternationalOnly = reader.bool();
|
|
37244
|
+
break;
|
|
37245
|
+
case 11:
|
|
37246
|
+
if (!(message.accessGroups && message.accessGroups.length))
|
|
37247
|
+
message.accessGroups = [];
|
|
37248
|
+
message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
37249
|
+
break;
|
|
37250
|
+
case 12:
|
|
37251
|
+
reader.skip().pos++;
|
|
37252
|
+
if (message.tags === $util.emptyObject)
|
|
37253
|
+
message.tags = {};
|
|
37254
|
+
key = reader.string();
|
|
37255
|
+
reader.pos++;
|
|
37256
|
+
message.tags[key] = $root.contentful.Tags.decode(reader, reader.uint32());
|
|
37257
|
+
break;
|
|
37052
37258
|
default:
|
|
37053
37259
|
reader.skipType(tag & 7);
|
|
37054
37260
|
break;
|
|
@@ -37141,6 +37347,31 @@ $root.ContentfulCollectionUpdated = (function() {
|
|
|
37141
37347
|
return "collectionContent." + error;
|
|
37142
37348
|
}
|
|
37143
37349
|
}
|
|
37350
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
37351
|
+
if (typeof message.enabled !== "boolean")
|
|
37352
|
+
return "enabled: boolean expected";
|
|
37353
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
37354
|
+
if (typeof message.isInternationalOnly !== "boolean")
|
|
37355
|
+
return "isInternationalOnly: boolean expected";
|
|
37356
|
+
if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
|
|
37357
|
+
if (!Array.isArray(message.accessGroups))
|
|
37358
|
+
return "accessGroups: array expected";
|
|
37359
|
+
for (var i = 0; i < message.accessGroups.length; ++i) {
|
|
37360
|
+
var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
|
|
37361
|
+
if (error)
|
|
37362
|
+
return "accessGroups." + error;
|
|
37363
|
+
}
|
|
37364
|
+
}
|
|
37365
|
+
if (message.tags != null && message.hasOwnProperty("tags")) {
|
|
37366
|
+
if (!$util.isObject(message.tags))
|
|
37367
|
+
return "tags: object expected";
|
|
37368
|
+
var key = Object.keys(message.tags);
|
|
37369
|
+
for (var i = 0; i < key.length; ++i) {
|
|
37370
|
+
var error = $root.contentful.Tags.verify(message.tags[key[i]]);
|
|
37371
|
+
if (error)
|
|
37372
|
+
return "tags." + error;
|
|
37373
|
+
}
|
|
37374
|
+
}
|
|
37144
37375
|
return null;
|
|
37145
37376
|
};
|
|
37146
37377
|
|
|
@@ -37218,6 +37449,30 @@ $root.ContentfulCollectionUpdated = (function() {
|
|
|
37218
37449
|
message.collectionContent[i] = $root.contentful.SlugReference.fromObject(object.collectionContent[i]);
|
|
37219
37450
|
}
|
|
37220
37451
|
}
|
|
37452
|
+
if (object.enabled != null)
|
|
37453
|
+
message.enabled = Boolean(object.enabled);
|
|
37454
|
+
if (object.isInternationalOnly != null)
|
|
37455
|
+
message.isInternationalOnly = Boolean(object.isInternationalOnly);
|
|
37456
|
+
if (object.accessGroups) {
|
|
37457
|
+
if (!Array.isArray(object.accessGroups))
|
|
37458
|
+
throw TypeError(".ContentfulCollectionUpdated.accessGroups: array expected");
|
|
37459
|
+
message.accessGroups = [];
|
|
37460
|
+
for (var i = 0; i < object.accessGroups.length; ++i) {
|
|
37461
|
+
if (typeof object.accessGroups[i] !== "object")
|
|
37462
|
+
throw TypeError(".ContentfulCollectionUpdated.accessGroups: object expected");
|
|
37463
|
+
message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
|
|
37464
|
+
}
|
|
37465
|
+
}
|
|
37466
|
+
if (object.tags) {
|
|
37467
|
+
if (typeof object.tags !== "object")
|
|
37468
|
+
throw TypeError(".ContentfulCollectionUpdated.tags: object expected");
|
|
37469
|
+
message.tags = {};
|
|
37470
|
+
for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) {
|
|
37471
|
+
if (typeof object.tags[keys[i]] !== "object")
|
|
37472
|
+
throw TypeError(".ContentfulCollectionUpdated.tags: object expected");
|
|
37473
|
+
message.tags[keys[i]] = $root.contentful.Tags.fromObject(object.tags[keys[i]]);
|
|
37474
|
+
}
|
|
37475
|
+
}
|
|
37221
37476
|
return message;
|
|
37222
37477
|
};
|
|
37223
37478
|
|
|
@@ -37234,13 +37489,16 @@ $root.ContentfulCollectionUpdated = (function() {
|
|
|
37234
37489
|
if (!options)
|
|
37235
37490
|
options = {};
|
|
37236
37491
|
var object = {};
|
|
37237
|
-
if (options.arrays || options.defaults)
|
|
37492
|
+
if (options.arrays || options.defaults) {
|
|
37238
37493
|
object.collectionContent = [];
|
|
37494
|
+
object.accessGroups = [];
|
|
37495
|
+
}
|
|
37239
37496
|
if (options.objects || options.defaults) {
|
|
37240
37497
|
object.name = {};
|
|
37241
37498
|
object.teaser = {};
|
|
37242
37499
|
object.description = {};
|
|
37243
37500
|
object.tileMedia = {};
|
|
37501
|
+
object.tags = {};
|
|
37244
37502
|
}
|
|
37245
37503
|
if (options.defaults) {
|
|
37246
37504
|
object.slug = "";
|
|
@@ -37250,6 +37508,8 @@ $root.ContentfulCollectionUpdated = (function() {
|
|
|
37250
37508
|
} else
|
|
37251
37509
|
object.updatedAt = options.longs === String ? "0" : 0;
|
|
37252
37510
|
object.collectionType = options.enums === String ? "CONTENT_COLLECTION_TYPE_UNRECOGNIZED" : 0;
|
|
37511
|
+
object.enabled = false;
|
|
37512
|
+
object.isInternationalOnly = false;
|
|
37253
37513
|
}
|
|
37254
37514
|
var keys2;
|
|
37255
37515
|
if (message.name && (keys2 = Object.keys(message.name)).length) {
|
|
@@ -37286,6 +37546,20 @@ $root.ContentfulCollectionUpdated = (function() {
|
|
|
37286
37546
|
for (var j = 0; j < message.collectionContent.length; ++j)
|
|
37287
37547
|
object.collectionContent[j] = $root.contentful.SlugReference.toObject(message.collectionContent[j], options);
|
|
37288
37548
|
}
|
|
37549
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
37550
|
+
object.enabled = message.enabled;
|
|
37551
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
37552
|
+
object.isInternationalOnly = message.isInternationalOnly;
|
|
37553
|
+
if (message.accessGroups && message.accessGroups.length) {
|
|
37554
|
+
object.accessGroups = [];
|
|
37555
|
+
for (var j = 0; j < message.accessGroups.length; ++j)
|
|
37556
|
+
object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
|
|
37557
|
+
}
|
|
37558
|
+
if (message.tags && (keys2 = Object.keys(message.tags)).length) {
|
|
37559
|
+
object.tags = {};
|
|
37560
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
37561
|
+
object.tags[keys2[j]] = $root.contentful.Tags.toObject(message.tags[keys2[j]], options);
|
|
37562
|
+
}
|
|
37289
37563
|
return object;
|
|
37290
37564
|
};
|
|
37291
37565
|
|
package/package.json
CHANGED