@headspace/protos-events 1.127.0 → 1.128.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 +12 -12
- package/lib/index.js +206 -82
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -4478,7 +4478,7 @@ export class ContentfulSubscriptionAccessGroupDeleted implements IContentfulSubs
|
|
|
4478
4478
|
export interface IContentfulCategoryCreated {
|
|
4479
4479
|
|
|
4480
4480
|
/** ContentfulCategoryCreated name */
|
|
4481
|
-
name?: (string|null);
|
|
4481
|
+
name?: ({ [k: string]: string }|null);
|
|
4482
4482
|
|
|
4483
4483
|
/** ContentfulCategoryCreated slug */
|
|
4484
4484
|
slug?: (string|null);
|
|
@@ -4506,7 +4506,7 @@ export class ContentfulCategoryCreated implements IContentfulCategoryCreated {
|
|
|
4506
4506
|
constructor(properties?: IContentfulCategoryCreated);
|
|
4507
4507
|
|
|
4508
4508
|
/** ContentfulCategoryCreated name. */
|
|
4509
|
-
public name: string;
|
|
4509
|
+
public name: { [k: string]: string };
|
|
4510
4510
|
|
|
4511
4511
|
/** ContentfulCategoryCreated slug. */
|
|
4512
4512
|
public slug: string;
|
|
@@ -4598,7 +4598,7 @@ export class ContentfulCategoryCreated implements IContentfulCategoryCreated {
|
|
|
4598
4598
|
export interface IContentfulCategoryUpdated {
|
|
4599
4599
|
|
|
4600
4600
|
/** ContentfulCategoryUpdated name */
|
|
4601
|
-
name?: (string|null);
|
|
4601
|
+
name?: ({ [k: string]: string }|null);
|
|
4602
4602
|
|
|
4603
4603
|
/** ContentfulCategoryUpdated slug */
|
|
4604
4604
|
slug?: (string|null);
|
|
@@ -4626,7 +4626,7 @@ export class ContentfulCategoryUpdated implements IContentfulCategoryUpdated {
|
|
|
4626
4626
|
constructor(properties?: IContentfulCategoryUpdated);
|
|
4627
4627
|
|
|
4628
4628
|
/** ContentfulCategoryUpdated name. */
|
|
4629
|
-
public name: string;
|
|
4629
|
+
public name: { [k: string]: string };
|
|
4630
4630
|
|
|
4631
4631
|
/** ContentfulCategoryUpdated slug. */
|
|
4632
4632
|
public slug: string;
|
|
@@ -4814,13 +4814,13 @@ export class ContentfulCategoryDeleted implements IContentfulCategoryDeleted {
|
|
|
4814
4814
|
export interface IContentfulTopicCreated {
|
|
4815
4815
|
|
|
4816
4816
|
/** ContentfulTopicCreated name */
|
|
4817
|
-
name?: (string|null);
|
|
4817
|
+
name?: ({ [k: string]: string }|null);
|
|
4818
4818
|
|
|
4819
4819
|
/** ContentfulTopicCreated slug */
|
|
4820
4820
|
slug?: (string|null);
|
|
4821
4821
|
|
|
4822
4822
|
/** ContentfulTopicCreated description */
|
|
4823
|
-
description?: (string|null);
|
|
4823
|
+
description?: ({ [k: string]: string }|null);
|
|
4824
4824
|
|
|
4825
4825
|
/** ContentfulTopicCreated location */
|
|
4826
4826
|
location?: (string|null);
|
|
@@ -4860,13 +4860,13 @@ export class ContentfulTopicCreated implements IContentfulTopicCreated {
|
|
|
4860
4860
|
constructor(properties?: IContentfulTopicCreated);
|
|
4861
4861
|
|
|
4862
4862
|
/** ContentfulTopicCreated name. */
|
|
4863
|
-
public name: string;
|
|
4863
|
+
public name: { [k: string]: string };
|
|
4864
4864
|
|
|
4865
4865
|
/** ContentfulTopicCreated slug. */
|
|
4866
4866
|
public slug: string;
|
|
4867
4867
|
|
|
4868
4868
|
/** ContentfulTopicCreated description. */
|
|
4869
|
-
public description: string;
|
|
4869
|
+
public description: { [k: string]: string };
|
|
4870
4870
|
|
|
4871
4871
|
/** ContentfulTopicCreated location. */
|
|
4872
4872
|
public location: string;
|
|
@@ -4970,13 +4970,13 @@ export class ContentfulTopicCreated implements IContentfulTopicCreated {
|
|
|
4970
4970
|
export interface IContentfulTopicUpdated {
|
|
4971
4971
|
|
|
4972
4972
|
/** ContentfulTopicUpdated name */
|
|
4973
|
-
name?: (string|null);
|
|
4973
|
+
name?: ({ [k: string]: string }|null);
|
|
4974
4974
|
|
|
4975
4975
|
/** ContentfulTopicUpdated slug */
|
|
4976
4976
|
slug?: (string|null);
|
|
4977
4977
|
|
|
4978
4978
|
/** ContentfulTopicUpdated description */
|
|
4979
|
-
description?: (string|null);
|
|
4979
|
+
description?: ({ [k: string]: string }|null);
|
|
4980
4980
|
|
|
4981
4981
|
/** ContentfulTopicUpdated location */
|
|
4982
4982
|
location?: (string|null);
|
|
@@ -5016,13 +5016,13 @@ export class ContentfulTopicUpdated implements IContentfulTopicUpdated {
|
|
|
5016
5016
|
constructor(properties?: IContentfulTopicUpdated);
|
|
5017
5017
|
|
|
5018
5018
|
/** ContentfulTopicUpdated name. */
|
|
5019
|
-
public name: string;
|
|
5019
|
+
public name: { [k: string]: string };
|
|
5020
5020
|
|
|
5021
5021
|
/** ContentfulTopicUpdated slug. */
|
|
5022
5022
|
public slug: string;
|
|
5023
5023
|
|
|
5024
5024
|
/** ContentfulTopicUpdated description. */
|
|
5025
|
-
public description: string;
|
|
5025
|
+
public description: { [k: string]: string };
|
|
5026
5026
|
|
|
5027
5027
|
/** ContentfulTopicUpdated location. */
|
|
5028
5028
|
public location: string;
|
package/lib/index.js
CHANGED
|
@@ -11503,7 +11503,7 @@ $root.ContentfulCategoryCreated = (function() {
|
|
|
11503
11503
|
* Properties of a ContentfulCategoryCreated.
|
|
11504
11504
|
* @exports IContentfulCategoryCreated
|
|
11505
11505
|
* @interface IContentfulCategoryCreated
|
|
11506
|
-
* @property {string
|
|
11506
|
+
* @property {Object.<string,string>|null} [name] ContentfulCategoryCreated name
|
|
11507
11507
|
* @property {string|null} [slug] ContentfulCategoryCreated slug
|
|
11508
11508
|
* @property {contentful.ISlugReference|null} [topic] ContentfulCategoryCreated topic
|
|
11509
11509
|
* @property {string|null} [type] ContentfulCategoryCreated type
|
|
@@ -11520,6 +11520,7 @@ $root.ContentfulCategoryCreated = (function() {
|
|
|
11520
11520
|
* @param {IContentfulCategoryCreated=} [properties] Properties to set
|
|
11521
11521
|
*/
|
|
11522
11522
|
function ContentfulCategoryCreated(properties) {
|
|
11523
|
+
this.name = {};
|
|
11523
11524
|
this.content = [];
|
|
11524
11525
|
if (properties)
|
|
11525
11526
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -11529,11 +11530,11 @@ $root.ContentfulCategoryCreated = (function() {
|
|
|
11529
11530
|
|
|
11530
11531
|
/**
|
|
11531
11532
|
* ContentfulCategoryCreated name.
|
|
11532
|
-
* @member {string} name
|
|
11533
|
+
* @member {Object.<string,string>} name
|
|
11533
11534
|
* @memberof ContentfulCategoryCreated
|
|
11534
11535
|
* @instance
|
|
11535
11536
|
*/
|
|
11536
|
-
ContentfulCategoryCreated.prototype.name =
|
|
11537
|
+
ContentfulCategoryCreated.prototype.name = $util.emptyObject;
|
|
11537
11538
|
|
|
11538
11539
|
/**
|
|
11539
11540
|
* ContentfulCategoryCreated slug.
|
|
@@ -11600,7 +11601,8 @@ $root.ContentfulCategoryCreated = (function() {
|
|
|
11600
11601
|
if (!writer)
|
|
11601
11602
|
writer = $Writer.create();
|
|
11602
11603
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
11603
|
-
|
|
11604
|
+
for (var keys = Object.keys(message.name), i = 0; i < keys.length; ++i)
|
|
11605
|
+
writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.name[keys[i]]).ldelim();
|
|
11604
11606
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
11605
11607
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
|
|
11606
11608
|
if (message.topic != null && message.hasOwnProperty("topic"))
|
|
@@ -11642,12 +11644,17 @@ $root.ContentfulCategoryCreated = (function() {
|
|
|
11642
11644
|
ContentfulCategoryCreated.decode = function decode(reader, length) {
|
|
11643
11645
|
if (!(reader instanceof $Reader))
|
|
11644
11646
|
reader = $Reader.create(reader);
|
|
11645
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulCategoryCreated();
|
|
11647
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulCategoryCreated(), key;
|
|
11646
11648
|
while (reader.pos < end) {
|
|
11647
11649
|
var tag = reader.uint32();
|
|
11648
11650
|
switch (tag >>> 3) {
|
|
11649
11651
|
case 1:
|
|
11650
|
-
|
|
11652
|
+
reader.skip().pos++;
|
|
11653
|
+
if (message.name === $util.emptyObject)
|
|
11654
|
+
message.name = {};
|
|
11655
|
+
key = reader.string();
|
|
11656
|
+
reader.pos++;
|
|
11657
|
+
message.name[key] = reader.string();
|
|
11651
11658
|
break;
|
|
11652
11659
|
case 2:
|
|
11653
11660
|
message.slug = reader.string();
|
|
@@ -11701,9 +11708,14 @@ $root.ContentfulCategoryCreated = (function() {
|
|
|
11701
11708
|
ContentfulCategoryCreated.verify = function verify(message) {
|
|
11702
11709
|
if (typeof message !== "object" || message === null)
|
|
11703
11710
|
return "object expected";
|
|
11704
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
11705
|
-
if (!$util.
|
|
11706
|
-
return "name:
|
|
11711
|
+
if (message.name != null && message.hasOwnProperty("name")) {
|
|
11712
|
+
if (!$util.isObject(message.name))
|
|
11713
|
+
return "name: object expected";
|
|
11714
|
+
var key = Object.keys(message.name);
|
|
11715
|
+
for (var i = 0; i < key.length; ++i)
|
|
11716
|
+
if (!$util.isString(message.name[key[i]]))
|
|
11717
|
+
return "name: string{k:string} expected";
|
|
11718
|
+
}
|
|
11707
11719
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
11708
11720
|
if (!$util.isString(message.slug))
|
|
11709
11721
|
return "slug: string expected";
|
|
@@ -11742,8 +11754,13 @@ $root.ContentfulCategoryCreated = (function() {
|
|
|
11742
11754
|
if (object instanceof $root.ContentfulCategoryCreated)
|
|
11743
11755
|
return object;
|
|
11744
11756
|
var message = new $root.ContentfulCategoryCreated();
|
|
11745
|
-
if (object.name
|
|
11746
|
-
|
|
11757
|
+
if (object.name) {
|
|
11758
|
+
if (typeof object.name !== "object")
|
|
11759
|
+
throw TypeError(".ContentfulCategoryCreated.name: object expected");
|
|
11760
|
+
message.name = {};
|
|
11761
|
+
for (var keys = Object.keys(object.name), i = 0; i < keys.length; ++i)
|
|
11762
|
+
message.name[keys[i]] = String(object.name[keys[i]]);
|
|
11763
|
+
}
|
|
11747
11764
|
if (object.slug != null)
|
|
11748
11765
|
message.slug = String(object.slug);
|
|
11749
11766
|
if (object.topic != null) {
|
|
@@ -11790,8 +11807,9 @@ $root.ContentfulCategoryCreated = (function() {
|
|
|
11790
11807
|
var object = {};
|
|
11791
11808
|
if (options.arrays || options.defaults)
|
|
11792
11809
|
object.content = [];
|
|
11810
|
+
if (options.objects || options.defaults)
|
|
11811
|
+
object.name = {};
|
|
11793
11812
|
if (options.defaults) {
|
|
11794
|
-
object.name = "";
|
|
11795
11813
|
object.slug = "";
|
|
11796
11814
|
object.topic = null;
|
|
11797
11815
|
object.type = "";
|
|
@@ -11801,8 +11819,12 @@ $root.ContentfulCategoryCreated = (function() {
|
|
|
11801
11819
|
} else
|
|
11802
11820
|
object.createdAt = options.longs === String ? "0" : 0;
|
|
11803
11821
|
}
|
|
11804
|
-
|
|
11805
|
-
|
|
11822
|
+
var keys2;
|
|
11823
|
+
if (message.name && (keys2 = Object.keys(message.name)).length) {
|
|
11824
|
+
object.name = {};
|
|
11825
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
11826
|
+
object.name[keys2[j]] = message.name[keys2[j]];
|
|
11827
|
+
}
|
|
11806
11828
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
11807
11829
|
object.slug = message.slug;
|
|
11808
11830
|
if (message.topic != null && message.hasOwnProperty("topic"))
|
|
@@ -11842,7 +11864,7 @@ $root.ContentfulCategoryUpdated = (function() {
|
|
|
11842
11864
|
* Properties of a ContentfulCategoryUpdated.
|
|
11843
11865
|
* @exports IContentfulCategoryUpdated
|
|
11844
11866
|
* @interface IContentfulCategoryUpdated
|
|
11845
|
-
* @property {string
|
|
11867
|
+
* @property {Object.<string,string>|null} [name] ContentfulCategoryUpdated name
|
|
11846
11868
|
* @property {string|null} [slug] ContentfulCategoryUpdated slug
|
|
11847
11869
|
* @property {contentful.ISlugReference|null} [topic] ContentfulCategoryUpdated topic
|
|
11848
11870
|
* @property {string|null} [type] ContentfulCategoryUpdated type
|
|
@@ -11859,6 +11881,7 @@ $root.ContentfulCategoryUpdated = (function() {
|
|
|
11859
11881
|
* @param {IContentfulCategoryUpdated=} [properties] Properties to set
|
|
11860
11882
|
*/
|
|
11861
11883
|
function ContentfulCategoryUpdated(properties) {
|
|
11884
|
+
this.name = {};
|
|
11862
11885
|
this.content = [];
|
|
11863
11886
|
if (properties)
|
|
11864
11887
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -11868,11 +11891,11 @@ $root.ContentfulCategoryUpdated = (function() {
|
|
|
11868
11891
|
|
|
11869
11892
|
/**
|
|
11870
11893
|
* ContentfulCategoryUpdated name.
|
|
11871
|
-
* @member {string} name
|
|
11894
|
+
* @member {Object.<string,string>} name
|
|
11872
11895
|
* @memberof ContentfulCategoryUpdated
|
|
11873
11896
|
* @instance
|
|
11874
11897
|
*/
|
|
11875
|
-
ContentfulCategoryUpdated.prototype.name =
|
|
11898
|
+
ContentfulCategoryUpdated.prototype.name = $util.emptyObject;
|
|
11876
11899
|
|
|
11877
11900
|
/**
|
|
11878
11901
|
* ContentfulCategoryUpdated slug.
|
|
@@ -11939,7 +11962,8 @@ $root.ContentfulCategoryUpdated = (function() {
|
|
|
11939
11962
|
if (!writer)
|
|
11940
11963
|
writer = $Writer.create();
|
|
11941
11964
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
11942
|
-
|
|
11965
|
+
for (var keys = Object.keys(message.name), i = 0; i < keys.length; ++i)
|
|
11966
|
+
writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.name[keys[i]]).ldelim();
|
|
11943
11967
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
11944
11968
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
|
|
11945
11969
|
if (message.topic != null && message.hasOwnProperty("topic"))
|
|
@@ -11981,12 +12005,17 @@ $root.ContentfulCategoryUpdated = (function() {
|
|
|
11981
12005
|
ContentfulCategoryUpdated.decode = function decode(reader, length) {
|
|
11982
12006
|
if (!(reader instanceof $Reader))
|
|
11983
12007
|
reader = $Reader.create(reader);
|
|
11984
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulCategoryUpdated();
|
|
12008
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulCategoryUpdated(), key;
|
|
11985
12009
|
while (reader.pos < end) {
|
|
11986
12010
|
var tag = reader.uint32();
|
|
11987
12011
|
switch (tag >>> 3) {
|
|
11988
12012
|
case 1:
|
|
11989
|
-
|
|
12013
|
+
reader.skip().pos++;
|
|
12014
|
+
if (message.name === $util.emptyObject)
|
|
12015
|
+
message.name = {};
|
|
12016
|
+
key = reader.string();
|
|
12017
|
+
reader.pos++;
|
|
12018
|
+
message.name[key] = reader.string();
|
|
11990
12019
|
break;
|
|
11991
12020
|
case 2:
|
|
11992
12021
|
message.slug = reader.string();
|
|
@@ -12040,9 +12069,14 @@ $root.ContentfulCategoryUpdated = (function() {
|
|
|
12040
12069
|
ContentfulCategoryUpdated.verify = function verify(message) {
|
|
12041
12070
|
if (typeof message !== "object" || message === null)
|
|
12042
12071
|
return "object expected";
|
|
12043
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
12044
|
-
if (!$util.
|
|
12045
|
-
return "name:
|
|
12072
|
+
if (message.name != null && message.hasOwnProperty("name")) {
|
|
12073
|
+
if (!$util.isObject(message.name))
|
|
12074
|
+
return "name: object expected";
|
|
12075
|
+
var key = Object.keys(message.name);
|
|
12076
|
+
for (var i = 0; i < key.length; ++i)
|
|
12077
|
+
if (!$util.isString(message.name[key[i]]))
|
|
12078
|
+
return "name: string{k:string} expected";
|
|
12079
|
+
}
|
|
12046
12080
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
12047
12081
|
if (!$util.isString(message.slug))
|
|
12048
12082
|
return "slug: string expected";
|
|
@@ -12081,8 +12115,13 @@ $root.ContentfulCategoryUpdated = (function() {
|
|
|
12081
12115
|
if (object instanceof $root.ContentfulCategoryUpdated)
|
|
12082
12116
|
return object;
|
|
12083
12117
|
var message = new $root.ContentfulCategoryUpdated();
|
|
12084
|
-
if (object.name
|
|
12085
|
-
|
|
12118
|
+
if (object.name) {
|
|
12119
|
+
if (typeof object.name !== "object")
|
|
12120
|
+
throw TypeError(".ContentfulCategoryUpdated.name: object expected");
|
|
12121
|
+
message.name = {};
|
|
12122
|
+
for (var keys = Object.keys(object.name), i = 0; i < keys.length; ++i)
|
|
12123
|
+
message.name[keys[i]] = String(object.name[keys[i]]);
|
|
12124
|
+
}
|
|
12086
12125
|
if (object.slug != null)
|
|
12087
12126
|
message.slug = String(object.slug);
|
|
12088
12127
|
if (object.topic != null) {
|
|
@@ -12129,8 +12168,9 @@ $root.ContentfulCategoryUpdated = (function() {
|
|
|
12129
12168
|
var object = {};
|
|
12130
12169
|
if (options.arrays || options.defaults)
|
|
12131
12170
|
object.content = [];
|
|
12171
|
+
if (options.objects || options.defaults)
|
|
12172
|
+
object.name = {};
|
|
12132
12173
|
if (options.defaults) {
|
|
12133
|
-
object.name = "";
|
|
12134
12174
|
object.slug = "";
|
|
12135
12175
|
object.topic = null;
|
|
12136
12176
|
object.type = "";
|
|
@@ -12140,8 +12180,12 @@ $root.ContentfulCategoryUpdated = (function() {
|
|
|
12140
12180
|
} else
|
|
12141
12181
|
object.updatedAt = options.longs === String ? "0" : 0;
|
|
12142
12182
|
}
|
|
12143
|
-
|
|
12144
|
-
|
|
12183
|
+
var keys2;
|
|
12184
|
+
if (message.name && (keys2 = Object.keys(message.name)).length) {
|
|
12185
|
+
object.name = {};
|
|
12186
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
12187
|
+
object.name[keys2[j]] = message.name[keys2[j]];
|
|
12188
|
+
}
|
|
12145
12189
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
12146
12190
|
object.slug = message.slug;
|
|
12147
12191
|
if (message.topic != null && message.hasOwnProperty("topic"))
|
|
@@ -12405,9 +12449,9 @@ $root.ContentfulTopicCreated = (function() {
|
|
|
12405
12449
|
* Properties of a ContentfulTopicCreated.
|
|
12406
12450
|
* @exports IContentfulTopicCreated
|
|
12407
12451
|
* @interface IContentfulTopicCreated
|
|
12408
|
-
* @property {string
|
|
12452
|
+
* @property {Object.<string,string>|null} [name] ContentfulTopicCreated name
|
|
12409
12453
|
* @property {string|null} [slug] ContentfulTopicCreated slug
|
|
12410
|
-
* @property {string
|
|
12454
|
+
* @property {Object.<string,string>|null} [description] ContentfulTopicCreated description
|
|
12411
12455
|
* @property {string|null} [location] ContentfulTopicCreated location
|
|
12412
12456
|
* @property {string|null} [primaryColor] ContentfulTopicCreated primaryColor
|
|
12413
12457
|
* @property {string|null} [secondaryColor] ContentfulTopicCreated secondaryColor
|
|
@@ -12428,6 +12472,8 @@ $root.ContentfulTopicCreated = (function() {
|
|
|
12428
12472
|
* @param {IContentfulTopicCreated=} [properties] Properties to set
|
|
12429
12473
|
*/
|
|
12430
12474
|
function ContentfulTopicCreated(properties) {
|
|
12475
|
+
this.name = {};
|
|
12476
|
+
this.description = {};
|
|
12431
12477
|
this.iconMedia = {};
|
|
12432
12478
|
this.headerPatternMedia = {};
|
|
12433
12479
|
this.menuPatternMedia = {};
|
|
@@ -12440,11 +12486,11 @@ $root.ContentfulTopicCreated = (function() {
|
|
|
12440
12486
|
|
|
12441
12487
|
/**
|
|
12442
12488
|
* ContentfulTopicCreated name.
|
|
12443
|
-
* @member {string} name
|
|
12489
|
+
* @member {Object.<string,string>} name
|
|
12444
12490
|
* @memberof ContentfulTopicCreated
|
|
12445
12491
|
* @instance
|
|
12446
12492
|
*/
|
|
12447
|
-
ContentfulTopicCreated.prototype.name =
|
|
12493
|
+
ContentfulTopicCreated.prototype.name = $util.emptyObject;
|
|
12448
12494
|
|
|
12449
12495
|
/**
|
|
12450
12496
|
* ContentfulTopicCreated slug.
|
|
@@ -12456,11 +12502,11 @@ $root.ContentfulTopicCreated = (function() {
|
|
|
12456
12502
|
|
|
12457
12503
|
/**
|
|
12458
12504
|
* ContentfulTopicCreated description.
|
|
12459
|
-
* @member {string} description
|
|
12505
|
+
* @member {Object.<string,string>} description
|
|
12460
12506
|
* @memberof ContentfulTopicCreated
|
|
12461
12507
|
* @instance
|
|
12462
12508
|
*/
|
|
12463
|
-
ContentfulTopicCreated.prototype.description =
|
|
12509
|
+
ContentfulTopicCreated.prototype.description = $util.emptyObject;
|
|
12464
12510
|
|
|
12465
12511
|
/**
|
|
12466
12512
|
* ContentfulTopicCreated location.
|
|
@@ -12559,11 +12605,13 @@ $root.ContentfulTopicCreated = (function() {
|
|
|
12559
12605
|
if (!writer)
|
|
12560
12606
|
writer = $Writer.create();
|
|
12561
12607
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
12562
|
-
|
|
12608
|
+
for (var keys = Object.keys(message.name), i = 0; i < keys.length; ++i)
|
|
12609
|
+
writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.name[keys[i]]).ldelim();
|
|
12563
12610
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
12564
12611
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
|
|
12565
12612
|
if (message.description != null && message.hasOwnProperty("description"))
|
|
12566
|
-
|
|
12613
|
+
for (var keys = Object.keys(message.description), i = 0; i < keys.length; ++i)
|
|
12614
|
+
writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.description[keys[i]]).ldelim();
|
|
12567
12615
|
if (message.location != null && message.hasOwnProperty("location"))
|
|
12568
12616
|
writer.uint32(/* id 4, wireType 2 =*/34).string(message.location);
|
|
12569
12617
|
if (message.primaryColor != null && message.hasOwnProperty("primaryColor"))
|
|
@@ -12627,13 +12675,23 @@ $root.ContentfulTopicCreated = (function() {
|
|
|
12627
12675
|
var tag = reader.uint32();
|
|
12628
12676
|
switch (tag >>> 3) {
|
|
12629
12677
|
case 1:
|
|
12630
|
-
|
|
12678
|
+
reader.skip().pos++;
|
|
12679
|
+
if (message.name === $util.emptyObject)
|
|
12680
|
+
message.name = {};
|
|
12681
|
+
key = reader.string();
|
|
12682
|
+
reader.pos++;
|
|
12683
|
+
message.name[key] = reader.string();
|
|
12631
12684
|
break;
|
|
12632
12685
|
case 2:
|
|
12633
12686
|
message.slug = reader.string();
|
|
12634
12687
|
break;
|
|
12635
12688
|
case 3:
|
|
12636
|
-
|
|
12689
|
+
reader.skip().pos++;
|
|
12690
|
+
if (message.description === $util.emptyObject)
|
|
12691
|
+
message.description = {};
|
|
12692
|
+
key = reader.string();
|
|
12693
|
+
reader.pos++;
|
|
12694
|
+
message.description[key] = reader.string();
|
|
12637
12695
|
break;
|
|
12638
12696
|
case 4:
|
|
12639
12697
|
message.location = reader.string();
|
|
@@ -12714,15 +12772,25 @@ $root.ContentfulTopicCreated = (function() {
|
|
|
12714
12772
|
ContentfulTopicCreated.verify = function verify(message) {
|
|
12715
12773
|
if (typeof message !== "object" || message === null)
|
|
12716
12774
|
return "object expected";
|
|
12717
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
12718
|
-
if (!$util.
|
|
12719
|
-
return "name:
|
|
12775
|
+
if (message.name != null && message.hasOwnProperty("name")) {
|
|
12776
|
+
if (!$util.isObject(message.name))
|
|
12777
|
+
return "name: object expected";
|
|
12778
|
+
var key = Object.keys(message.name);
|
|
12779
|
+
for (var i = 0; i < key.length; ++i)
|
|
12780
|
+
if (!$util.isString(message.name[key[i]]))
|
|
12781
|
+
return "name: string{k:string} expected";
|
|
12782
|
+
}
|
|
12720
12783
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
12721
12784
|
if (!$util.isString(message.slug))
|
|
12722
12785
|
return "slug: string expected";
|
|
12723
|
-
if (message.description != null && message.hasOwnProperty("description"))
|
|
12724
|
-
if (!$util.
|
|
12725
|
-
return "description:
|
|
12786
|
+
if (message.description != null && message.hasOwnProperty("description")) {
|
|
12787
|
+
if (!$util.isObject(message.description))
|
|
12788
|
+
return "description: object expected";
|
|
12789
|
+
var key = Object.keys(message.description);
|
|
12790
|
+
for (var i = 0; i < key.length; ++i)
|
|
12791
|
+
if (!$util.isString(message.description[key[i]]))
|
|
12792
|
+
return "description: string{k:string} expected";
|
|
12793
|
+
}
|
|
12726
12794
|
if (message.location != null && message.hasOwnProperty("location"))
|
|
12727
12795
|
if (!$util.isString(message.location))
|
|
12728
12796
|
return "location: string expected";
|
|
@@ -12792,12 +12860,22 @@ $root.ContentfulTopicCreated = (function() {
|
|
|
12792
12860
|
if (object instanceof $root.ContentfulTopicCreated)
|
|
12793
12861
|
return object;
|
|
12794
12862
|
var message = new $root.ContentfulTopicCreated();
|
|
12795
|
-
if (object.name
|
|
12796
|
-
|
|
12863
|
+
if (object.name) {
|
|
12864
|
+
if (typeof object.name !== "object")
|
|
12865
|
+
throw TypeError(".ContentfulTopicCreated.name: object expected");
|
|
12866
|
+
message.name = {};
|
|
12867
|
+
for (var keys = Object.keys(object.name), i = 0; i < keys.length; ++i)
|
|
12868
|
+
message.name[keys[i]] = String(object.name[keys[i]]);
|
|
12869
|
+
}
|
|
12797
12870
|
if (object.slug != null)
|
|
12798
12871
|
message.slug = String(object.slug);
|
|
12799
|
-
if (object.description
|
|
12800
|
-
|
|
12872
|
+
if (object.description) {
|
|
12873
|
+
if (typeof object.description !== "object")
|
|
12874
|
+
throw TypeError(".ContentfulTopicCreated.description: object expected");
|
|
12875
|
+
message.description = {};
|
|
12876
|
+
for (var keys = Object.keys(object.description), i = 0; i < keys.length; ++i)
|
|
12877
|
+
message.description[keys[i]] = String(object.description[keys[i]]);
|
|
12878
|
+
}
|
|
12801
12879
|
if (object.location != null)
|
|
12802
12880
|
message.location = String(object.location);
|
|
12803
12881
|
if (object.primaryColor != null)
|
|
@@ -12874,14 +12952,14 @@ $root.ContentfulTopicCreated = (function() {
|
|
|
12874
12952
|
if (options.arrays || options.defaults)
|
|
12875
12953
|
object.accessGroups = [];
|
|
12876
12954
|
if (options.objects || options.defaults) {
|
|
12955
|
+
object.name = {};
|
|
12956
|
+
object.description = {};
|
|
12877
12957
|
object.iconMedia = {};
|
|
12878
12958
|
object.headerPatternMedia = {};
|
|
12879
12959
|
object.menuPatternMedia = {};
|
|
12880
12960
|
}
|
|
12881
12961
|
if (options.defaults) {
|
|
12882
|
-
object.name = "";
|
|
12883
12962
|
object.slug = "";
|
|
12884
|
-
object.description = "";
|
|
12885
12963
|
object.location = "";
|
|
12886
12964
|
object.primaryColor = "";
|
|
12887
12965
|
object.secondaryColor = "";
|
|
@@ -12892,12 +12970,19 @@ $root.ContentfulTopicCreated = (function() {
|
|
|
12892
12970
|
} else
|
|
12893
12971
|
object.createdAt = options.longs === String ? "0" : 0;
|
|
12894
12972
|
}
|
|
12895
|
-
|
|
12896
|
-
|
|
12973
|
+
var keys2;
|
|
12974
|
+
if (message.name && (keys2 = Object.keys(message.name)).length) {
|
|
12975
|
+
object.name = {};
|
|
12976
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
12977
|
+
object.name[keys2[j]] = message.name[keys2[j]];
|
|
12978
|
+
}
|
|
12897
12979
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
12898
12980
|
object.slug = message.slug;
|
|
12899
|
-
if (message.description
|
|
12900
|
-
object.description =
|
|
12981
|
+
if (message.description && (keys2 = Object.keys(message.description)).length) {
|
|
12982
|
+
object.description = {};
|
|
12983
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
12984
|
+
object.description[keys2[j]] = message.description[keys2[j]];
|
|
12985
|
+
}
|
|
12901
12986
|
if (message.location != null && message.hasOwnProperty("location"))
|
|
12902
12987
|
object.location = message.location;
|
|
12903
12988
|
if (message.primaryColor != null && message.hasOwnProperty("primaryColor"))
|
|
@@ -12906,7 +12991,6 @@ $root.ContentfulTopicCreated = (function() {
|
|
|
12906
12991
|
object.secondaryColor = message.secondaryColor;
|
|
12907
12992
|
if (message.tertiaryColor != null && message.hasOwnProperty("tertiaryColor"))
|
|
12908
12993
|
object.tertiaryColor = message.tertiaryColor;
|
|
12909
|
-
var keys2;
|
|
12910
12994
|
if (message.iconMedia && (keys2 = Object.keys(message.iconMedia)).length) {
|
|
12911
12995
|
object.iconMedia = {};
|
|
12912
12996
|
for (var j = 0; j < keys2.length; ++j)
|
|
@@ -12955,9 +13039,9 @@ $root.ContentfulTopicUpdated = (function() {
|
|
|
12955
13039
|
* Properties of a ContentfulTopicUpdated.
|
|
12956
13040
|
* @exports IContentfulTopicUpdated
|
|
12957
13041
|
* @interface IContentfulTopicUpdated
|
|
12958
|
-
* @property {string
|
|
13042
|
+
* @property {Object.<string,string>|null} [name] ContentfulTopicUpdated name
|
|
12959
13043
|
* @property {string|null} [slug] ContentfulTopicUpdated slug
|
|
12960
|
-
* @property {string
|
|
13044
|
+
* @property {Object.<string,string>|null} [description] ContentfulTopicUpdated description
|
|
12961
13045
|
* @property {string|null} [location] ContentfulTopicUpdated location
|
|
12962
13046
|
* @property {string|null} [primaryColor] ContentfulTopicUpdated primaryColor
|
|
12963
13047
|
* @property {string|null} [secondaryColor] ContentfulTopicUpdated secondaryColor
|
|
@@ -12978,6 +13062,8 @@ $root.ContentfulTopicUpdated = (function() {
|
|
|
12978
13062
|
* @param {IContentfulTopicUpdated=} [properties] Properties to set
|
|
12979
13063
|
*/
|
|
12980
13064
|
function ContentfulTopicUpdated(properties) {
|
|
13065
|
+
this.name = {};
|
|
13066
|
+
this.description = {};
|
|
12981
13067
|
this.iconMedia = {};
|
|
12982
13068
|
this.headerPatternMedia = {};
|
|
12983
13069
|
this.menuPatternMedia = {};
|
|
@@ -12990,11 +13076,11 @@ $root.ContentfulTopicUpdated = (function() {
|
|
|
12990
13076
|
|
|
12991
13077
|
/**
|
|
12992
13078
|
* ContentfulTopicUpdated name.
|
|
12993
|
-
* @member {string} name
|
|
13079
|
+
* @member {Object.<string,string>} name
|
|
12994
13080
|
* @memberof ContentfulTopicUpdated
|
|
12995
13081
|
* @instance
|
|
12996
13082
|
*/
|
|
12997
|
-
ContentfulTopicUpdated.prototype.name =
|
|
13083
|
+
ContentfulTopicUpdated.prototype.name = $util.emptyObject;
|
|
12998
13084
|
|
|
12999
13085
|
/**
|
|
13000
13086
|
* ContentfulTopicUpdated slug.
|
|
@@ -13006,11 +13092,11 @@ $root.ContentfulTopicUpdated = (function() {
|
|
|
13006
13092
|
|
|
13007
13093
|
/**
|
|
13008
13094
|
* ContentfulTopicUpdated description.
|
|
13009
|
-
* @member {string} description
|
|
13095
|
+
* @member {Object.<string,string>} description
|
|
13010
13096
|
* @memberof ContentfulTopicUpdated
|
|
13011
13097
|
* @instance
|
|
13012
13098
|
*/
|
|
13013
|
-
ContentfulTopicUpdated.prototype.description =
|
|
13099
|
+
ContentfulTopicUpdated.prototype.description = $util.emptyObject;
|
|
13014
13100
|
|
|
13015
13101
|
/**
|
|
13016
13102
|
* ContentfulTopicUpdated location.
|
|
@@ -13109,11 +13195,13 @@ $root.ContentfulTopicUpdated = (function() {
|
|
|
13109
13195
|
if (!writer)
|
|
13110
13196
|
writer = $Writer.create();
|
|
13111
13197
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
13112
|
-
|
|
13198
|
+
for (var keys = Object.keys(message.name), i = 0; i < keys.length; ++i)
|
|
13199
|
+
writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.name[keys[i]]).ldelim();
|
|
13113
13200
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
13114
13201
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
|
|
13115
13202
|
if (message.description != null && message.hasOwnProperty("description"))
|
|
13116
|
-
|
|
13203
|
+
for (var keys = Object.keys(message.description), i = 0; i < keys.length; ++i)
|
|
13204
|
+
writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.description[keys[i]]).ldelim();
|
|
13117
13205
|
if (message.location != null && message.hasOwnProperty("location"))
|
|
13118
13206
|
writer.uint32(/* id 4, wireType 2 =*/34).string(message.location);
|
|
13119
13207
|
if (message.primaryColor != null && message.hasOwnProperty("primaryColor"))
|
|
@@ -13177,13 +13265,23 @@ $root.ContentfulTopicUpdated = (function() {
|
|
|
13177
13265
|
var tag = reader.uint32();
|
|
13178
13266
|
switch (tag >>> 3) {
|
|
13179
13267
|
case 1:
|
|
13180
|
-
|
|
13268
|
+
reader.skip().pos++;
|
|
13269
|
+
if (message.name === $util.emptyObject)
|
|
13270
|
+
message.name = {};
|
|
13271
|
+
key = reader.string();
|
|
13272
|
+
reader.pos++;
|
|
13273
|
+
message.name[key] = reader.string();
|
|
13181
13274
|
break;
|
|
13182
13275
|
case 2:
|
|
13183
13276
|
message.slug = reader.string();
|
|
13184
13277
|
break;
|
|
13185
13278
|
case 3:
|
|
13186
|
-
|
|
13279
|
+
reader.skip().pos++;
|
|
13280
|
+
if (message.description === $util.emptyObject)
|
|
13281
|
+
message.description = {};
|
|
13282
|
+
key = reader.string();
|
|
13283
|
+
reader.pos++;
|
|
13284
|
+
message.description[key] = reader.string();
|
|
13187
13285
|
break;
|
|
13188
13286
|
case 4:
|
|
13189
13287
|
message.location = reader.string();
|
|
@@ -13264,15 +13362,25 @@ $root.ContentfulTopicUpdated = (function() {
|
|
|
13264
13362
|
ContentfulTopicUpdated.verify = function verify(message) {
|
|
13265
13363
|
if (typeof message !== "object" || message === null)
|
|
13266
13364
|
return "object expected";
|
|
13267
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
13268
|
-
if (!$util.
|
|
13269
|
-
return "name:
|
|
13365
|
+
if (message.name != null && message.hasOwnProperty("name")) {
|
|
13366
|
+
if (!$util.isObject(message.name))
|
|
13367
|
+
return "name: object expected";
|
|
13368
|
+
var key = Object.keys(message.name);
|
|
13369
|
+
for (var i = 0; i < key.length; ++i)
|
|
13370
|
+
if (!$util.isString(message.name[key[i]]))
|
|
13371
|
+
return "name: string{k:string} expected";
|
|
13372
|
+
}
|
|
13270
13373
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
13271
13374
|
if (!$util.isString(message.slug))
|
|
13272
13375
|
return "slug: string expected";
|
|
13273
|
-
if (message.description != null && message.hasOwnProperty("description"))
|
|
13274
|
-
if (!$util.
|
|
13275
|
-
return "description:
|
|
13376
|
+
if (message.description != null && message.hasOwnProperty("description")) {
|
|
13377
|
+
if (!$util.isObject(message.description))
|
|
13378
|
+
return "description: object expected";
|
|
13379
|
+
var key = Object.keys(message.description);
|
|
13380
|
+
for (var i = 0; i < key.length; ++i)
|
|
13381
|
+
if (!$util.isString(message.description[key[i]]))
|
|
13382
|
+
return "description: string{k:string} expected";
|
|
13383
|
+
}
|
|
13276
13384
|
if (message.location != null && message.hasOwnProperty("location"))
|
|
13277
13385
|
if (!$util.isString(message.location))
|
|
13278
13386
|
return "location: string expected";
|
|
@@ -13342,12 +13450,22 @@ $root.ContentfulTopicUpdated = (function() {
|
|
|
13342
13450
|
if (object instanceof $root.ContentfulTopicUpdated)
|
|
13343
13451
|
return object;
|
|
13344
13452
|
var message = new $root.ContentfulTopicUpdated();
|
|
13345
|
-
if (object.name
|
|
13346
|
-
|
|
13453
|
+
if (object.name) {
|
|
13454
|
+
if (typeof object.name !== "object")
|
|
13455
|
+
throw TypeError(".ContentfulTopicUpdated.name: object expected");
|
|
13456
|
+
message.name = {};
|
|
13457
|
+
for (var keys = Object.keys(object.name), i = 0; i < keys.length; ++i)
|
|
13458
|
+
message.name[keys[i]] = String(object.name[keys[i]]);
|
|
13459
|
+
}
|
|
13347
13460
|
if (object.slug != null)
|
|
13348
13461
|
message.slug = String(object.slug);
|
|
13349
|
-
if (object.description
|
|
13350
|
-
|
|
13462
|
+
if (object.description) {
|
|
13463
|
+
if (typeof object.description !== "object")
|
|
13464
|
+
throw TypeError(".ContentfulTopicUpdated.description: object expected");
|
|
13465
|
+
message.description = {};
|
|
13466
|
+
for (var keys = Object.keys(object.description), i = 0; i < keys.length; ++i)
|
|
13467
|
+
message.description[keys[i]] = String(object.description[keys[i]]);
|
|
13468
|
+
}
|
|
13351
13469
|
if (object.location != null)
|
|
13352
13470
|
message.location = String(object.location);
|
|
13353
13471
|
if (object.primaryColor != null)
|
|
@@ -13424,14 +13542,14 @@ $root.ContentfulTopicUpdated = (function() {
|
|
|
13424
13542
|
if (options.arrays || options.defaults)
|
|
13425
13543
|
object.accessGroups = [];
|
|
13426
13544
|
if (options.objects || options.defaults) {
|
|
13545
|
+
object.name = {};
|
|
13546
|
+
object.description = {};
|
|
13427
13547
|
object.iconMedia = {};
|
|
13428
13548
|
object.headerPatternMedia = {};
|
|
13429
13549
|
object.menuPatternMedia = {};
|
|
13430
13550
|
}
|
|
13431
13551
|
if (options.defaults) {
|
|
13432
|
-
object.name = "";
|
|
13433
13552
|
object.slug = "";
|
|
13434
|
-
object.description = "";
|
|
13435
13553
|
object.location = "";
|
|
13436
13554
|
object.primaryColor = "";
|
|
13437
13555
|
object.secondaryColor = "";
|
|
@@ -13442,12 +13560,19 @@ $root.ContentfulTopicUpdated = (function() {
|
|
|
13442
13560
|
} else
|
|
13443
13561
|
object.updatedAt = options.longs === String ? "0" : 0;
|
|
13444
13562
|
}
|
|
13445
|
-
|
|
13446
|
-
|
|
13563
|
+
var keys2;
|
|
13564
|
+
if (message.name && (keys2 = Object.keys(message.name)).length) {
|
|
13565
|
+
object.name = {};
|
|
13566
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
13567
|
+
object.name[keys2[j]] = message.name[keys2[j]];
|
|
13568
|
+
}
|
|
13447
13569
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
13448
13570
|
object.slug = message.slug;
|
|
13449
|
-
if (message.description
|
|
13450
|
-
object.description =
|
|
13571
|
+
if (message.description && (keys2 = Object.keys(message.description)).length) {
|
|
13572
|
+
object.description = {};
|
|
13573
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
13574
|
+
object.description[keys2[j]] = message.description[keys2[j]];
|
|
13575
|
+
}
|
|
13451
13576
|
if (message.location != null && message.hasOwnProperty("location"))
|
|
13452
13577
|
object.location = message.location;
|
|
13453
13578
|
if (message.primaryColor != null && message.hasOwnProperty("primaryColor"))
|
|
@@ -13456,7 +13581,6 @@ $root.ContentfulTopicUpdated = (function() {
|
|
|
13456
13581
|
object.secondaryColor = message.secondaryColor;
|
|
13457
13582
|
if (message.tertiaryColor != null && message.hasOwnProperty("tertiaryColor"))
|
|
13458
13583
|
object.tertiaryColor = message.tertiaryColor;
|
|
13459
|
-
var keys2;
|
|
13460
13584
|
if (message.iconMedia && (keys2 = Object.keys(message.iconMedia)).length) {
|
|
13461
13585
|
object.iconMedia = {};
|
|
13462
13586
|
for (var j = 0; j < keys2.length; ++j)
|
package/package.json
CHANGED