@headspace/protos-events 1.174.0 → 1.176.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 +36 -84
- package/lib/index.js +284 -666
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -24033,8 +24033,7 @@ $root.ContentfulLayoutCreated = (function() {
|
|
|
24033
24033
|
* @property {string|null} [theme] ContentfulLayoutCreated theme
|
|
24034
24034
|
* @property {Array.<string>|null} [languageExclusions] ContentfulLayoutCreated languageExclusions
|
|
24035
24035
|
* @property {Array.<contentful.ISlugReference>|null} [moduleDescriptors] ContentfulLayoutCreated moduleDescriptors
|
|
24036
|
-
* @property {Array.<contentful.ISlugReference>|null} [
|
|
24037
|
-
* @property {Array.<contentful.ISlugReference>|null} [excludedAccessGroups] ContentfulLayoutCreated excludedAccessGroups
|
|
24036
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessRules] ContentfulLayoutCreated accessRules
|
|
24038
24037
|
* @property {number|Long|null} [createdAt] ContentfulLayoutCreated createdAt
|
|
24039
24038
|
*/
|
|
24040
24039
|
|
|
@@ -24049,8 +24048,7 @@ $root.ContentfulLayoutCreated = (function() {
|
|
|
24049
24048
|
function ContentfulLayoutCreated(properties) {
|
|
24050
24049
|
this.languageExclusions = [];
|
|
24051
24050
|
this.moduleDescriptors = [];
|
|
24052
|
-
this.
|
|
24053
|
-
this.excludedAccessGroups = [];
|
|
24051
|
+
this.accessRules = [];
|
|
24054
24052
|
if (properties)
|
|
24055
24053
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
24056
24054
|
if (properties[keys[i]] != null)
|
|
@@ -24098,20 +24096,12 @@ $root.ContentfulLayoutCreated = (function() {
|
|
|
24098
24096
|
ContentfulLayoutCreated.prototype.moduleDescriptors = $util.emptyArray;
|
|
24099
24097
|
|
|
24100
24098
|
/**
|
|
24101
|
-
* ContentfulLayoutCreated
|
|
24102
|
-
* @member {Array.<contentful.ISlugReference>}
|
|
24103
|
-
* @memberof ContentfulLayoutCreated
|
|
24104
|
-
* @instance
|
|
24105
|
-
*/
|
|
24106
|
-
ContentfulLayoutCreated.prototype.accessGroups = $util.emptyArray;
|
|
24107
|
-
|
|
24108
|
-
/**
|
|
24109
|
-
* ContentfulLayoutCreated excludedAccessGroups.
|
|
24110
|
-
* @member {Array.<contentful.ISlugReference>} excludedAccessGroups
|
|
24099
|
+
* ContentfulLayoutCreated accessRules.
|
|
24100
|
+
* @member {Array.<contentful.ISlugReference>} accessRules
|
|
24111
24101
|
* @memberof ContentfulLayoutCreated
|
|
24112
24102
|
* @instance
|
|
24113
24103
|
*/
|
|
24114
|
-
ContentfulLayoutCreated.prototype.
|
|
24104
|
+
ContentfulLayoutCreated.prototype.accessRules = $util.emptyArray;
|
|
24115
24105
|
|
|
24116
24106
|
/**
|
|
24117
24107
|
* ContentfulLayoutCreated createdAt.
|
|
@@ -24157,14 +24147,11 @@ $root.ContentfulLayoutCreated = (function() {
|
|
|
24157
24147
|
if (message.moduleDescriptors != null && message.moduleDescriptors.length)
|
|
24158
24148
|
for (var i = 0; i < message.moduleDescriptors.length; ++i)
|
|
24159
24149
|
$root.contentful.SlugReference.encode(message.moduleDescriptors[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
24160
|
-
if (message.
|
|
24161
|
-
for (var i = 0; i < message.
|
|
24162
|
-
$root.contentful.SlugReference.encode(message.
|
|
24163
|
-
if (message.excludedAccessGroups != null && message.excludedAccessGroups.length)
|
|
24164
|
-
for (var i = 0; i < message.excludedAccessGroups.length; ++i)
|
|
24165
|
-
$root.contentful.SlugReference.encode(message.excludedAccessGroups[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
24150
|
+
if (message.accessRules != null && message.accessRules.length)
|
|
24151
|
+
for (var i = 0; i < message.accessRules.length; ++i)
|
|
24152
|
+
$root.contentful.SlugReference.encode(message.accessRules[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
24166
24153
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
24167
|
-
writer.uint32(/* id
|
|
24154
|
+
writer.uint32(/* id 7, wireType 0 =*/56).uint64(message.createdAt);
|
|
24168
24155
|
return writer;
|
|
24169
24156
|
};
|
|
24170
24157
|
|
|
@@ -24219,16 +24206,11 @@ $root.ContentfulLayoutCreated = (function() {
|
|
|
24219
24206
|
message.moduleDescriptors.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
24220
24207
|
break;
|
|
24221
24208
|
case 6:
|
|
24222
|
-
if (!(message.
|
|
24223
|
-
message.
|
|
24224
|
-
message.
|
|
24209
|
+
if (!(message.accessRules && message.accessRules.length))
|
|
24210
|
+
message.accessRules = [];
|
|
24211
|
+
message.accessRules.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
24225
24212
|
break;
|
|
24226
24213
|
case 7:
|
|
24227
|
-
if (!(message.excludedAccessGroups && message.excludedAccessGroups.length))
|
|
24228
|
-
message.excludedAccessGroups = [];
|
|
24229
|
-
message.excludedAccessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
24230
|
-
break;
|
|
24231
|
-
case 8:
|
|
24232
24214
|
message.createdAt = reader.uint64();
|
|
24233
24215
|
break;
|
|
24234
24216
|
default:
|
|
@@ -24291,22 +24273,13 @@ $root.ContentfulLayoutCreated = (function() {
|
|
|
24291
24273
|
return "moduleDescriptors." + error;
|
|
24292
24274
|
}
|
|
24293
24275
|
}
|
|
24294
|
-
if (message.
|
|
24295
|
-
if (!Array.isArray(message.
|
|
24296
|
-
return "
|
|
24297
|
-
for (var i = 0; i < message.
|
|
24298
|
-
var error = $root.contentful.SlugReference.verify(message.
|
|
24299
|
-
if (error)
|
|
24300
|
-
return "accessGroups." + error;
|
|
24301
|
-
}
|
|
24302
|
-
}
|
|
24303
|
-
if (message.excludedAccessGroups != null && message.hasOwnProperty("excludedAccessGroups")) {
|
|
24304
|
-
if (!Array.isArray(message.excludedAccessGroups))
|
|
24305
|
-
return "excludedAccessGroups: array expected";
|
|
24306
|
-
for (var i = 0; i < message.excludedAccessGroups.length; ++i) {
|
|
24307
|
-
var error = $root.contentful.SlugReference.verify(message.excludedAccessGroups[i]);
|
|
24276
|
+
if (message.accessRules != null && message.hasOwnProperty("accessRules")) {
|
|
24277
|
+
if (!Array.isArray(message.accessRules))
|
|
24278
|
+
return "accessRules: array expected";
|
|
24279
|
+
for (var i = 0; i < message.accessRules.length; ++i) {
|
|
24280
|
+
var error = $root.contentful.SlugReference.verify(message.accessRules[i]);
|
|
24308
24281
|
if (error)
|
|
24309
|
-
return "
|
|
24282
|
+
return "accessRules." + error;
|
|
24310
24283
|
}
|
|
24311
24284
|
}
|
|
24312
24285
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
@@ -24350,24 +24323,14 @@ $root.ContentfulLayoutCreated = (function() {
|
|
|
24350
24323
|
message.moduleDescriptors[i] = $root.contentful.SlugReference.fromObject(object.moduleDescriptors[i]);
|
|
24351
24324
|
}
|
|
24352
24325
|
}
|
|
24353
|
-
if (object.
|
|
24354
|
-
if (!Array.isArray(object.
|
|
24355
|
-
throw TypeError(".ContentfulLayoutCreated.
|
|
24356
|
-
message.
|
|
24357
|
-
for (var i = 0; i < object.
|
|
24358
|
-
if (typeof object.
|
|
24359
|
-
throw TypeError(".ContentfulLayoutCreated.
|
|
24360
|
-
message.
|
|
24361
|
-
}
|
|
24362
|
-
}
|
|
24363
|
-
if (object.excludedAccessGroups) {
|
|
24364
|
-
if (!Array.isArray(object.excludedAccessGroups))
|
|
24365
|
-
throw TypeError(".ContentfulLayoutCreated.excludedAccessGroups: array expected");
|
|
24366
|
-
message.excludedAccessGroups = [];
|
|
24367
|
-
for (var i = 0; i < object.excludedAccessGroups.length; ++i) {
|
|
24368
|
-
if (typeof object.excludedAccessGroups[i] !== "object")
|
|
24369
|
-
throw TypeError(".ContentfulLayoutCreated.excludedAccessGroups: object expected");
|
|
24370
|
-
message.excludedAccessGroups[i] = $root.contentful.SlugReference.fromObject(object.excludedAccessGroups[i]);
|
|
24326
|
+
if (object.accessRules) {
|
|
24327
|
+
if (!Array.isArray(object.accessRules))
|
|
24328
|
+
throw TypeError(".ContentfulLayoutCreated.accessRules: array expected");
|
|
24329
|
+
message.accessRules = [];
|
|
24330
|
+
for (var i = 0; i < object.accessRules.length; ++i) {
|
|
24331
|
+
if (typeof object.accessRules[i] !== "object")
|
|
24332
|
+
throw TypeError(".ContentfulLayoutCreated.accessRules: object expected");
|
|
24333
|
+
message.accessRules[i] = $root.contentful.SlugReference.fromObject(object.accessRules[i]);
|
|
24371
24334
|
}
|
|
24372
24335
|
}
|
|
24373
24336
|
if (object.createdAt != null)
|
|
@@ -24398,8 +24361,7 @@ $root.ContentfulLayoutCreated = (function() {
|
|
|
24398
24361
|
if (options.arrays || options.defaults) {
|
|
24399
24362
|
object.languageExclusions = [];
|
|
24400
24363
|
object.moduleDescriptors = [];
|
|
24401
|
-
object.
|
|
24402
|
-
object.excludedAccessGroups = [];
|
|
24364
|
+
object.accessRules = [];
|
|
24403
24365
|
}
|
|
24404
24366
|
if (options.defaults) {
|
|
24405
24367
|
object.name = "";
|
|
@@ -24427,15 +24389,10 @@ $root.ContentfulLayoutCreated = (function() {
|
|
|
24427
24389
|
for (var j = 0; j < message.moduleDescriptors.length; ++j)
|
|
24428
24390
|
object.moduleDescriptors[j] = $root.contentful.SlugReference.toObject(message.moduleDescriptors[j], options);
|
|
24429
24391
|
}
|
|
24430
|
-
if (message.
|
|
24431
|
-
object.
|
|
24432
|
-
for (var j = 0; j < message.
|
|
24433
|
-
object.
|
|
24434
|
-
}
|
|
24435
|
-
if (message.excludedAccessGroups && message.excludedAccessGroups.length) {
|
|
24436
|
-
object.excludedAccessGroups = [];
|
|
24437
|
-
for (var j = 0; j < message.excludedAccessGroups.length; ++j)
|
|
24438
|
-
object.excludedAccessGroups[j] = $root.contentful.SlugReference.toObject(message.excludedAccessGroups[j], options);
|
|
24392
|
+
if (message.accessRules && message.accessRules.length) {
|
|
24393
|
+
object.accessRules = [];
|
|
24394
|
+
for (var j = 0; j < message.accessRules.length; ++j)
|
|
24395
|
+
object.accessRules[j] = $root.contentful.SlugReference.toObject(message.accessRules[j], options);
|
|
24439
24396
|
}
|
|
24440
24397
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
24441
24398
|
if (typeof message.createdAt === "number")
|
|
@@ -24470,8 +24427,7 @@ $root.ContentfulLayoutUpdated = (function() {
|
|
|
24470
24427
|
* @property {string|null} [theme] ContentfulLayoutUpdated theme
|
|
24471
24428
|
* @property {Array.<string>|null} [languageExclusions] ContentfulLayoutUpdated languageExclusions
|
|
24472
24429
|
* @property {Array.<contentful.ISlugReference>|null} [moduleDescriptors] ContentfulLayoutUpdated moduleDescriptors
|
|
24473
|
-
* @property {Array.<contentful.ISlugReference>|null} [
|
|
24474
|
-
* @property {Array.<contentful.ISlugReference>|null} [excludedAccessGroups] ContentfulLayoutUpdated excludedAccessGroups
|
|
24430
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessRules] ContentfulLayoutUpdated accessRules
|
|
24475
24431
|
* @property {number|Long|null} [updatedAt] ContentfulLayoutUpdated updatedAt
|
|
24476
24432
|
*/
|
|
24477
24433
|
|
|
@@ -24486,8 +24442,7 @@ $root.ContentfulLayoutUpdated = (function() {
|
|
|
24486
24442
|
function ContentfulLayoutUpdated(properties) {
|
|
24487
24443
|
this.languageExclusions = [];
|
|
24488
24444
|
this.moduleDescriptors = [];
|
|
24489
|
-
this.
|
|
24490
|
-
this.excludedAccessGroups = [];
|
|
24445
|
+
this.accessRules = [];
|
|
24491
24446
|
if (properties)
|
|
24492
24447
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
24493
24448
|
if (properties[keys[i]] != null)
|
|
@@ -24535,20 +24490,12 @@ $root.ContentfulLayoutUpdated = (function() {
|
|
|
24535
24490
|
ContentfulLayoutUpdated.prototype.moduleDescriptors = $util.emptyArray;
|
|
24536
24491
|
|
|
24537
24492
|
/**
|
|
24538
|
-
* ContentfulLayoutUpdated
|
|
24539
|
-
* @member {Array.<contentful.ISlugReference>}
|
|
24540
|
-
* @memberof ContentfulLayoutUpdated
|
|
24541
|
-
* @instance
|
|
24542
|
-
*/
|
|
24543
|
-
ContentfulLayoutUpdated.prototype.accessGroups = $util.emptyArray;
|
|
24544
|
-
|
|
24545
|
-
/**
|
|
24546
|
-
* ContentfulLayoutUpdated excludedAccessGroups.
|
|
24547
|
-
* @member {Array.<contentful.ISlugReference>} excludedAccessGroups
|
|
24493
|
+
* ContentfulLayoutUpdated accessRules.
|
|
24494
|
+
* @member {Array.<contentful.ISlugReference>} accessRules
|
|
24548
24495
|
* @memberof ContentfulLayoutUpdated
|
|
24549
24496
|
* @instance
|
|
24550
24497
|
*/
|
|
24551
|
-
ContentfulLayoutUpdated.prototype.
|
|
24498
|
+
ContentfulLayoutUpdated.prototype.accessRules = $util.emptyArray;
|
|
24552
24499
|
|
|
24553
24500
|
/**
|
|
24554
24501
|
* ContentfulLayoutUpdated updatedAt.
|
|
@@ -24594,14 +24541,11 @@ $root.ContentfulLayoutUpdated = (function() {
|
|
|
24594
24541
|
if (message.moduleDescriptors != null && message.moduleDescriptors.length)
|
|
24595
24542
|
for (var i = 0; i < message.moduleDescriptors.length; ++i)
|
|
24596
24543
|
$root.contentful.SlugReference.encode(message.moduleDescriptors[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
24597
|
-
if (message.
|
|
24598
|
-
for (var i = 0; i < message.
|
|
24599
|
-
$root.contentful.SlugReference.encode(message.
|
|
24600
|
-
if (message.excludedAccessGroups != null && message.excludedAccessGroups.length)
|
|
24601
|
-
for (var i = 0; i < message.excludedAccessGroups.length; ++i)
|
|
24602
|
-
$root.contentful.SlugReference.encode(message.excludedAccessGroups[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
24544
|
+
if (message.accessRules != null && message.accessRules.length)
|
|
24545
|
+
for (var i = 0; i < message.accessRules.length; ++i)
|
|
24546
|
+
$root.contentful.SlugReference.encode(message.accessRules[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
24603
24547
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
24604
|
-
writer.uint32(/* id
|
|
24548
|
+
writer.uint32(/* id 7, wireType 0 =*/56).uint64(message.updatedAt);
|
|
24605
24549
|
return writer;
|
|
24606
24550
|
};
|
|
24607
24551
|
|
|
@@ -24656,16 +24600,11 @@ $root.ContentfulLayoutUpdated = (function() {
|
|
|
24656
24600
|
message.moduleDescriptors.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
24657
24601
|
break;
|
|
24658
24602
|
case 6:
|
|
24659
|
-
if (!(message.
|
|
24660
|
-
message.
|
|
24661
|
-
message.
|
|
24603
|
+
if (!(message.accessRules && message.accessRules.length))
|
|
24604
|
+
message.accessRules = [];
|
|
24605
|
+
message.accessRules.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
24662
24606
|
break;
|
|
24663
24607
|
case 7:
|
|
24664
|
-
if (!(message.excludedAccessGroups && message.excludedAccessGroups.length))
|
|
24665
|
-
message.excludedAccessGroups = [];
|
|
24666
|
-
message.excludedAccessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
24667
|
-
break;
|
|
24668
|
-
case 8:
|
|
24669
24608
|
message.updatedAt = reader.uint64();
|
|
24670
24609
|
break;
|
|
24671
24610
|
default:
|
|
@@ -24728,22 +24667,13 @@ $root.ContentfulLayoutUpdated = (function() {
|
|
|
24728
24667
|
return "moduleDescriptors." + error;
|
|
24729
24668
|
}
|
|
24730
24669
|
}
|
|
24731
|
-
if (message.
|
|
24732
|
-
if (!Array.isArray(message.
|
|
24733
|
-
return "
|
|
24734
|
-
for (var i = 0; i < message.
|
|
24735
|
-
var error = $root.contentful.SlugReference.verify(message.
|
|
24736
|
-
if (error)
|
|
24737
|
-
return "accessGroups." + error;
|
|
24738
|
-
}
|
|
24739
|
-
}
|
|
24740
|
-
if (message.excludedAccessGroups != null && message.hasOwnProperty("excludedAccessGroups")) {
|
|
24741
|
-
if (!Array.isArray(message.excludedAccessGroups))
|
|
24742
|
-
return "excludedAccessGroups: array expected";
|
|
24743
|
-
for (var i = 0; i < message.excludedAccessGroups.length; ++i) {
|
|
24744
|
-
var error = $root.contentful.SlugReference.verify(message.excludedAccessGroups[i]);
|
|
24670
|
+
if (message.accessRules != null && message.hasOwnProperty("accessRules")) {
|
|
24671
|
+
if (!Array.isArray(message.accessRules))
|
|
24672
|
+
return "accessRules: array expected";
|
|
24673
|
+
for (var i = 0; i < message.accessRules.length; ++i) {
|
|
24674
|
+
var error = $root.contentful.SlugReference.verify(message.accessRules[i]);
|
|
24745
24675
|
if (error)
|
|
24746
|
-
return "
|
|
24676
|
+
return "accessRules." + error;
|
|
24747
24677
|
}
|
|
24748
24678
|
}
|
|
24749
24679
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
@@ -24787,24 +24717,14 @@ $root.ContentfulLayoutUpdated = (function() {
|
|
|
24787
24717
|
message.moduleDescriptors[i] = $root.contentful.SlugReference.fromObject(object.moduleDescriptors[i]);
|
|
24788
24718
|
}
|
|
24789
24719
|
}
|
|
24790
|
-
if (object.
|
|
24791
|
-
if (!Array.isArray(object.
|
|
24792
|
-
throw TypeError(".ContentfulLayoutUpdated.
|
|
24793
|
-
message.
|
|
24794
|
-
for (var i = 0; i < object.
|
|
24795
|
-
if (typeof object.
|
|
24796
|
-
throw TypeError(".ContentfulLayoutUpdated.
|
|
24797
|
-
message.
|
|
24798
|
-
}
|
|
24799
|
-
}
|
|
24800
|
-
if (object.excludedAccessGroups) {
|
|
24801
|
-
if (!Array.isArray(object.excludedAccessGroups))
|
|
24802
|
-
throw TypeError(".ContentfulLayoutUpdated.excludedAccessGroups: array expected");
|
|
24803
|
-
message.excludedAccessGroups = [];
|
|
24804
|
-
for (var i = 0; i < object.excludedAccessGroups.length; ++i) {
|
|
24805
|
-
if (typeof object.excludedAccessGroups[i] !== "object")
|
|
24806
|
-
throw TypeError(".ContentfulLayoutUpdated.excludedAccessGroups: object expected");
|
|
24807
|
-
message.excludedAccessGroups[i] = $root.contentful.SlugReference.fromObject(object.excludedAccessGroups[i]);
|
|
24720
|
+
if (object.accessRules) {
|
|
24721
|
+
if (!Array.isArray(object.accessRules))
|
|
24722
|
+
throw TypeError(".ContentfulLayoutUpdated.accessRules: array expected");
|
|
24723
|
+
message.accessRules = [];
|
|
24724
|
+
for (var i = 0; i < object.accessRules.length; ++i) {
|
|
24725
|
+
if (typeof object.accessRules[i] !== "object")
|
|
24726
|
+
throw TypeError(".ContentfulLayoutUpdated.accessRules: object expected");
|
|
24727
|
+
message.accessRules[i] = $root.contentful.SlugReference.fromObject(object.accessRules[i]);
|
|
24808
24728
|
}
|
|
24809
24729
|
}
|
|
24810
24730
|
if (object.updatedAt != null)
|
|
@@ -24835,8 +24755,7 @@ $root.ContentfulLayoutUpdated = (function() {
|
|
|
24835
24755
|
if (options.arrays || options.defaults) {
|
|
24836
24756
|
object.languageExclusions = [];
|
|
24837
24757
|
object.moduleDescriptors = [];
|
|
24838
|
-
object.
|
|
24839
|
-
object.excludedAccessGroups = [];
|
|
24758
|
+
object.accessRules = [];
|
|
24840
24759
|
}
|
|
24841
24760
|
if (options.defaults) {
|
|
24842
24761
|
object.name = "";
|
|
@@ -24864,15 +24783,10 @@ $root.ContentfulLayoutUpdated = (function() {
|
|
|
24864
24783
|
for (var j = 0; j < message.moduleDescriptors.length; ++j)
|
|
24865
24784
|
object.moduleDescriptors[j] = $root.contentful.SlugReference.toObject(message.moduleDescriptors[j], options);
|
|
24866
24785
|
}
|
|
24867
|
-
if (message.
|
|
24868
|
-
object.
|
|
24869
|
-
for (var j = 0; j < message.
|
|
24870
|
-
object.
|
|
24871
|
-
}
|
|
24872
|
-
if (message.excludedAccessGroups && message.excludedAccessGroups.length) {
|
|
24873
|
-
object.excludedAccessGroups = [];
|
|
24874
|
-
for (var j = 0; j < message.excludedAccessGroups.length; ++j)
|
|
24875
|
-
object.excludedAccessGroups[j] = $root.contentful.SlugReference.toObject(message.excludedAccessGroups[j], options);
|
|
24786
|
+
if (message.accessRules && message.accessRules.length) {
|
|
24787
|
+
object.accessRules = [];
|
|
24788
|
+
for (var j = 0; j < message.accessRules.length; ++j)
|
|
24789
|
+
object.accessRules[j] = $root.contentful.SlugReference.toObject(message.accessRules[j], options);
|
|
24876
24790
|
}
|
|
24877
24791
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
24878
24792
|
if (typeof message.updatedAt === "number")
|
|
@@ -25137,8 +25051,7 @@ $root.ContentfulModuleDescriptorCreated = (function() {
|
|
|
25137
25051
|
* @property {string|null} [analyticsId] ContentfulModuleDescriptorCreated analyticsId
|
|
25138
25052
|
* @property {string|null} [marketingId] ContentfulModuleDescriptorCreated marketingId
|
|
25139
25053
|
* @property {string|null} [developerId] ContentfulModuleDescriptorCreated developerId
|
|
25140
|
-
* @property {Array.<contentful.ISlugReference>|null} [
|
|
25141
|
-
* @property {Array.<contentful.ISlugReference>|null} [excludedAccessGroups] ContentfulModuleDescriptorCreated excludedAccessGroups
|
|
25054
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessRules] ContentfulModuleDescriptorCreated accessRules
|
|
25142
25055
|
* @property {number|Long|null} [createdAt] ContentfulModuleDescriptorCreated createdAt
|
|
25143
25056
|
*/
|
|
25144
25057
|
|
|
@@ -25154,8 +25067,7 @@ $root.ContentfulModuleDescriptorCreated = (function() {
|
|
|
25154
25067
|
this.title = {};
|
|
25155
25068
|
this.languageExclusions = [];
|
|
25156
25069
|
this.tabAsset = {};
|
|
25157
|
-
this.
|
|
25158
|
-
this.excludedAccessGroups = [];
|
|
25070
|
+
this.accessRules = [];
|
|
25159
25071
|
if (properties)
|
|
25160
25072
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
25161
25073
|
if (properties[keys[i]] != null)
|
|
@@ -25251,20 +25163,12 @@ $root.ContentfulModuleDescriptorCreated = (function() {
|
|
|
25251
25163
|
ContentfulModuleDescriptorCreated.prototype.developerId = "";
|
|
25252
25164
|
|
|
25253
25165
|
/**
|
|
25254
|
-
* ContentfulModuleDescriptorCreated
|
|
25255
|
-
* @member {Array.<contentful.ISlugReference>}
|
|
25256
|
-
* @memberof ContentfulModuleDescriptorCreated
|
|
25257
|
-
* @instance
|
|
25258
|
-
*/
|
|
25259
|
-
ContentfulModuleDescriptorCreated.prototype.accessGroups = $util.emptyArray;
|
|
25260
|
-
|
|
25261
|
-
/**
|
|
25262
|
-
* ContentfulModuleDescriptorCreated excludedAccessGroups.
|
|
25263
|
-
* @member {Array.<contentful.ISlugReference>} excludedAccessGroups
|
|
25166
|
+
* ContentfulModuleDescriptorCreated accessRules.
|
|
25167
|
+
* @member {Array.<contentful.ISlugReference>} accessRules
|
|
25264
25168
|
* @memberof ContentfulModuleDescriptorCreated
|
|
25265
25169
|
* @instance
|
|
25266
25170
|
*/
|
|
25267
|
-
ContentfulModuleDescriptorCreated.prototype.
|
|
25171
|
+
ContentfulModuleDescriptorCreated.prototype.accessRules = $util.emptyArray;
|
|
25268
25172
|
|
|
25269
25173
|
/**
|
|
25270
25174
|
* ContentfulModuleDescriptorCreated createdAt.
|
|
@@ -25325,14 +25229,11 @@ $root.ContentfulModuleDescriptorCreated = (function() {
|
|
|
25325
25229
|
writer.uint32(/* id 10, wireType 2 =*/82).string(message.marketingId);
|
|
25326
25230
|
if (message.developerId != null && message.hasOwnProperty("developerId"))
|
|
25327
25231
|
writer.uint32(/* id 11, wireType 2 =*/90).string(message.developerId);
|
|
25328
|
-
if (message.
|
|
25329
|
-
for (var i = 0; i < message.
|
|
25330
|
-
$root.contentful.SlugReference.encode(message.
|
|
25331
|
-
if (message.excludedAccessGroups != null && message.excludedAccessGroups.length)
|
|
25332
|
-
for (var i = 0; i < message.excludedAccessGroups.length; ++i)
|
|
25333
|
-
$root.contentful.SlugReference.encode(message.excludedAccessGroups[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
|
|
25232
|
+
if (message.accessRules != null && message.accessRules.length)
|
|
25233
|
+
for (var i = 0; i < message.accessRules.length; ++i)
|
|
25234
|
+
$root.contentful.SlugReference.encode(message.accessRules[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
|
|
25334
25235
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
25335
|
-
writer.uint32(/* id
|
|
25236
|
+
writer.uint32(/* id 13, wireType 0 =*/104).uint64(message.createdAt);
|
|
25336
25237
|
return writer;
|
|
25337
25238
|
};
|
|
25338
25239
|
|
|
@@ -25413,16 +25314,11 @@ $root.ContentfulModuleDescriptorCreated = (function() {
|
|
|
25413
25314
|
message.developerId = reader.string();
|
|
25414
25315
|
break;
|
|
25415
25316
|
case 12:
|
|
25416
|
-
if (!(message.
|
|
25417
|
-
message.
|
|
25418
|
-
message.
|
|
25317
|
+
if (!(message.accessRules && message.accessRules.length))
|
|
25318
|
+
message.accessRules = [];
|
|
25319
|
+
message.accessRules.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
25419
25320
|
break;
|
|
25420
25321
|
case 13:
|
|
25421
|
-
if (!(message.excludedAccessGroups && message.excludedAccessGroups.length))
|
|
25422
|
-
message.excludedAccessGroups = [];
|
|
25423
|
-
message.excludedAccessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
25424
|
-
break;
|
|
25425
|
-
case 14:
|
|
25426
25322
|
message.createdAt = reader.uint64();
|
|
25427
25323
|
break;
|
|
25428
25324
|
default:
|
|
@@ -25509,22 +25405,13 @@ $root.ContentfulModuleDescriptorCreated = (function() {
|
|
|
25509
25405
|
if (message.developerId != null && message.hasOwnProperty("developerId"))
|
|
25510
25406
|
if (!$util.isString(message.developerId))
|
|
25511
25407
|
return "developerId: string expected";
|
|
25512
|
-
if (message.
|
|
25513
|
-
if (!Array.isArray(message.
|
|
25514
|
-
return "
|
|
25515
|
-
for (var i = 0; i < message.
|
|
25516
|
-
var error = $root.contentful.SlugReference.verify(message.
|
|
25408
|
+
if (message.accessRules != null && message.hasOwnProperty("accessRules")) {
|
|
25409
|
+
if (!Array.isArray(message.accessRules))
|
|
25410
|
+
return "accessRules: array expected";
|
|
25411
|
+
for (var i = 0; i < message.accessRules.length; ++i) {
|
|
25412
|
+
var error = $root.contentful.SlugReference.verify(message.accessRules[i]);
|
|
25517
25413
|
if (error)
|
|
25518
|
-
return "
|
|
25519
|
-
}
|
|
25520
|
-
}
|
|
25521
|
-
if (message.excludedAccessGroups != null && message.hasOwnProperty("excludedAccessGroups")) {
|
|
25522
|
-
if (!Array.isArray(message.excludedAccessGroups))
|
|
25523
|
-
return "excludedAccessGroups: array expected";
|
|
25524
|
-
for (var i = 0; i < message.excludedAccessGroups.length; ++i) {
|
|
25525
|
-
var error = $root.contentful.SlugReference.verify(message.excludedAccessGroups[i]);
|
|
25526
|
-
if (error)
|
|
25527
|
-
return "excludedAccessGroups." + error;
|
|
25414
|
+
return "accessRules." + error;
|
|
25528
25415
|
}
|
|
25529
25416
|
}
|
|
25530
25417
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
@@ -25585,24 +25472,14 @@ $root.ContentfulModuleDescriptorCreated = (function() {
|
|
|
25585
25472
|
message.marketingId = String(object.marketingId);
|
|
25586
25473
|
if (object.developerId != null)
|
|
25587
25474
|
message.developerId = String(object.developerId);
|
|
25588
|
-
if (object.
|
|
25589
|
-
if (!Array.isArray(object.
|
|
25590
|
-
throw TypeError(".ContentfulModuleDescriptorCreated.
|
|
25591
|
-
message.
|
|
25592
|
-
for (var i = 0; i < object.
|
|
25593
|
-
if (typeof object.
|
|
25594
|
-
throw TypeError(".ContentfulModuleDescriptorCreated.
|
|
25595
|
-
message.
|
|
25596
|
-
}
|
|
25597
|
-
}
|
|
25598
|
-
if (object.excludedAccessGroups) {
|
|
25599
|
-
if (!Array.isArray(object.excludedAccessGroups))
|
|
25600
|
-
throw TypeError(".ContentfulModuleDescriptorCreated.excludedAccessGroups: array expected");
|
|
25601
|
-
message.excludedAccessGroups = [];
|
|
25602
|
-
for (var i = 0; i < object.excludedAccessGroups.length; ++i) {
|
|
25603
|
-
if (typeof object.excludedAccessGroups[i] !== "object")
|
|
25604
|
-
throw TypeError(".ContentfulModuleDescriptorCreated.excludedAccessGroups: object expected");
|
|
25605
|
-
message.excludedAccessGroups[i] = $root.contentful.SlugReference.fromObject(object.excludedAccessGroups[i]);
|
|
25475
|
+
if (object.accessRules) {
|
|
25476
|
+
if (!Array.isArray(object.accessRules))
|
|
25477
|
+
throw TypeError(".ContentfulModuleDescriptorCreated.accessRules: array expected");
|
|
25478
|
+
message.accessRules = [];
|
|
25479
|
+
for (var i = 0; i < object.accessRules.length; ++i) {
|
|
25480
|
+
if (typeof object.accessRules[i] !== "object")
|
|
25481
|
+
throw TypeError(".ContentfulModuleDescriptorCreated.accessRules: object expected");
|
|
25482
|
+
message.accessRules[i] = $root.contentful.SlugReference.fromObject(object.accessRules[i]);
|
|
25606
25483
|
}
|
|
25607
25484
|
}
|
|
25608
25485
|
if (object.createdAt != null)
|
|
@@ -25632,8 +25509,7 @@ $root.ContentfulModuleDescriptorCreated = (function() {
|
|
|
25632
25509
|
var object = {};
|
|
25633
25510
|
if (options.arrays || options.defaults) {
|
|
25634
25511
|
object.languageExclusions = [];
|
|
25635
|
-
object.
|
|
25636
|
-
object.excludedAccessGroups = [];
|
|
25512
|
+
object.accessRules = [];
|
|
25637
25513
|
}
|
|
25638
25514
|
if (options.objects || options.defaults) {
|
|
25639
25515
|
object.title = {};
|
|
@@ -25686,15 +25562,10 @@ $root.ContentfulModuleDescriptorCreated = (function() {
|
|
|
25686
25562
|
object.marketingId = message.marketingId;
|
|
25687
25563
|
if (message.developerId != null && message.hasOwnProperty("developerId"))
|
|
25688
25564
|
object.developerId = message.developerId;
|
|
25689
|
-
if (message.
|
|
25690
|
-
object.
|
|
25691
|
-
for (var j = 0; j < message.
|
|
25692
|
-
object.
|
|
25693
|
-
}
|
|
25694
|
-
if (message.excludedAccessGroups && message.excludedAccessGroups.length) {
|
|
25695
|
-
object.excludedAccessGroups = [];
|
|
25696
|
-
for (var j = 0; j < message.excludedAccessGroups.length; ++j)
|
|
25697
|
-
object.excludedAccessGroups[j] = $root.contentful.SlugReference.toObject(message.excludedAccessGroups[j], options);
|
|
25565
|
+
if (message.accessRules && message.accessRules.length) {
|
|
25566
|
+
object.accessRules = [];
|
|
25567
|
+
for (var j = 0; j < message.accessRules.length; ++j)
|
|
25568
|
+
object.accessRules[j] = $root.contentful.SlugReference.toObject(message.accessRules[j], options);
|
|
25698
25569
|
}
|
|
25699
25570
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
25700
25571
|
if (typeof message.createdAt === "number")
|
|
@@ -25735,8 +25606,7 @@ $root.ContentfulModuleDescriptorUpdated = (function() {
|
|
|
25735
25606
|
* @property {string|null} [analyticsId] ContentfulModuleDescriptorUpdated analyticsId
|
|
25736
25607
|
* @property {string|null} [marketingId] ContentfulModuleDescriptorUpdated marketingId
|
|
25737
25608
|
* @property {string|null} [developerId] ContentfulModuleDescriptorUpdated developerId
|
|
25738
|
-
* @property {Array.<contentful.ISlugReference>|null} [
|
|
25739
|
-
* @property {Array.<contentful.ISlugReference>|null} [excludedAccessGroups] ContentfulModuleDescriptorUpdated excludedAccessGroups
|
|
25609
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessRules] ContentfulModuleDescriptorUpdated accessRules
|
|
25740
25610
|
* @property {number|Long|null} [updatedAt] ContentfulModuleDescriptorUpdated updatedAt
|
|
25741
25611
|
*/
|
|
25742
25612
|
|
|
@@ -25752,8 +25622,7 @@ $root.ContentfulModuleDescriptorUpdated = (function() {
|
|
|
25752
25622
|
this.title = {};
|
|
25753
25623
|
this.languageExclusions = [];
|
|
25754
25624
|
this.tabAsset = {};
|
|
25755
|
-
this.
|
|
25756
|
-
this.excludedAccessGroups = [];
|
|
25625
|
+
this.accessRules = [];
|
|
25757
25626
|
if (properties)
|
|
25758
25627
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
25759
25628
|
if (properties[keys[i]] != null)
|
|
@@ -25849,20 +25718,12 @@ $root.ContentfulModuleDescriptorUpdated = (function() {
|
|
|
25849
25718
|
ContentfulModuleDescriptorUpdated.prototype.developerId = "";
|
|
25850
25719
|
|
|
25851
25720
|
/**
|
|
25852
|
-
* ContentfulModuleDescriptorUpdated
|
|
25853
|
-
* @member {Array.<contentful.ISlugReference>}
|
|
25854
|
-
* @memberof ContentfulModuleDescriptorUpdated
|
|
25855
|
-
* @instance
|
|
25856
|
-
*/
|
|
25857
|
-
ContentfulModuleDescriptorUpdated.prototype.accessGroups = $util.emptyArray;
|
|
25858
|
-
|
|
25859
|
-
/**
|
|
25860
|
-
* ContentfulModuleDescriptorUpdated excludedAccessGroups.
|
|
25861
|
-
* @member {Array.<contentful.ISlugReference>} excludedAccessGroups
|
|
25721
|
+
* ContentfulModuleDescriptorUpdated accessRules.
|
|
25722
|
+
* @member {Array.<contentful.ISlugReference>} accessRules
|
|
25862
25723
|
* @memberof ContentfulModuleDescriptorUpdated
|
|
25863
25724
|
* @instance
|
|
25864
25725
|
*/
|
|
25865
|
-
ContentfulModuleDescriptorUpdated.prototype.
|
|
25726
|
+
ContentfulModuleDescriptorUpdated.prototype.accessRules = $util.emptyArray;
|
|
25866
25727
|
|
|
25867
25728
|
/**
|
|
25868
25729
|
* ContentfulModuleDescriptorUpdated updatedAt.
|
|
@@ -25923,14 +25784,11 @@ $root.ContentfulModuleDescriptorUpdated = (function() {
|
|
|
25923
25784
|
writer.uint32(/* id 10, wireType 2 =*/82).string(message.marketingId);
|
|
25924
25785
|
if (message.developerId != null && message.hasOwnProperty("developerId"))
|
|
25925
25786
|
writer.uint32(/* id 11, wireType 2 =*/90).string(message.developerId);
|
|
25926
|
-
if (message.
|
|
25927
|
-
for (var i = 0; i < message.
|
|
25928
|
-
$root.contentful.SlugReference.encode(message.
|
|
25929
|
-
if (message.excludedAccessGroups != null && message.excludedAccessGroups.length)
|
|
25930
|
-
for (var i = 0; i < message.excludedAccessGroups.length; ++i)
|
|
25931
|
-
$root.contentful.SlugReference.encode(message.excludedAccessGroups[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
|
|
25787
|
+
if (message.accessRules != null && message.accessRules.length)
|
|
25788
|
+
for (var i = 0; i < message.accessRules.length; ++i)
|
|
25789
|
+
$root.contentful.SlugReference.encode(message.accessRules[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
|
|
25932
25790
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
25933
|
-
writer.uint32(/* id
|
|
25791
|
+
writer.uint32(/* id 13, wireType 0 =*/104).uint64(message.updatedAt);
|
|
25934
25792
|
return writer;
|
|
25935
25793
|
};
|
|
25936
25794
|
|
|
@@ -26011,16 +25869,11 @@ $root.ContentfulModuleDescriptorUpdated = (function() {
|
|
|
26011
25869
|
message.developerId = reader.string();
|
|
26012
25870
|
break;
|
|
26013
25871
|
case 12:
|
|
26014
|
-
if (!(message.
|
|
26015
|
-
message.
|
|
26016
|
-
message.
|
|
25872
|
+
if (!(message.accessRules && message.accessRules.length))
|
|
25873
|
+
message.accessRules = [];
|
|
25874
|
+
message.accessRules.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
26017
25875
|
break;
|
|
26018
25876
|
case 13:
|
|
26019
|
-
if (!(message.excludedAccessGroups && message.excludedAccessGroups.length))
|
|
26020
|
-
message.excludedAccessGroups = [];
|
|
26021
|
-
message.excludedAccessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
26022
|
-
break;
|
|
26023
|
-
case 14:
|
|
26024
25877
|
message.updatedAt = reader.uint64();
|
|
26025
25878
|
break;
|
|
26026
25879
|
default:
|
|
@@ -26107,22 +25960,13 @@ $root.ContentfulModuleDescriptorUpdated = (function() {
|
|
|
26107
25960
|
if (message.developerId != null && message.hasOwnProperty("developerId"))
|
|
26108
25961
|
if (!$util.isString(message.developerId))
|
|
26109
25962
|
return "developerId: string expected";
|
|
26110
|
-
if (message.
|
|
26111
|
-
if (!Array.isArray(message.
|
|
26112
|
-
return "
|
|
26113
|
-
for (var i = 0; i < message.
|
|
26114
|
-
var error = $root.contentful.SlugReference.verify(message.
|
|
26115
|
-
if (error)
|
|
26116
|
-
return "accessGroups." + error;
|
|
26117
|
-
}
|
|
26118
|
-
}
|
|
26119
|
-
if (message.excludedAccessGroups != null && message.hasOwnProperty("excludedAccessGroups")) {
|
|
26120
|
-
if (!Array.isArray(message.excludedAccessGroups))
|
|
26121
|
-
return "excludedAccessGroups: array expected";
|
|
26122
|
-
for (var i = 0; i < message.excludedAccessGroups.length; ++i) {
|
|
26123
|
-
var error = $root.contentful.SlugReference.verify(message.excludedAccessGroups[i]);
|
|
25963
|
+
if (message.accessRules != null && message.hasOwnProperty("accessRules")) {
|
|
25964
|
+
if (!Array.isArray(message.accessRules))
|
|
25965
|
+
return "accessRules: array expected";
|
|
25966
|
+
for (var i = 0; i < message.accessRules.length; ++i) {
|
|
25967
|
+
var error = $root.contentful.SlugReference.verify(message.accessRules[i]);
|
|
26124
25968
|
if (error)
|
|
26125
|
-
return "
|
|
25969
|
+
return "accessRules." + error;
|
|
26126
25970
|
}
|
|
26127
25971
|
}
|
|
26128
25972
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
@@ -26183,24 +26027,14 @@ $root.ContentfulModuleDescriptorUpdated = (function() {
|
|
|
26183
26027
|
message.marketingId = String(object.marketingId);
|
|
26184
26028
|
if (object.developerId != null)
|
|
26185
26029
|
message.developerId = String(object.developerId);
|
|
26186
|
-
if (object.
|
|
26187
|
-
if (!Array.isArray(object.
|
|
26188
|
-
throw TypeError(".ContentfulModuleDescriptorUpdated.
|
|
26189
|
-
message.
|
|
26190
|
-
for (var i = 0; i < object.
|
|
26191
|
-
if (typeof object.
|
|
26192
|
-
throw TypeError(".ContentfulModuleDescriptorUpdated.
|
|
26193
|
-
message.
|
|
26194
|
-
}
|
|
26195
|
-
}
|
|
26196
|
-
if (object.excludedAccessGroups) {
|
|
26197
|
-
if (!Array.isArray(object.excludedAccessGroups))
|
|
26198
|
-
throw TypeError(".ContentfulModuleDescriptorUpdated.excludedAccessGroups: array expected");
|
|
26199
|
-
message.excludedAccessGroups = [];
|
|
26200
|
-
for (var i = 0; i < object.excludedAccessGroups.length; ++i) {
|
|
26201
|
-
if (typeof object.excludedAccessGroups[i] !== "object")
|
|
26202
|
-
throw TypeError(".ContentfulModuleDescriptorUpdated.excludedAccessGroups: object expected");
|
|
26203
|
-
message.excludedAccessGroups[i] = $root.contentful.SlugReference.fromObject(object.excludedAccessGroups[i]);
|
|
26030
|
+
if (object.accessRules) {
|
|
26031
|
+
if (!Array.isArray(object.accessRules))
|
|
26032
|
+
throw TypeError(".ContentfulModuleDescriptorUpdated.accessRules: array expected");
|
|
26033
|
+
message.accessRules = [];
|
|
26034
|
+
for (var i = 0; i < object.accessRules.length; ++i) {
|
|
26035
|
+
if (typeof object.accessRules[i] !== "object")
|
|
26036
|
+
throw TypeError(".ContentfulModuleDescriptorUpdated.accessRules: object expected");
|
|
26037
|
+
message.accessRules[i] = $root.contentful.SlugReference.fromObject(object.accessRules[i]);
|
|
26204
26038
|
}
|
|
26205
26039
|
}
|
|
26206
26040
|
if (object.updatedAt != null)
|
|
@@ -26230,8 +26064,7 @@ $root.ContentfulModuleDescriptorUpdated = (function() {
|
|
|
26230
26064
|
var object = {};
|
|
26231
26065
|
if (options.arrays || options.defaults) {
|
|
26232
26066
|
object.languageExclusions = [];
|
|
26233
|
-
object.
|
|
26234
|
-
object.excludedAccessGroups = [];
|
|
26067
|
+
object.accessRules = [];
|
|
26235
26068
|
}
|
|
26236
26069
|
if (options.objects || options.defaults) {
|
|
26237
26070
|
object.title = {};
|
|
@@ -26284,15 +26117,10 @@ $root.ContentfulModuleDescriptorUpdated = (function() {
|
|
|
26284
26117
|
object.marketingId = message.marketingId;
|
|
26285
26118
|
if (message.developerId != null && message.hasOwnProperty("developerId"))
|
|
26286
26119
|
object.developerId = message.developerId;
|
|
26287
|
-
if (message.
|
|
26288
|
-
object.
|
|
26289
|
-
for (var j = 0; j < message.
|
|
26290
|
-
object.
|
|
26291
|
-
}
|
|
26292
|
-
if (message.excludedAccessGroups && message.excludedAccessGroups.length) {
|
|
26293
|
-
object.excludedAccessGroups = [];
|
|
26294
|
-
for (var j = 0; j < message.excludedAccessGroups.length; ++j)
|
|
26295
|
-
object.excludedAccessGroups[j] = $root.contentful.SlugReference.toObject(message.excludedAccessGroups[j], options);
|
|
26120
|
+
if (message.accessRules && message.accessRules.length) {
|
|
26121
|
+
object.accessRules = [];
|
|
26122
|
+
for (var j = 0; j < message.accessRules.length; ++j)
|
|
26123
|
+
object.accessRules[j] = $root.contentful.SlugReference.toObject(message.accessRules[j], options);
|
|
26296
26124
|
}
|
|
26297
26125
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
26298
26126
|
if (typeof message.updatedAt === "number")
|
|
@@ -27396,7 +27224,7 @@ $root.ContentfulAccessRuleCreated = (function() {
|
|
|
27396
27224
|
* @interface IContentfulAccessRuleCreated
|
|
27397
27225
|
* @property {string|null} [name] ContentfulAccessRuleCreated name
|
|
27398
27226
|
* @property {string|null} [slug] ContentfulAccessRuleCreated slug
|
|
27399
|
-
* @property {
|
|
27227
|
+
* @property {contentful.ISlugReference|null} [accessGroup] ContentfulAccessRuleCreated accessGroup
|
|
27400
27228
|
* @property {boolean|null} [isHidden] ContentfulAccessRuleCreated isHidden
|
|
27401
27229
|
* @property {number|Long|null} [createdAt] ContentfulAccessRuleCreated createdAt
|
|
27402
27230
|
*/
|
|
@@ -27410,7 +27238,6 @@ $root.ContentfulAccessRuleCreated = (function() {
|
|
|
27410
27238
|
* @param {IContentfulAccessRuleCreated=} [properties] Properties to set
|
|
27411
27239
|
*/
|
|
27412
27240
|
function ContentfulAccessRuleCreated(properties) {
|
|
27413
|
-
this.accessGroup = [];
|
|
27414
27241
|
if (properties)
|
|
27415
27242
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
27416
27243
|
if (properties[keys[i]] != null)
|
|
@@ -27435,11 +27262,11 @@ $root.ContentfulAccessRuleCreated = (function() {
|
|
|
27435
27262
|
|
|
27436
27263
|
/**
|
|
27437
27264
|
* ContentfulAccessRuleCreated accessGroup.
|
|
27438
|
-
* @member {
|
|
27265
|
+
* @member {contentful.ISlugReference|null|undefined} accessGroup
|
|
27439
27266
|
* @memberof ContentfulAccessRuleCreated
|
|
27440
27267
|
* @instance
|
|
27441
27268
|
*/
|
|
27442
|
-
ContentfulAccessRuleCreated.prototype.accessGroup =
|
|
27269
|
+
ContentfulAccessRuleCreated.prototype.accessGroup = null;
|
|
27443
27270
|
|
|
27444
27271
|
/**
|
|
27445
27272
|
* ContentfulAccessRuleCreated isHidden.
|
|
@@ -27485,9 +27312,8 @@ $root.ContentfulAccessRuleCreated = (function() {
|
|
|
27485
27312
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
27486
27313
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
27487
27314
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
|
|
27488
|
-
if (message.accessGroup != null && message.accessGroup
|
|
27489
|
-
|
|
27490
|
-
$root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
27315
|
+
if (message.accessGroup != null && message.hasOwnProperty("accessGroup"))
|
|
27316
|
+
$root.contentful.SlugReference.encode(message.accessGroup, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
27491
27317
|
if (message.isHidden != null && message.hasOwnProperty("isHidden"))
|
|
27492
27318
|
writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isHidden);
|
|
27493
27319
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
@@ -27533,9 +27359,7 @@ $root.ContentfulAccessRuleCreated = (function() {
|
|
|
27533
27359
|
message.slug = reader.string();
|
|
27534
27360
|
break;
|
|
27535
27361
|
case 3:
|
|
27536
|
-
|
|
27537
|
-
message.accessGroup = [];
|
|
27538
|
-
message.accessGroup.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
27362
|
+
message.accessGroup = $root.contentful.SlugReference.decode(reader, reader.uint32());
|
|
27539
27363
|
break;
|
|
27540
27364
|
case 4:
|
|
27541
27365
|
message.isHidden = reader.bool();
|
|
@@ -27585,13 +27409,9 @@ $root.ContentfulAccessRuleCreated = (function() {
|
|
|
27585
27409
|
if (!$util.isString(message.slug))
|
|
27586
27410
|
return "slug: string expected";
|
|
27587
27411
|
if (message.accessGroup != null && message.hasOwnProperty("accessGroup")) {
|
|
27588
|
-
|
|
27589
|
-
|
|
27590
|
-
|
|
27591
|
-
var error = $root.contentful.SlugReference.verify(message.accessGroup[i]);
|
|
27592
|
-
if (error)
|
|
27593
|
-
return "accessGroup." + error;
|
|
27594
|
-
}
|
|
27412
|
+
var error = $root.contentful.SlugReference.verify(message.accessGroup);
|
|
27413
|
+
if (error)
|
|
27414
|
+
return "accessGroup." + error;
|
|
27595
27415
|
}
|
|
27596
27416
|
if (message.isHidden != null && message.hasOwnProperty("isHidden"))
|
|
27597
27417
|
if (typeof message.isHidden !== "boolean")
|
|
@@ -27618,15 +27438,10 @@ $root.ContentfulAccessRuleCreated = (function() {
|
|
|
27618
27438
|
message.name = String(object.name);
|
|
27619
27439
|
if (object.slug != null)
|
|
27620
27440
|
message.slug = String(object.slug);
|
|
27621
|
-
if (object.accessGroup) {
|
|
27622
|
-
if (
|
|
27623
|
-
throw TypeError(".ContentfulAccessRuleCreated.accessGroup:
|
|
27624
|
-
message.accessGroup =
|
|
27625
|
-
for (var i = 0; i < object.accessGroup.length; ++i) {
|
|
27626
|
-
if (typeof object.accessGroup[i] !== "object")
|
|
27627
|
-
throw TypeError(".ContentfulAccessRuleCreated.accessGroup: object expected");
|
|
27628
|
-
message.accessGroup[i] = $root.contentful.SlugReference.fromObject(object.accessGroup[i]);
|
|
27629
|
-
}
|
|
27441
|
+
if (object.accessGroup != null) {
|
|
27442
|
+
if (typeof object.accessGroup !== "object")
|
|
27443
|
+
throw TypeError(".ContentfulAccessRuleCreated.accessGroup: object expected");
|
|
27444
|
+
message.accessGroup = $root.contentful.SlugReference.fromObject(object.accessGroup);
|
|
27630
27445
|
}
|
|
27631
27446
|
if (object.isHidden != null)
|
|
27632
27447
|
message.isHidden = Boolean(object.isHidden);
|
|
@@ -27655,11 +27470,10 @@ $root.ContentfulAccessRuleCreated = (function() {
|
|
|
27655
27470
|
if (!options)
|
|
27656
27471
|
options = {};
|
|
27657
27472
|
var object = {};
|
|
27658
|
-
if (options.arrays || options.defaults)
|
|
27659
|
-
object.accessGroup = [];
|
|
27660
27473
|
if (options.defaults) {
|
|
27661
27474
|
object.name = "";
|
|
27662
27475
|
object.slug = "";
|
|
27476
|
+
object.accessGroup = null;
|
|
27663
27477
|
object.isHidden = false;
|
|
27664
27478
|
if ($util.Long) {
|
|
27665
27479
|
var long = new $util.Long(0, 0, true);
|
|
@@ -27671,11 +27485,8 @@ $root.ContentfulAccessRuleCreated = (function() {
|
|
|
27671
27485
|
object.name = message.name;
|
|
27672
27486
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
27673
27487
|
object.slug = message.slug;
|
|
27674
|
-
if (message.accessGroup && message.accessGroup
|
|
27675
|
-
object.accessGroup =
|
|
27676
|
-
for (var j = 0; j < message.accessGroup.length; ++j)
|
|
27677
|
-
object.accessGroup[j] = $root.contentful.SlugReference.toObject(message.accessGroup[j], options);
|
|
27678
|
-
}
|
|
27488
|
+
if (message.accessGroup != null && message.hasOwnProperty("accessGroup"))
|
|
27489
|
+
object.accessGroup = $root.contentful.SlugReference.toObject(message.accessGroup, options);
|
|
27679
27490
|
if (message.isHidden != null && message.hasOwnProperty("isHidden"))
|
|
27680
27491
|
object.isHidden = message.isHidden;
|
|
27681
27492
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
@@ -27708,7 +27519,7 @@ $root.ContentfulAccessRuleUpdated = (function() {
|
|
|
27708
27519
|
* @interface IContentfulAccessRuleUpdated
|
|
27709
27520
|
* @property {string|null} [name] ContentfulAccessRuleUpdated name
|
|
27710
27521
|
* @property {string|null} [slug] ContentfulAccessRuleUpdated slug
|
|
27711
|
-
* @property {
|
|
27522
|
+
* @property {contentful.ISlugReference|null} [accessGroup] ContentfulAccessRuleUpdated accessGroup
|
|
27712
27523
|
* @property {boolean|null} [isHidden] ContentfulAccessRuleUpdated isHidden
|
|
27713
27524
|
* @property {number|Long|null} [updatedAt] ContentfulAccessRuleUpdated updatedAt
|
|
27714
27525
|
*/
|
|
@@ -27722,7 +27533,6 @@ $root.ContentfulAccessRuleUpdated = (function() {
|
|
|
27722
27533
|
* @param {IContentfulAccessRuleUpdated=} [properties] Properties to set
|
|
27723
27534
|
*/
|
|
27724
27535
|
function ContentfulAccessRuleUpdated(properties) {
|
|
27725
|
-
this.accessGroup = [];
|
|
27726
27536
|
if (properties)
|
|
27727
27537
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
27728
27538
|
if (properties[keys[i]] != null)
|
|
@@ -27747,11 +27557,11 @@ $root.ContentfulAccessRuleUpdated = (function() {
|
|
|
27747
27557
|
|
|
27748
27558
|
/**
|
|
27749
27559
|
* ContentfulAccessRuleUpdated accessGroup.
|
|
27750
|
-
* @member {
|
|
27560
|
+
* @member {contentful.ISlugReference|null|undefined} accessGroup
|
|
27751
27561
|
* @memberof ContentfulAccessRuleUpdated
|
|
27752
27562
|
* @instance
|
|
27753
27563
|
*/
|
|
27754
|
-
ContentfulAccessRuleUpdated.prototype.accessGroup =
|
|
27564
|
+
ContentfulAccessRuleUpdated.prototype.accessGroup = null;
|
|
27755
27565
|
|
|
27756
27566
|
/**
|
|
27757
27567
|
* ContentfulAccessRuleUpdated isHidden.
|
|
@@ -27797,9 +27607,8 @@ $root.ContentfulAccessRuleUpdated = (function() {
|
|
|
27797
27607
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
27798
27608
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
27799
27609
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
|
|
27800
|
-
if (message.accessGroup != null && message.accessGroup
|
|
27801
|
-
|
|
27802
|
-
$root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
27610
|
+
if (message.accessGroup != null && message.hasOwnProperty("accessGroup"))
|
|
27611
|
+
$root.contentful.SlugReference.encode(message.accessGroup, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
27803
27612
|
if (message.isHidden != null && message.hasOwnProperty("isHidden"))
|
|
27804
27613
|
writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isHidden);
|
|
27805
27614
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
@@ -27845,9 +27654,7 @@ $root.ContentfulAccessRuleUpdated = (function() {
|
|
|
27845
27654
|
message.slug = reader.string();
|
|
27846
27655
|
break;
|
|
27847
27656
|
case 3:
|
|
27848
|
-
|
|
27849
|
-
message.accessGroup = [];
|
|
27850
|
-
message.accessGroup.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
27657
|
+
message.accessGroup = $root.contentful.SlugReference.decode(reader, reader.uint32());
|
|
27851
27658
|
break;
|
|
27852
27659
|
case 4:
|
|
27853
27660
|
message.isHidden = reader.bool();
|
|
@@ -27897,13 +27704,9 @@ $root.ContentfulAccessRuleUpdated = (function() {
|
|
|
27897
27704
|
if (!$util.isString(message.slug))
|
|
27898
27705
|
return "slug: string expected";
|
|
27899
27706
|
if (message.accessGroup != null && message.hasOwnProperty("accessGroup")) {
|
|
27900
|
-
|
|
27901
|
-
|
|
27902
|
-
|
|
27903
|
-
var error = $root.contentful.SlugReference.verify(message.accessGroup[i]);
|
|
27904
|
-
if (error)
|
|
27905
|
-
return "accessGroup." + error;
|
|
27906
|
-
}
|
|
27707
|
+
var error = $root.contentful.SlugReference.verify(message.accessGroup);
|
|
27708
|
+
if (error)
|
|
27709
|
+
return "accessGroup." + error;
|
|
27907
27710
|
}
|
|
27908
27711
|
if (message.isHidden != null && message.hasOwnProperty("isHidden"))
|
|
27909
27712
|
if (typeof message.isHidden !== "boolean")
|
|
@@ -27930,15 +27733,10 @@ $root.ContentfulAccessRuleUpdated = (function() {
|
|
|
27930
27733
|
message.name = String(object.name);
|
|
27931
27734
|
if (object.slug != null)
|
|
27932
27735
|
message.slug = String(object.slug);
|
|
27933
|
-
if (object.accessGroup) {
|
|
27934
|
-
if (
|
|
27935
|
-
throw TypeError(".ContentfulAccessRuleUpdated.accessGroup:
|
|
27936
|
-
message.accessGroup =
|
|
27937
|
-
for (var i = 0; i < object.accessGroup.length; ++i) {
|
|
27938
|
-
if (typeof object.accessGroup[i] !== "object")
|
|
27939
|
-
throw TypeError(".ContentfulAccessRuleUpdated.accessGroup: object expected");
|
|
27940
|
-
message.accessGroup[i] = $root.contentful.SlugReference.fromObject(object.accessGroup[i]);
|
|
27941
|
-
}
|
|
27736
|
+
if (object.accessGroup != null) {
|
|
27737
|
+
if (typeof object.accessGroup !== "object")
|
|
27738
|
+
throw TypeError(".ContentfulAccessRuleUpdated.accessGroup: object expected");
|
|
27739
|
+
message.accessGroup = $root.contentful.SlugReference.fromObject(object.accessGroup);
|
|
27942
27740
|
}
|
|
27943
27741
|
if (object.isHidden != null)
|
|
27944
27742
|
message.isHidden = Boolean(object.isHidden);
|
|
@@ -27967,11 +27765,10 @@ $root.ContentfulAccessRuleUpdated = (function() {
|
|
|
27967
27765
|
if (!options)
|
|
27968
27766
|
options = {};
|
|
27969
27767
|
var object = {};
|
|
27970
|
-
if (options.arrays || options.defaults)
|
|
27971
|
-
object.accessGroup = [];
|
|
27972
27768
|
if (options.defaults) {
|
|
27973
27769
|
object.name = "";
|
|
27974
27770
|
object.slug = "";
|
|
27771
|
+
object.accessGroup = null;
|
|
27975
27772
|
object.isHidden = false;
|
|
27976
27773
|
if ($util.Long) {
|
|
27977
27774
|
var long = new $util.Long(0, 0, true);
|
|
@@ -27983,11 +27780,8 @@ $root.ContentfulAccessRuleUpdated = (function() {
|
|
|
27983
27780
|
object.name = message.name;
|
|
27984
27781
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
27985
27782
|
object.slug = message.slug;
|
|
27986
|
-
if (message.accessGroup && message.accessGroup
|
|
27987
|
-
object.accessGroup =
|
|
27988
|
-
for (var j = 0; j < message.accessGroup.length; ++j)
|
|
27989
|
-
object.accessGroup[j] = $root.contentful.SlugReference.toObject(message.accessGroup[j], options);
|
|
27990
|
-
}
|
|
27783
|
+
if (message.accessGroup != null && message.hasOwnProperty("accessGroup"))
|
|
27784
|
+
object.accessGroup = $root.contentful.SlugReference.toObject(message.accessGroup, options);
|
|
27991
27785
|
if (message.isHidden != null && message.hasOwnProperty("isHidden"))
|
|
27992
27786
|
object.isHidden = message.isHidden;
|
|
27993
27787
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
@@ -48712,8 +48506,7 @@ $root.LayoutCreated = (function() {
|
|
|
48712
48506
|
* @property {string|null} [slug] LayoutCreated slug
|
|
48713
48507
|
* @property {string|null} [entityId] LayoutCreated entityId
|
|
48714
48508
|
* @property {string|null} [entityType] LayoutCreated entityType
|
|
48715
|
-
* @property {Array.<contentful.ISlugReference>|null} [
|
|
48716
|
-
* @property {Array.<contentful.ISlugReference>|null} [excludedAccessGroups] LayoutCreated excludedAccessGroups
|
|
48509
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessRules] LayoutCreated accessRules
|
|
48717
48510
|
* @property {number|Long|null} [createdAt] LayoutCreated createdAt
|
|
48718
48511
|
*/
|
|
48719
48512
|
|
|
@@ -48726,8 +48519,7 @@ $root.LayoutCreated = (function() {
|
|
|
48726
48519
|
* @param {ILayoutCreated=} [properties] Properties to set
|
|
48727
48520
|
*/
|
|
48728
48521
|
function LayoutCreated(properties) {
|
|
48729
|
-
this.
|
|
48730
|
-
this.excludedAccessGroups = [];
|
|
48522
|
+
this.accessRules = [];
|
|
48731
48523
|
if (properties)
|
|
48732
48524
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
48733
48525
|
if (properties[keys[i]] != null)
|
|
@@ -48759,20 +48551,12 @@ $root.LayoutCreated = (function() {
|
|
|
48759
48551
|
LayoutCreated.prototype.entityType = "";
|
|
48760
48552
|
|
|
48761
48553
|
/**
|
|
48762
|
-
* LayoutCreated
|
|
48763
|
-
* @member {Array.<contentful.ISlugReference>}
|
|
48554
|
+
* LayoutCreated accessRules.
|
|
48555
|
+
* @member {Array.<contentful.ISlugReference>} accessRules
|
|
48764
48556
|
* @memberof LayoutCreated
|
|
48765
48557
|
* @instance
|
|
48766
48558
|
*/
|
|
48767
|
-
LayoutCreated.prototype.
|
|
48768
|
-
|
|
48769
|
-
/**
|
|
48770
|
-
* LayoutCreated excludedAccessGroups.
|
|
48771
|
-
* @member {Array.<contentful.ISlugReference>} excludedAccessGroups
|
|
48772
|
-
* @memberof LayoutCreated
|
|
48773
|
-
* @instance
|
|
48774
|
-
*/
|
|
48775
|
-
LayoutCreated.prototype.excludedAccessGroups = $util.emptyArray;
|
|
48559
|
+
LayoutCreated.prototype.accessRules = $util.emptyArray;
|
|
48776
48560
|
|
|
48777
48561
|
/**
|
|
48778
48562
|
* LayoutCreated createdAt.
|
|
@@ -48812,14 +48596,11 @@ $root.LayoutCreated = (function() {
|
|
|
48812
48596
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityId);
|
|
48813
48597
|
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
48814
48598
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.entityType);
|
|
48815
|
-
if (message.
|
|
48816
|
-
for (var i = 0; i < message.
|
|
48817
|
-
$root.contentful.SlugReference.encode(message.
|
|
48818
|
-
if (message.excludedAccessGroups != null && message.excludedAccessGroups.length)
|
|
48819
|
-
for (var i = 0; i < message.excludedAccessGroups.length; ++i)
|
|
48820
|
-
$root.contentful.SlugReference.encode(message.excludedAccessGroups[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
48599
|
+
if (message.accessRules != null && message.accessRules.length)
|
|
48600
|
+
for (var i = 0; i < message.accessRules.length; ++i)
|
|
48601
|
+
$root.contentful.SlugReference.encode(message.accessRules[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
48821
48602
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
48822
|
-
writer.uint32(/* id
|
|
48603
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.createdAt);
|
|
48823
48604
|
return writer;
|
|
48824
48605
|
};
|
|
48825
48606
|
|
|
@@ -48864,16 +48645,11 @@ $root.LayoutCreated = (function() {
|
|
|
48864
48645
|
message.entityType = reader.string();
|
|
48865
48646
|
break;
|
|
48866
48647
|
case 4:
|
|
48867
|
-
if (!(message.
|
|
48868
|
-
message.
|
|
48869
|
-
message.
|
|
48648
|
+
if (!(message.accessRules && message.accessRules.length))
|
|
48649
|
+
message.accessRules = [];
|
|
48650
|
+
message.accessRules.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
48870
48651
|
break;
|
|
48871
48652
|
case 5:
|
|
48872
|
-
if (!(message.excludedAccessGroups && message.excludedAccessGroups.length))
|
|
48873
|
-
message.excludedAccessGroups = [];
|
|
48874
|
-
message.excludedAccessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
48875
|
-
break;
|
|
48876
|
-
case 6:
|
|
48877
48653
|
message.createdAt = reader.uint64();
|
|
48878
48654
|
break;
|
|
48879
48655
|
default:
|
|
@@ -48920,22 +48696,13 @@ $root.LayoutCreated = (function() {
|
|
|
48920
48696
|
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
48921
48697
|
if (!$util.isString(message.entityType))
|
|
48922
48698
|
return "entityType: string expected";
|
|
48923
|
-
if (message.
|
|
48924
|
-
if (!Array.isArray(message.
|
|
48925
|
-
return "
|
|
48926
|
-
for (var i = 0; i < message.
|
|
48927
|
-
var error = $root.contentful.SlugReference.verify(message.
|
|
48699
|
+
if (message.accessRules != null && message.hasOwnProperty("accessRules")) {
|
|
48700
|
+
if (!Array.isArray(message.accessRules))
|
|
48701
|
+
return "accessRules: array expected";
|
|
48702
|
+
for (var i = 0; i < message.accessRules.length; ++i) {
|
|
48703
|
+
var error = $root.contentful.SlugReference.verify(message.accessRules[i]);
|
|
48928
48704
|
if (error)
|
|
48929
|
-
return "
|
|
48930
|
-
}
|
|
48931
|
-
}
|
|
48932
|
-
if (message.excludedAccessGroups != null && message.hasOwnProperty("excludedAccessGroups")) {
|
|
48933
|
-
if (!Array.isArray(message.excludedAccessGroups))
|
|
48934
|
-
return "excludedAccessGroups: array expected";
|
|
48935
|
-
for (var i = 0; i < message.excludedAccessGroups.length; ++i) {
|
|
48936
|
-
var error = $root.contentful.SlugReference.verify(message.excludedAccessGroups[i]);
|
|
48937
|
-
if (error)
|
|
48938
|
-
return "excludedAccessGroups." + error;
|
|
48705
|
+
return "accessRules." + error;
|
|
48939
48706
|
}
|
|
48940
48707
|
}
|
|
48941
48708
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
@@ -48962,24 +48729,14 @@ $root.LayoutCreated = (function() {
|
|
|
48962
48729
|
message.entityId = String(object.entityId);
|
|
48963
48730
|
if (object.entityType != null)
|
|
48964
48731
|
message.entityType = String(object.entityType);
|
|
48965
|
-
if (object.
|
|
48966
|
-
if (!Array.isArray(object.
|
|
48967
|
-
throw TypeError(".LayoutCreated.
|
|
48968
|
-
message.
|
|
48969
|
-
for (var i = 0; i < object.
|
|
48970
|
-
if (typeof object.
|
|
48971
|
-
throw TypeError(".LayoutCreated.
|
|
48972
|
-
message.
|
|
48973
|
-
}
|
|
48974
|
-
}
|
|
48975
|
-
if (object.excludedAccessGroups) {
|
|
48976
|
-
if (!Array.isArray(object.excludedAccessGroups))
|
|
48977
|
-
throw TypeError(".LayoutCreated.excludedAccessGroups: array expected");
|
|
48978
|
-
message.excludedAccessGroups = [];
|
|
48979
|
-
for (var i = 0; i < object.excludedAccessGroups.length; ++i) {
|
|
48980
|
-
if (typeof object.excludedAccessGroups[i] !== "object")
|
|
48981
|
-
throw TypeError(".LayoutCreated.excludedAccessGroups: object expected");
|
|
48982
|
-
message.excludedAccessGroups[i] = $root.contentful.SlugReference.fromObject(object.excludedAccessGroups[i]);
|
|
48732
|
+
if (object.accessRules) {
|
|
48733
|
+
if (!Array.isArray(object.accessRules))
|
|
48734
|
+
throw TypeError(".LayoutCreated.accessRules: array expected");
|
|
48735
|
+
message.accessRules = [];
|
|
48736
|
+
for (var i = 0; i < object.accessRules.length; ++i) {
|
|
48737
|
+
if (typeof object.accessRules[i] !== "object")
|
|
48738
|
+
throw TypeError(".LayoutCreated.accessRules: object expected");
|
|
48739
|
+
message.accessRules[i] = $root.contentful.SlugReference.fromObject(object.accessRules[i]);
|
|
48983
48740
|
}
|
|
48984
48741
|
}
|
|
48985
48742
|
if (object.createdAt != null)
|
|
@@ -49007,10 +48764,8 @@ $root.LayoutCreated = (function() {
|
|
|
49007
48764
|
if (!options)
|
|
49008
48765
|
options = {};
|
|
49009
48766
|
var object = {};
|
|
49010
|
-
if (options.arrays || options.defaults)
|
|
49011
|
-
object.
|
|
49012
|
-
object.excludedAccessGroups = [];
|
|
49013
|
-
}
|
|
48767
|
+
if (options.arrays || options.defaults)
|
|
48768
|
+
object.accessRules = [];
|
|
49014
48769
|
if (options.defaults) {
|
|
49015
48770
|
object.slug = "";
|
|
49016
48771
|
object.entityId = "";
|
|
@@ -49027,15 +48782,10 @@ $root.LayoutCreated = (function() {
|
|
|
49027
48782
|
object.entityId = message.entityId;
|
|
49028
48783
|
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
49029
48784
|
object.entityType = message.entityType;
|
|
49030
|
-
if (message.
|
|
49031
|
-
object.
|
|
49032
|
-
for (var j = 0; j < message.
|
|
49033
|
-
object.
|
|
49034
|
-
}
|
|
49035
|
-
if (message.excludedAccessGroups && message.excludedAccessGroups.length) {
|
|
49036
|
-
object.excludedAccessGroups = [];
|
|
49037
|
-
for (var j = 0; j < message.excludedAccessGroups.length; ++j)
|
|
49038
|
-
object.excludedAccessGroups[j] = $root.contentful.SlugReference.toObject(message.excludedAccessGroups[j], options);
|
|
48785
|
+
if (message.accessRules && message.accessRules.length) {
|
|
48786
|
+
object.accessRules = [];
|
|
48787
|
+
for (var j = 0; j < message.accessRules.length; ++j)
|
|
48788
|
+
object.accessRules[j] = $root.contentful.SlugReference.toObject(message.accessRules[j], options);
|
|
49039
48789
|
}
|
|
49040
48790
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
49041
48791
|
if (typeof message.createdAt === "number")
|
|
@@ -49068,8 +48818,7 @@ $root.LayoutUpdated = (function() {
|
|
|
49068
48818
|
* @property {string|null} [slug] LayoutUpdated slug
|
|
49069
48819
|
* @property {string|null} [entityId] LayoutUpdated entityId
|
|
49070
48820
|
* @property {string|null} [entityType] LayoutUpdated entityType
|
|
49071
|
-
* @property {Array.<contentful.ISlugReference>|null} [
|
|
49072
|
-
* @property {Array.<contentful.ISlugReference>|null} [excludedAccessGroups] LayoutUpdated excludedAccessGroups
|
|
48821
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessRules] LayoutUpdated accessRules
|
|
49073
48822
|
* @property {number|Long|null} [updatedAt] LayoutUpdated updatedAt
|
|
49074
48823
|
*/
|
|
49075
48824
|
|
|
@@ -49082,8 +48831,7 @@ $root.LayoutUpdated = (function() {
|
|
|
49082
48831
|
* @param {ILayoutUpdated=} [properties] Properties to set
|
|
49083
48832
|
*/
|
|
49084
48833
|
function LayoutUpdated(properties) {
|
|
49085
|
-
this.
|
|
49086
|
-
this.excludedAccessGroups = [];
|
|
48834
|
+
this.accessRules = [];
|
|
49087
48835
|
if (properties)
|
|
49088
48836
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
49089
48837
|
if (properties[keys[i]] != null)
|
|
@@ -49115,20 +48863,12 @@ $root.LayoutUpdated = (function() {
|
|
|
49115
48863
|
LayoutUpdated.prototype.entityType = "";
|
|
49116
48864
|
|
|
49117
48865
|
/**
|
|
49118
|
-
* LayoutUpdated
|
|
49119
|
-
* @member {Array.<contentful.ISlugReference>}
|
|
49120
|
-
* @memberof LayoutUpdated
|
|
49121
|
-
* @instance
|
|
49122
|
-
*/
|
|
49123
|
-
LayoutUpdated.prototype.accessGroups = $util.emptyArray;
|
|
49124
|
-
|
|
49125
|
-
/**
|
|
49126
|
-
* LayoutUpdated excludedAccessGroups.
|
|
49127
|
-
* @member {Array.<contentful.ISlugReference>} excludedAccessGroups
|
|
48866
|
+
* LayoutUpdated accessRules.
|
|
48867
|
+
* @member {Array.<contentful.ISlugReference>} accessRules
|
|
49128
48868
|
* @memberof LayoutUpdated
|
|
49129
48869
|
* @instance
|
|
49130
48870
|
*/
|
|
49131
|
-
LayoutUpdated.prototype.
|
|
48871
|
+
LayoutUpdated.prototype.accessRules = $util.emptyArray;
|
|
49132
48872
|
|
|
49133
48873
|
/**
|
|
49134
48874
|
* LayoutUpdated updatedAt.
|
|
@@ -49168,14 +48908,11 @@ $root.LayoutUpdated = (function() {
|
|
|
49168
48908
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityId);
|
|
49169
48909
|
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
49170
48910
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.entityType);
|
|
49171
|
-
if (message.
|
|
49172
|
-
for (var i = 0; i < message.
|
|
49173
|
-
$root.contentful.SlugReference.encode(message.
|
|
49174
|
-
if (message.excludedAccessGroups != null && message.excludedAccessGroups.length)
|
|
49175
|
-
for (var i = 0; i < message.excludedAccessGroups.length; ++i)
|
|
49176
|
-
$root.contentful.SlugReference.encode(message.excludedAccessGroups[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
48911
|
+
if (message.accessRules != null && message.accessRules.length)
|
|
48912
|
+
for (var i = 0; i < message.accessRules.length; ++i)
|
|
48913
|
+
$root.contentful.SlugReference.encode(message.accessRules[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
49177
48914
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
49178
|
-
writer.uint32(/* id
|
|
48915
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.updatedAt);
|
|
49179
48916
|
return writer;
|
|
49180
48917
|
};
|
|
49181
48918
|
|
|
@@ -49220,16 +48957,11 @@ $root.LayoutUpdated = (function() {
|
|
|
49220
48957
|
message.entityType = reader.string();
|
|
49221
48958
|
break;
|
|
49222
48959
|
case 4:
|
|
49223
|
-
if (!(message.
|
|
49224
|
-
message.
|
|
49225
|
-
message.
|
|
48960
|
+
if (!(message.accessRules && message.accessRules.length))
|
|
48961
|
+
message.accessRules = [];
|
|
48962
|
+
message.accessRules.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
49226
48963
|
break;
|
|
49227
48964
|
case 5:
|
|
49228
|
-
if (!(message.excludedAccessGroups && message.excludedAccessGroups.length))
|
|
49229
|
-
message.excludedAccessGroups = [];
|
|
49230
|
-
message.excludedAccessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
49231
|
-
break;
|
|
49232
|
-
case 6:
|
|
49233
48965
|
message.updatedAt = reader.uint64();
|
|
49234
48966
|
break;
|
|
49235
48967
|
default:
|
|
@@ -49276,22 +49008,13 @@ $root.LayoutUpdated = (function() {
|
|
|
49276
49008
|
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
49277
49009
|
if (!$util.isString(message.entityType))
|
|
49278
49010
|
return "entityType: string expected";
|
|
49279
|
-
if (message.
|
|
49280
|
-
if (!Array.isArray(message.
|
|
49281
|
-
return "
|
|
49282
|
-
for (var i = 0; i < message.
|
|
49283
|
-
var error = $root.contentful.SlugReference.verify(message.
|
|
49284
|
-
if (error)
|
|
49285
|
-
return "accessGroups." + error;
|
|
49286
|
-
}
|
|
49287
|
-
}
|
|
49288
|
-
if (message.excludedAccessGroups != null && message.hasOwnProperty("excludedAccessGroups")) {
|
|
49289
|
-
if (!Array.isArray(message.excludedAccessGroups))
|
|
49290
|
-
return "excludedAccessGroups: array expected";
|
|
49291
|
-
for (var i = 0; i < message.excludedAccessGroups.length; ++i) {
|
|
49292
|
-
var error = $root.contentful.SlugReference.verify(message.excludedAccessGroups[i]);
|
|
49011
|
+
if (message.accessRules != null && message.hasOwnProperty("accessRules")) {
|
|
49012
|
+
if (!Array.isArray(message.accessRules))
|
|
49013
|
+
return "accessRules: array expected";
|
|
49014
|
+
for (var i = 0; i < message.accessRules.length; ++i) {
|
|
49015
|
+
var error = $root.contentful.SlugReference.verify(message.accessRules[i]);
|
|
49293
49016
|
if (error)
|
|
49294
|
-
return "
|
|
49017
|
+
return "accessRules." + error;
|
|
49295
49018
|
}
|
|
49296
49019
|
}
|
|
49297
49020
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
@@ -49318,24 +49041,14 @@ $root.LayoutUpdated = (function() {
|
|
|
49318
49041
|
message.entityId = String(object.entityId);
|
|
49319
49042
|
if (object.entityType != null)
|
|
49320
49043
|
message.entityType = String(object.entityType);
|
|
49321
|
-
if (object.
|
|
49322
|
-
if (!Array.isArray(object.
|
|
49323
|
-
throw TypeError(".LayoutUpdated.
|
|
49324
|
-
message.
|
|
49325
|
-
for (var i = 0; i < object.
|
|
49326
|
-
if (typeof object.
|
|
49327
|
-
throw TypeError(".LayoutUpdated.
|
|
49328
|
-
message.
|
|
49329
|
-
}
|
|
49330
|
-
}
|
|
49331
|
-
if (object.excludedAccessGroups) {
|
|
49332
|
-
if (!Array.isArray(object.excludedAccessGroups))
|
|
49333
|
-
throw TypeError(".LayoutUpdated.excludedAccessGroups: array expected");
|
|
49334
|
-
message.excludedAccessGroups = [];
|
|
49335
|
-
for (var i = 0; i < object.excludedAccessGroups.length; ++i) {
|
|
49336
|
-
if (typeof object.excludedAccessGroups[i] !== "object")
|
|
49337
|
-
throw TypeError(".LayoutUpdated.excludedAccessGroups: object expected");
|
|
49338
|
-
message.excludedAccessGroups[i] = $root.contentful.SlugReference.fromObject(object.excludedAccessGroups[i]);
|
|
49044
|
+
if (object.accessRules) {
|
|
49045
|
+
if (!Array.isArray(object.accessRules))
|
|
49046
|
+
throw TypeError(".LayoutUpdated.accessRules: array expected");
|
|
49047
|
+
message.accessRules = [];
|
|
49048
|
+
for (var i = 0; i < object.accessRules.length; ++i) {
|
|
49049
|
+
if (typeof object.accessRules[i] !== "object")
|
|
49050
|
+
throw TypeError(".LayoutUpdated.accessRules: object expected");
|
|
49051
|
+
message.accessRules[i] = $root.contentful.SlugReference.fromObject(object.accessRules[i]);
|
|
49339
49052
|
}
|
|
49340
49053
|
}
|
|
49341
49054
|
if (object.updatedAt != null)
|
|
@@ -49363,10 +49076,8 @@ $root.LayoutUpdated = (function() {
|
|
|
49363
49076
|
if (!options)
|
|
49364
49077
|
options = {};
|
|
49365
49078
|
var object = {};
|
|
49366
|
-
if (options.arrays || options.defaults)
|
|
49367
|
-
object.
|
|
49368
|
-
object.excludedAccessGroups = [];
|
|
49369
|
-
}
|
|
49079
|
+
if (options.arrays || options.defaults)
|
|
49080
|
+
object.accessRules = [];
|
|
49370
49081
|
if (options.defaults) {
|
|
49371
49082
|
object.slug = "";
|
|
49372
49083
|
object.entityId = "";
|
|
@@ -49383,15 +49094,10 @@ $root.LayoutUpdated = (function() {
|
|
|
49383
49094
|
object.entityId = message.entityId;
|
|
49384
49095
|
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
49385
49096
|
object.entityType = message.entityType;
|
|
49386
|
-
if (message.
|
|
49387
|
-
object.
|
|
49388
|
-
for (var j = 0; j < message.
|
|
49389
|
-
object.
|
|
49390
|
-
}
|
|
49391
|
-
if (message.excludedAccessGroups && message.excludedAccessGroups.length) {
|
|
49392
|
-
object.excludedAccessGroups = [];
|
|
49393
|
-
for (var j = 0; j < message.excludedAccessGroups.length; ++j)
|
|
49394
|
-
object.excludedAccessGroups[j] = $root.contentful.SlugReference.toObject(message.excludedAccessGroups[j], options);
|
|
49097
|
+
if (message.accessRules && message.accessRules.length) {
|
|
49098
|
+
object.accessRules = [];
|
|
49099
|
+
for (var j = 0; j < message.accessRules.length; ++j)
|
|
49100
|
+
object.accessRules[j] = $root.contentful.SlugReference.toObject(message.accessRules[j], options);
|
|
49395
49101
|
}
|
|
49396
49102
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
49397
49103
|
if (typeof message.updatedAt === "number")
|
|
@@ -49692,8 +49398,7 @@ $root.ModuleDescriptorCreated = (function() {
|
|
|
49692
49398
|
* @property {string|null} [slug] ModuleDescriptorCreated slug
|
|
49693
49399
|
* @property {string|null} [entityId] ModuleDescriptorCreated entityId
|
|
49694
49400
|
* @property {string|null} [entityType] ModuleDescriptorCreated entityType
|
|
49695
|
-
* @property {Array.<contentful.ISlugReference>|null} [
|
|
49696
|
-
* @property {Array.<contentful.ISlugReference>|null} [excludedAccessGroups] ModuleDescriptorCreated excludedAccessGroups
|
|
49401
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessRules] ModuleDescriptorCreated accessRules
|
|
49697
49402
|
* @property {number|Long|null} [createdAt] ModuleDescriptorCreated createdAt
|
|
49698
49403
|
*/
|
|
49699
49404
|
|
|
@@ -49706,8 +49411,7 @@ $root.ModuleDescriptorCreated = (function() {
|
|
|
49706
49411
|
* @param {IModuleDescriptorCreated=} [properties] Properties to set
|
|
49707
49412
|
*/
|
|
49708
49413
|
function ModuleDescriptorCreated(properties) {
|
|
49709
|
-
this.
|
|
49710
|
-
this.excludedAccessGroups = [];
|
|
49414
|
+
this.accessRules = [];
|
|
49711
49415
|
if (properties)
|
|
49712
49416
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
49713
49417
|
if (properties[keys[i]] != null)
|
|
@@ -49739,20 +49443,12 @@ $root.ModuleDescriptorCreated = (function() {
|
|
|
49739
49443
|
ModuleDescriptorCreated.prototype.entityType = "";
|
|
49740
49444
|
|
|
49741
49445
|
/**
|
|
49742
|
-
* ModuleDescriptorCreated
|
|
49743
|
-
* @member {Array.<contentful.ISlugReference>}
|
|
49744
|
-
* @memberof ModuleDescriptorCreated
|
|
49745
|
-
* @instance
|
|
49746
|
-
*/
|
|
49747
|
-
ModuleDescriptorCreated.prototype.accessGroups = $util.emptyArray;
|
|
49748
|
-
|
|
49749
|
-
/**
|
|
49750
|
-
* ModuleDescriptorCreated excludedAccessGroups.
|
|
49751
|
-
* @member {Array.<contentful.ISlugReference>} excludedAccessGroups
|
|
49446
|
+
* ModuleDescriptorCreated accessRules.
|
|
49447
|
+
* @member {Array.<contentful.ISlugReference>} accessRules
|
|
49752
49448
|
* @memberof ModuleDescriptorCreated
|
|
49753
49449
|
* @instance
|
|
49754
49450
|
*/
|
|
49755
|
-
ModuleDescriptorCreated.prototype.
|
|
49451
|
+
ModuleDescriptorCreated.prototype.accessRules = $util.emptyArray;
|
|
49756
49452
|
|
|
49757
49453
|
/**
|
|
49758
49454
|
* ModuleDescriptorCreated createdAt.
|
|
@@ -49792,14 +49488,11 @@ $root.ModuleDescriptorCreated = (function() {
|
|
|
49792
49488
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityId);
|
|
49793
49489
|
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
49794
49490
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.entityType);
|
|
49795
|
-
if (message.
|
|
49796
|
-
for (var i = 0; i < message.
|
|
49797
|
-
$root.contentful.SlugReference.encode(message.
|
|
49798
|
-
if (message.excludedAccessGroups != null && message.excludedAccessGroups.length)
|
|
49799
|
-
for (var i = 0; i < message.excludedAccessGroups.length; ++i)
|
|
49800
|
-
$root.contentful.SlugReference.encode(message.excludedAccessGroups[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
49491
|
+
if (message.accessRules != null && message.accessRules.length)
|
|
49492
|
+
for (var i = 0; i < message.accessRules.length; ++i)
|
|
49493
|
+
$root.contentful.SlugReference.encode(message.accessRules[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
49801
49494
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
49802
|
-
writer.uint32(/* id
|
|
49495
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.createdAt);
|
|
49803
49496
|
return writer;
|
|
49804
49497
|
};
|
|
49805
49498
|
|
|
@@ -49844,16 +49537,11 @@ $root.ModuleDescriptorCreated = (function() {
|
|
|
49844
49537
|
message.entityType = reader.string();
|
|
49845
49538
|
break;
|
|
49846
49539
|
case 4:
|
|
49847
|
-
if (!(message.
|
|
49848
|
-
message.
|
|
49849
|
-
message.
|
|
49540
|
+
if (!(message.accessRules && message.accessRules.length))
|
|
49541
|
+
message.accessRules = [];
|
|
49542
|
+
message.accessRules.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
49850
49543
|
break;
|
|
49851
49544
|
case 5:
|
|
49852
|
-
if (!(message.excludedAccessGroups && message.excludedAccessGroups.length))
|
|
49853
|
-
message.excludedAccessGroups = [];
|
|
49854
|
-
message.excludedAccessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
49855
|
-
break;
|
|
49856
|
-
case 6:
|
|
49857
49545
|
message.createdAt = reader.uint64();
|
|
49858
49546
|
break;
|
|
49859
49547
|
default:
|
|
@@ -49900,22 +49588,13 @@ $root.ModuleDescriptorCreated = (function() {
|
|
|
49900
49588
|
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
49901
49589
|
if (!$util.isString(message.entityType))
|
|
49902
49590
|
return "entityType: string expected";
|
|
49903
|
-
if (message.
|
|
49904
|
-
if (!Array.isArray(message.
|
|
49905
|
-
return "
|
|
49906
|
-
for (var i = 0; i < message.
|
|
49907
|
-
var error = $root.contentful.SlugReference.verify(message.
|
|
49908
|
-
if (error)
|
|
49909
|
-
return "accessGroups." + error;
|
|
49910
|
-
}
|
|
49911
|
-
}
|
|
49912
|
-
if (message.excludedAccessGroups != null && message.hasOwnProperty("excludedAccessGroups")) {
|
|
49913
|
-
if (!Array.isArray(message.excludedAccessGroups))
|
|
49914
|
-
return "excludedAccessGroups: array expected";
|
|
49915
|
-
for (var i = 0; i < message.excludedAccessGroups.length; ++i) {
|
|
49916
|
-
var error = $root.contentful.SlugReference.verify(message.excludedAccessGroups[i]);
|
|
49591
|
+
if (message.accessRules != null && message.hasOwnProperty("accessRules")) {
|
|
49592
|
+
if (!Array.isArray(message.accessRules))
|
|
49593
|
+
return "accessRules: array expected";
|
|
49594
|
+
for (var i = 0; i < message.accessRules.length; ++i) {
|
|
49595
|
+
var error = $root.contentful.SlugReference.verify(message.accessRules[i]);
|
|
49917
49596
|
if (error)
|
|
49918
|
-
return "
|
|
49597
|
+
return "accessRules." + error;
|
|
49919
49598
|
}
|
|
49920
49599
|
}
|
|
49921
49600
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
@@ -49942,24 +49621,14 @@ $root.ModuleDescriptorCreated = (function() {
|
|
|
49942
49621
|
message.entityId = String(object.entityId);
|
|
49943
49622
|
if (object.entityType != null)
|
|
49944
49623
|
message.entityType = String(object.entityType);
|
|
49945
|
-
if (object.
|
|
49946
|
-
if (!Array.isArray(object.
|
|
49947
|
-
throw TypeError(".ModuleDescriptorCreated.
|
|
49948
|
-
message.
|
|
49949
|
-
for (var i = 0; i < object.
|
|
49950
|
-
if (typeof object.
|
|
49951
|
-
throw TypeError(".ModuleDescriptorCreated.
|
|
49952
|
-
message.
|
|
49953
|
-
}
|
|
49954
|
-
}
|
|
49955
|
-
if (object.excludedAccessGroups) {
|
|
49956
|
-
if (!Array.isArray(object.excludedAccessGroups))
|
|
49957
|
-
throw TypeError(".ModuleDescriptorCreated.excludedAccessGroups: array expected");
|
|
49958
|
-
message.excludedAccessGroups = [];
|
|
49959
|
-
for (var i = 0; i < object.excludedAccessGroups.length; ++i) {
|
|
49960
|
-
if (typeof object.excludedAccessGroups[i] !== "object")
|
|
49961
|
-
throw TypeError(".ModuleDescriptorCreated.excludedAccessGroups: object expected");
|
|
49962
|
-
message.excludedAccessGroups[i] = $root.contentful.SlugReference.fromObject(object.excludedAccessGroups[i]);
|
|
49624
|
+
if (object.accessRules) {
|
|
49625
|
+
if (!Array.isArray(object.accessRules))
|
|
49626
|
+
throw TypeError(".ModuleDescriptorCreated.accessRules: array expected");
|
|
49627
|
+
message.accessRules = [];
|
|
49628
|
+
for (var i = 0; i < object.accessRules.length; ++i) {
|
|
49629
|
+
if (typeof object.accessRules[i] !== "object")
|
|
49630
|
+
throw TypeError(".ModuleDescriptorCreated.accessRules: object expected");
|
|
49631
|
+
message.accessRules[i] = $root.contentful.SlugReference.fromObject(object.accessRules[i]);
|
|
49963
49632
|
}
|
|
49964
49633
|
}
|
|
49965
49634
|
if (object.createdAt != null)
|
|
@@ -49987,10 +49656,8 @@ $root.ModuleDescriptorCreated = (function() {
|
|
|
49987
49656
|
if (!options)
|
|
49988
49657
|
options = {};
|
|
49989
49658
|
var object = {};
|
|
49990
|
-
if (options.arrays || options.defaults)
|
|
49991
|
-
object.
|
|
49992
|
-
object.excludedAccessGroups = [];
|
|
49993
|
-
}
|
|
49659
|
+
if (options.arrays || options.defaults)
|
|
49660
|
+
object.accessRules = [];
|
|
49994
49661
|
if (options.defaults) {
|
|
49995
49662
|
object.slug = "";
|
|
49996
49663
|
object.entityId = "";
|
|
@@ -50007,15 +49674,10 @@ $root.ModuleDescriptorCreated = (function() {
|
|
|
50007
49674
|
object.entityId = message.entityId;
|
|
50008
49675
|
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
50009
49676
|
object.entityType = message.entityType;
|
|
50010
|
-
if (message.
|
|
50011
|
-
object.
|
|
50012
|
-
for (var j = 0; j < message.
|
|
50013
|
-
object.
|
|
50014
|
-
}
|
|
50015
|
-
if (message.excludedAccessGroups && message.excludedAccessGroups.length) {
|
|
50016
|
-
object.excludedAccessGroups = [];
|
|
50017
|
-
for (var j = 0; j < message.excludedAccessGroups.length; ++j)
|
|
50018
|
-
object.excludedAccessGroups[j] = $root.contentful.SlugReference.toObject(message.excludedAccessGroups[j], options);
|
|
49677
|
+
if (message.accessRules && message.accessRules.length) {
|
|
49678
|
+
object.accessRules = [];
|
|
49679
|
+
for (var j = 0; j < message.accessRules.length; ++j)
|
|
49680
|
+
object.accessRules[j] = $root.contentful.SlugReference.toObject(message.accessRules[j], options);
|
|
50019
49681
|
}
|
|
50020
49682
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
50021
49683
|
if (typeof message.createdAt === "number")
|
|
@@ -50048,8 +49710,7 @@ $root.ModuleDescriptorUpdated = (function() {
|
|
|
50048
49710
|
* @property {string|null} [slug] ModuleDescriptorUpdated slug
|
|
50049
49711
|
* @property {string|null} [entityId] ModuleDescriptorUpdated entityId
|
|
50050
49712
|
* @property {string|null} [entityType] ModuleDescriptorUpdated entityType
|
|
50051
|
-
* @property {Array.<contentful.ISlugReference>|null} [
|
|
50052
|
-
* @property {Array.<contentful.ISlugReference>|null} [excludedAccessGroups] ModuleDescriptorUpdated excludedAccessGroups
|
|
49713
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessRules] ModuleDescriptorUpdated accessRules
|
|
50053
49714
|
* @property {number|Long|null} [updatedAt] ModuleDescriptorUpdated updatedAt
|
|
50054
49715
|
*/
|
|
50055
49716
|
|
|
@@ -50062,8 +49723,7 @@ $root.ModuleDescriptorUpdated = (function() {
|
|
|
50062
49723
|
* @param {IModuleDescriptorUpdated=} [properties] Properties to set
|
|
50063
49724
|
*/
|
|
50064
49725
|
function ModuleDescriptorUpdated(properties) {
|
|
50065
|
-
this.
|
|
50066
|
-
this.excludedAccessGroups = [];
|
|
49726
|
+
this.accessRules = [];
|
|
50067
49727
|
if (properties)
|
|
50068
49728
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
50069
49729
|
if (properties[keys[i]] != null)
|
|
@@ -50095,20 +49755,12 @@ $root.ModuleDescriptorUpdated = (function() {
|
|
|
50095
49755
|
ModuleDescriptorUpdated.prototype.entityType = "";
|
|
50096
49756
|
|
|
50097
49757
|
/**
|
|
50098
|
-
* ModuleDescriptorUpdated
|
|
50099
|
-
* @member {Array.<contentful.ISlugReference>}
|
|
50100
|
-
* @memberof ModuleDescriptorUpdated
|
|
50101
|
-
* @instance
|
|
50102
|
-
*/
|
|
50103
|
-
ModuleDescriptorUpdated.prototype.accessGroups = $util.emptyArray;
|
|
50104
|
-
|
|
50105
|
-
/**
|
|
50106
|
-
* ModuleDescriptorUpdated excludedAccessGroups.
|
|
50107
|
-
* @member {Array.<contentful.ISlugReference>} excludedAccessGroups
|
|
49758
|
+
* ModuleDescriptorUpdated accessRules.
|
|
49759
|
+
* @member {Array.<contentful.ISlugReference>} accessRules
|
|
50108
49760
|
* @memberof ModuleDescriptorUpdated
|
|
50109
49761
|
* @instance
|
|
50110
49762
|
*/
|
|
50111
|
-
ModuleDescriptorUpdated.prototype.
|
|
49763
|
+
ModuleDescriptorUpdated.prototype.accessRules = $util.emptyArray;
|
|
50112
49764
|
|
|
50113
49765
|
/**
|
|
50114
49766
|
* ModuleDescriptorUpdated updatedAt.
|
|
@@ -50148,14 +49800,11 @@ $root.ModuleDescriptorUpdated = (function() {
|
|
|
50148
49800
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityId);
|
|
50149
49801
|
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
50150
49802
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.entityType);
|
|
50151
|
-
if (message.
|
|
50152
|
-
for (var i = 0; i < message.
|
|
50153
|
-
$root.contentful.SlugReference.encode(message.
|
|
50154
|
-
if (message.excludedAccessGroups != null && message.excludedAccessGroups.length)
|
|
50155
|
-
for (var i = 0; i < message.excludedAccessGroups.length; ++i)
|
|
50156
|
-
$root.contentful.SlugReference.encode(message.excludedAccessGroups[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
49803
|
+
if (message.accessRules != null && message.accessRules.length)
|
|
49804
|
+
for (var i = 0; i < message.accessRules.length; ++i)
|
|
49805
|
+
$root.contentful.SlugReference.encode(message.accessRules[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
50157
49806
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
50158
|
-
writer.uint32(/* id
|
|
49807
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.updatedAt);
|
|
50159
49808
|
return writer;
|
|
50160
49809
|
};
|
|
50161
49810
|
|
|
@@ -50200,16 +49849,11 @@ $root.ModuleDescriptorUpdated = (function() {
|
|
|
50200
49849
|
message.entityType = reader.string();
|
|
50201
49850
|
break;
|
|
50202
49851
|
case 4:
|
|
50203
|
-
if (!(message.
|
|
50204
|
-
message.
|
|
50205
|
-
message.
|
|
49852
|
+
if (!(message.accessRules && message.accessRules.length))
|
|
49853
|
+
message.accessRules = [];
|
|
49854
|
+
message.accessRules.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
50206
49855
|
break;
|
|
50207
49856
|
case 5:
|
|
50208
|
-
if (!(message.excludedAccessGroups && message.excludedAccessGroups.length))
|
|
50209
|
-
message.excludedAccessGroups = [];
|
|
50210
|
-
message.excludedAccessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
50211
|
-
break;
|
|
50212
|
-
case 6:
|
|
50213
49857
|
message.updatedAt = reader.uint64();
|
|
50214
49858
|
break;
|
|
50215
49859
|
default:
|
|
@@ -50256,22 +49900,13 @@ $root.ModuleDescriptorUpdated = (function() {
|
|
|
50256
49900
|
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
50257
49901
|
if (!$util.isString(message.entityType))
|
|
50258
49902
|
return "entityType: string expected";
|
|
50259
|
-
if (message.
|
|
50260
|
-
if (!Array.isArray(message.
|
|
50261
|
-
return "
|
|
50262
|
-
for (var i = 0; i < message.
|
|
50263
|
-
var error = $root.contentful.SlugReference.verify(message.
|
|
50264
|
-
if (error)
|
|
50265
|
-
return "accessGroups." + error;
|
|
50266
|
-
}
|
|
50267
|
-
}
|
|
50268
|
-
if (message.excludedAccessGroups != null && message.hasOwnProperty("excludedAccessGroups")) {
|
|
50269
|
-
if (!Array.isArray(message.excludedAccessGroups))
|
|
50270
|
-
return "excludedAccessGroups: array expected";
|
|
50271
|
-
for (var i = 0; i < message.excludedAccessGroups.length; ++i) {
|
|
50272
|
-
var error = $root.contentful.SlugReference.verify(message.excludedAccessGroups[i]);
|
|
49903
|
+
if (message.accessRules != null && message.hasOwnProperty("accessRules")) {
|
|
49904
|
+
if (!Array.isArray(message.accessRules))
|
|
49905
|
+
return "accessRules: array expected";
|
|
49906
|
+
for (var i = 0; i < message.accessRules.length; ++i) {
|
|
49907
|
+
var error = $root.contentful.SlugReference.verify(message.accessRules[i]);
|
|
50273
49908
|
if (error)
|
|
50274
|
-
return "
|
|
49909
|
+
return "accessRules." + error;
|
|
50275
49910
|
}
|
|
50276
49911
|
}
|
|
50277
49912
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
@@ -50298,24 +49933,14 @@ $root.ModuleDescriptorUpdated = (function() {
|
|
|
50298
49933
|
message.entityId = String(object.entityId);
|
|
50299
49934
|
if (object.entityType != null)
|
|
50300
49935
|
message.entityType = String(object.entityType);
|
|
50301
|
-
if (object.
|
|
50302
|
-
if (!Array.isArray(object.
|
|
50303
|
-
throw TypeError(".ModuleDescriptorUpdated.
|
|
50304
|
-
message.
|
|
50305
|
-
for (var i = 0; i < object.
|
|
50306
|
-
if (typeof object.
|
|
50307
|
-
throw TypeError(".ModuleDescriptorUpdated.
|
|
50308
|
-
message.
|
|
50309
|
-
}
|
|
50310
|
-
}
|
|
50311
|
-
if (object.excludedAccessGroups) {
|
|
50312
|
-
if (!Array.isArray(object.excludedAccessGroups))
|
|
50313
|
-
throw TypeError(".ModuleDescriptorUpdated.excludedAccessGroups: array expected");
|
|
50314
|
-
message.excludedAccessGroups = [];
|
|
50315
|
-
for (var i = 0; i < object.excludedAccessGroups.length; ++i) {
|
|
50316
|
-
if (typeof object.excludedAccessGroups[i] !== "object")
|
|
50317
|
-
throw TypeError(".ModuleDescriptorUpdated.excludedAccessGroups: object expected");
|
|
50318
|
-
message.excludedAccessGroups[i] = $root.contentful.SlugReference.fromObject(object.excludedAccessGroups[i]);
|
|
49936
|
+
if (object.accessRules) {
|
|
49937
|
+
if (!Array.isArray(object.accessRules))
|
|
49938
|
+
throw TypeError(".ModuleDescriptorUpdated.accessRules: array expected");
|
|
49939
|
+
message.accessRules = [];
|
|
49940
|
+
for (var i = 0; i < object.accessRules.length; ++i) {
|
|
49941
|
+
if (typeof object.accessRules[i] !== "object")
|
|
49942
|
+
throw TypeError(".ModuleDescriptorUpdated.accessRules: object expected");
|
|
49943
|
+
message.accessRules[i] = $root.contentful.SlugReference.fromObject(object.accessRules[i]);
|
|
50319
49944
|
}
|
|
50320
49945
|
}
|
|
50321
49946
|
if (object.updatedAt != null)
|
|
@@ -50343,10 +49968,8 @@ $root.ModuleDescriptorUpdated = (function() {
|
|
|
50343
49968
|
if (!options)
|
|
50344
49969
|
options = {};
|
|
50345
49970
|
var object = {};
|
|
50346
|
-
if (options.arrays || options.defaults)
|
|
50347
|
-
object.
|
|
50348
|
-
object.excludedAccessGroups = [];
|
|
50349
|
-
}
|
|
49971
|
+
if (options.arrays || options.defaults)
|
|
49972
|
+
object.accessRules = [];
|
|
50350
49973
|
if (options.defaults) {
|
|
50351
49974
|
object.slug = "";
|
|
50352
49975
|
object.entityId = "";
|
|
@@ -50363,15 +49986,10 @@ $root.ModuleDescriptorUpdated = (function() {
|
|
|
50363
49986
|
object.entityId = message.entityId;
|
|
50364
49987
|
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
50365
49988
|
object.entityType = message.entityType;
|
|
50366
|
-
if (message.
|
|
50367
|
-
object.
|
|
50368
|
-
for (var j = 0; j < message.
|
|
50369
|
-
object.
|
|
50370
|
-
}
|
|
50371
|
-
if (message.excludedAccessGroups && message.excludedAccessGroups.length) {
|
|
50372
|
-
object.excludedAccessGroups = [];
|
|
50373
|
-
for (var j = 0; j < message.excludedAccessGroups.length; ++j)
|
|
50374
|
-
object.excludedAccessGroups[j] = $root.contentful.SlugReference.toObject(message.excludedAccessGroups[j], options);
|
|
49989
|
+
if (message.accessRules && message.accessRules.length) {
|
|
49990
|
+
object.accessRules = [];
|
|
49991
|
+
for (var j = 0; j < message.accessRules.length; ++j)
|
|
49992
|
+
object.accessRules[j] = $root.contentful.SlugReference.toObject(message.accessRules[j], options);
|
|
50375
49993
|
}
|
|
50376
49994
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
50377
49995
|
if (typeof message.updatedAt === "number")
|