@headspace/protos-events 1.275.0 → 1.276.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 +312 -0
- package/lib/index.js +804 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -19666,6 +19666,318 @@ export class ContentfulEDHSSessionDeleted implements IContentfulEDHSSessionDelet
|
|
|
19666
19666
|
public toJSON(): { [k: string]: any };
|
|
19667
19667
|
}
|
|
19668
19668
|
|
|
19669
|
+
/** Properties of a ContentfulCrocpitEntitlementCreated. */
|
|
19670
|
+
export interface IContentfulCrocpitEntitlementCreated {
|
|
19671
|
+
|
|
19672
|
+
/** ContentfulCrocpitEntitlementCreated slug */
|
|
19673
|
+
slug?: (string|null);
|
|
19674
|
+
|
|
19675
|
+
/** ContentfulCrocpitEntitlementCreated accessGroup */
|
|
19676
|
+
accessGroup?: (contentful.ISlugReference|null);
|
|
19677
|
+
|
|
19678
|
+
/** ContentfulCrocpitEntitlementCreated permission */
|
|
19679
|
+
permission?: (string[]|null);
|
|
19680
|
+
|
|
19681
|
+
/** ContentfulCrocpitEntitlementCreated createdAt */
|
|
19682
|
+
createdAt?: (number|Long|null);
|
|
19683
|
+
}
|
|
19684
|
+
|
|
19685
|
+
/** Represents a ContentfulCrocpitEntitlementCreated. */
|
|
19686
|
+
export class ContentfulCrocpitEntitlementCreated implements IContentfulCrocpitEntitlementCreated {
|
|
19687
|
+
|
|
19688
|
+
/**
|
|
19689
|
+
* Constructs a new ContentfulCrocpitEntitlementCreated.
|
|
19690
|
+
* @param [properties] Properties to set
|
|
19691
|
+
*/
|
|
19692
|
+
constructor(properties?: IContentfulCrocpitEntitlementCreated);
|
|
19693
|
+
|
|
19694
|
+
/** ContentfulCrocpitEntitlementCreated slug. */
|
|
19695
|
+
public slug: string;
|
|
19696
|
+
|
|
19697
|
+
/** ContentfulCrocpitEntitlementCreated accessGroup. */
|
|
19698
|
+
public accessGroup?: (contentful.ISlugReference|null);
|
|
19699
|
+
|
|
19700
|
+
/** ContentfulCrocpitEntitlementCreated permission. */
|
|
19701
|
+
public permission: string[];
|
|
19702
|
+
|
|
19703
|
+
/** ContentfulCrocpitEntitlementCreated createdAt. */
|
|
19704
|
+
public createdAt: (number|Long);
|
|
19705
|
+
|
|
19706
|
+
/**
|
|
19707
|
+
* Creates a new ContentfulCrocpitEntitlementCreated instance using the specified properties.
|
|
19708
|
+
* @param [properties] Properties to set
|
|
19709
|
+
* @returns ContentfulCrocpitEntitlementCreated instance
|
|
19710
|
+
*/
|
|
19711
|
+
public static create(properties?: IContentfulCrocpitEntitlementCreated): ContentfulCrocpitEntitlementCreated;
|
|
19712
|
+
|
|
19713
|
+
/**
|
|
19714
|
+
* Encodes the specified ContentfulCrocpitEntitlementCreated message. Does not implicitly {@link ContentfulCrocpitEntitlementCreated.verify|verify} messages.
|
|
19715
|
+
* @param message ContentfulCrocpitEntitlementCreated message or plain object to encode
|
|
19716
|
+
* @param [writer] Writer to encode to
|
|
19717
|
+
* @returns Writer
|
|
19718
|
+
*/
|
|
19719
|
+
public static encode(message: IContentfulCrocpitEntitlementCreated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
19720
|
+
|
|
19721
|
+
/**
|
|
19722
|
+
* Encodes the specified ContentfulCrocpitEntitlementCreated message, length delimited. Does not implicitly {@link ContentfulCrocpitEntitlementCreated.verify|verify} messages.
|
|
19723
|
+
* @param message ContentfulCrocpitEntitlementCreated message or plain object to encode
|
|
19724
|
+
* @param [writer] Writer to encode to
|
|
19725
|
+
* @returns Writer
|
|
19726
|
+
*/
|
|
19727
|
+
public static encodeDelimited(message: IContentfulCrocpitEntitlementCreated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
19728
|
+
|
|
19729
|
+
/**
|
|
19730
|
+
* Decodes a ContentfulCrocpitEntitlementCreated message from the specified reader or buffer.
|
|
19731
|
+
* @param reader Reader or buffer to decode from
|
|
19732
|
+
* @param [length] Message length if known beforehand
|
|
19733
|
+
* @returns ContentfulCrocpitEntitlementCreated
|
|
19734
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19735
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19736
|
+
*/
|
|
19737
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ContentfulCrocpitEntitlementCreated;
|
|
19738
|
+
|
|
19739
|
+
/**
|
|
19740
|
+
* Decodes a ContentfulCrocpitEntitlementCreated message from the specified reader or buffer, length delimited.
|
|
19741
|
+
* @param reader Reader or buffer to decode from
|
|
19742
|
+
* @returns ContentfulCrocpitEntitlementCreated
|
|
19743
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19744
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19745
|
+
*/
|
|
19746
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ContentfulCrocpitEntitlementCreated;
|
|
19747
|
+
|
|
19748
|
+
/**
|
|
19749
|
+
* Verifies a ContentfulCrocpitEntitlementCreated message.
|
|
19750
|
+
* @param message Plain object to verify
|
|
19751
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
19752
|
+
*/
|
|
19753
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
19754
|
+
|
|
19755
|
+
/**
|
|
19756
|
+
* Creates a ContentfulCrocpitEntitlementCreated message from a plain object. Also converts values to their respective internal types.
|
|
19757
|
+
* @param object Plain object
|
|
19758
|
+
* @returns ContentfulCrocpitEntitlementCreated
|
|
19759
|
+
*/
|
|
19760
|
+
public static fromObject(object: { [k: string]: any }): ContentfulCrocpitEntitlementCreated;
|
|
19761
|
+
|
|
19762
|
+
/**
|
|
19763
|
+
* Creates a plain object from a ContentfulCrocpitEntitlementCreated message. Also converts values to other types if specified.
|
|
19764
|
+
* @param message ContentfulCrocpitEntitlementCreated
|
|
19765
|
+
* @param [options] Conversion options
|
|
19766
|
+
* @returns Plain object
|
|
19767
|
+
*/
|
|
19768
|
+
public static toObject(message: ContentfulCrocpitEntitlementCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
19769
|
+
|
|
19770
|
+
/**
|
|
19771
|
+
* Converts this ContentfulCrocpitEntitlementCreated to JSON.
|
|
19772
|
+
* @returns JSON object
|
|
19773
|
+
*/
|
|
19774
|
+
public toJSON(): { [k: string]: any };
|
|
19775
|
+
}
|
|
19776
|
+
|
|
19777
|
+
/** Properties of a ContentfulCrocpitEntitlementUpdated. */
|
|
19778
|
+
export interface IContentfulCrocpitEntitlementUpdated {
|
|
19779
|
+
|
|
19780
|
+
/** ContentfulCrocpitEntitlementUpdated slug */
|
|
19781
|
+
slug?: (string|null);
|
|
19782
|
+
|
|
19783
|
+
/** ContentfulCrocpitEntitlementUpdated accessGroup */
|
|
19784
|
+
accessGroup?: (contentful.ISlugReference|null);
|
|
19785
|
+
|
|
19786
|
+
/** ContentfulCrocpitEntitlementUpdated permission */
|
|
19787
|
+
permission?: (string[]|null);
|
|
19788
|
+
|
|
19789
|
+
/** ContentfulCrocpitEntitlementUpdated updatedAt */
|
|
19790
|
+
updatedAt?: (number|Long|null);
|
|
19791
|
+
}
|
|
19792
|
+
|
|
19793
|
+
/** Represents a ContentfulCrocpitEntitlementUpdated. */
|
|
19794
|
+
export class ContentfulCrocpitEntitlementUpdated implements IContentfulCrocpitEntitlementUpdated {
|
|
19795
|
+
|
|
19796
|
+
/**
|
|
19797
|
+
* Constructs a new ContentfulCrocpitEntitlementUpdated.
|
|
19798
|
+
* @param [properties] Properties to set
|
|
19799
|
+
*/
|
|
19800
|
+
constructor(properties?: IContentfulCrocpitEntitlementUpdated);
|
|
19801
|
+
|
|
19802
|
+
/** ContentfulCrocpitEntitlementUpdated slug. */
|
|
19803
|
+
public slug: string;
|
|
19804
|
+
|
|
19805
|
+
/** ContentfulCrocpitEntitlementUpdated accessGroup. */
|
|
19806
|
+
public accessGroup?: (contentful.ISlugReference|null);
|
|
19807
|
+
|
|
19808
|
+
/** ContentfulCrocpitEntitlementUpdated permission. */
|
|
19809
|
+
public permission: string[];
|
|
19810
|
+
|
|
19811
|
+
/** ContentfulCrocpitEntitlementUpdated updatedAt. */
|
|
19812
|
+
public updatedAt: (number|Long);
|
|
19813
|
+
|
|
19814
|
+
/**
|
|
19815
|
+
* Creates a new ContentfulCrocpitEntitlementUpdated instance using the specified properties.
|
|
19816
|
+
* @param [properties] Properties to set
|
|
19817
|
+
* @returns ContentfulCrocpitEntitlementUpdated instance
|
|
19818
|
+
*/
|
|
19819
|
+
public static create(properties?: IContentfulCrocpitEntitlementUpdated): ContentfulCrocpitEntitlementUpdated;
|
|
19820
|
+
|
|
19821
|
+
/**
|
|
19822
|
+
* Encodes the specified ContentfulCrocpitEntitlementUpdated message. Does not implicitly {@link ContentfulCrocpitEntitlementUpdated.verify|verify} messages.
|
|
19823
|
+
* @param message ContentfulCrocpitEntitlementUpdated message or plain object to encode
|
|
19824
|
+
* @param [writer] Writer to encode to
|
|
19825
|
+
* @returns Writer
|
|
19826
|
+
*/
|
|
19827
|
+
public static encode(message: IContentfulCrocpitEntitlementUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
19828
|
+
|
|
19829
|
+
/**
|
|
19830
|
+
* Encodes the specified ContentfulCrocpitEntitlementUpdated message, length delimited. Does not implicitly {@link ContentfulCrocpitEntitlementUpdated.verify|verify} messages.
|
|
19831
|
+
* @param message ContentfulCrocpitEntitlementUpdated message or plain object to encode
|
|
19832
|
+
* @param [writer] Writer to encode to
|
|
19833
|
+
* @returns Writer
|
|
19834
|
+
*/
|
|
19835
|
+
public static encodeDelimited(message: IContentfulCrocpitEntitlementUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
19836
|
+
|
|
19837
|
+
/**
|
|
19838
|
+
* Decodes a ContentfulCrocpitEntitlementUpdated message from the specified reader or buffer.
|
|
19839
|
+
* @param reader Reader or buffer to decode from
|
|
19840
|
+
* @param [length] Message length if known beforehand
|
|
19841
|
+
* @returns ContentfulCrocpitEntitlementUpdated
|
|
19842
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19843
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19844
|
+
*/
|
|
19845
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ContentfulCrocpitEntitlementUpdated;
|
|
19846
|
+
|
|
19847
|
+
/**
|
|
19848
|
+
* Decodes a ContentfulCrocpitEntitlementUpdated message from the specified reader or buffer, length delimited.
|
|
19849
|
+
* @param reader Reader or buffer to decode from
|
|
19850
|
+
* @returns ContentfulCrocpitEntitlementUpdated
|
|
19851
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19852
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19853
|
+
*/
|
|
19854
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ContentfulCrocpitEntitlementUpdated;
|
|
19855
|
+
|
|
19856
|
+
/**
|
|
19857
|
+
* Verifies a ContentfulCrocpitEntitlementUpdated message.
|
|
19858
|
+
* @param message Plain object to verify
|
|
19859
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
19860
|
+
*/
|
|
19861
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
19862
|
+
|
|
19863
|
+
/**
|
|
19864
|
+
* Creates a ContentfulCrocpitEntitlementUpdated message from a plain object. Also converts values to their respective internal types.
|
|
19865
|
+
* @param object Plain object
|
|
19866
|
+
* @returns ContentfulCrocpitEntitlementUpdated
|
|
19867
|
+
*/
|
|
19868
|
+
public static fromObject(object: { [k: string]: any }): ContentfulCrocpitEntitlementUpdated;
|
|
19869
|
+
|
|
19870
|
+
/**
|
|
19871
|
+
* Creates a plain object from a ContentfulCrocpitEntitlementUpdated message. Also converts values to other types if specified.
|
|
19872
|
+
* @param message ContentfulCrocpitEntitlementUpdated
|
|
19873
|
+
* @param [options] Conversion options
|
|
19874
|
+
* @returns Plain object
|
|
19875
|
+
*/
|
|
19876
|
+
public static toObject(message: ContentfulCrocpitEntitlementUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
19877
|
+
|
|
19878
|
+
/**
|
|
19879
|
+
* Converts this ContentfulCrocpitEntitlementUpdated to JSON.
|
|
19880
|
+
* @returns JSON object
|
|
19881
|
+
*/
|
|
19882
|
+
public toJSON(): { [k: string]: any };
|
|
19883
|
+
}
|
|
19884
|
+
|
|
19885
|
+
/** Properties of a ContentfulCrocpitEntitlementDeleted. */
|
|
19886
|
+
export interface IContentfulCrocpitEntitlementDeleted {
|
|
19887
|
+
|
|
19888
|
+
/** ContentfulCrocpitEntitlementDeleted slug */
|
|
19889
|
+
slug?: (string|null);
|
|
19890
|
+
|
|
19891
|
+
/** ContentfulCrocpitEntitlementDeleted deletedAt */
|
|
19892
|
+
deletedAt?: (number|Long|null);
|
|
19893
|
+
}
|
|
19894
|
+
|
|
19895
|
+
/** Represents a ContentfulCrocpitEntitlementDeleted. */
|
|
19896
|
+
export class ContentfulCrocpitEntitlementDeleted implements IContentfulCrocpitEntitlementDeleted {
|
|
19897
|
+
|
|
19898
|
+
/**
|
|
19899
|
+
* Constructs a new ContentfulCrocpitEntitlementDeleted.
|
|
19900
|
+
* @param [properties] Properties to set
|
|
19901
|
+
*/
|
|
19902
|
+
constructor(properties?: IContentfulCrocpitEntitlementDeleted);
|
|
19903
|
+
|
|
19904
|
+
/** ContentfulCrocpitEntitlementDeleted slug. */
|
|
19905
|
+
public slug: string;
|
|
19906
|
+
|
|
19907
|
+
/** ContentfulCrocpitEntitlementDeleted deletedAt. */
|
|
19908
|
+
public deletedAt: (number|Long);
|
|
19909
|
+
|
|
19910
|
+
/**
|
|
19911
|
+
* Creates a new ContentfulCrocpitEntitlementDeleted instance using the specified properties.
|
|
19912
|
+
* @param [properties] Properties to set
|
|
19913
|
+
* @returns ContentfulCrocpitEntitlementDeleted instance
|
|
19914
|
+
*/
|
|
19915
|
+
public static create(properties?: IContentfulCrocpitEntitlementDeleted): ContentfulCrocpitEntitlementDeleted;
|
|
19916
|
+
|
|
19917
|
+
/**
|
|
19918
|
+
* Encodes the specified ContentfulCrocpitEntitlementDeleted message. Does not implicitly {@link ContentfulCrocpitEntitlementDeleted.verify|verify} messages.
|
|
19919
|
+
* @param message ContentfulCrocpitEntitlementDeleted message or plain object to encode
|
|
19920
|
+
* @param [writer] Writer to encode to
|
|
19921
|
+
* @returns Writer
|
|
19922
|
+
*/
|
|
19923
|
+
public static encode(message: IContentfulCrocpitEntitlementDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
19924
|
+
|
|
19925
|
+
/**
|
|
19926
|
+
* Encodes the specified ContentfulCrocpitEntitlementDeleted message, length delimited. Does not implicitly {@link ContentfulCrocpitEntitlementDeleted.verify|verify} messages.
|
|
19927
|
+
* @param message ContentfulCrocpitEntitlementDeleted message or plain object to encode
|
|
19928
|
+
* @param [writer] Writer to encode to
|
|
19929
|
+
* @returns Writer
|
|
19930
|
+
*/
|
|
19931
|
+
public static encodeDelimited(message: IContentfulCrocpitEntitlementDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
19932
|
+
|
|
19933
|
+
/**
|
|
19934
|
+
* Decodes a ContentfulCrocpitEntitlementDeleted message from the specified reader or buffer.
|
|
19935
|
+
* @param reader Reader or buffer to decode from
|
|
19936
|
+
* @param [length] Message length if known beforehand
|
|
19937
|
+
* @returns ContentfulCrocpitEntitlementDeleted
|
|
19938
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19939
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19940
|
+
*/
|
|
19941
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ContentfulCrocpitEntitlementDeleted;
|
|
19942
|
+
|
|
19943
|
+
/**
|
|
19944
|
+
* Decodes a ContentfulCrocpitEntitlementDeleted message from the specified reader or buffer, length delimited.
|
|
19945
|
+
* @param reader Reader or buffer to decode from
|
|
19946
|
+
* @returns ContentfulCrocpitEntitlementDeleted
|
|
19947
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19948
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19949
|
+
*/
|
|
19950
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ContentfulCrocpitEntitlementDeleted;
|
|
19951
|
+
|
|
19952
|
+
/**
|
|
19953
|
+
* Verifies a ContentfulCrocpitEntitlementDeleted message.
|
|
19954
|
+
* @param message Plain object to verify
|
|
19955
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
19956
|
+
*/
|
|
19957
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
19958
|
+
|
|
19959
|
+
/**
|
|
19960
|
+
* Creates a ContentfulCrocpitEntitlementDeleted message from a plain object. Also converts values to their respective internal types.
|
|
19961
|
+
* @param object Plain object
|
|
19962
|
+
* @returns ContentfulCrocpitEntitlementDeleted
|
|
19963
|
+
*/
|
|
19964
|
+
public static fromObject(object: { [k: string]: any }): ContentfulCrocpitEntitlementDeleted;
|
|
19965
|
+
|
|
19966
|
+
/**
|
|
19967
|
+
* Creates a plain object from a ContentfulCrocpitEntitlementDeleted message. Also converts values to other types if specified.
|
|
19968
|
+
* @param message ContentfulCrocpitEntitlementDeleted
|
|
19969
|
+
* @param [options] Conversion options
|
|
19970
|
+
* @returns Plain object
|
|
19971
|
+
*/
|
|
19972
|
+
public static toObject(message: ContentfulCrocpitEntitlementDeleted, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
19973
|
+
|
|
19974
|
+
/**
|
|
19975
|
+
* Converts this ContentfulCrocpitEntitlementDeleted to JSON.
|
|
19976
|
+
* @returns JSON object
|
|
19977
|
+
*/
|
|
19978
|
+
public toJSON(): { [k: string]: any };
|
|
19979
|
+
}
|
|
19980
|
+
|
|
19669
19981
|
/** Properties of a ContentfulContentModelCreated. */
|
|
19670
19982
|
export interface IContentfulContentModelCreated {
|
|
19671
19983
|
|
package/lib/index.js
CHANGED
|
@@ -53392,6 +53392,810 @@ $root.ContentfulEDHSSessionDeleted = (function() {
|
|
|
53392
53392
|
return ContentfulEDHSSessionDeleted;
|
|
53393
53393
|
})();
|
|
53394
53394
|
|
|
53395
|
+
$root.ContentfulCrocpitEntitlementCreated = (function() {
|
|
53396
|
+
|
|
53397
|
+
/**
|
|
53398
|
+
* Properties of a ContentfulCrocpitEntitlementCreated.
|
|
53399
|
+
* @exports IContentfulCrocpitEntitlementCreated
|
|
53400
|
+
* @interface IContentfulCrocpitEntitlementCreated
|
|
53401
|
+
* @property {string|null} [slug] ContentfulCrocpitEntitlementCreated slug
|
|
53402
|
+
* @property {contentful.ISlugReference|null} [accessGroup] ContentfulCrocpitEntitlementCreated accessGroup
|
|
53403
|
+
* @property {Array.<string>|null} [permission] ContentfulCrocpitEntitlementCreated permission
|
|
53404
|
+
* @property {number|Long|null} [createdAt] ContentfulCrocpitEntitlementCreated createdAt
|
|
53405
|
+
*/
|
|
53406
|
+
|
|
53407
|
+
/**
|
|
53408
|
+
* Constructs a new ContentfulCrocpitEntitlementCreated.
|
|
53409
|
+
* @exports ContentfulCrocpitEntitlementCreated
|
|
53410
|
+
* @classdesc Represents a ContentfulCrocpitEntitlementCreated.
|
|
53411
|
+
* @implements IContentfulCrocpitEntitlementCreated
|
|
53412
|
+
* @constructor
|
|
53413
|
+
* @param {IContentfulCrocpitEntitlementCreated=} [properties] Properties to set
|
|
53414
|
+
*/
|
|
53415
|
+
function ContentfulCrocpitEntitlementCreated(properties) {
|
|
53416
|
+
this.permission = [];
|
|
53417
|
+
if (properties)
|
|
53418
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
53419
|
+
if (properties[keys[i]] != null)
|
|
53420
|
+
this[keys[i]] = properties[keys[i]];
|
|
53421
|
+
}
|
|
53422
|
+
|
|
53423
|
+
/**
|
|
53424
|
+
* ContentfulCrocpitEntitlementCreated slug.
|
|
53425
|
+
* @member {string} slug
|
|
53426
|
+
* @memberof ContentfulCrocpitEntitlementCreated
|
|
53427
|
+
* @instance
|
|
53428
|
+
*/
|
|
53429
|
+
ContentfulCrocpitEntitlementCreated.prototype.slug = "";
|
|
53430
|
+
|
|
53431
|
+
/**
|
|
53432
|
+
* ContentfulCrocpitEntitlementCreated accessGroup.
|
|
53433
|
+
* @member {contentful.ISlugReference|null|undefined} accessGroup
|
|
53434
|
+
* @memberof ContentfulCrocpitEntitlementCreated
|
|
53435
|
+
* @instance
|
|
53436
|
+
*/
|
|
53437
|
+
ContentfulCrocpitEntitlementCreated.prototype.accessGroup = null;
|
|
53438
|
+
|
|
53439
|
+
/**
|
|
53440
|
+
* ContentfulCrocpitEntitlementCreated permission.
|
|
53441
|
+
* @member {Array.<string>} permission
|
|
53442
|
+
* @memberof ContentfulCrocpitEntitlementCreated
|
|
53443
|
+
* @instance
|
|
53444
|
+
*/
|
|
53445
|
+
ContentfulCrocpitEntitlementCreated.prototype.permission = $util.emptyArray;
|
|
53446
|
+
|
|
53447
|
+
/**
|
|
53448
|
+
* ContentfulCrocpitEntitlementCreated createdAt.
|
|
53449
|
+
* @member {number|Long} createdAt
|
|
53450
|
+
* @memberof ContentfulCrocpitEntitlementCreated
|
|
53451
|
+
* @instance
|
|
53452
|
+
*/
|
|
53453
|
+
ContentfulCrocpitEntitlementCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
53454
|
+
|
|
53455
|
+
/**
|
|
53456
|
+
* Creates a new ContentfulCrocpitEntitlementCreated instance using the specified properties.
|
|
53457
|
+
* @function create
|
|
53458
|
+
* @memberof ContentfulCrocpitEntitlementCreated
|
|
53459
|
+
* @static
|
|
53460
|
+
* @param {IContentfulCrocpitEntitlementCreated=} [properties] Properties to set
|
|
53461
|
+
* @returns {ContentfulCrocpitEntitlementCreated} ContentfulCrocpitEntitlementCreated instance
|
|
53462
|
+
*/
|
|
53463
|
+
ContentfulCrocpitEntitlementCreated.create = function create(properties) {
|
|
53464
|
+
return new ContentfulCrocpitEntitlementCreated(properties);
|
|
53465
|
+
};
|
|
53466
|
+
|
|
53467
|
+
/**
|
|
53468
|
+
* Encodes the specified ContentfulCrocpitEntitlementCreated message. Does not implicitly {@link ContentfulCrocpitEntitlementCreated.verify|verify} messages.
|
|
53469
|
+
* @function encode
|
|
53470
|
+
* @memberof ContentfulCrocpitEntitlementCreated
|
|
53471
|
+
* @static
|
|
53472
|
+
* @param {IContentfulCrocpitEntitlementCreated} message ContentfulCrocpitEntitlementCreated message or plain object to encode
|
|
53473
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
53474
|
+
* @returns {$protobuf.Writer} Writer
|
|
53475
|
+
*/
|
|
53476
|
+
ContentfulCrocpitEntitlementCreated.encode = function encode(message, writer) {
|
|
53477
|
+
if (!writer)
|
|
53478
|
+
writer = $Writer.create();
|
|
53479
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
53480
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
53481
|
+
if (message.accessGroup != null && message.hasOwnProperty("accessGroup"))
|
|
53482
|
+
$root.contentful.SlugReference.encode(message.accessGroup, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
53483
|
+
if (message.permission != null && message.permission.length)
|
|
53484
|
+
for (var i = 0; i < message.permission.length; ++i)
|
|
53485
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.permission[i]);
|
|
53486
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
53487
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.createdAt);
|
|
53488
|
+
return writer;
|
|
53489
|
+
};
|
|
53490
|
+
|
|
53491
|
+
/**
|
|
53492
|
+
* Encodes the specified ContentfulCrocpitEntitlementCreated message, length delimited. Does not implicitly {@link ContentfulCrocpitEntitlementCreated.verify|verify} messages.
|
|
53493
|
+
* @function encodeDelimited
|
|
53494
|
+
* @memberof ContentfulCrocpitEntitlementCreated
|
|
53495
|
+
* @static
|
|
53496
|
+
* @param {IContentfulCrocpitEntitlementCreated} message ContentfulCrocpitEntitlementCreated message or plain object to encode
|
|
53497
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
53498
|
+
* @returns {$protobuf.Writer} Writer
|
|
53499
|
+
*/
|
|
53500
|
+
ContentfulCrocpitEntitlementCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
53501
|
+
return this.encode(message, writer).ldelim();
|
|
53502
|
+
};
|
|
53503
|
+
|
|
53504
|
+
/**
|
|
53505
|
+
* Decodes a ContentfulCrocpitEntitlementCreated message from the specified reader or buffer.
|
|
53506
|
+
* @function decode
|
|
53507
|
+
* @memberof ContentfulCrocpitEntitlementCreated
|
|
53508
|
+
* @static
|
|
53509
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
53510
|
+
* @param {number} [length] Message length if known beforehand
|
|
53511
|
+
* @returns {ContentfulCrocpitEntitlementCreated} ContentfulCrocpitEntitlementCreated
|
|
53512
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
53513
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
53514
|
+
*/
|
|
53515
|
+
ContentfulCrocpitEntitlementCreated.decode = function decode(reader, length) {
|
|
53516
|
+
if (!(reader instanceof $Reader))
|
|
53517
|
+
reader = $Reader.create(reader);
|
|
53518
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulCrocpitEntitlementCreated();
|
|
53519
|
+
while (reader.pos < end) {
|
|
53520
|
+
var tag = reader.uint32();
|
|
53521
|
+
switch (tag >>> 3) {
|
|
53522
|
+
case 1:
|
|
53523
|
+
message.slug = reader.string();
|
|
53524
|
+
break;
|
|
53525
|
+
case 2:
|
|
53526
|
+
message.accessGroup = $root.contentful.SlugReference.decode(reader, reader.uint32());
|
|
53527
|
+
break;
|
|
53528
|
+
case 3:
|
|
53529
|
+
if (!(message.permission && message.permission.length))
|
|
53530
|
+
message.permission = [];
|
|
53531
|
+
message.permission.push(reader.string());
|
|
53532
|
+
break;
|
|
53533
|
+
case 4:
|
|
53534
|
+
message.createdAt = reader.uint64();
|
|
53535
|
+
break;
|
|
53536
|
+
default:
|
|
53537
|
+
reader.skipType(tag & 7);
|
|
53538
|
+
break;
|
|
53539
|
+
}
|
|
53540
|
+
}
|
|
53541
|
+
return message;
|
|
53542
|
+
};
|
|
53543
|
+
|
|
53544
|
+
/**
|
|
53545
|
+
* Decodes a ContentfulCrocpitEntitlementCreated message from the specified reader or buffer, length delimited.
|
|
53546
|
+
* @function decodeDelimited
|
|
53547
|
+
* @memberof ContentfulCrocpitEntitlementCreated
|
|
53548
|
+
* @static
|
|
53549
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
53550
|
+
* @returns {ContentfulCrocpitEntitlementCreated} ContentfulCrocpitEntitlementCreated
|
|
53551
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
53552
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
53553
|
+
*/
|
|
53554
|
+
ContentfulCrocpitEntitlementCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
53555
|
+
if (!(reader instanceof $Reader))
|
|
53556
|
+
reader = new $Reader(reader);
|
|
53557
|
+
return this.decode(reader, reader.uint32());
|
|
53558
|
+
};
|
|
53559
|
+
|
|
53560
|
+
/**
|
|
53561
|
+
* Verifies a ContentfulCrocpitEntitlementCreated message.
|
|
53562
|
+
* @function verify
|
|
53563
|
+
* @memberof ContentfulCrocpitEntitlementCreated
|
|
53564
|
+
* @static
|
|
53565
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
53566
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
53567
|
+
*/
|
|
53568
|
+
ContentfulCrocpitEntitlementCreated.verify = function verify(message) {
|
|
53569
|
+
if (typeof message !== "object" || message === null)
|
|
53570
|
+
return "object expected";
|
|
53571
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
53572
|
+
if (!$util.isString(message.slug))
|
|
53573
|
+
return "slug: string expected";
|
|
53574
|
+
if (message.accessGroup != null && message.hasOwnProperty("accessGroup")) {
|
|
53575
|
+
var error = $root.contentful.SlugReference.verify(message.accessGroup);
|
|
53576
|
+
if (error)
|
|
53577
|
+
return "accessGroup." + error;
|
|
53578
|
+
}
|
|
53579
|
+
if (message.permission != null && message.hasOwnProperty("permission")) {
|
|
53580
|
+
if (!Array.isArray(message.permission))
|
|
53581
|
+
return "permission: array expected";
|
|
53582
|
+
for (var i = 0; i < message.permission.length; ++i)
|
|
53583
|
+
if (!$util.isString(message.permission[i]))
|
|
53584
|
+
return "permission: string[] expected";
|
|
53585
|
+
}
|
|
53586
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
53587
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
53588
|
+
return "createdAt: integer|Long expected";
|
|
53589
|
+
return null;
|
|
53590
|
+
};
|
|
53591
|
+
|
|
53592
|
+
/**
|
|
53593
|
+
* Creates a ContentfulCrocpitEntitlementCreated message from a plain object. Also converts values to their respective internal types.
|
|
53594
|
+
* @function fromObject
|
|
53595
|
+
* @memberof ContentfulCrocpitEntitlementCreated
|
|
53596
|
+
* @static
|
|
53597
|
+
* @param {Object.<string,*>} object Plain object
|
|
53598
|
+
* @returns {ContentfulCrocpitEntitlementCreated} ContentfulCrocpitEntitlementCreated
|
|
53599
|
+
*/
|
|
53600
|
+
ContentfulCrocpitEntitlementCreated.fromObject = function fromObject(object) {
|
|
53601
|
+
if (object instanceof $root.ContentfulCrocpitEntitlementCreated)
|
|
53602
|
+
return object;
|
|
53603
|
+
var message = new $root.ContentfulCrocpitEntitlementCreated();
|
|
53604
|
+
if (object.slug != null)
|
|
53605
|
+
message.slug = String(object.slug);
|
|
53606
|
+
if (object.accessGroup != null) {
|
|
53607
|
+
if (typeof object.accessGroup !== "object")
|
|
53608
|
+
throw TypeError(".ContentfulCrocpitEntitlementCreated.accessGroup: object expected");
|
|
53609
|
+
message.accessGroup = $root.contentful.SlugReference.fromObject(object.accessGroup);
|
|
53610
|
+
}
|
|
53611
|
+
if (object.permission) {
|
|
53612
|
+
if (!Array.isArray(object.permission))
|
|
53613
|
+
throw TypeError(".ContentfulCrocpitEntitlementCreated.permission: array expected");
|
|
53614
|
+
message.permission = [];
|
|
53615
|
+
for (var i = 0; i < object.permission.length; ++i)
|
|
53616
|
+
message.permission[i] = String(object.permission[i]);
|
|
53617
|
+
}
|
|
53618
|
+
if (object.createdAt != null)
|
|
53619
|
+
if ($util.Long)
|
|
53620
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
53621
|
+
else if (typeof object.createdAt === "string")
|
|
53622
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
53623
|
+
else if (typeof object.createdAt === "number")
|
|
53624
|
+
message.createdAt = object.createdAt;
|
|
53625
|
+
else if (typeof object.createdAt === "object")
|
|
53626
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
53627
|
+
return message;
|
|
53628
|
+
};
|
|
53629
|
+
|
|
53630
|
+
/**
|
|
53631
|
+
* Creates a plain object from a ContentfulCrocpitEntitlementCreated message. Also converts values to other types if specified.
|
|
53632
|
+
* @function toObject
|
|
53633
|
+
* @memberof ContentfulCrocpitEntitlementCreated
|
|
53634
|
+
* @static
|
|
53635
|
+
* @param {ContentfulCrocpitEntitlementCreated} message ContentfulCrocpitEntitlementCreated
|
|
53636
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
53637
|
+
* @returns {Object.<string,*>} Plain object
|
|
53638
|
+
*/
|
|
53639
|
+
ContentfulCrocpitEntitlementCreated.toObject = function toObject(message, options) {
|
|
53640
|
+
if (!options)
|
|
53641
|
+
options = {};
|
|
53642
|
+
var object = {};
|
|
53643
|
+
if (options.arrays || options.defaults)
|
|
53644
|
+
object.permission = [];
|
|
53645
|
+
if (options.defaults) {
|
|
53646
|
+
object.slug = "";
|
|
53647
|
+
object.accessGroup = null;
|
|
53648
|
+
if ($util.Long) {
|
|
53649
|
+
var long = new $util.Long(0, 0, true);
|
|
53650
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
53651
|
+
} else
|
|
53652
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
53653
|
+
}
|
|
53654
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
53655
|
+
object.slug = message.slug;
|
|
53656
|
+
if (message.accessGroup != null && message.hasOwnProperty("accessGroup"))
|
|
53657
|
+
object.accessGroup = $root.contentful.SlugReference.toObject(message.accessGroup, options);
|
|
53658
|
+
if (message.permission && message.permission.length) {
|
|
53659
|
+
object.permission = [];
|
|
53660
|
+
for (var j = 0; j < message.permission.length; ++j)
|
|
53661
|
+
object.permission[j] = message.permission[j];
|
|
53662
|
+
}
|
|
53663
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
53664
|
+
if (typeof message.createdAt === "number")
|
|
53665
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
53666
|
+
else
|
|
53667
|
+
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;
|
|
53668
|
+
return object;
|
|
53669
|
+
};
|
|
53670
|
+
|
|
53671
|
+
/**
|
|
53672
|
+
* Converts this ContentfulCrocpitEntitlementCreated to JSON.
|
|
53673
|
+
* @function toJSON
|
|
53674
|
+
* @memberof ContentfulCrocpitEntitlementCreated
|
|
53675
|
+
* @instance
|
|
53676
|
+
* @returns {Object.<string,*>} JSON object
|
|
53677
|
+
*/
|
|
53678
|
+
ContentfulCrocpitEntitlementCreated.prototype.toJSON = function toJSON() {
|
|
53679
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
53680
|
+
};
|
|
53681
|
+
|
|
53682
|
+
return ContentfulCrocpitEntitlementCreated;
|
|
53683
|
+
})();
|
|
53684
|
+
|
|
53685
|
+
$root.ContentfulCrocpitEntitlementUpdated = (function() {
|
|
53686
|
+
|
|
53687
|
+
/**
|
|
53688
|
+
* Properties of a ContentfulCrocpitEntitlementUpdated.
|
|
53689
|
+
* @exports IContentfulCrocpitEntitlementUpdated
|
|
53690
|
+
* @interface IContentfulCrocpitEntitlementUpdated
|
|
53691
|
+
* @property {string|null} [slug] ContentfulCrocpitEntitlementUpdated slug
|
|
53692
|
+
* @property {contentful.ISlugReference|null} [accessGroup] ContentfulCrocpitEntitlementUpdated accessGroup
|
|
53693
|
+
* @property {Array.<string>|null} [permission] ContentfulCrocpitEntitlementUpdated permission
|
|
53694
|
+
* @property {number|Long|null} [updatedAt] ContentfulCrocpitEntitlementUpdated updatedAt
|
|
53695
|
+
*/
|
|
53696
|
+
|
|
53697
|
+
/**
|
|
53698
|
+
* Constructs a new ContentfulCrocpitEntitlementUpdated.
|
|
53699
|
+
* @exports ContentfulCrocpitEntitlementUpdated
|
|
53700
|
+
* @classdesc Represents a ContentfulCrocpitEntitlementUpdated.
|
|
53701
|
+
* @implements IContentfulCrocpitEntitlementUpdated
|
|
53702
|
+
* @constructor
|
|
53703
|
+
* @param {IContentfulCrocpitEntitlementUpdated=} [properties] Properties to set
|
|
53704
|
+
*/
|
|
53705
|
+
function ContentfulCrocpitEntitlementUpdated(properties) {
|
|
53706
|
+
this.permission = [];
|
|
53707
|
+
if (properties)
|
|
53708
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
53709
|
+
if (properties[keys[i]] != null)
|
|
53710
|
+
this[keys[i]] = properties[keys[i]];
|
|
53711
|
+
}
|
|
53712
|
+
|
|
53713
|
+
/**
|
|
53714
|
+
* ContentfulCrocpitEntitlementUpdated slug.
|
|
53715
|
+
* @member {string} slug
|
|
53716
|
+
* @memberof ContentfulCrocpitEntitlementUpdated
|
|
53717
|
+
* @instance
|
|
53718
|
+
*/
|
|
53719
|
+
ContentfulCrocpitEntitlementUpdated.prototype.slug = "";
|
|
53720
|
+
|
|
53721
|
+
/**
|
|
53722
|
+
* ContentfulCrocpitEntitlementUpdated accessGroup.
|
|
53723
|
+
* @member {contentful.ISlugReference|null|undefined} accessGroup
|
|
53724
|
+
* @memberof ContentfulCrocpitEntitlementUpdated
|
|
53725
|
+
* @instance
|
|
53726
|
+
*/
|
|
53727
|
+
ContentfulCrocpitEntitlementUpdated.prototype.accessGroup = null;
|
|
53728
|
+
|
|
53729
|
+
/**
|
|
53730
|
+
* ContentfulCrocpitEntitlementUpdated permission.
|
|
53731
|
+
* @member {Array.<string>} permission
|
|
53732
|
+
* @memberof ContentfulCrocpitEntitlementUpdated
|
|
53733
|
+
* @instance
|
|
53734
|
+
*/
|
|
53735
|
+
ContentfulCrocpitEntitlementUpdated.prototype.permission = $util.emptyArray;
|
|
53736
|
+
|
|
53737
|
+
/**
|
|
53738
|
+
* ContentfulCrocpitEntitlementUpdated updatedAt.
|
|
53739
|
+
* @member {number|Long} updatedAt
|
|
53740
|
+
* @memberof ContentfulCrocpitEntitlementUpdated
|
|
53741
|
+
* @instance
|
|
53742
|
+
*/
|
|
53743
|
+
ContentfulCrocpitEntitlementUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
53744
|
+
|
|
53745
|
+
/**
|
|
53746
|
+
* Creates a new ContentfulCrocpitEntitlementUpdated instance using the specified properties.
|
|
53747
|
+
* @function create
|
|
53748
|
+
* @memberof ContentfulCrocpitEntitlementUpdated
|
|
53749
|
+
* @static
|
|
53750
|
+
* @param {IContentfulCrocpitEntitlementUpdated=} [properties] Properties to set
|
|
53751
|
+
* @returns {ContentfulCrocpitEntitlementUpdated} ContentfulCrocpitEntitlementUpdated instance
|
|
53752
|
+
*/
|
|
53753
|
+
ContentfulCrocpitEntitlementUpdated.create = function create(properties) {
|
|
53754
|
+
return new ContentfulCrocpitEntitlementUpdated(properties);
|
|
53755
|
+
};
|
|
53756
|
+
|
|
53757
|
+
/**
|
|
53758
|
+
* Encodes the specified ContentfulCrocpitEntitlementUpdated message. Does not implicitly {@link ContentfulCrocpitEntitlementUpdated.verify|verify} messages.
|
|
53759
|
+
* @function encode
|
|
53760
|
+
* @memberof ContentfulCrocpitEntitlementUpdated
|
|
53761
|
+
* @static
|
|
53762
|
+
* @param {IContentfulCrocpitEntitlementUpdated} message ContentfulCrocpitEntitlementUpdated message or plain object to encode
|
|
53763
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
53764
|
+
* @returns {$protobuf.Writer} Writer
|
|
53765
|
+
*/
|
|
53766
|
+
ContentfulCrocpitEntitlementUpdated.encode = function encode(message, writer) {
|
|
53767
|
+
if (!writer)
|
|
53768
|
+
writer = $Writer.create();
|
|
53769
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
53770
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
53771
|
+
if (message.accessGroup != null && message.hasOwnProperty("accessGroup"))
|
|
53772
|
+
$root.contentful.SlugReference.encode(message.accessGroup, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
53773
|
+
if (message.permission != null && message.permission.length)
|
|
53774
|
+
for (var i = 0; i < message.permission.length; ++i)
|
|
53775
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.permission[i]);
|
|
53776
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
53777
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.updatedAt);
|
|
53778
|
+
return writer;
|
|
53779
|
+
};
|
|
53780
|
+
|
|
53781
|
+
/**
|
|
53782
|
+
* Encodes the specified ContentfulCrocpitEntitlementUpdated message, length delimited. Does not implicitly {@link ContentfulCrocpitEntitlementUpdated.verify|verify} messages.
|
|
53783
|
+
* @function encodeDelimited
|
|
53784
|
+
* @memberof ContentfulCrocpitEntitlementUpdated
|
|
53785
|
+
* @static
|
|
53786
|
+
* @param {IContentfulCrocpitEntitlementUpdated} message ContentfulCrocpitEntitlementUpdated message or plain object to encode
|
|
53787
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
53788
|
+
* @returns {$protobuf.Writer} Writer
|
|
53789
|
+
*/
|
|
53790
|
+
ContentfulCrocpitEntitlementUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
53791
|
+
return this.encode(message, writer).ldelim();
|
|
53792
|
+
};
|
|
53793
|
+
|
|
53794
|
+
/**
|
|
53795
|
+
* Decodes a ContentfulCrocpitEntitlementUpdated message from the specified reader or buffer.
|
|
53796
|
+
* @function decode
|
|
53797
|
+
* @memberof ContentfulCrocpitEntitlementUpdated
|
|
53798
|
+
* @static
|
|
53799
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
53800
|
+
* @param {number} [length] Message length if known beforehand
|
|
53801
|
+
* @returns {ContentfulCrocpitEntitlementUpdated} ContentfulCrocpitEntitlementUpdated
|
|
53802
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
53803
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
53804
|
+
*/
|
|
53805
|
+
ContentfulCrocpitEntitlementUpdated.decode = function decode(reader, length) {
|
|
53806
|
+
if (!(reader instanceof $Reader))
|
|
53807
|
+
reader = $Reader.create(reader);
|
|
53808
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulCrocpitEntitlementUpdated();
|
|
53809
|
+
while (reader.pos < end) {
|
|
53810
|
+
var tag = reader.uint32();
|
|
53811
|
+
switch (tag >>> 3) {
|
|
53812
|
+
case 1:
|
|
53813
|
+
message.slug = reader.string();
|
|
53814
|
+
break;
|
|
53815
|
+
case 2:
|
|
53816
|
+
message.accessGroup = $root.contentful.SlugReference.decode(reader, reader.uint32());
|
|
53817
|
+
break;
|
|
53818
|
+
case 3:
|
|
53819
|
+
if (!(message.permission && message.permission.length))
|
|
53820
|
+
message.permission = [];
|
|
53821
|
+
message.permission.push(reader.string());
|
|
53822
|
+
break;
|
|
53823
|
+
case 4:
|
|
53824
|
+
message.updatedAt = reader.uint64();
|
|
53825
|
+
break;
|
|
53826
|
+
default:
|
|
53827
|
+
reader.skipType(tag & 7);
|
|
53828
|
+
break;
|
|
53829
|
+
}
|
|
53830
|
+
}
|
|
53831
|
+
return message;
|
|
53832
|
+
};
|
|
53833
|
+
|
|
53834
|
+
/**
|
|
53835
|
+
* Decodes a ContentfulCrocpitEntitlementUpdated message from the specified reader or buffer, length delimited.
|
|
53836
|
+
* @function decodeDelimited
|
|
53837
|
+
* @memberof ContentfulCrocpitEntitlementUpdated
|
|
53838
|
+
* @static
|
|
53839
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
53840
|
+
* @returns {ContentfulCrocpitEntitlementUpdated} ContentfulCrocpitEntitlementUpdated
|
|
53841
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
53842
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
53843
|
+
*/
|
|
53844
|
+
ContentfulCrocpitEntitlementUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
53845
|
+
if (!(reader instanceof $Reader))
|
|
53846
|
+
reader = new $Reader(reader);
|
|
53847
|
+
return this.decode(reader, reader.uint32());
|
|
53848
|
+
};
|
|
53849
|
+
|
|
53850
|
+
/**
|
|
53851
|
+
* Verifies a ContentfulCrocpitEntitlementUpdated message.
|
|
53852
|
+
* @function verify
|
|
53853
|
+
* @memberof ContentfulCrocpitEntitlementUpdated
|
|
53854
|
+
* @static
|
|
53855
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
53856
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
53857
|
+
*/
|
|
53858
|
+
ContentfulCrocpitEntitlementUpdated.verify = function verify(message) {
|
|
53859
|
+
if (typeof message !== "object" || message === null)
|
|
53860
|
+
return "object expected";
|
|
53861
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
53862
|
+
if (!$util.isString(message.slug))
|
|
53863
|
+
return "slug: string expected";
|
|
53864
|
+
if (message.accessGroup != null && message.hasOwnProperty("accessGroup")) {
|
|
53865
|
+
var error = $root.contentful.SlugReference.verify(message.accessGroup);
|
|
53866
|
+
if (error)
|
|
53867
|
+
return "accessGroup." + error;
|
|
53868
|
+
}
|
|
53869
|
+
if (message.permission != null && message.hasOwnProperty("permission")) {
|
|
53870
|
+
if (!Array.isArray(message.permission))
|
|
53871
|
+
return "permission: array expected";
|
|
53872
|
+
for (var i = 0; i < message.permission.length; ++i)
|
|
53873
|
+
if (!$util.isString(message.permission[i]))
|
|
53874
|
+
return "permission: string[] expected";
|
|
53875
|
+
}
|
|
53876
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
53877
|
+
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
53878
|
+
return "updatedAt: integer|Long expected";
|
|
53879
|
+
return null;
|
|
53880
|
+
};
|
|
53881
|
+
|
|
53882
|
+
/**
|
|
53883
|
+
* Creates a ContentfulCrocpitEntitlementUpdated message from a plain object. Also converts values to their respective internal types.
|
|
53884
|
+
* @function fromObject
|
|
53885
|
+
* @memberof ContentfulCrocpitEntitlementUpdated
|
|
53886
|
+
* @static
|
|
53887
|
+
* @param {Object.<string,*>} object Plain object
|
|
53888
|
+
* @returns {ContentfulCrocpitEntitlementUpdated} ContentfulCrocpitEntitlementUpdated
|
|
53889
|
+
*/
|
|
53890
|
+
ContentfulCrocpitEntitlementUpdated.fromObject = function fromObject(object) {
|
|
53891
|
+
if (object instanceof $root.ContentfulCrocpitEntitlementUpdated)
|
|
53892
|
+
return object;
|
|
53893
|
+
var message = new $root.ContentfulCrocpitEntitlementUpdated();
|
|
53894
|
+
if (object.slug != null)
|
|
53895
|
+
message.slug = String(object.slug);
|
|
53896
|
+
if (object.accessGroup != null) {
|
|
53897
|
+
if (typeof object.accessGroup !== "object")
|
|
53898
|
+
throw TypeError(".ContentfulCrocpitEntitlementUpdated.accessGroup: object expected");
|
|
53899
|
+
message.accessGroup = $root.contentful.SlugReference.fromObject(object.accessGroup);
|
|
53900
|
+
}
|
|
53901
|
+
if (object.permission) {
|
|
53902
|
+
if (!Array.isArray(object.permission))
|
|
53903
|
+
throw TypeError(".ContentfulCrocpitEntitlementUpdated.permission: array expected");
|
|
53904
|
+
message.permission = [];
|
|
53905
|
+
for (var i = 0; i < object.permission.length; ++i)
|
|
53906
|
+
message.permission[i] = String(object.permission[i]);
|
|
53907
|
+
}
|
|
53908
|
+
if (object.updatedAt != null)
|
|
53909
|
+
if ($util.Long)
|
|
53910
|
+
(message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
|
|
53911
|
+
else if (typeof object.updatedAt === "string")
|
|
53912
|
+
message.updatedAt = parseInt(object.updatedAt, 10);
|
|
53913
|
+
else if (typeof object.updatedAt === "number")
|
|
53914
|
+
message.updatedAt = object.updatedAt;
|
|
53915
|
+
else if (typeof object.updatedAt === "object")
|
|
53916
|
+
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
53917
|
+
return message;
|
|
53918
|
+
};
|
|
53919
|
+
|
|
53920
|
+
/**
|
|
53921
|
+
* Creates a plain object from a ContentfulCrocpitEntitlementUpdated message. Also converts values to other types if specified.
|
|
53922
|
+
* @function toObject
|
|
53923
|
+
* @memberof ContentfulCrocpitEntitlementUpdated
|
|
53924
|
+
* @static
|
|
53925
|
+
* @param {ContentfulCrocpitEntitlementUpdated} message ContentfulCrocpitEntitlementUpdated
|
|
53926
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
53927
|
+
* @returns {Object.<string,*>} Plain object
|
|
53928
|
+
*/
|
|
53929
|
+
ContentfulCrocpitEntitlementUpdated.toObject = function toObject(message, options) {
|
|
53930
|
+
if (!options)
|
|
53931
|
+
options = {};
|
|
53932
|
+
var object = {};
|
|
53933
|
+
if (options.arrays || options.defaults)
|
|
53934
|
+
object.permission = [];
|
|
53935
|
+
if (options.defaults) {
|
|
53936
|
+
object.slug = "";
|
|
53937
|
+
object.accessGroup = null;
|
|
53938
|
+
if ($util.Long) {
|
|
53939
|
+
var long = new $util.Long(0, 0, true);
|
|
53940
|
+
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
53941
|
+
} else
|
|
53942
|
+
object.updatedAt = options.longs === String ? "0" : 0;
|
|
53943
|
+
}
|
|
53944
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
53945
|
+
object.slug = message.slug;
|
|
53946
|
+
if (message.accessGroup != null && message.hasOwnProperty("accessGroup"))
|
|
53947
|
+
object.accessGroup = $root.contentful.SlugReference.toObject(message.accessGroup, options);
|
|
53948
|
+
if (message.permission && message.permission.length) {
|
|
53949
|
+
object.permission = [];
|
|
53950
|
+
for (var j = 0; j < message.permission.length; ++j)
|
|
53951
|
+
object.permission[j] = message.permission[j];
|
|
53952
|
+
}
|
|
53953
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
53954
|
+
if (typeof message.updatedAt === "number")
|
|
53955
|
+
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
53956
|
+
else
|
|
53957
|
+
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;
|
|
53958
|
+
return object;
|
|
53959
|
+
};
|
|
53960
|
+
|
|
53961
|
+
/**
|
|
53962
|
+
* Converts this ContentfulCrocpitEntitlementUpdated to JSON.
|
|
53963
|
+
* @function toJSON
|
|
53964
|
+
* @memberof ContentfulCrocpitEntitlementUpdated
|
|
53965
|
+
* @instance
|
|
53966
|
+
* @returns {Object.<string,*>} JSON object
|
|
53967
|
+
*/
|
|
53968
|
+
ContentfulCrocpitEntitlementUpdated.prototype.toJSON = function toJSON() {
|
|
53969
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
53970
|
+
};
|
|
53971
|
+
|
|
53972
|
+
return ContentfulCrocpitEntitlementUpdated;
|
|
53973
|
+
})();
|
|
53974
|
+
|
|
53975
|
+
$root.ContentfulCrocpitEntitlementDeleted = (function() {
|
|
53976
|
+
|
|
53977
|
+
/**
|
|
53978
|
+
* Properties of a ContentfulCrocpitEntitlementDeleted.
|
|
53979
|
+
* @exports IContentfulCrocpitEntitlementDeleted
|
|
53980
|
+
* @interface IContentfulCrocpitEntitlementDeleted
|
|
53981
|
+
* @property {string|null} [slug] ContentfulCrocpitEntitlementDeleted slug
|
|
53982
|
+
* @property {number|Long|null} [deletedAt] ContentfulCrocpitEntitlementDeleted deletedAt
|
|
53983
|
+
*/
|
|
53984
|
+
|
|
53985
|
+
/**
|
|
53986
|
+
* Constructs a new ContentfulCrocpitEntitlementDeleted.
|
|
53987
|
+
* @exports ContentfulCrocpitEntitlementDeleted
|
|
53988
|
+
* @classdesc Represents a ContentfulCrocpitEntitlementDeleted.
|
|
53989
|
+
* @implements IContentfulCrocpitEntitlementDeleted
|
|
53990
|
+
* @constructor
|
|
53991
|
+
* @param {IContentfulCrocpitEntitlementDeleted=} [properties] Properties to set
|
|
53992
|
+
*/
|
|
53993
|
+
function ContentfulCrocpitEntitlementDeleted(properties) {
|
|
53994
|
+
if (properties)
|
|
53995
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
53996
|
+
if (properties[keys[i]] != null)
|
|
53997
|
+
this[keys[i]] = properties[keys[i]];
|
|
53998
|
+
}
|
|
53999
|
+
|
|
54000
|
+
/**
|
|
54001
|
+
* ContentfulCrocpitEntitlementDeleted slug.
|
|
54002
|
+
* @member {string} slug
|
|
54003
|
+
* @memberof ContentfulCrocpitEntitlementDeleted
|
|
54004
|
+
* @instance
|
|
54005
|
+
*/
|
|
54006
|
+
ContentfulCrocpitEntitlementDeleted.prototype.slug = "";
|
|
54007
|
+
|
|
54008
|
+
/**
|
|
54009
|
+
* ContentfulCrocpitEntitlementDeleted deletedAt.
|
|
54010
|
+
* @member {number|Long} deletedAt
|
|
54011
|
+
* @memberof ContentfulCrocpitEntitlementDeleted
|
|
54012
|
+
* @instance
|
|
54013
|
+
*/
|
|
54014
|
+
ContentfulCrocpitEntitlementDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
54015
|
+
|
|
54016
|
+
/**
|
|
54017
|
+
* Creates a new ContentfulCrocpitEntitlementDeleted instance using the specified properties.
|
|
54018
|
+
* @function create
|
|
54019
|
+
* @memberof ContentfulCrocpitEntitlementDeleted
|
|
54020
|
+
* @static
|
|
54021
|
+
* @param {IContentfulCrocpitEntitlementDeleted=} [properties] Properties to set
|
|
54022
|
+
* @returns {ContentfulCrocpitEntitlementDeleted} ContentfulCrocpitEntitlementDeleted instance
|
|
54023
|
+
*/
|
|
54024
|
+
ContentfulCrocpitEntitlementDeleted.create = function create(properties) {
|
|
54025
|
+
return new ContentfulCrocpitEntitlementDeleted(properties);
|
|
54026
|
+
};
|
|
54027
|
+
|
|
54028
|
+
/**
|
|
54029
|
+
* Encodes the specified ContentfulCrocpitEntitlementDeleted message. Does not implicitly {@link ContentfulCrocpitEntitlementDeleted.verify|verify} messages.
|
|
54030
|
+
* @function encode
|
|
54031
|
+
* @memberof ContentfulCrocpitEntitlementDeleted
|
|
54032
|
+
* @static
|
|
54033
|
+
* @param {IContentfulCrocpitEntitlementDeleted} message ContentfulCrocpitEntitlementDeleted message or plain object to encode
|
|
54034
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
54035
|
+
* @returns {$protobuf.Writer} Writer
|
|
54036
|
+
*/
|
|
54037
|
+
ContentfulCrocpitEntitlementDeleted.encode = function encode(message, writer) {
|
|
54038
|
+
if (!writer)
|
|
54039
|
+
writer = $Writer.create();
|
|
54040
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
54041
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
54042
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
54043
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
|
|
54044
|
+
return writer;
|
|
54045
|
+
};
|
|
54046
|
+
|
|
54047
|
+
/**
|
|
54048
|
+
* Encodes the specified ContentfulCrocpitEntitlementDeleted message, length delimited. Does not implicitly {@link ContentfulCrocpitEntitlementDeleted.verify|verify} messages.
|
|
54049
|
+
* @function encodeDelimited
|
|
54050
|
+
* @memberof ContentfulCrocpitEntitlementDeleted
|
|
54051
|
+
* @static
|
|
54052
|
+
* @param {IContentfulCrocpitEntitlementDeleted} message ContentfulCrocpitEntitlementDeleted message or plain object to encode
|
|
54053
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
54054
|
+
* @returns {$protobuf.Writer} Writer
|
|
54055
|
+
*/
|
|
54056
|
+
ContentfulCrocpitEntitlementDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
54057
|
+
return this.encode(message, writer).ldelim();
|
|
54058
|
+
};
|
|
54059
|
+
|
|
54060
|
+
/**
|
|
54061
|
+
* Decodes a ContentfulCrocpitEntitlementDeleted message from the specified reader or buffer.
|
|
54062
|
+
* @function decode
|
|
54063
|
+
* @memberof ContentfulCrocpitEntitlementDeleted
|
|
54064
|
+
* @static
|
|
54065
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
54066
|
+
* @param {number} [length] Message length if known beforehand
|
|
54067
|
+
* @returns {ContentfulCrocpitEntitlementDeleted} ContentfulCrocpitEntitlementDeleted
|
|
54068
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
54069
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
54070
|
+
*/
|
|
54071
|
+
ContentfulCrocpitEntitlementDeleted.decode = function decode(reader, length) {
|
|
54072
|
+
if (!(reader instanceof $Reader))
|
|
54073
|
+
reader = $Reader.create(reader);
|
|
54074
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulCrocpitEntitlementDeleted();
|
|
54075
|
+
while (reader.pos < end) {
|
|
54076
|
+
var tag = reader.uint32();
|
|
54077
|
+
switch (tag >>> 3) {
|
|
54078
|
+
case 1:
|
|
54079
|
+
message.slug = reader.string();
|
|
54080
|
+
break;
|
|
54081
|
+
case 2:
|
|
54082
|
+
message.deletedAt = reader.uint64();
|
|
54083
|
+
break;
|
|
54084
|
+
default:
|
|
54085
|
+
reader.skipType(tag & 7);
|
|
54086
|
+
break;
|
|
54087
|
+
}
|
|
54088
|
+
}
|
|
54089
|
+
return message;
|
|
54090
|
+
};
|
|
54091
|
+
|
|
54092
|
+
/**
|
|
54093
|
+
* Decodes a ContentfulCrocpitEntitlementDeleted message from the specified reader or buffer, length delimited.
|
|
54094
|
+
* @function decodeDelimited
|
|
54095
|
+
* @memberof ContentfulCrocpitEntitlementDeleted
|
|
54096
|
+
* @static
|
|
54097
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
54098
|
+
* @returns {ContentfulCrocpitEntitlementDeleted} ContentfulCrocpitEntitlementDeleted
|
|
54099
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
54100
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
54101
|
+
*/
|
|
54102
|
+
ContentfulCrocpitEntitlementDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
54103
|
+
if (!(reader instanceof $Reader))
|
|
54104
|
+
reader = new $Reader(reader);
|
|
54105
|
+
return this.decode(reader, reader.uint32());
|
|
54106
|
+
};
|
|
54107
|
+
|
|
54108
|
+
/**
|
|
54109
|
+
* Verifies a ContentfulCrocpitEntitlementDeleted message.
|
|
54110
|
+
* @function verify
|
|
54111
|
+
* @memberof ContentfulCrocpitEntitlementDeleted
|
|
54112
|
+
* @static
|
|
54113
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
54114
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
54115
|
+
*/
|
|
54116
|
+
ContentfulCrocpitEntitlementDeleted.verify = function verify(message) {
|
|
54117
|
+
if (typeof message !== "object" || message === null)
|
|
54118
|
+
return "object expected";
|
|
54119
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
54120
|
+
if (!$util.isString(message.slug))
|
|
54121
|
+
return "slug: string expected";
|
|
54122
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
54123
|
+
if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
|
|
54124
|
+
return "deletedAt: integer|Long expected";
|
|
54125
|
+
return null;
|
|
54126
|
+
};
|
|
54127
|
+
|
|
54128
|
+
/**
|
|
54129
|
+
* Creates a ContentfulCrocpitEntitlementDeleted message from a plain object. Also converts values to their respective internal types.
|
|
54130
|
+
* @function fromObject
|
|
54131
|
+
* @memberof ContentfulCrocpitEntitlementDeleted
|
|
54132
|
+
* @static
|
|
54133
|
+
* @param {Object.<string,*>} object Plain object
|
|
54134
|
+
* @returns {ContentfulCrocpitEntitlementDeleted} ContentfulCrocpitEntitlementDeleted
|
|
54135
|
+
*/
|
|
54136
|
+
ContentfulCrocpitEntitlementDeleted.fromObject = function fromObject(object) {
|
|
54137
|
+
if (object instanceof $root.ContentfulCrocpitEntitlementDeleted)
|
|
54138
|
+
return object;
|
|
54139
|
+
var message = new $root.ContentfulCrocpitEntitlementDeleted();
|
|
54140
|
+
if (object.slug != null)
|
|
54141
|
+
message.slug = String(object.slug);
|
|
54142
|
+
if (object.deletedAt != null)
|
|
54143
|
+
if ($util.Long)
|
|
54144
|
+
(message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
|
|
54145
|
+
else if (typeof object.deletedAt === "string")
|
|
54146
|
+
message.deletedAt = parseInt(object.deletedAt, 10);
|
|
54147
|
+
else if (typeof object.deletedAt === "number")
|
|
54148
|
+
message.deletedAt = object.deletedAt;
|
|
54149
|
+
else if (typeof object.deletedAt === "object")
|
|
54150
|
+
message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
|
|
54151
|
+
return message;
|
|
54152
|
+
};
|
|
54153
|
+
|
|
54154
|
+
/**
|
|
54155
|
+
* Creates a plain object from a ContentfulCrocpitEntitlementDeleted message. Also converts values to other types if specified.
|
|
54156
|
+
* @function toObject
|
|
54157
|
+
* @memberof ContentfulCrocpitEntitlementDeleted
|
|
54158
|
+
* @static
|
|
54159
|
+
* @param {ContentfulCrocpitEntitlementDeleted} message ContentfulCrocpitEntitlementDeleted
|
|
54160
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
54161
|
+
* @returns {Object.<string,*>} Plain object
|
|
54162
|
+
*/
|
|
54163
|
+
ContentfulCrocpitEntitlementDeleted.toObject = function toObject(message, options) {
|
|
54164
|
+
if (!options)
|
|
54165
|
+
options = {};
|
|
54166
|
+
var object = {};
|
|
54167
|
+
if (options.defaults) {
|
|
54168
|
+
object.slug = "";
|
|
54169
|
+
if ($util.Long) {
|
|
54170
|
+
var long = new $util.Long(0, 0, true);
|
|
54171
|
+
object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
54172
|
+
} else
|
|
54173
|
+
object.deletedAt = options.longs === String ? "0" : 0;
|
|
54174
|
+
}
|
|
54175
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
54176
|
+
object.slug = message.slug;
|
|
54177
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
54178
|
+
if (typeof message.deletedAt === "number")
|
|
54179
|
+
object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
|
|
54180
|
+
else
|
|
54181
|
+
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;
|
|
54182
|
+
return object;
|
|
54183
|
+
};
|
|
54184
|
+
|
|
54185
|
+
/**
|
|
54186
|
+
* Converts this ContentfulCrocpitEntitlementDeleted to JSON.
|
|
54187
|
+
* @function toJSON
|
|
54188
|
+
* @memberof ContentfulCrocpitEntitlementDeleted
|
|
54189
|
+
* @instance
|
|
54190
|
+
* @returns {Object.<string,*>} JSON object
|
|
54191
|
+
*/
|
|
54192
|
+
ContentfulCrocpitEntitlementDeleted.prototype.toJSON = function toJSON() {
|
|
54193
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
54194
|
+
};
|
|
54195
|
+
|
|
54196
|
+
return ContentfulCrocpitEntitlementDeleted;
|
|
54197
|
+
})();
|
|
54198
|
+
|
|
53395
54199
|
$root.ContentfulContentModelCreated = (function() {
|
|
53396
54200
|
|
|
53397
54201
|
/**
|
package/package.json
CHANGED