@headspace/protos-events 1.129.0 → 1.130.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 +216 -0
- package/lib/index.js +580 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -5218,6 +5218,222 @@ export class ContentfulTopicDeleted implements IContentfulTopicDeleted {
|
|
|
5218
5218
|
public toJSON(): { [k: string]: any };
|
|
5219
5219
|
}
|
|
5220
5220
|
|
|
5221
|
+
/** Properties of a ContentfulOrderedTopicsCreated. */
|
|
5222
|
+
export interface IContentfulOrderedTopicsCreated {
|
|
5223
|
+
|
|
5224
|
+
/** ContentfulOrderedTopicsCreated slug */
|
|
5225
|
+
slug?: (string|null);
|
|
5226
|
+
|
|
5227
|
+
/** ContentfulOrderedTopicsCreated location */
|
|
5228
|
+
location?: (string|null);
|
|
5229
|
+
|
|
5230
|
+
/** ContentfulOrderedTopicsCreated topics */
|
|
5231
|
+
topics?: (contentful.ISlugReference[]|null);
|
|
5232
|
+
|
|
5233
|
+
/** ContentfulOrderedTopicsCreated createdAt */
|
|
5234
|
+
createdAt?: (number|Long|null);
|
|
5235
|
+
}
|
|
5236
|
+
|
|
5237
|
+
/** Represents a ContentfulOrderedTopicsCreated. */
|
|
5238
|
+
export class ContentfulOrderedTopicsCreated implements IContentfulOrderedTopicsCreated {
|
|
5239
|
+
|
|
5240
|
+
/**
|
|
5241
|
+
* Constructs a new ContentfulOrderedTopicsCreated.
|
|
5242
|
+
* @param [properties] Properties to set
|
|
5243
|
+
*/
|
|
5244
|
+
constructor(properties?: IContentfulOrderedTopicsCreated);
|
|
5245
|
+
|
|
5246
|
+
/** ContentfulOrderedTopicsCreated slug. */
|
|
5247
|
+
public slug: string;
|
|
5248
|
+
|
|
5249
|
+
/** ContentfulOrderedTopicsCreated location. */
|
|
5250
|
+
public location: string;
|
|
5251
|
+
|
|
5252
|
+
/** ContentfulOrderedTopicsCreated topics. */
|
|
5253
|
+
public topics: contentful.ISlugReference[];
|
|
5254
|
+
|
|
5255
|
+
/** ContentfulOrderedTopicsCreated createdAt. */
|
|
5256
|
+
public createdAt: (number|Long);
|
|
5257
|
+
|
|
5258
|
+
/**
|
|
5259
|
+
* Creates a new ContentfulOrderedTopicsCreated instance using the specified properties.
|
|
5260
|
+
* @param [properties] Properties to set
|
|
5261
|
+
* @returns ContentfulOrderedTopicsCreated instance
|
|
5262
|
+
*/
|
|
5263
|
+
public static create(properties?: IContentfulOrderedTopicsCreated): ContentfulOrderedTopicsCreated;
|
|
5264
|
+
|
|
5265
|
+
/**
|
|
5266
|
+
* Encodes the specified ContentfulOrderedTopicsCreated message. Does not implicitly {@link ContentfulOrderedTopicsCreated.verify|verify} messages.
|
|
5267
|
+
* @param message ContentfulOrderedTopicsCreated message or plain object to encode
|
|
5268
|
+
* @param [writer] Writer to encode to
|
|
5269
|
+
* @returns Writer
|
|
5270
|
+
*/
|
|
5271
|
+
public static encode(message: IContentfulOrderedTopicsCreated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5272
|
+
|
|
5273
|
+
/**
|
|
5274
|
+
* Encodes the specified ContentfulOrderedTopicsCreated message, length delimited. Does not implicitly {@link ContentfulOrderedTopicsCreated.verify|verify} messages.
|
|
5275
|
+
* @param message ContentfulOrderedTopicsCreated message or plain object to encode
|
|
5276
|
+
* @param [writer] Writer to encode to
|
|
5277
|
+
* @returns Writer
|
|
5278
|
+
*/
|
|
5279
|
+
public static encodeDelimited(message: IContentfulOrderedTopicsCreated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5280
|
+
|
|
5281
|
+
/**
|
|
5282
|
+
* Decodes a ContentfulOrderedTopicsCreated message from the specified reader or buffer.
|
|
5283
|
+
* @param reader Reader or buffer to decode from
|
|
5284
|
+
* @param [length] Message length if known beforehand
|
|
5285
|
+
* @returns ContentfulOrderedTopicsCreated
|
|
5286
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5287
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5288
|
+
*/
|
|
5289
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ContentfulOrderedTopicsCreated;
|
|
5290
|
+
|
|
5291
|
+
/**
|
|
5292
|
+
* Decodes a ContentfulOrderedTopicsCreated message from the specified reader or buffer, length delimited.
|
|
5293
|
+
* @param reader Reader or buffer to decode from
|
|
5294
|
+
* @returns ContentfulOrderedTopicsCreated
|
|
5295
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5296
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5297
|
+
*/
|
|
5298
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ContentfulOrderedTopicsCreated;
|
|
5299
|
+
|
|
5300
|
+
/**
|
|
5301
|
+
* Verifies a ContentfulOrderedTopicsCreated message.
|
|
5302
|
+
* @param message Plain object to verify
|
|
5303
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
5304
|
+
*/
|
|
5305
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
5306
|
+
|
|
5307
|
+
/**
|
|
5308
|
+
* Creates a ContentfulOrderedTopicsCreated message from a plain object. Also converts values to their respective internal types.
|
|
5309
|
+
* @param object Plain object
|
|
5310
|
+
* @returns ContentfulOrderedTopicsCreated
|
|
5311
|
+
*/
|
|
5312
|
+
public static fromObject(object: { [k: string]: any }): ContentfulOrderedTopicsCreated;
|
|
5313
|
+
|
|
5314
|
+
/**
|
|
5315
|
+
* Creates a plain object from a ContentfulOrderedTopicsCreated message. Also converts values to other types if specified.
|
|
5316
|
+
* @param message ContentfulOrderedTopicsCreated
|
|
5317
|
+
* @param [options] Conversion options
|
|
5318
|
+
* @returns Plain object
|
|
5319
|
+
*/
|
|
5320
|
+
public static toObject(message: ContentfulOrderedTopicsCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
5321
|
+
|
|
5322
|
+
/**
|
|
5323
|
+
* Converts this ContentfulOrderedTopicsCreated to JSON.
|
|
5324
|
+
* @returns JSON object
|
|
5325
|
+
*/
|
|
5326
|
+
public toJSON(): { [k: string]: any };
|
|
5327
|
+
}
|
|
5328
|
+
|
|
5329
|
+
/** Properties of a ContentfulOrderedTopicsUpdated. */
|
|
5330
|
+
export interface IContentfulOrderedTopicsUpdated {
|
|
5331
|
+
|
|
5332
|
+
/** ContentfulOrderedTopicsUpdated slug */
|
|
5333
|
+
slug?: (string|null);
|
|
5334
|
+
|
|
5335
|
+
/** ContentfulOrderedTopicsUpdated location */
|
|
5336
|
+
location?: (string|null);
|
|
5337
|
+
|
|
5338
|
+
/** ContentfulOrderedTopicsUpdated topics */
|
|
5339
|
+
topics?: (contentful.ISlugReference[]|null);
|
|
5340
|
+
|
|
5341
|
+
/** ContentfulOrderedTopicsUpdated updatedAt */
|
|
5342
|
+
updatedAt?: (number|Long|null);
|
|
5343
|
+
}
|
|
5344
|
+
|
|
5345
|
+
/** Represents a ContentfulOrderedTopicsUpdated. */
|
|
5346
|
+
export class ContentfulOrderedTopicsUpdated implements IContentfulOrderedTopicsUpdated {
|
|
5347
|
+
|
|
5348
|
+
/**
|
|
5349
|
+
* Constructs a new ContentfulOrderedTopicsUpdated.
|
|
5350
|
+
* @param [properties] Properties to set
|
|
5351
|
+
*/
|
|
5352
|
+
constructor(properties?: IContentfulOrderedTopicsUpdated);
|
|
5353
|
+
|
|
5354
|
+
/** ContentfulOrderedTopicsUpdated slug. */
|
|
5355
|
+
public slug: string;
|
|
5356
|
+
|
|
5357
|
+
/** ContentfulOrderedTopicsUpdated location. */
|
|
5358
|
+
public location: string;
|
|
5359
|
+
|
|
5360
|
+
/** ContentfulOrderedTopicsUpdated topics. */
|
|
5361
|
+
public topics: contentful.ISlugReference[];
|
|
5362
|
+
|
|
5363
|
+
/** ContentfulOrderedTopicsUpdated updatedAt. */
|
|
5364
|
+
public updatedAt: (number|Long);
|
|
5365
|
+
|
|
5366
|
+
/**
|
|
5367
|
+
* Creates a new ContentfulOrderedTopicsUpdated instance using the specified properties.
|
|
5368
|
+
* @param [properties] Properties to set
|
|
5369
|
+
* @returns ContentfulOrderedTopicsUpdated instance
|
|
5370
|
+
*/
|
|
5371
|
+
public static create(properties?: IContentfulOrderedTopicsUpdated): ContentfulOrderedTopicsUpdated;
|
|
5372
|
+
|
|
5373
|
+
/**
|
|
5374
|
+
* Encodes the specified ContentfulOrderedTopicsUpdated message. Does not implicitly {@link ContentfulOrderedTopicsUpdated.verify|verify} messages.
|
|
5375
|
+
* @param message ContentfulOrderedTopicsUpdated message or plain object to encode
|
|
5376
|
+
* @param [writer] Writer to encode to
|
|
5377
|
+
* @returns Writer
|
|
5378
|
+
*/
|
|
5379
|
+
public static encode(message: IContentfulOrderedTopicsUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5380
|
+
|
|
5381
|
+
/**
|
|
5382
|
+
* Encodes the specified ContentfulOrderedTopicsUpdated message, length delimited. Does not implicitly {@link ContentfulOrderedTopicsUpdated.verify|verify} messages.
|
|
5383
|
+
* @param message ContentfulOrderedTopicsUpdated message or plain object to encode
|
|
5384
|
+
* @param [writer] Writer to encode to
|
|
5385
|
+
* @returns Writer
|
|
5386
|
+
*/
|
|
5387
|
+
public static encodeDelimited(message: IContentfulOrderedTopicsUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5388
|
+
|
|
5389
|
+
/**
|
|
5390
|
+
* Decodes a ContentfulOrderedTopicsUpdated message from the specified reader or buffer.
|
|
5391
|
+
* @param reader Reader or buffer to decode from
|
|
5392
|
+
* @param [length] Message length if known beforehand
|
|
5393
|
+
* @returns ContentfulOrderedTopicsUpdated
|
|
5394
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5395
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5396
|
+
*/
|
|
5397
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ContentfulOrderedTopicsUpdated;
|
|
5398
|
+
|
|
5399
|
+
/**
|
|
5400
|
+
* Decodes a ContentfulOrderedTopicsUpdated message from the specified reader or buffer, length delimited.
|
|
5401
|
+
* @param reader Reader or buffer to decode from
|
|
5402
|
+
* @returns ContentfulOrderedTopicsUpdated
|
|
5403
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5404
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5405
|
+
*/
|
|
5406
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ContentfulOrderedTopicsUpdated;
|
|
5407
|
+
|
|
5408
|
+
/**
|
|
5409
|
+
* Verifies a ContentfulOrderedTopicsUpdated message.
|
|
5410
|
+
* @param message Plain object to verify
|
|
5411
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
5412
|
+
*/
|
|
5413
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
5414
|
+
|
|
5415
|
+
/**
|
|
5416
|
+
* Creates a ContentfulOrderedTopicsUpdated message from a plain object. Also converts values to their respective internal types.
|
|
5417
|
+
* @param object Plain object
|
|
5418
|
+
* @returns ContentfulOrderedTopicsUpdated
|
|
5419
|
+
*/
|
|
5420
|
+
public static fromObject(object: { [k: string]: any }): ContentfulOrderedTopicsUpdated;
|
|
5421
|
+
|
|
5422
|
+
/**
|
|
5423
|
+
* Creates a plain object from a ContentfulOrderedTopicsUpdated message. Also converts values to other types if specified.
|
|
5424
|
+
* @param message ContentfulOrderedTopicsUpdated
|
|
5425
|
+
* @param [options] Conversion options
|
|
5426
|
+
* @returns Plain object
|
|
5427
|
+
*/
|
|
5428
|
+
public static toObject(message: ContentfulOrderedTopicsUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
5429
|
+
|
|
5430
|
+
/**
|
|
5431
|
+
* Converts this ContentfulOrderedTopicsUpdated to JSON.
|
|
5432
|
+
* @returns JSON object
|
|
5433
|
+
*/
|
|
5434
|
+
public toJSON(): { [k: string]: any };
|
|
5435
|
+
}
|
|
5436
|
+
|
|
5221
5437
|
/** Properties of a ContentfulContentModelCreated. */
|
|
5222
5438
|
export interface IContentfulContentModelCreated {
|
|
5223
5439
|
|
package/lib/index.js
CHANGED
|
@@ -13847,6 +13847,586 @@ $root.ContentfulTopicDeleted = (function() {
|
|
|
13847
13847
|
return ContentfulTopicDeleted;
|
|
13848
13848
|
})();
|
|
13849
13849
|
|
|
13850
|
+
$root.ContentfulOrderedTopicsCreated = (function() {
|
|
13851
|
+
|
|
13852
|
+
/**
|
|
13853
|
+
* Properties of a ContentfulOrderedTopicsCreated.
|
|
13854
|
+
* @exports IContentfulOrderedTopicsCreated
|
|
13855
|
+
* @interface IContentfulOrderedTopicsCreated
|
|
13856
|
+
* @property {string|null} [slug] ContentfulOrderedTopicsCreated slug
|
|
13857
|
+
* @property {string|null} [location] ContentfulOrderedTopicsCreated location
|
|
13858
|
+
* @property {Array.<contentful.ISlugReference>|null} [topics] ContentfulOrderedTopicsCreated topics
|
|
13859
|
+
* @property {number|Long|null} [createdAt] ContentfulOrderedTopicsCreated createdAt
|
|
13860
|
+
*/
|
|
13861
|
+
|
|
13862
|
+
/**
|
|
13863
|
+
* Constructs a new ContentfulOrderedTopicsCreated.
|
|
13864
|
+
* @exports ContentfulOrderedTopicsCreated
|
|
13865
|
+
* @classdesc Represents a ContentfulOrderedTopicsCreated.
|
|
13866
|
+
* @implements IContentfulOrderedTopicsCreated
|
|
13867
|
+
* @constructor
|
|
13868
|
+
* @param {IContentfulOrderedTopicsCreated=} [properties] Properties to set
|
|
13869
|
+
*/
|
|
13870
|
+
function ContentfulOrderedTopicsCreated(properties) {
|
|
13871
|
+
this.topics = [];
|
|
13872
|
+
if (properties)
|
|
13873
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
13874
|
+
if (properties[keys[i]] != null)
|
|
13875
|
+
this[keys[i]] = properties[keys[i]];
|
|
13876
|
+
}
|
|
13877
|
+
|
|
13878
|
+
/**
|
|
13879
|
+
* ContentfulOrderedTopicsCreated slug.
|
|
13880
|
+
* @member {string} slug
|
|
13881
|
+
* @memberof ContentfulOrderedTopicsCreated
|
|
13882
|
+
* @instance
|
|
13883
|
+
*/
|
|
13884
|
+
ContentfulOrderedTopicsCreated.prototype.slug = "";
|
|
13885
|
+
|
|
13886
|
+
/**
|
|
13887
|
+
* ContentfulOrderedTopicsCreated location.
|
|
13888
|
+
* @member {string} location
|
|
13889
|
+
* @memberof ContentfulOrderedTopicsCreated
|
|
13890
|
+
* @instance
|
|
13891
|
+
*/
|
|
13892
|
+
ContentfulOrderedTopicsCreated.prototype.location = "";
|
|
13893
|
+
|
|
13894
|
+
/**
|
|
13895
|
+
* ContentfulOrderedTopicsCreated topics.
|
|
13896
|
+
* @member {Array.<contentful.ISlugReference>} topics
|
|
13897
|
+
* @memberof ContentfulOrderedTopicsCreated
|
|
13898
|
+
* @instance
|
|
13899
|
+
*/
|
|
13900
|
+
ContentfulOrderedTopicsCreated.prototype.topics = $util.emptyArray;
|
|
13901
|
+
|
|
13902
|
+
/**
|
|
13903
|
+
* ContentfulOrderedTopicsCreated createdAt.
|
|
13904
|
+
* @member {number|Long} createdAt
|
|
13905
|
+
* @memberof ContentfulOrderedTopicsCreated
|
|
13906
|
+
* @instance
|
|
13907
|
+
*/
|
|
13908
|
+
ContentfulOrderedTopicsCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
13909
|
+
|
|
13910
|
+
/**
|
|
13911
|
+
* Creates a new ContentfulOrderedTopicsCreated instance using the specified properties.
|
|
13912
|
+
* @function create
|
|
13913
|
+
* @memberof ContentfulOrderedTopicsCreated
|
|
13914
|
+
* @static
|
|
13915
|
+
* @param {IContentfulOrderedTopicsCreated=} [properties] Properties to set
|
|
13916
|
+
* @returns {ContentfulOrderedTopicsCreated} ContentfulOrderedTopicsCreated instance
|
|
13917
|
+
*/
|
|
13918
|
+
ContentfulOrderedTopicsCreated.create = function create(properties) {
|
|
13919
|
+
return new ContentfulOrderedTopicsCreated(properties);
|
|
13920
|
+
};
|
|
13921
|
+
|
|
13922
|
+
/**
|
|
13923
|
+
* Encodes the specified ContentfulOrderedTopicsCreated message. Does not implicitly {@link ContentfulOrderedTopicsCreated.verify|verify} messages.
|
|
13924
|
+
* @function encode
|
|
13925
|
+
* @memberof ContentfulOrderedTopicsCreated
|
|
13926
|
+
* @static
|
|
13927
|
+
* @param {IContentfulOrderedTopicsCreated} message ContentfulOrderedTopicsCreated message or plain object to encode
|
|
13928
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
13929
|
+
* @returns {$protobuf.Writer} Writer
|
|
13930
|
+
*/
|
|
13931
|
+
ContentfulOrderedTopicsCreated.encode = function encode(message, writer) {
|
|
13932
|
+
if (!writer)
|
|
13933
|
+
writer = $Writer.create();
|
|
13934
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
13935
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
13936
|
+
if (message.location != null && message.hasOwnProperty("location"))
|
|
13937
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.location);
|
|
13938
|
+
if (message.topics != null && message.topics.length)
|
|
13939
|
+
for (var i = 0; i < message.topics.length; ++i)
|
|
13940
|
+
$root.contentful.SlugReference.encode(message.topics[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
13941
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
13942
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.createdAt);
|
|
13943
|
+
return writer;
|
|
13944
|
+
};
|
|
13945
|
+
|
|
13946
|
+
/**
|
|
13947
|
+
* Encodes the specified ContentfulOrderedTopicsCreated message, length delimited. Does not implicitly {@link ContentfulOrderedTopicsCreated.verify|verify} messages.
|
|
13948
|
+
* @function encodeDelimited
|
|
13949
|
+
* @memberof ContentfulOrderedTopicsCreated
|
|
13950
|
+
* @static
|
|
13951
|
+
* @param {IContentfulOrderedTopicsCreated} message ContentfulOrderedTopicsCreated message or plain object to encode
|
|
13952
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
13953
|
+
* @returns {$protobuf.Writer} Writer
|
|
13954
|
+
*/
|
|
13955
|
+
ContentfulOrderedTopicsCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
13956
|
+
return this.encode(message, writer).ldelim();
|
|
13957
|
+
};
|
|
13958
|
+
|
|
13959
|
+
/**
|
|
13960
|
+
* Decodes a ContentfulOrderedTopicsCreated message from the specified reader or buffer.
|
|
13961
|
+
* @function decode
|
|
13962
|
+
* @memberof ContentfulOrderedTopicsCreated
|
|
13963
|
+
* @static
|
|
13964
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
13965
|
+
* @param {number} [length] Message length if known beforehand
|
|
13966
|
+
* @returns {ContentfulOrderedTopicsCreated} ContentfulOrderedTopicsCreated
|
|
13967
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
13968
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
13969
|
+
*/
|
|
13970
|
+
ContentfulOrderedTopicsCreated.decode = function decode(reader, length) {
|
|
13971
|
+
if (!(reader instanceof $Reader))
|
|
13972
|
+
reader = $Reader.create(reader);
|
|
13973
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulOrderedTopicsCreated();
|
|
13974
|
+
while (reader.pos < end) {
|
|
13975
|
+
var tag = reader.uint32();
|
|
13976
|
+
switch (tag >>> 3) {
|
|
13977
|
+
case 1:
|
|
13978
|
+
message.slug = reader.string();
|
|
13979
|
+
break;
|
|
13980
|
+
case 2:
|
|
13981
|
+
message.location = reader.string();
|
|
13982
|
+
break;
|
|
13983
|
+
case 3:
|
|
13984
|
+
if (!(message.topics && message.topics.length))
|
|
13985
|
+
message.topics = [];
|
|
13986
|
+
message.topics.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
13987
|
+
break;
|
|
13988
|
+
case 4:
|
|
13989
|
+
message.createdAt = reader.uint64();
|
|
13990
|
+
break;
|
|
13991
|
+
default:
|
|
13992
|
+
reader.skipType(tag & 7);
|
|
13993
|
+
break;
|
|
13994
|
+
}
|
|
13995
|
+
}
|
|
13996
|
+
return message;
|
|
13997
|
+
};
|
|
13998
|
+
|
|
13999
|
+
/**
|
|
14000
|
+
* Decodes a ContentfulOrderedTopicsCreated message from the specified reader or buffer, length delimited.
|
|
14001
|
+
* @function decodeDelimited
|
|
14002
|
+
* @memberof ContentfulOrderedTopicsCreated
|
|
14003
|
+
* @static
|
|
14004
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
14005
|
+
* @returns {ContentfulOrderedTopicsCreated} ContentfulOrderedTopicsCreated
|
|
14006
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14007
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14008
|
+
*/
|
|
14009
|
+
ContentfulOrderedTopicsCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
14010
|
+
if (!(reader instanceof $Reader))
|
|
14011
|
+
reader = new $Reader(reader);
|
|
14012
|
+
return this.decode(reader, reader.uint32());
|
|
14013
|
+
};
|
|
14014
|
+
|
|
14015
|
+
/**
|
|
14016
|
+
* Verifies a ContentfulOrderedTopicsCreated message.
|
|
14017
|
+
* @function verify
|
|
14018
|
+
* @memberof ContentfulOrderedTopicsCreated
|
|
14019
|
+
* @static
|
|
14020
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
14021
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
14022
|
+
*/
|
|
14023
|
+
ContentfulOrderedTopicsCreated.verify = function verify(message) {
|
|
14024
|
+
if (typeof message !== "object" || message === null)
|
|
14025
|
+
return "object expected";
|
|
14026
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
14027
|
+
if (!$util.isString(message.slug))
|
|
14028
|
+
return "slug: string expected";
|
|
14029
|
+
if (message.location != null && message.hasOwnProperty("location"))
|
|
14030
|
+
if (!$util.isString(message.location))
|
|
14031
|
+
return "location: string expected";
|
|
14032
|
+
if (message.topics != null && message.hasOwnProperty("topics")) {
|
|
14033
|
+
if (!Array.isArray(message.topics))
|
|
14034
|
+
return "topics: array expected";
|
|
14035
|
+
for (var i = 0; i < message.topics.length; ++i) {
|
|
14036
|
+
var error = $root.contentful.SlugReference.verify(message.topics[i]);
|
|
14037
|
+
if (error)
|
|
14038
|
+
return "topics." + error;
|
|
14039
|
+
}
|
|
14040
|
+
}
|
|
14041
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
14042
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
14043
|
+
return "createdAt: integer|Long expected";
|
|
14044
|
+
return null;
|
|
14045
|
+
};
|
|
14046
|
+
|
|
14047
|
+
/**
|
|
14048
|
+
* Creates a ContentfulOrderedTopicsCreated message from a plain object. Also converts values to their respective internal types.
|
|
14049
|
+
* @function fromObject
|
|
14050
|
+
* @memberof ContentfulOrderedTopicsCreated
|
|
14051
|
+
* @static
|
|
14052
|
+
* @param {Object.<string,*>} object Plain object
|
|
14053
|
+
* @returns {ContentfulOrderedTopicsCreated} ContentfulOrderedTopicsCreated
|
|
14054
|
+
*/
|
|
14055
|
+
ContentfulOrderedTopicsCreated.fromObject = function fromObject(object) {
|
|
14056
|
+
if (object instanceof $root.ContentfulOrderedTopicsCreated)
|
|
14057
|
+
return object;
|
|
14058
|
+
var message = new $root.ContentfulOrderedTopicsCreated();
|
|
14059
|
+
if (object.slug != null)
|
|
14060
|
+
message.slug = String(object.slug);
|
|
14061
|
+
if (object.location != null)
|
|
14062
|
+
message.location = String(object.location);
|
|
14063
|
+
if (object.topics) {
|
|
14064
|
+
if (!Array.isArray(object.topics))
|
|
14065
|
+
throw TypeError(".ContentfulOrderedTopicsCreated.topics: array expected");
|
|
14066
|
+
message.topics = [];
|
|
14067
|
+
for (var i = 0; i < object.topics.length; ++i) {
|
|
14068
|
+
if (typeof object.topics[i] !== "object")
|
|
14069
|
+
throw TypeError(".ContentfulOrderedTopicsCreated.topics: object expected");
|
|
14070
|
+
message.topics[i] = $root.contentful.SlugReference.fromObject(object.topics[i]);
|
|
14071
|
+
}
|
|
14072
|
+
}
|
|
14073
|
+
if (object.createdAt != null)
|
|
14074
|
+
if ($util.Long)
|
|
14075
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
14076
|
+
else if (typeof object.createdAt === "string")
|
|
14077
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
14078
|
+
else if (typeof object.createdAt === "number")
|
|
14079
|
+
message.createdAt = object.createdAt;
|
|
14080
|
+
else if (typeof object.createdAt === "object")
|
|
14081
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
14082
|
+
return message;
|
|
14083
|
+
};
|
|
14084
|
+
|
|
14085
|
+
/**
|
|
14086
|
+
* Creates a plain object from a ContentfulOrderedTopicsCreated message. Also converts values to other types if specified.
|
|
14087
|
+
* @function toObject
|
|
14088
|
+
* @memberof ContentfulOrderedTopicsCreated
|
|
14089
|
+
* @static
|
|
14090
|
+
* @param {ContentfulOrderedTopicsCreated} message ContentfulOrderedTopicsCreated
|
|
14091
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
14092
|
+
* @returns {Object.<string,*>} Plain object
|
|
14093
|
+
*/
|
|
14094
|
+
ContentfulOrderedTopicsCreated.toObject = function toObject(message, options) {
|
|
14095
|
+
if (!options)
|
|
14096
|
+
options = {};
|
|
14097
|
+
var object = {};
|
|
14098
|
+
if (options.arrays || options.defaults)
|
|
14099
|
+
object.topics = [];
|
|
14100
|
+
if (options.defaults) {
|
|
14101
|
+
object.slug = "";
|
|
14102
|
+
object.location = "";
|
|
14103
|
+
if ($util.Long) {
|
|
14104
|
+
var long = new $util.Long(0, 0, true);
|
|
14105
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
14106
|
+
} else
|
|
14107
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
14108
|
+
}
|
|
14109
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
14110
|
+
object.slug = message.slug;
|
|
14111
|
+
if (message.location != null && message.hasOwnProperty("location"))
|
|
14112
|
+
object.location = message.location;
|
|
14113
|
+
if (message.topics && message.topics.length) {
|
|
14114
|
+
object.topics = [];
|
|
14115
|
+
for (var j = 0; j < message.topics.length; ++j)
|
|
14116
|
+
object.topics[j] = $root.contentful.SlugReference.toObject(message.topics[j], options);
|
|
14117
|
+
}
|
|
14118
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
14119
|
+
if (typeof message.createdAt === "number")
|
|
14120
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
14121
|
+
else
|
|
14122
|
+
object.createdAt = options.longs === String ? $util.Long.prototype.toString.call(message.createdAt) : options.longs === Number ? new $util.LongBits(message.createdAt.low >>> 0, message.createdAt.high >>> 0).toNumber(true) : message.createdAt;
|
|
14123
|
+
return object;
|
|
14124
|
+
};
|
|
14125
|
+
|
|
14126
|
+
/**
|
|
14127
|
+
* Converts this ContentfulOrderedTopicsCreated to JSON.
|
|
14128
|
+
* @function toJSON
|
|
14129
|
+
* @memberof ContentfulOrderedTopicsCreated
|
|
14130
|
+
* @instance
|
|
14131
|
+
* @returns {Object.<string,*>} JSON object
|
|
14132
|
+
*/
|
|
14133
|
+
ContentfulOrderedTopicsCreated.prototype.toJSON = function toJSON() {
|
|
14134
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
14135
|
+
};
|
|
14136
|
+
|
|
14137
|
+
return ContentfulOrderedTopicsCreated;
|
|
14138
|
+
})();
|
|
14139
|
+
|
|
14140
|
+
$root.ContentfulOrderedTopicsUpdated = (function() {
|
|
14141
|
+
|
|
14142
|
+
/**
|
|
14143
|
+
* Properties of a ContentfulOrderedTopicsUpdated.
|
|
14144
|
+
* @exports IContentfulOrderedTopicsUpdated
|
|
14145
|
+
* @interface IContentfulOrderedTopicsUpdated
|
|
14146
|
+
* @property {string|null} [slug] ContentfulOrderedTopicsUpdated slug
|
|
14147
|
+
* @property {string|null} [location] ContentfulOrderedTopicsUpdated location
|
|
14148
|
+
* @property {Array.<contentful.ISlugReference>|null} [topics] ContentfulOrderedTopicsUpdated topics
|
|
14149
|
+
* @property {number|Long|null} [updatedAt] ContentfulOrderedTopicsUpdated updatedAt
|
|
14150
|
+
*/
|
|
14151
|
+
|
|
14152
|
+
/**
|
|
14153
|
+
* Constructs a new ContentfulOrderedTopicsUpdated.
|
|
14154
|
+
* @exports ContentfulOrderedTopicsUpdated
|
|
14155
|
+
* @classdesc Represents a ContentfulOrderedTopicsUpdated.
|
|
14156
|
+
* @implements IContentfulOrderedTopicsUpdated
|
|
14157
|
+
* @constructor
|
|
14158
|
+
* @param {IContentfulOrderedTopicsUpdated=} [properties] Properties to set
|
|
14159
|
+
*/
|
|
14160
|
+
function ContentfulOrderedTopicsUpdated(properties) {
|
|
14161
|
+
this.topics = [];
|
|
14162
|
+
if (properties)
|
|
14163
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
14164
|
+
if (properties[keys[i]] != null)
|
|
14165
|
+
this[keys[i]] = properties[keys[i]];
|
|
14166
|
+
}
|
|
14167
|
+
|
|
14168
|
+
/**
|
|
14169
|
+
* ContentfulOrderedTopicsUpdated slug.
|
|
14170
|
+
* @member {string} slug
|
|
14171
|
+
* @memberof ContentfulOrderedTopicsUpdated
|
|
14172
|
+
* @instance
|
|
14173
|
+
*/
|
|
14174
|
+
ContentfulOrderedTopicsUpdated.prototype.slug = "";
|
|
14175
|
+
|
|
14176
|
+
/**
|
|
14177
|
+
* ContentfulOrderedTopicsUpdated location.
|
|
14178
|
+
* @member {string} location
|
|
14179
|
+
* @memberof ContentfulOrderedTopicsUpdated
|
|
14180
|
+
* @instance
|
|
14181
|
+
*/
|
|
14182
|
+
ContentfulOrderedTopicsUpdated.prototype.location = "";
|
|
14183
|
+
|
|
14184
|
+
/**
|
|
14185
|
+
* ContentfulOrderedTopicsUpdated topics.
|
|
14186
|
+
* @member {Array.<contentful.ISlugReference>} topics
|
|
14187
|
+
* @memberof ContentfulOrderedTopicsUpdated
|
|
14188
|
+
* @instance
|
|
14189
|
+
*/
|
|
14190
|
+
ContentfulOrderedTopicsUpdated.prototype.topics = $util.emptyArray;
|
|
14191
|
+
|
|
14192
|
+
/**
|
|
14193
|
+
* ContentfulOrderedTopicsUpdated updatedAt.
|
|
14194
|
+
* @member {number|Long} updatedAt
|
|
14195
|
+
* @memberof ContentfulOrderedTopicsUpdated
|
|
14196
|
+
* @instance
|
|
14197
|
+
*/
|
|
14198
|
+
ContentfulOrderedTopicsUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
14199
|
+
|
|
14200
|
+
/**
|
|
14201
|
+
* Creates a new ContentfulOrderedTopicsUpdated instance using the specified properties.
|
|
14202
|
+
* @function create
|
|
14203
|
+
* @memberof ContentfulOrderedTopicsUpdated
|
|
14204
|
+
* @static
|
|
14205
|
+
* @param {IContentfulOrderedTopicsUpdated=} [properties] Properties to set
|
|
14206
|
+
* @returns {ContentfulOrderedTopicsUpdated} ContentfulOrderedTopicsUpdated instance
|
|
14207
|
+
*/
|
|
14208
|
+
ContentfulOrderedTopicsUpdated.create = function create(properties) {
|
|
14209
|
+
return new ContentfulOrderedTopicsUpdated(properties);
|
|
14210
|
+
};
|
|
14211
|
+
|
|
14212
|
+
/**
|
|
14213
|
+
* Encodes the specified ContentfulOrderedTopicsUpdated message. Does not implicitly {@link ContentfulOrderedTopicsUpdated.verify|verify} messages.
|
|
14214
|
+
* @function encode
|
|
14215
|
+
* @memberof ContentfulOrderedTopicsUpdated
|
|
14216
|
+
* @static
|
|
14217
|
+
* @param {IContentfulOrderedTopicsUpdated} message ContentfulOrderedTopicsUpdated message or plain object to encode
|
|
14218
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
14219
|
+
* @returns {$protobuf.Writer} Writer
|
|
14220
|
+
*/
|
|
14221
|
+
ContentfulOrderedTopicsUpdated.encode = function encode(message, writer) {
|
|
14222
|
+
if (!writer)
|
|
14223
|
+
writer = $Writer.create();
|
|
14224
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
14225
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
14226
|
+
if (message.location != null && message.hasOwnProperty("location"))
|
|
14227
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.location);
|
|
14228
|
+
if (message.topics != null && message.topics.length)
|
|
14229
|
+
for (var i = 0; i < message.topics.length; ++i)
|
|
14230
|
+
$root.contentful.SlugReference.encode(message.topics[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
14231
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
14232
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.updatedAt);
|
|
14233
|
+
return writer;
|
|
14234
|
+
};
|
|
14235
|
+
|
|
14236
|
+
/**
|
|
14237
|
+
* Encodes the specified ContentfulOrderedTopicsUpdated message, length delimited. Does not implicitly {@link ContentfulOrderedTopicsUpdated.verify|verify} messages.
|
|
14238
|
+
* @function encodeDelimited
|
|
14239
|
+
* @memberof ContentfulOrderedTopicsUpdated
|
|
14240
|
+
* @static
|
|
14241
|
+
* @param {IContentfulOrderedTopicsUpdated} message ContentfulOrderedTopicsUpdated message or plain object to encode
|
|
14242
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
14243
|
+
* @returns {$protobuf.Writer} Writer
|
|
14244
|
+
*/
|
|
14245
|
+
ContentfulOrderedTopicsUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
14246
|
+
return this.encode(message, writer).ldelim();
|
|
14247
|
+
};
|
|
14248
|
+
|
|
14249
|
+
/**
|
|
14250
|
+
* Decodes a ContentfulOrderedTopicsUpdated message from the specified reader or buffer.
|
|
14251
|
+
* @function decode
|
|
14252
|
+
* @memberof ContentfulOrderedTopicsUpdated
|
|
14253
|
+
* @static
|
|
14254
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
14255
|
+
* @param {number} [length] Message length if known beforehand
|
|
14256
|
+
* @returns {ContentfulOrderedTopicsUpdated} ContentfulOrderedTopicsUpdated
|
|
14257
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14258
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14259
|
+
*/
|
|
14260
|
+
ContentfulOrderedTopicsUpdated.decode = function decode(reader, length) {
|
|
14261
|
+
if (!(reader instanceof $Reader))
|
|
14262
|
+
reader = $Reader.create(reader);
|
|
14263
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulOrderedTopicsUpdated();
|
|
14264
|
+
while (reader.pos < end) {
|
|
14265
|
+
var tag = reader.uint32();
|
|
14266
|
+
switch (tag >>> 3) {
|
|
14267
|
+
case 1:
|
|
14268
|
+
message.slug = reader.string();
|
|
14269
|
+
break;
|
|
14270
|
+
case 2:
|
|
14271
|
+
message.location = reader.string();
|
|
14272
|
+
break;
|
|
14273
|
+
case 3:
|
|
14274
|
+
if (!(message.topics && message.topics.length))
|
|
14275
|
+
message.topics = [];
|
|
14276
|
+
message.topics.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
14277
|
+
break;
|
|
14278
|
+
case 4:
|
|
14279
|
+
message.updatedAt = reader.uint64();
|
|
14280
|
+
break;
|
|
14281
|
+
default:
|
|
14282
|
+
reader.skipType(tag & 7);
|
|
14283
|
+
break;
|
|
14284
|
+
}
|
|
14285
|
+
}
|
|
14286
|
+
return message;
|
|
14287
|
+
};
|
|
14288
|
+
|
|
14289
|
+
/**
|
|
14290
|
+
* Decodes a ContentfulOrderedTopicsUpdated message from the specified reader or buffer, length delimited.
|
|
14291
|
+
* @function decodeDelimited
|
|
14292
|
+
* @memberof ContentfulOrderedTopicsUpdated
|
|
14293
|
+
* @static
|
|
14294
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
14295
|
+
* @returns {ContentfulOrderedTopicsUpdated} ContentfulOrderedTopicsUpdated
|
|
14296
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14297
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14298
|
+
*/
|
|
14299
|
+
ContentfulOrderedTopicsUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
14300
|
+
if (!(reader instanceof $Reader))
|
|
14301
|
+
reader = new $Reader(reader);
|
|
14302
|
+
return this.decode(reader, reader.uint32());
|
|
14303
|
+
};
|
|
14304
|
+
|
|
14305
|
+
/**
|
|
14306
|
+
* Verifies a ContentfulOrderedTopicsUpdated message.
|
|
14307
|
+
* @function verify
|
|
14308
|
+
* @memberof ContentfulOrderedTopicsUpdated
|
|
14309
|
+
* @static
|
|
14310
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
14311
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
14312
|
+
*/
|
|
14313
|
+
ContentfulOrderedTopicsUpdated.verify = function verify(message) {
|
|
14314
|
+
if (typeof message !== "object" || message === null)
|
|
14315
|
+
return "object expected";
|
|
14316
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
14317
|
+
if (!$util.isString(message.slug))
|
|
14318
|
+
return "slug: string expected";
|
|
14319
|
+
if (message.location != null && message.hasOwnProperty("location"))
|
|
14320
|
+
if (!$util.isString(message.location))
|
|
14321
|
+
return "location: string expected";
|
|
14322
|
+
if (message.topics != null && message.hasOwnProperty("topics")) {
|
|
14323
|
+
if (!Array.isArray(message.topics))
|
|
14324
|
+
return "topics: array expected";
|
|
14325
|
+
for (var i = 0; i < message.topics.length; ++i) {
|
|
14326
|
+
var error = $root.contentful.SlugReference.verify(message.topics[i]);
|
|
14327
|
+
if (error)
|
|
14328
|
+
return "topics." + error;
|
|
14329
|
+
}
|
|
14330
|
+
}
|
|
14331
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
14332
|
+
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
14333
|
+
return "updatedAt: integer|Long expected";
|
|
14334
|
+
return null;
|
|
14335
|
+
};
|
|
14336
|
+
|
|
14337
|
+
/**
|
|
14338
|
+
* Creates a ContentfulOrderedTopicsUpdated message from a plain object. Also converts values to their respective internal types.
|
|
14339
|
+
* @function fromObject
|
|
14340
|
+
* @memberof ContentfulOrderedTopicsUpdated
|
|
14341
|
+
* @static
|
|
14342
|
+
* @param {Object.<string,*>} object Plain object
|
|
14343
|
+
* @returns {ContentfulOrderedTopicsUpdated} ContentfulOrderedTopicsUpdated
|
|
14344
|
+
*/
|
|
14345
|
+
ContentfulOrderedTopicsUpdated.fromObject = function fromObject(object) {
|
|
14346
|
+
if (object instanceof $root.ContentfulOrderedTopicsUpdated)
|
|
14347
|
+
return object;
|
|
14348
|
+
var message = new $root.ContentfulOrderedTopicsUpdated();
|
|
14349
|
+
if (object.slug != null)
|
|
14350
|
+
message.slug = String(object.slug);
|
|
14351
|
+
if (object.location != null)
|
|
14352
|
+
message.location = String(object.location);
|
|
14353
|
+
if (object.topics) {
|
|
14354
|
+
if (!Array.isArray(object.topics))
|
|
14355
|
+
throw TypeError(".ContentfulOrderedTopicsUpdated.topics: array expected");
|
|
14356
|
+
message.topics = [];
|
|
14357
|
+
for (var i = 0; i < object.topics.length; ++i) {
|
|
14358
|
+
if (typeof object.topics[i] !== "object")
|
|
14359
|
+
throw TypeError(".ContentfulOrderedTopicsUpdated.topics: object expected");
|
|
14360
|
+
message.topics[i] = $root.contentful.SlugReference.fromObject(object.topics[i]);
|
|
14361
|
+
}
|
|
14362
|
+
}
|
|
14363
|
+
if (object.updatedAt != null)
|
|
14364
|
+
if ($util.Long)
|
|
14365
|
+
(message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
|
|
14366
|
+
else if (typeof object.updatedAt === "string")
|
|
14367
|
+
message.updatedAt = parseInt(object.updatedAt, 10);
|
|
14368
|
+
else if (typeof object.updatedAt === "number")
|
|
14369
|
+
message.updatedAt = object.updatedAt;
|
|
14370
|
+
else if (typeof object.updatedAt === "object")
|
|
14371
|
+
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
14372
|
+
return message;
|
|
14373
|
+
};
|
|
14374
|
+
|
|
14375
|
+
/**
|
|
14376
|
+
* Creates a plain object from a ContentfulOrderedTopicsUpdated message. Also converts values to other types if specified.
|
|
14377
|
+
* @function toObject
|
|
14378
|
+
* @memberof ContentfulOrderedTopicsUpdated
|
|
14379
|
+
* @static
|
|
14380
|
+
* @param {ContentfulOrderedTopicsUpdated} message ContentfulOrderedTopicsUpdated
|
|
14381
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
14382
|
+
* @returns {Object.<string,*>} Plain object
|
|
14383
|
+
*/
|
|
14384
|
+
ContentfulOrderedTopicsUpdated.toObject = function toObject(message, options) {
|
|
14385
|
+
if (!options)
|
|
14386
|
+
options = {};
|
|
14387
|
+
var object = {};
|
|
14388
|
+
if (options.arrays || options.defaults)
|
|
14389
|
+
object.topics = [];
|
|
14390
|
+
if (options.defaults) {
|
|
14391
|
+
object.slug = "";
|
|
14392
|
+
object.location = "";
|
|
14393
|
+
if ($util.Long) {
|
|
14394
|
+
var long = new $util.Long(0, 0, true);
|
|
14395
|
+
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
14396
|
+
} else
|
|
14397
|
+
object.updatedAt = options.longs === String ? "0" : 0;
|
|
14398
|
+
}
|
|
14399
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
14400
|
+
object.slug = message.slug;
|
|
14401
|
+
if (message.location != null && message.hasOwnProperty("location"))
|
|
14402
|
+
object.location = message.location;
|
|
14403
|
+
if (message.topics && message.topics.length) {
|
|
14404
|
+
object.topics = [];
|
|
14405
|
+
for (var j = 0; j < message.topics.length; ++j)
|
|
14406
|
+
object.topics[j] = $root.contentful.SlugReference.toObject(message.topics[j], options);
|
|
14407
|
+
}
|
|
14408
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
14409
|
+
if (typeof message.updatedAt === "number")
|
|
14410
|
+
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
14411
|
+
else
|
|
14412
|
+
object.updatedAt = options.longs === String ? $util.Long.prototype.toString.call(message.updatedAt) : options.longs === Number ? new $util.LongBits(message.updatedAt.low >>> 0, message.updatedAt.high >>> 0).toNumber(true) : message.updatedAt;
|
|
14413
|
+
return object;
|
|
14414
|
+
};
|
|
14415
|
+
|
|
14416
|
+
/**
|
|
14417
|
+
* Converts this ContentfulOrderedTopicsUpdated to JSON.
|
|
14418
|
+
* @function toJSON
|
|
14419
|
+
* @memberof ContentfulOrderedTopicsUpdated
|
|
14420
|
+
* @instance
|
|
14421
|
+
* @returns {Object.<string,*>} JSON object
|
|
14422
|
+
*/
|
|
14423
|
+
ContentfulOrderedTopicsUpdated.prototype.toJSON = function toJSON() {
|
|
14424
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
14425
|
+
};
|
|
14426
|
+
|
|
14427
|
+
return ContentfulOrderedTopicsUpdated;
|
|
14428
|
+
})();
|
|
14429
|
+
|
|
13850
14430
|
$root.ContentfulContentModelCreated = (function() {
|
|
13851
14431
|
|
|
13852
14432
|
/**
|
package/package.json
CHANGED