@headspace/protos-events 1.130.0 → 1.131.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 +590 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -5434,6 +5434,222 @@ export class ContentfulOrderedTopicsUpdated implements IContentfulOrderedTopicsU
|
|
|
5434
5434
|
public toJSON(): { [k: string]: any };
|
|
5435
5435
|
}
|
|
5436
5436
|
|
|
5437
|
+
/** Properties of a ContentfulOrderedCategoriesCreated. */
|
|
5438
|
+
export interface IContentfulOrderedCategoriesCreated {
|
|
5439
|
+
|
|
5440
|
+
/** ContentfulOrderedCategoriesCreated slug */
|
|
5441
|
+
slug?: (string|null);
|
|
5442
|
+
|
|
5443
|
+
/** ContentfulOrderedCategoriesCreated topic */
|
|
5444
|
+
topic?: (contentful.ISlugReference|null);
|
|
5445
|
+
|
|
5446
|
+
/** ContentfulOrderedCategoriesCreated categories */
|
|
5447
|
+
categories?: (contentful.ISlugReference[]|null);
|
|
5448
|
+
|
|
5449
|
+
/** ContentfulOrderedCategoriesCreated createdAt */
|
|
5450
|
+
createdAt?: (number|Long|null);
|
|
5451
|
+
}
|
|
5452
|
+
|
|
5453
|
+
/** Represents a ContentfulOrderedCategoriesCreated. */
|
|
5454
|
+
export class ContentfulOrderedCategoriesCreated implements IContentfulOrderedCategoriesCreated {
|
|
5455
|
+
|
|
5456
|
+
/**
|
|
5457
|
+
* Constructs a new ContentfulOrderedCategoriesCreated.
|
|
5458
|
+
* @param [properties] Properties to set
|
|
5459
|
+
*/
|
|
5460
|
+
constructor(properties?: IContentfulOrderedCategoriesCreated);
|
|
5461
|
+
|
|
5462
|
+
/** ContentfulOrderedCategoriesCreated slug. */
|
|
5463
|
+
public slug: string;
|
|
5464
|
+
|
|
5465
|
+
/** ContentfulOrderedCategoriesCreated topic. */
|
|
5466
|
+
public topic?: (contentful.ISlugReference|null);
|
|
5467
|
+
|
|
5468
|
+
/** ContentfulOrderedCategoriesCreated categories. */
|
|
5469
|
+
public categories: contentful.ISlugReference[];
|
|
5470
|
+
|
|
5471
|
+
/** ContentfulOrderedCategoriesCreated createdAt. */
|
|
5472
|
+
public createdAt: (number|Long);
|
|
5473
|
+
|
|
5474
|
+
/**
|
|
5475
|
+
* Creates a new ContentfulOrderedCategoriesCreated instance using the specified properties.
|
|
5476
|
+
* @param [properties] Properties to set
|
|
5477
|
+
* @returns ContentfulOrderedCategoriesCreated instance
|
|
5478
|
+
*/
|
|
5479
|
+
public static create(properties?: IContentfulOrderedCategoriesCreated): ContentfulOrderedCategoriesCreated;
|
|
5480
|
+
|
|
5481
|
+
/**
|
|
5482
|
+
* Encodes the specified ContentfulOrderedCategoriesCreated message. Does not implicitly {@link ContentfulOrderedCategoriesCreated.verify|verify} messages.
|
|
5483
|
+
* @param message ContentfulOrderedCategoriesCreated message or plain object to encode
|
|
5484
|
+
* @param [writer] Writer to encode to
|
|
5485
|
+
* @returns Writer
|
|
5486
|
+
*/
|
|
5487
|
+
public static encode(message: IContentfulOrderedCategoriesCreated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5488
|
+
|
|
5489
|
+
/**
|
|
5490
|
+
* Encodes the specified ContentfulOrderedCategoriesCreated message, length delimited. Does not implicitly {@link ContentfulOrderedCategoriesCreated.verify|verify} messages.
|
|
5491
|
+
* @param message ContentfulOrderedCategoriesCreated message or plain object to encode
|
|
5492
|
+
* @param [writer] Writer to encode to
|
|
5493
|
+
* @returns Writer
|
|
5494
|
+
*/
|
|
5495
|
+
public static encodeDelimited(message: IContentfulOrderedCategoriesCreated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5496
|
+
|
|
5497
|
+
/**
|
|
5498
|
+
* Decodes a ContentfulOrderedCategoriesCreated message from the specified reader or buffer.
|
|
5499
|
+
* @param reader Reader or buffer to decode from
|
|
5500
|
+
* @param [length] Message length if known beforehand
|
|
5501
|
+
* @returns ContentfulOrderedCategoriesCreated
|
|
5502
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5503
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5504
|
+
*/
|
|
5505
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ContentfulOrderedCategoriesCreated;
|
|
5506
|
+
|
|
5507
|
+
/**
|
|
5508
|
+
* Decodes a ContentfulOrderedCategoriesCreated message from the specified reader or buffer, length delimited.
|
|
5509
|
+
* @param reader Reader or buffer to decode from
|
|
5510
|
+
* @returns ContentfulOrderedCategoriesCreated
|
|
5511
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5512
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5513
|
+
*/
|
|
5514
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ContentfulOrderedCategoriesCreated;
|
|
5515
|
+
|
|
5516
|
+
/**
|
|
5517
|
+
* Verifies a ContentfulOrderedCategoriesCreated message.
|
|
5518
|
+
* @param message Plain object to verify
|
|
5519
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
5520
|
+
*/
|
|
5521
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
5522
|
+
|
|
5523
|
+
/**
|
|
5524
|
+
* Creates a ContentfulOrderedCategoriesCreated message from a plain object. Also converts values to their respective internal types.
|
|
5525
|
+
* @param object Plain object
|
|
5526
|
+
* @returns ContentfulOrderedCategoriesCreated
|
|
5527
|
+
*/
|
|
5528
|
+
public static fromObject(object: { [k: string]: any }): ContentfulOrderedCategoriesCreated;
|
|
5529
|
+
|
|
5530
|
+
/**
|
|
5531
|
+
* Creates a plain object from a ContentfulOrderedCategoriesCreated message. Also converts values to other types if specified.
|
|
5532
|
+
* @param message ContentfulOrderedCategoriesCreated
|
|
5533
|
+
* @param [options] Conversion options
|
|
5534
|
+
* @returns Plain object
|
|
5535
|
+
*/
|
|
5536
|
+
public static toObject(message: ContentfulOrderedCategoriesCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
5537
|
+
|
|
5538
|
+
/**
|
|
5539
|
+
* Converts this ContentfulOrderedCategoriesCreated to JSON.
|
|
5540
|
+
* @returns JSON object
|
|
5541
|
+
*/
|
|
5542
|
+
public toJSON(): { [k: string]: any };
|
|
5543
|
+
}
|
|
5544
|
+
|
|
5545
|
+
/** Properties of a ContentfulOrderedCategoriesUpdated. */
|
|
5546
|
+
export interface IContentfulOrderedCategoriesUpdated {
|
|
5547
|
+
|
|
5548
|
+
/** ContentfulOrderedCategoriesUpdated slug */
|
|
5549
|
+
slug?: (string|null);
|
|
5550
|
+
|
|
5551
|
+
/** ContentfulOrderedCategoriesUpdated topic */
|
|
5552
|
+
topic?: (contentful.ISlugReference|null);
|
|
5553
|
+
|
|
5554
|
+
/** ContentfulOrderedCategoriesUpdated categories */
|
|
5555
|
+
categories?: (contentful.ISlugReference[]|null);
|
|
5556
|
+
|
|
5557
|
+
/** ContentfulOrderedCategoriesUpdated updatedAt */
|
|
5558
|
+
updatedAt?: (number|Long|null);
|
|
5559
|
+
}
|
|
5560
|
+
|
|
5561
|
+
/** Represents a ContentfulOrderedCategoriesUpdated. */
|
|
5562
|
+
export class ContentfulOrderedCategoriesUpdated implements IContentfulOrderedCategoriesUpdated {
|
|
5563
|
+
|
|
5564
|
+
/**
|
|
5565
|
+
* Constructs a new ContentfulOrderedCategoriesUpdated.
|
|
5566
|
+
* @param [properties] Properties to set
|
|
5567
|
+
*/
|
|
5568
|
+
constructor(properties?: IContentfulOrderedCategoriesUpdated);
|
|
5569
|
+
|
|
5570
|
+
/** ContentfulOrderedCategoriesUpdated slug. */
|
|
5571
|
+
public slug: string;
|
|
5572
|
+
|
|
5573
|
+
/** ContentfulOrderedCategoriesUpdated topic. */
|
|
5574
|
+
public topic?: (contentful.ISlugReference|null);
|
|
5575
|
+
|
|
5576
|
+
/** ContentfulOrderedCategoriesUpdated categories. */
|
|
5577
|
+
public categories: contentful.ISlugReference[];
|
|
5578
|
+
|
|
5579
|
+
/** ContentfulOrderedCategoriesUpdated updatedAt. */
|
|
5580
|
+
public updatedAt: (number|Long);
|
|
5581
|
+
|
|
5582
|
+
/**
|
|
5583
|
+
* Creates a new ContentfulOrderedCategoriesUpdated instance using the specified properties.
|
|
5584
|
+
* @param [properties] Properties to set
|
|
5585
|
+
* @returns ContentfulOrderedCategoriesUpdated instance
|
|
5586
|
+
*/
|
|
5587
|
+
public static create(properties?: IContentfulOrderedCategoriesUpdated): ContentfulOrderedCategoriesUpdated;
|
|
5588
|
+
|
|
5589
|
+
/**
|
|
5590
|
+
* Encodes the specified ContentfulOrderedCategoriesUpdated message. Does not implicitly {@link ContentfulOrderedCategoriesUpdated.verify|verify} messages.
|
|
5591
|
+
* @param message ContentfulOrderedCategoriesUpdated message or plain object to encode
|
|
5592
|
+
* @param [writer] Writer to encode to
|
|
5593
|
+
* @returns Writer
|
|
5594
|
+
*/
|
|
5595
|
+
public static encode(message: IContentfulOrderedCategoriesUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5596
|
+
|
|
5597
|
+
/**
|
|
5598
|
+
* Encodes the specified ContentfulOrderedCategoriesUpdated message, length delimited. Does not implicitly {@link ContentfulOrderedCategoriesUpdated.verify|verify} messages.
|
|
5599
|
+
* @param message ContentfulOrderedCategoriesUpdated message or plain object to encode
|
|
5600
|
+
* @param [writer] Writer to encode to
|
|
5601
|
+
* @returns Writer
|
|
5602
|
+
*/
|
|
5603
|
+
public static encodeDelimited(message: IContentfulOrderedCategoriesUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5604
|
+
|
|
5605
|
+
/**
|
|
5606
|
+
* Decodes a ContentfulOrderedCategoriesUpdated message from the specified reader or buffer.
|
|
5607
|
+
* @param reader Reader or buffer to decode from
|
|
5608
|
+
* @param [length] Message length if known beforehand
|
|
5609
|
+
* @returns ContentfulOrderedCategoriesUpdated
|
|
5610
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5611
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5612
|
+
*/
|
|
5613
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ContentfulOrderedCategoriesUpdated;
|
|
5614
|
+
|
|
5615
|
+
/**
|
|
5616
|
+
* Decodes a ContentfulOrderedCategoriesUpdated message from the specified reader or buffer, length delimited.
|
|
5617
|
+
* @param reader Reader or buffer to decode from
|
|
5618
|
+
* @returns ContentfulOrderedCategoriesUpdated
|
|
5619
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5620
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5621
|
+
*/
|
|
5622
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ContentfulOrderedCategoriesUpdated;
|
|
5623
|
+
|
|
5624
|
+
/**
|
|
5625
|
+
* Verifies a ContentfulOrderedCategoriesUpdated message.
|
|
5626
|
+
* @param message Plain object to verify
|
|
5627
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
5628
|
+
*/
|
|
5629
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
5630
|
+
|
|
5631
|
+
/**
|
|
5632
|
+
* Creates a ContentfulOrderedCategoriesUpdated message from a plain object. Also converts values to their respective internal types.
|
|
5633
|
+
* @param object Plain object
|
|
5634
|
+
* @returns ContentfulOrderedCategoriesUpdated
|
|
5635
|
+
*/
|
|
5636
|
+
public static fromObject(object: { [k: string]: any }): ContentfulOrderedCategoriesUpdated;
|
|
5637
|
+
|
|
5638
|
+
/**
|
|
5639
|
+
* Creates a plain object from a ContentfulOrderedCategoriesUpdated message. Also converts values to other types if specified.
|
|
5640
|
+
* @param message ContentfulOrderedCategoriesUpdated
|
|
5641
|
+
* @param [options] Conversion options
|
|
5642
|
+
* @returns Plain object
|
|
5643
|
+
*/
|
|
5644
|
+
public static toObject(message: ContentfulOrderedCategoriesUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
5645
|
+
|
|
5646
|
+
/**
|
|
5647
|
+
* Converts this ContentfulOrderedCategoriesUpdated to JSON.
|
|
5648
|
+
* @returns JSON object
|
|
5649
|
+
*/
|
|
5650
|
+
public toJSON(): { [k: string]: any };
|
|
5651
|
+
}
|
|
5652
|
+
|
|
5437
5653
|
/** Properties of a ContentfulContentModelCreated. */
|
|
5438
5654
|
export interface IContentfulContentModelCreated {
|
|
5439
5655
|
|
package/lib/index.js
CHANGED
|
@@ -14427,6 +14427,596 @@ $root.ContentfulOrderedTopicsUpdated = (function() {
|
|
|
14427
14427
|
return ContentfulOrderedTopicsUpdated;
|
|
14428
14428
|
})();
|
|
14429
14429
|
|
|
14430
|
+
$root.ContentfulOrderedCategoriesCreated = (function() {
|
|
14431
|
+
|
|
14432
|
+
/**
|
|
14433
|
+
* Properties of a ContentfulOrderedCategoriesCreated.
|
|
14434
|
+
* @exports IContentfulOrderedCategoriesCreated
|
|
14435
|
+
* @interface IContentfulOrderedCategoriesCreated
|
|
14436
|
+
* @property {string|null} [slug] ContentfulOrderedCategoriesCreated slug
|
|
14437
|
+
* @property {contentful.ISlugReference|null} [topic] ContentfulOrderedCategoriesCreated topic
|
|
14438
|
+
* @property {Array.<contentful.ISlugReference>|null} [categories] ContentfulOrderedCategoriesCreated categories
|
|
14439
|
+
* @property {number|Long|null} [createdAt] ContentfulOrderedCategoriesCreated createdAt
|
|
14440
|
+
*/
|
|
14441
|
+
|
|
14442
|
+
/**
|
|
14443
|
+
* Constructs a new ContentfulOrderedCategoriesCreated.
|
|
14444
|
+
* @exports ContentfulOrderedCategoriesCreated
|
|
14445
|
+
* @classdesc Represents a ContentfulOrderedCategoriesCreated.
|
|
14446
|
+
* @implements IContentfulOrderedCategoriesCreated
|
|
14447
|
+
* @constructor
|
|
14448
|
+
* @param {IContentfulOrderedCategoriesCreated=} [properties] Properties to set
|
|
14449
|
+
*/
|
|
14450
|
+
function ContentfulOrderedCategoriesCreated(properties) {
|
|
14451
|
+
this.categories = [];
|
|
14452
|
+
if (properties)
|
|
14453
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
14454
|
+
if (properties[keys[i]] != null)
|
|
14455
|
+
this[keys[i]] = properties[keys[i]];
|
|
14456
|
+
}
|
|
14457
|
+
|
|
14458
|
+
/**
|
|
14459
|
+
* ContentfulOrderedCategoriesCreated slug.
|
|
14460
|
+
* @member {string} slug
|
|
14461
|
+
* @memberof ContentfulOrderedCategoriesCreated
|
|
14462
|
+
* @instance
|
|
14463
|
+
*/
|
|
14464
|
+
ContentfulOrderedCategoriesCreated.prototype.slug = "";
|
|
14465
|
+
|
|
14466
|
+
/**
|
|
14467
|
+
* ContentfulOrderedCategoriesCreated topic.
|
|
14468
|
+
* @member {contentful.ISlugReference|null|undefined} topic
|
|
14469
|
+
* @memberof ContentfulOrderedCategoriesCreated
|
|
14470
|
+
* @instance
|
|
14471
|
+
*/
|
|
14472
|
+
ContentfulOrderedCategoriesCreated.prototype.topic = null;
|
|
14473
|
+
|
|
14474
|
+
/**
|
|
14475
|
+
* ContentfulOrderedCategoriesCreated categories.
|
|
14476
|
+
* @member {Array.<contentful.ISlugReference>} categories
|
|
14477
|
+
* @memberof ContentfulOrderedCategoriesCreated
|
|
14478
|
+
* @instance
|
|
14479
|
+
*/
|
|
14480
|
+
ContentfulOrderedCategoriesCreated.prototype.categories = $util.emptyArray;
|
|
14481
|
+
|
|
14482
|
+
/**
|
|
14483
|
+
* ContentfulOrderedCategoriesCreated createdAt.
|
|
14484
|
+
* @member {number|Long} createdAt
|
|
14485
|
+
* @memberof ContentfulOrderedCategoriesCreated
|
|
14486
|
+
* @instance
|
|
14487
|
+
*/
|
|
14488
|
+
ContentfulOrderedCategoriesCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
14489
|
+
|
|
14490
|
+
/**
|
|
14491
|
+
* Creates a new ContentfulOrderedCategoriesCreated instance using the specified properties.
|
|
14492
|
+
* @function create
|
|
14493
|
+
* @memberof ContentfulOrderedCategoriesCreated
|
|
14494
|
+
* @static
|
|
14495
|
+
* @param {IContentfulOrderedCategoriesCreated=} [properties] Properties to set
|
|
14496
|
+
* @returns {ContentfulOrderedCategoriesCreated} ContentfulOrderedCategoriesCreated instance
|
|
14497
|
+
*/
|
|
14498
|
+
ContentfulOrderedCategoriesCreated.create = function create(properties) {
|
|
14499
|
+
return new ContentfulOrderedCategoriesCreated(properties);
|
|
14500
|
+
};
|
|
14501
|
+
|
|
14502
|
+
/**
|
|
14503
|
+
* Encodes the specified ContentfulOrderedCategoriesCreated message. Does not implicitly {@link ContentfulOrderedCategoriesCreated.verify|verify} messages.
|
|
14504
|
+
* @function encode
|
|
14505
|
+
* @memberof ContentfulOrderedCategoriesCreated
|
|
14506
|
+
* @static
|
|
14507
|
+
* @param {IContentfulOrderedCategoriesCreated} message ContentfulOrderedCategoriesCreated message or plain object to encode
|
|
14508
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
14509
|
+
* @returns {$protobuf.Writer} Writer
|
|
14510
|
+
*/
|
|
14511
|
+
ContentfulOrderedCategoriesCreated.encode = function encode(message, writer) {
|
|
14512
|
+
if (!writer)
|
|
14513
|
+
writer = $Writer.create();
|
|
14514
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
14515
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
14516
|
+
if (message.topic != null && message.hasOwnProperty("topic"))
|
|
14517
|
+
$root.contentful.SlugReference.encode(message.topic, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
14518
|
+
if (message.categories != null && message.categories.length)
|
|
14519
|
+
for (var i = 0; i < message.categories.length; ++i)
|
|
14520
|
+
$root.contentful.SlugReference.encode(message.categories[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
14521
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
14522
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.createdAt);
|
|
14523
|
+
return writer;
|
|
14524
|
+
};
|
|
14525
|
+
|
|
14526
|
+
/**
|
|
14527
|
+
* Encodes the specified ContentfulOrderedCategoriesCreated message, length delimited. Does not implicitly {@link ContentfulOrderedCategoriesCreated.verify|verify} messages.
|
|
14528
|
+
* @function encodeDelimited
|
|
14529
|
+
* @memberof ContentfulOrderedCategoriesCreated
|
|
14530
|
+
* @static
|
|
14531
|
+
* @param {IContentfulOrderedCategoriesCreated} message ContentfulOrderedCategoriesCreated message or plain object to encode
|
|
14532
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
14533
|
+
* @returns {$protobuf.Writer} Writer
|
|
14534
|
+
*/
|
|
14535
|
+
ContentfulOrderedCategoriesCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
14536
|
+
return this.encode(message, writer).ldelim();
|
|
14537
|
+
};
|
|
14538
|
+
|
|
14539
|
+
/**
|
|
14540
|
+
* Decodes a ContentfulOrderedCategoriesCreated message from the specified reader or buffer.
|
|
14541
|
+
* @function decode
|
|
14542
|
+
* @memberof ContentfulOrderedCategoriesCreated
|
|
14543
|
+
* @static
|
|
14544
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
14545
|
+
* @param {number} [length] Message length if known beforehand
|
|
14546
|
+
* @returns {ContentfulOrderedCategoriesCreated} ContentfulOrderedCategoriesCreated
|
|
14547
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14548
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14549
|
+
*/
|
|
14550
|
+
ContentfulOrderedCategoriesCreated.decode = function decode(reader, length) {
|
|
14551
|
+
if (!(reader instanceof $Reader))
|
|
14552
|
+
reader = $Reader.create(reader);
|
|
14553
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulOrderedCategoriesCreated();
|
|
14554
|
+
while (reader.pos < end) {
|
|
14555
|
+
var tag = reader.uint32();
|
|
14556
|
+
switch (tag >>> 3) {
|
|
14557
|
+
case 1:
|
|
14558
|
+
message.slug = reader.string();
|
|
14559
|
+
break;
|
|
14560
|
+
case 2:
|
|
14561
|
+
message.topic = $root.contentful.SlugReference.decode(reader, reader.uint32());
|
|
14562
|
+
break;
|
|
14563
|
+
case 3:
|
|
14564
|
+
if (!(message.categories && message.categories.length))
|
|
14565
|
+
message.categories = [];
|
|
14566
|
+
message.categories.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
14567
|
+
break;
|
|
14568
|
+
case 4:
|
|
14569
|
+
message.createdAt = reader.uint64();
|
|
14570
|
+
break;
|
|
14571
|
+
default:
|
|
14572
|
+
reader.skipType(tag & 7);
|
|
14573
|
+
break;
|
|
14574
|
+
}
|
|
14575
|
+
}
|
|
14576
|
+
return message;
|
|
14577
|
+
};
|
|
14578
|
+
|
|
14579
|
+
/**
|
|
14580
|
+
* Decodes a ContentfulOrderedCategoriesCreated message from the specified reader or buffer, length delimited.
|
|
14581
|
+
* @function decodeDelimited
|
|
14582
|
+
* @memberof ContentfulOrderedCategoriesCreated
|
|
14583
|
+
* @static
|
|
14584
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
14585
|
+
* @returns {ContentfulOrderedCategoriesCreated} ContentfulOrderedCategoriesCreated
|
|
14586
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14587
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14588
|
+
*/
|
|
14589
|
+
ContentfulOrderedCategoriesCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
14590
|
+
if (!(reader instanceof $Reader))
|
|
14591
|
+
reader = new $Reader(reader);
|
|
14592
|
+
return this.decode(reader, reader.uint32());
|
|
14593
|
+
};
|
|
14594
|
+
|
|
14595
|
+
/**
|
|
14596
|
+
* Verifies a ContentfulOrderedCategoriesCreated message.
|
|
14597
|
+
* @function verify
|
|
14598
|
+
* @memberof ContentfulOrderedCategoriesCreated
|
|
14599
|
+
* @static
|
|
14600
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
14601
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
14602
|
+
*/
|
|
14603
|
+
ContentfulOrderedCategoriesCreated.verify = function verify(message) {
|
|
14604
|
+
if (typeof message !== "object" || message === null)
|
|
14605
|
+
return "object expected";
|
|
14606
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
14607
|
+
if (!$util.isString(message.slug))
|
|
14608
|
+
return "slug: string expected";
|
|
14609
|
+
if (message.topic != null && message.hasOwnProperty("topic")) {
|
|
14610
|
+
var error = $root.contentful.SlugReference.verify(message.topic);
|
|
14611
|
+
if (error)
|
|
14612
|
+
return "topic." + error;
|
|
14613
|
+
}
|
|
14614
|
+
if (message.categories != null && message.hasOwnProperty("categories")) {
|
|
14615
|
+
if (!Array.isArray(message.categories))
|
|
14616
|
+
return "categories: array expected";
|
|
14617
|
+
for (var i = 0; i < message.categories.length; ++i) {
|
|
14618
|
+
var error = $root.contentful.SlugReference.verify(message.categories[i]);
|
|
14619
|
+
if (error)
|
|
14620
|
+
return "categories." + error;
|
|
14621
|
+
}
|
|
14622
|
+
}
|
|
14623
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
14624
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
14625
|
+
return "createdAt: integer|Long expected";
|
|
14626
|
+
return null;
|
|
14627
|
+
};
|
|
14628
|
+
|
|
14629
|
+
/**
|
|
14630
|
+
* Creates a ContentfulOrderedCategoriesCreated message from a plain object. Also converts values to their respective internal types.
|
|
14631
|
+
* @function fromObject
|
|
14632
|
+
* @memberof ContentfulOrderedCategoriesCreated
|
|
14633
|
+
* @static
|
|
14634
|
+
* @param {Object.<string,*>} object Plain object
|
|
14635
|
+
* @returns {ContentfulOrderedCategoriesCreated} ContentfulOrderedCategoriesCreated
|
|
14636
|
+
*/
|
|
14637
|
+
ContentfulOrderedCategoriesCreated.fromObject = function fromObject(object) {
|
|
14638
|
+
if (object instanceof $root.ContentfulOrderedCategoriesCreated)
|
|
14639
|
+
return object;
|
|
14640
|
+
var message = new $root.ContentfulOrderedCategoriesCreated();
|
|
14641
|
+
if (object.slug != null)
|
|
14642
|
+
message.slug = String(object.slug);
|
|
14643
|
+
if (object.topic != null) {
|
|
14644
|
+
if (typeof object.topic !== "object")
|
|
14645
|
+
throw TypeError(".ContentfulOrderedCategoriesCreated.topic: object expected");
|
|
14646
|
+
message.topic = $root.contentful.SlugReference.fromObject(object.topic);
|
|
14647
|
+
}
|
|
14648
|
+
if (object.categories) {
|
|
14649
|
+
if (!Array.isArray(object.categories))
|
|
14650
|
+
throw TypeError(".ContentfulOrderedCategoriesCreated.categories: array expected");
|
|
14651
|
+
message.categories = [];
|
|
14652
|
+
for (var i = 0; i < object.categories.length; ++i) {
|
|
14653
|
+
if (typeof object.categories[i] !== "object")
|
|
14654
|
+
throw TypeError(".ContentfulOrderedCategoriesCreated.categories: object expected");
|
|
14655
|
+
message.categories[i] = $root.contentful.SlugReference.fromObject(object.categories[i]);
|
|
14656
|
+
}
|
|
14657
|
+
}
|
|
14658
|
+
if (object.createdAt != null)
|
|
14659
|
+
if ($util.Long)
|
|
14660
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
14661
|
+
else if (typeof object.createdAt === "string")
|
|
14662
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
14663
|
+
else if (typeof object.createdAt === "number")
|
|
14664
|
+
message.createdAt = object.createdAt;
|
|
14665
|
+
else if (typeof object.createdAt === "object")
|
|
14666
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
14667
|
+
return message;
|
|
14668
|
+
};
|
|
14669
|
+
|
|
14670
|
+
/**
|
|
14671
|
+
* Creates a plain object from a ContentfulOrderedCategoriesCreated message. Also converts values to other types if specified.
|
|
14672
|
+
* @function toObject
|
|
14673
|
+
* @memberof ContentfulOrderedCategoriesCreated
|
|
14674
|
+
* @static
|
|
14675
|
+
* @param {ContentfulOrderedCategoriesCreated} message ContentfulOrderedCategoriesCreated
|
|
14676
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
14677
|
+
* @returns {Object.<string,*>} Plain object
|
|
14678
|
+
*/
|
|
14679
|
+
ContentfulOrderedCategoriesCreated.toObject = function toObject(message, options) {
|
|
14680
|
+
if (!options)
|
|
14681
|
+
options = {};
|
|
14682
|
+
var object = {};
|
|
14683
|
+
if (options.arrays || options.defaults)
|
|
14684
|
+
object.categories = [];
|
|
14685
|
+
if (options.defaults) {
|
|
14686
|
+
object.slug = "";
|
|
14687
|
+
object.topic = null;
|
|
14688
|
+
if ($util.Long) {
|
|
14689
|
+
var long = new $util.Long(0, 0, true);
|
|
14690
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
14691
|
+
} else
|
|
14692
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
14693
|
+
}
|
|
14694
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
14695
|
+
object.slug = message.slug;
|
|
14696
|
+
if (message.topic != null && message.hasOwnProperty("topic"))
|
|
14697
|
+
object.topic = $root.contentful.SlugReference.toObject(message.topic, options);
|
|
14698
|
+
if (message.categories && message.categories.length) {
|
|
14699
|
+
object.categories = [];
|
|
14700
|
+
for (var j = 0; j < message.categories.length; ++j)
|
|
14701
|
+
object.categories[j] = $root.contentful.SlugReference.toObject(message.categories[j], options);
|
|
14702
|
+
}
|
|
14703
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
14704
|
+
if (typeof message.createdAt === "number")
|
|
14705
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
14706
|
+
else
|
|
14707
|
+
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;
|
|
14708
|
+
return object;
|
|
14709
|
+
};
|
|
14710
|
+
|
|
14711
|
+
/**
|
|
14712
|
+
* Converts this ContentfulOrderedCategoriesCreated to JSON.
|
|
14713
|
+
* @function toJSON
|
|
14714
|
+
* @memberof ContentfulOrderedCategoriesCreated
|
|
14715
|
+
* @instance
|
|
14716
|
+
* @returns {Object.<string,*>} JSON object
|
|
14717
|
+
*/
|
|
14718
|
+
ContentfulOrderedCategoriesCreated.prototype.toJSON = function toJSON() {
|
|
14719
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
14720
|
+
};
|
|
14721
|
+
|
|
14722
|
+
return ContentfulOrderedCategoriesCreated;
|
|
14723
|
+
})();
|
|
14724
|
+
|
|
14725
|
+
$root.ContentfulOrderedCategoriesUpdated = (function() {
|
|
14726
|
+
|
|
14727
|
+
/**
|
|
14728
|
+
* Properties of a ContentfulOrderedCategoriesUpdated.
|
|
14729
|
+
* @exports IContentfulOrderedCategoriesUpdated
|
|
14730
|
+
* @interface IContentfulOrderedCategoriesUpdated
|
|
14731
|
+
* @property {string|null} [slug] ContentfulOrderedCategoriesUpdated slug
|
|
14732
|
+
* @property {contentful.ISlugReference|null} [topic] ContentfulOrderedCategoriesUpdated topic
|
|
14733
|
+
* @property {Array.<contentful.ISlugReference>|null} [categories] ContentfulOrderedCategoriesUpdated categories
|
|
14734
|
+
* @property {number|Long|null} [updatedAt] ContentfulOrderedCategoriesUpdated updatedAt
|
|
14735
|
+
*/
|
|
14736
|
+
|
|
14737
|
+
/**
|
|
14738
|
+
* Constructs a new ContentfulOrderedCategoriesUpdated.
|
|
14739
|
+
* @exports ContentfulOrderedCategoriesUpdated
|
|
14740
|
+
* @classdesc Represents a ContentfulOrderedCategoriesUpdated.
|
|
14741
|
+
* @implements IContentfulOrderedCategoriesUpdated
|
|
14742
|
+
* @constructor
|
|
14743
|
+
* @param {IContentfulOrderedCategoriesUpdated=} [properties] Properties to set
|
|
14744
|
+
*/
|
|
14745
|
+
function ContentfulOrderedCategoriesUpdated(properties) {
|
|
14746
|
+
this.categories = [];
|
|
14747
|
+
if (properties)
|
|
14748
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
14749
|
+
if (properties[keys[i]] != null)
|
|
14750
|
+
this[keys[i]] = properties[keys[i]];
|
|
14751
|
+
}
|
|
14752
|
+
|
|
14753
|
+
/**
|
|
14754
|
+
* ContentfulOrderedCategoriesUpdated slug.
|
|
14755
|
+
* @member {string} slug
|
|
14756
|
+
* @memberof ContentfulOrderedCategoriesUpdated
|
|
14757
|
+
* @instance
|
|
14758
|
+
*/
|
|
14759
|
+
ContentfulOrderedCategoriesUpdated.prototype.slug = "";
|
|
14760
|
+
|
|
14761
|
+
/**
|
|
14762
|
+
* ContentfulOrderedCategoriesUpdated topic.
|
|
14763
|
+
* @member {contentful.ISlugReference|null|undefined} topic
|
|
14764
|
+
* @memberof ContentfulOrderedCategoriesUpdated
|
|
14765
|
+
* @instance
|
|
14766
|
+
*/
|
|
14767
|
+
ContentfulOrderedCategoriesUpdated.prototype.topic = null;
|
|
14768
|
+
|
|
14769
|
+
/**
|
|
14770
|
+
* ContentfulOrderedCategoriesUpdated categories.
|
|
14771
|
+
* @member {Array.<contentful.ISlugReference>} categories
|
|
14772
|
+
* @memberof ContentfulOrderedCategoriesUpdated
|
|
14773
|
+
* @instance
|
|
14774
|
+
*/
|
|
14775
|
+
ContentfulOrderedCategoriesUpdated.prototype.categories = $util.emptyArray;
|
|
14776
|
+
|
|
14777
|
+
/**
|
|
14778
|
+
* ContentfulOrderedCategoriesUpdated updatedAt.
|
|
14779
|
+
* @member {number|Long} updatedAt
|
|
14780
|
+
* @memberof ContentfulOrderedCategoriesUpdated
|
|
14781
|
+
* @instance
|
|
14782
|
+
*/
|
|
14783
|
+
ContentfulOrderedCategoriesUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
14784
|
+
|
|
14785
|
+
/**
|
|
14786
|
+
* Creates a new ContentfulOrderedCategoriesUpdated instance using the specified properties.
|
|
14787
|
+
* @function create
|
|
14788
|
+
* @memberof ContentfulOrderedCategoriesUpdated
|
|
14789
|
+
* @static
|
|
14790
|
+
* @param {IContentfulOrderedCategoriesUpdated=} [properties] Properties to set
|
|
14791
|
+
* @returns {ContentfulOrderedCategoriesUpdated} ContentfulOrderedCategoriesUpdated instance
|
|
14792
|
+
*/
|
|
14793
|
+
ContentfulOrderedCategoriesUpdated.create = function create(properties) {
|
|
14794
|
+
return new ContentfulOrderedCategoriesUpdated(properties);
|
|
14795
|
+
};
|
|
14796
|
+
|
|
14797
|
+
/**
|
|
14798
|
+
* Encodes the specified ContentfulOrderedCategoriesUpdated message. Does not implicitly {@link ContentfulOrderedCategoriesUpdated.verify|verify} messages.
|
|
14799
|
+
* @function encode
|
|
14800
|
+
* @memberof ContentfulOrderedCategoriesUpdated
|
|
14801
|
+
* @static
|
|
14802
|
+
* @param {IContentfulOrderedCategoriesUpdated} message ContentfulOrderedCategoriesUpdated message or plain object to encode
|
|
14803
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
14804
|
+
* @returns {$protobuf.Writer} Writer
|
|
14805
|
+
*/
|
|
14806
|
+
ContentfulOrderedCategoriesUpdated.encode = function encode(message, writer) {
|
|
14807
|
+
if (!writer)
|
|
14808
|
+
writer = $Writer.create();
|
|
14809
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
14810
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
14811
|
+
if (message.topic != null && message.hasOwnProperty("topic"))
|
|
14812
|
+
$root.contentful.SlugReference.encode(message.topic, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
14813
|
+
if (message.categories != null && message.categories.length)
|
|
14814
|
+
for (var i = 0; i < message.categories.length; ++i)
|
|
14815
|
+
$root.contentful.SlugReference.encode(message.categories[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
14816
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
14817
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.updatedAt);
|
|
14818
|
+
return writer;
|
|
14819
|
+
};
|
|
14820
|
+
|
|
14821
|
+
/**
|
|
14822
|
+
* Encodes the specified ContentfulOrderedCategoriesUpdated message, length delimited. Does not implicitly {@link ContentfulOrderedCategoriesUpdated.verify|verify} messages.
|
|
14823
|
+
* @function encodeDelimited
|
|
14824
|
+
* @memberof ContentfulOrderedCategoriesUpdated
|
|
14825
|
+
* @static
|
|
14826
|
+
* @param {IContentfulOrderedCategoriesUpdated} message ContentfulOrderedCategoriesUpdated message or plain object to encode
|
|
14827
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
14828
|
+
* @returns {$protobuf.Writer} Writer
|
|
14829
|
+
*/
|
|
14830
|
+
ContentfulOrderedCategoriesUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
14831
|
+
return this.encode(message, writer).ldelim();
|
|
14832
|
+
};
|
|
14833
|
+
|
|
14834
|
+
/**
|
|
14835
|
+
* Decodes a ContentfulOrderedCategoriesUpdated message from the specified reader or buffer.
|
|
14836
|
+
* @function decode
|
|
14837
|
+
* @memberof ContentfulOrderedCategoriesUpdated
|
|
14838
|
+
* @static
|
|
14839
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
14840
|
+
* @param {number} [length] Message length if known beforehand
|
|
14841
|
+
* @returns {ContentfulOrderedCategoriesUpdated} ContentfulOrderedCategoriesUpdated
|
|
14842
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14843
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14844
|
+
*/
|
|
14845
|
+
ContentfulOrderedCategoriesUpdated.decode = function decode(reader, length) {
|
|
14846
|
+
if (!(reader instanceof $Reader))
|
|
14847
|
+
reader = $Reader.create(reader);
|
|
14848
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulOrderedCategoriesUpdated();
|
|
14849
|
+
while (reader.pos < end) {
|
|
14850
|
+
var tag = reader.uint32();
|
|
14851
|
+
switch (tag >>> 3) {
|
|
14852
|
+
case 1:
|
|
14853
|
+
message.slug = reader.string();
|
|
14854
|
+
break;
|
|
14855
|
+
case 2:
|
|
14856
|
+
message.topic = $root.contentful.SlugReference.decode(reader, reader.uint32());
|
|
14857
|
+
break;
|
|
14858
|
+
case 3:
|
|
14859
|
+
if (!(message.categories && message.categories.length))
|
|
14860
|
+
message.categories = [];
|
|
14861
|
+
message.categories.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
14862
|
+
break;
|
|
14863
|
+
case 4:
|
|
14864
|
+
message.updatedAt = reader.uint64();
|
|
14865
|
+
break;
|
|
14866
|
+
default:
|
|
14867
|
+
reader.skipType(tag & 7);
|
|
14868
|
+
break;
|
|
14869
|
+
}
|
|
14870
|
+
}
|
|
14871
|
+
return message;
|
|
14872
|
+
};
|
|
14873
|
+
|
|
14874
|
+
/**
|
|
14875
|
+
* Decodes a ContentfulOrderedCategoriesUpdated message from the specified reader or buffer, length delimited.
|
|
14876
|
+
* @function decodeDelimited
|
|
14877
|
+
* @memberof ContentfulOrderedCategoriesUpdated
|
|
14878
|
+
* @static
|
|
14879
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
14880
|
+
* @returns {ContentfulOrderedCategoriesUpdated} ContentfulOrderedCategoriesUpdated
|
|
14881
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
14882
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
14883
|
+
*/
|
|
14884
|
+
ContentfulOrderedCategoriesUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
14885
|
+
if (!(reader instanceof $Reader))
|
|
14886
|
+
reader = new $Reader(reader);
|
|
14887
|
+
return this.decode(reader, reader.uint32());
|
|
14888
|
+
};
|
|
14889
|
+
|
|
14890
|
+
/**
|
|
14891
|
+
* Verifies a ContentfulOrderedCategoriesUpdated message.
|
|
14892
|
+
* @function verify
|
|
14893
|
+
* @memberof ContentfulOrderedCategoriesUpdated
|
|
14894
|
+
* @static
|
|
14895
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
14896
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
14897
|
+
*/
|
|
14898
|
+
ContentfulOrderedCategoriesUpdated.verify = function verify(message) {
|
|
14899
|
+
if (typeof message !== "object" || message === null)
|
|
14900
|
+
return "object expected";
|
|
14901
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
14902
|
+
if (!$util.isString(message.slug))
|
|
14903
|
+
return "slug: string expected";
|
|
14904
|
+
if (message.topic != null && message.hasOwnProperty("topic")) {
|
|
14905
|
+
var error = $root.contentful.SlugReference.verify(message.topic);
|
|
14906
|
+
if (error)
|
|
14907
|
+
return "topic." + error;
|
|
14908
|
+
}
|
|
14909
|
+
if (message.categories != null && message.hasOwnProperty("categories")) {
|
|
14910
|
+
if (!Array.isArray(message.categories))
|
|
14911
|
+
return "categories: array expected";
|
|
14912
|
+
for (var i = 0; i < message.categories.length; ++i) {
|
|
14913
|
+
var error = $root.contentful.SlugReference.verify(message.categories[i]);
|
|
14914
|
+
if (error)
|
|
14915
|
+
return "categories." + error;
|
|
14916
|
+
}
|
|
14917
|
+
}
|
|
14918
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
14919
|
+
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
14920
|
+
return "updatedAt: integer|Long expected";
|
|
14921
|
+
return null;
|
|
14922
|
+
};
|
|
14923
|
+
|
|
14924
|
+
/**
|
|
14925
|
+
* Creates a ContentfulOrderedCategoriesUpdated message from a plain object. Also converts values to their respective internal types.
|
|
14926
|
+
* @function fromObject
|
|
14927
|
+
* @memberof ContentfulOrderedCategoriesUpdated
|
|
14928
|
+
* @static
|
|
14929
|
+
* @param {Object.<string,*>} object Plain object
|
|
14930
|
+
* @returns {ContentfulOrderedCategoriesUpdated} ContentfulOrderedCategoriesUpdated
|
|
14931
|
+
*/
|
|
14932
|
+
ContentfulOrderedCategoriesUpdated.fromObject = function fromObject(object) {
|
|
14933
|
+
if (object instanceof $root.ContentfulOrderedCategoriesUpdated)
|
|
14934
|
+
return object;
|
|
14935
|
+
var message = new $root.ContentfulOrderedCategoriesUpdated();
|
|
14936
|
+
if (object.slug != null)
|
|
14937
|
+
message.slug = String(object.slug);
|
|
14938
|
+
if (object.topic != null) {
|
|
14939
|
+
if (typeof object.topic !== "object")
|
|
14940
|
+
throw TypeError(".ContentfulOrderedCategoriesUpdated.topic: object expected");
|
|
14941
|
+
message.topic = $root.contentful.SlugReference.fromObject(object.topic);
|
|
14942
|
+
}
|
|
14943
|
+
if (object.categories) {
|
|
14944
|
+
if (!Array.isArray(object.categories))
|
|
14945
|
+
throw TypeError(".ContentfulOrderedCategoriesUpdated.categories: array expected");
|
|
14946
|
+
message.categories = [];
|
|
14947
|
+
for (var i = 0; i < object.categories.length; ++i) {
|
|
14948
|
+
if (typeof object.categories[i] !== "object")
|
|
14949
|
+
throw TypeError(".ContentfulOrderedCategoriesUpdated.categories: object expected");
|
|
14950
|
+
message.categories[i] = $root.contentful.SlugReference.fromObject(object.categories[i]);
|
|
14951
|
+
}
|
|
14952
|
+
}
|
|
14953
|
+
if (object.updatedAt != null)
|
|
14954
|
+
if ($util.Long)
|
|
14955
|
+
(message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
|
|
14956
|
+
else if (typeof object.updatedAt === "string")
|
|
14957
|
+
message.updatedAt = parseInt(object.updatedAt, 10);
|
|
14958
|
+
else if (typeof object.updatedAt === "number")
|
|
14959
|
+
message.updatedAt = object.updatedAt;
|
|
14960
|
+
else if (typeof object.updatedAt === "object")
|
|
14961
|
+
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
14962
|
+
return message;
|
|
14963
|
+
};
|
|
14964
|
+
|
|
14965
|
+
/**
|
|
14966
|
+
* Creates a plain object from a ContentfulOrderedCategoriesUpdated message. Also converts values to other types if specified.
|
|
14967
|
+
* @function toObject
|
|
14968
|
+
* @memberof ContentfulOrderedCategoriesUpdated
|
|
14969
|
+
* @static
|
|
14970
|
+
* @param {ContentfulOrderedCategoriesUpdated} message ContentfulOrderedCategoriesUpdated
|
|
14971
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
14972
|
+
* @returns {Object.<string,*>} Plain object
|
|
14973
|
+
*/
|
|
14974
|
+
ContentfulOrderedCategoriesUpdated.toObject = function toObject(message, options) {
|
|
14975
|
+
if (!options)
|
|
14976
|
+
options = {};
|
|
14977
|
+
var object = {};
|
|
14978
|
+
if (options.arrays || options.defaults)
|
|
14979
|
+
object.categories = [];
|
|
14980
|
+
if (options.defaults) {
|
|
14981
|
+
object.slug = "";
|
|
14982
|
+
object.topic = null;
|
|
14983
|
+
if ($util.Long) {
|
|
14984
|
+
var long = new $util.Long(0, 0, true);
|
|
14985
|
+
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
14986
|
+
} else
|
|
14987
|
+
object.updatedAt = options.longs === String ? "0" : 0;
|
|
14988
|
+
}
|
|
14989
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
14990
|
+
object.slug = message.slug;
|
|
14991
|
+
if (message.topic != null && message.hasOwnProperty("topic"))
|
|
14992
|
+
object.topic = $root.contentful.SlugReference.toObject(message.topic, options);
|
|
14993
|
+
if (message.categories && message.categories.length) {
|
|
14994
|
+
object.categories = [];
|
|
14995
|
+
for (var j = 0; j < message.categories.length; ++j)
|
|
14996
|
+
object.categories[j] = $root.contentful.SlugReference.toObject(message.categories[j], options);
|
|
14997
|
+
}
|
|
14998
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
14999
|
+
if (typeof message.updatedAt === "number")
|
|
15000
|
+
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
15001
|
+
else
|
|
15002
|
+
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;
|
|
15003
|
+
return object;
|
|
15004
|
+
};
|
|
15005
|
+
|
|
15006
|
+
/**
|
|
15007
|
+
* Converts this ContentfulOrderedCategoriesUpdated to JSON.
|
|
15008
|
+
* @function toJSON
|
|
15009
|
+
* @memberof ContentfulOrderedCategoriesUpdated
|
|
15010
|
+
* @instance
|
|
15011
|
+
* @returns {Object.<string,*>} JSON object
|
|
15012
|
+
*/
|
|
15013
|
+
ContentfulOrderedCategoriesUpdated.prototype.toJSON = function toJSON() {
|
|
15014
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
15015
|
+
};
|
|
15016
|
+
|
|
15017
|
+
return ContentfulOrderedCategoriesUpdated;
|
|
15018
|
+
})();
|
|
15019
|
+
|
|
14430
15020
|
$root.ContentfulContentModelCreated = (function() {
|
|
14431
15021
|
|
|
14432
15022
|
/**
|
package/package.json
CHANGED