@headspace/protos-events 1.150.0 → 1.151.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 +348 -0
- package/lib/index.js +980 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -16575,6 +16575,354 @@ export class GoogleSubscriptionExpired implements IGoogleSubscriptionExpired {
|
|
|
16575
16575
|
public toJSON(): { [k: string]: any };
|
|
16576
16576
|
}
|
|
16577
16577
|
|
|
16578
|
+
/** Properties of a LayoutCreated. */
|
|
16579
|
+
export interface ILayoutCreated {
|
|
16580
|
+
|
|
16581
|
+
/** LayoutCreated slug */
|
|
16582
|
+
slug?: (string|null);
|
|
16583
|
+
|
|
16584
|
+
/** LayoutCreated entityId */
|
|
16585
|
+
entityId?: (string|null);
|
|
16586
|
+
|
|
16587
|
+
/** LayoutCreated entityType */
|
|
16588
|
+
entityType?: (string|null);
|
|
16589
|
+
|
|
16590
|
+
/** LayoutCreated accessGroups */
|
|
16591
|
+
accessGroups?: (contentful.ISlugReference[]|null);
|
|
16592
|
+
|
|
16593
|
+
/** LayoutCreated excludedAccessGroups */
|
|
16594
|
+
excludedAccessGroups?: (contentful.ISlugReference[]|null);
|
|
16595
|
+
|
|
16596
|
+
/** LayoutCreated createdAt */
|
|
16597
|
+
createdAt?: (number|Long|null);
|
|
16598
|
+
}
|
|
16599
|
+
|
|
16600
|
+
/** Represents a LayoutCreated. */
|
|
16601
|
+
export class LayoutCreated implements ILayoutCreated {
|
|
16602
|
+
|
|
16603
|
+
/**
|
|
16604
|
+
* Constructs a new LayoutCreated.
|
|
16605
|
+
* @param [properties] Properties to set
|
|
16606
|
+
*/
|
|
16607
|
+
constructor(properties?: ILayoutCreated);
|
|
16608
|
+
|
|
16609
|
+
/** LayoutCreated slug. */
|
|
16610
|
+
public slug: string;
|
|
16611
|
+
|
|
16612
|
+
/** LayoutCreated entityId. */
|
|
16613
|
+
public entityId: string;
|
|
16614
|
+
|
|
16615
|
+
/** LayoutCreated entityType. */
|
|
16616
|
+
public entityType: string;
|
|
16617
|
+
|
|
16618
|
+
/** LayoutCreated accessGroups. */
|
|
16619
|
+
public accessGroups: contentful.ISlugReference[];
|
|
16620
|
+
|
|
16621
|
+
/** LayoutCreated excludedAccessGroups. */
|
|
16622
|
+
public excludedAccessGroups: contentful.ISlugReference[];
|
|
16623
|
+
|
|
16624
|
+
/** LayoutCreated createdAt. */
|
|
16625
|
+
public createdAt: (number|Long);
|
|
16626
|
+
|
|
16627
|
+
/**
|
|
16628
|
+
* Creates a new LayoutCreated instance using the specified properties.
|
|
16629
|
+
* @param [properties] Properties to set
|
|
16630
|
+
* @returns LayoutCreated instance
|
|
16631
|
+
*/
|
|
16632
|
+
public static create(properties?: ILayoutCreated): LayoutCreated;
|
|
16633
|
+
|
|
16634
|
+
/**
|
|
16635
|
+
* Encodes the specified LayoutCreated message. Does not implicitly {@link LayoutCreated.verify|verify} messages.
|
|
16636
|
+
* @param message LayoutCreated message or plain object to encode
|
|
16637
|
+
* @param [writer] Writer to encode to
|
|
16638
|
+
* @returns Writer
|
|
16639
|
+
*/
|
|
16640
|
+
public static encode(message: ILayoutCreated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
16641
|
+
|
|
16642
|
+
/**
|
|
16643
|
+
* Encodes the specified LayoutCreated message, length delimited. Does not implicitly {@link LayoutCreated.verify|verify} messages.
|
|
16644
|
+
* @param message LayoutCreated message or plain object to encode
|
|
16645
|
+
* @param [writer] Writer to encode to
|
|
16646
|
+
* @returns Writer
|
|
16647
|
+
*/
|
|
16648
|
+
public static encodeDelimited(message: ILayoutCreated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
16649
|
+
|
|
16650
|
+
/**
|
|
16651
|
+
* Decodes a LayoutCreated message from the specified reader or buffer.
|
|
16652
|
+
* @param reader Reader or buffer to decode from
|
|
16653
|
+
* @param [length] Message length if known beforehand
|
|
16654
|
+
* @returns LayoutCreated
|
|
16655
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
16656
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
16657
|
+
*/
|
|
16658
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): LayoutCreated;
|
|
16659
|
+
|
|
16660
|
+
/**
|
|
16661
|
+
* Decodes a LayoutCreated message from the specified reader or buffer, length delimited.
|
|
16662
|
+
* @param reader Reader or buffer to decode from
|
|
16663
|
+
* @returns LayoutCreated
|
|
16664
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
16665
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
16666
|
+
*/
|
|
16667
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): LayoutCreated;
|
|
16668
|
+
|
|
16669
|
+
/**
|
|
16670
|
+
* Verifies a LayoutCreated message.
|
|
16671
|
+
* @param message Plain object to verify
|
|
16672
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
16673
|
+
*/
|
|
16674
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
16675
|
+
|
|
16676
|
+
/**
|
|
16677
|
+
* Creates a LayoutCreated message from a plain object. Also converts values to their respective internal types.
|
|
16678
|
+
* @param object Plain object
|
|
16679
|
+
* @returns LayoutCreated
|
|
16680
|
+
*/
|
|
16681
|
+
public static fromObject(object: { [k: string]: any }): LayoutCreated;
|
|
16682
|
+
|
|
16683
|
+
/**
|
|
16684
|
+
* Creates a plain object from a LayoutCreated message. Also converts values to other types if specified.
|
|
16685
|
+
* @param message LayoutCreated
|
|
16686
|
+
* @param [options] Conversion options
|
|
16687
|
+
* @returns Plain object
|
|
16688
|
+
*/
|
|
16689
|
+
public static toObject(message: LayoutCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
16690
|
+
|
|
16691
|
+
/**
|
|
16692
|
+
* Converts this LayoutCreated to JSON.
|
|
16693
|
+
* @returns JSON object
|
|
16694
|
+
*/
|
|
16695
|
+
public toJSON(): { [k: string]: any };
|
|
16696
|
+
}
|
|
16697
|
+
|
|
16698
|
+
/** Properties of a LayoutUpdated. */
|
|
16699
|
+
export interface ILayoutUpdated {
|
|
16700
|
+
|
|
16701
|
+
/** LayoutUpdated slug */
|
|
16702
|
+
slug?: (string|null);
|
|
16703
|
+
|
|
16704
|
+
/** LayoutUpdated entityId */
|
|
16705
|
+
entityId?: (string|null);
|
|
16706
|
+
|
|
16707
|
+
/** LayoutUpdated entityType */
|
|
16708
|
+
entityType?: (string|null);
|
|
16709
|
+
|
|
16710
|
+
/** LayoutUpdated accessGroups */
|
|
16711
|
+
accessGroups?: (contentful.ISlugReference[]|null);
|
|
16712
|
+
|
|
16713
|
+
/** LayoutUpdated excludedAccessGroups */
|
|
16714
|
+
excludedAccessGroups?: (contentful.ISlugReference[]|null);
|
|
16715
|
+
|
|
16716
|
+
/** LayoutUpdated updatedAt */
|
|
16717
|
+
updatedAt?: (number|Long|null);
|
|
16718
|
+
}
|
|
16719
|
+
|
|
16720
|
+
/** Represents a LayoutUpdated. */
|
|
16721
|
+
export class LayoutUpdated implements ILayoutUpdated {
|
|
16722
|
+
|
|
16723
|
+
/**
|
|
16724
|
+
* Constructs a new LayoutUpdated.
|
|
16725
|
+
* @param [properties] Properties to set
|
|
16726
|
+
*/
|
|
16727
|
+
constructor(properties?: ILayoutUpdated);
|
|
16728
|
+
|
|
16729
|
+
/** LayoutUpdated slug. */
|
|
16730
|
+
public slug: string;
|
|
16731
|
+
|
|
16732
|
+
/** LayoutUpdated entityId. */
|
|
16733
|
+
public entityId: string;
|
|
16734
|
+
|
|
16735
|
+
/** LayoutUpdated entityType. */
|
|
16736
|
+
public entityType: string;
|
|
16737
|
+
|
|
16738
|
+
/** LayoutUpdated accessGroups. */
|
|
16739
|
+
public accessGroups: contentful.ISlugReference[];
|
|
16740
|
+
|
|
16741
|
+
/** LayoutUpdated excludedAccessGroups. */
|
|
16742
|
+
public excludedAccessGroups: contentful.ISlugReference[];
|
|
16743
|
+
|
|
16744
|
+
/** LayoutUpdated updatedAt. */
|
|
16745
|
+
public updatedAt: (number|Long);
|
|
16746
|
+
|
|
16747
|
+
/**
|
|
16748
|
+
* Creates a new LayoutUpdated instance using the specified properties.
|
|
16749
|
+
* @param [properties] Properties to set
|
|
16750
|
+
* @returns LayoutUpdated instance
|
|
16751
|
+
*/
|
|
16752
|
+
public static create(properties?: ILayoutUpdated): LayoutUpdated;
|
|
16753
|
+
|
|
16754
|
+
/**
|
|
16755
|
+
* Encodes the specified LayoutUpdated message. Does not implicitly {@link LayoutUpdated.verify|verify} messages.
|
|
16756
|
+
* @param message LayoutUpdated message or plain object to encode
|
|
16757
|
+
* @param [writer] Writer to encode to
|
|
16758
|
+
* @returns Writer
|
|
16759
|
+
*/
|
|
16760
|
+
public static encode(message: ILayoutUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
16761
|
+
|
|
16762
|
+
/**
|
|
16763
|
+
* Encodes the specified LayoutUpdated message, length delimited. Does not implicitly {@link LayoutUpdated.verify|verify} messages.
|
|
16764
|
+
* @param message LayoutUpdated message or plain object to encode
|
|
16765
|
+
* @param [writer] Writer to encode to
|
|
16766
|
+
* @returns Writer
|
|
16767
|
+
*/
|
|
16768
|
+
public static encodeDelimited(message: ILayoutUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
16769
|
+
|
|
16770
|
+
/**
|
|
16771
|
+
* Decodes a LayoutUpdated message from the specified reader or buffer.
|
|
16772
|
+
* @param reader Reader or buffer to decode from
|
|
16773
|
+
* @param [length] Message length if known beforehand
|
|
16774
|
+
* @returns LayoutUpdated
|
|
16775
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
16776
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
16777
|
+
*/
|
|
16778
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): LayoutUpdated;
|
|
16779
|
+
|
|
16780
|
+
/**
|
|
16781
|
+
* Decodes a LayoutUpdated message from the specified reader or buffer, length delimited.
|
|
16782
|
+
* @param reader Reader or buffer to decode from
|
|
16783
|
+
* @returns LayoutUpdated
|
|
16784
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
16785
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
16786
|
+
*/
|
|
16787
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): LayoutUpdated;
|
|
16788
|
+
|
|
16789
|
+
/**
|
|
16790
|
+
* Verifies a LayoutUpdated message.
|
|
16791
|
+
* @param message Plain object to verify
|
|
16792
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
16793
|
+
*/
|
|
16794
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
16795
|
+
|
|
16796
|
+
/**
|
|
16797
|
+
* Creates a LayoutUpdated message from a plain object. Also converts values to their respective internal types.
|
|
16798
|
+
* @param object Plain object
|
|
16799
|
+
* @returns LayoutUpdated
|
|
16800
|
+
*/
|
|
16801
|
+
public static fromObject(object: { [k: string]: any }): LayoutUpdated;
|
|
16802
|
+
|
|
16803
|
+
/**
|
|
16804
|
+
* Creates a plain object from a LayoutUpdated message. Also converts values to other types if specified.
|
|
16805
|
+
* @param message LayoutUpdated
|
|
16806
|
+
* @param [options] Conversion options
|
|
16807
|
+
* @returns Plain object
|
|
16808
|
+
*/
|
|
16809
|
+
public static toObject(message: LayoutUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
16810
|
+
|
|
16811
|
+
/**
|
|
16812
|
+
* Converts this LayoutUpdated to JSON.
|
|
16813
|
+
* @returns JSON object
|
|
16814
|
+
*/
|
|
16815
|
+
public toJSON(): { [k: string]: any };
|
|
16816
|
+
}
|
|
16817
|
+
|
|
16818
|
+
/** Properties of a LayoutDeleted. */
|
|
16819
|
+
export interface ILayoutDeleted {
|
|
16820
|
+
|
|
16821
|
+
/** LayoutDeleted slug */
|
|
16822
|
+
slug?: (string|null);
|
|
16823
|
+
|
|
16824
|
+
/** LayoutDeleted entityId */
|
|
16825
|
+
entityId?: (string|null);
|
|
16826
|
+
|
|
16827
|
+
/** LayoutDeleted entityType */
|
|
16828
|
+
entityType?: (string|null);
|
|
16829
|
+
|
|
16830
|
+
/** LayoutDeleted deletedAt */
|
|
16831
|
+
deletedAt?: (number|Long|null);
|
|
16832
|
+
}
|
|
16833
|
+
|
|
16834
|
+
/** Represents a LayoutDeleted. */
|
|
16835
|
+
export class LayoutDeleted implements ILayoutDeleted {
|
|
16836
|
+
|
|
16837
|
+
/**
|
|
16838
|
+
* Constructs a new LayoutDeleted.
|
|
16839
|
+
* @param [properties] Properties to set
|
|
16840
|
+
*/
|
|
16841
|
+
constructor(properties?: ILayoutDeleted);
|
|
16842
|
+
|
|
16843
|
+
/** LayoutDeleted slug. */
|
|
16844
|
+
public slug: string;
|
|
16845
|
+
|
|
16846
|
+
/** LayoutDeleted entityId. */
|
|
16847
|
+
public entityId: string;
|
|
16848
|
+
|
|
16849
|
+
/** LayoutDeleted entityType. */
|
|
16850
|
+
public entityType: string;
|
|
16851
|
+
|
|
16852
|
+
/** LayoutDeleted deletedAt. */
|
|
16853
|
+
public deletedAt: (number|Long);
|
|
16854
|
+
|
|
16855
|
+
/**
|
|
16856
|
+
* Creates a new LayoutDeleted instance using the specified properties.
|
|
16857
|
+
* @param [properties] Properties to set
|
|
16858
|
+
* @returns LayoutDeleted instance
|
|
16859
|
+
*/
|
|
16860
|
+
public static create(properties?: ILayoutDeleted): LayoutDeleted;
|
|
16861
|
+
|
|
16862
|
+
/**
|
|
16863
|
+
* Encodes the specified LayoutDeleted message. Does not implicitly {@link LayoutDeleted.verify|verify} messages.
|
|
16864
|
+
* @param message LayoutDeleted message or plain object to encode
|
|
16865
|
+
* @param [writer] Writer to encode to
|
|
16866
|
+
* @returns Writer
|
|
16867
|
+
*/
|
|
16868
|
+
public static encode(message: ILayoutDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
16869
|
+
|
|
16870
|
+
/**
|
|
16871
|
+
* Encodes the specified LayoutDeleted message, length delimited. Does not implicitly {@link LayoutDeleted.verify|verify} messages.
|
|
16872
|
+
* @param message LayoutDeleted message or plain object to encode
|
|
16873
|
+
* @param [writer] Writer to encode to
|
|
16874
|
+
* @returns Writer
|
|
16875
|
+
*/
|
|
16876
|
+
public static encodeDelimited(message: ILayoutDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
16877
|
+
|
|
16878
|
+
/**
|
|
16879
|
+
* Decodes a LayoutDeleted message from the specified reader or buffer.
|
|
16880
|
+
* @param reader Reader or buffer to decode from
|
|
16881
|
+
* @param [length] Message length if known beforehand
|
|
16882
|
+
* @returns LayoutDeleted
|
|
16883
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
16884
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
16885
|
+
*/
|
|
16886
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): LayoutDeleted;
|
|
16887
|
+
|
|
16888
|
+
/**
|
|
16889
|
+
* Decodes a LayoutDeleted message from the specified reader or buffer, length delimited.
|
|
16890
|
+
* @param reader Reader or buffer to decode from
|
|
16891
|
+
* @returns LayoutDeleted
|
|
16892
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
16893
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
16894
|
+
*/
|
|
16895
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): LayoutDeleted;
|
|
16896
|
+
|
|
16897
|
+
/**
|
|
16898
|
+
* Verifies a LayoutDeleted message.
|
|
16899
|
+
* @param message Plain object to verify
|
|
16900
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
16901
|
+
*/
|
|
16902
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
16903
|
+
|
|
16904
|
+
/**
|
|
16905
|
+
* Creates a LayoutDeleted message from a plain object. Also converts values to their respective internal types.
|
|
16906
|
+
* @param object Plain object
|
|
16907
|
+
* @returns LayoutDeleted
|
|
16908
|
+
*/
|
|
16909
|
+
public static fromObject(object: { [k: string]: any }): LayoutDeleted;
|
|
16910
|
+
|
|
16911
|
+
/**
|
|
16912
|
+
* Creates a plain object from a LayoutDeleted message. Also converts values to other types if specified.
|
|
16913
|
+
* @param message LayoutDeleted
|
|
16914
|
+
* @param [options] Conversion options
|
|
16915
|
+
* @returns Plain object
|
|
16916
|
+
*/
|
|
16917
|
+
public static toObject(message: LayoutDeleted, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
16918
|
+
|
|
16919
|
+
/**
|
|
16920
|
+
* Converts this LayoutDeleted to JSON.
|
|
16921
|
+
* @returns JSON object
|
|
16922
|
+
*/
|
|
16923
|
+
public toJSON(): { [k: string]: any };
|
|
16924
|
+
}
|
|
16925
|
+
|
|
16578
16926
|
/** Properties of a WakeupPlaylistCreated. */
|
|
16579
16927
|
export interface IWakeupPlaylistCreated {
|
|
16580
16928
|
|
package/lib/index.js
CHANGED
|
@@ -45372,6 +45372,986 @@ $root.GoogleSubscriptionExpired = (function() {
|
|
|
45372
45372
|
return GoogleSubscriptionExpired;
|
|
45373
45373
|
})();
|
|
45374
45374
|
|
|
45375
|
+
$root.LayoutCreated = (function() {
|
|
45376
|
+
|
|
45377
|
+
/**
|
|
45378
|
+
* Properties of a LayoutCreated.
|
|
45379
|
+
* @exports ILayoutCreated
|
|
45380
|
+
* @interface ILayoutCreated
|
|
45381
|
+
* @property {string|null} [slug] LayoutCreated slug
|
|
45382
|
+
* @property {string|null} [entityId] LayoutCreated entityId
|
|
45383
|
+
* @property {string|null} [entityType] LayoutCreated entityType
|
|
45384
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessGroups] LayoutCreated accessGroups
|
|
45385
|
+
* @property {Array.<contentful.ISlugReference>|null} [excludedAccessGroups] LayoutCreated excludedAccessGroups
|
|
45386
|
+
* @property {number|Long|null} [createdAt] LayoutCreated createdAt
|
|
45387
|
+
*/
|
|
45388
|
+
|
|
45389
|
+
/**
|
|
45390
|
+
* Constructs a new LayoutCreated.
|
|
45391
|
+
* @exports LayoutCreated
|
|
45392
|
+
* @classdesc Represents a LayoutCreated.
|
|
45393
|
+
* @implements ILayoutCreated
|
|
45394
|
+
* @constructor
|
|
45395
|
+
* @param {ILayoutCreated=} [properties] Properties to set
|
|
45396
|
+
*/
|
|
45397
|
+
function LayoutCreated(properties) {
|
|
45398
|
+
this.accessGroups = [];
|
|
45399
|
+
this.excludedAccessGroups = [];
|
|
45400
|
+
if (properties)
|
|
45401
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
45402
|
+
if (properties[keys[i]] != null)
|
|
45403
|
+
this[keys[i]] = properties[keys[i]];
|
|
45404
|
+
}
|
|
45405
|
+
|
|
45406
|
+
/**
|
|
45407
|
+
* LayoutCreated slug.
|
|
45408
|
+
* @member {string} slug
|
|
45409
|
+
* @memberof LayoutCreated
|
|
45410
|
+
* @instance
|
|
45411
|
+
*/
|
|
45412
|
+
LayoutCreated.prototype.slug = "";
|
|
45413
|
+
|
|
45414
|
+
/**
|
|
45415
|
+
* LayoutCreated entityId.
|
|
45416
|
+
* @member {string} entityId
|
|
45417
|
+
* @memberof LayoutCreated
|
|
45418
|
+
* @instance
|
|
45419
|
+
*/
|
|
45420
|
+
LayoutCreated.prototype.entityId = "";
|
|
45421
|
+
|
|
45422
|
+
/**
|
|
45423
|
+
* LayoutCreated entityType.
|
|
45424
|
+
* @member {string} entityType
|
|
45425
|
+
* @memberof LayoutCreated
|
|
45426
|
+
* @instance
|
|
45427
|
+
*/
|
|
45428
|
+
LayoutCreated.prototype.entityType = "";
|
|
45429
|
+
|
|
45430
|
+
/**
|
|
45431
|
+
* LayoutCreated accessGroups.
|
|
45432
|
+
* @member {Array.<contentful.ISlugReference>} accessGroups
|
|
45433
|
+
* @memberof LayoutCreated
|
|
45434
|
+
* @instance
|
|
45435
|
+
*/
|
|
45436
|
+
LayoutCreated.prototype.accessGroups = $util.emptyArray;
|
|
45437
|
+
|
|
45438
|
+
/**
|
|
45439
|
+
* LayoutCreated excludedAccessGroups.
|
|
45440
|
+
* @member {Array.<contentful.ISlugReference>} excludedAccessGroups
|
|
45441
|
+
* @memberof LayoutCreated
|
|
45442
|
+
* @instance
|
|
45443
|
+
*/
|
|
45444
|
+
LayoutCreated.prototype.excludedAccessGroups = $util.emptyArray;
|
|
45445
|
+
|
|
45446
|
+
/**
|
|
45447
|
+
* LayoutCreated createdAt.
|
|
45448
|
+
* @member {number|Long} createdAt
|
|
45449
|
+
* @memberof LayoutCreated
|
|
45450
|
+
* @instance
|
|
45451
|
+
*/
|
|
45452
|
+
LayoutCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
45453
|
+
|
|
45454
|
+
/**
|
|
45455
|
+
* Creates a new LayoutCreated instance using the specified properties.
|
|
45456
|
+
* @function create
|
|
45457
|
+
* @memberof LayoutCreated
|
|
45458
|
+
* @static
|
|
45459
|
+
* @param {ILayoutCreated=} [properties] Properties to set
|
|
45460
|
+
* @returns {LayoutCreated} LayoutCreated instance
|
|
45461
|
+
*/
|
|
45462
|
+
LayoutCreated.create = function create(properties) {
|
|
45463
|
+
return new LayoutCreated(properties);
|
|
45464
|
+
};
|
|
45465
|
+
|
|
45466
|
+
/**
|
|
45467
|
+
* Encodes the specified LayoutCreated message. Does not implicitly {@link LayoutCreated.verify|verify} messages.
|
|
45468
|
+
* @function encode
|
|
45469
|
+
* @memberof LayoutCreated
|
|
45470
|
+
* @static
|
|
45471
|
+
* @param {ILayoutCreated} message LayoutCreated message or plain object to encode
|
|
45472
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
45473
|
+
* @returns {$protobuf.Writer} Writer
|
|
45474
|
+
*/
|
|
45475
|
+
LayoutCreated.encode = function encode(message, writer) {
|
|
45476
|
+
if (!writer)
|
|
45477
|
+
writer = $Writer.create();
|
|
45478
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
45479
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
45480
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
45481
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityId);
|
|
45482
|
+
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
45483
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.entityType);
|
|
45484
|
+
if (message.accessGroups != null && message.accessGroups.length)
|
|
45485
|
+
for (var i = 0; i < message.accessGroups.length; ++i)
|
|
45486
|
+
$root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
45487
|
+
if (message.excludedAccessGroups != null && message.excludedAccessGroups.length)
|
|
45488
|
+
for (var i = 0; i < message.excludedAccessGroups.length; ++i)
|
|
45489
|
+
$root.contentful.SlugReference.encode(message.excludedAccessGroups[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
45490
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
45491
|
+
writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.createdAt);
|
|
45492
|
+
return writer;
|
|
45493
|
+
};
|
|
45494
|
+
|
|
45495
|
+
/**
|
|
45496
|
+
* Encodes the specified LayoutCreated message, length delimited. Does not implicitly {@link LayoutCreated.verify|verify} messages.
|
|
45497
|
+
* @function encodeDelimited
|
|
45498
|
+
* @memberof LayoutCreated
|
|
45499
|
+
* @static
|
|
45500
|
+
* @param {ILayoutCreated} message LayoutCreated message or plain object to encode
|
|
45501
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
45502
|
+
* @returns {$protobuf.Writer} Writer
|
|
45503
|
+
*/
|
|
45504
|
+
LayoutCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
45505
|
+
return this.encode(message, writer).ldelim();
|
|
45506
|
+
};
|
|
45507
|
+
|
|
45508
|
+
/**
|
|
45509
|
+
* Decodes a LayoutCreated message from the specified reader or buffer.
|
|
45510
|
+
* @function decode
|
|
45511
|
+
* @memberof LayoutCreated
|
|
45512
|
+
* @static
|
|
45513
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
45514
|
+
* @param {number} [length] Message length if known beforehand
|
|
45515
|
+
* @returns {LayoutCreated} LayoutCreated
|
|
45516
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
45517
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
45518
|
+
*/
|
|
45519
|
+
LayoutCreated.decode = function decode(reader, length) {
|
|
45520
|
+
if (!(reader instanceof $Reader))
|
|
45521
|
+
reader = $Reader.create(reader);
|
|
45522
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.LayoutCreated();
|
|
45523
|
+
while (reader.pos < end) {
|
|
45524
|
+
var tag = reader.uint32();
|
|
45525
|
+
switch (tag >>> 3) {
|
|
45526
|
+
case 1:
|
|
45527
|
+
message.slug = reader.string();
|
|
45528
|
+
break;
|
|
45529
|
+
case 2:
|
|
45530
|
+
message.entityId = reader.string();
|
|
45531
|
+
break;
|
|
45532
|
+
case 3:
|
|
45533
|
+
message.entityType = reader.string();
|
|
45534
|
+
break;
|
|
45535
|
+
case 4:
|
|
45536
|
+
if (!(message.accessGroups && message.accessGroups.length))
|
|
45537
|
+
message.accessGroups = [];
|
|
45538
|
+
message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
45539
|
+
break;
|
|
45540
|
+
case 5:
|
|
45541
|
+
if (!(message.excludedAccessGroups && message.excludedAccessGroups.length))
|
|
45542
|
+
message.excludedAccessGroups = [];
|
|
45543
|
+
message.excludedAccessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
45544
|
+
break;
|
|
45545
|
+
case 6:
|
|
45546
|
+
message.createdAt = reader.uint64();
|
|
45547
|
+
break;
|
|
45548
|
+
default:
|
|
45549
|
+
reader.skipType(tag & 7);
|
|
45550
|
+
break;
|
|
45551
|
+
}
|
|
45552
|
+
}
|
|
45553
|
+
return message;
|
|
45554
|
+
};
|
|
45555
|
+
|
|
45556
|
+
/**
|
|
45557
|
+
* Decodes a LayoutCreated message from the specified reader or buffer, length delimited.
|
|
45558
|
+
* @function decodeDelimited
|
|
45559
|
+
* @memberof LayoutCreated
|
|
45560
|
+
* @static
|
|
45561
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
45562
|
+
* @returns {LayoutCreated} LayoutCreated
|
|
45563
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
45564
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
45565
|
+
*/
|
|
45566
|
+
LayoutCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
45567
|
+
if (!(reader instanceof $Reader))
|
|
45568
|
+
reader = new $Reader(reader);
|
|
45569
|
+
return this.decode(reader, reader.uint32());
|
|
45570
|
+
};
|
|
45571
|
+
|
|
45572
|
+
/**
|
|
45573
|
+
* Verifies a LayoutCreated message.
|
|
45574
|
+
* @function verify
|
|
45575
|
+
* @memberof LayoutCreated
|
|
45576
|
+
* @static
|
|
45577
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
45578
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
45579
|
+
*/
|
|
45580
|
+
LayoutCreated.verify = function verify(message) {
|
|
45581
|
+
if (typeof message !== "object" || message === null)
|
|
45582
|
+
return "object expected";
|
|
45583
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
45584
|
+
if (!$util.isString(message.slug))
|
|
45585
|
+
return "slug: string expected";
|
|
45586
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
45587
|
+
if (!$util.isString(message.entityId))
|
|
45588
|
+
return "entityId: string expected";
|
|
45589
|
+
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
45590
|
+
if (!$util.isString(message.entityType))
|
|
45591
|
+
return "entityType: string expected";
|
|
45592
|
+
if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
|
|
45593
|
+
if (!Array.isArray(message.accessGroups))
|
|
45594
|
+
return "accessGroups: array expected";
|
|
45595
|
+
for (var i = 0; i < message.accessGroups.length; ++i) {
|
|
45596
|
+
var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
|
|
45597
|
+
if (error)
|
|
45598
|
+
return "accessGroups." + error;
|
|
45599
|
+
}
|
|
45600
|
+
}
|
|
45601
|
+
if (message.excludedAccessGroups != null && message.hasOwnProperty("excludedAccessGroups")) {
|
|
45602
|
+
if (!Array.isArray(message.excludedAccessGroups))
|
|
45603
|
+
return "excludedAccessGroups: array expected";
|
|
45604
|
+
for (var i = 0; i < message.excludedAccessGroups.length; ++i) {
|
|
45605
|
+
var error = $root.contentful.SlugReference.verify(message.excludedAccessGroups[i]);
|
|
45606
|
+
if (error)
|
|
45607
|
+
return "excludedAccessGroups." + error;
|
|
45608
|
+
}
|
|
45609
|
+
}
|
|
45610
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
45611
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
45612
|
+
return "createdAt: integer|Long expected";
|
|
45613
|
+
return null;
|
|
45614
|
+
};
|
|
45615
|
+
|
|
45616
|
+
/**
|
|
45617
|
+
* Creates a LayoutCreated message from a plain object. Also converts values to their respective internal types.
|
|
45618
|
+
* @function fromObject
|
|
45619
|
+
* @memberof LayoutCreated
|
|
45620
|
+
* @static
|
|
45621
|
+
* @param {Object.<string,*>} object Plain object
|
|
45622
|
+
* @returns {LayoutCreated} LayoutCreated
|
|
45623
|
+
*/
|
|
45624
|
+
LayoutCreated.fromObject = function fromObject(object) {
|
|
45625
|
+
if (object instanceof $root.LayoutCreated)
|
|
45626
|
+
return object;
|
|
45627
|
+
var message = new $root.LayoutCreated();
|
|
45628
|
+
if (object.slug != null)
|
|
45629
|
+
message.slug = String(object.slug);
|
|
45630
|
+
if (object.entityId != null)
|
|
45631
|
+
message.entityId = String(object.entityId);
|
|
45632
|
+
if (object.entityType != null)
|
|
45633
|
+
message.entityType = String(object.entityType);
|
|
45634
|
+
if (object.accessGroups) {
|
|
45635
|
+
if (!Array.isArray(object.accessGroups))
|
|
45636
|
+
throw TypeError(".LayoutCreated.accessGroups: array expected");
|
|
45637
|
+
message.accessGroups = [];
|
|
45638
|
+
for (var i = 0; i < object.accessGroups.length; ++i) {
|
|
45639
|
+
if (typeof object.accessGroups[i] !== "object")
|
|
45640
|
+
throw TypeError(".LayoutCreated.accessGroups: object expected");
|
|
45641
|
+
message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
|
|
45642
|
+
}
|
|
45643
|
+
}
|
|
45644
|
+
if (object.excludedAccessGroups) {
|
|
45645
|
+
if (!Array.isArray(object.excludedAccessGroups))
|
|
45646
|
+
throw TypeError(".LayoutCreated.excludedAccessGroups: array expected");
|
|
45647
|
+
message.excludedAccessGroups = [];
|
|
45648
|
+
for (var i = 0; i < object.excludedAccessGroups.length; ++i) {
|
|
45649
|
+
if (typeof object.excludedAccessGroups[i] !== "object")
|
|
45650
|
+
throw TypeError(".LayoutCreated.excludedAccessGroups: object expected");
|
|
45651
|
+
message.excludedAccessGroups[i] = $root.contentful.SlugReference.fromObject(object.excludedAccessGroups[i]);
|
|
45652
|
+
}
|
|
45653
|
+
}
|
|
45654
|
+
if (object.createdAt != null)
|
|
45655
|
+
if ($util.Long)
|
|
45656
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
45657
|
+
else if (typeof object.createdAt === "string")
|
|
45658
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
45659
|
+
else if (typeof object.createdAt === "number")
|
|
45660
|
+
message.createdAt = object.createdAt;
|
|
45661
|
+
else if (typeof object.createdAt === "object")
|
|
45662
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
45663
|
+
return message;
|
|
45664
|
+
};
|
|
45665
|
+
|
|
45666
|
+
/**
|
|
45667
|
+
* Creates a plain object from a LayoutCreated message. Also converts values to other types if specified.
|
|
45668
|
+
* @function toObject
|
|
45669
|
+
* @memberof LayoutCreated
|
|
45670
|
+
* @static
|
|
45671
|
+
* @param {LayoutCreated} message LayoutCreated
|
|
45672
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
45673
|
+
* @returns {Object.<string,*>} Plain object
|
|
45674
|
+
*/
|
|
45675
|
+
LayoutCreated.toObject = function toObject(message, options) {
|
|
45676
|
+
if (!options)
|
|
45677
|
+
options = {};
|
|
45678
|
+
var object = {};
|
|
45679
|
+
if (options.arrays || options.defaults) {
|
|
45680
|
+
object.accessGroups = [];
|
|
45681
|
+
object.excludedAccessGroups = [];
|
|
45682
|
+
}
|
|
45683
|
+
if (options.defaults) {
|
|
45684
|
+
object.slug = "";
|
|
45685
|
+
object.entityId = "";
|
|
45686
|
+
object.entityType = "";
|
|
45687
|
+
if ($util.Long) {
|
|
45688
|
+
var long = new $util.Long(0, 0, true);
|
|
45689
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
45690
|
+
} else
|
|
45691
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
45692
|
+
}
|
|
45693
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
45694
|
+
object.slug = message.slug;
|
|
45695
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
45696
|
+
object.entityId = message.entityId;
|
|
45697
|
+
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
45698
|
+
object.entityType = message.entityType;
|
|
45699
|
+
if (message.accessGroups && message.accessGroups.length) {
|
|
45700
|
+
object.accessGroups = [];
|
|
45701
|
+
for (var j = 0; j < message.accessGroups.length; ++j)
|
|
45702
|
+
object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
|
|
45703
|
+
}
|
|
45704
|
+
if (message.excludedAccessGroups && message.excludedAccessGroups.length) {
|
|
45705
|
+
object.excludedAccessGroups = [];
|
|
45706
|
+
for (var j = 0; j < message.excludedAccessGroups.length; ++j)
|
|
45707
|
+
object.excludedAccessGroups[j] = $root.contentful.SlugReference.toObject(message.excludedAccessGroups[j], options);
|
|
45708
|
+
}
|
|
45709
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
45710
|
+
if (typeof message.createdAt === "number")
|
|
45711
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
45712
|
+
else
|
|
45713
|
+
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;
|
|
45714
|
+
return object;
|
|
45715
|
+
};
|
|
45716
|
+
|
|
45717
|
+
/**
|
|
45718
|
+
* Converts this LayoutCreated to JSON.
|
|
45719
|
+
* @function toJSON
|
|
45720
|
+
* @memberof LayoutCreated
|
|
45721
|
+
* @instance
|
|
45722
|
+
* @returns {Object.<string,*>} JSON object
|
|
45723
|
+
*/
|
|
45724
|
+
LayoutCreated.prototype.toJSON = function toJSON() {
|
|
45725
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
45726
|
+
};
|
|
45727
|
+
|
|
45728
|
+
return LayoutCreated;
|
|
45729
|
+
})();
|
|
45730
|
+
|
|
45731
|
+
$root.LayoutUpdated = (function() {
|
|
45732
|
+
|
|
45733
|
+
/**
|
|
45734
|
+
* Properties of a LayoutUpdated.
|
|
45735
|
+
* @exports ILayoutUpdated
|
|
45736
|
+
* @interface ILayoutUpdated
|
|
45737
|
+
* @property {string|null} [slug] LayoutUpdated slug
|
|
45738
|
+
* @property {string|null} [entityId] LayoutUpdated entityId
|
|
45739
|
+
* @property {string|null} [entityType] LayoutUpdated entityType
|
|
45740
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessGroups] LayoutUpdated accessGroups
|
|
45741
|
+
* @property {Array.<contentful.ISlugReference>|null} [excludedAccessGroups] LayoutUpdated excludedAccessGroups
|
|
45742
|
+
* @property {number|Long|null} [updatedAt] LayoutUpdated updatedAt
|
|
45743
|
+
*/
|
|
45744
|
+
|
|
45745
|
+
/**
|
|
45746
|
+
* Constructs a new LayoutUpdated.
|
|
45747
|
+
* @exports LayoutUpdated
|
|
45748
|
+
* @classdesc Represents a LayoutUpdated.
|
|
45749
|
+
* @implements ILayoutUpdated
|
|
45750
|
+
* @constructor
|
|
45751
|
+
* @param {ILayoutUpdated=} [properties] Properties to set
|
|
45752
|
+
*/
|
|
45753
|
+
function LayoutUpdated(properties) {
|
|
45754
|
+
this.accessGroups = [];
|
|
45755
|
+
this.excludedAccessGroups = [];
|
|
45756
|
+
if (properties)
|
|
45757
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
45758
|
+
if (properties[keys[i]] != null)
|
|
45759
|
+
this[keys[i]] = properties[keys[i]];
|
|
45760
|
+
}
|
|
45761
|
+
|
|
45762
|
+
/**
|
|
45763
|
+
* LayoutUpdated slug.
|
|
45764
|
+
* @member {string} slug
|
|
45765
|
+
* @memberof LayoutUpdated
|
|
45766
|
+
* @instance
|
|
45767
|
+
*/
|
|
45768
|
+
LayoutUpdated.prototype.slug = "";
|
|
45769
|
+
|
|
45770
|
+
/**
|
|
45771
|
+
* LayoutUpdated entityId.
|
|
45772
|
+
* @member {string} entityId
|
|
45773
|
+
* @memberof LayoutUpdated
|
|
45774
|
+
* @instance
|
|
45775
|
+
*/
|
|
45776
|
+
LayoutUpdated.prototype.entityId = "";
|
|
45777
|
+
|
|
45778
|
+
/**
|
|
45779
|
+
* LayoutUpdated entityType.
|
|
45780
|
+
* @member {string} entityType
|
|
45781
|
+
* @memberof LayoutUpdated
|
|
45782
|
+
* @instance
|
|
45783
|
+
*/
|
|
45784
|
+
LayoutUpdated.prototype.entityType = "";
|
|
45785
|
+
|
|
45786
|
+
/**
|
|
45787
|
+
* LayoutUpdated accessGroups.
|
|
45788
|
+
* @member {Array.<contentful.ISlugReference>} accessGroups
|
|
45789
|
+
* @memberof LayoutUpdated
|
|
45790
|
+
* @instance
|
|
45791
|
+
*/
|
|
45792
|
+
LayoutUpdated.prototype.accessGroups = $util.emptyArray;
|
|
45793
|
+
|
|
45794
|
+
/**
|
|
45795
|
+
* LayoutUpdated excludedAccessGroups.
|
|
45796
|
+
* @member {Array.<contentful.ISlugReference>} excludedAccessGroups
|
|
45797
|
+
* @memberof LayoutUpdated
|
|
45798
|
+
* @instance
|
|
45799
|
+
*/
|
|
45800
|
+
LayoutUpdated.prototype.excludedAccessGroups = $util.emptyArray;
|
|
45801
|
+
|
|
45802
|
+
/**
|
|
45803
|
+
* LayoutUpdated updatedAt.
|
|
45804
|
+
* @member {number|Long} updatedAt
|
|
45805
|
+
* @memberof LayoutUpdated
|
|
45806
|
+
* @instance
|
|
45807
|
+
*/
|
|
45808
|
+
LayoutUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
45809
|
+
|
|
45810
|
+
/**
|
|
45811
|
+
* Creates a new LayoutUpdated instance using the specified properties.
|
|
45812
|
+
* @function create
|
|
45813
|
+
* @memberof LayoutUpdated
|
|
45814
|
+
* @static
|
|
45815
|
+
* @param {ILayoutUpdated=} [properties] Properties to set
|
|
45816
|
+
* @returns {LayoutUpdated} LayoutUpdated instance
|
|
45817
|
+
*/
|
|
45818
|
+
LayoutUpdated.create = function create(properties) {
|
|
45819
|
+
return new LayoutUpdated(properties);
|
|
45820
|
+
};
|
|
45821
|
+
|
|
45822
|
+
/**
|
|
45823
|
+
* Encodes the specified LayoutUpdated message. Does not implicitly {@link LayoutUpdated.verify|verify} messages.
|
|
45824
|
+
* @function encode
|
|
45825
|
+
* @memberof LayoutUpdated
|
|
45826
|
+
* @static
|
|
45827
|
+
* @param {ILayoutUpdated} message LayoutUpdated message or plain object to encode
|
|
45828
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
45829
|
+
* @returns {$protobuf.Writer} Writer
|
|
45830
|
+
*/
|
|
45831
|
+
LayoutUpdated.encode = function encode(message, writer) {
|
|
45832
|
+
if (!writer)
|
|
45833
|
+
writer = $Writer.create();
|
|
45834
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
45835
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
45836
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
45837
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityId);
|
|
45838
|
+
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
45839
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.entityType);
|
|
45840
|
+
if (message.accessGroups != null && message.accessGroups.length)
|
|
45841
|
+
for (var i = 0; i < message.accessGroups.length; ++i)
|
|
45842
|
+
$root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
45843
|
+
if (message.excludedAccessGroups != null && message.excludedAccessGroups.length)
|
|
45844
|
+
for (var i = 0; i < message.excludedAccessGroups.length; ++i)
|
|
45845
|
+
$root.contentful.SlugReference.encode(message.excludedAccessGroups[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
45846
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
45847
|
+
writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.updatedAt);
|
|
45848
|
+
return writer;
|
|
45849
|
+
};
|
|
45850
|
+
|
|
45851
|
+
/**
|
|
45852
|
+
* Encodes the specified LayoutUpdated message, length delimited. Does not implicitly {@link LayoutUpdated.verify|verify} messages.
|
|
45853
|
+
* @function encodeDelimited
|
|
45854
|
+
* @memberof LayoutUpdated
|
|
45855
|
+
* @static
|
|
45856
|
+
* @param {ILayoutUpdated} message LayoutUpdated message or plain object to encode
|
|
45857
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
45858
|
+
* @returns {$protobuf.Writer} Writer
|
|
45859
|
+
*/
|
|
45860
|
+
LayoutUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
45861
|
+
return this.encode(message, writer).ldelim();
|
|
45862
|
+
};
|
|
45863
|
+
|
|
45864
|
+
/**
|
|
45865
|
+
* Decodes a LayoutUpdated message from the specified reader or buffer.
|
|
45866
|
+
* @function decode
|
|
45867
|
+
* @memberof LayoutUpdated
|
|
45868
|
+
* @static
|
|
45869
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
45870
|
+
* @param {number} [length] Message length if known beforehand
|
|
45871
|
+
* @returns {LayoutUpdated} LayoutUpdated
|
|
45872
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
45873
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
45874
|
+
*/
|
|
45875
|
+
LayoutUpdated.decode = function decode(reader, length) {
|
|
45876
|
+
if (!(reader instanceof $Reader))
|
|
45877
|
+
reader = $Reader.create(reader);
|
|
45878
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.LayoutUpdated();
|
|
45879
|
+
while (reader.pos < end) {
|
|
45880
|
+
var tag = reader.uint32();
|
|
45881
|
+
switch (tag >>> 3) {
|
|
45882
|
+
case 1:
|
|
45883
|
+
message.slug = reader.string();
|
|
45884
|
+
break;
|
|
45885
|
+
case 2:
|
|
45886
|
+
message.entityId = reader.string();
|
|
45887
|
+
break;
|
|
45888
|
+
case 3:
|
|
45889
|
+
message.entityType = reader.string();
|
|
45890
|
+
break;
|
|
45891
|
+
case 4:
|
|
45892
|
+
if (!(message.accessGroups && message.accessGroups.length))
|
|
45893
|
+
message.accessGroups = [];
|
|
45894
|
+
message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
45895
|
+
break;
|
|
45896
|
+
case 5:
|
|
45897
|
+
if (!(message.excludedAccessGroups && message.excludedAccessGroups.length))
|
|
45898
|
+
message.excludedAccessGroups = [];
|
|
45899
|
+
message.excludedAccessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
45900
|
+
break;
|
|
45901
|
+
case 6:
|
|
45902
|
+
message.updatedAt = reader.uint64();
|
|
45903
|
+
break;
|
|
45904
|
+
default:
|
|
45905
|
+
reader.skipType(tag & 7);
|
|
45906
|
+
break;
|
|
45907
|
+
}
|
|
45908
|
+
}
|
|
45909
|
+
return message;
|
|
45910
|
+
};
|
|
45911
|
+
|
|
45912
|
+
/**
|
|
45913
|
+
* Decodes a LayoutUpdated message from the specified reader or buffer, length delimited.
|
|
45914
|
+
* @function decodeDelimited
|
|
45915
|
+
* @memberof LayoutUpdated
|
|
45916
|
+
* @static
|
|
45917
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
45918
|
+
* @returns {LayoutUpdated} LayoutUpdated
|
|
45919
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
45920
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
45921
|
+
*/
|
|
45922
|
+
LayoutUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
45923
|
+
if (!(reader instanceof $Reader))
|
|
45924
|
+
reader = new $Reader(reader);
|
|
45925
|
+
return this.decode(reader, reader.uint32());
|
|
45926
|
+
};
|
|
45927
|
+
|
|
45928
|
+
/**
|
|
45929
|
+
* Verifies a LayoutUpdated message.
|
|
45930
|
+
* @function verify
|
|
45931
|
+
* @memberof LayoutUpdated
|
|
45932
|
+
* @static
|
|
45933
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
45934
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
45935
|
+
*/
|
|
45936
|
+
LayoutUpdated.verify = function verify(message) {
|
|
45937
|
+
if (typeof message !== "object" || message === null)
|
|
45938
|
+
return "object expected";
|
|
45939
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
45940
|
+
if (!$util.isString(message.slug))
|
|
45941
|
+
return "slug: string expected";
|
|
45942
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
45943
|
+
if (!$util.isString(message.entityId))
|
|
45944
|
+
return "entityId: string expected";
|
|
45945
|
+
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
45946
|
+
if (!$util.isString(message.entityType))
|
|
45947
|
+
return "entityType: string expected";
|
|
45948
|
+
if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
|
|
45949
|
+
if (!Array.isArray(message.accessGroups))
|
|
45950
|
+
return "accessGroups: array expected";
|
|
45951
|
+
for (var i = 0; i < message.accessGroups.length; ++i) {
|
|
45952
|
+
var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
|
|
45953
|
+
if (error)
|
|
45954
|
+
return "accessGroups." + error;
|
|
45955
|
+
}
|
|
45956
|
+
}
|
|
45957
|
+
if (message.excludedAccessGroups != null && message.hasOwnProperty("excludedAccessGroups")) {
|
|
45958
|
+
if (!Array.isArray(message.excludedAccessGroups))
|
|
45959
|
+
return "excludedAccessGroups: array expected";
|
|
45960
|
+
for (var i = 0; i < message.excludedAccessGroups.length; ++i) {
|
|
45961
|
+
var error = $root.contentful.SlugReference.verify(message.excludedAccessGroups[i]);
|
|
45962
|
+
if (error)
|
|
45963
|
+
return "excludedAccessGroups." + error;
|
|
45964
|
+
}
|
|
45965
|
+
}
|
|
45966
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
45967
|
+
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
45968
|
+
return "updatedAt: integer|Long expected";
|
|
45969
|
+
return null;
|
|
45970
|
+
};
|
|
45971
|
+
|
|
45972
|
+
/**
|
|
45973
|
+
* Creates a LayoutUpdated message from a plain object. Also converts values to their respective internal types.
|
|
45974
|
+
* @function fromObject
|
|
45975
|
+
* @memberof LayoutUpdated
|
|
45976
|
+
* @static
|
|
45977
|
+
* @param {Object.<string,*>} object Plain object
|
|
45978
|
+
* @returns {LayoutUpdated} LayoutUpdated
|
|
45979
|
+
*/
|
|
45980
|
+
LayoutUpdated.fromObject = function fromObject(object) {
|
|
45981
|
+
if (object instanceof $root.LayoutUpdated)
|
|
45982
|
+
return object;
|
|
45983
|
+
var message = new $root.LayoutUpdated();
|
|
45984
|
+
if (object.slug != null)
|
|
45985
|
+
message.slug = String(object.slug);
|
|
45986
|
+
if (object.entityId != null)
|
|
45987
|
+
message.entityId = String(object.entityId);
|
|
45988
|
+
if (object.entityType != null)
|
|
45989
|
+
message.entityType = String(object.entityType);
|
|
45990
|
+
if (object.accessGroups) {
|
|
45991
|
+
if (!Array.isArray(object.accessGroups))
|
|
45992
|
+
throw TypeError(".LayoutUpdated.accessGroups: array expected");
|
|
45993
|
+
message.accessGroups = [];
|
|
45994
|
+
for (var i = 0; i < object.accessGroups.length; ++i) {
|
|
45995
|
+
if (typeof object.accessGroups[i] !== "object")
|
|
45996
|
+
throw TypeError(".LayoutUpdated.accessGroups: object expected");
|
|
45997
|
+
message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
|
|
45998
|
+
}
|
|
45999
|
+
}
|
|
46000
|
+
if (object.excludedAccessGroups) {
|
|
46001
|
+
if (!Array.isArray(object.excludedAccessGroups))
|
|
46002
|
+
throw TypeError(".LayoutUpdated.excludedAccessGroups: array expected");
|
|
46003
|
+
message.excludedAccessGroups = [];
|
|
46004
|
+
for (var i = 0; i < object.excludedAccessGroups.length; ++i) {
|
|
46005
|
+
if (typeof object.excludedAccessGroups[i] !== "object")
|
|
46006
|
+
throw TypeError(".LayoutUpdated.excludedAccessGroups: object expected");
|
|
46007
|
+
message.excludedAccessGroups[i] = $root.contentful.SlugReference.fromObject(object.excludedAccessGroups[i]);
|
|
46008
|
+
}
|
|
46009
|
+
}
|
|
46010
|
+
if (object.updatedAt != null)
|
|
46011
|
+
if ($util.Long)
|
|
46012
|
+
(message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
|
|
46013
|
+
else if (typeof object.updatedAt === "string")
|
|
46014
|
+
message.updatedAt = parseInt(object.updatedAt, 10);
|
|
46015
|
+
else if (typeof object.updatedAt === "number")
|
|
46016
|
+
message.updatedAt = object.updatedAt;
|
|
46017
|
+
else if (typeof object.updatedAt === "object")
|
|
46018
|
+
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
46019
|
+
return message;
|
|
46020
|
+
};
|
|
46021
|
+
|
|
46022
|
+
/**
|
|
46023
|
+
* Creates a plain object from a LayoutUpdated message. Also converts values to other types if specified.
|
|
46024
|
+
* @function toObject
|
|
46025
|
+
* @memberof LayoutUpdated
|
|
46026
|
+
* @static
|
|
46027
|
+
* @param {LayoutUpdated} message LayoutUpdated
|
|
46028
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
46029
|
+
* @returns {Object.<string,*>} Plain object
|
|
46030
|
+
*/
|
|
46031
|
+
LayoutUpdated.toObject = function toObject(message, options) {
|
|
46032
|
+
if (!options)
|
|
46033
|
+
options = {};
|
|
46034
|
+
var object = {};
|
|
46035
|
+
if (options.arrays || options.defaults) {
|
|
46036
|
+
object.accessGroups = [];
|
|
46037
|
+
object.excludedAccessGroups = [];
|
|
46038
|
+
}
|
|
46039
|
+
if (options.defaults) {
|
|
46040
|
+
object.slug = "";
|
|
46041
|
+
object.entityId = "";
|
|
46042
|
+
object.entityType = "";
|
|
46043
|
+
if ($util.Long) {
|
|
46044
|
+
var long = new $util.Long(0, 0, true);
|
|
46045
|
+
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
46046
|
+
} else
|
|
46047
|
+
object.updatedAt = options.longs === String ? "0" : 0;
|
|
46048
|
+
}
|
|
46049
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
46050
|
+
object.slug = message.slug;
|
|
46051
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
46052
|
+
object.entityId = message.entityId;
|
|
46053
|
+
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
46054
|
+
object.entityType = message.entityType;
|
|
46055
|
+
if (message.accessGroups && message.accessGroups.length) {
|
|
46056
|
+
object.accessGroups = [];
|
|
46057
|
+
for (var j = 0; j < message.accessGroups.length; ++j)
|
|
46058
|
+
object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
|
|
46059
|
+
}
|
|
46060
|
+
if (message.excludedAccessGroups && message.excludedAccessGroups.length) {
|
|
46061
|
+
object.excludedAccessGroups = [];
|
|
46062
|
+
for (var j = 0; j < message.excludedAccessGroups.length; ++j)
|
|
46063
|
+
object.excludedAccessGroups[j] = $root.contentful.SlugReference.toObject(message.excludedAccessGroups[j], options);
|
|
46064
|
+
}
|
|
46065
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
46066
|
+
if (typeof message.updatedAt === "number")
|
|
46067
|
+
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
46068
|
+
else
|
|
46069
|
+
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;
|
|
46070
|
+
return object;
|
|
46071
|
+
};
|
|
46072
|
+
|
|
46073
|
+
/**
|
|
46074
|
+
* Converts this LayoutUpdated to JSON.
|
|
46075
|
+
* @function toJSON
|
|
46076
|
+
* @memberof LayoutUpdated
|
|
46077
|
+
* @instance
|
|
46078
|
+
* @returns {Object.<string,*>} JSON object
|
|
46079
|
+
*/
|
|
46080
|
+
LayoutUpdated.prototype.toJSON = function toJSON() {
|
|
46081
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
46082
|
+
};
|
|
46083
|
+
|
|
46084
|
+
return LayoutUpdated;
|
|
46085
|
+
})();
|
|
46086
|
+
|
|
46087
|
+
$root.LayoutDeleted = (function() {
|
|
46088
|
+
|
|
46089
|
+
/**
|
|
46090
|
+
* Properties of a LayoutDeleted.
|
|
46091
|
+
* @exports ILayoutDeleted
|
|
46092
|
+
* @interface ILayoutDeleted
|
|
46093
|
+
* @property {string|null} [slug] LayoutDeleted slug
|
|
46094
|
+
* @property {string|null} [entityId] LayoutDeleted entityId
|
|
46095
|
+
* @property {string|null} [entityType] LayoutDeleted entityType
|
|
46096
|
+
* @property {number|Long|null} [deletedAt] LayoutDeleted deletedAt
|
|
46097
|
+
*/
|
|
46098
|
+
|
|
46099
|
+
/**
|
|
46100
|
+
* Constructs a new LayoutDeleted.
|
|
46101
|
+
* @exports LayoutDeleted
|
|
46102
|
+
* @classdesc Represents a LayoutDeleted.
|
|
46103
|
+
* @implements ILayoutDeleted
|
|
46104
|
+
* @constructor
|
|
46105
|
+
* @param {ILayoutDeleted=} [properties] Properties to set
|
|
46106
|
+
*/
|
|
46107
|
+
function LayoutDeleted(properties) {
|
|
46108
|
+
if (properties)
|
|
46109
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
46110
|
+
if (properties[keys[i]] != null)
|
|
46111
|
+
this[keys[i]] = properties[keys[i]];
|
|
46112
|
+
}
|
|
46113
|
+
|
|
46114
|
+
/**
|
|
46115
|
+
* LayoutDeleted slug.
|
|
46116
|
+
* @member {string} slug
|
|
46117
|
+
* @memberof LayoutDeleted
|
|
46118
|
+
* @instance
|
|
46119
|
+
*/
|
|
46120
|
+
LayoutDeleted.prototype.slug = "";
|
|
46121
|
+
|
|
46122
|
+
/**
|
|
46123
|
+
* LayoutDeleted entityId.
|
|
46124
|
+
* @member {string} entityId
|
|
46125
|
+
* @memberof LayoutDeleted
|
|
46126
|
+
* @instance
|
|
46127
|
+
*/
|
|
46128
|
+
LayoutDeleted.prototype.entityId = "";
|
|
46129
|
+
|
|
46130
|
+
/**
|
|
46131
|
+
* LayoutDeleted entityType.
|
|
46132
|
+
* @member {string} entityType
|
|
46133
|
+
* @memberof LayoutDeleted
|
|
46134
|
+
* @instance
|
|
46135
|
+
*/
|
|
46136
|
+
LayoutDeleted.prototype.entityType = "";
|
|
46137
|
+
|
|
46138
|
+
/**
|
|
46139
|
+
* LayoutDeleted deletedAt.
|
|
46140
|
+
* @member {number|Long} deletedAt
|
|
46141
|
+
* @memberof LayoutDeleted
|
|
46142
|
+
* @instance
|
|
46143
|
+
*/
|
|
46144
|
+
LayoutDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
46145
|
+
|
|
46146
|
+
/**
|
|
46147
|
+
* Creates a new LayoutDeleted instance using the specified properties.
|
|
46148
|
+
* @function create
|
|
46149
|
+
* @memberof LayoutDeleted
|
|
46150
|
+
* @static
|
|
46151
|
+
* @param {ILayoutDeleted=} [properties] Properties to set
|
|
46152
|
+
* @returns {LayoutDeleted} LayoutDeleted instance
|
|
46153
|
+
*/
|
|
46154
|
+
LayoutDeleted.create = function create(properties) {
|
|
46155
|
+
return new LayoutDeleted(properties);
|
|
46156
|
+
};
|
|
46157
|
+
|
|
46158
|
+
/**
|
|
46159
|
+
* Encodes the specified LayoutDeleted message. Does not implicitly {@link LayoutDeleted.verify|verify} messages.
|
|
46160
|
+
* @function encode
|
|
46161
|
+
* @memberof LayoutDeleted
|
|
46162
|
+
* @static
|
|
46163
|
+
* @param {ILayoutDeleted} message LayoutDeleted message or plain object to encode
|
|
46164
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
46165
|
+
* @returns {$protobuf.Writer} Writer
|
|
46166
|
+
*/
|
|
46167
|
+
LayoutDeleted.encode = function encode(message, writer) {
|
|
46168
|
+
if (!writer)
|
|
46169
|
+
writer = $Writer.create();
|
|
46170
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
46171
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
46172
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
46173
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityId);
|
|
46174
|
+
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
46175
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.entityType);
|
|
46176
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
46177
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.deletedAt);
|
|
46178
|
+
return writer;
|
|
46179
|
+
};
|
|
46180
|
+
|
|
46181
|
+
/**
|
|
46182
|
+
* Encodes the specified LayoutDeleted message, length delimited. Does not implicitly {@link LayoutDeleted.verify|verify} messages.
|
|
46183
|
+
* @function encodeDelimited
|
|
46184
|
+
* @memberof LayoutDeleted
|
|
46185
|
+
* @static
|
|
46186
|
+
* @param {ILayoutDeleted} message LayoutDeleted message or plain object to encode
|
|
46187
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
46188
|
+
* @returns {$protobuf.Writer} Writer
|
|
46189
|
+
*/
|
|
46190
|
+
LayoutDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
46191
|
+
return this.encode(message, writer).ldelim();
|
|
46192
|
+
};
|
|
46193
|
+
|
|
46194
|
+
/**
|
|
46195
|
+
* Decodes a LayoutDeleted message from the specified reader or buffer.
|
|
46196
|
+
* @function decode
|
|
46197
|
+
* @memberof LayoutDeleted
|
|
46198
|
+
* @static
|
|
46199
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
46200
|
+
* @param {number} [length] Message length if known beforehand
|
|
46201
|
+
* @returns {LayoutDeleted} LayoutDeleted
|
|
46202
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
46203
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
46204
|
+
*/
|
|
46205
|
+
LayoutDeleted.decode = function decode(reader, length) {
|
|
46206
|
+
if (!(reader instanceof $Reader))
|
|
46207
|
+
reader = $Reader.create(reader);
|
|
46208
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.LayoutDeleted();
|
|
46209
|
+
while (reader.pos < end) {
|
|
46210
|
+
var tag = reader.uint32();
|
|
46211
|
+
switch (tag >>> 3) {
|
|
46212
|
+
case 1:
|
|
46213
|
+
message.slug = reader.string();
|
|
46214
|
+
break;
|
|
46215
|
+
case 2:
|
|
46216
|
+
message.entityId = reader.string();
|
|
46217
|
+
break;
|
|
46218
|
+
case 3:
|
|
46219
|
+
message.entityType = reader.string();
|
|
46220
|
+
break;
|
|
46221
|
+
case 4:
|
|
46222
|
+
message.deletedAt = reader.uint64();
|
|
46223
|
+
break;
|
|
46224
|
+
default:
|
|
46225
|
+
reader.skipType(tag & 7);
|
|
46226
|
+
break;
|
|
46227
|
+
}
|
|
46228
|
+
}
|
|
46229
|
+
return message;
|
|
46230
|
+
};
|
|
46231
|
+
|
|
46232
|
+
/**
|
|
46233
|
+
* Decodes a LayoutDeleted message from the specified reader or buffer, length delimited.
|
|
46234
|
+
* @function decodeDelimited
|
|
46235
|
+
* @memberof LayoutDeleted
|
|
46236
|
+
* @static
|
|
46237
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
46238
|
+
* @returns {LayoutDeleted} LayoutDeleted
|
|
46239
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
46240
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
46241
|
+
*/
|
|
46242
|
+
LayoutDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
46243
|
+
if (!(reader instanceof $Reader))
|
|
46244
|
+
reader = new $Reader(reader);
|
|
46245
|
+
return this.decode(reader, reader.uint32());
|
|
46246
|
+
};
|
|
46247
|
+
|
|
46248
|
+
/**
|
|
46249
|
+
* Verifies a LayoutDeleted message.
|
|
46250
|
+
* @function verify
|
|
46251
|
+
* @memberof LayoutDeleted
|
|
46252
|
+
* @static
|
|
46253
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
46254
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
46255
|
+
*/
|
|
46256
|
+
LayoutDeleted.verify = function verify(message) {
|
|
46257
|
+
if (typeof message !== "object" || message === null)
|
|
46258
|
+
return "object expected";
|
|
46259
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
46260
|
+
if (!$util.isString(message.slug))
|
|
46261
|
+
return "slug: string expected";
|
|
46262
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
46263
|
+
if (!$util.isString(message.entityId))
|
|
46264
|
+
return "entityId: string expected";
|
|
46265
|
+
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
46266
|
+
if (!$util.isString(message.entityType))
|
|
46267
|
+
return "entityType: string expected";
|
|
46268
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
46269
|
+
if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
|
|
46270
|
+
return "deletedAt: integer|Long expected";
|
|
46271
|
+
return null;
|
|
46272
|
+
};
|
|
46273
|
+
|
|
46274
|
+
/**
|
|
46275
|
+
* Creates a LayoutDeleted message from a plain object. Also converts values to their respective internal types.
|
|
46276
|
+
* @function fromObject
|
|
46277
|
+
* @memberof LayoutDeleted
|
|
46278
|
+
* @static
|
|
46279
|
+
* @param {Object.<string,*>} object Plain object
|
|
46280
|
+
* @returns {LayoutDeleted} LayoutDeleted
|
|
46281
|
+
*/
|
|
46282
|
+
LayoutDeleted.fromObject = function fromObject(object) {
|
|
46283
|
+
if (object instanceof $root.LayoutDeleted)
|
|
46284
|
+
return object;
|
|
46285
|
+
var message = new $root.LayoutDeleted();
|
|
46286
|
+
if (object.slug != null)
|
|
46287
|
+
message.slug = String(object.slug);
|
|
46288
|
+
if (object.entityId != null)
|
|
46289
|
+
message.entityId = String(object.entityId);
|
|
46290
|
+
if (object.entityType != null)
|
|
46291
|
+
message.entityType = String(object.entityType);
|
|
46292
|
+
if (object.deletedAt != null)
|
|
46293
|
+
if ($util.Long)
|
|
46294
|
+
(message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
|
|
46295
|
+
else if (typeof object.deletedAt === "string")
|
|
46296
|
+
message.deletedAt = parseInt(object.deletedAt, 10);
|
|
46297
|
+
else if (typeof object.deletedAt === "number")
|
|
46298
|
+
message.deletedAt = object.deletedAt;
|
|
46299
|
+
else if (typeof object.deletedAt === "object")
|
|
46300
|
+
message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
|
|
46301
|
+
return message;
|
|
46302
|
+
};
|
|
46303
|
+
|
|
46304
|
+
/**
|
|
46305
|
+
* Creates a plain object from a LayoutDeleted message. Also converts values to other types if specified.
|
|
46306
|
+
* @function toObject
|
|
46307
|
+
* @memberof LayoutDeleted
|
|
46308
|
+
* @static
|
|
46309
|
+
* @param {LayoutDeleted} message LayoutDeleted
|
|
46310
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
46311
|
+
* @returns {Object.<string,*>} Plain object
|
|
46312
|
+
*/
|
|
46313
|
+
LayoutDeleted.toObject = function toObject(message, options) {
|
|
46314
|
+
if (!options)
|
|
46315
|
+
options = {};
|
|
46316
|
+
var object = {};
|
|
46317
|
+
if (options.defaults) {
|
|
46318
|
+
object.slug = "";
|
|
46319
|
+
object.entityId = "";
|
|
46320
|
+
object.entityType = "";
|
|
46321
|
+
if ($util.Long) {
|
|
46322
|
+
var long = new $util.Long(0, 0, true);
|
|
46323
|
+
object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
46324
|
+
} else
|
|
46325
|
+
object.deletedAt = options.longs === String ? "0" : 0;
|
|
46326
|
+
}
|
|
46327
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
46328
|
+
object.slug = message.slug;
|
|
46329
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
46330
|
+
object.entityId = message.entityId;
|
|
46331
|
+
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
46332
|
+
object.entityType = message.entityType;
|
|
46333
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
46334
|
+
if (typeof message.deletedAt === "number")
|
|
46335
|
+
object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
|
|
46336
|
+
else
|
|
46337
|
+
object.deletedAt = options.longs === String ? $util.Long.prototype.toString.call(message.deletedAt) : options.longs === Number ? new $util.LongBits(message.deletedAt.low >>> 0, message.deletedAt.high >>> 0).toNumber(true) : message.deletedAt;
|
|
46338
|
+
return object;
|
|
46339
|
+
};
|
|
46340
|
+
|
|
46341
|
+
/**
|
|
46342
|
+
* Converts this LayoutDeleted to JSON.
|
|
46343
|
+
* @function toJSON
|
|
46344
|
+
* @memberof LayoutDeleted
|
|
46345
|
+
* @instance
|
|
46346
|
+
* @returns {Object.<string,*>} JSON object
|
|
46347
|
+
*/
|
|
46348
|
+
LayoutDeleted.prototype.toJSON = function toJSON() {
|
|
46349
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
46350
|
+
};
|
|
46351
|
+
|
|
46352
|
+
return LayoutDeleted;
|
|
46353
|
+
})();
|
|
46354
|
+
|
|
45375
46355
|
$root.WakeupPlaylistCreated = (function() {
|
|
45376
46356
|
|
|
45377
46357
|
/**
|
package/package.json
CHANGED