@headspace/protos-events 1.294.0 → 1.295.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 +330 -0
- package/lib/index.js +896 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -22704,6 +22704,336 @@ export class ActivityDeleted implements IActivityDeleted {
|
|
|
22704
22704
|
public toJSON(): { [k: string]: any };
|
|
22705
22705
|
}
|
|
22706
22706
|
|
|
22707
|
+
/** Properties of a CollectionCreated. */
|
|
22708
|
+
export interface ICollectionCreated {
|
|
22709
|
+
|
|
22710
|
+
/** CollectionCreated slug */
|
|
22711
|
+
slug?: (string|null);
|
|
22712
|
+
|
|
22713
|
+
/** CollectionCreated contentType */
|
|
22714
|
+
contentType?: (string|null);
|
|
22715
|
+
|
|
22716
|
+
/** CollectionCreated collectionType */
|
|
22717
|
+
collectionType?: (ContentCollectionType|null);
|
|
22718
|
+
|
|
22719
|
+
/** CollectionCreated accessGroup */
|
|
22720
|
+
accessGroup?: (contentful.ISlugReference[]|null);
|
|
22721
|
+
|
|
22722
|
+
/** CollectionCreated createdAt */
|
|
22723
|
+
createdAt?: (number|Long|null);
|
|
22724
|
+
}
|
|
22725
|
+
|
|
22726
|
+
/** Represents a CollectionCreated. */
|
|
22727
|
+
export class CollectionCreated implements ICollectionCreated {
|
|
22728
|
+
|
|
22729
|
+
/**
|
|
22730
|
+
* Constructs a new CollectionCreated.
|
|
22731
|
+
* @param [properties] Properties to set
|
|
22732
|
+
*/
|
|
22733
|
+
constructor(properties?: ICollectionCreated);
|
|
22734
|
+
|
|
22735
|
+
/** CollectionCreated slug. */
|
|
22736
|
+
public slug: string;
|
|
22737
|
+
|
|
22738
|
+
/** CollectionCreated contentType. */
|
|
22739
|
+
public contentType: string;
|
|
22740
|
+
|
|
22741
|
+
/** CollectionCreated collectionType. */
|
|
22742
|
+
public collectionType: ContentCollectionType;
|
|
22743
|
+
|
|
22744
|
+
/** CollectionCreated accessGroup. */
|
|
22745
|
+
public accessGroup: contentful.ISlugReference[];
|
|
22746
|
+
|
|
22747
|
+
/** CollectionCreated createdAt. */
|
|
22748
|
+
public createdAt: (number|Long);
|
|
22749
|
+
|
|
22750
|
+
/**
|
|
22751
|
+
* Creates a new CollectionCreated instance using the specified properties.
|
|
22752
|
+
* @param [properties] Properties to set
|
|
22753
|
+
* @returns CollectionCreated instance
|
|
22754
|
+
*/
|
|
22755
|
+
public static create(properties?: ICollectionCreated): CollectionCreated;
|
|
22756
|
+
|
|
22757
|
+
/**
|
|
22758
|
+
* Encodes the specified CollectionCreated message. Does not implicitly {@link CollectionCreated.verify|verify} messages.
|
|
22759
|
+
* @param message CollectionCreated message or plain object to encode
|
|
22760
|
+
* @param [writer] Writer to encode to
|
|
22761
|
+
* @returns Writer
|
|
22762
|
+
*/
|
|
22763
|
+
public static encode(message: ICollectionCreated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
22764
|
+
|
|
22765
|
+
/**
|
|
22766
|
+
* Encodes the specified CollectionCreated message, length delimited. Does not implicitly {@link CollectionCreated.verify|verify} messages.
|
|
22767
|
+
* @param message CollectionCreated message or plain object to encode
|
|
22768
|
+
* @param [writer] Writer to encode to
|
|
22769
|
+
* @returns Writer
|
|
22770
|
+
*/
|
|
22771
|
+
public static encodeDelimited(message: ICollectionCreated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
22772
|
+
|
|
22773
|
+
/**
|
|
22774
|
+
* Decodes a CollectionCreated message from the specified reader or buffer.
|
|
22775
|
+
* @param reader Reader or buffer to decode from
|
|
22776
|
+
* @param [length] Message length if known beforehand
|
|
22777
|
+
* @returns CollectionCreated
|
|
22778
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
22779
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
22780
|
+
*/
|
|
22781
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): CollectionCreated;
|
|
22782
|
+
|
|
22783
|
+
/**
|
|
22784
|
+
* Decodes a CollectionCreated message from the specified reader or buffer, length delimited.
|
|
22785
|
+
* @param reader Reader or buffer to decode from
|
|
22786
|
+
* @returns CollectionCreated
|
|
22787
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
22788
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
22789
|
+
*/
|
|
22790
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): CollectionCreated;
|
|
22791
|
+
|
|
22792
|
+
/**
|
|
22793
|
+
* Verifies a CollectionCreated message.
|
|
22794
|
+
* @param message Plain object to verify
|
|
22795
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
22796
|
+
*/
|
|
22797
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
22798
|
+
|
|
22799
|
+
/**
|
|
22800
|
+
* Creates a CollectionCreated message from a plain object. Also converts values to their respective internal types.
|
|
22801
|
+
* @param object Plain object
|
|
22802
|
+
* @returns CollectionCreated
|
|
22803
|
+
*/
|
|
22804
|
+
public static fromObject(object: { [k: string]: any }): CollectionCreated;
|
|
22805
|
+
|
|
22806
|
+
/**
|
|
22807
|
+
* Creates a plain object from a CollectionCreated message. Also converts values to other types if specified.
|
|
22808
|
+
* @param message CollectionCreated
|
|
22809
|
+
* @param [options] Conversion options
|
|
22810
|
+
* @returns Plain object
|
|
22811
|
+
*/
|
|
22812
|
+
public static toObject(message: CollectionCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
22813
|
+
|
|
22814
|
+
/**
|
|
22815
|
+
* Converts this CollectionCreated to JSON.
|
|
22816
|
+
* @returns JSON object
|
|
22817
|
+
*/
|
|
22818
|
+
public toJSON(): { [k: string]: any };
|
|
22819
|
+
}
|
|
22820
|
+
|
|
22821
|
+
/** Properties of a CollectionUpdated. */
|
|
22822
|
+
export interface ICollectionUpdated {
|
|
22823
|
+
|
|
22824
|
+
/** CollectionUpdated slug */
|
|
22825
|
+
slug?: (string|null);
|
|
22826
|
+
|
|
22827
|
+
/** CollectionUpdated contentType */
|
|
22828
|
+
contentType?: (string|null);
|
|
22829
|
+
|
|
22830
|
+
/** CollectionUpdated collectionType */
|
|
22831
|
+
collectionType?: (ContentCollectionType|null);
|
|
22832
|
+
|
|
22833
|
+
/** CollectionUpdated accessGroup */
|
|
22834
|
+
accessGroup?: (contentful.ISlugReference[]|null);
|
|
22835
|
+
|
|
22836
|
+
/** CollectionUpdated updatedAt */
|
|
22837
|
+
updatedAt?: (number|Long|null);
|
|
22838
|
+
}
|
|
22839
|
+
|
|
22840
|
+
/** Represents a CollectionUpdated. */
|
|
22841
|
+
export class CollectionUpdated implements ICollectionUpdated {
|
|
22842
|
+
|
|
22843
|
+
/**
|
|
22844
|
+
* Constructs a new CollectionUpdated.
|
|
22845
|
+
* @param [properties] Properties to set
|
|
22846
|
+
*/
|
|
22847
|
+
constructor(properties?: ICollectionUpdated);
|
|
22848
|
+
|
|
22849
|
+
/** CollectionUpdated slug. */
|
|
22850
|
+
public slug: string;
|
|
22851
|
+
|
|
22852
|
+
/** CollectionUpdated contentType. */
|
|
22853
|
+
public contentType: string;
|
|
22854
|
+
|
|
22855
|
+
/** CollectionUpdated collectionType. */
|
|
22856
|
+
public collectionType: ContentCollectionType;
|
|
22857
|
+
|
|
22858
|
+
/** CollectionUpdated accessGroup. */
|
|
22859
|
+
public accessGroup: contentful.ISlugReference[];
|
|
22860
|
+
|
|
22861
|
+
/** CollectionUpdated updatedAt. */
|
|
22862
|
+
public updatedAt: (number|Long);
|
|
22863
|
+
|
|
22864
|
+
/**
|
|
22865
|
+
* Creates a new CollectionUpdated instance using the specified properties.
|
|
22866
|
+
* @param [properties] Properties to set
|
|
22867
|
+
* @returns CollectionUpdated instance
|
|
22868
|
+
*/
|
|
22869
|
+
public static create(properties?: ICollectionUpdated): CollectionUpdated;
|
|
22870
|
+
|
|
22871
|
+
/**
|
|
22872
|
+
* Encodes the specified CollectionUpdated message. Does not implicitly {@link CollectionUpdated.verify|verify} messages.
|
|
22873
|
+
* @param message CollectionUpdated message or plain object to encode
|
|
22874
|
+
* @param [writer] Writer to encode to
|
|
22875
|
+
* @returns Writer
|
|
22876
|
+
*/
|
|
22877
|
+
public static encode(message: ICollectionUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
22878
|
+
|
|
22879
|
+
/**
|
|
22880
|
+
* Encodes the specified CollectionUpdated message, length delimited. Does not implicitly {@link CollectionUpdated.verify|verify} messages.
|
|
22881
|
+
* @param message CollectionUpdated message or plain object to encode
|
|
22882
|
+
* @param [writer] Writer to encode to
|
|
22883
|
+
* @returns Writer
|
|
22884
|
+
*/
|
|
22885
|
+
public static encodeDelimited(message: ICollectionUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
22886
|
+
|
|
22887
|
+
/**
|
|
22888
|
+
* Decodes a CollectionUpdated message from the specified reader or buffer.
|
|
22889
|
+
* @param reader Reader or buffer to decode from
|
|
22890
|
+
* @param [length] Message length if known beforehand
|
|
22891
|
+
* @returns CollectionUpdated
|
|
22892
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
22893
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
22894
|
+
*/
|
|
22895
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): CollectionUpdated;
|
|
22896
|
+
|
|
22897
|
+
/**
|
|
22898
|
+
* Decodes a CollectionUpdated message from the specified reader or buffer, length delimited.
|
|
22899
|
+
* @param reader Reader or buffer to decode from
|
|
22900
|
+
* @returns CollectionUpdated
|
|
22901
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
22902
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
22903
|
+
*/
|
|
22904
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): CollectionUpdated;
|
|
22905
|
+
|
|
22906
|
+
/**
|
|
22907
|
+
* Verifies a CollectionUpdated message.
|
|
22908
|
+
* @param message Plain object to verify
|
|
22909
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
22910
|
+
*/
|
|
22911
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
22912
|
+
|
|
22913
|
+
/**
|
|
22914
|
+
* Creates a CollectionUpdated message from a plain object. Also converts values to their respective internal types.
|
|
22915
|
+
* @param object Plain object
|
|
22916
|
+
* @returns CollectionUpdated
|
|
22917
|
+
*/
|
|
22918
|
+
public static fromObject(object: { [k: string]: any }): CollectionUpdated;
|
|
22919
|
+
|
|
22920
|
+
/**
|
|
22921
|
+
* Creates a plain object from a CollectionUpdated message. Also converts values to other types if specified.
|
|
22922
|
+
* @param message CollectionUpdated
|
|
22923
|
+
* @param [options] Conversion options
|
|
22924
|
+
* @returns Plain object
|
|
22925
|
+
*/
|
|
22926
|
+
public static toObject(message: CollectionUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
22927
|
+
|
|
22928
|
+
/**
|
|
22929
|
+
* Converts this CollectionUpdated to JSON.
|
|
22930
|
+
* @returns JSON object
|
|
22931
|
+
*/
|
|
22932
|
+
public toJSON(): { [k: string]: any };
|
|
22933
|
+
}
|
|
22934
|
+
|
|
22935
|
+
/** Properties of a CollectionDeleted. */
|
|
22936
|
+
export interface ICollectionDeleted {
|
|
22937
|
+
|
|
22938
|
+
/** CollectionDeleted slug */
|
|
22939
|
+
slug?: (string|null);
|
|
22940
|
+
|
|
22941
|
+
/** CollectionDeleted contentType */
|
|
22942
|
+
contentType?: (string|null);
|
|
22943
|
+
|
|
22944
|
+
/** CollectionDeleted deletedAt */
|
|
22945
|
+
deletedAt?: (number|Long|null);
|
|
22946
|
+
}
|
|
22947
|
+
|
|
22948
|
+
/** Represents a CollectionDeleted. */
|
|
22949
|
+
export class CollectionDeleted implements ICollectionDeleted {
|
|
22950
|
+
|
|
22951
|
+
/**
|
|
22952
|
+
* Constructs a new CollectionDeleted.
|
|
22953
|
+
* @param [properties] Properties to set
|
|
22954
|
+
*/
|
|
22955
|
+
constructor(properties?: ICollectionDeleted);
|
|
22956
|
+
|
|
22957
|
+
/** CollectionDeleted slug. */
|
|
22958
|
+
public slug: string;
|
|
22959
|
+
|
|
22960
|
+
/** CollectionDeleted contentType. */
|
|
22961
|
+
public contentType: string;
|
|
22962
|
+
|
|
22963
|
+
/** CollectionDeleted deletedAt. */
|
|
22964
|
+
public deletedAt: (number|Long);
|
|
22965
|
+
|
|
22966
|
+
/**
|
|
22967
|
+
* Creates a new CollectionDeleted instance using the specified properties.
|
|
22968
|
+
* @param [properties] Properties to set
|
|
22969
|
+
* @returns CollectionDeleted instance
|
|
22970
|
+
*/
|
|
22971
|
+
public static create(properties?: ICollectionDeleted): CollectionDeleted;
|
|
22972
|
+
|
|
22973
|
+
/**
|
|
22974
|
+
* Encodes the specified CollectionDeleted message. Does not implicitly {@link CollectionDeleted.verify|verify} messages.
|
|
22975
|
+
* @param message CollectionDeleted message or plain object to encode
|
|
22976
|
+
* @param [writer] Writer to encode to
|
|
22977
|
+
* @returns Writer
|
|
22978
|
+
*/
|
|
22979
|
+
public static encode(message: ICollectionDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
22980
|
+
|
|
22981
|
+
/**
|
|
22982
|
+
* Encodes the specified CollectionDeleted message, length delimited. Does not implicitly {@link CollectionDeleted.verify|verify} messages.
|
|
22983
|
+
* @param message CollectionDeleted message or plain object to encode
|
|
22984
|
+
* @param [writer] Writer to encode to
|
|
22985
|
+
* @returns Writer
|
|
22986
|
+
*/
|
|
22987
|
+
public static encodeDelimited(message: ICollectionDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
22988
|
+
|
|
22989
|
+
/**
|
|
22990
|
+
* Decodes a CollectionDeleted message from the specified reader or buffer.
|
|
22991
|
+
* @param reader Reader or buffer to decode from
|
|
22992
|
+
* @param [length] Message length if known beforehand
|
|
22993
|
+
* @returns CollectionDeleted
|
|
22994
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
22995
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
22996
|
+
*/
|
|
22997
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): CollectionDeleted;
|
|
22998
|
+
|
|
22999
|
+
/**
|
|
23000
|
+
* Decodes a CollectionDeleted message from the specified reader or buffer, length delimited.
|
|
23001
|
+
* @param reader Reader or buffer to decode from
|
|
23002
|
+
* @returns CollectionDeleted
|
|
23003
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
23004
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
23005
|
+
*/
|
|
23006
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): CollectionDeleted;
|
|
23007
|
+
|
|
23008
|
+
/**
|
|
23009
|
+
* Verifies a CollectionDeleted message.
|
|
23010
|
+
* @param message Plain object to verify
|
|
23011
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
23012
|
+
*/
|
|
23013
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
23014
|
+
|
|
23015
|
+
/**
|
|
23016
|
+
* Creates a CollectionDeleted message from a plain object. Also converts values to their respective internal types.
|
|
23017
|
+
* @param object Plain object
|
|
23018
|
+
* @returns CollectionDeleted
|
|
23019
|
+
*/
|
|
23020
|
+
public static fromObject(object: { [k: string]: any }): CollectionDeleted;
|
|
23021
|
+
|
|
23022
|
+
/**
|
|
23023
|
+
* Creates a plain object from a CollectionDeleted message. Also converts values to other types if specified.
|
|
23024
|
+
* @param message CollectionDeleted
|
|
23025
|
+
* @param [options] Conversion options
|
|
23026
|
+
* @returns Plain object
|
|
23027
|
+
*/
|
|
23028
|
+
public static toObject(message: CollectionDeleted, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
23029
|
+
|
|
23030
|
+
/**
|
|
23031
|
+
* Converts this CollectionDeleted to JSON.
|
|
23032
|
+
* @returns JSON object
|
|
23033
|
+
*/
|
|
23034
|
+
public toJSON(): { [k: string]: any };
|
|
23035
|
+
}
|
|
23036
|
+
|
|
22707
23037
|
/** Properties of a ContentPlayed. */
|
|
22708
23038
|
export interface IContentPlayed {
|
|
22709
23039
|
|
package/lib/index.js
CHANGED
|
@@ -61732,6 +61732,902 @@ $root.ActivityDeleted = (function() {
|
|
|
61732
61732
|
return ActivityDeleted;
|
|
61733
61733
|
})();
|
|
61734
61734
|
|
|
61735
|
+
$root.CollectionCreated = (function() {
|
|
61736
|
+
|
|
61737
|
+
/**
|
|
61738
|
+
* Properties of a CollectionCreated.
|
|
61739
|
+
* @exports ICollectionCreated
|
|
61740
|
+
* @interface ICollectionCreated
|
|
61741
|
+
* @property {string|null} [slug] CollectionCreated slug
|
|
61742
|
+
* @property {string|null} [contentType] CollectionCreated contentType
|
|
61743
|
+
* @property {ContentCollectionType|null} [collectionType] CollectionCreated collectionType
|
|
61744
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessGroup] CollectionCreated accessGroup
|
|
61745
|
+
* @property {number|Long|null} [createdAt] CollectionCreated createdAt
|
|
61746
|
+
*/
|
|
61747
|
+
|
|
61748
|
+
/**
|
|
61749
|
+
* Constructs a new CollectionCreated.
|
|
61750
|
+
* @exports CollectionCreated
|
|
61751
|
+
* @classdesc Represents a CollectionCreated.
|
|
61752
|
+
* @implements ICollectionCreated
|
|
61753
|
+
* @constructor
|
|
61754
|
+
* @param {ICollectionCreated=} [properties] Properties to set
|
|
61755
|
+
*/
|
|
61756
|
+
function CollectionCreated(properties) {
|
|
61757
|
+
this.accessGroup = [];
|
|
61758
|
+
if (properties)
|
|
61759
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
61760
|
+
if (properties[keys[i]] != null)
|
|
61761
|
+
this[keys[i]] = properties[keys[i]];
|
|
61762
|
+
}
|
|
61763
|
+
|
|
61764
|
+
/**
|
|
61765
|
+
* CollectionCreated slug.
|
|
61766
|
+
* @member {string} slug
|
|
61767
|
+
* @memberof CollectionCreated
|
|
61768
|
+
* @instance
|
|
61769
|
+
*/
|
|
61770
|
+
CollectionCreated.prototype.slug = "";
|
|
61771
|
+
|
|
61772
|
+
/**
|
|
61773
|
+
* CollectionCreated contentType.
|
|
61774
|
+
* @member {string} contentType
|
|
61775
|
+
* @memberof CollectionCreated
|
|
61776
|
+
* @instance
|
|
61777
|
+
*/
|
|
61778
|
+
CollectionCreated.prototype.contentType = "";
|
|
61779
|
+
|
|
61780
|
+
/**
|
|
61781
|
+
* CollectionCreated collectionType.
|
|
61782
|
+
* @member {ContentCollectionType} collectionType
|
|
61783
|
+
* @memberof CollectionCreated
|
|
61784
|
+
* @instance
|
|
61785
|
+
*/
|
|
61786
|
+
CollectionCreated.prototype.collectionType = 0;
|
|
61787
|
+
|
|
61788
|
+
/**
|
|
61789
|
+
* CollectionCreated accessGroup.
|
|
61790
|
+
* @member {Array.<contentful.ISlugReference>} accessGroup
|
|
61791
|
+
* @memberof CollectionCreated
|
|
61792
|
+
* @instance
|
|
61793
|
+
*/
|
|
61794
|
+
CollectionCreated.prototype.accessGroup = $util.emptyArray;
|
|
61795
|
+
|
|
61796
|
+
/**
|
|
61797
|
+
* CollectionCreated createdAt.
|
|
61798
|
+
* @member {number|Long} createdAt
|
|
61799
|
+
* @memberof CollectionCreated
|
|
61800
|
+
* @instance
|
|
61801
|
+
*/
|
|
61802
|
+
CollectionCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
61803
|
+
|
|
61804
|
+
/**
|
|
61805
|
+
* Creates a new CollectionCreated instance using the specified properties.
|
|
61806
|
+
* @function create
|
|
61807
|
+
* @memberof CollectionCreated
|
|
61808
|
+
* @static
|
|
61809
|
+
* @param {ICollectionCreated=} [properties] Properties to set
|
|
61810
|
+
* @returns {CollectionCreated} CollectionCreated instance
|
|
61811
|
+
*/
|
|
61812
|
+
CollectionCreated.create = function create(properties) {
|
|
61813
|
+
return new CollectionCreated(properties);
|
|
61814
|
+
};
|
|
61815
|
+
|
|
61816
|
+
/**
|
|
61817
|
+
* Encodes the specified CollectionCreated message. Does not implicitly {@link CollectionCreated.verify|verify} messages.
|
|
61818
|
+
* @function encode
|
|
61819
|
+
* @memberof CollectionCreated
|
|
61820
|
+
* @static
|
|
61821
|
+
* @param {ICollectionCreated} message CollectionCreated message or plain object to encode
|
|
61822
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
61823
|
+
* @returns {$protobuf.Writer} Writer
|
|
61824
|
+
*/
|
|
61825
|
+
CollectionCreated.encode = function encode(message, writer) {
|
|
61826
|
+
if (!writer)
|
|
61827
|
+
writer = $Writer.create();
|
|
61828
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
61829
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
61830
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
61831
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.contentType);
|
|
61832
|
+
if (message.collectionType != null && message.hasOwnProperty("collectionType"))
|
|
61833
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.collectionType);
|
|
61834
|
+
if (message.accessGroup != null && message.accessGroup.length)
|
|
61835
|
+
for (var i = 0; i < message.accessGroup.length; ++i)
|
|
61836
|
+
$root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
61837
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
61838
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.createdAt);
|
|
61839
|
+
return writer;
|
|
61840
|
+
};
|
|
61841
|
+
|
|
61842
|
+
/**
|
|
61843
|
+
* Encodes the specified CollectionCreated message, length delimited. Does not implicitly {@link CollectionCreated.verify|verify} messages.
|
|
61844
|
+
* @function encodeDelimited
|
|
61845
|
+
* @memberof CollectionCreated
|
|
61846
|
+
* @static
|
|
61847
|
+
* @param {ICollectionCreated} message CollectionCreated message or plain object to encode
|
|
61848
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
61849
|
+
* @returns {$protobuf.Writer} Writer
|
|
61850
|
+
*/
|
|
61851
|
+
CollectionCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
61852
|
+
return this.encode(message, writer).ldelim();
|
|
61853
|
+
};
|
|
61854
|
+
|
|
61855
|
+
/**
|
|
61856
|
+
* Decodes a CollectionCreated message from the specified reader or buffer.
|
|
61857
|
+
* @function decode
|
|
61858
|
+
* @memberof CollectionCreated
|
|
61859
|
+
* @static
|
|
61860
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
61861
|
+
* @param {number} [length] Message length if known beforehand
|
|
61862
|
+
* @returns {CollectionCreated} CollectionCreated
|
|
61863
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
61864
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
61865
|
+
*/
|
|
61866
|
+
CollectionCreated.decode = function decode(reader, length) {
|
|
61867
|
+
if (!(reader instanceof $Reader))
|
|
61868
|
+
reader = $Reader.create(reader);
|
|
61869
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CollectionCreated();
|
|
61870
|
+
while (reader.pos < end) {
|
|
61871
|
+
var tag = reader.uint32();
|
|
61872
|
+
switch (tag >>> 3) {
|
|
61873
|
+
case 1:
|
|
61874
|
+
message.slug = reader.string();
|
|
61875
|
+
break;
|
|
61876
|
+
case 2:
|
|
61877
|
+
message.contentType = reader.string();
|
|
61878
|
+
break;
|
|
61879
|
+
case 3:
|
|
61880
|
+
message.collectionType = reader.int32();
|
|
61881
|
+
break;
|
|
61882
|
+
case 4:
|
|
61883
|
+
if (!(message.accessGroup && message.accessGroup.length))
|
|
61884
|
+
message.accessGroup = [];
|
|
61885
|
+
message.accessGroup.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
61886
|
+
break;
|
|
61887
|
+
case 5:
|
|
61888
|
+
message.createdAt = reader.uint64();
|
|
61889
|
+
break;
|
|
61890
|
+
default:
|
|
61891
|
+
reader.skipType(tag & 7);
|
|
61892
|
+
break;
|
|
61893
|
+
}
|
|
61894
|
+
}
|
|
61895
|
+
return message;
|
|
61896
|
+
};
|
|
61897
|
+
|
|
61898
|
+
/**
|
|
61899
|
+
* Decodes a CollectionCreated message from the specified reader or buffer, length delimited.
|
|
61900
|
+
* @function decodeDelimited
|
|
61901
|
+
* @memberof CollectionCreated
|
|
61902
|
+
* @static
|
|
61903
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
61904
|
+
* @returns {CollectionCreated} CollectionCreated
|
|
61905
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
61906
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
61907
|
+
*/
|
|
61908
|
+
CollectionCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
61909
|
+
if (!(reader instanceof $Reader))
|
|
61910
|
+
reader = new $Reader(reader);
|
|
61911
|
+
return this.decode(reader, reader.uint32());
|
|
61912
|
+
};
|
|
61913
|
+
|
|
61914
|
+
/**
|
|
61915
|
+
* Verifies a CollectionCreated message.
|
|
61916
|
+
* @function verify
|
|
61917
|
+
* @memberof CollectionCreated
|
|
61918
|
+
* @static
|
|
61919
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
61920
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
61921
|
+
*/
|
|
61922
|
+
CollectionCreated.verify = function verify(message) {
|
|
61923
|
+
if (typeof message !== "object" || message === null)
|
|
61924
|
+
return "object expected";
|
|
61925
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
61926
|
+
if (!$util.isString(message.slug))
|
|
61927
|
+
return "slug: string expected";
|
|
61928
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
61929
|
+
if (!$util.isString(message.contentType))
|
|
61930
|
+
return "contentType: string expected";
|
|
61931
|
+
if (message.collectionType != null && message.hasOwnProperty("collectionType"))
|
|
61932
|
+
switch (message.collectionType) {
|
|
61933
|
+
default:
|
|
61934
|
+
return "collectionType: enum value expected";
|
|
61935
|
+
case 0:
|
|
61936
|
+
case 1:
|
|
61937
|
+
break;
|
|
61938
|
+
}
|
|
61939
|
+
if (message.accessGroup != null && message.hasOwnProperty("accessGroup")) {
|
|
61940
|
+
if (!Array.isArray(message.accessGroup))
|
|
61941
|
+
return "accessGroup: array expected";
|
|
61942
|
+
for (var i = 0; i < message.accessGroup.length; ++i) {
|
|
61943
|
+
var error = $root.contentful.SlugReference.verify(message.accessGroup[i]);
|
|
61944
|
+
if (error)
|
|
61945
|
+
return "accessGroup." + error;
|
|
61946
|
+
}
|
|
61947
|
+
}
|
|
61948
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
61949
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
61950
|
+
return "createdAt: integer|Long expected";
|
|
61951
|
+
return null;
|
|
61952
|
+
};
|
|
61953
|
+
|
|
61954
|
+
/**
|
|
61955
|
+
* Creates a CollectionCreated message from a plain object. Also converts values to their respective internal types.
|
|
61956
|
+
* @function fromObject
|
|
61957
|
+
* @memberof CollectionCreated
|
|
61958
|
+
* @static
|
|
61959
|
+
* @param {Object.<string,*>} object Plain object
|
|
61960
|
+
* @returns {CollectionCreated} CollectionCreated
|
|
61961
|
+
*/
|
|
61962
|
+
CollectionCreated.fromObject = function fromObject(object) {
|
|
61963
|
+
if (object instanceof $root.CollectionCreated)
|
|
61964
|
+
return object;
|
|
61965
|
+
var message = new $root.CollectionCreated();
|
|
61966
|
+
if (object.slug != null)
|
|
61967
|
+
message.slug = String(object.slug);
|
|
61968
|
+
if (object.contentType != null)
|
|
61969
|
+
message.contentType = String(object.contentType);
|
|
61970
|
+
switch (object.collectionType) {
|
|
61971
|
+
case "CONTENT_COLLECTION_TYPE_UNRECOGNIZED":
|
|
61972
|
+
case 0:
|
|
61973
|
+
message.collectionType = 0;
|
|
61974
|
+
break;
|
|
61975
|
+
case "CONTENT_COLLECTION_TYPE_GENERIC":
|
|
61976
|
+
case 1:
|
|
61977
|
+
message.collectionType = 1;
|
|
61978
|
+
break;
|
|
61979
|
+
}
|
|
61980
|
+
if (object.accessGroup) {
|
|
61981
|
+
if (!Array.isArray(object.accessGroup))
|
|
61982
|
+
throw TypeError(".CollectionCreated.accessGroup: array expected");
|
|
61983
|
+
message.accessGroup = [];
|
|
61984
|
+
for (var i = 0; i < object.accessGroup.length; ++i) {
|
|
61985
|
+
if (typeof object.accessGroup[i] !== "object")
|
|
61986
|
+
throw TypeError(".CollectionCreated.accessGroup: object expected");
|
|
61987
|
+
message.accessGroup[i] = $root.contentful.SlugReference.fromObject(object.accessGroup[i]);
|
|
61988
|
+
}
|
|
61989
|
+
}
|
|
61990
|
+
if (object.createdAt != null)
|
|
61991
|
+
if ($util.Long)
|
|
61992
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
61993
|
+
else if (typeof object.createdAt === "string")
|
|
61994
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
61995
|
+
else if (typeof object.createdAt === "number")
|
|
61996
|
+
message.createdAt = object.createdAt;
|
|
61997
|
+
else if (typeof object.createdAt === "object")
|
|
61998
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
61999
|
+
return message;
|
|
62000
|
+
};
|
|
62001
|
+
|
|
62002
|
+
/**
|
|
62003
|
+
* Creates a plain object from a CollectionCreated message. Also converts values to other types if specified.
|
|
62004
|
+
* @function toObject
|
|
62005
|
+
* @memberof CollectionCreated
|
|
62006
|
+
* @static
|
|
62007
|
+
* @param {CollectionCreated} message CollectionCreated
|
|
62008
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
62009
|
+
* @returns {Object.<string,*>} Plain object
|
|
62010
|
+
*/
|
|
62011
|
+
CollectionCreated.toObject = function toObject(message, options) {
|
|
62012
|
+
if (!options)
|
|
62013
|
+
options = {};
|
|
62014
|
+
var object = {};
|
|
62015
|
+
if (options.arrays || options.defaults)
|
|
62016
|
+
object.accessGroup = [];
|
|
62017
|
+
if (options.defaults) {
|
|
62018
|
+
object.slug = "";
|
|
62019
|
+
object.contentType = "";
|
|
62020
|
+
object.collectionType = options.enums === String ? "CONTENT_COLLECTION_TYPE_UNRECOGNIZED" : 0;
|
|
62021
|
+
if ($util.Long) {
|
|
62022
|
+
var long = new $util.Long(0, 0, true);
|
|
62023
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
62024
|
+
} else
|
|
62025
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
62026
|
+
}
|
|
62027
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
62028
|
+
object.slug = message.slug;
|
|
62029
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
62030
|
+
object.contentType = message.contentType;
|
|
62031
|
+
if (message.collectionType != null && message.hasOwnProperty("collectionType"))
|
|
62032
|
+
object.collectionType = options.enums === String ? $root.ContentCollectionType[message.collectionType] : message.collectionType;
|
|
62033
|
+
if (message.accessGroup && message.accessGroup.length) {
|
|
62034
|
+
object.accessGroup = [];
|
|
62035
|
+
for (var j = 0; j < message.accessGroup.length; ++j)
|
|
62036
|
+
object.accessGroup[j] = $root.contentful.SlugReference.toObject(message.accessGroup[j], options);
|
|
62037
|
+
}
|
|
62038
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
62039
|
+
if (typeof message.createdAt === "number")
|
|
62040
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
62041
|
+
else
|
|
62042
|
+
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;
|
|
62043
|
+
return object;
|
|
62044
|
+
};
|
|
62045
|
+
|
|
62046
|
+
/**
|
|
62047
|
+
* Converts this CollectionCreated to JSON.
|
|
62048
|
+
* @function toJSON
|
|
62049
|
+
* @memberof CollectionCreated
|
|
62050
|
+
* @instance
|
|
62051
|
+
* @returns {Object.<string,*>} JSON object
|
|
62052
|
+
*/
|
|
62053
|
+
CollectionCreated.prototype.toJSON = function toJSON() {
|
|
62054
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
62055
|
+
};
|
|
62056
|
+
|
|
62057
|
+
return CollectionCreated;
|
|
62058
|
+
})();
|
|
62059
|
+
|
|
62060
|
+
$root.CollectionUpdated = (function() {
|
|
62061
|
+
|
|
62062
|
+
/**
|
|
62063
|
+
* Properties of a CollectionUpdated.
|
|
62064
|
+
* @exports ICollectionUpdated
|
|
62065
|
+
* @interface ICollectionUpdated
|
|
62066
|
+
* @property {string|null} [slug] CollectionUpdated slug
|
|
62067
|
+
* @property {string|null} [contentType] CollectionUpdated contentType
|
|
62068
|
+
* @property {ContentCollectionType|null} [collectionType] CollectionUpdated collectionType
|
|
62069
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessGroup] CollectionUpdated accessGroup
|
|
62070
|
+
* @property {number|Long|null} [updatedAt] CollectionUpdated updatedAt
|
|
62071
|
+
*/
|
|
62072
|
+
|
|
62073
|
+
/**
|
|
62074
|
+
* Constructs a new CollectionUpdated.
|
|
62075
|
+
* @exports CollectionUpdated
|
|
62076
|
+
* @classdesc Represents a CollectionUpdated.
|
|
62077
|
+
* @implements ICollectionUpdated
|
|
62078
|
+
* @constructor
|
|
62079
|
+
* @param {ICollectionUpdated=} [properties] Properties to set
|
|
62080
|
+
*/
|
|
62081
|
+
function CollectionUpdated(properties) {
|
|
62082
|
+
this.accessGroup = [];
|
|
62083
|
+
if (properties)
|
|
62084
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
62085
|
+
if (properties[keys[i]] != null)
|
|
62086
|
+
this[keys[i]] = properties[keys[i]];
|
|
62087
|
+
}
|
|
62088
|
+
|
|
62089
|
+
/**
|
|
62090
|
+
* CollectionUpdated slug.
|
|
62091
|
+
* @member {string} slug
|
|
62092
|
+
* @memberof CollectionUpdated
|
|
62093
|
+
* @instance
|
|
62094
|
+
*/
|
|
62095
|
+
CollectionUpdated.prototype.slug = "";
|
|
62096
|
+
|
|
62097
|
+
/**
|
|
62098
|
+
* CollectionUpdated contentType.
|
|
62099
|
+
* @member {string} contentType
|
|
62100
|
+
* @memberof CollectionUpdated
|
|
62101
|
+
* @instance
|
|
62102
|
+
*/
|
|
62103
|
+
CollectionUpdated.prototype.contentType = "";
|
|
62104
|
+
|
|
62105
|
+
/**
|
|
62106
|
+
* CollectionUpdated collectionType.
|
|
62107
|
+
* @member {ContentCollectionType} collectionType
|
|
62108
|
+
* @memberof CollectionUpdated
|
|
62109
|
+
* @instance
|
|
62110
|
+
*/
|
|
62111
|
+
CollectionUpdated.prototype.collectionType = 0;
|
|
62112
|
+
|
|
62113
|
+
/**
|
|
62114
|
+
* CollectionUpdated accessGroup.
|
|
62115
|
+
* @member {Array.<contentful.ISlugReference>} accessGroup
|
|
62116
|
+
* @memberof CollectionUpdated
|
|
62117
|
+
* @instance
|
|
62118
|
+
*/
|
|
62119
|
+
CollectionUpdated.prototype.accessGroup = $util.emptyArray;
|
|
62120
|
+
|
|
62121
|
+
/**
|
|
62122
|
+
* CollectionUpdated updatedAt.
|
|
62123
|
+
* @member {number|Long} updatedAt
|
|
62124
|
+
* @memberof CollectionUpdated
|
|
62125
|
+
* @instance
|
|
62126
|
+
*/
|
|
62127
|
+
CollectionUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
62128
|
+
|
|
62129
|
+
/**
|
|
62130
|
+
* Creates a new CollectionUpdated instance using the specified properties.
|
|
62131
|
+
* @function create
|
|
62132
|
+
* @memberof CollectionUpdated
|
|
62133
|
+
* @static
|
|
62134
|
+
* @param {ICollectionUpdated=} [properties] Properties to set
|
|
62135
|
+
* @returns {CollectionUpdated} CollectionUpdated instance
|
|
62136
|
+
*/
|
|
62137
|
+
CollectionUpdated.create = function create(properties) {
|
|
62138
|
+
return new CollectionUpdated(properties);
|
|
62139
|
+
};
|
|
62140
|
+
|
|
62141
|
+
/**
|
|
62142
|
+
* Encodes the specified CollectionUpdated message. Does not implicitly {@link CollectionUpdated.verify|verify} messages.
|
|
62143
|
+
* @function encode
|
|
62144
|
+
* @memberof CollectionUpdated
|
|
62145
|
+
* @static
|
|
62146
|
+
* @param {ICollectionUpdated} message CollectionUpdated message or plain object to encode
|
|
62147
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
62148
|
+
* @returns {$protobuf.Writer} Writer
|
|
62149
|
+
*/
|
|
62150
|
+
CollectionUpdated.encode = function encode(message, writer) {
|
|
62151
|
+
if (!writer)
|
|
62152
|
+
writer = $Writer.create();
|
|
62153
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
62154
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
62155
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
62156
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.contentType);
|
|
62157
|
+
if (message.collectionType != null && message.hasOwnProperty("collectionType"))
|
|
62158
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.collectionType);
|
|
62159
|
+
if (message.accessGroup != null && message.accessGroup.length)
|
|
62160
|
+
for (var i = 0; i < message.accessGroup.length; ++i)
|
|
62161
|
+
$root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
62162
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
62163
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.updatedAt);
|
|
62164
|
+
return writer;
|
|
62165
|
+
};
|
|
62166
|
+
|
|
62167
|
+
/**
|
|
62168
|
+
* Encodes the specified CollectionUpdated message, length delimited. Does not implicitly {@link CollectionUpdated.verify|verify} messages.
|
|
62169
|
+
* @function encodeDelimited
|
|
62170
|
+
* @memberof CollectionUpdated
|
|
62171
|
+
* @static
|
|
62172
|
+
* @param {ICollectionUpdated} message CollectionUpdated message or plain object to encode
|
|
62173
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
62174
|
+
* @returns {$protobuf.Writer} Writer
|
|
62175
|
+
*/
|
|
62176
|
+
CollectionUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
62177
|
+
return this.encode(message, writer).ldelim();
|
|
62178
|
+
};
|
|
62179
|
+
|
|
62180
|
+
/**
|
|
62181
|
+
* Decodes a CollectionUpdated message from the specified reader or buffer.
|
|
62182
|
+
* @function decode
|
|
62183
|
+
* @memberof CollectionUpdated
|
|
62184
|
+
* @static
|
|
62185
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
62186
|
+
* @param {number} [length] Message length if known beforehand
|
|
62187
|
+
* @returns {CollectionUpdated} CollectionUpdated
|
|
62188
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
62189
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
62190
|
+
*/
|
|
62191
|
+
CollectionUpdated.decode = function decode(reader, length) {
|
|
62192
|
+
if (!(reader instanceof $Reader))
|
|
62193
|
+
reader = $Reader.create(reader);
|
|
62194
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CollectionUpdated();
|
|
62195
|
+
while (reader.pos < end) {
|
|
62196
|
+
var tag = reader.uint32();
|
|
62197
|
+
switch (tag >>> 3) {
|
|
62198
|
+
case 1:
|
|
62199
|
+
message.slug = reader.string();
|
|
62200
|
+
break;
|
|
62201
|
+
case 2:
|
|
62202
|
+
message.contentType = reader.string();
|
|
62203
|
+
break;
|
|
62204
|
+
case 3:
|
|
62205
|
+
message.collectionType = reader.int32();
|
|
62206
|
+
break;
|
|
62207
|
+
case 4:
|
|
62208
|
+
if (!(message.accessGroup && message.accessGroup.length))
|
|
62209
|
+
message.accessGroup = [];
|
|
62210
|
+
message.accessGroup.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
62211
|
+
break;
|
|
62212
|
+
case 5:
|
|
62213
|
+
message.updatedAt = reader.uint64();
|
|
62214
|
+
break;
|
|
62215
|
+
default:
|
|
62216
|
+
reader.skipType(tag & 7);
|
|
62217
|
+
break;
|
|
62218
|
+
}
|
|
62219
|
+
}
|
|
62220
|
+
return message;
|
|
62221
|
+
};
|
|
62222
|
+
|
|
62223
|
+
/**
|
|
62224
|
+
* Decodes a CollectionUpdated message from the specified reader or buffer, length delimited.
|
|
62225
|
+
* @function decodeDelimited
|
|
62226
|
+
* @memberof CollectionUpdated
|
|
62227
|
+
* @static
|
|
62228
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
62229
|
+
* @returns {CollectionUpdated} CollectionUpdated
|
|
62230
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
62231
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
62232
|
+
*/
|
|
62233
|
+
CollectionUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
62234
|
+
if (!(reader instanceof $Reader))
|
|
62235
|
+
reader = new $Reader(reader);
|
|
62236
|
+
return this.decode(reader, reader.uint32());
|
|
62237
|
+
};
|
|
62238
|
+
|
|
62239
|
+
/**
|
|
62240
|
+
* Verifies a CollectionUpdated message.
|
|
62241
|
+
* @function verify
|
|
62242
|
+
* @memberof CollectionUpdated
|
|
62243
|
+
* @static
|
|
62244
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
62245
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
62246
|
+
*/
|
|
62247
|
+
CollectionUpdated.verify = function verify(message) {
|
|
62248
|
+
if (typeof message !== "object" || message === null)
|
|
62249
|
+
return "object expected";
|
|
62250
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
62251
|
+
if (!$util.isString(message.slug))
|
|
62252
|
+
return "slug: string expected";
|
|
62253
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
62254
|
+
if (!$util.isString(message.contentType))
|
|
62255
|
+
return "contentType: string expected";
|
|
62256
|
+
if (message.collectionType != null && message.hasOwnProperty("collectionType"))
|
|
62257
|
+
switch (message.collectionType) {
|
|
62258
|
+
default:
|
|
62259
|
+
return "collectionType: enum value expected";
|
|
62260
|
+
case 0:
|
|
62261
|
+
case 1:
|
|
62262
|
+
break;
|
|
62263
|
+
}
|
|
62264
|
+
if (message.accessGroup != null && message.hasOwnProperty("accessGroup")) {
|
|
62265
|
+
if (!Array.isArray(message.accessGroup))
|
|
62266
|
+
return "accessGroup: array expected";
|
|
62267
|
+
for (var i = 0; i < message.accessGroup.length; ++i) {
|
|
62268
|
+
var error = $root.contentful.SlugReference.verify(message.accessGroup[i]);
|
|
62269
|
+
if (error)
|
|
62270
|
+
return "accessGroup." + error;
|
|
62271
|
+
}
|
|
62272
|
+
}
|
|
62273
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
62274
|
+
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
62275
|
+
return "updatedAt: integer|Long expected";
|
|
62276
|
+
return null;
|
|
62277
|
+
};
|
|
62278
|
+
|
|
62279
|
+
/**
|
|
62280
|
+
* Creates a CollectionUpdated message from a plain object. Also converts values to their respective internal types.
|
|
62281
|
+
* @function fromObject
|
|
62282
|
+
* @memberof CollectionUpdated
|
|
62283
|
+
* @static
|
|
62284
|
+
* @param {Object.<string,*>} object Plain object
|
|
62285
|
+
* @returns {CollectionUpdated} CollectionUpdated
|
|
62286
|
+
*/
|
|
62287
|
+
CollectionUpdated.fromObject = function fromObject(object) {
|
|
62288
|
+
if (object instanceof $root.CollectionUpdated)
|
|
62289
|
+
return object;
|
|
62290
|
+
var message = new $root.CollectionUpdated();
|
|
62291
|
+
if (object.slug != null)
|
|
62292
|
+
message.slug = String(object.slug);
|
|
62293
|
+
if (object.contentType != null)
|
|
62294
|
+
message.contentType = String(object.contentType);
|
|
62295
|
+
switch (object.collectionType) {
|
|
62296
|
+
case "CONTENT_COLLECTION_TYPE_UNRECOGNIZED":
|
|
62297
|
+
case 0:
|
|
62298
|
+
message.collectionType = 0;
|
|
62299
|
+
break;
|
|
62300
|
+
case "CONTENT_COLLECTION_TYPE_GENERIC":
|
|
62301
|
+
case 1:
|
|
62302
|
+
message.collectionType = 1;
|
|
62303
|
+
break;
|
|
62304
|
+
}
|
|
62305
|
+
if (object.accessGroup) {
|
|
62306
|
+
if (!Array.isArray(object.accessGroup))
|
|
62307
|
+
throw TypeError(".CollectionUpdated.accessGroup: array expected");
|
|
62308
|
+
message.accessGroup = [];
|
|
62309
|
+
for (var i = 0; i < object.accessGroup.length; ++i) {
|
|
62310
|
+
if (typeof object.accessGroup[i] !== "object")
|
|
62311
|
+
throw TypeError(".CollectionUpdated.accessGroup: object expected");
|
|
62312
|
+
message.accessGroup[i] = $root.contentful.SlugReference.fromObject(object.accessGroup[i]);
|
|
62313
|
+
}
|
|
62314
|
+
}
|
|
62315
|
+
if (object.updatedAt != null)
|
|
62316
|
+
if ($util.Long)
|
|
62317
|
+
(message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
|
|
62318
|
+
else if (typeof object.updatedAt === "string")
|
|
62319
|
+
message.updatedAt = parseInt(object.updatedAt, 10);
|
|
62320
|
+
else if (typeof object.updatedAt === "number")
|
|
62321
|
+
message.updatedAt = object.updatedAt;
|
|
62322
|
+
else if (typeof object.updatedAt === "object")
|
|
62323
|
+
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
62324
|
+
return message;
|
|
62325
|
+
};
|
|
62326
|
+
|
|
62327
|
+
/**
|
|
62328
|
+
* Creates a plain object from a CollectionUpdated message. Also converts values to other types if specified.
|
|
62329
|
+
* @function toObject
|
|
62330
|
+
* @memberof CollectionUpdated
|
|
62331
|
+
* @static
|
|
62332
|
+
* @param {CollectionUpdated} message CollectionUpdated
|
|
62333
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
62334
|
+
* @returns {Object.<string,*>} Plain object
|
|
62335
|
+
*/
|
|
62336
|
+
CollectionUpdated.toObject = function toObject(message, options) {
|
|
62337
|
+
if (!options)
|
|
62338
|
+
options = {};
|
|
62339
|
+
var object = {};
|
|
62340
|
+
if (options.arrays || options.defaults)
|
|
62341
|
+
object.accessGroup = [];
|
|
62342
|
+
if (options.defaults) {
|
|
62343
|
+
object.slug = "";
|
|
62344
|
+
object.contentType = "";
|
|
62345
|
+
object.collectionType = options.enums === String ? "CONTENT_COLLECTION_TYPE_UNRECOGNIZED" : 0;
|
|
62346
|
+
if ($util.Long) {
|
|
62347
|
+
var long = new $util.Long(0, 0, true);
|
|
62348
|
+
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
62349
|
+
} else
|
|
62350
|
+
object.updatedAt = options.longs === String ? "0" : 0;
|
|
62351
|
+
}
|
|
62352
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
62353
|
+
object.slug = message.slug;
|
|
62354
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
62355
|
+
object.contentType = message.contentType;
|
|
62356
|
+
if (message.collectionType != null && message.hasOwnProperty("collectionType"))
|
|
62357
|
+
object.collectionType = options.enums === String ? $root.ContentCollectionType[message.collectionType] : message.collectionType;
|
|
62358
|
+
if (message.accessGroup && message.accessGroup.length) {
|
|
62359
|
+
object.accessGroup = [];
|
|
62360
|
+
for (var j = 0; j < message.accessGroup.length; ++j)
|
|
62361
|
+
object.accessGroup[j] = $root.contentful.SlugReference.toObject(message.accessGroup[j], options);
|
|
62362
|
+
}
|
|
62363
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
62364
|
+
if (typeof message.updatedAt === "number")
|
|
62365
|
+
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
62366
|
+
else
|
|
62367
|
+
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;
|
|
62368
|
+
return object;
|
|
62369
|
+
};
|
|
62370
|
+
|
|
62371
|
+
/**
|
|
62372
|
+
* Converts this CollectionUpdated to JSON.
|
|
62373
|
+
* @function toJSON
|
|
62374
|
+
* @memberof CollectionUpdated
|
|
62375
|
+
* @instance
|
|
62376
|
+
* @returns {Object.<string,*>} JSON object
|
|
62377
|
+
*/
|
|
62378
|
+
CollectionUpdated.prototype.toJSON = function toJSON() {
|
|
62379
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
62380
|
+
};
|
|
62381
|
+
|
|
62382
|
+
return CollectionUpdated;
|
|
62383
|
+
})();
|
|
62384
|
+
|
|
62385
|
+
$root.CollectionDeleted = (function() {
|
|
62386
|
+
|
|
62387
|
+
/**
|
|
62388
|
+
* Properties of a CollectionDeleted.
|
|
62389
|
+
* @exports ICollectionDeleted
|
|
62390
|
+
* @interface ICollectionDeleted
|
|
62391
|
+
* @property {string|null} [slug] CollectionDeleted slug
|
|
62392
|
+
* @property {string|null} [contentType] CollectionDeleted contentType
|
|
62393
|
+
* @property {number|Long|null} [deletedAt] CollectionDeleted deletedAt
|
|
62394
|
+
*/
|
|
62395
|
+
|
|
62396
|
+
/**
|
|
62397
|
+
* Constructs a new CollectionDeleted.
|
|
62398
|
+
* @exports CollectionDeleted
|
|
62399
|
+
* @classdesc Represents a CollectionDeleted.
|
|
62400
|
+
* @implements ICollectionDeleted
|
|
62401
|
+
* @constructor
|
|
62402
|
+
* @param {ICollectionDeleted=} [properties] Properties to set
|
|
62403
|
+
*/
|
|
62404
|
+
function CollectionDeleted(properties) {
|
|
62405
|
+
if (properties)
|
|
62406
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
62407
|
+
if (properties[keys[i]] != null)
|
|
62408
|
+
this[keys[i]] = properties[keys[i]];
|
|
62409
|
+
}
|
|
62410
|
+
|
|
62411
|
+
/**
|
|
62412
|
+
* CollectionDeleted slug.
|
|
62413
|
+
* @member {string} slug
|
|
62414
|
+
* @memberof CollectionDeleted
|
|
62415
|
+
* @instance
|
|
62416
|
+
*/
|
|
62417
|
+
CollectionDeleted.prototype.slug = "";
|
|
62418
|
+
|
|
62419
|
+
/**
|
|
62420
|
+
* CollectionDeleted contentType.
|
|
62421
|
+
* @member {string} contentType
|
|
62422
|
+
* @memberof CollectionDeleted
|
|
62423
|
+
* @instance
|
|
62424
|
+
*/
|
|
62425
|
+
CollectionDeleted.prototype.contentType = "";
|
|
62426
|
+
|
|
62427
|
+
/**
|
|
62428
|
+
* CollectionDeleted deletedAt.
|
|
62429
|
+
* @member {number|Long} deletedAt
|
|
62430
|
+
* @memberof CollectionDeleted
|
|
62431
|
+
* @instance
|
|
62432
|
+
*/
|
|
62433
|
+
CollectionDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
62434
|
+
|
|
62435
|
+
/**
|
|
62436
|
+
* Creates a new CollectionDeleted instance using the specified properties.
|
|
62437
|
+
* @function create
|
|
62438
|
+
* @memberof CollectionDeleted
|
|
62439
|
+
* @static
|
|
62440
|
+
* @param {ICollectionDeleted=} [properties] Properties to set
|
|
62441
|
+
* @returns {CollectionDeleted} CollectionDeleted instance
|
|
62442
|
+
*/
|
|
62443
|
+
CollectionDeleted.create = function create(properties) {
|
|
62444
|
+
return new CollectionDeleted(properties);
|
|
62445
|
+
};
|
|
62446
|
+
|
|
62447
|
+
/**
|
|
62448
|
+
* Encodes the specified CollectionDeleted message. Does not implicitly {@link CollectionDeleted.verify|verify} messages.
|
|
62449
|
+
* @function encode
|
|
62450
|
+
* @memberof CollectionDeleted
|
|
62451
|
+
* @static
|
|
62452
|
+
* @param {ICollectionDeleted} message CollectionDeleted message or plain object to encode
|
|
62453
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
62454
|
+
* @returns {$protobuf.Writer} Writer
|
|
62455
|
+
*/
|
|
62456
|
+
CollectionDeleted.encode = function encode(message, writer) {
|
|
62457
|
+
if (!writer)
|
|
62458
|
+
writer = $Writer.create();
|
|
62459
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
62460
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
62461
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
62462
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.contentType);
|
|
62463
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
62464
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.deletedAt);
|
|
62465
|
+
return writer;
|
|
62466
|
+
};
|
|
62467
|
+
|
|
62468
|
+
/**
|
|
62469
|
+
* Encodes the specified CollectionDeleted message, length delimited. Does not implicitly {@link CollectionDeleted.verify|verify} messages.
|
|
62470
|
+
* @function encodeDelimited
|
|
62471
|
+
* @memberof CollectionDeleted
|
|
62472
|
+
* @static
|
|
62473
|
+
* @param {ICollectionDeleted} message CollectionDeleted message or plain object to encode
|
|
62474
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
62475
|
+
* @returns {$protobuf.Writer} Writer
|
|
62476
|
+
*/
|
|
62477
|
+
CollectionDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
62478
|
+
return this.encode(message, writer).ldelim();
|
|
62479
|
+
};
|
|
62480
|
+
|
|
62481
|
+
/**
|
|
62482
|
+
* Decodes a CollectionDeleted message from the specified reader or buffer.
|
|
62483
|
+
* @function decode
|
|
62484
|
+
* @memberof CollectionDeleted
|
|
62485
|
+
* @static
|
|
62486
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
62487
|
+
* @param {number} [length] Message length if known beforehand
|
|
62488
|
+
* @returns {CollectionDeleted} CollectionDeleted
|
|
62489
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
62490
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
62491
|
+
*/
|
|
62492
|
+
CollectionDeleted.decode = function decode(reader, length) {
|
|
62493
|
+
if (!(reader instanceof $Reader))
|
|
62494
|
+
reader = $Reader.create(reader);
|
|
62495
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CollectionDeleted();
|
|
62496
|
+
while (reader.pos < end) {
|
|
62497
|
+
var tag = reader.uint32();
|
|
62498
|
+
switch (tag >>> 3) {
|
|
62499
|
+
case 1:
|
|
62500
|
+
message.slug = reader.string();
|
|
62501
|
+
break;
|
|
62502
|
+
case 2:
|
|
62503
|
+
message.contentType = reader.string();
|
|
62504
|
+
break;
|
|
62505
|
+
case 3:
|
|
62506
|
+
message.deletedAt = reader.uint64();
|
|
62507
|
+
break;
|
|
62508
|
+
default:
|
|
62509
|
+
reader.skipType(tag & 7);
|
|
62510
|
+
break;
|
|
62511
|
+
}
|
|
62512
|
+
}
|
|
62513
|
+
return message;
|
|
62514
|
+
};
|
|
62515
|
+
|
|
62516
|
+
/**
|
|
62517
|
+
* Decodes a CollectionDeleted message from the specified reader or buffer, length delimited.
|
|
62518
|
+
* @function decodeDelimited
|
|
62519
|
+
* @memberof CollectionDeleted
|
|
62520
|
+
* @static
|
|
62521
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
62522
|
+
* @returns {CollectionDeleted} CollectionDeleted
|
|
62523
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
62524
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
62525
|
+
*/
|
|
62526
|
+
CollectionDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
62527
|
+
if (!(reader instanceof $Reader))
|
|
62528
|
+
reader = new $Reader(reader);
|
|
62529
|
+
return this.decode(reader, reader.uint32());
|
|
62530
|
+
};
|
|
62531
|
+
|
|
62532
|
+
/**
|
|
62533
|
+
* Verifies a CollectionDeleted message.
|
|
62534
|
+
* @function verify
|
|
62535
|
+
* @memberof CollectionDeleted
|
|
62536
|
+
* @static
|
|
62537
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
62538
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
62539
|
+
*/
|
|
62540
|
+
CollectionDeleted.verify = function verify(message) {
|
|
62541
|
+
if (typeof message !== "object" || message === null)
|
|
62542
|
+
return "object expected";
|
|
62543
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
62544
|
+
if (!$util.isString(message.slug))
|
|
62545
|
+
return "slug: string expected";
|
|
62546
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
62547
|
+
if (!$util.isString(message.contentType))
|
|
62548
|
+
return "contentType: string expected";
|
|
62549
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
62550
|
+
if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
|
|
62551
|
+
return "deletedAt: integer|Long expected";
|
|
62552
|
+
return null;
|
|
62553
|
+
};
|
|
62554
|
+
|
|
62555
|
+
/**
|
|
62556
|
+
* Creates a CollectionDeleted message from a plain object. Also converts values to their respective internal types.
|
|
62557
|
+
* @function fromObject
|
|
62558
|
+
* @memberof CollectionDeleted
|
|
62559
|
+
* @static
|
|
62560
|
+
* @param {Object.<string,*>} object Plain object
|
|
62561
|
+
* @returns {CollectionDeleted} CollectionDeleted
|
|
62562
|
+
*/
|
|
62563
|
+
CollectionDeleted.fromObject = function fromObject(object) {
|
|
62564
|
+
if (object instanceof $root.CollectionDeleted)
|
|
62565
|
+
return object;
|
|
62566
|
+
var message = new $root.CollectionDeleted();
|
|
62567
|
+
if (object.slug != null)
|
|
62568
|
+
message.slug = String(object.slug);
|
|
62569
|
+
if (object.contentType != null)
|
|
62570
|
+
message.contentType = String(object.contentType);
|
|
62571
|
+
if (object.deletedAt != null)
|
|
62572
|
+
if ($util.Long)
|
|
62573
|
+
(message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
|
|
62574
|
+
else if (typeof object.deletedAt === "string")
|
|
62575
|
+
message.deletedAt = parseInt(object.deletedAt, 10);
|
|
62576
|
+
else if (typeof object.deletedAt === "number")
|
|
62577
|
+
message.deletedAt = object.deletedAt;
|
|
62578
|
+
else if (typeof object.deletedAt === "object")
|
|
62579
|
+
message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
|
|
62580
|
+
return message;
|
|
62581
|
+
};
|
|
62582
|
+
|
|
62583
|
+
/**
|
|
62584
|
+
* Creates a plain object from a CollectionDeleted message. Also converts values to other types if specified.
|
|
62585
|
+
* @function toObject
|
|
62586
|
+
* @memberof CollectionDeleted
|
|
62587
|
+
* @static
|
|
62588
|
+
* @param {CollectionDeleted} message CollectionDeleted
|
|
62589
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
62590
|
+
* @returns {Object.<string,*>} Plain object
|
|
62591
|
+
*/
|
|
62592
|
+
CollectionDeleted.toObject = function toObject(message, options) {
|
|
62593
|
+
if (!options)
|
|
62594
|
+
options = {};
|
|
62595
|
+
var object = {};
|
|
62596
|
+
if (options.defaults) {
|
|
62597
|
+
object.slug = "";
|
|
62598
|
+
object.contentType = "";
|
|
62599
|
+
if ($util.Long) {
|
|
62600
|
+
var long = new $util.Long(0, 0, true);
|
|
62601
|
+
object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
62602
|
+
} else
|
|
62603
|
+
object.deletedAt = options.longs === String ? "0" : 0;
|
|
62604
|
+
}
|
|
62605
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
62606
|
+
object.slug = message.slug;
|
|
62607
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
62608
|
+
object.contentType = message.contentType;
|
|
62609
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
62610
|
+
if (typeof message.deletedAt === "number")
|
|
62611
|
+
object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
|
|
62612
|
+
else
|
|
62613
|
+
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;
|
|
62614
|
+
return object;
|
|
62615
|
+
};
|
|
62616
|
+
|
|
62617
|
+
/**
|
|
62618
|
+
* Converts this CollectionDeleted to JSON.
|
|
62619
|
+
* @function toJSON
|
|
62620
|
+
* @memberof CollectionDeleted
|
|
62621
|
+
* @instance
|
|
62622
|
+
* @returns {Object.<string,*>} JSON object
|
|
62623
|
+
*/
|
|
62624
|
+
CollectionDeleted.prototype.toJSON = function toJSON() {
|
|
62625
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
62626
|
+
};
|
|
62627
|
+
|
|
62628
|
+
return CollectionDeleted;
|
|
62629
|
+
})();
|
|
62630
|
+
|
|
61735
62631
|
$root.ContentPlayed = (function() {
|
|
61736
62632
|
|
|
61737
62633
|
/**
|
package/package.json
CHANGED