@headspace/protos-events 1.172.0 → 1.174.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 +336 -0
- package/lib/index.js +892 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -4401,6 +4401,12 @@ export namespace userdomain {
|
|
|
4401
4401
|
|
|
4402
4402
|
/** User userType */
|
|
4403
4403
|
userType?: (userdomain.users.UserType|null);
|
|
4404
|
+
|
|
4405
|
+
/** User emailSha256 */
|
|
4406
|
+
emailSha256?: (string|null);
|
|
4407
|
+
|
|
4408
|
+
/** User emailNormalizedSha256 */
|
|
4409
|
+
emailNormalizedSha256?: (string|null);
|
|
4404
4410
|
}
|
|
4405
4411
|
|
|
4406
4412
|
/** Represents a User. */
|
|
@@ -4451,6 +4457,12 @@ export namespace userdomain {
|
|
|
4451
4457
|
/** User userType. */
|
|
4452
4458
|
public userType: userdomain.users.UserType;
|
|
4453
4459
|
|
|
4460
|
+
/** User emailSha256. */
|
|
4461
|
+
public emailSha256: string;
|
|
4462
|
+
|
|
4463
|
+
/** User emailNormalizedSha256. */
|
|
4464
|
+
public emailNormalizedSha256: string;
|
|
4465
|
+
|
|
4454
4466
|
/**
|
|
4455
4467
|
* Creates a new User instance using the specified properties.
|
|
4456
4468
|
* @param [properties] Properties to set
|
|
@@ -9888,6 +9900,330 @@ export class ContentfulFeaturedContentDeleted implements IContentfulFeaturedCont
|
|
|
9888
9900
|
public toJSON(): { [k: string]: any };
|
|
9889
9901
|
}
|
|
9890
9902
|
|
|
9903
|
+
/** Properties of a ContentfulAccessRuleCreated. */
|
|
9904
|
+
export interface IContentfulAccessRuleCreated {
|
|
9905
|
+
|
|
9906
|
+
/** ContentfulAccessRuleCreated name */
|
|
9907
|
+
name?: (string|null);
|
|
9908
|
+
|
|
9909
|
+
/** ContentfulAccessRuleCreated slug */
|
|
9910
|
+
slug?: (string|null);
|
|
9911
|
+
|
|
9912
|
+
/** ContentfulAccessRuleCreated accessGroup */
|
|
9913
|
+
accessGroup?: (contentful.ISlugReference[]|null);
|
|
9914
|
+
|
|
9915
|
+
/** ContentfulAccessRuleCreated isHidden */
|
|
9916
|
+
isHidden?: (boolean|null);
|
|
9917
|
+
|
|
9918
|
+
/** ContentfulAccessRuleCreated createdAt */
|
|
9919
|
+
createdAt?: (number|Long|null);
|
|
9920
|
+
}
|
|
9921
|
+
|
|
9922
|
+
/** Represents a ContentfulAccessRuleCreated. */
|
|
9923
|
+
export class ContentfulAccessRuleCreated implements IContentfulAccessRuleCreated {
|
|
9924
|
+
|
|
9925
|
+
/**
|
|
9926
|
+
* Constructs a new ContentfulAccessRuleCreated.
|
|
9927
|
+
* @param [properties] Properties to set
|
|
9928
|
+
*/
|
|
9929
|
+
constructor(properties?: IContentfulAccessRuleCreated);
|
|
9930
|
+
|
|
9931
|
+
/** ContentfulAccessRuleCreated name. */
|
|
9932
|
+
public name: string;
|
|
9933
|
+
|
|
9934
|
+
/** ContentfulAccessRuleCreated slug. */
|
|
9935
|
+
public slug: string;
|
|
9936
|
+
|
|
9937
|
+
/** ContentfulAccessRuleCreated accessGroup. */
|
|
9938
|
+
public accessGroup: contentful.ISlugReference[];
|
|
9939
|
+
|
|
9940
|
+
/** ContentfulAccessRuleCreated isHidden. */
|
|
9941
|
+
public isHidden: boolean;
|
|
9942
|
+
|
|
9943
|
+
/** ContentfulAccessRuleCreated createdAt. */
|
|
9944
|
+
public createdAt: (number|Long);
|
|
9945
|
+
|
|
9946
|
+
/**
|
|
9947
|
+
* Creates a new ContentfulAccessRuleCreated instance using the specified properties.
|
|
9948
|
+
* @param [properties] Properties to set
|
|
9949
|
+
* @returns ContentfulAccessRuleCreated instance
|
|
9950
|
+
*/
|
|
9951
|
+
public static create(properties?: IContentfulAccessRuleCreated): ContentfulAccessRuleCreated;
|
|
9952
|
+
|
|
9953
|
+
/**
|
|
9954
|
+
* Encodes the specified ContentfulAccessRuleCreated message. Does not implicitly {@link ContentfulAccessRuleCreated.verify|verify} messages.
|
|
9955
|
+
* @param message ContentfulAccessRuleCreated message or plain object to encode
|
|
9956
|
+
* @param [writer] Writer to encode to
|
|
9957
|
+
* @returns Writer
|
|
9958
|
+
*/
|
|
9959
|
+
public static encode(message: IContentfulAccessRuleCreated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
9960
|
+
|
|
9961
|
+
/**
|
|
9962
|
+
* Encodes the specified ContentfulAccessRuleCreated message, length delimited. Does not implicitly {@link ContentfulAccessRuleCreated.verify|verify} messages.
|
|
9963
|
+
* @param message ContentfulAccessRuleCreated message or plain object to encode
|
|
9964
|
+
* @param [writer] Writer to encode to
|
|
9965
|
+
* @returns Writer
|
|
9966
|
+
*/
|
|
9967
|
+
public static encodeDelimited(message: IContentfulAccessRuleCreated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
9968
|
+
|
|
9969
|
+
/**
|
|
9970
|
+
* Decodes a ContentfulAccessRuleCreated message from the specified reader or buffer.
|
|
9971
|
+
* @param reader Reader or buffer to decode from
|
|
9972
|
+
* @param [length] Message length if known beforehand
|
|
9973
|
+
* @returns ContentfulAccessRuleCreated
|
|
9974
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9975
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9976
|
+
*/
|
|
9977
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ContentfulAccessRuleCreated;
|
|
9978
|
+
|
|
9979
|
+
/**
|
|
9980
|
+
* Decodes a ContentfulAccessRuleCreated message from the specified reader or buffer, length delimited.
|
|
9981
|
+
* @param reader Reader or buffer to decode from
|
|
9982
|
+
* @returns ContentfulAccessRuleCreated
|
|
9983
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9984
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9985
|
+
*/
|
|
9986
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ContentfulAccessRuleCreated;
|
|
9987
|
+
|
|
9988
|
+
/**
|
|
9989
|
+
* Verifies a ContentfulAccessRuleCreated message.
|
|
9990
|
+
* @param message Plain object to verify
|
|
9991
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
9992
|
+
*/
|
|
9993
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
9994
|
+
|
|
9995
|
+
/**
|
|
9996
|
+
* Creates a ContentfulAccessRuleCreated message from a plain object. Also converts values to their respective internal types.
|
|
9997
|
+
* @param object Plain object
|
|
9998
|
+
* @returns ContentfulAccessRuleCreated
|
|
9999
|
+
*/
|
|
10000
|
+
public static fromObject(object: { [k: string]: any }): ContentfulAccessRuleCreated;
|
|
10001
|
+
|
|
10002
|
+
/**
|
|
10003
|
+
* Creates a plain object from a ContentfulAccessRuleCreated message. Also converts values to other types if specified.
|
|
10004
|
+
* @param message ContentfulAccessRuleCreated
|
|
10005
|
+
* @param [options] Conversion options
|
|
10006
|
+
* @returns Plain object
|
|
10007
|
+
*/
|
|
10008
|
+
public static toObject(message: ContentfulAccessRuleCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
10009
|
+
|
|
10010
|
+
/**
|
|
10011
|
+
* Converts this ContentfulAccessRuleCreated to JSON.
|
|
10012
|
+
* @returns JSON object
|
|
10013
|
+
*/
|
|
10014
|
+
public toJSON(): { [k: string]: any };
|
|
10015
|
+
}
|
|
10016
|
+
|
|
10017
|
+
/** Properties of a ContentfulAccessRuleUpdated. */
|
|
10018
|
+
export interface IContentfulAccessRuleUpdated {
|
|
10019
|
+
|
|
10020
|
+
/** ContentfulAccessRuleUpdated name */
|
|
10021
|
+
name?: (string|null);
|
|
10022
|
+
|
|
10023
|
+
/** ContentfulAccessRuleUpdated slug */
|
|
10024
|
+
slug?: (string|null);
|
|
10025
|
+
|
|
10026
|
+
/** ContentfulAccessRuleUpdated accessGroup */
|
|
10027
|
+
accessGroup?: (contentful.ISlugReference[]|null);
|
|
10028
|
+
|
|
10029
|
+
/** ContentfulAccessRuleUpdated isHidden */
|
|
10030
|
+
isHidden?: (boolean|null);
|
|
10031
|
+
|
|
10032
|
+
/** ContentfulAccessRuleUpdated updatedAt */
|
|
10033
|
+
updatedAt?: (number|Long|null);
|
|
10034
|
+
}
|
|
10035
|
+
|
|
10036
|
+
/** Represents a ContentfulAccessRuleUpdated. */
|
|
10037
|
+
export class ContentfulAccessRuleUpdated implements IContentfulAccessRuleUpdated {
|
|
10038
|
+
|
|
10039
|
+
/**
|
|
10040
|
+
* Constructs a new ContentfulAccessRuleUpdated.
|
|
10041
|
+
* @param [properties] Properties to set
|
|
10042
|
+
*/
|
|
10043
|
+
constructor(properties?: IContentfulAccessRuleUpdated);
|
|
10044
|
+
|
|
10045
|
+
/** ContentfulAccessRuleUpdated name. */
|
|
10046
|
+
public name: string;
|
|
10047
|
+
|
|
10048
|
+
/** ContentfulAccessRuleUpdated slug. */
|
|
10049
|
+
public slug: string;
|
|
10050
|
+
|
|
10051
|
+
/** ContentfulAccessRuleUpdated accessGroup. */
|
|
10052
|
+
public accessGroup: contentful.ISlugReference[];
|
|
10053
|
+
|
|
10054
|
+
/** ContentfulAccessRuleUpdated isHidden. */
|
|
10055
|
+
public isHidden: boolean;
|
|
10056
|
+
|
|
10057
|
+
/** ContentfulAccessRuleUpdated updatedAt. */
|
|
10058
|
+
public updatedAt: (number|Long);
|
|
10059
|
+
|
|
10060
|
+
/**
|
|
10061
|
+
* Creates a new ContentfulAccessRuleUpdated instance using the specified properties.
|
|
10062
|
+
* @param [properties] Properties to set
|
|
10063
|
+
* @returns ContentfulAccessRuleUpdated instance
|
|
10064
|
+
*/
|
|
10065
|
+
public static create(properties?: IContentfulAccessRuleUpdated): ContentfulAccessRuleUpdated;
|
|
10066
|
+
|
|
10067
|
+
/**
|
|
10068
|
+
* Encodes the specified ContentfulAccessRuleUpdated message. Does not implicitly {@link ContentfulAccessRuleUpdated.verify|verify} messages.
|
|
10069
|
+
* @param message ContentfulAccessRuleUpdated message or plain object to encode
|
|
10070
|
+
* @param [writer] Writer to encode to
|
|
10071
|
+
* @returns Writer
|
|
10072
|
+
*/
|
|
10073
|
+
public static encode(message: IContentfulAccessRuleUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
10074
|
+
|
|
10075
|
+
/**
|
|
10076
|
+
* Encodes the specified ContentfulAccessRuleUpdated message, length delimited. Does not implicitly {@link ContentfulAccessRuleUpdated.verify|verify} messages.
|
|
10077
|
+
* @param message ContentfulAccessRuleUpdated message or plain object to encode
|
|
10078
|
+
* @param [writer] Writer to encode to
|
|
10079
|
+
* @returns Writer
|
|
10080
|
+
*/
|
|
10081
|
+
public static encodeDelimited(message: IContentfulAccessRuleUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
10082
|
+
|
|
10083
|
+
/**
|
|
10084
|
+
* Decodes a ContentfulAccessRuleUpdated message from the specified reader or buffer.
|
|
10085
|
+
* @param reader Reader or buffer to decode from
|
|
10086
|
+
* @param [length] Message length if known beforehand
|
|
10087
|
+
* @returns ContentfulAccessRuleUpdated
|
|
10088
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10089
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10090
|
+
*/
|
|
10091
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ContentfulAccessRuleUpdated;
|
|
10092
|
+
|
|
10093
|
+
/**
|
|
10094
|
+
* Decodes a ContentfulAccessRuleUpdated message from the specified reader or buffer, length delimited.
|
|
10095
|
+
* @param reader Reader or buffer to decode from
|
|
10096
|
+
* @returns ContentfulAccessRuleUpdated
|
|
10097
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10098
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10099
|
+
*/
|
|
10100
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ContentfulAccessRuleUpdated;
|
|
10101
|
+
|
|
10102
|
+
/**
|
|
10103
|
+
* Verifies a ContentfulAccessRuleUpdated message.
|
|
10104
|
+
* @param message Plain object to verify
|
|
10105
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
10106
|
+
*/
|
|
10107
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
10108
|
+
|
|
10109
|
+
/**
|
|
10110
|
+
* Creates a ContentfulAccessRuleUpdated message from a plain object. Also converts values to their respective internal types.
|
|
10111
|
+
* @param object Plain object
|
|
10112
|
+
* @returns ContentfulAccessRuleUpdated
|
|
10113
|
+
*/
|
|
10114
|
+
public static fromObject(object: { [k: string]: any }): ContentfulAccessRuleUpdated;
|
|
10115
|
+
|
|
10116
|
+
/**
|
|
10117
|
+
* Creates a plain object from a ContentfulAccessRuleUpdated message. Also converts values to other types if specified.
|
|
10118
|
+
* @param message ContentfulAccessRuleUpdated
|
|
10119
|
+
* @param [options] Conversion options
|
|
10120
|
+
* @returns Plain object
|
|
10121
|
+
*/
|
|
10122
|
+
public static toObject(message: ContentfulAccessRuleUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
10123
|
+
|
|
10124
|
+
/**
|
|
10125
|
+
* Converts this ContentfulAccessRuleUpdated to JSON.
|
|
10126
|
+
* @returns JSON object
|
|
10127
|
+
*/
|
|
10128
|
+
public toJSON(): { [k: string]: any };
|
|
10129
|
+
}
|
|
10130
|
+
|
|
10131
|
+
/** Properties of a ContentfulAccessRuleDeleted. */
|
|
10132
|
+
export interface IContentfulAccessRuleDeleted {
|
|
10133
|
+
|
|
10134
|
+
/** ContentfulAccessRuleDeleted slug */
|
|
10135
|
+
slug?: (string|null);
|
|
10136
|
+
|
|
10137
|
+
/** ContentfulAccessRuleDeleted deletedAt */
|
|
10138
|
+
deletedAt?: (number|Long|null);
|
|
10139
|
+
}
|
|
10140
|
+
|
|
10141
|
+
/** Represents a ContentfulAccessRuleDeleted. */
|
|
10142
|
+
export class ContentfulAccessRuleDeleted implements IContentfulAccessRuleDeleted {
|
|
10143
|
+
|
|
10144
|
+
/**
|
|
10145
|
+
* Constructs a new ContentfulAccessRuleDeleted.
|
|
10146
|
+
* @param [properties] Properties to set
|
|
10147
|
+
*/
|
|
10148
|
+
constructor(properties?: IContentfulAccessRuleDeleted);
|
|
10149
|
+
|
|
10150
|
+
/** ContentfulAccessRuleDeleted slug. */
|
|
10151
|
+
public slug: string;
|
|
10152
|
+
|
|
10153
|
+
/** ContentfulAccessRuleDeleted deletedAt. */
|
|
10154
|
+
public deletedAt: (number|Long);
|
|
10155
|
+
|
|
10156
|
+
/**
|
|
10157
|
+
* Creates a new ContentfulAccessRuleDeleted instance using the specified properties.
|
|
10158
|
+
* @param [properties] Properties to set
|
|
10159
|
+
* @returns ContentfulAccessRuleDeleted instance
|
|
10160
|
+
*/
|
|
10161
|
+
public static create(properties?: IContentfulAccessRuleDeleted): ContentfulAccessRuleDeleted;
|
|
10162
|
+
|
|
10163
|
+
/**
|
|
10164
|
+
* Encodes the specified ContentfulAccessRuleDeleted message. Does not implicitly {@link ContentfulAccessRuleDeleted.verify|verify} messages.
|
|
10165
|
+
* @param message ContentfulAccessRuleDeleted message or plain object to encode
|
|
10166
|
+
* @param [writer] Writer to encode to
|
|
10167
|
+
* @returns Writer
|
|
10168
|
+
*/
|
|
10169
|
+
public static encode(message: IContentfulAccessRuleDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
10170
|
+
|
|
10171
|
+
/**
|
|
10172
|
+
* Encodes the specified ContentfulAccessRuleDeleted message, length delimited. Does not implicitly {@link ContentfulAccessRuleDeleted.verify|verify} messages.
|
|
10173
|
+
* @param message ContentfulAccessRuleDeleted message or plain object to encode
|
|
10174
|
+
* @param [writer] Writer to encode to
|
|
10175
|
+
* @returns Writer
|
|
10176
|
+
*/
|
|
10177
|
+
public static encodeDelimited(message: IContentfulAccessRuleDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
10178
|
+
|
|
10179
|
+
/**
|
|
10180
|
+
* Decodes a ContentfulAccessRuleDeleted message from the specified reader or buffer.
|
|
10181
|
+
* @param reader Reader or buffer to decode from
|
|
10182
|
+
* @param [length] Message length if known beforehand
|
|
10183
|
+
* @returns ContentfulAccessRuleDeleted
|
|
10184
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10185
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10186
|
+
*/
|
|
10187
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ContentfulAccessRuleDeleted;
|
|
10188
|
+
|
|
10189
|
+
/**
|
|
10190
|
+
* Decodes a ContentfulAccessRuleDeleted message from the specified reader or buffer, length delimited.
|
|
10191
|
+
* @param reader Reader or buffer to decode from
|
|
10192
|
+
* @returns ContentfulAccessRuleDeleted
|
|
10193
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10194
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10195
|
+
*/
|
|
10196
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ContentfulAccessRuleDeleted;
|
|
10197
|
+
|
|
10198
|
+
/**
|
|
10199
|
+
* Verifies a ContentfulAccessRuleDeleted message.
|
|
10200
|
+
* @param message Plain object to verify
|
|
10201
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
10202
|
+
*/
|
|
10203
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
10204
|
+
|
|
10205
|
+
/**
|
|
10206
|
+
* Creates a ContentfulAccessRuleDeleted message from a plain object. Also converts values to their respective internal types.
|
|
10207
|
+
* @param object Plain object
|
|
10208
|
+
* @returns ContentfulAccessRuleDeleted
|
|
10209
|
+
*/
|
|
10210
|
+
public static fromObject(object: { [k: string]: any }): ContentfulAccessRuleDeleted;
|
|
10211
|
+
|
|
10212
|
+
/**
|
|
10213
|
+
* Creates a plain object from a ContentfulAccessRuleDeleted message. Also converts values to other types if specified.
|
|
10214
|
+
* @param message ContentfulAccessRuleDeleted
|
|
10215
|
+
* @param [options] Conversion options
|
|
10216
|
+
* @returns Plain object
|
|
10217
|
+
*/
|
|
10218
|
+
public static toObject(message: ContentfulAccessRuleDeleted, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
10219
|
+
|
|
10220
|
+
/**
|
|
10221
|
+
* Converts this ContentfulAccessRuleDeleted to JSON.
|
|
10222
|
+
* @returns JSON object
|
|
10223
|
+
*/
|
|
10224
|
+
public toJSON(): { [k: string]: any };
|
|
10225
|
+
}
|
|
10226
|
+
|
|
9891
10227
|
/** Properties of a ContentfulContentModelCreated. */
|
|
9892
10228
|
export interface IContentfulContentModelCreated {
|
|
9893
10229
|
|
package/lib/index.js
CHANGED
|
@@ -10281,6 +10281,8 @@ $root.userdomain = (function() {
|
|
|
10281
10281
|
* @property {string|null} [spotifyId] User spotifyId
|
|
10282
10282
|
* @property {string|null} [oneloginId] User oneloginId
|
|
10283
10283
|
* @property {userdomain.users.UserType|null} [userType] User userType
|
|
10284
|
+
* @property {string|null} [emailSha256] User emailSha256
|
|
10285
|
+
* @property {string|null} [emailNormalizedSha256] User emailNormalizedSha256
|
|
10284
10286
|
*/
|
|
10285
10287
|
|
|
10286
10288
|
/**
|
|
@@ -10402,6 +10404,22 @@ $root.userdomain = (function() {
|
|
|
10402
10404
|
*/
|
|
10403
10405
|
User.prototype.userType = 0;
|
|
10404
10406
|
|
|
10407
|
+
/**
|
|
10408
|
+
* User emailSha256.
|
|
10409
|
+
* @member {string} emailSha256
|
|
10410
|
+
* @memberof userdomain.users.User
|
|
10411
|
+
* @instance
|
|
10412
|
+
*/
|
|
10413
|
+
User.prototype.emailSha256 = "";
|
|
10414
|
+
|
|
10415
|
+
/**
|
|
10416
|
+
* User emailNormalizedSha256.
|
|
10417
|
+
* @member {string} emailNormalizedSha256
|
|
10418
|
+
* @memberof userdomain.users.User
|
|
10419
|
+
* @instance
|
|
10420
|
+
*/
|
|
10421
|
+
User.prototype.emailNormalizedSha256 = "";
|
|
10422
|
+
|
|
10405
10423
|
/**
|
|
10406
10424
|
* Creates a new User instance using the specified properties.
|
|
10407
10425
|
* @function create
|
|
@@ -10452,6 +10470,10 @@ $root.userdomain = (function() {
|
|
|
10452
10470
|
writer.uint32(/* id 12, wireType 2 =*/98).string(message.oneloginId);
|
|
10453
10471
|
if (message.userType != null && message.hasOwnProperty("userType"))
|
|
10454
10472
|
writer.uint32(/* id 13, wireType 0 =*/104).int32(message.userType);
|
|
10473
|
+
if (message.emailSha256 != null && message.hasOwnProperty("emailSha256"))
|
|
10474
|
+
writer.uint32(/* id 14, wireType 2 =*/114).string(message.emailSha256);
|
|
10475
|
+
if (message.emailNormalizedSha256 != null && message.hasOwnProperty("emailNormalizedSha256"))
|
|
10476
|
+
writer.uint32(/* id 15, wireType 2 =*/122).string(message.emailNormalizedSha256);
|
|
10455
10477
|
return writer;
|
|
10456
10478
|
};
|
|
10457
10479
|
|
|
@@ -10525,6 +10547,12 @@ $root.userdomain = (function() {
|
|
|
10525
10547
|
case 13:
|
|
10526
10548
|
message.userType = reader.int32();
|
|
10527
10549
|
break;
|
|
10550
|
+
case 14:
|
|
10551
|
+
message.emailSha256 = reader.string();
|
|
10552
|
+
break;
|
|
10553
|
+
case 15:
|
|
10554
|
+
message.emailNormalizedSha256 = reader.string();
|
|
10555
|
+
break;
|
|
10528
10556
|
default:
|
|
10529
10557
|
reader.skipType(tag & 7);
|
|
10530
10558
|
break;
|
|
@@ -10617,6 +10645,12 @@ $root.userdomain = (function() {
|
|
|
10617
10645
|
case 4:
|
|
10618
10646
|
break;
|
|
10619
10647
|
}
|
|
10648
|
+
if (message.emailSha256 != null && message.hasOwnProperty("emailSha256"))
|
|
10649
|
+
if (!$util.isString(message.emailSha256))
|
|
10650
|
+
return "emailSha256: string expected";
|
|
10651
|
+
if (message.emailNormalizedSha256 != null && message.hasOwnProperty("emailNormalizedSha256"))
|
|
10652
|
+
if (!$util.isString(message.emailNormalizedSha256))
|
|
10653
|
+
return "emailNormalizedSha256: string expected";
|
|
10620
10654
|
return null;
|
|
10621
10655
|
};
|
|
10622
10656
|
|
|
@@ -10706,6 +10740,10 @@ $root.userdomain = (function() {
|
|
|
10706
10740
|
message.userType = 4;
|
|
10707
10741
|
break;
|
|
10708
10742
|
}
|
|
10743
|
+
if (object.emailSha256 != null)
|
|
10744
|
+
message.emailSha256 = String(object.emailSha256);
|
|
10745
|
+
if (object.emailNormalizedSha256 != null)
|
|
10746
|
+
message.emailNormalizedSha256 = String(object.emailNormalizedSha256);
|
|
10709
10747
|
return message;
|
|
10710
10748
|
};
|
|
10711
10749
|
|
|
@@ -10736,6 +10774,8 @@ $root.userdomain = (function() {
|
|
|
10736
10774
|
object.spotifyId = "";
|
|
10737
10775
|
object.oneloginId = "";
|
|
10738
10776
|
object.userType = options.enums === String ? "CORE_ADMIN" : 0;
|
|
10777
|
+
object.emailSha256 = "";
|
|
10778
|
+
object.emailNormalizedSha256 = "";
|
|
10739
10779
|
}
|
|
10740
10780
|
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
10741
10781
|
object.hsId = message.hsId;
|
|
@@ -10763,6 +10803,10 @@ $root.userdomain = (function() {
|
|
|
10763
10803
|
object.oneloginId = message.oneloginId;
|
|
10764
10804
|
if (message.userType != null && message.hasOwnProperty("userType"))
|
|
10765
10805
|
object.userType = options.enums === String ? $root.userdomain.users.UserType[message.userType] : message.userType;
|
|
10806
|
+
if (message.emailSha256 != null && message.hasOwnProperty("emailSha256"))
|
|
10807
|
+
object.emailSha256 = message.emailSha256;
|
|
10808
|
+
if (message.emailNormalizedSha256 != null && message.hasOwnProperty("emailNormalizedSha256"))
|
|
10809
|
+
object.emailNormalizedSha256 = message.emailNormalizedSha256;
|
|
10766
10810
|
return object;
|
|
10767
10811
|
};
|
|
10768
10812
|
|
|
@@ -27344,6 +27388,854 @@ $root.ContentfulFeaturedContentDeleted = (function() {
|
|
|
27344
27388
|
return ContentfulFeaturedContentDeleted;
|
|
27345
27389
|
})();
|
|
27346
27390
|
|
|
27391
|
+
$root.ContentfulAccessRuleCreated = (function() {
|
|
27392
|
+
|
|
27393
|
+
/**
|
|
27394
|
+
* Properties of a ContentfulAccessRuleCreated.
|
|
27395
|
+
* @exports IContentfulAccessRuleCreated
|
|
27396
|
+
* @interface IContentfulAccessRuleCreated
|
|
27397
|
+
* @property {string|null} [name] ContentfulAccessRuleCreated name
|
|
27398
|
+
* @property {string|null} [slug] ContentfulAccessRuleCreated slug
|
|
27399
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessGroup] ContentfulAccessRuleCreated accessGroup
|
|
27400
|
+
* @property {boolean|null} [isHidden] ContentfulAccessRuleCreated isHidden
|
|
27401
|
+
* @property {number|Long|null} [createdAt] ContentfulAccessRuleCreated createdAt
|
|
27402
|
+
*/
|
|
27403
|
+
|
|
27404
|
+
/**
|
|
27405
|
+
* Constructs a new ContentfulAccessRuleCreated.
|
|
27406
|
+
* @exports ContentfulAccessRuleCreated
|
|
27407
|
+
* @classdesc Represents a ContentfulAccessRuleCreated.
|
|
27408
|
+
* @implements IContentfulAccessRuleCreated
|
|
27409
|
+
* @constructor
|
|
27410
|
+
* @param {IContentfulAccessRuleCreated=} [properties] Properties to set
|
|
27411
|
+
*/
|
|
27412
|
+
function ContentfulAccessRuleCreated(properties) {
|
|
27413
|
+
this.accessGroup = [];
|
|
27414
|
+
if (properties)
|
|
27415
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
27416
|
+
if (properties[keys[i]] != null)
|
|
27417
|
+
this[keys[i]] = properties[keys[i]];
|
|
27418
|
+
}
|
|
27419
|
+
|
|
27420
|
+
/**
|
|
27421
|
+
* ContentfulAccessRuleCreated name.
|
|
27422
|
+
* @member {string} name
|
|
27423
|
+
* @memberof ContentfulAccessRuleCreated
|
|
27424
|
+
* @instance
|
|
27425
|
+
*/
|
|
27426
|
+
ContentfulAccessRuleCreated.prototype.name = "";
|
|
27427
|
+
|
|
27428
|
+
/**
|
|
27429
|
+
* ContentfulAccessRuleCreated slug.
|
|
27430
|
+
* @member {string} slug
|
|
27431
|
+
* @memberof ContentfulAccessRuleCreated
|
|
27432
|
+
* @instance
|
|
27433
|
+
*/
|
|
27434
|
+
ContentfulAccessRuleCreated.prototype.slug = "";
|
|
27435
|
+
|
|
27436
|
+
/**
|
|
27437
|
+
* ContentfulAccessRuleCreated accessGroup.
|
|
27438
|
+
* @member {Array.<contentful.ISlugReference>} accessGroup
|
|
27439
|
+
* @memberof ContentfulAccessRuleCreated
|
|
27440
|
+
* @instance
|
|
27441
|
+
*/
|
|
27442
|
+
ContentfulAccessRuleCreated.prototype.accessGroup = $util.emptyArray;
|
|
27443
|
+
|
|
27444
|
+
/**
|
|
27445
|
+
* ContentfulAccessRuleCreated isHidden.
|
|
27446
|
+
* @member {boolean} isHidden
|
|
27447
|
+
* @memberof ContentfulAccessRuleCreated
|
|
27448
|
+
* @instance
|
|
27449
|
+
*/
|
|
27450
|
+
ContentfulAccessRuleCreated.prototype.isHidden = false;
|
|
27451
|
+
|
|
27452
|
+
/**
|
|
27453
|
+
* ContentfulAccessRuleCreated createdAt.
|
|
27454
|
+
* @member {number|Long} createdAt
|
|
27455
|
+
* @memberof ContentfulAccessRuleCreated
|
|
27456
|
+
* @instance
|
|
27457
|
+
*/
|
|
27458
|
+
ContentfulAccessRuleCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
27459
|
+
|
|
27460
|
+
/**
|
|
27461
|
+
* Creates a new ContentfulAccessRuleCreated instance using the specified properties.
|
|
27462
|
+
* @function create
|
|
27463
|
+
* @memberof ContentfulAccessRuleCreated
|
|
27464
|
+
* @static
|
|
27465
|
+
* @param {IContentfulAccessRuleCreated=} [properties] Properties to set
|
|
27466
|
+
* @returns {ContentfulAccessRuleCreated} ContentfulAccessRuleCreated instance
|
|
27467
|
+
*/
|
|
27468
|
+
ContentfulAccessRuleCreated.create = function create(properties) {
|
|
27469
|
+
return new ContentfulAccessRuleCreated(properties);
|
|
27470
|
+
};
|
|
27471
|
+
|
|
27472
|
+
/**
|
|
27473
|
+
* Encodes the specified ContentfulAccessRuleCreated message. Does not implicitly {@link ContentfulAccessRuleCreated.verify|verify} messages.
|
|
27474
|
+
* @function encode
|
|
27475
|
+
* @memberof ContentfulAccessRuleCreated
|
|
27476
|
+
* @static
|
|
27477
|
+
* @param {IContentfulAccessRuleCreated} message ContentfulAccessRuleCreated message or plain object to encode
|
|
27478
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
27479
|
+
* @returns {$protobuf.Writer} Writer
|
|
27480
|
+
*/
|
|
27481
|
+
ContentfulAccessRuleCreated.encode = function encode(message, writer) {
|
|
27482
|
+
if (!writer)
|
|
27483
|
+
writer = $Writer.create();
|
|
27484
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
27485
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
27486
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
27487
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
|
|
27488
|
+
if (message.accessGroup != null && message.accessGroup.length)
|
|
27489
|
+
for (var i = 0; i < message.accessGroup.length; ++i)
|
|
27490
|
+
$root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
27491
|
+
if (message.isHidden != null && message.hasOwnProperty("isHidden"))
|
|
27492
|
+
writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isHidden);
|
|
27493
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
27494
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.createdAt);
|
|
27495
|
+
return writer;
|
|
27496
|
+
};
|
|
27497
|
+
|
|
27498
|
+
/**
|
|
27499
|
+
* Encodes the specified ContentfulAccessRuleCreated message, length delimited. Does not implicitly {@link ContentfulAccessRuleCreated.verify|verify} messages.
|
|
27500
|
+
* @function encodeDelimited
|
|
27501
|
+
* @memberof ContentfulAccessRuleCreated
|
|
27502
|
+
* @static
|
|
27503
|
+
* @param {IContentfulAccessRuleCreated} message ContentfulAccessRuleCreated message or plain object to encode
|
|
27504
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
27505
|
+
* @returns {$protobuf.Writer} Writer
|
|
27506
|
+
*/
|
|
27507
|
+
ContentfulAccessRuleCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
27508
|
+
return this.encode(message, writer).ldelim();
|
|
27509
|
+
};
|
|
27510
|
+
|
|
27511
|
+
/**
|
|
27512
|
+
* Decodes a ContentfulAccessRuleCreated message from the specified reader or buffer.
|
|
27513
|
+
* @function decode
|
|
27514
|
+
* @memberof ContentfulAccessRuleCreated
|
|
27515
|
+
* @static
|
|
27516
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
27517
|
+
* @param {number} [length] Message length if known beforehand
|
|
27518
|
+
* @returns {ContentfulAccessRuleCreated} ContentfulAccessRuleCreated
|
|
27519
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
27520
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
27521
|
+
*/
|
|
27522
|
+
ContentfulAccessRuleCreated.decode = function decode(reader, length) {
|
|
27523
|
+
if (!(reader instanceof $Reader))
|
|
27524
|
+
reader = $Reader.create(reader);
|
|
27525
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulAccessRuleCreated();
|
|
27526
|
+
while (reader.pos < end) {
|
|
27527
|
+
var tag = reader.uint32();
|
|
27528
|
+
switch (tag >>> 3) {
|
|
27529
|
+
case 1:
|
|
27530
|
+
message.name = reader.string();
|
|
27531
|
+
break;
|
|
27532
|
+
case 2:
|
|
27533
|
+
message.slug = reader.string();
|
|
27534
|
+
break;
|
|
27535
|
+
case 3:
|
|
27536
|
+
if (!(message.accessGroup && message.accessGroup.length))
|
|
27537
|
+
message.accessGroup = [];
|
|
27538
|
+
message.accessGroup.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
27539
|
+
break;
|
|
27540
|
+
case 4:
|
|
27541
|
+
message.isHidden = reader.bool();
|
|
27542
|
+
break;
|
|
27543
|
+
case 5:
|
|
27544
|
+
message.createdAt = reader.uint64();
|
|
27545
|
+
break;
|
|
27546
|
+
default:
|
|
27547
|
+
reader.skipType(tag & 7);
|
|
27548
|
+
break;
|
|
27549
|
+
}
|
|
27550
|
+
}
|
|
27551
|
+
return message;
|
|
27552
|
+
};
|
|
27553
|
+
|
|
27554
|
+
/**
|
|
27555
|
+
* Decodes a ContentfulAccessRuleCreated message from the specified reader or buffer, length delimited.
|
|
27556
|
+
* @function decodeDelimited
|
|
27557
|
+
* @memberof ContentfulAccessRuleCreated
|
|
27558
|
+
* @static
|
|
27559
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
27560
|
+
* @returns {ContentfulAccessRuleCreated} ContentfulAccessRuleCreated
|
|
27561
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
27562
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
27563
|
+
*/
|
|
27564
|
+
ContentfulAccessRuleCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
27565
|
+
if (!(reader instanceof $Reader))
|
|
27566
|
+
reader = new $Reader(reader);
|
|
27567
|
+
return this.decode(reader, reader.uint32());
|
|
27568
|
+
};
|
|
27569
|
+
|
|
27570
|
+
/**
|
|
27571
|
+
* Verifies a ContentfulAccessRuleCreated message.
|
|
27572
|
+
* @function verify
|
|
27573
|
+
* @memberof ContentfulAccessRuleCreated
|
|
27574
|
+
* @static
|
|
27575
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
27576
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
27577
|
+
*/
|
|
27578
|
+
ContentfulAccessRuleCreated.verify = function verify(message) {
|
|
27579
|
+
if (typeof message !== "object" || message === null)
|
|
27580
|
+
return "object expected";
|
|
27581
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
27582
|
+
if (!$util.isString(message.name))
|
|
27583
|
+
return "name: string expected";
|
|
27584
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
27585
|
+
if (!$util.isString(message.slug))
|
|
27586
|
+
return "slug: string expected";
|
|
27587
|
+
if (message.accessGroup != null && message.hasOwnProperty("accessGroup")) {
|
|
27588
|
+
if (!Array.isArray(message.accessGroup))
|
|
27589
|
+
return "accessGroup: array expected";
|
|
27590
|
+
for (var i = 0; i < message.accessGroup.length; ++i) {
|
|
27591
|
+
var error = $root.contentful.SlugReference.verify(message.accessGroup[i]);
|
|
27592
|
+
if (error)
|
|
27593
|
+
return "accessGroup." + error;
|
|
27594
|
+
}
|
|
27595
|
+
}
|
|
27596
|
+
if (message.isHidden != null && message.hasOwnProperty("isHidden"))
|
|
27597
|
+
if (typeof message.isHidden !== "boolean")
|
|
27598
|
+
return "isHidden: boolean expected";
|
|
27599
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
27600
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
27601
|
+
return "createdAt: integer|Long expected";
|
|
27602
|
+
return null;
|
|
27603
|
+
};
|
|
27604
|
+
|
|
27605
|
+
/**
|
|
27606
|
+
* Creates a ContentfulAccessRuleCreated message from a plain object. Also converts values to their respective internal types.
|
|
27607
|
+
* @function fromObject
|
|
27608
|
+
* @memberof ContentfulAccessRuleCreated
|
|
27609
|
+
* @static
|
|
27610
|
+
* @param {Object.<string,*>} object Plain object
|
|
27611
|
+
* @returns {ContentfulAccessRuleCreated} ContentfulAccessRuleCreated
|
|
27612
|
+
*/
|
|
27613
|
+
ContentfulAccessRuleCreated.fromObject = function fromObject(object) {
|
|
27614
|
+
if (object instanceof $root.ContentfulAccessRuleCreated)
|
|
27615
|
+
return object;
|
|
27616
|
+
var message = new $root.ContentfulAccessRuleCreated();
|
|
27617
|
+
if (object.name != null)
|
|
27618
|
+
message.name = String(object.name);
|
|
27619
|
+
if (object.slug != null)
|
|
27620
|
+
message.slug = String(object.slug);
|
|
27621
|
+
if (object.accessGroup) {
|
|
27622
|
+
if (!Array.isArray(object.accessGroup))
|
|
27623
|
+
throw TypeError(".ContentfulAccessRuleCreated.accessGroup: array expected");
|
|
27624
|
+
message.accessGroup = [];
|
|
27625
|
+
for (var i = 0; i < object.accessGroup.length; ++i) {
|
|
27626
|
+
if (typeof object.accessGroup[i] !== "object")
|
|
27627
|
+
throw TypeError(".ContentfulAccessRuleCreated.accessGroup: object expected");
|
|
27628
|
+
message.accessGroup[i] = $root.contentful.SlugReference.fromObject(object.accessGroup[i]);
|
|
27629
|
+
}
|
|
27630
|
+
}
|
|
27631
|
+
if (object.isHidden != null)
|
|
27632
|
+
message.isHidden = Boolean(object.isHidden);
|
|
27633
|
+
if (object.createdAt != null)
|
|
27634
|
+
if ($util.Long)
|
|
27635
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
27636
|
+
else if (typeof object.createdAt === "string")
|
|
27637
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
27638
|
+
else if (typeof object.createdAt === "number")
|
|
27639
|
+
message.createdAt = object.createdAt;
|
|
27640
|
+
else if (typeof object.createdAt === "object")
|
|
27641
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
27642
|
+
return message;
|
|
27643
|
+
};
|
|
27644
|
+
|
|
27645
|
+
/**
|
|
27646
|
+
* Creates a plain object from a ContentfulAccessRuleCreated message. Also converts values to other types if specified.
|
|
27647
|
+
* @function toObject
|
|
27648
|
+
* @memberof ContentfulAccessRuleCreated
|
|
27649
|
+
* @static
|
|
27650
|
+
* @param {ContentfulAccessRuleCreated} message ContentfulAccessRuleCreated
|
|
27651
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
27652
|
+
* @returns {Object.<string,*>} Plain object
|
|
27653
|
+
*/
|
|
27654
|
+
ContentfulAccessRuleCreated.toObject = function toObject(message, options) {
|
|
27655
|
+
if (!options)
|
|
27656
|
+
options = {};
|
|
27657
|
+
var object = {};
|
|
27658
|
+
if (options.arrays || options.defaults)
|
|
27659
|
+
object.accessGroup = [];
|
|
27660
|
+
if (options.defaults) {
|
|
27661
|
+
object.name = "";
|
|
27662
|
+
object.slug = "";
|
|
27663
|
+
object.isHidden = false;
|
|
27664
|
+
if ($util.Long) {
|
|
27665
|
+
var long = new $util.Long(0, 0, true);
|
|
27666
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
27667
|
+
} else
|
|
27668
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
27669
|
+
}
|
|
27670
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
27671
|
+
object.name = message.name;
|
|
27672
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
27673
|
+
object.slug = message.slug;
|
|
27674
|
+
if (message.accessGroup && message.accessGroup.length) {
|
|
27675
|
+
object.accessGroup = [];
|
|
27676
|
+
for (var j = 0; j < message.accessGroup.length; ++j)
|
|
27677
|
+
object.accessGroup[j] = $root.contentful.SlugReference.toObject(message.accessGroup[j], options);
|
|
27678
|
+
}
|
|
27679
|
+
if (message.isHidden != null && message.hasOwnProperty("isHidden"))
|
|
27680
|
+
object.isHidden = message.isHidden;
|
|
27681
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
27682
|
+
if (typeof message.createdAt === "number")
|
|
27683
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
27684
|
+
else
|
|
27685
|
+
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;
|
|
27686
|
+
return object;
|
|
27687
|
+
};
|
|
27688
|
+
|
|
27689
|
+
/**
|
|
27690
|
+
* Converts this ContentfulAccessRuleCreated to JSON.
|
|
27691
|
+
* @function toJSON
|
|
27692
|
+
* @memberof ContentfulAccessRuleCreated
|
|
27693
|
+
* @instance
|
|
27694
|
+
* @returns {Object.<string,*>} JSON object
|
|
27695
|
+
*/
|
|
27696
|
+
ContentfulAccessRuleCreated.prototype.toJSON = function toJSON() {
|
|
27697
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
27698
|
+
};
|
|
27699
|
+
|
|
27700
|
+
return ContentfulAccessRuleCreated;
|
|
27701
|
+
})();
|
|
27702
|
+
|
|
27703
|
+
$root.ContentfulAccessRuleUpdated = (function() {
|
|
27704
|
+
|
|
27705
|
+
/**
|
|
27706
|
+
* Properties of a ContentfulAccessRuleUpdated.
|
|
27707
|
+
* @exports IContentfulAccessRuleUpdated
|
|
27708
|
+
* @interface IContentfulAccessRuleUpdated
|
|
27709
|
+
* @property {string|null} [name] ContentfulAccessRuleUpdated name
|
|
27710
|
+
* @property {string|null} [slug] ContentfulAccessRuleUpdated slug
|
|
27711
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessGroup] ContentfulAccessRuleUpdated accessGroup
|
|
27712
|
+
* @property {boolean|null} [isHidden] ContentfulAccessRuleUpdated isHidden
|
|
27713
|
+
* @property {number|Long|null} [updatedAt] ContentfulAccessRuleUpdated updatedAt
|
|
27714
|
+
*/
|
|
27715
|
+
|
|
27716
|
+
/**
|
|
27717
|
+
* Constructs a new ContentfulAccessRuleUpdated.
|
|
27718
|
+
* @exports ContentfulAccessRuleUpdated
|
|
27719
|
+
* @classdesc Represents a ContentfulAccessRuleUpdated.
|
|
27720
|
+
* @implements IContentfulAccessRuleUpdated
|
|
27721
|
+
* @constructor
|
|
27722
|
+
* @param {IContentfulAccessRuleUpdated=} [properties] Properties to set
|
|
27723
|
+
*/
|
|
27724
|
+
function ContentfulAccessRuleUpdated(properties) {
|
|
27725
|
+
this.accessGroup = [];
|
|
27726
|
+
if (properties)
|
|
27727
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
27728
|
+
if (properties[keys[i]] != null)
|
|
27729
|
+
this[keys[i]] = properties[keys[i]];
|
|
27730
|
+
}
|
|
27731
|
+
|
|
27732
|
+
/**
|
|
27733
|
+
* ContentfulAccessRuleUpdated name.
|
|
27734
|
+
* @member {string} name
|
|
27735
|
+
* @memberof ContentfulAccessRuleUpdated
|
|
27736
|
+
* @instance
|
|
27737
|
+
*/
|
|
27738
|
+
ContentfulAccessRuleUpdated.prototype.name = "";
|
|
27739
|
+
|
|
27740
|
+
/**
|
|
27741
|
+
* ContentfulAccessRuleUpdated slug.
|
|
27742
|
+
* @member {string} slug
|
|
27743
|
+
* @memberof ContentfulAccessRuleUpdated
|
|
27744
|
+
* @instance
|
|
27745
|
+
*/
|
|
27746
|
+
ContentfulAccessRuleUpdated.prototype.slug = "";
|
|
27747
|
+
|
|
27748
|
+
/**
|
|
27749
|
+
* ContentfulAccessRuleUpdated accessGroup.
|
|
27750
|
+
* @member {Array.<contentful.ISlugReference>} accessGroup
|
|
27751
|
+
* @memberof ContentfulAccessRuleUpdated
|
|
27752
|
+
* @instance
|
|
27753
|
+
*/
|
|
27754
|
+
ContentfulAccessRuleUpdated.prototype.accessGroup = $util.emptyArray;
|
|
27755
|
+
|
|
27756
|
+
/**
|
|
27757
|
+
* ContentfulAccessRuleUpdated isHidden.
|
|
27758
|
+
* @member {boolean} isHidden
|
|
27759
|
+
* @memberof ContentfulAccessRuleUpdated
|
|
27760
|
+
* @instance
|
|
27761
|
+
*/
|
|
27762
|
+
ContentfulAccessRuleUpdated.prototype.isHidden = false;
|
|
27763
|
+
|
|
27764
|
+
/**
|
|
27765
|
+
* ContentfulAccessRuleUpdated updatedAt.
|
|
27766
|
+
* @member {number|Long} updatedAt
|
|
27767
|
+
* @memberof ContentfulAccessRuleUpdated
|
|
27768
|
+
* @instance
|
|
27769
|
+
*/
|
|
27770
|
+
ContentfulAccessRuleUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
27771
|
+
|
|
27772
|
+
/**
|
|
27773
|
+
* Creates a new ContentfulAccessRuleUpdated instance using the specified properties.
|
|
27774
|
+
* @function create
|
|
27775
|
+
* @memberof ContentfulAccessRuleUpdated
|
|
27776
|
+
* @static
|
|
27777
|
+
* @param {IContentfulAccessRuleUpdated=} [properties] Properties to set
|
|
27778
|
+
* @returns {ContentfulAccessRuleUpdated} ContentfulAccessRuleUpdated instance
|
|
27779
|
+
*/
|
|
27780
|
+
ContentfulAccessRuleUpdated.create = function create(properties) {
|
|
27781
|
+
return new ContentfulAccessRuleUpdated(properties);
|
|
27782
|
+
};
|
|
27783
|
+
|
|
27784
|
+
/**
|
|
27785
|
+
* Encodes the specified ContentfulAccessRuleUpdated message. Does not implicitly {@link ContentfulAccessRuleUpdated.verify|verify} messages.
|
|
27786
|
+
* @function encode
|
|
27787
|
+
* @memberof ContentfulAccessRuleUpdated
|
|
27788
|
+
* @static
|
|
27789
|
+
* @param {IContentfulAccessRuleUpdated} message ContentfulAccessRuleUpdated message or plain object to encode
|
|
27790
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
27791
|
+
* @returns {$protobuf.Writer} Writer
|
|
27792
|
+
*/
|
|
27793
|
+
ContentfulAccessRuleUpdated.encode = function encode(message, writer) {
|
|
27794
|
+
if (!writer)
|
|
27795
|
+
writer = $Writer.create();
|
|
27796
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
27797
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
27798
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
27799
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
|
|
27800
|
+
if (message.accessGroup != null && message.accessGroup.length)
|
|
27801
|
+
for (var i = 0; i < message.accessGroup.length; ++i)
|
|
27802
|
+
$root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
27803
|
+
if (message.isHidden != null && message.hasOwnProperty("isHidden"))
|
|
27804
|
+
writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isHidden);
|
|
27805
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
27806
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.updatedAt);
|
|
27807
|
+
return writer;
|
|
27808
|
+
};
|
|
27809
|
+
|
|
27810
|
+
/**
|
|
27811
|
+
* Encodes the specified ContentfulAccessRuleUpdated message, length delimited. Does not implicitly {@link ContentfulAccessRuleUpdated.verify|verify} messages.
|
|
27812
|
+
* @function encodeDelimited
|
|
27813
|
+
* @memberof ContentfulAccessRuleUpdated
|
|
27814
|
+
* @static
|
|
27815
|
+
* @param {IContentfulAccessRuleUpdated} message ContentfulAccessRuleUpdated message or plain object to encode
|
|
27816
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
27817
|
+
* @returns {$protobuf.Writer} Writer
|
|
27818
|
+
*/
|
|
27819
|
+
ContentfulAccessRuleUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
27820
|
+
return this.encode(message, writer).ldelim();
|
|
27821
|
+
};
|
|
27822
|
+
|
|
27823
|
+
/**
|
|
27824
|
+
* Decodes a ContentfulAccessRuleUpdated message from the specified reader or buffer.
|
|
27825
|
+
* @function decode
|
|
27826
|
+
* @memberof ContentfulAccessRuleUpdated
|
|
27827
|
+
* @static
|
|
27828
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
27829
|
+
* @param {number} [length] Message length if known beforehand
|
|
27830
|
+
* @returns {ContentfulAccessRuleUpdated} ContentfulAccessRuleUpdated
|
|
27831
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
27832
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
27833
|
+
*/
|
|
27834
|
+
ContentfulAccessRuleUpdated.decode = function decode(reader, length) {
|
|
27835
|
+
if (!(reader instanceof $Reader))
|
|
27836
|
+
reader = $Reader.create(reader);
|
|
27837
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulAccessRuleUpdated();
|
|
27838
|
+
while (reader.pos < end) {
|
|
27839
|
+
var tag = reader.uint32();
|
|
27840
|
+
switch (tag >>> 3) {
|
|
27841
|
+
case 1:
|
|
27842
|
+
message.name = reader.string();
|
|
27843
|
+
break;
|
|
27844
|
+
case 2:
|
|
27845
|
+
message.slug = reader.string();
|
|
27846
|
+
break;
|
|
27847
|
+
case 3:
|
|
27848
|
+
if (!(message.accessGroup && message.accessGroup.length))
|
|
27849
|
+
message.accessGroup = [];
|
|
27850
|
+
message.accessGroup.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
27851
|
+
break;
|
|
27852
|
+
case 4:
|
|
27853
|
+
message.isHidden = reader.bool();
|
|
27854
|
+
break;
|
|
27855
|
+
case 5:
|
|
27856
|
+
message.updatedAt = reader.uint64();
|
|
27857
|
+
break;
|
|
27858
|
+
default:
|
|
27859
|
+
reader.skipType(tag & 7);
|
|
27860
|
+
break;
|
|
27861
|
+
}
|
|
27862
|
+
}
|
|
27863
|
+
return message;
|
|
27864
|
+
};
|
|
27865
|
+
|
|
27866
|
+
/**
|
|
27867
|
+
* Decodes a ContentfulAccessRuleUpdated message from the specified reader or buffer, length delimited.
|
|
27868
|
+
* @function decodeDelimited
|
|
27869
|
+
* @memberof ContentfulAccessRuleUpdated
|
|
27870
|
+
* @static
|
|
27871
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
27872
|
+
* @returns {ContentfulAccessRuleUpdated} ContentfulAccessRuleUpdated
|
|
27873
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
27874
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
27875
|
+
*/
|
|
27876
|
+
ContentfulAccessRuleUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
27877
|
+
if (!(reader instanceof $Reader))
|
|
27878
|
+
reader = new $Reader(reader);
|
|
27879
|
+
return this.decode(reader, reader.uint32());
|
|
27880
|
+
};
|
|
27881
|
+
|
|
27882
|
+
/**
|
|
27883
|
+
* Verifies a ContentfulAccessRuleUpdated message.
|
|
27884
|
+
* @function verify
|
|
27885
|
+
* @memberof ContentfulAccessRuleUpdated
|
|
27886
|
+
* @static
|
|
27887
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
27888
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
27889
|
+
*/
|
|
27890
|
+
ContentfulAccessRuleUpdated.verify = function verify(message) {
|
|
27891
|
+
if (typeof message !== "object" || message === null)
|
|
27892
|
+
return "object expected";
|
|
27893
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
27894
|
+
if (!$util.isString(message.name))
|
|
27895
|
+
return "name: string expected";
|
|
27896
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
27897
|
+
if (!$util.isString(message.slug))
|
|
27898
|
+
return "slug: string expected";
|
|
27899
|
+
if (message.accessGroup != null && message.hasOwnProperty("accessGroup")) {
|
|
27900
|
+
if (!Array.isArray(message.accessGroup))
|
|
27901
|
+
return "accessGroup: array expected";
|
|
27902
|
+
for (var i = 0; i < message.accessGroup.length; ++i) {
|
|
27903
|
+
var error = $root.contentful.SlugReference.verify(message.accessGroup[i]);
|
|
27904
|
+
if (error)
|
|
27905
|
+
return "accessGroup." + error;
|
|
27906
|
+
}
|
|
27907
|
+
}
|
|
27908
|
+
if (message.isHidden != null && message.hasOwnProperty("isHidden"))
|
|
27909
|
+
if (typeof message.isHidden !== "boolean")
|
|
27910
|
+
return "isHidden: boolean expected";
|
|
27911
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
27912
|
+
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
27913
|
+
return "updatedAt: integer|Long expected";
|
|
27914
|
+
return null;
|
|
27915
|
+
};
|
|
27916
|
+
|
|
27917
|
+
/**
|
|
27918
|
+
* Creates a ContentfulAccessRuleUpdated message from a plain object. Also converts values to their respective internal types.
|
|
27919
|
+
* @function fromObject
|
|
27920
|
+
* @memberof ContentfulAccessRuleUpdated
|
|
27921
|
+
* @static
|
|
27922
|
+
* @param {Object.<string,*>} object Plain object
|
|
27923
|
+
* @returns {ContentfulAccessRuleUpdated} ContentfulAccessRuleUpdated
|
|
27924
|
+
*/
|
|
27925
|
+
ContentfulAccessRuleUpdated.fromObject = function fromObject(object) {
|
|
27926
|
+
if (object instanceof $root.ContentfulAccessRuleUpdated)
|
|
27927
|
+
return object;
|
|
27928
|
+
var message = new $root.ContentfulAccessRuleUpdated();
|
|
27929
|
+
if (object.name != null)
|
|
27930
|
+
message.name = String(object.name);
|
|
27931
|
+
if (object.slug != null)
|
|
27932
|
+
message.slug = String(object.slug);
|
|
27933
|
+
if (object.accessGroup) {
|
|
27934
|
+
if (!Array.isArray(object.accessGroup))
|
|
27935
|
+
throw TypeError(".ContentfulAccessRuleUpdated.accessGroup: array expected");
|
|
27936
|
+
message.accessGroup = [];
|
|
27937
|
+
for (var i = 0; i < object.accessGroup.length; ++i) {
|
|
27938
|
+
if (typeof object.accessGroup[i] !== "object")
|
|
27939
|
+
throw TypeError(".ContentfulAccessRuleUpdated.accessGroup: object expected");
|
|
27940
|
+
message.accessGroup[i] = $root.contentful.SlugReference.fromObject(object.accessGroup[i]);
|
|
27941
|
+
}
|
|
27942
|
+
}
|
|
27943
|
+
if (object.isHidden != null)
|
|
27944
|
+
message.isHidden = Boolean(object.isHidden);
|
|
27945
|
+
if (object.updatedAt != null)
|
|
27946
|
+
if ($util.Long)
|
|
27947
|
+
(message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
|
|
27948
|
+
else if (typeof object.updatedAt === "string")
|
|
27949
|
+
message.updatedAt = parseInt(object.updatedAt, 10);
|
|
27950
|
+
else if (typeof object.updatedAt === "number")
|
|
27951
|
+
message.updatedAt = object.updatedAt;
|
|
27952
|
+
else if (typeof object.updatedAt === "object")
|
|
27953
|
+
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
27954
|
+
return message;
|
|
27955
|
+
};
|
|
27956
|
+
|
|
27957
|
+
/**
|
|
27958
|
+
* Creates a plain object from a ContentfulAccessRuleUpdated message. Also converts values to other types if specified.
|
|
27959
|
+
* @function toObject
|
|
27960
|
+
* @memberof ContentfulAccessRuleUpdated
|
|
27961
|
+
* @static
|
|
27962
|
+
* @param {ContentfulAccessRuleUpdated} message ContentfulAccessRuleUpdated
|
|
27963
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
27964
|
+
* @returns {Object.<string,*>} Plain object
|
|
27965
|
+
*/
|
|
27966
|
+
ContentfulAccessRuleUpdated.toObject = function toObject(message, options) {
|
|
27967
|
+
if (!options)
|
|
27968
|
+
options = {};
|
|
27969
|
+
var object = {};
|
|
27970
|
+
if (options.arrays || options.defaults)
|
|
27971
|
+
object.accessGroup = [];
|
|
27972
|
+
if (options.defaults) {
|
|
27973
|
+
object.name = "";
|
|
27974
|
+
object.slug = "";
|
|
27975
|
+
object.isHidden = false;
|
|
27976
|
+
if ($util.Long) {
|
|
27977
|
+
var long = new $util.Long(0, 0, true);
|
|
27978
|
+
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
27979
|
+
} else
|
|
27980
|
+
object.updatedAt = options.longs === String ? "0" : 0;
|
|
27981
|
+
}
|
|
27982
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
27983
|
+
object.name = message.name;
|
|
27984
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
27985
|
+
object.slug = message.slug;
|
|
27986
|
+
if (message.accessGroup && message.accessGroup.length) {
|
|
27987
|
+
object.accessGroup = [];
|
|
27988
|
+
for (var j = 0; j < message.accessGroup.length; ++j)
|
|
27989
|
+
object.accessGroup[j] = $root.contentful.SlugReference.toObject(message.accessGroup[j], options);
|
|
27990
|
+
}
|
|
27991
|
+
if (message.isHidden != null && message.hasOwnProperty("isHidden"))
|
|
27992
|
+
object.isHidden = message.isHidden;
|
|
27993
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
27994
|
+
if (typeof message.updatedAt === "number")
|
|
27995
|
+
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
27996
|
+
else
|
|
27997
|
+
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;
|
|
27998
|
+
return object;
|
|
27999
|
+
};
|
|
28000
|
+
|
|
28001
|
+
/**
|
|
28002
|
+
* Converts this ContentfulAccessRuleUpdated to JSON.
|
|
28003
|
+
* @function toJSON
|
|
28004
|
+
* @memberof ContentfulAccessRuleUpdated
|
|
28005
|
+
* @instance
|
|
28006
|
+
* @returns {Object.<string,*>} JSON object
|
|
28007
|
+
*/
|
|
28008
|
+
ContentfulAccessRuleUpdated.prototype.toJSON = function toJSON() {
|
|
28009
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
28010
|
+
};
|
|
28011
|
+
|
|
28012
|
+
return ContentfulAccessRuleUpdated;
|
|
28013
|
+
})();
|
|
28014
|
+
|
|
28015
|
+
$root.ContentfulAccessRuleDeleted = (function() {
|
|
28016
|
+
|
|
28017
|
+
/**
|
|
28018
|
+
* Properties of a ContentfulAccessRuleDeleted.
|
|
28019
|
+
* @exports IContentfulAccessRuleDeleted
|
|
28020
|
+
* @interface IContentfulAccessRuleDeleted
|
|
28021
|
+
* @property {string|null} [slug] ContentfulAccessRuleDeleted slug
|
|
28022
|
+
* @property {number|Long|null} [deletedAt] ContentfulAccessRuleDeleted deletedAt
|
|
28023
|
+
*/
|
|
28024
|
+
|
|
28025
|
+
/**
|
|
28026
|
+
* Constructs a new ContentfulAccessRuleDeleted.
|
|
28027
|
+
* @exports ContentfulAccessRuleDeleted
|
|
28028
|
+
* @classdesc Represents a ContentfulAccessRuleDeleted.
|
|
28029
|
+
* @implements IContentfulAccessRuleDeleted
|
|
28030
|
+
* @constructor
|
|
28031
|
+
* @param {IContentfulAccessRuleDeleted=} [properties] Properties to set
|
|
28032
|
+
*/
|
|
28033
|
+
function ContentfulAccessRuleDeleted(properties) {
|
|
28034
|
+
if (properties)
|
|
28035
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
28036
|
+
if (properties[keys[i]] != null)
|
|
28037
|
+
this[keys[i]] = properties[keys[i]];
|
|
28038
|
+
}
|
|
28039
|
+
|
|
28040
|
+
/**
|
|
28041
|
+
* ContentfulAccessRuleDeleted slug.
|
|
28042
|
+
* @member {string} slug
|
|
28043
|
+
* @memberof ContentfulAccessRuleDeleted
|
|
28044
|
+
* @instance
|
|
28045
|
+
*/
|
|
28046
|
+
ContentfulAccessRuleDeleted.prototype.slug = "";
|
|
28047
|
+
|
|
28048
|
+
/**
|
|
28049
|
+
* ContentfulAccessRuleDeleted deletedAt.
|
|
28050
|
+
* @member {number|Long} deletedAt
|
|
28051
|
+
* @memberof ContentfulAccessRuleDeleted
|
|
28052
|
+
* @instance
|
|
28053
|
+
*/
|
|
28054
|
+
ContentfulAccessRuleDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
28055
|
+
|
|
28056
|
+
/**
|
|
28057
|
+
* Creates a new ContentfulAccessRuleDeleted instance using the specified properties.
|
|
28058
|
+
* @function create
|
|
28059
|
+
* @memberof ContentfulAccessRuleDeleted
|
|
28060
|
+
* @static
|
|
28061
|
+
* @param {IContentfulAccessRuleDeleted=} [properties] Properties to set
|
|
28062
|
+
* @returns {ContentfulAccessRuleDeleted} ContentfulAccessRuleDeleted instance
|
|
28063
|
+
*/
|
|
28064
|
+
ContentfulAccessRuleDeleted.create = function create(properties) {
|
|
28065
|
+
return new ContentfulAccessRuleDeleted(properties);
|
|
28066
|
+
};
|
|
28067
|
+
|
|
28068
|
+
/**
|
|
28069
|
+
* Encodes the specified ContentfulAccessRuleDeleted message. Does not implicitly {@link ContentfulAccessRuleDeleted.verify|verify} messages.
|
|
28070
|
+
* @function encode
|
|
28071
|
+
* @memberof ContentfulAccessRuleDeleted
|
|
28072
|
+
* @static
|
|
28073
|
+
* @param {IContentfulAccessRuleDeleted} message ContentfulAccessRuleDeleted message or plain object to encode
|
|
28074
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
28075
|
+
* @returns {$protobuf.Writer} Writer
|
|
28076
|
+
*/
|
|
28077
|
+
ContentfulAccessRuleDeleted.encode = function encode(message, writer) {
|
|
28078
|
+
if (!writer)
|
|
28079
|
+
writer = $Writer.create();
|
|
28080
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
28081
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
28082
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
28083
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
|
|
28084
|
+
return writer;
|
|
28085
|
+
};
|
|
28086
|
+
|
|
28087
|
+
/**
|
|
28088
|
+
* Encodes the specified ContentfulAccessRuleDeleted message, length delimited. Does not implicitly {@link ContentfulAccessRuleDeleted.verify|verify} messages.
|
|
28089
|
+
* @function encodeDelimited
|
|
28090
|
+
* @memberof ContentfulAccessRuleDeleted
|
|
28091
|
+
* @static
|
|
28092
|
+
* @param {IContentfulAccessRuleDeleted} message ContentfulAccessRuleDeleted message or plain object to encode
|
|
28093
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
28094
|
+
* @returns {$protobuf.Writer} Writer
|
|
28095
|
+
*/
|
|
28096
|
+
ContentfulAccessRuleDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
28097
|
+
return this.encode(message, writer).ldelim();
|
|
28098
|
+
};
|
|
28099
|
+
|
|
28100
|
+
/**
|
|
28101
|
+
* Decodes a ContentfulAccessRuleDeleted message from the specified reader or buffer.
|
|
28102
|
+
* @function decode
|
|
28103
|
+
* @memberof ContentfulAccessRuleDeleted
|
|
28104
|
+
* @static
|
|
28105
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
28106
|
+
* @param {number} [length] Message length if known beforehand
|
|
28107
|
+
* @returns {ContentfulAccessRuleDeleted} ContentfulAccessRuleDeleted
|
|
28108
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
28109
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
28110
|
+
*/
|
|
28111
|
+
ContentfulAccessRuleDeleted.decode = function decode(reader, length) {
|
|
28112
|
+
if (!(reader instanceof $Reader))
|
|
28113
|
+
reader = $Reader.create(reader);
|
|
28114
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulAccessRuleDeleted();
|
|
28115
|
+
while (reader.pos < end) {
|
|
28116
|
+
var tag = reader.uint32();
|
|
28117
|
+
switch (tag >>> 3) {
|
|
28118
|
+
case 1:
|
|
28119
|
+
message.slug = reader.string();
|
|
28120
|
+
break;
|
|
28121
|
+
case 2:
|
|
28122
|
+
message.deletedAt = reader.uint64();
|
|
28123
|
+
break;
|
|
28124
|
+
default:
|
|
28125
|
+
reader.skipType(tag & 7);
|
|
28126
|
+
break;
|
|
28127
|
+
}
|
|
28128
|
+
}
|
|
28129
|
+
return message;
|
|
28130
|
+
};
|
|
28131
|
+
|
|
28132
|
+
/**
|
|
28133
|
+
* Decodes a ContentfulAccessRuleDeleted message from the specified reader or buffer, length delimited.
|
|
28134
|
+
* @function decodeDelimited
|
|
28135
|
+
* @memberof ContentfulAccessRuleDeleted
|
|
28136
|
+
* @static
|
|
28137
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
28138
|
+
* @returns {ContentfulAccessRuleDeleted} ContentfulAccessRuleDeleted
|
|
28139
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
28140
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
28141
|
+
*/
|
|
28142
|
+
ContentfulAccessRuleDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
28143
|
+
if (!(reader instanceof $Reader))
|
|
28144
|
+
reader = new $Reader(reader);
|
|
28145
|
+
return this.decode(reader, reader.uint32());
|
|
28146
|
+
};
|
|
28147
|
+
|
|
28148
|
+
/**
|
|
28149
|
+
* Verifies a ContentfulAccessRuleDeleted message.
|
|
28150
|
+
* @function verify
|
|
28151
|
+
* @memberof ContentfulAccessRuleDeleted
|
|
28152
|
+
* @static
|
|
28153
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
28154
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
28155
|
+
*/
|
|
28156
|
+
ContentfulAccessRuleDeleted.verify = function verify(message) {
|
|
28157
|
+
if (typeof message !== "object" || message === null)
|
|
28158
|
+
return "object expected";
|
|
28159
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
28160
|
+
if (!$util.isString(message.slug))
|
|
28161
|
+
return "slug: string expected";
|
|
28162
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
28163
|
+
if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
|
|
28164
|
+
return "deletedAt: integer|Long expected";
|
|
28165
|
+
return null;
|
|
28166
|
+
};
|
|
28167
|
+
|
|
28168
|
+
/**
|
|
28169
|
+
* Creates a ContentfulAccessRuleDeleted message from a plain object. Also converts values to their respective internal types.
|
|
28170
|
+
* @function fromObject
|
|
28171
|
+
* @memberof ContentfulAccessRuleDeleted
|
|
28172
|
+
* @static
|
|
28173
|
+
* @param {Object.<string,*>} object Plain object
|
|
28174
|
+
* @returns {ContentfulAccessRuleDeleted} ContentfulAccessRuleDeleted
|
|
28175
|
+
*/
|
|
28176
|
+
ContentfulAccessRuleDeleted.fromObject = function fromObject(object) {
|
|
28177
|
+
if (object instanceof $root.ContentfulAccessRuleDeleted)
|
|
28178
|
+
return object;
|
|
28179
|
+
var message = new $root.ContentfulAccessRuleDeleted();
|
|
28180
|
+
if (object.slug != null)
|
|
28181
|
+
message.slug = String(object.slug);
|
|
28182
|
+
if (object.deletedAt != null)
|
|
28183
|
+
if ($util.Long)
|
|
28184
|
+
(message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
|
|
28185
|
+
else if (typeof object.deletedAt === "string")
|
|
28186
|
+
message.deletedAt = parseInt(object.deletedAt, 10);
|
|
28187
|
+
else if (typeof object.deletedAt === "number")
|
|
28188
|
+
message.deletedAt = object.deletedAt;
|
|
28189
|
+
else if (typeof object.deletedAt === "object")
|
|
28190
|
+
message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
|
|
28191
|
+
return message;
|
|
28192
|
+
};
|
|
28193
|
+
|
|
28194
|
+
/**
|
|
28195
|
+
* Creates a plain object from a ContentfulAccessRuleDeleted message. Also converts values to other types if specified.
|
|
28196
|
+
* @function toObject
|
|
28197
|
+
* @memberof ContentfulAccessRuleDeleted
|
|
28198
|
+
* @static
|
|
28199
|
+
* @param {ContentfulAccessRuleDeleted} message ContentfulAccessRuleDeleted
|
|
28200
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
28201
|
+
* @returns {Object.<string,*>} Plain object
|
|
28202
|
+
*/
|
|
28203
|
+
ContentfulAccessRuleDeleted.toObject = function toObject(message, options) {
|
|
28204
|
+
if (!options)
|
|
28205
|
+
options = {};
|
|
28206
|
+
var object = {};
|
|
28207
|
+
if (options.defaults) {
|
|
28208
|
+
object.slug = "";
|
|
28209
|
+
if ($util.Long) {
|
|
28210
|
+
var long = new $util.Long(0, 0, true);
|
|
28211
|
+
object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
28212
|
+
} else
|
|
28213
|
+
object.deletedAt = options.longs === String ? "0" : 0;
|
|
28214
|
+
}
|
|
28215
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
28216
|
+
object.slug = message.slug;
|
|
28217
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
28218
|
+
if (typeof message.deletedAt === "number")
|
|
28219
|
+
object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
|
|
28220
|
+
else
|
|
28221
|
+
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;
|
|
28222
|
+
return object;
|
|
28223
|
+
};
|
|
28224
|
+
|
|
28225
|
+
/**
|
|
28226
|
+
* Converts this ContentfulAccessRuleDeleted to JSON.
|
|
28227
|
+
* @function toJSON
|
|
28228
|
+
* @memberof ContentfulAccessRuleDeleted
|
|
28229
|
+
* @instance
|
|
28230
|
+
* @returns {Object.<string,*>} JSON object
|
|
28231
|
+
*/
|
|
28232
|
+
ContentfulAccessRuleDeleted.prototype.toJSON = function toJSON() {
|
|
28233
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
28234
|
+
};
|
|
28235
|
+
|
|
28236
|
+
return ContentfulAccessRuleDeleted;
|
|
28237
|
+
})();
|
|
28238
|
+
|
|
27347
28239
|
$root.ContentfulContentModelCreated = (function() {
|
|
27348
28240
|
|
|
27349
28241
|
/**
|
package/package.json
CHANGED