@headspace/protos-events 1.205.0 → 1.207.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 +441 -0
- package/lib/index.js +1929 -633
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -231,6 +231,54 @@ $root.auth0 = (function() {
|
|
|
231
231
|
*/
|
|
232
232
|
var auth0 = {};
|
|
233
233
|
|
|
234
|
+
auth0.client = (function() {
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Namespace client.
|
|
238
|
+
* @memberof auth0
|
|
239
|
+
* @namespace
|
|
240
|
+
*/
|
|
241
|
+
var client = {};
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Client enum.
|
|
245
|
+
* @name auth0.client.Client
|
|
246
|
+
* @enum {string}
|
|
247
|
+
* @property {number} UNKNOWN_CLIENT=0 UNKNOWN_CLIENT value
|
|
248
|
+
* @property {number} ALEXA=1 ALEXA value
|
|
249
|
+
* @property {number} ANDROID=2 ANDROID value
|
|
250
|
+
* @property {number} GOOGLE_ASSISTANT=3 GOOGLE_ASSISTANT value
|
|
251
|
+
* @property {number} HS_HEALTH_IOS=4 HS_HEALTH_IOS value
|
|
252
|
+
* @property {number} HS_HEALTH_WEB=5 HS_HEALTH_WEB value
|
|
253
|
+
* @property {number} IOS=6 IOS value
|
|
254
|
+
* @property {number} IOS_WATCH=7 IOS_WATCH value
|
|
255
|
+
* @property {number} WEB=8 WEB value
|
|
256
|
+
* @property {number} HS_TELEHEALTH_WEB=9 HS_TELEHEALTH_WEB value
|
|
257
|
+
* @property {number} API_EXPLORER_APPLICATION=10 API_EXPLORER_APPLICATION value
|
|
258
|
+
* @property {number} AUTH0_DEPLOY_CLI_EXTENSION=11 AUTH0_DEPLOY_CLI_EXTENSION value
|
|
259
|
+
* @property {number} HS_LOAD_TEST=12 HS_LOAD_TEST value
|
|
260
|
+
*/
|
|
261
|
+
client.Client = (function() {
|
|
262
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
263
|
+
values[valuesById[0] = "UNKNOWN_CLIENT"] = 0;
|
|
264
|
+
values[valuesById[1] = "ALEXA"] = 1;
|
|
265
|
+
values[valuesById[2] = "ANDROID"] = 2;
|
|
266
|
+
values[valuesById[3] = "GOOGLE_ASSISTANT"] = 3;
|
|
267
|
+
values[valuesById[4] = "HS_HEALTH_IOS"] = 4;
|
|
268
|
+
values[valuesById[5] = "HS_HEALTH_WEB"] = 5;
|
|
269
|
+
values[valuesById[6] = "IOS"] = 6;
|
|
270
|
+
values[valuesById[7] = "IOS_WATCH"] = 7;
|
|
271
|
+
values[valuesById[8] = "WEB"] = 8;
|
|
272
|
+
values[valuesById[9] = "HS_TELEHEALTH_WEB"] = 9;
|
|
273
|
+
values[valuesById[10] = "API_EXPLORER_APPLICATION"] = 10;
|
|
274
|
+
values[valuesById[11] = "AUTH0_DEPLOY_CLI_EXTENSION"] = 11;
|
|
275
|
+
values[valuesById[12] = "HS_LOAD_TEST"] = 12;
|
|
276
|
+
return values;
|
|
277
|
+
})();
|
|
278
|
+
|
|
279
|
+
return client;
|
|
280
|
+
})();
|
|
281
|
+
|
|
234
282
|
auth0.connections = (function() {
|
|
235
283
|
|
|
236
284
|
/**
|
|
@@ -11071,26 +11119,27 @@ $root.userdomain = (function() {
|
|
|
11071
11119
|
return userdomain;
|
|
11072
11120
|
})();
|
|
11073
11121
|
|
|
11074
|
-
$root.
|
|
11122
|
+
$root.SuccessfulUserLogin = (function() {
|
|
11075
11123
|
|
|
11076
11124
|
/**
|
|
11077
|
-
* Properties of
|
|
11078
|
-
* @exports
|
|
11079
|
-
* @interface
|
|
11080
|
-
* @property {string|null} [hsId]
|
|
11081
|
-
* @property {
|
|
11082
|
-
* @property {
|
|
11125
|
+
* Properties of a SuccessfulUserLogin.
|
|
11126
|
+
* @exports ISuccessfulUserLogin
|
|
11127
|
+
* @interface ISuccessfulUserLogin
|
|
11128
|
+
* @property {string|null} [hsId] SuccessfulUserLogin hsId
|
|
11129
|
+
* @property {number|Long|null} [loginAt] SuccessfulUserLogin loginAt
|
|
11130
|
+
* @property {auth0.client.Client|null} [client] SuccessfulUserLogin client
|
|
11131
|
+
* @property {auth0.connections.Connection|null} [connection] SuccessfulUserLogin connection
|
|
11083
11132
|
*/
|
|
11084
11133
|
|
|
11085
11134
|
/**
|
|
11086
|
-
* Constructs a new
|
|
11087
|
-
* @exports
|
|
11088
|
-
* @classdesc Represents
|
|
11089
|
-
* @implements
|
|
11135
|
+
* Constructs a new SuccessfulUserLogin.
|
|
11136
|
+
* @exports SuccessfulUserLogin
|
|
11137
|
+
* @classdesc Represents a SuccessfulUserLogin.
|
|
11138
|
+
* @implements ISuccessfulUserLogin
|
|
11090
11139
|
* @constructor
|
|
11091
|
-
* @param {
|
|
11140
|
+
* @param {ISuccessfulUserLogin=} [properties] Properties to set
|
|
11092
11141
|
*/
|
|
11093
|
-
function
|
|
11142
|
+
function SuccessfulUserLogin(properties) {
|
|
11094
11143
|
if (properties)
|
|
11095
11144
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
11096
11145
|
if (properties[keys[i]] != null)
|
|
@@ -11098,90 +11147,100 @@ $root.UnlinkedConnection = (function() {
|
|
|
11098
11147
|
}
|
|
11099
11148
|
|
|
11100
11149
|
/**
|
|
11101
|
-
*
|
|
11150
|
+
* SuccessfulUserLogin hsId.
|
|
11102
11151
|
* @member {string} hsId
|
|
11103
|
-
* @memberof
|
|
11152
|
+
* @memberof SuccessfulUserLogin
|
|
11104
11153
|
* @instance
|
|
11105
11154
|
*/
|
|
11106
|
-
|
|
11155
|
+
SuccessfulUserLogin.prototype.hsId = "";
|
|
11107
11156
|
|
|
11108
11157
|
/**
|
|
11109
|
-
*
|
|
11110
|
-
* @member {
|
|
11111
|
-
* @memberof
|
|
11158
|
+
* SuccessfulUserLogin loginAt.
|
|
11159
|
+
* @member {number|Long} loginAt
|
|
11160
|
+
* @memberof SuccessfulUserLogin
|
|
11112
11161
|
* @instance
|
|
11113
11162
|
*/
|
|
11114
|
-
|
|
11163
|
+
SuccessfulUserLogin.prototype.loginAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
11115
11164
|
|
|
11116
11165
|
/**
|
|
11117
|
-
*
|
|
11118
|
-
* @member {
|
|
11119
|
-
* @memberof
|
|
11166
|
+
* SuccessfulUserLogin client.
|
|
11167
|
+
* @member {auth0.client.Client} client
|
|
11168
|
+
* @memberof SuccessfulUserLogin
|
|
11120
11169
|
* @instance
|
|
11121
11170
|
*/
|
|
11122
|
-
|
|
11171
|
+
SuccessfulUserLogin.prototype.client = 0;
|
|
11123
11172
|
|
|
11124
11173
|
/**
|
|
11125
|
-
*
|
|
11174
|
+
* SuccessfulUserLogin connection.
|
|
11175
|
+
* @member {auth0.connections.Connection} connection
|
|
11176
|
+
* @memberof SuccessfulUserLogin
|
|
11177
|
+
* @instance
|
|
11178
|
+
*/
|
|
11179
|
+
SuccessfulUserLogin.prototype.connection = 0;
|
|
11180
|
+
|
|
11181
|
+
/**
|
|
11182
|
+
* Creates a new SuccessfulUserLogin instance using the specified properties.
|
|
11126
11183
|
* @function create
|
|
11127
|
-
* @memberof
|
|
11184
|
+
* @memberof SuccessfulUserLogin
|
|
11128
11185
|
* @static
|
|
11129
|
-
* @param {
|
|
11130
|
-
* @returns {
|
|
11186
|
+
* @param {ISuccessfulUserLogin=} [properties] Properties to set
|
|
11187
|
+
* @returns {SuccessfulUserLogin} SuccessfulUserLogin instance
|
|
11131
11188
|
*/
|
|
11132
|
-
|
|
11133
|
-
return new
|
|
11189
|
+
SuccessfulUserLogin.create = function create(properties) {
|
|
11190
|
+
return new SuccessfulUserLogin(properties);
|
|
11134
11191
|
};
|
|
11135
11192
|
|
|
11136
11193
|
/**
|
|
11137
|
-
* Encodes the specified
|
|
11194
|
+
* Encodes the specified SuccessfulUserLogin message. Does not implicitly {@link SuccessfulUserLogin.verify|verify} messages.
|
|
11138
11195
|
* @function encode
|
|
11139
|
-
* @memberof
|
|
11196
|
+
* @memberof SuccessfulUserLogin
|
|
11140
11197
|
* @static
|
|
11141
|
-
* @param {
|
|
11198
|
+
* @param {ISuccessfulUserLogin} message SuccessfulUserLogin message or plain object to encode
|
|
11142
11199
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
11143
11200
|
* @returns {$protobuf.Writer} Writer
|
|
11144
11201
|
*/
|
|
11145
|
-
|
|
11202
|
+
SuccessfulUserLogin.encode = function encode(message, writer) {
|
|
11146
11203
|
if (!writer)
|
|
11147
11204
|
writer = $Writer.create();
|
|
11148
11205
|
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
11149
11206
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsId);
|
|
11207
|
+
if (message.loginAt != null && message.hasOwnProperty("loginAt"))
|
|
11208
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.loginAt);
|
|
11209
|
+
if (message.client != null && message.hasOwnProperty("client"))
|
|
11210
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.client);
|
|
11150
11211
|
if (message.connection != null && message.hasOwnProperty("connection"))
|
|
11151
|
-
writer.uint32(/* id
|
|
11152
|
-
if (message.unlinkedAt != null && message.hasOwnProperty("unlinkedAt"))
|
|
11153
|
-
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.unlinkedAt);
|
|
11212
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.connection);
|
|
11154
11213
|
return writer;
|
|
11155
11214
|
};
|
|
11156
11215
|
|
|
11157
11216
|
/**
|
|
11158
|
-
* Encodes the specified
|
|
11217
|
+
* Encodes the specified SuccessfulUserLogin message, length delimited. Does not implicitly {@link SuccessfulUserLogin.verify|verify} messages.
|
|
11159
11218
|
* @function encodeDelimited
|
|
11160
|
-
* @memberof
|
|
11219
|
+
* @memberof SuccessfulUserLogin
|
|
11161
11220
|
* @static
|
|
11162
|
-
* @param {
|
|
11221
|
+
* @param {ISuccessfulUserLogin} message SuccessfulUserLogin message or plain object to encode
|
|
11163
11222
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
11164
11223
|
* @returns {$protobuf.Writer} Writer
|
|
11165
11224
|
*/
|
|
11166
|
-
|
|
11225
|
+
SuccessfulUserLogin.encodeDelimited = function encodeDelimited(message, writer) {
|
|
11167
11226
|
return this.encode(message, writer).ldelim();
|
|
11168
11227
|
};
|
|
11169
11228
|
|
|
11170
11229
|
/**
|
|
11171
|
-
* Decodes
|
|
11230
|
+
* Decodes a SuccessfulUserLogin message from the specified reader or buffer.
|
|
11172
11231
|
* @function decode
|
|
11173
|
-
* @memberof
|
|
11232
|
+
* @memberof SuccessfulUserLogin
|
|
11174
11233
|
* @static
|
|
11175
11234
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
11176
11235
|
* @param {number} [length] Message length if known beforehand
|
|
11177
|
-
* @returns {
|
|
11236
|
+
* @returns {SuccessfulUserLogin} SuccessfulUserLogin
|
|
11178
11237
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11179
11238
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11180
11239
|
*/
|
|
11181
|
-
|
|
11240
|
+
SuccessfulUserLogin.decode = function decode(reader, length) {
|
|
11182
11241
|
if (!(reader instanceof $Reader))
|
|
11183
11242
|
reader = $Reader.create(reader);
|
|
11184
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.
|
|
11243
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SuccessfulUserLogin();
|
|
11185
11244
|
while (reader.pos < end) {
|
|
11186
11245
|
var tag = reader.uint32();
|
|
11187
11246
|
switch (tag >>> 3) {
|
|
@@ -11189,10 +11248,13 @@ $root.UnlinkedConnection = (function() {
|
|
|
11189
11248
|
message.hsId = reader.string();
|
|
11190
11249
|
break;
|
|
11191
11250
|
case 2:
|
|
11192
|
-
message.
|
|
11251
|
+
message.loginAt = reader.uint64();
|
|
11193
11252
|
break;
|
|
11194
11253
|
case 3:
|
|
11195
|
-
message.
|
|
11254
|
+
message.client = reader.int32();
|
|
11255
|
+
break;
|
|
11256
|
+
case 4:
|
|
11257
|
+
message.connection = reader.int32();
|
|
11196
11258
|
break;
|
|
11197
11259
|
default:
|
|
11198
11260
|
reader.skipType(tag & 7);
|
|
@@ -11203,35 +11265,57 @@ $root.UnlinkedConnection = (function() {
|
|
|
11203
11265
|
};
|
|
11204
11266
|
|
|
11205
11267
|
/**
|
|
11206
|
-
* Decodes
|
|
11268
|
+
* Decodes a SuccessfulUserLogin message from the specified reader or buffer, length delimited.
|
|
11207
11269
|
* @function decodeDelimited
|
|
11208
|
-
* @memberof
|
|
11270
|
+
* @memberof SuccessfulUserLogin
|
|
11209
11271
|
* @static
|
|
11210
11272
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
11211
|
-
* @returns {
|
|
11273
|
+
* @returns {SuccessfulUserLogin} SuccessfulUserLogin
|
|
11212
11274
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11213
11275
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11214
11276
|
*/
|
|
11215
|
-
|
|
11277
|
+
SuccessfulUserLogin.decodeDelimited = function decodeDelimited(reader) {
|
|
11216
11278
|
if (!(reader instanceof $Reader))
|
|
11217
11279
|
reader = new $Reader(reader);
|
|
11218
11280
|
return this.decode(reader, reader.uint32());
|
|
11219
11281
|
};
|
|
11220
11282
|
|
|
11221
11283
|
/**
|
|
11222
|
-
* Verifies
|
|
11284
|
+
* Verifies a SuccessfulUserLogin message.
|
|
11223
11285
|
* @function verify
|
|
11224
|
-
* @memberof
|
|
11286
|
+
* @memberof SuccessfulUserLogin
|
|
11225
11287
|
* @static
|
|
11226
11288
|
* @param {Object.<string,*>} message Plain object to verify
|
|
11227
11289
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
11228
11290
|
*/
|
|
11229
|
-
|
|
11291
|
+
SuccessfulUserLogin.verify = function verify(message) {
|
|
11230
11292
|
if (typeof message !== "object" || message === null)
|
|
11231
11293
|
return "object expected";
|
|
11232
11294
|
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
11233
11295
|
if (!$util.isString(message.hsId))
|
|
11234
11296
|
return "hsId: string expected";
|
|
11297
|
+
if (message.loginAt != null && message.hasOwnProperty("loginAt"))
|
|
11298
|
+
if (!$util.isInteger(message.loginAt) && !(message.loginAt && $util.isInteger(message.loginAt.low) && $util.isInteger(message.loginAt.high)))
|
|
11299
|
+
return "loginAt: integer|Long expected";
|
|
11300
|
+
if (message.client != null && message.hasOwnProperty("client"))
|
|
11301
|
+
switch (message.client) {
|
|
11302
|
+
default:
|
|
11303
|
+
return "client: enum value expected";
|
|
11304
|
+
case 0:
|
|
11305
|
+
case 1:
|
|
11306
|
+
case 2:
|
|
11307
|
+
case 3:
|
|
11308
|
+
case 4:
|
|
11309
|
+
case 5:
|
|
11310
|
+
case 6:
|
|
11311
|
+
case 7:
|
|
11312
|
+
case 8:
|
|
11313
|
+
case 9:
|
|
11314
|
+
case 10:
|
|
11315
|
+
case 11:
|
|
11316
|
+
case 12:
|
|
11317
|
+
break;
|
|
11318
|
+
}
|
|
11235
11319
|
if (message.connection != null && message.hasOwnProperty("connection"))
|
|
11236
11320
|
switch (message.connection) {
|
|
11237
11321
|
default:
|
|
@@ -11245,26 +11329,86 @@ $root.UnlinkedConnection = (function() {
|
|
|
11245
11329
|
case 6:
|
|
11246
11330
|
break;
|
|
11247
11331
|
}
|
|
11248
|
-
if (message.unlinkedAt != null && message.hasOwnProperty("unlinkedAt"))
|
|
11249
|
-
if (!$util.isInteger(message.unlinkedAt) && !(message.unlinkedAt && $util.isInteger(message.unlinkedAt.low) && $util.isInteger(message.unlinkedAt.high)))
|
|
11250
|
-
return "unlinkedAt: integer|Long expected";
|
|
11251
11332
|
return null;
|
|
11252
11333
|
};
|
|
11253
11334
|
|
|
11254
11335
|
/**
|
|
11255
|
-
* Creates
|
|
11336
|
+
* Creates a SuccessfulUserLogin message from a plain object. Also converts values to their respective internal types.
|
|
11256
11337
|
* @function fromObject
|
|
11257
|
-
* @memberof
|
|
11338
|
+
* @memberof SuccessfulUserLogin
|
|
11258
11339
|
* @static
|
|
11259
11340
|
* @param {Object.<string,*>} object Plain object
|
|
11260
|
-
* @returns {
|
|
11341
|
+
* @returns {SuccessfulUserLogin} SuccessfulUserLogin
|
|
11261
11342
|
*/
|
|
11262
|
-
|
|
11263
|
-
if (object instanceof $root.
|
|
11343
|
+
SuccessfulUserLogin.fromObject = function fromObject(object) {
|
|
11344
|
+
if (object instanceof $root.SuccessfulUserLogin)
|
|
11264
11345
|
return object;
|
|
11265
|
-
var message = new $root.
|
|
11346
|
+
var message = new $root.SuccessfulUserLogin();
|
|
11266
11347
|
if (object.hsId != null)
|
|
11267
11348
|
message.hsId = String(object.hsId);
|
|
11349
|
+
if (object.loginAt != null)
|
|
11350
|
+
if ($util.Long)
|
|
11351
|
+
(message.loginAt = $util.Long.fromValue(object.loginAt)).unsigned = true;
|
|
11352
|
+
else if (typeof object.loginAt === "string")
|
|
11353
|
+
message.loginAt = parseInt(object.loginAt, 10);
|
|
11354
|
+
else if (typeof object.loginAt === "number")
|
|
11355
|
+
message.loginAt = object.loginAt;
|
|
11356
|
+
else if (typeof object.loginAt === "object")
|
|
11357
|
+
message.loginAt = new $util.LongBits(object.loginAt.low >>> 0, object.loginAt.high >>> 0).toNumber(true);
|
|
11358
|
+
switch (object.client) {
|
|
11359
|
+
case "UNKNOWN_CLIENT":
|
|
11360
|
+
case 0:
|
|
11361
|
+
message.client = 0;
|
|
11362
|
+
break;
|
|
11363
|
+
case "ALEXA":
|
|
11364
|
+
case 1:
|
|
11365
|
+
message.client = 1;
|
|
11366
|
+
break;
|
|
11367
|
+
case "ANDROID":
|
|
11368
|
+
case 2:
|
|
11369
|
+
message.client = 2;
|
|
11370
|
+
break;
|
|
11371
|
+
case "GOOGLE_ASSISTANT":
|
|
11372
|
+
case 3:
|
|
11373
|
+
message.client = 3;
|
|
11374
|
+
break;
|
|
11375
|
+
case "HS_HEALTH_IOS":
|
|
11376
|
+
case 4:
|
|
11377
|
+
message.client = 4;
|
|
11378
|
+
break;
|
|
11379
|
+
case "HS_HEALTH_WEB":
|
|
11380
|
+
case 5:
|
|
11381
|
+
message.client = 5;
|
|
11382
|
+
break;
|
|
11383
|
+
case "IOS":
|
|
11384
|
+
case 6:
|
|
11385
|
+
message.client = 6;
|
|
11386
|
+
break;
|
|
11387
|
+
case "IOS_WATCH":
|
|
11388
|
+
case 7:
|
|
11389
|
+
message.client = 7;
|
|
11390
|
+
break;
|
|
11391
|
+
case "WEB":
|
|
11392
|
+
case 8:
|
|
11393
|
+
message.client = 8;
|
|
11394
|
+
break;
|
|
11395
|
+
case "HS_TELEHEALTH_WEB":
|
|
11396
|
+
case 9:
|
|
11397
|
+
message.client = 9;
|
|
11398
|
+
break;
|
|
11399
|
+
case "API_EXPLORER_APPLICATION":
|
|
11400
|
+
case 10:
|
|
11401
|
+
message.client = 10;
|
|
11402
|
+
break;
|
|
11403
|
+
case "AUTH0_DEPLOY_CLI_EXTENSION":
|
|
11404
|
+
case 11:
|
|
11405
|
+
message.client = 11;
|
|
11406
|
+
break;
|
|
11407
|
+
case "HS_LOAD_TEST":
|
|
11408
|
+
case 12:
|
|
11409
|
+
message.client = 12;
|
|
11410
|
+
break;
|
|
11411
|
+
}
|
|
11268
11412
|
switch (object.connection) {
|
|
11269
11413
|
case "UNKNOWN_CONNECTION":
|
|
11270
11414
|
case 0:
|
|
@@ -11295,86 +11439,80 @@ $root.UnlinkedConnection = (function() {
|
|
|
11295
11439
|
message.connection = 6;
|
|
11296
11440
|
break;
|
|
11297
11441
|
}
|
|
11298
|
-
if (object.unlinkedAt != null)
|
|
11299
|
-
if ($util.Long)
|
|
11300
|
-
(message.unlinkedAt = $util.Long.fromValue(object.unlinkedAt)).unsigned = true;
|
|
11301
|
-
else if (typeof object.unlinkedAt === "string")
|
|
11302
|
-
message.unlinkedAt = parseInt(object.unlinkedAt, 10);
|
|
11303
|
-
else if (typeof object.unlinkedAt === "number")
|
|
11304
|
-
message.unlinkedAt = object.unlinkedAt;
|
|
11305
|
-
else if (typeof object.unlinkedAt === "object")
|
|
11306
|
-
message.unlinkedAt = new $util.LongBits(object.unlinkedAt.low >>> 0, object.unlinkedAt.high >>> 0).toNumber(true);
|
|
11307
11442
|
return message;
|
|
11308
11443
|
};
|
|
11309
11444
|
|
|
11310
11445
|
/**
|
|
11311
|
-
* Creates a plain object from
|
|
11446
|
+
* Creates a plain object from a SuccessfulUserLogin message. Also converts values to other types if specified.
|
|
11312
11447
|
* @function toObject
|
|
11313
|
-
* @memberof
|
|
11448
|
+
* @memberof SuccessfulUserLogin
|
|
11314
11449
|
* @static
|
|
11315
|
-
* @param {
|
|
11450
|
+
* @param {SuccessfulUserLogin} message SuccessfulUserLogin
|
|
11316
11451
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
11317
11452
|
* @returns {Object.<string,*>} Plain object
|
|
11318
11453
|
*/
|
|
11319
|
-
|
|
11454
|
+
SuccessfulUserLogin.toObject = function toObject(message, options) {
|
|
11320
11455
|
if (!options)
|
|
11321
11456
|
options = {};
|
|
11322
11457
|
var object = {};
|
|
11323
11458
|
if (options.defaults) {
|
|
11324
11459
|
object.hsId = "";
|
|
11325
|
-
object.connection = options.enums === String ? "UNKNOWN_CONNECTION" : 0;
|
|
11326
11460
|
if ($util.Long) {
|
|
11327
11461
|
var long = new $util.Long(0, 0, true);
|
|
11328
|
-
object.
|
|
11462
|
+
object.loginAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
11329
11463
|
} else
|
|
11330
|
-
object.
|
|
11464
|
+
object.loginAt = options.longs === String ? "0" : 0;
|
|
11465
|
+
object.client = options.enums === String ? "UNKNOWN_CLIENT" : 0;
|
|
11466
|
+
object.connection = options.enums === String ? "UNKNOWN_CONNECTION" : 0;
|
|
11331
11467
|
}
|
|
11332
11468
|
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
11333
11469
|
object.hsId = message.hsId;
|
|
11470
|
+
if (message.loginAt != null && message.hasOwnProperty("loginAt"))
|
|
11471
|
+
if (typeof message.loginAt === "number")
|
|
11472
|
+
object.loginAt = options.longs === String ? String(message.loginAt) : message.loginAt;
|
|
11473
|
+
else
|
|
11474
|
+
object.loginAt = options.longs === String ? $util.Long.prototype.toString.call(message.loginAt) : options.longs === Number ? new $util.LongBits(message.loginAt.low >>> 0, message.loginAt.high >>> 0).toNumber(true) : message.loginAt;
|
|
11475
|
+
if (message.client != null && message.hasOwnProperty("client"))
|
|
11476
|
+
object.client = options.enums === String ? $root.auth0.client.Client[message.client] : message.client;
|
|
11334
11477
|
if (message.connection != null && message.hasOwnProperty("connection"))
|
|
11335
11478
|
object.connection = options.enums === String ? $root.auth0.connections.Connection[message.connection] : message.connection;
|
|
11336
|
-
if (message.unlinkedAt != null && message.hasOwnProperty("unlinkedAt"))
|
|
11337
|
-
if (typeof message.unlinkedAt === "number")
|
|
11338
|
-
object.unlinkedAt = options.longs === String ? String(message.unlinkedAt) : message.unlinkedAt;
|
|
11339
|
-
else
|
|
11340
|
-
object.unlinkedAt = options.longs === String ? $util.Long.prototype.toString.call(message.unlinkedAt) : options.longs === Number ? new $util.LongBits(message.unlinkedAt.low >>> 0, message.unlinkedAt.high >>> 0).toNumber(true) : message.unlinkedAt;
|
|
11341
11479
|
return object;
|
|
11342
11480
|
};
|
|
11343
11481
|
|
|
11344
11482
|
/**
|
|
11345
|
-
* Converts this
|
|
11483
|
+
* Converts this SuccessfulUserLogin to JSON.
|
|
11346
11484
|
* @function toJSON
|
|
11347
|
-
* @memberof
|
|
11485
|
+
* @memberof SuccessfulUserLogin
|
|
11348
11486
|
* @instance
|
|
11349
11487
|
* @returns {Object.<string,*>} JSON object
|
|
11350
11488
|
*/
|
|
11351
|
-
|
|
11489
|
+
SuccessfulUserLogin.prototype.toJSON = function toJSON() {
|
|
11352
11490
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
11353
11491
|
};
|
|
11354
11492
|
|
|
11355
|
-
return
|
|
11493
|
+
return SuccessfulUserLogin;
|
|
11356
11494
|
})();
|
|
11357
11495
|
|
|
11358
|
-
$root.
|
|
11496
|
+
$root.UnlinkedConnection = (function() {
|
|
11359
11497
|
|
|
11360
11498
|
/**
|
|
11361
|
-
* Properties of
|
|
11362
|
-
* @exports
|
|
11363
|
-
* @interface
|
|
11364
|
-
* @property {string|null} [hsId]
|
|
11365
|
-
* @property {
|
|
11366
|
-
* @property {number|Long|null} [
|
|
11499
|
+
* Properties of an UnlinkedConnection.
|
|
11500
|
+
* @exports IUnlinkedConnection
|
|
11501
|
+
* @interface IUnlinkedConnection
|
|
11502
|
+
* @property {string|null} [hsId] UnlinkedConnection hsId
|
|
11503
|
+
* @property {auth0.connections.Connection|null} [connection] UnlinkedConnection connection
|
|
11504
|
+
* @property {number|Long|null} [unlinkedAt] UnlinkedConnection unlinkedAt
|
|
11367
11505
|
*/
|
|
11368
11506
|
|
|
11369
11507
|
/**
|
|
11370
|
-
* Constructs a new
|
|
11371
|
-
* @exports
|
|
11372
|
-
* @classdesc Represents
|
|
11373
|
-
* @implements
|
|
11508
|
+
* Constructs a new UnlinkedConnection.
|
|
11509
|
+
* @exports UnlinkedConnection
|
|
11510
|
+
* @classdesc Represents an UnlinkedConnection.
|
|
11511
|
+
* @implements IUnlinkedConnection
|
|
11374
11512
|
* @constructor
|
|
11375
|
-
* @param {
|
|
11513
|
+
* @param {IUnlinkedConnection=} [properties] Properties to set
|
|
11376
11514
|
*/
|
|
11377
|
-
function
|
|
11515
|
+
function UnlinkedConnection(properties) {
|
|
11378
11516
|
if (properties)
|
|
11379
11517
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
11380
11518
|
if (properties[keys[i]] != null)
|
|
@@ -11382,90 +11520,90 @@ $root.BlockedUnverifiedEmail = (function() {
|
|
|
11382
11520
|
}
|
|
11383
11521
|
|
|
11384
11522
|
/**
|
|
11385
|
-
*
|
|
11523
|
+
* UnlinkedConnection hsId.
|
|
11386
11524
|
* @member {string} hsId
|
|
11387
|
-
* @memberof
|
|
11525
|
+
* @memberof UnlinkedConnection
|
|
11388
11526
|
* @instance
|
|
11389
11527
|
*/
|
|
11390
|
-
|
|
11528
|
+
UnlinkedConnection.prototype.hsId = "";
|
|
11391
11529
|
|
|
11392
11530
|
/**
|
|
11393
|
-
*
|
|
11394
|
-
* @member {
|
|
11395
|
-
* @memberof
|
|
11531
|
+
* UnlinkedConnection connection.
|
|
11532
|
+
* @member {auth0.connections.Connection} connection
|
|
11533
|
+
* @memberof UnlinkedConnection
|
|
11396
11534
|
* @instance
|
|
11397
11535
|
*/
|
|
11398
|
-
|
|
11536
|
+
UnlinkedConnection.prototype.connection = 0;
|
|
11399
11537
|
|
|
11400
11538
|
/**
|
|
11401
|
-
*
|
|
11402
|
-
* @member {number|Long}
|
|
11403
|
-
* @memberof
|
|
11539
|
+
* UnlinkedConnection unlinkedAt.
|
|
11540
|
+
* @member {number|Long} unlinkedAt
|
|
11541
|
+
* @memberof UnlinkedConnection
|
|
11404
11542
|
* @instance
|
|
11405
11543
|
*/
|
|
11406
|
-
|
|
11544
|
+
UnlinkedConnection.prototype.unlinkedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
11407
11545
|
|
|
11408
11546
|
/**
|
|
11409
|
-
* Creates a new
|
|
11547
|
+
* Creates a new UnlinkedConnection instance using the specified properties.
|
|
11410
11548
|
* @function create
|
|
11411
|
-
* @memberof
|
|
11549
|
+
* @memberof UnlinkedConnection
|
|
11412
11550
|
* @static
|
|
11413
|
-
* @param {
|
|
11414
|
-
* @returns {
|
|
11551
|
+
* @param {IUnlinkedConnection=} [properties] Properties to set
|
|
11552
|
+
* @returns {UnlinkedConnection} UnlinkedConnection instance
|
|
11415
11553
|
*/
|
|
11416
|
-
|
|
11417
|
-
return new
|
|
11554
|
+
UnlinkedConnection.create = function create(properties) {
|
|
11555
|
+
return new UnlinkedConnection(properties);
|
|
11418
11556
|
};
|
|
11419
11557
|
|
|
11420
11558
|
/**
|
|
11421
|
-
* Encodes the specified
|
|
11559
|
+
* Encodes the specified UnlinkedConnection message. Does not implicitly {@link UnlinkedConnection.verify|verify} messages.
|
|
11422
11560
|
* @function encode
|
|
11423
|
-
* @memberof
|
|
11561
|
+
* @memberof UnlinkedConnection
|
|
11424
11562
|
* @static
|
|
11425
|
-
* @param {
|
|
11563
|
+
* @param {IUnlinkedConnection} message UnlinkedConnection message or plain object to encode
|
|
11426
11564
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
11427
11565
|
* @returns {$protobuf.Writer} Writer
|
|
11428
11566
|
*/
|
|
11429
|
-
|
|
11567
|
+
UnlinkedConnection.encode = function encode(message, writer) {
|
|
11430
11568
|
if (!writer)
|
|
11431
11569
|
writer = $Writer.create();
|
|
11432
11570
|
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
11433
11571
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsId);
|
|
11434
|
-
if (message.
|
|
11435
|
-
writer.uint32(/* id 2, wireType
|
|
11436
|
-
if (message.
|
|
11437
|
-
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.
|
|
11572
|
+
if (message.connection != null && message.hasOwnProperty("connection"))
|
|
11573
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.connection);
|
|
11574
|
+
if (message.unlinkedAt != null && message.hasOwnProperty("unlinkedAt"))
|
|
11575
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.unlinkedAt);
|
|
11438
11576
|
return writer;
|
|
11439
11577
|
};
|
|
11440
11578
|
|
|
11441
11579
|
/**
|
|
11442
|
-
* Encodes the specified
|
|
11580
|
+
* Encodes the specified UnlinkedConnection message, length delimited. Does not implicitly {@link UnlinkedConnection.verify|verify} messages.
|
|
11443
11581
|
* @function encodeDelimited
|
|
11444
|
-
* @memberof
|
|
11582
|
+
* @memberof UnlinkedConnection
|
|
11445
11583
|
* @static
|
|
11446
|
-
* @param {
|
|
11584
|
+
* @param {IUnlinkedConnection} message UnlinkedConnection message or plain object to encode
|
|
11447
11585
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
11448
11586
|
* @returns {$protobuf.Writer} Writer
|
|
11449
11587
|
*/
|
|
11450
|
-
|
|
11588
|
+
UnlinkedConnection.encodeDelimited = function encodeDelimited(message, writer) {
|
|
11451
11589
|
return this.encode(message, writer).ldelim();
|
|
11452
11590
|
};
|
|
11453
11591
|
|
|
11454
11592
|
/**
|
|
11455
|
-
* Decodes
|
|
11593
|
+
* Decodes an UnlinkedConnection message from the specified reader or buffer.
|
|
11456
11594
|
* @function decode
|
|
11457
|
-
* @memberof
|
|
11595
|
+
* @memberof UnlinkedConnection
|
|
11458
11596
|
* @static
|
|
11459
11597
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
11460
11598
|
* @param {number} [length] Message length if known beforehand
|
|
11461
|
-
* @returns {
|
|
11599
|
+
* @returns {UnlinkedConnection} UnlinkedConnection
|
|
11462
11600
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11463
11601
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11464
11602
|
*/
|
|
11465
|
-
|
|
11603
|
+
UnlinkedConnection.decode = function decode(reader, length) {
|
|
11466
11604
|
if (!(reader instanceof $Reader))
|
|
11467
11605
|
reader = $Reader.create(reader);
|
|
11468
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.
|
|
11606
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UnlinkedConnection();
|
|
11469
11607
|
while (reader.pos < end) {
|
|
11470
11608
|
var tag = reader.uint32();
|
|
11471
11609
|
switch (tag >>> 3) {
|
|
@@ -11473,10 +11611,10 @@ $root.BlockedUnverifiedEmail = (function() {
|
|
|
11473
11611
|
message.hsId = reader.string();
|
|
11474
11612
|
break;
|
|
11475
11613
|
case 2:
|
|
11476
|
-
message.
|
|
11614
|
+
message.connection = reader.int32();
|
|
11477
11615
|
break;
|
|
11478
11616
|
case 3:
|
|
11479
|
-
message.
|
|
11617
|
+
message.unlinkedAt = reader.uint64();
|
|
11480
11618
|
break;
|
|
11481
11619
|
default:
|
|
11482
11620
|
reader.skipType(tag & 7);
|
|
@@ -11487,140 +11625,178 @@ $root.BlockedUnverifiedEmail = (function() {
|
|
|
11487
11625
|
};
|
|
11488
11626
|
|
|
11489
11627
|
/**
|
|
11490
|
-
* Decodes
|
|
11628
|
+
* Decodes an UnlinkedConnection message from the specified reader or buffer, length delimited.
|
|
11491
11629
|
* @function decodeDelimited
|
|
11492
|
-
* @memberof
|
|
11630
|
+
* @memberof UnlinkedConnection
|
|
11493
11631
|
* @static
|
|
11494
11632
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
11495
|
-
* @returns {
|
|
11633
|
+
* @returns {UnlinkedConnection} UnlinkedConnection
|
|
11496
11634
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11497
11635
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11498
11636
|
*/
|
|
11499
|
-
|
|
11637
|
+
UnlinkedConnection.decodeDelimited = function decodeDelimited(reader) {
|
|
11500
11638
|
if (!(reader instanceof $Reader))
|
|
11501
11639
|
reader = new $Reader(reader);
|
|
11502
11640
|
return this.decode(reader, reader.uint32());
|
|
11503
11641
|
};
|
|
11504
11642
|
|
|
11505
11643
|
/**
|
|
11506
|
-
* Verifies
|
|
11644
|
+
* Verifies an UnlinkedConnection message.
|
|
11507
11645
|
* @function verify
|
|
11508
|
-
* @memberof
|
|
11646
|
+
* @memberof UnlinkedConnection
|
|
11509
11647
|
* @static
|
|
11510
11648
|
* @param {Object.<string,*>} message Plain object to verify
|
|
11511
11649
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
11512
11650
|
*/
|
|
11513
|
-
|
|
11651
|
+
UnlinkedConnection.verify = function verify(message) {
|
|
11514
11652
|
if (typeof message !== "object" || message === null)
|
|
11515
11653
|
return "object expected";
|
|
11516
11654
|
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
11517
11655
|
if (!$util.isString(message.hsId))
|
|
11518
11656
|
return "hsId: string expected";
|
|
11519
|
-
if (message.
|
|
11520
|
-
|
|
11521
|
-
|
|
11522
|
-
|
|
11523
|
-
|
|
11524
|
-
|
|
11657
|
+
if (message.connection != null && message.hasOwnProperty("connection"))
|
|
11658
|
+
switch (message.connection) {
|
|
11659
|
+
default:
|
|
11660
|
+
return "connection: enum value expected";
|
|
11661
|
+
case 0:
|
|
11662
|
+
case 1:
|
|
11663
|
+
case 2:
|
|
11664
|
+
case 3:
|
|
11665
|
+
case 4:
|
|
11666
|
+
case 5:
|
|
11667
|
+
case 6:
|
|
11668
|
+
break;
|
|
11669
|
+
}
|
|
11670
|
+
if (message.unlinkedAt != null && message.hasOwnProperty("unlinkedAt"))
|
|
11671
|
+
if (!$util.isInteger(message.unlinkedAt) && !(message.unlinkedAt && $util.isInteger(message.unlinkedAt.low) && $util.isInteger(message.unlinkedAt.high)))
|
|
11672
|
+
return "unlinkedAt: integer|Long expected";
|
|
11525
11673
|
return null;
|
|
11526
11674
|
};
|
|
11527
11675
|
|
|
11528
11676
|
/**
|
|
11529
|
-
* Creates
|
|
11677
|
+
* Creates an UnlinkedConnection message from a plain object. Also converts values to their respective internal types.
|
|
11530
11678
|
* @function fromObject
|
|
11531
|
-
* @memberof
|
|
11679
|
+
* @memberof UnlinkedConnection
|
|
11532
11680
|
* @static
|
|
11533
11681
|
* @param {Object.<string,*>} object Plain object
|
|
11534
|
-
* @returns {
|
|
11682
|
+
* @returns {UnlinkedConnection} UnlinkedConnection
|
|
11535
11683
|
*/
|
|
11536
|
-
|
|
11537
|
-
if (object instanceof $root.
|
|
11684
|
+
UnlinkedConnection.fromObject = function fromObject(object) {
|
|
11685
|
+
if (object instanceof $root.UnlinkedConnection)
|
|
11538
11686
|
return object;
|
|
11539
|
-
var message = new $root.
|
|
11687
|
+
var message = new $root.UnlinkedConnection();
|
|
11540
11688
|
if (object.hsId != null)
|
|
11541
11689
|
message.hsId = String(object.hsId);
|
|
11542
|
-
|
|
11543
|
-
|
|
11544
|
-
|
|
11690
|
+
switch (object.connection) {
|
|
11691
|
+
case "UNKNOWN_CONNECTION":
|
|
11692
|
+
case 0:
|
|
11693
|
+
message.connection = 0;
|
|
11694
|
+
break;
|
|
11695
|
+
case "APPLE":
|
|
11696
|
+
case 1:
|
|
11697
|
+
message.connection = 1;
|
|
11698
|
+
break;
|
|
11699
|
+
case "FACEBOOK":
|
|
11700
|
+
case 2:
|
|
11701
|
+
message.connection = 2;
|
|
11702
|
+
break;
|
|
11703
|
+
case "ONELOGIN":
|
|
11704
|
+
case 3:
|
|
11705
|
+
message.connection = 3;
|
|
11706
|
+
break;
|
|
11707
|
+
case "SPOTIFY":
|
|
11708
|
+
case 4:
|
|
11709
|
+
message.connection = 4;
|
|
11710
|
+
break;
|
|
11711
|
+
case "USER_PASSWORD_HEADSPACE":
|
|
11712
|
+
case 5:
|
|
11713
|
+
message.connection = 5;
|
|
11714
|
+
break;
|
|
11715
|
+
case "VIRGINPULSE":
|
|
11716
|
+
case 6:
|
|
11717
|
+
message.connection = 6;
|
|
11718
|
+
break;
|
|
11719
|
+
}
|
|
11720
|
+
if (object.unlinkedAt != null)
|
|
11545
11721
|
if ($util.Long)
|
|
11546
|
-
(message.
|
|
11547
|
-
else if (typeof object.
|
|
11548
|
-
message.
|
|
11549
|
-
else if (typeof object.
|
|
11550
|
-
message.
|
|
11551
|
-
else if (typeof object.
|
|
11552
|
-
message.
|
|
11722
|
+
(message.unlinkedAt = $util.Long.fromValue(object.unlinkedAt)).unsigned = true;
|
|
11723
|
+
else if (typeof object.unlinkedAt === "string")
|
|
11724
|
+
message.unlinkedAt = parseInt(object.unlinkedAt, 10);
|
|
11725
|
+
else if (typeof object.unlinkedAt === "number")
|
|
11726
|
+
message.unlinkedAt = object.unlinkedAt;
|
|
11727
|
+
else if (typeof object.unlinkedAt === "object")
|
|
11728
|
+
message.unlinkedAt = new $util.LongBits(object.unlinkedAt.low >>> 0, object.unlinkedAt.high >>> 0).toNumber(true);
|
|
11553
11729
|
return message;
|
|
11554
11730
|
};
|
|
11555
11731
|
|
|
11556
11732
|
/**
|
|
11557
|
-
* Creates a plain object from
|
|
11733
|
+
* Creates a plain object from an UnlinkedConnection message. Also converts values to other types if specified.
|
|
11558
11734
|
* @function toObject
|
|
11559
|
-
* @memberof
|
|
11735
|
+
* @memberof UnlinkedConnection
|
|
11560
11736
|
* @static
|
|
11561
|
-
* @param {
|
|
11737
|
+
* @param {UnlinkedConnection} message UnlinkedConnection
|
|
11562
11738
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
11563
11739
|
* @returns {Object.<string,*>} Plain object
|
|
11564
11740
|
*/
|
|
11565
|
-
|
|
11741
|
+
UnlinkedConnection.toObject = function toObject(message, options) {
|
|
11566
11742
|
if (!options)
|
|
11567
11743
|
options = {};
|
|
11568
11744
|
var object = {};
|
|
11569
11745
|
if (options.defaults) {
|
|
11570
11746
|
object.hsId = "";
|
|
11571
|
-
object.
|
|
11747
|
+
object.connection = options.enums === String ? "UNKNOWN_CONNECTION" : 0;
|
|
11572
11748
|
if ($util.Long) {
|
|
11573
11749
|
var long = new $util.Long(0, 0, true);
|
|
11574
|
-
object.
|
|
11750
|
+
object.unlinkedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
11575
11751
|
} else
|
|
11576
|
-
object.
|
|
11752
|
+
object.unlinkedAt = options.longs === String ? "0" : 0;
|
|
11577
11753
|
}
|
|
11578
11754
|
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
11579
11755
|
object.hsId = message.hsId;
|
|
11580
|
-
if (message.
|
|
11581
|
-
object.
|
|
11582
|
-
if (message.
|
|
11583
|
-
if (typeof message.
|
|
11584
|
-
object.
|
|
11756
|
+
if (message.connection != null && message.hasOwnProperty("connection"))
|
|
11757
|
+
object.connection = options.enums === String ? $root.auth0.connections.Connection[message.connection] : message.connection;
|
|
11758
|
+
if (message.unlinkedAt != null && message.hasOwnProperty("unlinkedAt"))
|
|
11759
|
+
if (typeof message.unlinkedAt === "number")
|
|
11760
|
+
object.unlinkedAt = options.longs === String ? String(message.unlinkedAt) : message.unlinkedAt;
|
|
11585
11761
|
else
|
|
11586
|
-
object.
|
|
11762
|
+
object.unlinkedAt = options.longs === String ? $util.Long.prototype.toString.call(message.unlinkedAt) : options.longs === Number ? new $util.LongBits(message.unlinkedAt.low >>> 0, message.unlinkedAt.high >>> 0).toNumber(true) : message.unlinkedAt;
|
|
11587
11763
|
return object;
|
|
11588
11764
|
};
|
|
11589
11765
|
|
|
11590
11766
|
/**
|
|
11591
|
-
* Converts this
|
|
11767
|
+
* Converts this UnlinkedConnection to JSON.
|
|
11592
11768
|
* @function toJSON
|
|
11593
|
-
* @memberof
|
|
11769
|
+
* @memberof UnlinkedConnection
|
|
11594
11770
|
* @instance
|
|
11595
11771
|
* @returns {Object.<string,*>} JSON object
|
|
11596
11772
|
*/
|
|
11597
|
-
|
|
11773
|
+
UnlinkedConnection.prototype.toJSON = function toJSON() {
|
|
11598
11774
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
11599
11775
|
};
|
|
11600
11776
|
|
|
11601
|
-
return
|
|
11777
|
+
return UnlinkedConnection;
|
|
11602
11778
|
})();
|
|
11603
11779
|
|
|
11604
|
-
$root.
|
|
11780
|
+
$root.BlockedUnverifiedEmail = (function() {
|
|
11605
11781
|
|
|
11606
11782
|
/**
|
|
11607
|
-
* Properties of
|
|
11608
|
-
* @exports
|
|
11609
|
-
* @interface
|
|
11610
|
-
* @property {string|null} [hsId]
|
|
11611
|
-
* @property {string|null} [email]
|
|
11612
|
-
* @property {number|Long|null} [timestampMillis]
|
|
11783
|
+
* Properties of a BlockedUnverifiedEmail.
|
|
11784
|
+
* @exports IBlockedUnverifiedEmail
|
|
11785
|
+
* @interface IBlockedUnverifiedEmail
|
|
11786
|
+
* @property {string|null} [hsId] BlockedUnverifiedEmail hsId
|
|
11787
|
+
* @property {string|null} [email] BlockedUnverifiedEmail email
|
|
11788
|
+
* @property {number|Long|null} [timestampMillis] BlockedUnverifiedEmail timestampMillis
|
|
11613
11789
|
*/
|
|
11614
11790
|
|
|
11615
11791
|
/**
|
|
11616
|
-
* Constructs a new
|
|
11617
|
-
* @exports
|
|
11618
|
-
* @classdesc Represents
|
|
11619
|
-
* @implements
|
|
11792
|
+
* Constructs a new BlockedUnverifiedEmail.
|
|
11793
|
+
* @exports BlockedUnverifiedEmail
|
|
11794
|
+
* @classdesc Represents a BlockedUnverifiedEmail.
|
|
11795
|
+
* @implements IBlockedUnverifiedEmail
|
|
11620
11796
|
* @constructor
|
|
11621
|
-
* @param {
|
|
11797
|
+
* @param {IBlockedUnverifiedEmail=} [properties] Properties to set
|
|
11622
11798
|
*/
|
|
11623
|
-
function
|
|
11799
|
+
function BlockedUnverifiedEmail(properties) {
|
|
11624
11800
|
if (properties)
|
|
11625
11801
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
11626
11802
|
if (properties[keys[i]] != null)
|
|
@@ -11628,51 +11804,51 @@ $root.Auth0PasswordResetCompleted = (function() {
|
|
|
11628
11804
|
}
|
|
11629
11805
|
|
|
11630
11806
|
/**
|
|
11631
|
-
*
|
|
11807
|
+
* BlockedUnverifiedEmail hsId.
|
|
11632
11808
|
* @member {string} hsId
|
|
11633
|
-
* @memberof
|
|
11809
|
+
* @memberof BlockedUnverifiedEmail
|
|
11634
11810
|
* @instance
|
|
11635
11811
|
*/
|
|
11636
|
-
|
|
11812
|
+
BlockedUnverifiedEmail.prototype.hsId = "";
|
|
11637
11813
|
|
|
11638
11814
|
/**
|
|
11639
|
-
*
|
|
11815
|
+
* BlockedUnverifiedEmail email.
|
|
11640
11816
|
* @member {string} email
|
|
11641
|
-
* @memberof
|
|
11817
|
+
* @memberof BlockedUnverifiedEmail
|
|
11642
11818
|
* @instance
|
|
11643
11819
|
*/
|
|
11644
|
-
|
|
11820
|
+
BlockedUnverifiedEmail.prototype.email = "";
|
|
11645
11821
|
|
|
11646
11822
|
/**
|
|
11647
|
-
*
|
|
11823
|
+
* BlockedUnverifiedEmail timestampMillis.
|
|
11648
11824
|
* @member {number|Long} timestampMillis
|
|
11649
|
-
* @memberof
|
|
11825
|
+
* @memberof BlockedUnverifiedEmail
|
|
11650
11826
|
* @instance
|
|
11651
11827
|
*/
|
|
11652
|
-
|
|
11828
|
+
BlockedUnverifiedEmail.prototype.timestampMillis = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
11653
11829
|
|
|
11654
11830
|
/**
|
|
11655
|
-
* Creates a new
|
|
11831
|
+
* Creates a new BlockedUnverifiedEmail instance using the specified properties.
|
|
11656
11832
|
* @function create
|
|
11657
|
-
* @memberof
|
|
11833
|
+
* @memberof BlockedUnverifiedEmail
|
|
11658
11834
|
* @static
|
|
11659
|
-
* @param {
|
|
11660
|
-
* @returns {
|
|
11835
|
+
* @param {IBlockedUnverifiedEmail=} [properties] Properties to set
|
|
11836
|
+
* @returns {BlockedUnverifiedEmail} BlockedUnverifiedEmail instance
|
|
11661
11837
|
*/
|
|
11662
|
-
|
|
11663
|
-
return new
|
|
11838
|
+
BlockedUnverifiedEmail.create = function create(properties) {
|
|
11839
|
+
return new BlockedUnverifiedEmail(properties);
|
|
11664
11840
|
};
|
|
11665
11841
|
|
|
11666
11842
|
/**
|
|
11667
|
-
* Encodes the specified
|
|
11843
|
+
* Encodes the specified BlockedUnverifiedEmail message. Does not implicitly {@link BlockedUnverifiedEmail.verify|verify} messages.
|
|
11668
11844
|
* @function encode
|
|
11669
|
-
* @memberof
|
|
11845
|
+
* @memberof BlockedUnverifiedEmail
|
|
11670
11846
|
* @static
|
|
11671
|
-
* @param {
|
|
11847
|
+
* @param {IBlockedUnverifiedEmail} message BlockedUnverifiedEmail message or plain object to encode
|
|
11672
11848
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
11673
11849
|
* @returns {$protobuf.Writer} Writer
|
|
11674
11850
|
*/
|
|
11675
|
-
|
|
11851
|
+
BlockedUnverifiedEmail.encode = function encode(message, writer) {
|
|
11676
11852
|
if (!writer)
|
|
11677
11853
|
writer = $Writer.create();
|
|
11678
11854
|
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
@@ -11685,33 +11861,33 @@ $root.Auth0PasswordResetCompleted = (function() {
|
|
|
11685
11861
|
};
|
|
11686
11862
|
|
|
11687
11863
|
/**
|
|
11688
|
-
* Encodes the specified
|
|
11864
|
+
* Encodes the specified BlockedUnverifiedEmail message, length delimited. Does not implicitly {@link BlockedUnverifiedEmail.verify|verify} messages.
|
|
11689
11865
|
* @function encodeDelimited
|
|
11690
|
-
* @memberof
|
|
11866
|
+
* @memberof BlockedUnverifiedEmail
|
|
11691
11867
|
* @static
|
|
11692
|
-
* @param {
|
|
11868
|
+
* @param {IBlockedUnverifiedEmail} message BlockedUnverifiedEmail message or plain object to encode
|
|
11693
11869
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
11694
11870
|
* @returns {$protobuf.Writer} Writer
|
|
11695
11871
|
*/
|
|
11696
|
-
|
|
11872
|
+
BlockedUnverifiedEmail.encodeDelimited = function encodeDelimited(message, writer) {
|
|
11697
11873
|
return this.encode(message, writer).ldelim();
|
|
11698
11874
|
};
|
|
11699
11875
|
|
|
11700
11876
|
/**
|
|
11701
|
-
* Decodes
|
|
11877
|
+
* Decodes a BlockedUnverifiedEmail message from the specified reader or buffer.
|
|
11702
11878
|
* @function decode
|
|
11703
|
-
* @memberof
|
|
11879
|
+
* @memberof BlockedUnverifiedEmail
|
|
11704
11880
|
* @static
|
|
11705
11881
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
11706
11882
|
* @param {number} [length] Message length if known beforehand
|
|
11707
|
-
* @returns {
|
|
11883
|
+
* @returns {BlockedUnverifiedEmail} BlockedUnverifiedEmail
|
|
11708
11884
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11709
11885
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11710
11886
|
*/
|
|
11711
|
-
|
|
11887
|
+
BlockedUnverifiedEmail.decode = function decode(reader, length) {
|
|
11712
11888
|
if (!(reader instanceof $Reader))
|
|
11713
11889
|
reader = $Reader.create(reader);
|
|
11714
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.
|
|
11890
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.BlockedUnverifiedEmail();
|
|
11715
11891
|
while (reader.pos < end) {
|
|
11716
11892
|
var tag = reader.uint32();
|
|
11717
11893
|
switch (tag >>> 3) {
|
|
@@ -11733,30 +11909,30 @@ $root.Auth0PasswordResetCompleted = (function() {
|
|
|
11733
11909
|
};
|
|
11734
11910
|
|
|
11735
11911
|
/**
|
|
11736
|
-
* Decodes
|
|
11912
|
+
* Decodes a BlockedUnverifiedEmail message from the specified reader or buffer, length delimited.
|
|
11737
11913
|
* @function decodeDelimited
|
|
11738
|
-
* @memberof
|
|
11914
|
+
* @memberof BlockedUnverifiedEmail
|
|
11739
11915
|
* @static
|
|
11740
11916
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
11741
|
-
* @returns {
|
|
11917
|
+
* @returns {BlockedUnverifiedEmail} BlockedUnverifiedEmail
|
|
11742
11918
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11743
11919
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11744
11920
|
*/
|
|
11745
|
-
|
|
11921
|
+
BlockedUnverifiedEmail.decodeDelimited = function decodeDelimited(reader) {
|
|
11746
11922
|
if (!(reader instanceof $Reader))
|
|
11747
11923
|
reader = new $Reader(reader);
|
|
11748
11924
|
return this.decode(reader, reader.uint32());
|
|
11749
11925
|
};
|
|
11750
11926
|
|
|
11751
11927
|
/**
|
|
11752
|
-
* Verifies
|
|
11928
|
+
* Verifies a BlockedUnverifiedEmail message.
|
|
11753
11929
|
* @function verify
|
|
11754
|
-
* @memberof
|
|
11930
|
+
* @memberof BlockedUnverifiedEmail
|
|
11755
11931
|
* @static
|
|
11756
11932
|
* @param {Object.<string,*>} message Plain object to verify
|
|
11757
11933
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
11758
11934
|
*/
|
|
11759
|
-
|
|
11935
|
+
BlockedUnverifiedEmail.verify = function verify(message) {
|
|
11760
11936
|
if (typeof message !== "object" || message === null)
|
|
11761
11937
|
return "object expected";
|
|
11762
11938
|
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
@@ -11772,17 +11948,17 @@ $root.Auth0PasswordResetCompleted = (function() {
|
|
|
11772
11948
|
};
|
|
11773
11949
|
|
|
11774
11950
|
/**
|
|
11775
|
-
* Creates
|
|
11951
|
+
* Creates a BlockedUnverifiedEmail message from a plain object. Also converts values to their respective internal types.
|
|
11776
11952
|
* @function fromObject
|
|
11777
|
-
* @memberof
|
|
11953
|
+
* @memberof BlockedUnverifiedEmail
|
|
11778
11954
|
* @static
|
|
11779
11955
|
* @param {Object.<string,*>} object Plain object
|
|
11780
|
-
* @returns {
|
|
11956
|
+
* @returns {BlockedUnverifiedEmail} BlockedUnverifiedEmail
|
|
11781
11957
|
*/
|
|
11782
|
-
|
|
11783
|
-
if (object instanceof $root.
|
|
11958
|
+
BlockedUnverifiedEmail.fromObject = function fromObject(object) {
|
|
11959
|
+
if (object instanceof $root.BlockedUnverifiedEmail)
|
|
11784
11960
|
return object;
|
|
11785
|
-
var message = new $root.
|
|
11961
|
+
var message = new $root.BlockedUnverifiedEmail();
|
|
11786
11962
|
if (object.hsId != null)
|
|
11787
11963
|
message.hsId = String(object.hsId);
|
|
11788
11964
|
if (object.email != null)
|
|
@@ -11800,15 +11976,15 @@ $root.Auth0PasswordResetCompleted = (function() {
|
|
|
11800
11976
|
};
|
|
11801
11977
|
|
|
11802
11978
|
/**
|
|
11803
|
-
* Creates a plain object from
|
|
11979
|
+
* Creates a plain object from a BlockedUnverifiedEmail message. Also converts values to other types if specified.
|
|
11804
11980
|
* @function toObject
|
|
11805
|
-
* @memberof
|
|
11981
|
+
* @memberof BlockedUnverifiedEmail
|
|
11806
11982
|
* @static
|
|
11807
|
-
* @param {
|
|
11983
|
+
* @param {BlockedUnverifiedEmail} message BlockedUnverifiedEmail
|
|
11808
11984
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
11809
11985
|
* @returns {Object.<string,*>} Plain object
|
|
11810
11986
|
*/
|
|
11811
|
-
|
|
11987
|
+
BlockedUnverifiedEmail.toObject = function toObject(message, options) {
|
|
11812
11988
|
if (!options)
|
|
11813
11989
|
options = {};
|
|
11814
11990
|
var object = {};
|
|
@@ -11834,13 +12010,259 @@ $root.Auth0PasswordResetCompleted = (function() {
|
|
|
11834
12010
|
};
|
|
11835
12011
|
|
|
11836
12012
|
/**
|
|
11837
|
-
* Converts this
|
|
12013
|
+
* Converts this BlockedUnverifiedEmail to JSON.
|
|
11838
12014
|
* @function toJSON
|
|
11839
|
-
* @memberof
|
|
12015
|
+
* @memberof BlockedUnverifiedEmail
|
|
11840
12016
|
* @instance
|
|
11841
12017
|
* @returns {Object.<string,*>} JSON object
|
|
11842
12018
|
*/
|
|
11843
|
-
|
|
12019
|
+
BlockedUnverifiedEmail.prototype.toJSON = function toJSON() {
|
|
12020
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
12021
|
+
};
|
|
12022
|
+
|
|
12023
|
+
return BlockedUnverifiedEmail;
|
|
12024
|
+
})();
|
|
12025
|
+
|
|
12026
|
+
$root.Auth0PasswordResetCompleted = (function() {
|
|
12027
|
+
|
|
12028
|
+
/**
|
|
12029
|
+
* Properties of an Auth0PasswordResetCompleted.
|
|
12030
|
+
* @exports IAuth0PasswordResetCompleted
|
|
12031
|
+
* @interface IAuth0PasswordResetCompleted
|
|
12032
|
+
* @property {string|null} [hsId] Auth0PasswordResetCompleted hsId
|
|
12033
|
+
* @property {string|null} [email] Auth0PasswordResetCompleted email
|
|
12034
|
+
* @property {number|Long|null} [timestampMillis] Auth0PasswordResetCompleted timestampMillis
|
|
12035
|
+
*/
|
|
12036
|
+
|
|
12037
|
+
/**
|
|
12038
|
+
* Constructs a new Auth0PasswordResetCompleted.
|
|
12039
|
+
* @exports Auth0PasswordResetCompleted
|
|
12040
|
+
* @classdesc Represents an Auth0PasswordResetCompleted.
|
|
12041
|
+
* @implements IAuth0PasswordResetCompleted
|
|
12042
|
+
* @constructor
|
|
12043
|
+
* @param {IAuth0PasswordResetCompleted=} [properties] Properties to set
|
|
12044
|
+
*/
|
|
12045
|
+
function Auth0PasswordResetCompleted(properties) {
|
|
12046
|
+
if (properties)
|
|
12047
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
12048
|
+
if (properties[keys[i]] != null)
|
|
12049
|
+
this[keys[i]] = properties[keys[i]];
|
|
12050
|
+
}
|
|
12051
|
+
|
|
12052
|
+
/**
|
|
12053
|
+
* Auth0PasswordResetCompleted hsId.
|
|
12054
|
+
* @member {string} hsId
|
|
12055
|
+
* @memberof Auth0PasswordResetCompleted
|
|
12056
|
+
* @instance
|
|
12057
|
+
*/
|
|
12058
|
+
Auth0PasswordResetCompleted.prototype.hsId = "";
|
|
12059
|
+
|
|
12060
|
+
/**
|
|
12061
|
+
* Auth0PasswordResetCompleted email.
|
|
12062
|
+
* @member {string} email
|
|
12063
|
+
* @memberof Auth0PasswordResetCompleted
|
|
12064
|
+
* @instance
|
|
12065
|
+
*/
|
|
12066
|
+
Auth0PasswordResetCompleted.prototype.email = "";
|
|
12067
|
+
|
|
12068
|
+
/**
|
|
12069
|
+
* Auth0PasswordResetCompleted timestampMillis.
|
|
12070
|
+
* @member {number|Long} timestampMillis
|
|
12071
|
+
* @memberof Auth0PasswordResetCompleted
|
|
12072
|
+
* @instance
|
|
12073
|
+
*/
|
|
12074
|
+
Auth0PasswordResetCompleted.prototype.timestampMillis = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
12075
|
+
|
|
12076
|
+
/**
|
|
12077
|
+
* Creates a new Auth0PasswordResetCompleted instance using the specified properties.
|
|
12078
|
+
* @function create
|
|
12079
|
+
* @memberof Auth0PasswordResetCompleted
|
|
12080
|
+
* @static
|
|
12081
|
+
* @param {IAuth0PasswordResetCompleted=} [properties] Properties to set
|
|
12082
|
+
* @returns {Auth0PasswordResetCompleted} Auth0PasswordResetCompleted instance
|
|
12083
|
+
*/
|
|
12084
|
+
Auth0PasswordResetCompleted.create = function create(properties) {
|
|
12085
|
+
return new Auth0PasswordResetCompleted(properties);
|
|
12086
|
+
};
|
|
12087
|
+
|
|
12088
|
+
/**
|
|
12089
|
+
* Encodes the specified Auth0PasswordResetCompleted message. Does not implicitly {@link Auth0PasswordResetCompleted.verify|verify} messages.
|
|
12090
|
+
* @function encode
|
|
12091
|
+
* @memberof Auth0PasswordResetCompleted
|
|
12092
|
+
* @static
|
|
12093
|
+
* @param {IAuth0PasswordResetCompleted} message Auth0PasswordResetCompleted message or plain object to encode
|
|
12094
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
12095
|
+
* @returns {$protobuf.Writer} Writer
|
|
12096
|
+
*/
|
|
12097
|
+
Auth0PasswordResetCompleted.encode = function encode(message, writer) {
|
|
12098
|
+
if (!writer)
|
|
12099
|
+
writer = $Writer.create();
|
|
12100
|
+
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
12101
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsId);
|
|
12102
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
12103
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.email);
|
|
12104
|
+
if (message.timestampMillis != null && message.hasOwnProperty("timestampMillis"))
|
|
12105
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestampMillis);
|
|
12106
|
+
return writer;
|
|
12107
|
+
};
|
|
12108
|
+
|
|
12109
|
+
/**
|
|
12110
|
+
* Encodes the specified Auth0PasswordResetCompleted message, length delimited. Does not implicitly {@link Auth0PasswordResetCompleted.verify|verify} messages.
|
|
12111
|
+
* @function encodeDelimited
|
|
12112
|
+
* @memberof Auth0PasswordResetCompleted
|
|
12113
|
+
* @static
|
|
12114
|
+
* @param {IAuth0PasswordResetCompleted} message Auth0PasswordResetCompleted message or plain object to encode
|
|
12115
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
12116
|
+
* @returns {$protobuf.Writer} Writer
|
|
12117
|
+
*/
|
|
12118
|
+
Auth0PasswordResetCompleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
12119
|
+
return this.encode(message, writer).ldelim();
|
|
12120
|
+
};
|
|
12121
|
+
|
|
12122
|
+
/**
|
|
12123
|
+
* Decodes an Auth0PasswordResetCompleted message from the specified reader or buffer.
|
|
12124
|
+
* @function decode
|
|
12125
|
+
* @memberof Auth0PasswordResetCompleted
|
|
12126
|
+
* @static
|
|
12127
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12128
|
+
* @param {number} [length] Message length if known beforehand
|
|
12129
|
+
* @returns {Auth0PasswordResetCompleted} Auth0PasswordResetCompleted
|
|
12130
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12131
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12132
|
+
*/
|
|
12133
|
+
Auth0PasswordResetCompleted.decode = function decode(reader, length) {
|
|
12134
|
+
if (!(reader instanceof $Reader))
|
|
12135
|
+
reader = $Reader.create(reader);
|
|
12136
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.Auth0PasswordResetCompleted();
|
|
12137
|
+
while (reader.pos < end) {
|
|
12138
|
+
var tag = reader.uint32();
|
|
12139
|
+
switch (tag >>> 3) {
|
|
12140
|
+
case 1:
|
|
12141
|
+
message.hsId = reader.string();
|
|
12142
|
+
break;
|
|
12143
|
+
case 2:
|
|
12144
|
+
message.email = reader.string();
|
|
12145
|
+
break;
|
|
12146
|
+
case 3:
|
|
12147
|
+
message.timestampMillis = reader.uint64();
|
|
12148
|
+
break;
|
|
12149
|
+
default:
|
|
12150
|
+
reader.skipType(tag & 7);
|
|
12151
|
+
break;
|
|
12152
|
+
}
|
|
12153
|
+
}
|
|
12154
|
+
return message;
|
|
12155
|
+
};
|
|
12156
|
+
|
|
12157
|
+
/**
|
|
12158
|
+
* Decodes an Auth0PasswordResetCompleted message from the specified reader or buffer, length delimited.
|
|
12159
|
+
* @function decodeDelimited
|
|
12160
|
+
* @memberof Auth0PasswordResetCompleted
|
|
12161
|
+
* @static
|
|
12162
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12163
|
+
* @returns {Auth0PasswordResetCompleted} Auth0PasswordResetCompleted
|
|
12164
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12165
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12166
|
+
*/
|
|
12167
|
+
Auth0PasswordResetCompleted.decodeDelimited = function decodeDelimited(reader) {
|
|
12168
|
+
if (!(reader instanceof $Reader))
|
|
12169
|
+
reader = new $Reader(reader);
|
|
12170
|
+
return this.decode(reader, reader.uint32());
|
|
12171
|
+
};
|
|
12172
|
+
|
|
12173
|
+
/**
|
|
12174
|
+
* Verifies an Auth0PasswordResetCompleted message.
|
|
12175
|
+
* @function verify
|
|
12176
|
+
* @memberof Auth0PasswordResetCompleted
|
|
12177
|
+
* @static
|
|
12178
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
12179
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
12180
|
+
*/
|
|
12181
|
+
Auth0PasswordResetCompleted.verify = function verify(message) {
|
|
12182
|
+
if (typeof message !== "object" || message === null)
|
|
12183
|
+
return "object expected";
|
|
12184
|
+
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
12185
|
+
if (!$util.isString(message.hsId))
|
|
12186
|
+
return "hsId: string expected";
|
|
12187
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
12188
|
+
if (!$util.isString(message.email))
|
|
12189
|
+
return "email: string expected";
|
|
12190
|
+
if (message.timestampMillis != null && message.hasOwnProperty("timestampMillis"))
|
|
12191
|
+
if (!$util.isInteger(message.timestampMillis) && !(message.timestampMillis && $util.isInteger(message.timestampMillis.low) && $util.isInteger(message.timestampMillis.high)))
|
|
12192
|
+
return "timestampMillis: integer|Long expected";
|
|
12193
|
+
return null;
|
|
12194
|
+
};
|
|
12195
|
+
|
|
12196
|
+
/**
|
|
12197
|
+
* Creates an Auth0PasswordResetCompleted message from a plain object. Also converts values to their respective internal types.
|
|
12198
|
+
* @function fromObject
|
|
12199
|
+
* @memberof Auth0PasswordResetCompleted
|
|
12200
|
+
* @static
|
|
12201
|
+
* @param {Object.<string,*>} object Plain object
|
|
12202
|
+
* @returns {Auth0PasswordResetCompleted} Auth0PasswordResetCompleted
|
|
12203
|
+
*/
|
|
12204
|
+
Auth0PasswordResetCompleted.fromObject = function fromObject(object) {
|
|
12205
|
+
if (object instanceof $root.Auth0PasswordResetCompleted)
|
|
12206
|
+
return object;
|
|
12207
|
+
var message = new $root.Auth0PasswordResetCompleted();
|
|
12208
|
+
if (object.hsId != null)
|
|
12209
|
+
message.hsId = String(object.hsId);
|
|
12210
|
+
if (object.email != null)
|
|
12211
|
+
message.email = String(object.email);
|
|
12212
|
+
if (object.timestampMillis != null)
|
|
12213
|
+
if ($util.Long)
|
|
12214
|
+
(message.timestampMillis = $util.Long.fromValue(object.timestampMillis)).unsigned = true;
|
|
12215
|
+
else if (typeof object.timestampMillis === "string")
|
|
12216
|
+
message.timestampMillis = parseInt(object.timestampMillis, 10);
|
|
12217
|
+
else if (typeof object.timestampMillis === "number")
|
|
12218
|
+
message.timestampMillis = object.timestampMillis;
|
|
12219
|
+
else if (typeof object.timestampMillis === "object")
|
|
12220
|
+
message.timestampMillis = new $util.LongBits(object.timestampMillis.low >>> 0, object.timestampMillis.high >>> 0).toNumber(true);
|
|
12221
|
+
return message;
|
|
12222
|
+
};
|
|
12223
|
+
|
|
12224
|
+
/**
|
|
12225
|
+
* Creates a plain object from an Auth0PasswordResetCompleted message. Also converts values to other types if specified.
|
|
12226
|
+
* @function toObject
|
|
12227
|
+
* @memberof Auth0PasswordResetCompleted
|
|
12228
|
+
* @static
|
|
12229
|
+
* @param {Auth0PasswordResetCompleted} message Auth0PasswordResetCompleted
|
|
12230
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
12231
|
+
* @returns {Object.<string,*>} Plain object
|
|
12232
|
+
*/
|
|
12233
|
+
Auth0PasswordResetCompleted.toObject = function toObject(message, options) {
|
|
12234
|
+
if (!options)
|
|
12235
|
+
options = {};
|
|
12236
|
+
var object = {};
|
|
12237
|
+
if (options.defaults) {
|
|
12238
|
+
object.hsId = "";
|
|
12239
|
+
object.email = "";
|
|
12240
|
+
if ($util.Long) {
|
|
12241
|
+
var long = new $util.Long(0, 0, true);
|
|
12242
|
+
object.timestampMillis = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
12243
|
+
} else
|
|
12244
|
+
object.timestampMillis = options.longs === String ? "0" : 0;
|
|
12245
|
+
}
|
|
12246
|
+
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
12247
|
+
object.hsId = message.hsId;
|
|
12248
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
12249
|
+
object.email = message.email;
|
|
12250
|
+
if (message.timestampMillis != null && message.hasOwnProperty("timestampMillis"))
|
|
12251
|
+
if (typeof message.timestampMillis === "number")
|
|
12252
|
+
object.timestampMillis = options.longs === String ? String(message.timestampMillis) : message.timestampMillis;
|
|
12253
|
+
else
|
|
12254
|
+
object.timestampMillis = options.longs === String ? $util.Long.prototype.toString.call(message.timestampMillis) : options.longs === Number ? new $util.LongBits(message.timestampMillis.low >>> 0, message.timestampMillis.high >>> 0).toNumber(true) : message.timestampMillis;
|
|
12255
|
+
return object;
|
|
12256
|
+
};
|
|
12257
|
+
|
|
12258
|
+
/**
|
|
12259
|
+
* Converts this Auth0PasswordResetCompleted to JSON.
|
|
12260
|
+
* @function toJSON
|
|
12261
|
+
* @memberof Auth0PasswordResetCompleted
|
|
12262
|
+
* @instance
|
|
12263
|
+
* @returns {Object.<string,*>} JSON object
|
|
12264
|
+
*/
|
|
12265
|
+
Auth0PasswordResetCompleted.prototype.toJSON = function toJSON() {
|
|
11844
12266
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
11845
12267
|
};
|
|
11846
12268
|
|
|
@@ -17178,29 +17600,921 @@ $root.ContentfulSubscriptionAccessGroupDeleted = (function() {
|
|
|
17178
17600
|
* @function encodeDelimited
|
|
17179
17601
|
* @memberof ContentfulSubscriptionAccessGroupDeleted
|
|
17180
17602
|
* @static
|
|
17181
|
-
* @param {IContentfulSubscriptionAccessGroupDeleted} message ContentfulSubscriptionAccessGroupDeleted message or plain object to encode
|
|
17603
|
+
* @param {IContentfulSubscriptionAccessGroupDeleted} message ContentfulSubscriptionAccessGroupDeleted message or plain object to encode
|
|
17604
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
17605
|
+
* @returns {$protobuf.Writer} Writer
|
|
17606
|
+
*/
|
|
17607
|
+
ContentfulSubscriptionAccessGroupDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
17608
|
+
return this.encode(message, writer).ldelim();
|
|
17609
|
+
};
|
|
17610
|
+
|
|
17611
|
+
/**
|
|
17612
|
+
* Decodes a ContentfulSubscriptionAccessGroupDeleted message from the specified reader or buffer.
|
|
17613
|
+
* @function decode
|
|
17614
|
+
* @memberof ContentfulSubscriptionAccessGroupDeleted
|
|
17615
|
+
* @static
|
|
17616
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
17617
|
+
* @param {number} [length] Message length if known beforehand
|
|
17618
|
+
* @returns {ContentfulSubscriptionAccessGroupDeleted} ContentfulSubscriptionAccessGroupDeleted
|
|
17619
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17620
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17621
|
+
*/
|
|
17622
|
+
ContentfulSubscriptionAccessGroupDeleted.decode = function decode(reader, length) {
|
|
17623
|
+
if (!(reader instanceof $Reader))
|
|
17624
|
+
reader = $Reader.create(reader);
|
|
17625
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulSubscriptionAccessGroupDeleted();
|
|
17626
|
+
while (reader.pos < end) {
|
|
17627
|
+
var tag = reader.uint32();
|
|
17628
|
+
switch (tag >>> 3) {
|
|
17629
|
+
case 1:
|
|
17630
|
+
message.slug = reader.string();
|
|
17631
|
+
break;
|
|
17632
|
+
case 2:
|
|
17633
|
+
message.deletedAt = reader.uint64();
|
|
17634
|
+
break;
|
|
17635
|
+
default:
|
|
17636
|
+
reader.skipType(tag & 7);
|
|
17637
|
+
break;
|
|
17638
|
+
}
|
|
17639
|
+
}
|
|
17640
|
+
return message;
|
|
17641
|
+
};
|
|
17642
|
+
|
|
17643
|
+
/**
|
|
17644
|
+
* Decodes a ContentfulSubscriptionAccessGroupDeleted message from the specified reader or buffer, length delimited.
|
|
17645
|
+
* @function decodeDelimited
|
|
17646
|
+
* @memberof ContentfulSubscriptionAccessGroupDeleted
|
|
17647
|
+
* @static
|
|
17648
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
17649
|
+
* @returns {ContentfulSubscriptionAccessGroupDeleted} ContentfulSubscriptionAccessGroupDeleted
|
|
17650
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17651
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17652
|
+
*/
|
|
17653
|
+
ContentfulSubscriptionAccessGroupDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
17654
|
+
if (!(reader instanceof $Reader))
|
|
17655
|
+
reader = new $Reader(reader);
|
|
17656
|
+
return this.decode(reader, reader.uint32());
|
|
17657
|
+
};
|
|
17658
|
+
|
|
17659
|
+
/**
|
|
17660
|
+
* Verifies a ContentfulSubscriptionAccessGroupDeleted message.
|
|
17661
|
+
* @function verify
|
|
17662
|
+
* @memberof ContentfulSubscriptionAccessGroupDeleted
|
|
17663
|
+
* @static
|
|
17664
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
17665
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
17666
|
+
*/
|
|
17667
|
+
ContentfulSubscriptionAccessGroupDeleted.verify = function verify(message) {
|
|
17668
|
+
if (typeof message !== "object" || message === null)
|
|
17669
|
+
return "object expected";
|
|
17670
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
17671
|
+
if (!$util.isString(message.slug))
|
|
17672
|
+
return "slug: string expected";
|
|
17673
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
17674
|
+
if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
|
|
17675
|
+
return "deletedAt: integer|Long expected";
|
|
17676
|
+
return null;
|
|
17677
|
+
};
|
|
17678
|
+
|
|
17679
|
+
/**
|
|
17680
|
+
* Creates a ContentfulSubscriptionAccessGroupDeleted message from a plain object. Also converts values to their respective internal types.
|
|
17681
|
+
* @function fromObject
|
|
17682
|
+
* @memberof ContentfulSubscriptionAccessGroupDeleted
|
|
17683
|
+
* @static
|
|
17684
|
+
* @param {Object.<string,*>} object Plain object
|
|
17685
|
+
* @returns {ContentfulSubscriptionAccessGroupDeleted} ContentfulSubscriptionAccessGroupDeleted
|
|
17686
|
+
*/
|
|
17687
|
+
ContentfulSubscriptionAccessGroupDeleted.fromObject = function fromObject(object) {
|
|
17688
|
+
if (object instanceof $root.ContentfulSubscriptionAccessGroupDeleted)
|
|
17689
|
+
return object;
|
|
17690
|
+
var message = new $root.ContentfulSubscriptionAccessGroupDeleted();
|
|
17691
|
+
if (object.slug != null)
|
|
17692
|
+
message.slug = String(object.slug);
|
|
17693
|
+
if (object.deletedAt != null)
|
|
17694
|
+
if ($util.Long)
|
|
17695
|
+
(message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
|
|
17696
|
+
else if (typeof object.deletedAt === "string")
|
|
17697
|
+
message.deletedAt = parseInt(object.deletedAt, 10);
|
|
17698
|
+
else if (typeof object.deletedAt === "number")
|
|
17699
|
+
message.deletedAt = object.deletedAt;
|
|
17700
|
+
else if (typeof object.deletedAt === "object")
|
|
17701
|
+
message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
|
|
17702
|
+
return message;
|
|
17703
|
+
};
|
|
17704
|
+
|
|
17705
|
+
/**
|
|
17706
|
+
* Creates a plain object from a ContentfulSubscriptionAccessGroupDeleted message. Also converts values to other types if specified.
|
|
17707
|
+
* @function toObject
|
|
17708
|
+
* @memberof ContentfulSubscriptionAccessGroupDeleted
|
|
17709
|
+
* @static
|
|
17710
|
+
* @param {ContentfulSubscriptionAccessGroupDeleted} message ContentfulSubscriptionAccessGroupDeleted
|
|
17711
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
17712
|
+
* @returns {Object.<string,*>} Plain object
|
|
17713
|
+
*/
|
|
17714
|
+
ContentfulSubscriptionAccessGroupDeleted.toObject = function toObject(message, options) {
|
|
17715
|
+
if (!options)
|
|
17716
|
+
options = {};
|
|
17717
|
+
var object = {};
|
|
17718
|
+
if (options.defaults) {
|
|
17719
|
+
object.slug = "";
|
|
17720
|
+
if ($util.Long) {
|
|
17721
|
+
var long = new $util.Long(0, 0, true);
|
|
17722
|
+
object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
17723
|
+
} else
|
|
17724
|
+
object.deletedAt = options.longs === String ? "0" : 0;
|
|
17725
|
+
}
|
|
17726
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
17727
|
+
object.slug = message.slug;
|
|
17728
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
17729
|
+
if (typeof message.deletedAt === "number")
|
|
17730
|
+
object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
|
|
17731
|
+
else
|
|
17732
|
+
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;
|
|
17733
|
+
return object;
|
|
17734
|
+
};
|
|
17735
|
+
|
|
17736
|
+
/**
|
|
17737
|
+
* Converts this ContentfulSubscriptionAccessGroupDeleted to JSON.
|
|
17738
|
+
* @function toJSON
|
|
17739
|
+
* @memberof ContentfulSubscriptionAccessGroupDeleted
|
|
17740
|
+
* @instance
|
|
17741
|
+
* @returns {Object.<string,*>} JSON object
|
|
17742
|
+
*/
|
|
17743
|
+
ContentfulSubscriptionAccessGroupDeleted.prototype.toJSON = function toJSON() {
|
|
17744
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
17745
|
+
};
|
|
17746
|
+
|
|
17747
|
+
return ContentfulSubscriptionAccessGroupDeleted;
|
|
17748
|
+
})();
|
|
17749
|
+
|
|
17750
|
+
$root.ContentfulCategoryCreated = (function() {
|
|
17751
|
+
|
|
17752
|
+
/**
|
|
17753
|
+
* Properties of a ContentfulCategoryCreated.
|
|
17754
|
+
* @exports IContentfulCategoryCreated
|
|
17755
|
+
* @interface IContentfulCategoryCreated
|
|
17756
|
+
* @property {Object.<string,string>|null} [name] ContentfulCategoryCreated name
|
|
17757
|
+
* @property {string|null} [slug] ContentfulCategoryCreated slug
|
|
17758
|
+
* @property {string|null} [type] ContentfulCategoryCreated type
|
|
17759
|
+
* @property {Array.<contentful.ISlugReference>|null} [content] ContentfulCategoryCreated content
|
|
17760
|
+
* @property {number|Long|null} [createdAt] ContentfulCategoryCreated createdAt
|
|
17761
|
+
*/
|
|
17762
|
+
|
|
17763
|
+
/**
|
|
17764
|
+
* Constructs a new ContentfulCategoryCreated.
|
|
17765
|
+
* @exports ContentfulCategoryCreated
|
|
17766
|
+
* @classdesc Represents a ContentfulCategoryCreated.
|
|
17767
|
+
* @implements IContentfulCategoryCreated
|
|
17768
|
+
* @constructor
|
|
17769
|
+
* @param {IContentfulCategoryCreated=} [properties] Properties to set
|
|
17770
|
+
*/
|
|
17771
|
+
function ContentfulCategoryCreated(properties) {
|
|
17772
|
+
this.name = {};
|
|
17773
|
+
this.content = [];
|
|
17774
|
+
if (properties)
|
|
17775
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
17776
|
+
if (properties[keys[i]] != null)
|
|
17777
|
+
this[keys[i]] = properties[keys[i]];
|
|
17778
|
+
}
|
|
17779
|
+
|
|
17780
|
+
/**
|
|
17781
|
+
* ContentfulCategoryCreated name.
|
|
17782
|
+
* @member {Object.<string,string>} name
|
|
17783
|
+
* @memberof ContentfulCategoryCreated
|
|
17784
|
+
* @instance
|
|
17785
|
+
*/
|
|
17786
|
+
ContentfulCategoryCreated.prototype.name = $util.emptyObject;
|
|
17787
|
+
|
|
17788
|
+
/**
|
|
17789
|
+
* ContentfulCategoryCreated slug.
|
|
17790
|
+
* @member {string} slug
|
|
17791
|
+
* @memberof ContentfulCategoryCreated
|
|
17792
|
+
* @instance
|
|
17793
|
+
*/
|
|
17794
|
+
ContentfulCategoryCreated.prototype.slug = "";
|
|
17795
|
+
|
|
17796
|
+
/**
|
|
17797
|
+
* ContentfulCategoryCreated type.
|
|
17798
|
+
* @member {string} type
|
|
17799
|
+
* @memberof ContentfulCategoryCreated
|
|
17800
|
+
* @instance
|
|
17801
|
+
*/
|
|
17802
|
+
ContentfulCategoryCreated.prototype.type = "";
|
|
17803
|
+
|
|
17804
|
+
/**
|
|
17805
|
+
* ContentfulCategoryCreated content.
|
|
17806
|
+
* @member {Array.<contentful.ISlugReference>} content
|
|
17807
|
+
* @memberof ContentfulCategoryCreated
|
|
17808
|
+
* @instance
|
|
17809
|
+
*/
|
|
17810
|
+
ContentfulCategoryCreated.prototype.content = $util.emptyArray;
|
|
17811
|
+
|
|
17812
|
+
/**
|
|
17813
|
+
* ContentfulCategoryCreated createdAt.
|
|
17814
|
+
* @member {number|Long} createdAt
|
|
17815
|
+
* @memberof ContentfulCategoryCreated
|
|
17816
|
+
* @instance
|
|
17817
|
+
*/
|
|
17818
|
+
ContentfulCategoryCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
17819
|
+
|
|
17820
|
+
/**
|
|
17821
|
+
* Creates a new ContentfulCategoryCreated instance using the specified properties.
|
|
17822
|
+
* @function create
|
|
17823
|
+
* @memberof ContentfulCategoryCreated
|
|
17824
|
+
* @static
|
|
17825
|
+
* @param {IContentfulCategoryCreated=} [properties] Properties to set
|
|
17826
|
+
* @returns {ContentfulCategoryCreated} ContentfulCategoryCreated instance
|
|
17827
|
+
*/
|
|
17828
|
+
ContentfulCategoryCreated.create = function create(properties) {
|
|
17829
|
+
return new ContentfulCategoryCreated(properties);
|
|
17830
|
+
};
|
|
17831
|
+
|
|
17832
|
+
/**
|
|
17833
|
+
* Encodes the specified ContentfulCategoryCreated message. Does not implicitly {@link ContentfulCategoryCreated.verify|verify} messages.
|
|
17834
|
+
* @function encode
|
|
17835
|
+
* @memberof ContentfulCategoryCreated
|
|
17836
|
+
* @static
|
|
17837
|
+
* @param {IContentfulCategoryCreated} message ContentfulCategoryCreated message or plain object to encode
|
|
17838
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
17839
|
+
* @returns {$protobuf.Writer} Writer
|
|
17840
|
+
*/
|
|
17841
|
+
ContentfulCategoryCreated.encode = function encode(message, writer) {
|
|
17842
|
+
if (!writer)
|
|
17843
|
+
writer = $Writer.create();
|
|
17844
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
17845
|
+
for (var keys = Object.keys(message.name), i = 0; i < keys.length; ++i)
|
|
17846
|
+
writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.name[keys[i]]).ldelim();
|
|
17847
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
17848
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
|
|
17849
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
17850
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.type);
|
|
17851
|
+
if (message.content != null && message.content.length)
|
|
17852
|
+
for (var i = 0; i < message.content.length; ++i)
|
|
17853
|
+
$root.contentful.SlugReference.encode(message.content[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
17854
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
17855
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.createdAt);
|
|
17856
|
+
return writer;
|
|
17857
|
+
};
|
|
17858
|
+
|
|
17859
|
+
/**
|
|
17860
|
+
* Encodes the specified ContentfulCategoryCreated message, length delimited. Does not implicitly {@link ContentfulCategoryCreated.verify|verify} messages.
|
|
17861
|
+
* @function encodeDelimited
|
|
17862
|
+
* @memberof ContentfulCategoryCreated
|
|
17863
|
+
* @static
|
|
17864
|
+
* @param {IContentfulCategoryCreated} message ContentfulCategoryCreated message or plain object to encode
|
|
17865
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
17866
|
+
* @returns {$protobuf.Writer} Writer
|
|
17867
|
+
*/
|
|
17868
|
+
ContentfulCategoryCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
17869
|
+
return this.encode(message, writer).ldelim();
|
|
17870
|
+
};
|
|
17871
|
+
|
|
17872
|
+
/**
|
|
17873
|
+
* Decodes a ContentfulCategoryCreated message from the specified reader or buffer.
|
|
17874
|
+
* @function decode
|
|
17875
|
+
* @memberof ContentfulCategoryCreated
|
|
17876
|
+
* @static
|
|
17877
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
17878
|
+
* @param {number} [length] Message length if known beforehand
|
|
17879
|
+
* @returns {ContentfulCategoryCreated} ContentfulCategoryCreated
|
|
17880
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17881
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17882
|
+
*/
|
|
17883
|
+
ContentfulCategoryCreated.decode = function decode(reader, length) {
|
|
17884
|
+
if (!(reader instanceof $Reader))
|
|
17885
|
+
reader = $Reader.create(reader);
|
|
17886
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulCategoryCreated(), key;
|
|
17887
|
+
while (reader.pos < end) {
|
|
17888
|
+
var tag = reader.uint32();
|
|
17889
|
+
switch (tag >>> 3) {
|
|
17890
|
+
case 1:
|
|
17891
|
+
reader.skip().pos++;
|
|
17892
|
+
if (message.name === $util.emptyObject)
|
|
17893
|
+
message.name = {};
|
|
17894
|
+
key = reader.string();
|
|
17895
|
+
reader.pos++;
|
|
17896
|
+
message.name[key] = reader.string();
|
|
17897
|
+
break;
|
|
17898
|
+
case 2:
|
|
17899
|
+
message.slug = reader.string();
|
|
17900
|
+
break;
|
|
17901
|
+
case 3:
|
|
17902
|
+
message.type = reader.string();
|
|
17903
|
+
break;
|
|
17904
|
+
case 4:
|
|
17905
|
+
if (!(message.content && message.content.length))
|
|
17906
|
+
message.content = [];
|
|
17907
|
+
message.content.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
17908
|
+
break;
|
|
17909
|
+
case 5:
|
|
17910
|
+
message.createdAt = reader.uint64();
|
|
17911
|
+
break;
|
|
17912
|
+
default:
|
|
17913
|
+
reader.skipType(tag & 7);
|
|
17914
|
+
break;
|
|
17915
|
+
}
|
|
17916
|
+
}
|
|
17917
|
+
return message;
|
|
17918
|
+
};
|
|
17919
|
+
|
|
17920
|
+
/**
|
|
17921
|
+
* Decodes a ContentfulCategoryCreated message from the specified reader or buffer, length delimited.
|
|
17922
|
+
* @function decodeDelimited
|
|
17923
|
+
* @memberof ContentfulCategoryCreated
|
|
17924
|
+
* @static
|
|
17925
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
17926
|
+
* @returns {ContentfulCategoryCreated} ContentfulCategoryCreated
|
|
17927
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17928
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17929
|
+
*/
|
|
17930
|
+
ContentfulCategoryCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
17931
|
+
if (!(reader instanceof $Reader))
|
|
17932
|
+
reader = new $Reader(reader);
|
|
17933
|
+
return this.decode(reader, reader.uint32());
|
|
17934
|
+
};
|
|
17935
|
+
|
|
17936
|
+
/**
|
|
17937
|
+
* Verifies a ContentfulCategoryCreated message.
|
|
17938
|
+
* @function verify
|
|
17939
|
+
* @memberof ContentfulCategoryCreated
|
|
17940
|
+
* @static
|
|
17941
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
17942
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
17943
|
+
*/
|
|
17944
|
+
ContentfulCategoryCreated.verify = function verify(message) {
|
|
17945
|
+
if (typeof message !== "object" || message === null)
|
|
17946
|
+
return "object expected";
|
|
17947
|
+
if (message.name != null && message.hasOwnProperty("name")) {
|
|
17948
|
+
if (!$util.isObject(message.name))
|
|
17949
|
+
return "name: object expected";
|
|
17950
|
+
var key = Object.keys(message.name);
|
|
17951
|
+
for (var i = 0; i < key.length; ++i)
|
|
17952
|
+
if (!$util.isString(message.name[key[i]]))
|
|
17953
|
+
return "name: string{k:string} expected";
|
|
17954
|
+
}
|
|
17955
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
17956
|
+
if (!$util.isString(message.slug))
|
|
17957
|
+
return "slug: string expected";
|
|
17958
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
17959
|
+
if (!$util.isString(message.type))
|
|
17960
|
+
return "type: string expected";
|
|
17961
|
+
if (message.content != null && message.hasOwnProperty("content")) {
|
|
17962
|
+
if (!Array.isArray(message.content))
|
|
17963
|
+
return "content: array expected";
|
|
17964
|
+
for (var i = 0; i < message.content.length; ++i) {
|
|
17965
|
+
var error = $root.contentful.SlugReference.verify(message.content[i]);
|
|
17966
|
+
if (error)
|
|
17967
|
+
return "content." + error;
|
|
17968
|
+
}
|
|
17969
|
+
}
|
|
17970
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
17971
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
17972
|
+
return "createdAt: integer|Long expected";
|
|
17973
|
+
return null;
|
|
17974
|
+
};
|
|
17975
|
+
|
|
17976
|
+
/**
|
|
17977
|
+
* Creates a ContentfulCategoryCreated message from a plain object. Also converts values to their respective internal types.
|
|
17978
|
+
* @function fromObject
|
|
17979
|
+
* @memberof ContentfulCategoryCreated
|
|
17980
|
+
* @static
|
|
17981
|
+
* @param {Object.<string,*>} object Plain object
|
|
17982
|
+
* @returns {ContentfulCategoryCreated} ContentfulCategoryCreated
|
|
17983
|
+
*/
|
|
17984
|
+
ContentfulCategoryCreated.fromObject = function fromObject(object) {
|
|
17985
|
+
if (object instanceof $root.ContentfulCategoryCreated)
|
|
17986
|
+
return object;
|
|
17987
|
+
var message = new $root.ContentfulCategoryCreated();
|
|
17988
|
+
if (object.name) {
|
|
17989
|
+
if (typeof object.name !== "object")
|
|
17990
|
+
throw TypeError(".ContentfulCategoryCreated.name: object expected");
|
|
17991
|
+
message.name = {};
|
|
17992
|
+
for (var keys = Object.keys(object.name), i = 0; i < keys.length; ++i)
|
|
17993
|
+
message.name[keys[i]] = String(object.name[keys[i]]);
|
|
17994
|
+
}
|
|
17995
|
+
if (object.slug != null)
|
|
17996
|
+
message.slug = String(object.slug);
|
|
17997
|
+
if (object.type != null)
|
|
17998
|
+
message.type = String(object.type);
|
|
17999
|
+
if (object.content) {
|
|
18000
|
+
if (!Array.isArray(object.content))
|
|
18001
|
+
throw TypeError(".ContentfulCategoryCreated.content: array expected");
|
|
18002
|
+
message.content = [];
|
|
18003
|
+
for (var i = 0; i < object.content.length; ++i) {
|
|
18004
|
+
if (typeof object.content[i] !== "object")
|
|
18005
|
+
throw TypeError(".ContentfulCategoryCreated.content: object expected");
|
|
18006
|
+
message.content[i] = $root.contentful.SlugReference.fromObject(object.content[i]);
|
|
18007
|
+
}
|
|
18008
|
+
}
|
|
18009
|
+
if (object.createdAt != null)
|
|
18010
|
+
if ($util.Long)
|
|
18011
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
18012
|
+
else if (typeof object.createdAt === "string")
|
|
18013
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
18014
|
+
else if (typeof object.createdAt === "number")
|
|
18015
|
+
message.createdAt = object.createdAt;
|
|
18016
|
+
else if (typeof object.createdAt === "object")
|
|
18017
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
18018
|
+
return message;
|
|
18019
|
+
};
|
|
18020
|
+
|
|
18021
|
+
/**
|
|
18022
|
+
* Creates a plain object from a ContentfulCategoryCreated message. Also converts values to other types if specified.
|
|
18023
|
+
* @function toObject
|
|
18024
|
+
* @memberof ContentfulCategoryCreated
|
|
18025
|
+
* @static
|
|
18026
|
+
* @param {ContentfulCategoryCreated} message ContentfulCategoryCreated
|
|
18027
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
18028
|
+
* @returns {Object.<string,*>} Plain object
|
|
18029
|
+
*/
|
|
18030
|
+
ContentfulCategoryCreated.toObject = function toObject(message, options) {
|
|
18031
|
+
if (!options)
|
|
18032
|
+
options = {};
|
|
18033
|
+
var object = {};
|
|
18034
|
+
if (options.arrays || options.defaults)
|
|
18035
|
+
object.content = [];
|
|
18036
|
+
if (options.objects || options.defaults)
|
|
18037
|
+
object.name = {};
|
|
18038
|
+
if (options.defaults) {
|
|
18039
|
+
object.slug = "";
|
|
18040
|
+
object.type = "";
|
|
18041
|
+
if ($util.Long) {
|
|
18042
|
+
var long = new $util.Long(0, 0, true);
|
|
18043
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
18044
|
+
} else
|
|
18045
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
18046
|
+
}
|
|
18047
|
+
var keys2;
|
|
18048
|
+
if (message.name && (keys2 = Object.keys(message.name)).length) {
|
|
18049
|
+
object.name = {};
|
|
18050
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
18051
|
+
object.name[keys2[j]] = message.name[keys2[j]];
|
|
18052
|
+
}
|
|
18053
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
18054
|
+
object.slug = message.slug;
|
|
18055
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
18056
|
+
object.type = message.type;
|
|
18057
|
+
if (message.content && message.content.length) {
|
|
18058
|
+
object.content = [];
|
|
18059
|
+
for (var j = 0; j < message.content.length; ++j)
|
|
18060
|
+
object.content[j] = $root.contentful.SlugReference.toObject(message.content[j], options);
|
|
18061
|
+
}
|
|
18062
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
18063
|
+
if (typeof message.createdAt === "number")
|
|
18064
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
18065
|
+
else
|
|
18066
|
+
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;
|
|
18067
|
+
return object;
|
|
18068
|
+
};
|
|
18069
|
+
|
|
18070
|
+
/**
|
|
18071
|
+
* Converts this ContentfulCategoryCreated to JSON.
|
|
18072
|
+
* @function toJSON
|
|
18073
|
+
* @memberof ContentfulCategoryCreated
|
|
18074
|
+
* @instance
|
|
18075
|
+
* @returns {Object.<string,*>} JSON object
|
|
18076
|
+
*/
|
|
18077
|
+
ContentfulCategoryCreated.prototype.toJSON = function toJSON() {
|
|
18078
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
18079
|
+
};
|
|
18080
|
+
|
|
18081
|
+
return ContentfulCategoryCreated;
|
|
18082
|
+
})();
|
|
18083
|
+
|
|
18084
|
+
$root.ContentfulCategoryUpdated = (function() {
|
|
18085
|
+
|
|
18086
|
+
/**
|
|
18087
|
+
* Properties of a ContentfulCategoryUpdated.
|
|
18088
|
+
* @exports IContentfulCategoryUpdated
|
|
18089
|
+
* @interface IContentfulCategoryUpdated
|
|
18090
|
+
* @property {Object.<string,string>|null} [name] ContentfulCategoryUpdated name
|
|
18091
|
+
* @property {string|null} [slug] ContentfulCategoryUpdated slug
|
|
18092
|
+
* @property {string|null} [type] ContentfulCategoryUpdated type
|
|
18093
|
+
* @property {Array.<contentful.ISlugReference>|null} [content] ContentfulCategoryUpdated content
|
|
18094
|
+
* @property {number|Long|null} [updatedAt] ContentfulCategoryUpdated updatedAt
|
|
18095
|
+
*/
|
|
18096
|
+
|
|
18097
|
+
/**
|
|
18098
|
+
* Constructs a new ContentfulCategoryUpdated.
|
|
18099
|
+
* @exports ContentfulCategoryUpdated
|
|
18100
|
+
* @classdesc Represents a ContentfulCategoryUpdated.
|
|
18101
|
+
* @implements IContentfulCategoryUpdated
|
|
18102
|
+
* @constructor
|
|
18103
|
+
* @param {IContentfulCategoryUpdated=} [properties] Properties to set
|
|
18104
|
+
*/
|
|
18105
|
+
function ContentfulCategoryUpdated(properties) {
|
|
18106
|
+
this.name = {};
|
|
18107
|
+
this.content = [];
|
|
18108
|
+
if (properties)
|
|
18109
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
18110
|
+
if (properties[keys[i]] != null)
|
|
18111
|
+
this[keys[i]] = properties[keys[i]];
|
|
18112
|
+
}
|
|
18113
|
+
|
|
18114
|
+
/**
|
|
18115
|
+
* ContentfulCategoryUpdated name.
|
|
18116
|
+
* @member {Object.<string,string>} name
|
|
18117
|
+
* @memberof ContentfulCategoryUpdated
|
|
18118
|
+
* @instance
|
|
18119
|
+
*/
|
|
18120
|
+
ContentfulCategoryUpdated.prototype.name = $util.emptyObject;
|
|
18121
|
+
|
|
18122
|
+
/**
|
|
18123
|
+
* ContentfulCategoryUpdated slug.
|
|
18124
|
+
* @member {string} slug
|
|
18125
|
+
* @memberof ContentfulCategoryUpdated
|
|
18126
|
+
* @instance
|
|
18127
|
+
*/
|
|
18128
|
+
ContentfulCategoryUpdated.prototype.slug = "";
|
|
18129
|
+
|
|
18130
|
+
/**
|
|
18131
|
+
* ContentfulCategoryUpdated type.
|
|
18132
|
+
* @member {string} type
|
|
18133
|
+
* @memberof ContentfulCategoryUpdated
|
|
18134
|
+
* @instance
|
|
18135
|
+
*/
|
|
18136
|
+
ContentfulCategoryUpdated.prototype.type = "";
|
|
18137
|
+
|
|
18138
|
+
/**
|
|
18139
|
+
* ContentfulCategoryUpdated content.
|
|
18140
|
+
* @member {Array.<contentful.ISlugReference>} content
|
|
18141
|
+
* @memberof ContentfulCategoryUpdated
|
|
18142
|
+
* @instance
|
|
18143
|
+
*/
|
|
18144
|
+
ContentfulCategoryUpdated.prototype.content = $util.emptyArray;
|
|
18145
|
+
|
|
18146
|
+
/**
|
|
18147
|
+
* ContentfulCategoryUpdated updatedAt.
|
|
18148
|
+
* @member {number|Long} updatedAt
|
|
18149
|
+
* @memberof ContentfulCategoryUpdated
|
|
18150
|
+
* @instance
|
|
18151
|
+
*/
|
|
18152
|
+
ContentfulCategoryUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
18153
|
+
|
|
18154
|
+
/**
|
|
18155
|
+
* Creates a new ContentfulCategoryUpdated instance using the specified properties.
|
|
18156
|
+
* @function create
|
|
18157
|
+
* @memberof ContentfulCategoryUpdated
|
|
18158
|
+
* @static
|
|
18159
|
+
* @param {IContentfulCategoryUpdated=} [properties] Properties to set
|
|
18160
|
+
* @returns {ContentfulCategoryUpdated} ContentfulCategoryUpdated instance
|
|
18161
|
+
*/
|
|
18162
|
+
ContentfulCategoryUpdated.create = function create(properties) {
|
|
18163
|
+
return new ContentfulCategoryUpdated(properties);
|
|
18164
|
+
};
|
|
18165
|
+
|
|
18166
|
+
/**
|
|
18167
|
+
* Encodes the specified ContentfulCategoryUpdated message. Does not implicitly {@link ContentfulCategoryUpdated.verify|verify} messages.
|
|
18168
|
+
* @function encode
|
|
18169
|
+
* @memberof ContentfulCategoryUpdated
|
|
18170
|
+
* @static
|
|
18171
|
+
* @param {IContentfulCategoryUpdated} message ContentfulCategoryUpdated message or plain object to encode
|
|
18172
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
18173
|
+
* @returns {$protobuf.Writer} Writer
|
|
18174
|
+
*/
|
|
18175
|
+
ContentfulCategoryUpdated.encode = function encode(message, writer) {
|
|
18176
|
+
if (!writer)
|
|
18177
|
+
writer = $Writer.create();
|
|
18178
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
18179
|
+
for (var keys = Object.keys(message.name), i = 0; i < keys.length; ++i)
|
|
18180
|
+
writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.name[keys[i]]).ldelim();
|
|
18181
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
18182
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
|
|
18183
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
18184
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.type);
|
|
18185
|
+
if (message.content != null && message.content.length)
|
|
18186
|
+
for (var i = 0; i < message.content.length; ++i)
|
|
18187
|
+
$root.contentful.SlugReference.encode(message.content[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
18188
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
18189
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.updatedAt);
|
|
18190
|
+
return writer;
|
|
18191
|
+
};
|
|
18192
|
+
|
|
18193
|
+
/**
|
|
18194
|
+
* Encodes the specified ContentfulCategoryUpdated message, length delimited. Does not implicitly {@link ContentfulCategoryUpdated.verify|verify} messages.
|
|
18195
|
+
* @function encodeDelimited
|
|
18196
|
+
* @memberof ContentfulCategoryUpdated
|
|
18197
|
+
* @static
|
|
18198
|
+
* @param {IContentfulCategoryUpdated} message ContentfulCategoryUpdated message or plain object to encode
|
|
18199
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
18200
|
+
* @returns {$protobuf.Writer} Writer
|
|
18201
|
+
*/
|
|
18202
|
+
ContentfulCategoryUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
18203
|
+
return this.encode(message, writer).ldelim();
|
|
18204
|
+
};
|
|
18205
|
+
|
|
18206
|
+
/**
|
|
18207
|
+
* Decodes a ContentfulCategoryUpdated message from the specified reader or buffer.
|
|
18208
|
+
* @function decode
|
|
18209
|
+
* @memberof ContentfulCategoryUpdated
|
|
18210
|
+
* @static
|
|
18211
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
18212
|
+
* @param {number} [length] Message length if known beforehand
|
|
18213
|
+
* @returns {ContentfulCategoryUpdated} ContentfulCategoryUpdated
|
|
18214
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18215
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18216
|
+
*/
|
|
18217
|
+
ContentfulCategoryUpdated.decode = function decode(reader, length) {
|
|
18218
|
+
if (!(reader instanceof $Reader))
|
|
18219
|
+
reader = $Reader.create(reader);
|
|
18220
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulCategoryUpdated(), key;
|
|
18221
|
+
while (reader.pos < end) {
|
|
18222
|
+
var tag = reader.uint32();
|
|
18223
|
+
switch (tag >>> 3) {
|
|
18224
|
+
case 1:
|
|
18225
|
+
reader.skip().pos++;
|
|
18226
|
+
if (message.name === $util.emptyObject)
|
|
18227
|
+
message.name = {};
|
|
18228
|
+
key = reader.string();
|
|
18229
|
+
reader.pos++;
|
|
18230
|
+
message.name[key] = reader.string();
|
|
18231
|
+
break;
|
|
18232
|
+
case 2:
|
|
18233
|
+
message.slug = reader.string();
|
|
18234
|
+
break;
|
|
18235
|
+
case 3:
|
|
18236
|
+
message.type = reader.string();
|
|
18237
|
+
break;
|
|
18238
|
+
case 4:
|
|
18239
|
+
if (!(message.content && message.content.length))
|
|
18240
|
+
message.content = [];
|
|
18241
|
+
message.content.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
18242
|
+
break;
|
|
18243
|
+
case 5:
|
|
18244
|
+
message.updatedAt = reader.uint64();
|
|
18245
|
+
break;
|
|
18246
|
+
default:
|
|
18247
|
+
reader.skipType(tag & 7);
|
|
18248
|
+
break;
|
|
18249
|
+
}
|
|
18250
|
+
}
|
|
18251
|
+
return message;
|
|
18252
|
+
};
|
|
18253
|
+
|
|
18254
|
+
/**
|
|
18255
|
+
* Decodes a ContentfulCategoryUpdated message from the specified reader or buffer, length delimited.
|
|
18256
|
+
* @function decodeDelimited
|
|
18257
|
+
* @memberof ContentfulCategoryUpdated
|
|
18258
|
+
* @static
|
|
18259
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
18260
|
+
* @returns {ContentfulCategoryUpdated} ContentfulCategoryUpdated
|
|
18261
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18262
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18263
|
+
*/
|
|
18264
|
+
ContentfulCategoryUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
18265
|
+
if (!(reader instanceof $Reader))
|
|
18266
|
+
reader = new $Reader(reader);
|
|
18267
|
+
return this.decode(reader, reader.uint32());
|
|
18268
|
+
};
|
|
18269
|
+
|
|
18270
|
+
/**
|
|
18271
|
+
* Verifies a ContentfulCategoryUpdated message.
|
|
18272
|
+
* @function verify
|
|
18273
|
+
* @memberof ContentfulCategoryUpdated
|
|
18274
|
+
* @static
|
|
18275
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
18276
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
18277
|
+
*/
|
|
18278
|
+
ContentfulCategoryUpdated.verify = function verify(message) {
|
|
18279
|
+
if (typeof message !== "object" || message === null)
|
|
18280
|
+
return "object expected";
|
|
18281
|
+
if (message.name != null && message.hasOwnProperty("name")) {
|
|
18282
|
+
if (!$util.isObject(message.name))
|
|
18283
|
+
return "name: object expected";
|
|
18284
|
+
var key = Object.keys(message.name);
|
|
18285
|
+
for (var i = 0; i < key.length; ++i)
|
|
18286
|
+
if (!$util.isString(message.name[key[i]]))
|
|
18287
|
+
return "name: string{k:string} expected";
|
|
18288
|
+
}
|
|
18289
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
18290
|
+
if (!$util.isString(message.slug))
|
|
18291
|
+
return "slug: string expected";
|
|
18292
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
18293
|
+
if (!$util.isString(message.type))
|
|
18294
|
+
return "type: string expected";
|
|
18295
|
+
if (message.content != null && message.hasOwnProperty("content")) {
|
|
18296
|
+
if (!Array.isArray(message.content))
|
|
18297
|
+
return "content: array expected";
|
|
18298
|
+
for (var i = 0; i < message.content.length; ++i) {
|
|
18299
|
+
var error = $root.contentful.SlugReference.verify(message.content[i]);
|
|
18300
|
+
if (error)
|
|
18301
|
+
return "content." + error;
|
|
18302
|
+
}
|
|
18303
|
+
}
|
|
18304
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
18305
|
+
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
18306
|
+
return "updatedAt: integer|Long expected";
|
|
18307
|
+
return null;
|
|
18308
|
+
};
|
|
18309
|
+
|
|
18310
|
+
/**
|
|
18311
|
+
* Creates a ContentfulCategoryUpdated message from a plain object. Also converts values to their respective internal types.
|
|
18312
|
+
* @function fromObject
|
|
18313
|
+
* @memberof ContentfulCategoryUpdated
|
|
18314
|
+
* @static
|
|
18315
|
+
* @param {Object.<string,*>} object Plain object
|
|
18316
|
+
* @returns {ContentfulCategoryUpdated} ContentfulCategoryUpdated
|
|
18317
|
+
*/
|
|
18318
|
+
ContentfulCategoryUpdated.fromObject = function fromObject(object) {
|
|
18319
|
+
if (object instanceof $root.ContentfulCategoryUpdated)
|
|
18320
|
+
return object;
|
|
18321
|
+
var message = new $root.ContentfulCategoryUpdated();
|
|
18322
|
+
if (object.name) {
|
|
18323
|
+
if (typeof object.name !== "object")
|
|
18324
|
+
throw TypeError(".ContentfulCategoryUpdated.name: object expected");
|
|
18325
|
+
message.name = {};
|
|
18326
|
+
for (var keys = Object.keys(object.name), i = 0; i < keys.length; ++i)
|
|
18327
|
+
message.name[keys[i]] = String(object.name[keys[i]]);
|
|
18328
|
+
}
|
|
18329
|
+
if (object.slug != null)
|
|
18330
|
+
message.slug = String(object.slug);
|
|
18331
|
+
if (object.type != null)
|
|
18332
|
+
message.type = String(object.type);
|
|
18333
|
+
if (object.content) {
|
|
18334
|
+
if (!Array.isArray(object.content))
|
|
18335
|
+
throw TypeError(".ContentfulCategoryUpdated.content: array expected");
|
|
18336
|
+
message.content = [];
|
|
18337
|
+
for (var i = 0; i < object.content.length; ++i) {
|
|
18338
|
+
if (typeof object.content[i] !== "object")
|
|
18339
|
+
throw TypeError(".ContentfulCategoryUpdated.content: object expected");
|
|
18340
|
+
message.content[i] = $root.contentful.SlugReference.fromObject(object.content[i]);
|
|
18341
|
+
}
|
|
18342
|
+
}
|
|
18343
|
+
if (object.updatedAt != null)
|
|
18344
|
+
if ($util.Long)
|
|
18345
|
+
(message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
|
|
18346
|
+
else if (typeof object.updatedAt === "string")
|
|
18347
|
+
message.updatedAt = parseInt(object.updatedAt, 10);
|
|
18348
|
+
else if (typeof object.updatedAt === "number")
|
|
18349
|
+
message.updatedAt = object.updatedAt;
|
|
18350
|
+
else if (typeof object.updatedAt === "object")
|
|
18351
|
+
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
18352
|
+
return message;
|
|
18353
|
+
};
|
|
18354
|
+
|
|
18355
|
+
/**
|
|
18356
|
+
* Creates a plain object from a ContentfulCategoryUpdated message. Also converts values to other types if specified.
|
|
18357
|
+
* @function toObject
|
|
18358
|
+
* @memberof ContentfulCategoryUpdated
|
|
18359
|
+
* @static
|
|
18360
|
+
* @param {ContentfulCategoryUpdated} message ContentfulCategoryUpdated
|
|
18361
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
18362
|
+
* @returns {Object.<string,*>} Plain object
|
|
18363
|
+
*/
|
|
18364
|
+
ContentfulCategoryUpdated.toObject = function toObject(message, options) {
|
|
18365
|
+
if (!options)
|
|
18366
|
+
options = {};
|
|
18367
|
+
var object = {};
|
|
18368
|
+
if (options.arrays || options.defaults)
|
|
18369
|
+
object.content = [];
|
|
18370
|
+
if (options.objects || options.defaults)
|
|
18371
|
+
object.name = {};
|
|
18372
|
+
if (options.defaults) {
|
|
18373
|
+
object.slug = "";
|
|
18374
|
+
object.type = "";
|
|
18375
|
+
if ($util.Long) {
|
|
18376
|
+
var long = new $util.Long(0, 0, true);
|
|
18377
|
+
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
18378
|
+
} else
|
|
18379
|
+
object.updatedAt = options.longs === String ? "0" : 0;
|
|
18380
|
+
}
|
|
18381
|
+
var keys2;
|
|
18382
|
+
if (message.name && (keys2 = Object.keys(message.name)).length) {
|
|
18383
|
+
object.name = {};
|
|
18384
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
18385
|
+
object.name[keys2[j]] = message.name[keys2[j]];
|
|
18386
|
+
}
|
|
18387
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
18388
|
+
object.slug = message.slug;
|
|
18389
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
18390
|
+
object.type = message.type;
|
|
18391
|
+
if (message.content && message.content.length) {
|
|
18392
|
+
object.content = [];
|
|
18393
|
+
for (var j = 0; j < message.content.length; ++j)
|
|
18394
|
+
object.content[j] = $root.contentful.SlugReference.toObject(message.content[j], options);
|
|
18395
|
+
}
|
|
18396
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
18397
|
+
if (typeof message.updatedAt === "number")
|
|
18398
|
+
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
18399
|
+
else
|
|
18400
|
+
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;
|
|
18401
|
+
return object;
|
|
18402
|
+
};
|
|
18403
|
+
|
|
18404
|
+
/**
|
|
18405
|
+
* Converts this ContentfulCategoryUpdated to JSON.
|
|
18406
|
+
* @function toJSON
|
|
18407
|
+
* @memberof ContentfulCategoryUpdated
|
|
18408
|
+
* @instance
|
|
18409
|
+
* @returns {Object.<string,*>} JSON object
|
|
18410
|
+
*/
|
|
18411
|
+
ContentfulCategoryUpdated.prototype.toJSON = function toJSON() {
|
|
18412
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
18413
|
+
};
|
|
18414
|
+
|
|
18415
|
+
return ContentfulCategoryUpdated;
|
|
18416
|
+
})();
|
|
18417
|
+
|
|
18418
|
+
$root.ContentfulCategoryDeleted = (function() {
|
|
18419
|
+
|
|
18420
|
+
/**
|
|
18421
|
+
* Properties of a ContentfulCategoryDeleted.
|
|
18422
|
+
* @exports IContentfulCategoryDeleted
|
|
18423
|
+
* @interface IContentfulCategoryDeleted
|
|
18424
|
+
* @property {string|null} [slug] ContentfulCategoryDeleted slug
|
|
18425
|
+
* @property {number|Long|null} [deletedAt] ContentfulCategoryDeleted deletedAt
|
|
18426
|
+
*/
|
|
18427
|
+
|
|
18428
|
+
/**
|
|
18429
|
+
* Constructs a new ContentfulCategoryDeleted.
|
|
18430
|
+
* @exports ContentfulCategoryDeleted
|
|
18431
|
+
* @classdesc Represents a ContentfulCategoryDeleted.
|
|
18432
|
+
* @implements IContentfulCategoryDeleted
|
|
18433
|
+
* @constructor
|
|
18434
|
+
* @param {IContentfulCategoryDeleted=} [properties] Properties to set
|
|
18435
|
+
*/
|
|
18436
|
+
function ContentfulCategoryDeleted(properties) {
|
|
18437
|
+
if (properties)
|
|
18438
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
18439
|
+
if (properties[keys[i]] != null)
|
|
18440
|
+
this[keys[i]] = properties[keys[i]];
|
|
18441
|
+
}
|
|
18442
|
+
|
|
18443
|
+
/**
|
|
18444
|
+
* ContentfulCategoryDeleted slug.
|
|
18445
|
+
* @member {string} slug
|
|
18446
|
+
* @memberof ContentfulCategoryDeleted
|
|
18447
|
+
* @instance
|
|
18448
|
+
*/
|
|
18449
|
+
ContentfulCategoryDeleted.prototype.slug = "";
|
|
18450
|
+
|
|
18451
|
+
/**
|
|
18452
|
+
* ContentfulCategoryDeleted deletedAt.
|
|
18453
|
+
* @member {number|Long} deletedAt
|
|
18454
|
+
* @memberof ContentfulCategoryDeleted
|
|
18455
|
+
* @instance
|
|
18456
|
+
*/
|
|
18457
|
+
ContentfulCategoryDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
18458
|
+
|
|
18459
|
+
/**
|
|
18460
|
+
* Creates a new ContentfulCategoryDeleted instance using the specified properties.
|
|
18461
|
+
* @function create
|
|
18462
|
+
* @memberof ContentfulCategoryDeleted
|
|
18463
|
+
* @static
|
|
18464
|
+
* @param {IContentfulCategoryDeleted=} [properties] Properties to set
|
|
18465
|
+
* @returns {ContentfulCategoryDeleted} ContentfulCategoryDeleted instance
|
|
18466
|
+
*/
|
|
18467
|
+
ContentfulCategoryDeleted.create = function create(properties) {
|
|
18468
|
+
return new ContentfulCategoryDeleted(properties);
|
|
18469
|
+
};
|
|
18470
|
+
|
|
18471
|
+
/**
|
|
18472
|
+
* Encodes the specified ContentfulCategoryDeleted message. Does not implicitly {@link ContentfulCategoryDeleted.verify|verify} messages.
|
|
18473
|
+
* @function encode
|
|
18474
|
+
* @memberof ContentfulCategoryDeleted
|
|
18475
|
+
* @static
|
|
18476
|
+
* @param {IContentfulCategoryDeleted} message ContentfulCategoryDeleted message or plain object to encode
|
|
18477
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
18478
|
+
* @returns {$protobuf.Writer} Writer
|
|
18479
|
+
*/
|
|
18480
|
+
ContentfulCategoryDeleted.encode = function encode(message, writer) {
|
|
18481
|
+
if (!writer)
|
|
18482
|
+
writer = $Writer.create();
|
|
18483
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
18484
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
18485
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
18486
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
|
|
18487
|
+
return writer;
|
|
18488
|
+
};
|
|
18489
|
+
|
|
18490
|
+
/**
|
|
18491
|
+
* Encodes the specified ContentfulCategoryDeleted message, length delimited. Does not implicitly {@link ContentfulCategoryDeleted.verify|verify} messages.
|
|
18492
|
+
* @function encodeDelimited
|
|
18493
|
+
* @memberof ContentfulCategoryDeleted
|
|
18494
|
+
* @static
|
|
18495
|
+
* @param {IContentfulCategoryDeleted} message ContentfulCategoryDeleted message or plain object to encode
|
|
17182
18496
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
17183
18497
|
* @returns {$protobuf.Writer} Writer
|
|
17184
18498
|
*/
|
|
17185
|
-
|
|
18499
|
+
ContentfulCategoryDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
17186
18500
|
return this.encode(message, writer).ldelim();
|
|
17187
18501
|
};
|
|
17188
18502
|
|
|
17189
18503
|
/**
|
|
17190
|
-
* Decodes a
|
|
18504
|
+
* Decodes a ContentfulCategoryDeleted message from the specified reader or buffer.
|
|
17191
18505
|
* @function decode
|
|
17192
|
-
* @memberof
|
|
18506
|
+
* @memberof ContentfulCategoryDeleted
|
|
17193
18507
|
* @static
|
|
17194
18508
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
17195
18509
|
* @param {number} [length] Message length if known beforehand
|
|
17196
|
-
* @returns {
|
|
18510
|
+
* @returns {ContentfulCategoryDeleted} ContentfulCategoryDeleted
|
|
17197
18511
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17198
18512
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17199
18513
|
*/
|
|
17200
|
-
|
|
18514
|
+
ContentfulCategoryDeleted.decode = function decode(reader, length) {
|
|
17201
18515
|
if (!(reader instanceof $Reader))
|
|
17202
18516
|
reader = $Reader.create(reader);
|
|
17203
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.
|
|
18517
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulCategoryDeleted();
|
|
17204
18518
|
while (reader.pos < end) {
|
|
17205
18519
|
var tag = reader.uint32();
|
|
17206
18520
|
switch (tag >>> 3) {
|
|
@@ -17219,30 +18533,30 @@ $root.ContentfulSubscriptionAccessGroupDeleted = (function() {
|
|
|
17219
18533
|
};
|
|
17220
18534
|
|
|
17221
18535
|
/**
|
|
17222
|
-
* Decodes a
|
|
18536
|
+
* Decodes a ContentfulCategoryDeleted message from the specified reader or buffer, length delimited.
|
|
17223
18537
|
* @function decodeDelimited
|
|
17224
|
-
* @memberof
|
|
18538
|
+
* @memberof ContentfulCategoryDeleted
|
|
17225
18539
|
* @static
|
|
17226
18540
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
17227
|
-
* @returns {
|
|
18541
|
+
* @returns {ContentfulCategoryDeleted} ContentfulCategoryDeleted
|
|
17228
18542
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17229
18543
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17230
18544
|
*/
|
|
17231
|
-
|
|
18545
|
+
ContentfulCategoryDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
17232
18546
|
if (!(reader instanceof $Reader))
|
|
17233
18547
|
reader = new $Reader(reader);
|
|
17234
18548
|
return this.decode(reader, reader.uint32());
|
|
17235
18549
|
};
|
|
17236
18550
|
|
|
17237
18551
|
/**
|
|
17238
|
-
* Verifies a
|
|
18552
|
+
* Verifies a ContentfulCategoryDeleted message.
|
|
17239
18553
|
* @function verify
|
|
17240
|
-
* @memberof
|
|
18554
|
+
* @memberof ContentfulCategoryDeleted
|
|
17241
18555
|
* @static
|
|
17242
18556
|
* @param {Object.<string,*>} message Plain object to verify
|
|
17243
18557
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
17244
18558
|
*/
|
|
17245
|
-
|
|
18559
|
+
ContentfulCategoryDeleted.verify = function verify(message) {
|
|
17246
18560
|
if (typeof message !== "object" || message === null)
|
|
17247
18561
|
return "object expected";
|
|
17248
18562
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
@@ -17255,17 +18569,17 @@ $root.ContentfulSubscriptionAccessGroupDeleted = (function() {
|
|
|
17255
18569
|
};
|
|
17256
18570
|
|
|
17257
18571
|
/**
|
|
17258
|
-
* Creates a
|
|
18572
|
+
* Creates a ContentfulCategoryDeleted message from a plain object. Also converts values to their respective internal types.
|
|
17259
18573
|
* @function fromObject
|
|
17260
|
-
* @memberof
|
|
18574
|
+
* @memberof ContentfulCategoryDeleted
|
|
17261
18575
|
* @static
|
|
17262
18576
|
* @param {Object.<string,*>} object Plain object
|
|
17263
|
-
* @returns {
|
|
18577
|
+
* @returns {ContentfulCategoryDeleted} ContentfulCategoryDeleted
|
|
17264
18578
|
*/
|
|
17265
|
-
|
|
17266
|
-
if (object instanceof $root.
|
|
18579
|
+
ContentfulCategoryDeleted.fromObject = function fromObject(object) {
|
|
18580
|
+
if (object instanceof $root.ContentfulCategoryDeleted)
|
|
17267
18581
|
return object;
|
|
17268
|
-
var message = new $root.
|
|
18582
|
+
var message = new $root.ContentfulCategoryDeleted();
|
|
17269
18583
|
if (object.slug != null)
|
|
17270
18584
|
message.slug = String(object.slug);
|
|
17271
18585
|
if (object.deletedAt != null)
|
|
@@ -17281,15 +18595,15 @@ $root.ContentfulSubscriptionAccessGroupDeleted = (function() {
|
|
|
17281
18595
|
};
|
|
17282
18596
|
|
|
17283
18597
|
/**
|
|
17284
|
-
* Creates a plain object from a
|
|
18598
|
+
* Creates a plain object from a ContentfulCategoryDeleted message. Also converts values to other types if specified.
|
|
17285
18599
|
* @function toObject
|
|
17286
|
-
* @memberof
|
|
18600
|
+
* @memberof ContentfulCategoryDeleted
|
|
17287
18601
|
* @static
|
|
17288
|
-
* @param {
|
|
18602
|
+
* @param {ContentfulCategoryDeleted} message ContentfulCategoryDeleted
|
|
17289
18603
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
17290
18604
|
* @returns {Object.<string,*>} Plain object
|
|
17291
18605
|
*/
|
|
17292
|
-
|
|
18606
|
+
ContentfulCategoryDeleted.toObject = function toObject(message, options) {
|
|
17293
18607
|
if (!options)
|
|
17294
18608
|
options = {};
|
|
17295
18609
|
var object = {};
|
|
@@ -17312,43 +18626,42 @@ $root.ContentfulSubscriptionAccessGroupDeleted = (function() {
|
|
|
17312
18626
|
};
|
|
17313
18627
|
|
|
17314
18628
|
/**
|
|
17315
|
-
* Converts this
|
|
18629
|
+
* Converts this ContentfulCategoryDeleted to JSON.
|
|
17316
18630
|
* @function toJSON
|
|
17317
|
-
* @memberof
|
|
18631
|
+
* @memberof ContentfulCategoryDeleted
|
|
17318
18632
|
* @instance
|
|
17319
18633
|
* @returns {Object.<string,*>} JSON object
|
|
17320
18634
|
*/
|
|
17321
|
-
|
|
18635
|
+
ContentfulCategoryDeleted.prototype.toJSON = function toJSON() {
|
|
17322
18636
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
17323
18637
|
};
|
|
17324
18638
|
|
|
17325
|
-
return
|
|
18639
|
+
return ContentfulCategoryDeleted;
|
|
17326
18640
|
})();
|
|
17327
18641
|
|
|
17328
|
-
$root.
|
|
18642
|
+
$root.ContentfulMediaWrapperCreated = (function() {
|
|
17329
18643
|
|
|
17330
18644
|
/**
|
|
17331
|
-
* Properties of a
|
|
17332
|
-
* @exports
|
|
17333
|
-
* @interface
|
|
17334
|
-
* @property {
|
|
17335
|
-
* @property {string
|
|
17336
|
-
* @property {string
|
|
17337
|
-
* @property {
|
|
17338
|
-
* @property {number|Long|null} [createdAt] ContentfulCategoryCreated createdAt
|
|
18645
|
+
* Properties of a ContentfulMediaWrapperCreated.
|
|
18646
|
+
* @exports IContentfulMediaWrapperCreated
|
|
18647
|
+
* @interface IContentfulMediaWrapperCreated
|
|
18648
|
+
* @property {string|null} [slug] ContentfulMediaWrapperCreated slug
|
|
18649
|
+
* @property {Object.<string,contentful.IIdReference>|null} [media] ContentfulMediaWrapperCreated media
|
|
18650
|
+
* @property {Object.<string,contentful.IIdReference>|null} [caption] ContentfulMediaWrapperCreated caption
|
|
18651
|
+
* @property {number|Long|null} [createdAt] ContentfulMediaWrapperCreated createdAt
|
|
17339
18652
|
*/
|
|
17340
18653
|
|
|
17341
18654
|
/**
|
|
17342
|
-
* Constructs a new
|
|
17343
|
-
* @exports
|
|
17344
|
-
* @classdesc Represents a
|
|
17345
|
-
* @implements
|
|
18655
|
+
* Constructs a new ContentfulMediaWrapperCreated.
|
|
18656
|
+
* @exports ContentfulMediaWrapperCreated
|
|
18657
|
+
* @classdesc Represents a ContentfulMediaWrapperCreated.
|
|
18658
|
+
* @implements IContentfulMediaWrapperCreated
|
|
17346
18659
|
* @constructor
|
|
17347
|
-
* @param {
|
|
18660
|
+
* @param {IContentfulMediaWrapperCreated=} [properties] Properties to set
|
|
17348
18661
|
*/
|
|
17349
|
-
function
|
|
17350
|
-
this.
|
|
17351
|
-
this.
|
|
18662
|
+
function ContentfulMediaWrapperCreated(properties) {
|
|
18663
|
+
this.media = {};
|
|
18664
|
+
this.caption = {};
|
|
17352
18665
|
if (properties)
|
|
17353
18666
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
17354
18667
|
if (properties[keys[i]] != null)
|
|
@@ -17356,135 +18669,129 @@ $root.ContentfulCategoryCreated = (function() {
|
|
|
17356
18669
|
}
|
|
17357
18670
|
|
|
17358
18671
|
/**
|
|
17359
|
-
*
|
|
17360
|
-
* @member {Object.<string,string>} name
|
|
17361
|
-
* @memberof ContentfulCategoryCreated
|
|
17362
|
-
* @instance
|
|
17363
|
-
*/
|
|
17364
|
-
ContentfulCategoryCreated.prototype.name = $util.emptyObject;
|
|
17365
|
-
|
|
17366
|
-
/**
|
|
17367
|
-
* ContentfulCategoryCreated slug.
|
|
18672
|
+
* ContentfulMediaWrapperCreated slug.
|
|
17368
18673
|
* @member {string} slug
|
|
17369
|
-
* @memberof
|
|
18674
|
+
* @memberof ContentfulMediaWrapperCreated
|
|
17370
18675
|
* @instance
|
|
17371
18676
|
*/
|
|
17372
|
-
|
|
18677
|
+
ContentfulMediaWrapperCreated.prototype.slug = "";
|
|
17373
18678
|
|
|
17374
18679
|
/**
|
|
17375
|
-
*
|
|
17376
|
-
* @member {string}
|
|
17377
|
-
* @memberof
|
|
18680
|
+
* ContentfulMediaWrapperCreated media.
|
|
18681
|
+
* @member {Object.<string,contentful.IIdReference>} media
|
|
18682
|
+
* @memberof ContentfulMediaWrapperCreated
|
|
17378
18683
|
* @instance
|
|
17379
18684
|
*/
|
|
17380
|
-
|
|
18685
|
+
ContentfulMediaWrapperCreated.prototype.media = $util.emptyObject;
|
|
17381
18686
|
|
|
17382
18687
|
/**
|
|
17383
|
-
*
|
|
17384
|
-
* @member {
|
|
17385
|
-
* @memberof
|
|
18688
|
+
* ContentfulMediaWrapperCreated caption.
|
|
18689
|
+
* @member {Object.<string,contentful.IIdReference>} caption
|
|
18690
|
+
* @memberof ContentfulMediaWrapperCreated
|
|
17386
18691
|
* @instance
|
|
17387
18692
|
*/
|
|
17388
|
-
|
|
18693
|
+
ContentfulMediaWrapperCreated.prototype.caption = $util.emptyObject;
|
|
17389
18694
|
|
|
17390
18695
|
/**
|
|
17391
|
-
*
|
|
18696
|
+
* ContentfulMediaWrapperCreated createdAt.
|
|
17392
18697
|
* @member {number|Long} createdAt
|
|
17393
|
-
* @memberof
|
|
18698
|
+
* @memberof ContentfulMediaWrapperCreated
|
|
17394
18699
|
* @instance
|
|
17395
18700
|
*/
|
|
17396
|
-
|
|
18701
|
+
ContentfulMediaWrapperCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
17397
18702
|
|
|
17398
18703
|
/**
|
|
17399
|
-
* Creates a new
|
|
18704
|
+
* Creates a new ContentfulMediaWrapperCreated instance using the specified properties.
|
|
17400
18705
|
* @function create
|
|
17401
|
-
* @memberof
|
|
18706
|
+
* @memberof ContentfulMediaWrapperCreated
|
|
17402
18707
|
* @static
|
|
17403
|
-
* @param {
|
|
17404
|
-
* @returns {
|
|
18708
|
+
* @param {IContentfulMediaWrapperCreated=} [properties] Properties to set
|
|
18709
|
+
* @returns {ContentfulMediaWrapperCreated} ContentfulMediaWrapperCreated instance
|
|
17405
18710
|
*/
|
|
17406
|
-
|
|
17407
|
-
return new
|
|
18711
|
+
ContentfulMediaWrapperCreated.create = function create(properties) {
|
|
18712
|
+
return new ContentfulMediaWrapperCreated(properties);
|
|
17408
18713
|
};
|
|
17409
18714
|
|
|
17410
18715
|
/**
|
|
17411
|
-
* Encodes the specified
|
|
18716
|
+
* Encodes the specified ContentfulMediaWrapperCreated message. Does not implicitly {@link ContentfulMediaWrapperCreated.verify|verify} messages.
|
|
17412
18717
|
* @function encode
|
|
17413
|
-
* @memberof
|
|
18718
|
+
* @memberof ContentfulMediaWrapperCreated
|
|
17414
18719
|
* @static
|
|
17415
|
-
* @param {
|
|
18720
|
+
* @param {IContentfulMediaWrapperCreated} message ContentfulMediaWrapperCreated message or plain object to encode
|
|
17416
18721
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
17417
18722
|
* @returns {$protobuf.Writer} Writer
|
|
17418
18723
|
*/
|
|
17419
|
-
|
|
18724
|
+
ContentfulMediaWrapperCreated.encode = function encode(message, writer) {
|
|
17420
18725
|
if (!writer)
|
|
17421
18726
|
writer = $Writer.create();
|
|
17422
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
17423
|
-
for (var keys = Object.keys(message.name), i = 0; i < keys.length; ++i)
|
|
17424
|
-
writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.name[keys[i]]).ldelim();
|
|
17425
18727
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
17426
|
-
writer.uint32(/* id
|
|
17427
|
-
if (message.
|
|
17428
|
-
|
|
17429
|
-
|
|
17430
|
-
|
|
17431
|
-
|
|
18728
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
18729
|
+
if (message.media != null && message.hasOwnProperty("media"))
|
|
18730
|
+
for (var keys = Object.keys(message.media), i = 0; i < keys.length; ++i) {
|
|
18731
|
+
writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
18732
|
+
$root.contentful.IdReference.encode(message.media[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
18733
|
+
}
|
|
18734
|
+
if (message.caption != null && message.hasOwnProperty("caption"))
|
|
18735
|
+
for (var keys = Object.keys(message.caption), i = 0; i < keys.length; ++i) {
|
|
18736
|
+
writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
18737
|
+
$root.contentful.IdReference.encode(message.caption[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
18738
|
+
}
|
|
17432
18739
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
17433
|
-
writer.uint32(/* id
|
|
18740
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.createdAt);
|
|
17434
18741
|
return writer;
|
|
17435
18742
|
};
|
|
17436
18743
|
|
|
17437
18744
|
/**
|
|
17438
|
-
* Encodes the specified
|
|
18745
|
+
* Encodes the specified ContentfulMediaWrapperCreated message, length delimited. Does not implicitly {@link ContentfulMediaWrapperCreated.verify|verify} messages.
|
|
17439
18746
|
* @function encodeDelimited
|
|
17440
|
-
* @memberof
|
|
18747
|
+
* @memberof ContentfulMediaWrapperCreated
|
|
17441
18748
|
* @static
|
|
17442
|
-
* @param {
|
|
18749
|
+
* @param {IContentfulMediaWrapperCreated} message ContentfulMediaWrapperCreated message or plain object to encode
|
|
17443
18750
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
17444
18751
|
* @returns {$protobuf.Writer} Writer
|
|
17445
18752
|
*/
|
|
17446
|
-
|
|
18753
|
+
ContentfulMediaWrapperCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
17447
18754
|
return this.encode(message, writer).ldelim();
|
|
17448
18755
|
};
|
|
17449
18756
|
|
|
17450
18757
|
/**
|
|
17451
|
-
* Decodes a
|
|
18758
|
+
* Decodes a ContentfulMediaWrapperCreated message from the specified reader or buffer.
|
|
17452
18759
|
* @function decode
|
|
17453
|
-
* @memberof
|
|
18760
|
+
* @memberof ContentfulMediaWrapperCreated
|
|
17454
18761
|
* @static
|
|
17455
18762
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
17456
18763
|
* @param {number} [length] Message length if known beforehand
|
|
17457
|
-
* @returns {
|
|
18764
|
+
* @returns {ContentfulMediaWrapperCreated} ContentfulMediaWrapperCreated
|
|
17458
18765
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17459
18766
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17460
18767
|
*/
|
|
17461
|
-
|
|
18768
|
+
ContentfulMediaWrapperCreated.decode = function decode(reader, length) {
|
|
17462
18769
|
if (!(reader instanceof $Reader))
|
|
17463
18770
|
reader = $Reader.create(reader);
|
|
17464
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.
|
|
18771
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulMediaWrapperCreated(), key;
|
|
17465
18772
|
while (reader.pos < end) {
|
|
17466
18773
|
var tag = reader.uint32();
|
|
17467
18774
|
switch (tag >>> 3) {
|
|
17468
18775
|
case 1:
|
|
18776
|
+
message.slug = reader.string();
|
|
18777
|
+
break;
|
|
18778
|
+
case 2:
|
|
17469
18779
|
reader.skip().pos++;
|
|
17470
|
-
if (message.
|
|
17471
|
-
message.
|
|
18780
|
+
if (message.media === $util.emptyObject)
|
|
18781
|
+
message.media = {};
|
|
17472
18782
|
key = reader.string();
|
|
17473
18783
|
reader.pos++;
|
|
17474
|
-
message.
|
|
17475
|
-
break;
|
|
17476
|
-
case 2:
|
|
17477
|
-
message.slug = reader.string();
|
|
18784
|
+
message.media[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
17478
18785
|
break;
|
|
17479
18786
|
case 3:
|
|
17480
|
-
|
|
18787
|
+
reader.skip().pos++;
|
|
18788
|
+
if (message.caption === $util.emptyObject)
|
|
18789
|
+
message.caption = {};
|
|
18790
|
+
key = reader.string();
|
|
18791
|
+
reader.pos++;
|
|
18792
|
+
message.caption[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
17481
18793
|
break;
|
|
17482
18794
|
case 4:
|
|
17483
|
-
if (!(message.content && message.content.length))
|
|
17484
|
-
message.content = [];
|
|
17485
|
-
message.content.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
17486
|
-
break;
|
|
17487
|
-
case 5:
|
|
17488
18795
|
message.createdAt = reader.uint64();
|
|
17489
18796
|
break;
|
|
17490
18797
|
default:
|
|
@@ -17496,53 +18803,53 @@ $root.ContentfulCategoryCreated = (function() {
|
|
|
17496
18803
|
};
|
|
17497
18804
|
|
|
17498
18805
|
/**
|
|
17499
|
-
* Decodes a
|
|
18806
|
+
* Decodes a ContentfulMediaWrapperCreated message from the specified reader or buffer, length delimited.
|
|
17500
18807
|
* @function decodeDelimited
|
|
17501
|
-
* @memberof
|
|
18808
|
+
* @memberof ContentfulMediaWrapperCreated
|
|
17502
18809
|
* @static
|
|
17503
18810
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
17504
|
-
* @returns {
|
|
18811
|
+
* @returns {ContentfulMediaWrapperCreated} ContentfulMediaWrapperCreated
|
|
17505
18812
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17506
18813
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17507
18814
|
*/
|
|
17508
|
-
|
|
18815
|
+
ContentfulMediaWrapperCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
17509
18816
|
if (!(reader instanceof $Reader))
|
|
17510
18817
|
reader = new $Reader(reader);
|
|
17511
18818
|
return this.decode(reader, reader.uint32());
|
|
17512
18819
|
};
|
|
17513
18820
|
|
|
17514
18821
|
/**
|
|
17515
|
-
* Verifies a
|
|
18822
|
+
* Verifies a ContentfulMediaWrapperCreated message.
|
|
17516
18823
|
* @function verify
|
|
17517
|
-
* @memberof
|
|
18824
|
+
* @memberof ContentfulMediaWrapperCreated
|
|
17518
18825
|
* @static
|
|
17519
18826
|
* @param {Object.<string,*>} message Plain object to verify
|
|
17520
18827
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
17521
18828
|
*/
|
|
17522
|
-
|
|
18829
|
+
ContentfulMediaWrapperCreated.verify = function verify(message) {
|
|
17523
18830
|
if (typeof message !== "object" || message === null)
|
|
17524
18831
|
return "object expected";
|
|
17525
|
-
if (message.name != null && message.hasOwnProperty("name")) {
|
|
17526
|
-
if (!$util.isObject(message.name))
|
|
17527
|
-
return "name: object expected";
|
|
17528
|
-
var key = Object.keys(message.name);
|
|
17529
|
-
for (var i = 0; i < key.length; ++i)
|
|
17530
|
-
if (!$util.isString(message.name[key[i]]))
|
|
17531
|
-
return "name: string{k:string} expected";
|
|
17532
|
-
}
|
|
17533
18832
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
17534
18833
|
if (!$util.isString(message.slug))
|
|
17535
18834
|
return "slug: string expected";
|
|
17536
|
-
if (message.
|
|
17537
|
-
if (!$util.
|
|
17538
|
-
return "
|
|
17539
|
-
|
|
17540
|
-
|
|
17541
|
-
|
|
17542
|
-
for (var i = 0; i < message.content.length; ++i) {
|
|
17543
|
-
var error = $root.contentful.SlugReference.verify(message.content[i]);
|
|
18835
|
+
if (message.media != null && message.hasOwnProperty("media")) {
|
|
18836
|
+
if (!$util.isObject(message.media))
|
|
18837
|
+
return "media: object expected";
|
|
18838
|
+
var key = Object.keys(message.media);
|
|
18839
|
+
for (var i = 0; i < key.length; ++i) {
|
|
18840
|
+
var error = $root.contentful.IdReference.verify(message.media[key[i]]);
|
|
17544
18841
|
if (error)
|
|
17545
|
-
return "
|
|
18842
|
+
return "media." + error;
|
|
18843
|
+
}
|
|
18844
|
+
}
|
|
18845
|
+
if (message.caption != null && message.hasOwnProperty("caption")) {
|
|
18846
|
+
if (!$util.isObject(message.caption))
|
|
18847
|
+
return "caption: object expected";
|
|
18848
|
+
var key = Object.keys(message.caption);
|
|
18849
|
+
for (var i = 0; i < key.length; ++i) {
|
|
18850
|
+
var error = $root.contentful.IdReference.verify(message.caption[key[i]]);
|
|
18851
|
+
if (error)
|
|
18852
|
+
return "caption." + error;
|
|
17546
18853
|
}
|
|
17547
18854
|
}
|
|
17548
18855
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
@@ -17552,36 +18859,37 @@ $root.ContentfulCategoryCreated = (function() {
|
|
|
17552
18859
|
};
|
|
17553
18860
|
|
|
17554
18861
|
/**
|
|
17555
|
-
* Creates a
|
|
18862
|
+
* Creates a ContentfulMediaWrapperCreated message from a plain object. Also converts values to their respective internal types.
|
|
17556
18863
|
* @function fromObject
|
|
17557
|
-
* @memberof
|
|
18864
|
+
* @memberof ContentfulMediaWrapperCreated
|
|
17558
18865
|
* @static
|
|
17559
18866
|
* @param {Object.<string,*>} object Plain object
|
|
17560
|
-
* @returns {
|
|
18867
|
+
* @returns {ContentfulMediaWrapperCreated} ContentfulMediaWrapperCreated
|
|
17561
18868
|
*/
|
|
17562
|
-
|
|
17563
|
-
if (object instanceof $root.
|
|
18869
|
+
ContentfulMediaWrapperCreated.fromObject = function fromObject(object) {
|
|
18870
|
+
if (object instanceof $root.ContentfulMediaWrapperCreated)
|
|
17564
18871
|
return object;
|
|
17565
|
-
var message = new $root.
|
|
17566
|
-
if (object.name) {
|
|
17567
|
-
if (typeof object.name !== "object")
|
|
17568
|
-
throw TypeError(".ContentfulCategoryCreated.name: object expected");
|
|
17569
|
-
message.name = {};
|
|
17570
|
-
for (var keys = Object.keys(object.name), i = 0; i < keys.length; ++i)
|
|
17571
|
-
message.name[keys[i]] = String(object.name[keys[i]]);
|
|
17572
|
-
}
|
|
18872
|
+
var message = new $root.ContentfulMediaWrapperCreated();
|
|
17573
18873
|
if (object.slug != null)
|
|
17574
18874
|
message.slug = String(object.slug);
|
|
17575
|
-
if (object.
|
|
17576
|
-
|
|
17577
|
-
|
|
17578
|
-
|
|
17579
|
-
|
|
17580
|
-
|
|
17581
|
-
|
|
17582
|
-
|
|
17583
|
-
|
|
17584
|
-
|
|
18875
|
+
if (object.media) {
|
|
18876
|
+
if (typeof object.media !== "object")
|
|
18877
|
+
throw TypeError(".ContentfulMediaWrapperCreated.media: object expected");
|
|
18878
|
+
message.media = {};
|
|
18879
|
+
for (var keys = Object.keys(object.media), i = 0; i < keys.length; ++i) {
|
|
18880
|
+
if (typeof object.media[keys[i]] !== "object")
|
|
18881
|
+
throw TypeError(".ContentfulMediaWrapperCreated.media: object expected");
|
|
18882
|
+
message.media[keys[i]] = $root.contentful.IdReference.fromObject(object.media[keys[i]]);
|
|
18883
|
+
}
|
|
18884
|
+
}
|
|
18885
|
+
if (object.caption) {
|
|
18886
|
+
if (typeof object.caption !== "object")
|
|
18887
|
+
throw TypeError(".ContentfulMediaWrapperCreated.caption: object expected");
|
|
18888
|
+
message.caption = {};
|
|
18889
|
+
for (var keys = Object.keys(object.caption), i = 0; i < keys.length; ++i) {
|
|
18890
|
+
if (typeof object.caption[keys[i]] !== "object")
|
|
18891
|
+
throw TypeError(".ContentfulMediaWrapperCreated.caption: object expected");
|
|
18892
|
+
message.caption[keys[i]] = $root.contentful.IdReference.fromObject(object.caption[keys[i]]);
|
|
17585
18893
|
}
|
|
17586
18894
|
}
|
|
17587
18895
|
if (object.createdAt != null)
|
|
@@ -17597,45 +18905,42 @@ $root.ContentfulCategoryCreated = (function() {
|
|
|
17597
18905
|
};
|
|
17598
18906
|
|
|
17599
18907
|
/**
|
|
17600
|
-
* Creates a plain object from a
|
|
18908
|
+
* Creates a plain object from a ContentfulMediaWrapperCreated message. Also converts values to other types if specified.
|
|
17601
18909
|
* @function toObject
|
|
17602
|
-
* @memberof
|
|
18910
|
+
* @memberof ContentfulMediaWrapperCreated
|
|
17603
18911
|
* @static
|
|
17604
|
-
* @param {
|
|
18912
|
+
* @param {ContentfulMediaWrapperCreated} message ContentfulMediaWrapperCreated
|
|
17605
18913
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
17606
18914
|
* @returns {Object.<string,*>} Plain object
|
|
17607
18915
|
*/
|
|
17608
|
-
|
|
18916
|
+
ContentfulMediaWrapperCreated.toObject = function toObject(message, options) {
|
|
17609
18917
|
if (!options)
|
|
17610
18918
|
options = {};
|
|
17611
18919
|
var object = {};
|
|
17612
|
-
if (options.
|
|
17613
|
-
object.
|
|
17614
|
-
|
|
17615
|
-
|
|
18920
|
+
if (options.objects || options.defaults) {
|
|
18921
|
+
object.media = {};
|
|
18922
|
+
object.caption = {};
|
|
18923
|
+
}
|
|
17616
18924
|
if (options.defaults) {
|
|
17617
18925
|
object.slug = "";
|
|
17618
|
-
object.type = "";
|
|
17619
18926
|
if ($util.Long) {
|
|
17620
18927
|
var long = new $util.Long(0, 0, true);
|
|
17621
18928
|
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
17622
18929
|
} else
|
|
17623
18930
|
object.createdAt = options.longs === String ? "0" : 0;
|
|
17624
18931
|
}
|
|
18932
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
18933
|
+
object.slug = message.slug;
|
|
17625
18934
|
var keys2;
|
|
17626
|
-
if (message.
|
|
17627
|
-
object.
|
|
18935
|
+
if (message.media && (keys2 = Object.keys(message.media)).length) {
|
|
18936
|
+
object.media = {};
|
|
17628
18937
|
for (var j = 0; j < keys2.length; ++j)
|
|
17629
|
-
object.
|
|
18938
|
+
object.media[keys2[j]] = $root.contentful.IdReference.toObject(message.media[keys2[j]], options);
|
|
17630
18939
|
}
|
|
17631
|
-
if (message.
|
|
17632
|
-
object.
|
|
17633
|
-
|
|
17634
|
-
|
|
17635
|
-
if (message.content && message.content.length) {
|
|
17636
|
-
object.content = [];
|
|
17637
|
-
for (var j = 0; j < message.content.length; ++j)
|
|
17638
|
-
object.content[j] = $root.contentful.SlugReference.toObject(message.content[j], options);
|
|
18940
|
+
if (message.caption && (keys2 = Object.keys(message.caption)).length) {
|
|
18941
|
+
object.caption = {};
|
|
18942
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
18943
|
+
object.caption[keys2[j]] = $root.contentful.IdReference.toObject(message.caption[keys2[j]], options);
|
|
17639
18944
|
}
|
|
17640
18945
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
17641
18946
|
if (typeof message.createdAt === "number")
|
|
@@ -17646,43 +18951,42 @@ $root.ContentfulCategoryCreated = (function() {
|
|
|
17646
18951
|
};
|
|
17647
18952
|
|
|
17648
18953
|
/**
|
|
17649
|
-
* Converts this
|
|
18954
|
+
* Converts this ContentfulMediaWrapperCreated to JSON.
|
|
17650
18955
|
* @function toJSON
|
|
17651
|
-
* @memberof
|
|
18956
|
+
* @memberof ContentfulMediaWrapperCreated
|
|
17652
18957
|
* @instance
|
|
17653
18958
|
* @returns {Object.<string,*>} JSON object
|
|
17654
18959
|
*/
|
|
17655
|
-
|
|
18960
|
+
ContentfulMediaWrapperCreated.prototype.toJSON = function toJSON() {
|
|
17656
18961
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
17657
18962
|
};
|
|
17658
18963
|
|
|
17659
|
-
return
|
|
18964
|
+
return ContentfulMediaWrapperCreated;
|
|
17660
18965
|
})();
|
|
17661
18966
|
|
|
17662
|
-
$root.
|
|
18967
|
+
$root.ContentfulMediaWrapperUpdated = (function() {
|
|
17663
18968
|
|
|
17664
18969
|
/**
|
|
17665
|
-
* Properties of a
|
|
17666
|
-
* @exports
|
|
17667
|
-
* @interface
|
|
17668
|
-
* @property {
|
|
17669
|
-
* @property {string
|
|
17670
|
-
* @property {string
|
|
17671
|
-
* @property {
|
|
17672
|
-
* @property {number|Long|null} [updatedAt] ContentfulCategoryUpdated updatedAt
|
|
18970
|
+
* Properties of a ContentfulMediaWrapperUpdated.
|
|
18971
|
+
* @exports IContentfulMediaWrapperUpdated
|
|
18972
|
+
* @interface IContentfulMediaWrapperUpdated
|
|
18973
|
+
* @property {string|null} [slug] ContentfulMediaWrapperUpdated slug
|
|
18974
|
+
* @property {Object.<string,contentful.IIdReference>|null} [media] ContentfulMediaWrapperUpdated media
|
|
18975
|
+
* @property {Object.<string,contentful.IIdReference>|null} [caption] ContentfulMediaWrapperUpdated caption
|
|
18976
|
+
* @property {number|Long|null} [updatedAt] ContentfulMediaWrapperUpdated updatedAt
|
|
17673
18977
|
*/
|
|
17674
18978
|
|
|
17675
18979
|
/**
|
|
17676
|
-
* Constructs a new
|
|
17677
|
-
* @exports
|
|
17678
|
-
* @classdesc Represents a
|
|
17679
|
-
* @implements
|
|
18980
|
+
* Constructs a new ContentfulMediaWrapperUpdated.
|
|
18981
|
+
* @exports ContentfulMediaWrapperUpdated
|
|
18982
|
+
* @classdesc Represents a ContentfulMediaWrapperUpdated.
|
|
18983
|
+
* @implements IContentfulMediaWrapperUpdated
|
|
17680
18984
|
* @constructor
|
|
17681
|
-
* @param {
|
|
18985
|
+
* @param {IContentfulMediaWrapperUpdated=} [properties] Properties to set
|
|
17682
18986
|
*/
|
|
17683
|
-
function
|
|
17684
|
-
this.
|
|
17685
|
-
this.
|
|
18987
|
+
function ContentfulMediaWrapperUpdated(properties) {
|
|
18988
|
+
this.media = {};
|
|
18989
|
+
this.caption = {};
|
|
17686
18990
|
if (properties)
|
|
17687
18991
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
17688
18992
|
if (properties[keys[i]] != null)
|
|
@@ -17690,135 +18994,129 @@ $root.ContentfulCategoryUpdated = (function() {
|
|
|
17690
18994
|
}
|
|
17691
18995
|
|
|
17692
18996
|
/**
|
|
17693
|
-
*
|
|
17694
|
-
* @member {Object.<string,string>} name
|
|
17695
|
-
* @memberof ContentfulCategoryUpdated
|
|
17696
|
-
* @instance
|
|
17697
|
-
*/
|
|
17698
|
-
ContentfulCategoryUpdated.prototype.name = $util.emptyObject;
|
|
17699
|
-
|
|
17700
|
-
/**
|
|
17701
|
-
* ContentfulCategoryUpdated slug.
|
|
18997
|
+
* ContentfulMediaWrapperUpdated slug.
|
|
17702
18998
|
* @member {string} slug
|
|
17703
|
-
* @memberof
|
|
18999
|
+
* @memberof ContentfulMediaWrapperUpdated
|
|
17704
19000
|
* @instance
|
|
17705
19001
|
*/
|
|
17706
|
-
|
|
19002
|
+
ContentfulMediaWrapperUpdated.prototype.slug = "";
|
|
17707
19003
|
|
|
17708
19004
|
/**
|
|
17709
|
-
*
|
|
17710
|
-
* @member {string}
|
|
17711
|
-
* @memberof
|
|
19005
|
+
* ContentfulMediaWrapperUpdated media.
|
|
19006
|
+
* @member {Object.<string,contentful.IIdReference>} media
|
|
19007
|
+
* @memberof ContentfulMediaWrapperUpdated
|
|
17712
19008
|
* @instance
|
|
17713
19009
|
*/
|
|
17714
|
-
|
|
19010
|
+
ContentfulMediaWrapperUpdated.prototype.media = $util.emptyObject;
|
|
17715
19011
|
|
|
17716
19012
|
/**
|
|
17717
|
-
*
|
|
17718
|
-
* @member {
|
|
17719
|
-
* @memberof
|
|
19013
|
+
* ContentfulMediaWrapperUpdated caption.
|
|
19014
|
+
* @member {Object.<string,contentful.IIdReference>} caption
|
|
19015
|
+
* @memberof ContentfulMediaWrapperUpdated
|
|
17720
19016
|
* @instance
|
|
17721
19017
|
*/
|
|
17722
|
-
|
|
19018
|
+
ContentfulMediaWrapperUpdated.prototype.caption = $util.emptyObject;
|
|
17723
19019
|
|
|
17724
19020
|
/**
|
|
17725
|
-
*
|
|
19021
|
+
* ContentfulMediaWrapperUpdated updatedAt.
|
|
17726
19022
|
* @member {number|Long} updatedAt
|
|
17727
|
-
* @memberof
|
|
19023
|
+
* @memberof ContentfulMediaWrapperUpdated
|
|
17728
19024
|
* @instance
|
|
17729
19025
|
*/
|
|
17730
|
-
|
|
19026
|
+
ContentfulMediaWrapperUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
17731
19027
|
|
|
17732
19028
|
/**
|
|
17733
|
-
* Creates a new
|
|
19029
|
+
* Creates a new ContentfulMediaWrapperUpdated instance using the specified properties.
|
|
17734
19030
|
* @function create
|
|
17735
|
-
* @memberof
|
|
19031
|
+
* @memberof ContentfulMediaWrapperUpdated
|
|
17736
19032
|
* @static
|
|
17737
|
-
* @param {
|
|
17738
|
-
* @returns {
|
|
19033
|
+
* @param {IContentfulMediaWrapperUpdated=} [properties] Properties to set
|
|
19034
|
+
* @returns {ContentfulMediaWrapperUpdated} ContentfulMediaWrapperUpdated instance
|
|
17739
19035
|
*/
|
|
17740
|
-
|
|
17741
|
-
return new
|
|
19036
|
+
ContentfulMediaWrapperUpdated.create = function create(properties) {
|
|
19037
|
+
return new ContentfulMediaWrapperUpdated(properties);
|
|
17742
19038
|
};
|
|
17743
19039
|
|
|
17744
19040
|
/**
|
|
17745
|
-
* Encodes the specified
|
|
19041
|
+
* Encodes the specified ContentfulMediaWrapperUpdated message. Does not implicitly {@link ContentfulMediaWrapperUpdated.verify|verify} messages.
|
|
17746
19042
|
* @function encode
|
|
17747
|
-
* @memberof
|
|
19043
|
+
* @memberof ContentfulMediaWrapperUpdated
|
|
17748
19044
|
* @static
|
|
17749
|
-
* @param {
|
|
19045
|
+
* @param {IContentfulMediaWrapperUpdated} message ContentfulMediaWrapperUpdated message or plain object to encode
|
|
17750
19046
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
17751
19047
|
* @returns {$protobuf.Writer} Writer
|
|
17752
19048
|
*/
|
|
17753
|
-
|
|
19049
|
+
ContentfulMediaWrapperUpdated.encode = function encode(message, writer) {
|
|
17754
19050
|
if (!writer)
|
|
17755
19051
|
writer = $Writer.create();
|
|
17756
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
17757
|
-
for (var keys = Object.keys(message.name), i = 0; i < keys.length; ++i)
|
|
17758
|
-
writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.name[keys[i]]).ldelim();
|
|
17759
19052
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
17760
|
-
writer.uint32(/* id
|
|
17761
|
-
if (message.
|
|
17762
|
-
|
|
17763
|
-
|
|
17764
|
-
|
|
17765
|
-
|
|
19053
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
19054
|
+
if (message.media != null && message.hasOwnProperty("media"))
|
|
19055
|
+
for (var keys = Object.keys(message.media), i = 0; i < keys.length; ++i) {
|
|
19056
|
+
writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
19057
|
+
$root.contentful.IdReference.encode(message.media[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
19058
|
+
}
|
|
19059
|
+
if (message.caption != null && message.hasOwnProperty("caption"))
|
|
19060
|
+
for (var keys = Object.keys(message.caption), i = 0; i < keys.length; ++i) {
|
|
19061
|
+
writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
19062
|
+
$root.contentful.IdReference.encode(message.caption[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
19063
|
+
}
|
|
17766
19064
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
17767
|
-
writer.uint32(/* id
|
|
19065
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.updatedAt);
|
|
17768
19066
|
return writer;
|
|
17769
19067
|
};
|
|
17770
19068
|
|
|
17771
19069
|
/**
|
|
17772
|
-
* Encodes the specified
|
|
19070
|
+
* Encodes the specified ContentfulMediaWrapperUpdated message, length delimited. Does not implicitly {@link ContentfulMediaWrapperUpdated.verify|verify} messages.
|
|
17773
19071
|
* @function encodeDelimited
|
|
17774
|
-
* @memberof
|
|
19072
|
+
* @memberof ContentfulMediaWrapperUpdated
|
|
17775
19073
|
* @static
|
|
17776
|
-
* @param {
|
|
19074
|
+
* @param {IContentfulMediaWrapperUpdated} message ContentfulMediaWrapperUpdated message or plain object to encode
|
|
17777
19075
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
17778
19076
|
* @returns {$protobuf.Writer} Writer
|
|
17779
19077
|
*/
|
|
17780
|
-
|
|
19078
|
+
ContentfulMediaWrapperUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
17781
19079
|
return this.encode(message, writer).ldelim();
|
|
17782
19080
|
};
|
|
17783
19081
|
|
|
17784
19082
|
/**
|
|
17785
|
-
* Decodes a
|
|
19083
|
+
* Decodes a ContentfulMediaWrapperUpdated message from the specified reader or buffer.
|
|
17786
19084
|
* @function decode
|
|
17787
|
-
* @memberof
|
|
19085
|
+
* @memberof ContentfulMediaWrapperUpdated
|
|
17788
19086
|
* @static
|
|
17789
19087
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
17790
19088
|
* @param {number} [length] Message length if known beforehand
|
|
17791
|
-
* @returns {
|
|
19089
|
+
* @returns {ContentfulMediaWrapperUpdated} ContentfulMediaWrapperUpdated
|
|
17792
19090
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17793
19091
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17794
19092
|
*/
|
|
17795
|
-
|
|
19093
|
+
ContentfulMediaWrapperUpdated.decode = function decode(reader, length) {
|
|
17796
19094
|
if (!(reader instanceof $Reader))
|
|
17797
19095
|
reader = $Reader.create(reader);
|
|
17798
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.
|
|
19096
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulMediaWrapperUpdated(), key;
|
|
17799
19097
|
while (reader.pos < end) {
|
|
17800
19098
|
var tag = reader.uint32();
|
|
17801
19099
|
switch (tag >>> 3) {
|
|
17802
19100
|
case 1:
|
|
19101
|
+
message.slug = reader.string();
|
|
19102
|
+
break;
|
|
19103
|
+
case 2:
|
|
17803
19104
|
reader.skip().pos++;
|
|
17804
|
-
if (message.
|
|
17805
|
-
message.
|
|
19105
|
+
if (message.media === $util.emptyObject)
|
|
19106
|
+
message.media = {};
|
|
17806
19107
|
key = reader.string();
|
|
17807
19108
|
reader.pos++;
|
|
17808
|
-
message.
|
|
17809
|
-
break;
|
|
17810
|
-
case 2:
|
|
17811
|
-
message.slug = reader.string();
|
|
19109
|
+
message.media[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
17812
19110
|
break;
|
|
17813
19111
|
case 3:
|
|
17814
|
-
|
|
19112
|
+
reader.skip().pos++;
|
|
19113
|
+
if (message.caption === $util.emptyObject)
|
|
19114
|
+
message.caption = {};
|
|
19115
|
+
key = reader.string();
|
|
19116
|
+
reader.pos++;
|
|
19117
|
+
message.caption[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
17815
19118
|
break;
|
|
17816
19119
|
case 4:
|
|
17817
|
-
if (!(message.content && message.content.length))
|
|
17818
|
-
message.content = [];
|
|
17819
|
-
message.content.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
17820
|
-
break;
|
|
17821
|
-
case 5:
|
|
17822
19120
|
message.updatedAt = reader.uint64();
|
|
17823
19121
|
break;
|
|
17824
19122
|
default:
|
|
@@ -17830,53 +19128,53 @@ $root.ContentfulCategoryUpdated = (function() {
|
|
|
17830
19128
|
};
|
|
17831
19129
|
|
|
17832
19130
|
/**
|
|
17833
|
-
* Decodes a
|
|
19131
|
+
* Decodes a ContentfulMediaWrapperUpdated message from the specified reader or buffer, length delimited.
|
|
17834
19132
|
* @function decodeDelimited
|
|
17835
|
-
* @memberof
|
|
19133
|
+
* @memberof ContentfulMediaWrapperUpdated
|
|
17836
19134
|
* @static
|
|
17837
19135
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
17838
|
-
* @returns {
|
|
19136
|
+
* @returns {ContentfulMediaWrapperUpdated} ContentfulMediaWrapperUpdated
|
|
17839
19137
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17840
19138
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17841
19139
|
*/
|
|
17842
|
-
|
|
19140
|
+
ContentfulMediaWrapperUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
17843
19141
|
if (!(reader instanceof $Reader))
|
|
17844
19142
|
reader = new $Reader(reader);
|
|
17845
19143
|
return this.decode(reader, reader.uint32());
|
|
17846
19144
|
};
|
|
17847
19145
|
|
|
17848
19146
|
/**
|
|
17849
|
-
* Verifies a
|
|
19147
|
+
* Verifies a ContentfulMediaWrapperUpdated message.
|
|
17850
19148
|
* @function verify
|
|
17851
|
-
* @memberof
|
|
19149
|
+
* @memberof ContentfulMediaWrapperUpdated
|
|
17852
19150
|
* @static
|
|
17853
19151
|
* @param {Object.<string,*>} message Plain object to verify
|
|
17854
19152
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
17855
19153
|
*/
|
|
17856
|
-
|
|
19154
|
+
ContentfulMediaWrapperUpdated.verify = function verify(message) {
|
|
17857
19155
|
if (typeof message !== "object" || message === null)
|
|
17858
19156
|
return "object expected";
|
|
17859
|
-
if (message.name != null && message.hasOwnProperty("name")) {
|
|
17860
|
-
if (!$util.isObject(message.name))
|
|
17861
|
-
return "name: object expected";
|
|
17862
|
-
var key = Object.keys(message.name);
|
|
17863
|
-
for (var i = 0; i < key.length; ++i)
|
|
17864
|
-
if (!$util.isString(message.name[key[i]]))
|
|
17865
|
-
return "name: string{k:string} expected";
|
|
17866
|
-
}
|
|
17867
19157
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
17868
19158
|
if (!$util.isString(message.slug))
|
|
17869
19159
|
return "slug: string expected";
|
|
17870
|
-
if (message.
|
|
17871
|
-
if (!$util.
|
|
17872
|
-
return "
|
|
17873
|
-
|
|
17874
|
-
|
|
17875
|
-
|
|
17876
|
-
for (var i = 0; i < message.content.length; ++i) {
|
|
17877
|
-
var error = $root.contentful.SlugReference.verify(message.content[i]);
|
|
19160
|
+
if (message.media != null && message.hasOwnProperty("media")) {
|
|
19161
|
+
if (!$util.isObject(message.media))
|
|
19162
|
+
return "media: object expected";
|
|
19163
|
+
var key = Object.keys(message.media);
|
|
19164
|
+
for (var i = 0; i < key.length; ++i) {
|
|
19165
|
+
var error = $root.contentful.IdReference.verify(message.media[key[i]]);
|
|
17878
19166
|
if (error)
|
|
17879
|
-
return "
|
|
19167
|
+
return "media." + error;
|
|
19168
|
+
}
|
|
19169
|
+
}
|
|
19170
|
+
if (message.caption != null && message.hasOwnProperty("caption")) {
|
|
19171
|
+
if (!$util.isObject(message.caption))
|
|
19172
|
+
return "caption: object expected";
|
|
19173
|
+
var key = Object.keys(message.caption);
|
|
19174
|
+
for (var i = 0; i < key.length; ++i) {
|
|
19175
|
+
var error = $root.contentful.IdReference.verify(message.caption[key[i]]);
|
|
19176
|
+
if (error)
|
|
19177
|
+
return "caption." + error;
|
|
17880
19178
|
}
|
|
17881
19179
|
}
|
|
17882
19180
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
@@ -17886,36 +19184,37 @@ $root.ContentfulCategoryUpdated = (function() {
|
|
|
17886
19184
|
};
|
|
17887
19185
|
|
|
17888
19186
|
/**
|
|
17889
|
-
* Creates a
|
|
19187
|
+
* Creates a ContentfulMediaWrapperUpdated message from a plain object. Also converts values to their respective internal types.
|
|
17890
19188
|
* @function fromObject
|
|
17891
|
-
* @memberof
|
|
19189
|
+
* @memberof ContentfulMediaWrapperUpdated
|
|
17892
19190
|
* @static
|
|
17893
19191
|
* @param {Object.<string,*>} object Plain object
|
|
17894
|
-
* @returns {
|
|
19192
|
+
* @returns {ContentfulMediaWrapperUpdated} ContentfulMediaWrapperUpdated
|
|
17895
19193
|
*/
|
|
17896
|
-
|
|
17897
|
-
if (object instanceof $root.
|
|
19194
|
+
ContentfulMediaWrapperUpdated.fromObject = function fromObject(object) {
|
|
19195
|
+
if (object instanceof $root.ContentfulMediaWrapperUpdated)
|
|
17898
19196
|
return object;
|
|
17899
|
-
var message = new $root.
|
|
17900
|
-
if (object.name) {
|
|
17901
|
-
if (typeof object.name !== "object")
|
|
17902
|
-
throw TypeError(".ContentfulCategoryUpdated.name: object expected");
|
|
17903
|
-
message.name = {};
|
|
17904
|
-
for (var keys = Object.keys(object.name), i = 0; i < keys.length; ++i)
|
|
17905
|
-
message.name[keys[i]] = String(object.name[keys[i]]);
|
|
17906
|
-
}
|
|
19197
|
+
var message = new $root.ContentfulMediaWrapperUpdated();
|
|
17907
19198
|
if (object.slug != null)
|
|
17908
19199
|
message.slug = String(object.slug);
|
|
17909
|
-
if (object.
|
|
17910
|
-
|
|
17911
|
-
|
|
17912
|
-
|
|
17913
|
-
|
|
17914
|
-
|
|
17915
|
-
|
|
17916
|
-
|
|
17917
|
-
|
|
17918
|
-
|
|
19200
|
+
if (object.media) {
|
|
19201
|
+
if (typeof object.media !== "object")
|
|
19202
|
+
throw TypeError(".ContentfulMediaWrapperUpdated.media: object expected");
|
|
19203
|
+
message.media = {};
|
|
19204
|
+
for (var keys = Object.keys(object.media), i = 0; i < keys.length; ++i) {
|
|
19205
|
+
if (typeof object.media[keys[i]] !== "object")
|
|
19206
|
+
throw TypeError(".ContentfulMediaWrapperUpdated.media: object expected");
|
|
19207
|
+
message.media[keys[i]] = $root.contentful.IdReference.fromObject(object.media[keys[i]]);
|
|
19208
|
+
}
|
|
19209
|
+
}
|
|
19210
|
+
if (object.caption) {
|
|
19211
|
+
if (typeof object.caption !== "object")
|
|
19212
|
+
throw TypeError(".ContentfulMediaWrapperUpdated.caption: object expected");
|
|
19213
|
+
message.caption = {};
|
|
19214
|
+
for (var keys = Object.keys(object.caption), i = 0; i < keys.length; ++i) {
|
|
19215
|
+
if (typeof object.caption[keys[i]] !== "object")
|
|
19216
|
+
throw TypeError(".ContentfulMediaWrapperUpdated.caption: object expected");
|
|
19217
|
+
message.caption[keys[i]] = $root.contentful.IdReference.fromObject(object.caption[keys[i]]);
|
|
17919
19218
|
}
|
|
17920
19219
|
}
|
|
17921
19220
|
if (object.updatedAt != null)
|
|
@@ -17931,45 +19230,42 @@ $root.ContentfulCategoryUpdated = (function() {
|
|
|
17931
19230
|
};
|
|
17932
19231
|
|
|
17933
19232
|
/**
|
|
17934
|
-
* Creates a plain object from a
|
|
19233
|
+
* Creates a plain object from a ContentfulMediaWrapperUpdated message. Also converts values to other types if specified.
|
|
17935
19234
|
* @function toObject
|
|
17936
|
-
* @memberof
|
|
19235
|
+
* @memberof ContentfulMediaWrapperUpdated
|
|
17937
19236
|
* @static
|
|
17938
|
-
* @param {
|
|
19237
|
+
* @param {ContentfulMediaWrapperUpdated} message ContentfulMediaWrapperUpdated
|
|
17939
19238
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
17940
19239
|
* @returns {Object.<string,*>} Plain object
|
|
17941
19240
|
*/
|
|
17942
|
-
|
|
19241
|
+
ContentfulMediaWrapperUpdated.toObject = function toObject(message, options) {
|
|
17943
19242
|
if (!options)
|
|
17944
19243
|
options = {};
|
|
17945
19244
|
var object = {};
|
|
17946
|
-
if (options.
|
|
17947
|
-
object.
|
|
17948
|
-
|
|
17949
|
-
|
|
19245
|
+
if (options.objects || options.defaults) {
|
|
19246
|
+
object.media = {};
|
|
19247
|
+
object.caption = {};
|
|
19248
|
+
}
|
|
17950
19249
|
if (options.defaults) {
|
|
17951
19250
|
object.slug = "";
|
|
17952
|
-
object.type = "";
|
|
17953
19251
|
if ($util.Long) {
|
|
17954
19252
|
var long = new $util.Long(0, 0, true);
|
|
17955
19253
|
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
17956
19254
|
} else
|
|
17957
19255
|
object.updatedAt = options.longs === String ? "0" : 0;
|
|
17958
19256
|
}
|
|
19257
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
19258
|
+
object.slug = message.slug;
|
|
17959
19259
|
var keys2;
|
|
17960
|
-
if (message.
|
|
17961
|
-
object.
|
|
19260
|
+
if (message.media && (keys2 = Object.keys(message.media)).length) {
|
|
19261
|
+
object.media = {};
|
|
17962
19262
|
for (var j = 0; j < keys2.length; ++j)
|
|
17963
|
-
object.
|
|
19263
|
+
object.media[keys2[j]] = $root.contentful.IdReference.toObject(message.media[keys2[j]], options);
|
|
17964
19264
|
}
|
|
17965
|
-
if (message.
|
|
17966
|
-
object.
|
|
17967
|
-
|
|
17968
|
-
|
|
17969
|
-
if (message.content && message.content.length) {
|
|
17970
|
-
object.content = [];
|
|
17971
|
-
for (var j = 0; j < message.content.length; ++j)
|
|
17972
|
-
object.content[j] = $root.contentful.SlugReference.toObject(message.content[j], options);
|
|
19265
|
+
if (message.caption && (keys2 = Object.keys(message.caption)).length) {
|
|
19266
|
+
object.caption = {};
|
|
19267
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
19268
|
+
object.caption[keys2[j]] = $root.contentful.IdReference.toObject(message.caption[keys2[j]], options);
|
|
17973
19269
|
}
|
|
17974
19270
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
17975
19271
|
if (typeof message.updatedAt === "number")
|
|
@@ -17980,38 +19276,38 @@ $root.ContentfulCategoryUpdated = (function() {
|
|
|
17980
19276
|
};
|
|
17981
19277
|
|
|
17982
19278
|
/**
|
|
17983
|
-
* Converts this
|
|
19279
|
+
* Converts this ContentfulMediaWrapperUpdated to JSON.
|
|
17984
19280
|
* @function toJSON
|
|
17985
|
-
* @memberof
|
|
19281
|
+
* @memberof ContentfulMediaWrapperUpdated
|
|
17986
19282
|
* @instance
|
|
17987
19283
|
* @returns {Object.<string,*>} JSON object
|
|
17988
19284
|
*/
|
|
17989
|
-
|
|
19285
|
+
ContentfulMediaWrapperUpdated.prototype.toJSON = function toJSON() {
|
|
17990
19286
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
17991
19287
|
};
|
|
17992
19288
|
|
|
17993
|
-
return
|
|
19289
|
+
return ContentfulMediaWrapperUpdated;
|
|
17994
19290
|
})();
|
|
17995
19291
|
|
|
17996
|
-
$root.
|
|
19292
|
+
$root.ContentfulMediaWrapperDeleted = (function() {
|
|
17997
19293
|
|
|
17998
19294
|
/**
|
|
17999
|
-
* Properties of a
|
|
18000
|
-
* @exports
|
|
18001
|
-
* @interface
|
|
18002
|
-
* @property {string|null} [slug]
|
|
18003
|
-
* @property {number|Long|null} [deletedAt]
|
|
19295
|
+
* Properties of a ContentfulMediaWrapperDeleted.
|
|
19296
|
+
* @exports IContentfulMediaWrapperDeleted
|
|
19297
|
+
* @interface IContentfulMediaWrapperDeleted
|
|
19298
|
+
* @property {string|null} [slug] ContentfulMediaWrapperDeleted slug
|
|
19299
|
+
* @property {number|Long|null} [deletedAt] ContentfulMediaWrapperDeleted deletedAt
|
|
18004
19300
|
*/
|
|
18005
19301
|
|
|
18006
19302
|
/**
|
|
18007
|
-
* Constructs a new
|
|
18008
|
-
* @exports
|
|
18009
|
-
* @classdesc Represents a
|
|
18010
|
-
* @implements
|
|
19303
|
+
* Constructs a new ContentfulMediaWrapperDeleted.
|
|
19304
|
+
* @exports ContentfulMediaWrapperDeleted
|
|
19305
|
+
* @classdesc Represents a ContentfulMediaWrapperDeleted.
|
|
19306
|
+
* @implements IContentfulMediaWrapperDeleted
|
|
18011
19307
|
* @constructor
|
|
18012
|
-
* @param {
|
|
19308
|
+
* @param {IContentfulMediaWrapperDeleted=} [properties] Properties to set
|
|
18013
19309
|
*/
|
|
18014
|
-
function
|
|
19310
|
+
function ContentfulMediaWrapperDeleted(properties) {
|
|
18015
19311
|
if (properties)
|
|
18016
19312
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
18017
19313
|
if (properties[keys[i]] != null)
|
|
@@ -18019,43 +19315,43 @@ $root.ContentfulCategoryDeleted = (function() {
|
|
|
18019
19315
|
}
|
|
18020
19316
|
|
|
18021
19317
|
/**
|
|
18022
|
-
*
|
|
19318
|
+
* ContentfulMediaWrapperDeleted slug.
|
|
18023
19319
|
* @member {string} slug
|
|
18024
|
-
* @memberof
|
|
19320
|
+
* @memberof ContentfulMediaWrapperDeleted
|
|
18025
19321
|
* @instance
|
|
18026
19322
|
*/
|
|
18027
|
-
|
|
19323
|
+
ContentfulMediaWrapperDeleted.prototype.slug = "";
|
|
18028
19324
|
|
|
18029
19325
|
/**
|
|
18030
|
-
*
|
|
19326
|
+
* ContentfulMediaWrapperDeleted deletedAt.
|
|
18031
19327
|
* @member {number|Long} deletedAt
|
|
18032
|
-
* @memberof
|
|
19328
|
+
* @memberof ContentfulMediaWrapperDeleted
|
|
18033
19329
|
* @instance
|
|
18034
19330
|
*/
|
|
18035
|
-
|
|
19331
|
+
ContentfulMediaWrapperDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
18036
19332
|
|
|
18037
19333
|
/**
|
|
18038
|
-
* Creates a new
|
|
19334
|
+
* Creates a new ContentfulMediaWrapperDeleted instance using the specified properties.
|
|
18039
19335
|
* @function create
|
|
18040
|
-
* @memberof
|
|
19336
|
+
* @memberof ContentfulMediaWrapperDeleted
|
|
18041
19337
|
* @static
|
|
18042
|
-
* @param {
|
|
18043
|
-
* @returns {
|
|
19338
|
+
* @param {IContentfulMediaWrapperDeleted=} [properties] Properties to set
|
|
19339
|
+
* @returns {ContentfulMediaWrapperDeleted} ContentfulMediaWrapperDeleted instance
|
|
18044
19340
|
*/
|
|
18045
|
-
|
|
18046
|
-
return new
|
|
19341
|
+
ContentfulMediaWrapperDeleted.create = function create(properties) {
|
|
19342
|
+
return new ContentfulMediaWrapperDeleted(properties);
|
|
18047
19343
|
};
|
|
18048
19344
|
|
|
18049
19345
|
/**
|
|
18050
|
-
* Encodes the specified
|
|
19346
|
+
* Encodes the specified ContentfulMediaWrapperDeleted message. Does not implicitly {@link ContentfulMediaWrapperDeleted.verify|verify} messages.
|
|
18051
19347
|
* @function encode
|
|
18052
|
-
* @memberof
|
|
19348
|
+
* @memberof ContentfulMediaWrapperDeleted
|
|
18053
19349
|
* @static
|
|
18054
|
-
* @param {
|
|
19350
|
+
* @param {IContentfulMediaWrapperDeleted} message ContentfulMediaWrapperDeleted message or plain object to encode
|
|
18055
19351
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
18056
19352
|
* @returns {$protobuf.Writer} Writer
|
|
18057
19353
|
*/
|
|
18058
|
-
|
|
19354
|
+
ContentfulMediaWrapperDeleted.encode = function encode(message, writer) {
|
|
18059
19355
|
if (!writer)
|
|
18060
19356
|
writer = $Writer.create();
|
|
18061
19357
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
@@ -18066,33 +19362,33 @@ $root.ContentfulCategoryDeleted = (function() {
|
|
|
18066
19362
|
};
|
|
18067
19363
|
|
|
18068
19364
|
/**
|
|
18069
|
-
* Encodes the specified
|
|
19365
|
+
* Encodes the specified ContentfulMediaWrapperDeleted message, length delimited. Does not implicitly {@link ContentfulMediaWrapperDeleted.verify|verify} messages.
|
|
18070
19366
|
* @function encodeDelimited
|
|
18071
|
-
* @memberof
|
|
19367
|
+
* @memberof ContentfulMediaWrapperDeleted
|
|
18072
19368
|
* @static
|
|
18073
|
-
* @param {
|
|
19369
|
+
* @param {IContentfulMediaWrapperDeleted} message ContentfulMediaWrapperDeleted message or plain object to encode
|
|
18074
19370
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
18075
19371
|
* @returns {$protobuf.Writer} Writer
|
|
18076
19372
|
*/
|
|
18077
|
-
|
|
19373
|
+
ContentfulMediaWrapperDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
18078
19374
|
return this.encode(message, writer).ldelim();
|
|
18079
19375
|
};
|
|
18080
19376
|
|
|
18081
19377
|
/**
|
|
18082
|
-
* Decodes a
|
|
19378
|
+
* Decodes a ContentfulMediaWrapperDeleted message from the specified reader or buffer.
|
|
18083
19379
|
* @function decode
|
|
18084
|
-
* @memberof
|
|
19380
|
+
* @memberof ContentfulMediaWrapperDeleted
|
|
18085
19381
|
* @static
|
|
18086
19382
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
18087
19383
|
* @param {number} [length] Message length if known beforehand
|
|
18088
|
-
* @returns {
|
|
19384
|
+
* @returns {ContentfulMediaWrapperDeleted} ContentfulMediaWrapperDeleted
|
|
18089
19385
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18090
19386
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18091
19387
|
*/
|
|
18092
|
-
|
|
19388
|
+
ContentfulMediaWrapperDeleted.decode = function decode(reader, length) {
|
|
18093
19389
|
if (!(reader instanceof $Reader))
|
|
18094
19390
|
reader = $Reader.create(reader);
|
|
18095
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.
|
|
19391
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulMediaWrapperDeleted();
|
|
18096
19392
|
while (reader.pos < end) {
|
|
18097
19393
|
var tag = reader.uint32();
|
|
18098
19394
|
switch (tag >>> 3) {
|
|
@@ -18111,30 +19407,30 @@ $root.ContentfulCategoryDeleted = (function() {
|
|
|
18111
19407
|
};
|
|
18112
19408
|
|
|
18113
19409
|
/**
|
|
18114
|
-
* Decodes a
|
|
19410
|
+
* Decodes a ContentfulMediaWrapperDeleted message from the specified reader or buffer, length delimited.
|
|
18115
19411
|
* @function decodeDelimited
|
|
18116
|
-
* @memberof
|
|
19412
|
+
* @memberof ContentfulMediaWrapperDeleted
|
|
18117
19413
|
* @static
|
|
18118
19414
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
18119
|
-
* @returns {
|
|
19415
|
+
* @returns {ContentfulMediaWrapperDeleted} ContentfulMediaWrapperDeleted
|
|
18120
19416
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18121
19417
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18122
19418
|
*/
|
|
18123
|
-
|
|
19419
|
+
ContentfulMediaWrapperDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
18124
19420
|
if (!(reader instanceof $Reader))
|
|
18125
19421
|
reader = new $Reader(reader);
|
|
18126
19422
|
return this.decode(reader, reader.uint32());
|
|
18127
19423
|
};
|
|
18128
19424
|
|
|
18129
19425
|
/**
|
|
18130
|
-
* Verifies a
|
|
19426
|
+
* Verifies a ContentfulMediaWrapperDeleted message.
|
|
18131
19427
|
* @function verify
|
|
18132
|
-
* @memberof
|
|
19428
|
+
* @memberof ContentfulMediaWrapperDeleted
|
|
18133
19429
|
* @static
|
|
18134
19430
|
* @param {Object.<string,*>} message Plain object to verify
|
|
18135
19431
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
18136
19432
|
*/
|
|
18137
|
-
|
|
19433
|
+
ContentfulMediaWrapperDeleted.verify = function verify(message) {
|
|
18138
19434
|
if (typeof message !== "object" || message === null)
|
|
18139
19435
|
return "object expected";
|
|
18140
19436
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
@@ -18147,17 +19443,17 @@ $root.ContentfulCategoryDeleted = (function() {
|
|
|
18147
19443
|
};
|
|
18148
19444
|
|
|
18149
19445
|
/**
|
|
18150
|
-
* Creates a
|
|
19446
|
+
* Creates a ContentfulMediaWrapperDeleted message from a plain object. Also converts values to their respective internal types.
|
|
18151
19447
|
* @function fromObject
|
|
18152
|
-
* @memberof
|
|
19448
|
+
* @memberof ContentfulMediaWrapperDeleted
|
|
18153
19449
|
* @static
|
|
18154
19450
|
* @param {Object.<string,*>} object Plain object
|
|
18155
|
-
* @returns {
|
|
19451
|
+
* @returns {ContentfulMediaWrapperDeleted} ContentfulMediaWrapperDeleted
|
|
18156
19452
|
*/
|
|
18157
|
-
|
|
18158
|
-
if (object instanceof $root.
|
|
19453
|
+
ContentfulMediaWrapperDeleted.fromObject = function fromObject(object) {
|
|
19454
|
+
if (object instanceof $root.ContentfulMediaWrapperDeleted)
|
|
18159
19455
|
return object;
|
|
18160
|
-
var message = new $root.
|
|
19456
|
+
var message = new $root.ContentfulMediaWrapperDeleted();
|
|
18161
19457
|
if (object.slug != null)
|
|
18162
19458
|
message.slug = String(object.slug);
|
|
18163
19459
|
if (object.deletedAt != null)
|
|
@@ -18173,15 +19469,15 @@ $root.ContentfulCategoryDeleted = (function() {
|
|
|
18173
19469
|
};
|
|
18174
19470
|
|
|
18175
19471
|
/**
|
|
18176
|
-
* Creates a plain object from a
|
|
19472
|
+
* Creates a plain object from a ContentfulMediaWrapperDeleted message. Also converts values to other types if specified.
|
|
18177
19473
|
* @function toObject
|
|
18178
|
-
* @memberof
|
|
19474
|
+
* @memberof ContentfulMediaWrapperDeleted
|
|
18179
19475
|
* @static
|
|
18180
|
-
* @param {
|
|
19476
|
+
* @param {ContentfulMediaWrapperDeleted} message ContentfulMediaWrapperDeleted
|
|
18181
19477
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
18182
19478
|
* @returns {Object.<string,*>} Plain object
|
|
18183
19479
|
*/
|
|
18184
|
-
|
|
19480
|
+
ContentfulMediaWrapperDeleted.toObject = function toObject(message, options) {
|
|
18185
19481
|
if (!options)
|
|
18186
19482
|
options = {};
|
|
18187
19483
|
var object = {};
|
|
@@ -18204,17 +19500,17 @@ $root.ContentfulCategoryDeleted = (function() {
|
|
|
18204
19500
|
};
|
|
18205
19501
|
|
|
18206
19502
|
/**
|
|
18207
|
-
* Converts this
|
|
19503
|
+
* Converts this ContentfulMediaWrapperDeleted to JSON.
|
|
18208
19504
|
* @function toJSON
|
|
18209
|
-
* @memberof
|
|
19505
|
+
* @memberof ContentfulMediaWrapperDeleted
|
|
18210
19506
|
* @instance
|
|
18211
19507
|
* @returns {Object.<string,*>} JSON object
|
|
18212
19508
|
*/
|
|
18213
|
-
|
|
19509
|
+
ContentfulMediaWrapperDeleted.prototype.toJSON = function toJSON() {
|
|
18214
19510
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
18215
19511
|
};
|
|
18216
19512
|
|
|
18217
|
-
return
|
|
19513
|
+
return ContentfulMediaWrapperDeleted;
|
|
18218
19514
|
})();
|
|
18219
19515
|
|
|
18220
19516
|
$root.ContentfulTopicCreated = (function() {
|