@headspace/protos-events 1.236.0 → 1.238.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 +607 -0
- package/lib/index.js +1513 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -135,6 +135,499 @@ export namespace auth0 {
|
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
+
/** Namespace content. */
|
|
139
|
+
export namespace content {
|
|
140
|
+
|
|
141
|
+
/** Represents a UserStatManager */
|
|
142
|
+
class UserStatManager extends $protobuf.rpc.Service {
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Constructs a new UserStatManager service.
|
|
146
|
+
* @param rpcImpl RPC implementation
|
|
147
|
+
* @param [requestDelimited=false] Whether requests are length-delimited
|
|
148
|
+
* @param [responseDelimited=false] Whether responses are length-delimited
|
|
149
|
+
*/
|
|
150
|
+
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Creates new UserStatManager service using the specified rpc implementation.
|
|
154
|
+
* @param rpcImpl RPC implementation
|
|
155
|
+
* @param [requestDelimited=false] Whether requests are length-delimited
|
|
156
|
+
* @param [responseDelimited=false] Whether responses are length-delimited
|
|
157
|
+
* @returns RPC service. Useful where requests and/or responses are streamed.
|
|
158
|
+
*/
|
|
159
|
+
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): UserStatManager;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Calls getStatsForUser.
|
|
163
|
+
* @param request GetStatsRequest message or plain object
|
|
164
|
+
* @param callback Node-style callback called with the error, if any, and GetStatsResponse
|
|
165
|
+
*/
|
|
166
|
+
public getStatsForUser(request: content.IGetStatsRequest, callback: content.UserStatManager.getStatsForUserCallback): void;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Calls getStatsForUser.
|
|
170
|
+
* @param request GetStatsRequest message or plain object
|
|
171
|
+
* @returns Promise
|
|
172
|
+
*/
|
|
173
|
+
public getStatsForUser(request: content.IGetStatsRequest): Promise<content.GetStatsResponse>;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
namespace UserStatManager {
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Callback as used by {@link content.UserStatManager#getStatsForUser}.
|
|
180
|
+
* @param error Error, if any
|
|
181
|
+
* @param [response] GetStatsResponse
|
|
182
|
+
*/
|
|
183
|
+
type getStatsForUserCallback = (error: (Error|null), response?: content.GetStatsResponse) => void;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/** Properties of a GetStatsRequest. */
|
|
187
|
+
interface IGetStatsRequest {
|
|
188
|
+
|
|
189
|
+
/** GetStatsRequest userId */
|
|
190
|
+
userId?: (string|null);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/** Represents a GetStatsRequest. */
|
|
194
|
+
class GetStatsRequest implements IGetStatsRequest {
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Constructs a new GetStatsRequest.
|
|
198
|
+
* @param [properties] Properties to set
|
|
199
|
+
*/
|
|
200
|
+
constructor(properties?: content.IGetStatsRequest);
|
|
201
|
+
|
|
202
|
+
/** GetStatsRequest userId. */
|
|
203
|
+
public userId: string;
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Creates a new GetStatsRequest instance using the specified properties.
|
|
207
|
+
* @param [properties] Properties to set
|
|
208
|
+
* @returns GetStatsRequest instance
|
|
209
|
+
*/
|
|
210
|
+
public static create(properties?: content.IGetStatsRequest): content.GetStatsRequest;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Encodes the specified GetStatsRequest message. Does not implicitly {@link content.GetStatsRequest.verify|verify} messages.
|
|
214
|
+
* @param message GetStatsRequest message or plain object to encode
|
|
215
|
+
* @param [writer] Writer to encode to
|
|
216
|
+
* @returns Writer
|
|
217
|
+
*/
|
|
218
|
+
public static encode(message: content.IGetStatsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Encodes the specified GetStatsRequest message, length delimited. Does not implicitly {@link content.GetStatsRequest.verify|verify} messages.
|
|
222
|
+
* @param message GetStatsRequest message or plain object to encode
|
|
223
|
+
* @param [writer] Writer to encode to
|
|
224
|
+
* @returns Writer
|
|
225
|
+
*/
|
|
226
|
+
public static encodeDelimited(message: content.IGetStatsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Decodes a GetStatsRequest message from the specified reader or buffer.
|
|
230
|
+
* @param reader Reader or buffer to decode from
|
|
231
|
+
* @param [length] Message length if known beforehand
|
|
232
|
+
* @returns GetStatsRequest
|
|
233
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
234
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
235
|
+
*/
|
|
236
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): content.GetStatsRequest;
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* Decodes a GetStatsRequest message from the specified reader or buffer, length delimited.
|
|
240
|
+
* @param reader Reader or buffer to decode from
|
|
241
|
+
* @returns GetStatsRequest
|
|
242
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
243
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
244
|
+
*/
|
|
245
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): content.GetStatsRequest;
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Verifies a GetStatsRequest message.
|
|
249
|
+
* @param message Plain object to verify
|
|
250
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
251
|
+
*/
|
|
252
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Creates a GetStatsRequest message from a plain object. Also converts values to their respective internal types.
|
|
256
|
+
* @param object Plain object
|
|
257
|
+
* @returns GetStatsRequest
|
|
258
|
+
*/
|
|
259
|
+
public static fromObject(object: { [k: string]: any }): content.GetStatsRequest;
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* Creates a plain object from a GetStatsRequest message. Also converts values to other types if specified.
|
|
263
|
+
* @param message GetStatsRequest
|
|
264
|
+
* @param [options] Conversion options
|
|
265
|
+
* @returns Plain object
|
|
266
|
+
*/
|
|
267
|
+
public static toObject(message: content.GetStatsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Converts this GetStatsRequest to JSON.
|
|
271
|
+
* @returns JSON object
|
|
272
|
+
*/
|
|
273
|
+
public toJSON(): { [k: string]: any };
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/** Properties of a GetStatsResponse. */
|
|
277
|
+
interface IGetStatsResponse {
|
|
278
|
+
|
|
279
|
+
/** GetStatsResponse stats */
|
|
280
|
+
stats?: (content.IUserStat[]|null);
|
|
281
|
+
|
|
282
|
+
/** GetStatsResponse lastUserActivityCompletionId */
|
|
283
|
+
lastUserActivityCompletionId?: (number|Long|null);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/** Represents a GetStatsResponse. */
|
|
287
|
+
class GetStatsResponse implements IGetStatsResponse {
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Constructs a new GetStatsResponse.
|
|
291
|
+
* @param [properties] Properties to set
|
|
292
|
+
*/
|
|
293
|
+
constructor(properties?: content.IGetStatsResponse);
|
|
294
|
+
|
|
295
|
+
/** GetStatsResponse stats. */
|
|
296
|
+
public stats: content.IUserStat[];
|
|
297
|
+
|
|
298
|
+
/** GetStatsResponse lastUserActivityCompletionId. */
|
|
299
|
+
public lastUserActivityCompletionId: (number|Long);
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* Creates a new GetStatsResponse instance using the specified properties.
|
|
303
|
+
* @param [properties] Properties to set
|
|
304
|
+
* @returns GetStatsResponse instance
|
|
305
|
+
*/
|
|
306
|
+
public static create(properties?: content.IGetStatsResponse): content.GetStatsResponse;
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* Encodes the specified GetStatsResponse message. Does not implicitly {@link content.GetStatsResponse.verify|verify} messages.
|
|
310
|
+
* @param message GetStatsResponse message or plain object to encode
|
|
311
|
+
* @param [writer] Writer to encode to
|
|
312
|
+
* @returns Writer
|
|
313
|
+
*/
|
|
314
|
+
public static encode(message: content.IGetStatsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* Encodes the specified GetStatsResponse message, length delimited. Does not implicitly {@link content.GetStatsResponse.verify|verify} messages.
|
|
318
|
+
* @param message GetStatsResponse message or plain object to encode
|
|
319
|
+
* @param [writer] Writer to encode to
|
|
320
|
+
* @returns Writer
|
|
321
|
+
*/
|
|
322
|
+
public static encodeDelimited(message: content.IGetStatsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* Decodes a GetStatsResponse message from the specified reader or buffer.
|
|
326
|
+
* @param reader Reader or buffer to decode from
|
|
327
|
+
* @param [length] Message length if known beforehand
|
|
328
|
+
* @returns GetStatsResponse
|
|
329
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
330
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
331
|
+
*/
|
|
332
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): content.GetStatsResponse;
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Decodes a GetStatsResponse message from the specified reader or buffer, length delimited.
|
|
336
|
+
* @param reader Reader or buffer to decode from
|
|
337
|
+
* @returns GetStatsResponse
|
|
338
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
339
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
340
|
+
*/
|
|
341
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): content.GetStatsResponse;
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Verifies a GetStatsResponse message.
|
|
345
|
+
* @param message Plain object to verify
|
|
346
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
347
|
+
*/
|
|
348
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* Creates a GetStatsResponse message from a plain object. Also converts values to their respective internal types.
|
|
352
|
+
* @param object Plain object
|
|
353
|
+
* @returns GetStatsResponse
|
|
354
|
+
*/
|
|
355
|
+
public static fromObject(object: { [k: string]: any }): content.GetStatsResponse;
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* Creates a plain object from a GetStatsResponse message. Also converts values to other types if specified.
|
|
359
|
+
* @param message GetStatsResponse
|
|
360
|
+
* @param [options] Conversion options
|
|
361
|
+
* @returns Plain object
|
|
362
|
+
*/
|
|
363
|
+
public static toObject(message: content.GetStatsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* Converts this GetStatsResponse to JSON.
|
|
367
|
+
* @returns JSON object
|
|
368
|
+
*/
|
|
369
|
+
public toJSON(): { [k: string]: any };
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
/** Properties of a UserStat. */
|
|
373
|
+
interface IUserStat {
|
|
374
|
+
|
|
375
|
+
/** UserStat id */
|
|
376
|
+
id?: (number|Long|null);
|
|
377
|
+
|
|
378
|
+
/** UserStat label */
|
|
379
|
+
label?: (string|null);
|
|
380
|
+
|
|
381
|
+
/** UserStat userId */
|
|
382
|
+
userId?: (string|null);
|
|
383
|
+
|
|
384
|
+
/** UserStat previousValue */
|
|
385
|
+
previousValue?: (number|null);
|
|
386
|
+
|
|
387
|
+
/** UserStat currentValue */
|
|
388
|
+
currentValue?: (number|null);
|
|
389
|
+
|
|
390
|
+
/** UserStat deletedAt */
|
|
391
|
+
deletedAt?: (date.IDate|null);
|
|
392
|
+
|
|
393
|
+
/** UserStat clientUpdatedAt */
|
|
394
|
+
clientUpdatedAt?: (date.IDate|null);
|
|
395
|
+
|
|
396
|
+
/** UserStat createdAt */
|
|
397
|
+
createdAt?: (date.IDate|null);
|
|
398
|
+
|
|
399
|
+
/** UserStat updatedAt */
|
|
400
|
+
updatedAt?: (date.IDate|null);
|
|
401
|
+
|
|
402
|
+
/** UserStat validUntil */
|
|
403
|
+
validUntil?: (date.IDate|null);
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
/** Represents a UserStat. */
|
|
407
|
+
class UserStat implements IUserStat {
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* Constructs a new UserStat.
|
|
411
|
+
* @param [properties] Properties to set
|
|
412
|
+
*/
|
|
413
|
+
constructor(properties?: content.IUserStat);
|
|
414
|
+
|
|
415
|
+
/** UserStat id. */
|
|
416
|
+
public id: (number|Long);
|
|
417
|
+
|
|
418
|
+
/** UserStat label. */
|
|
419
|
+
public label: string;
|
|
420
|
+
|
|
421
|
+
/** UserStat userId. */
|
|
422
|
+
public userId: string;
|
|
423
|
+
|
|
424
|
+
/** UserStat previousValue. */
|
|
425
|
+
public previousValue: number;
|
|
426
|
+
|
|
427
|
+
/** UserStat currentValue. */
|
|
428
|
+
public currentValue: number;
|
|
429
|
+
|
|
430
|
+
/** UserStat deletedAt. */
|
|
431
|
+
public deletedAt?: (date.IDate|null);
|
|
432
|
+
|
|
433
|
+
/** UserStat clientUpdatedAt. */
|
|
434
|
+
public clientUpdatedAt?: (date.IDate|null);
|
|
435
|
+
|
|
436
|
+
/** UserStat createdAt. */
|
|
437
|
+
public createdAt?: (date.IDate|null);
|
|
438
|
+
|
|
439
|
+
/** UserStat updatedAt. */
|
|
440
|
+
public updatedAt?: (date.IDate|null);
|
|
441
|
+
|
|
442
|
+
/** UserStat validUntil. */
|
|
443
|
+
public validUntil?: (date.IDate|null);
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* Creates a new UserStat instance using the specified properties.
|
|
447
|
+
* @param [properties] Properties to set
|
|
448
|
+
* @returns UserStat instance
|
|
449
|
+
*/
|
|
450
|
+
public static create(properties?: content.IUserStat): content.UserStat;
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* Encodes the specified UserStat message. Does not implicitly {@link content.UserStat.verify|verify} messages.
|
|
454
|
+
* @param message UserStat message or plain object to encode
|
|
455
|
+
* @param [writer] Writer to encode to
|
|
456
|
+
* @returns Writer
|
|
457
|
+
*/
|
|
458
|
+
public static encode(message: content.IUserStat, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* Encodes the specified UserStat message, length delimited. Does not implicitly {@link content.UserStat.verify|verify} messages.
|
|
462
|
+
* @param message UserStat message or plain object to encode
|
|
463
|
+
* @param [writer] Writer to encode to
|
|
464
|
+
* @returns Writer
|
|
465
|
+
*/
|
|
466
|
+
public static encodeDelimited(message: content.IUserStat, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* Decodes a UserStat message from the specified reader or buffer.
|
|
470
|
+
* @param reader Reader or buffer to decode from
|
|
471
|
+
* @param [length] Message length if known beforehand
|
|
472
|
+
* @returns UserStat
|
|
473
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
474
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
475
|
+
*/
|
|
476
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): content.UserStat;
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* Decodes a UserStat message from the specified reader or buffer, length delimited.
|
|
480
|
+
* @param reader Reader or buffer to decode from
|
|
481
|
+
* @returns UserStat
|
|
482
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
483
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
484
|
+
*/
|
|
485
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): content.UserStat;
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* Verifies a UserStat message.
|
|
489
|
+
* @param message Plain object to verify
|
|
490
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
491
|
+
*/
|
|
492
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
493
|
+
|
|
494
|
+
/**
|
|
495
|
+
* Creates a UserStat message from a plain object. Also converts values to their respective internal types.
|
|
496
|
+
* @param object Plain object
|
|
497
|
+
* @returns UserStat
|
|
498
|
+
*/
|
|
499
|
+
public static fromObject(object: { [k: string]: any }): content.UserStat;
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* Creates a plain object from a UserStat message. Also converts values to other types if specified.
|
|
503
|
+
* @param message UserStat
|
|
504
|
+
* @param [options] Conversion options
|
|
505
|
+
* @returns Plain object
|
|
506
|
+
*/
|
|
507
|
+
public static toObject(message: content.UserStat, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* Converts this UserStat to JSON.
|
|
511
|
+
* @returns JSON object
|
|
512
|
+
*/
|
|
513
|
+
public toJSON(): { [k: string]: any };
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
/** Properties of a UserStats. */
|
|
517
|
+
interface IUserStats {
|
|
518
|
+
|
|
519
|
+
/** UserStats runStreak */
|
|
520
|
+
runStreak?: (number|null);
|
|
521
|
+
|
|
522
|
+
/** UserStats averageMinutes */
|
|
523
|
+
averageMinutes?: (number|null);
|
|
524
|
+
|
|
525
|
+
/** UserStats highestRunStreak */
|
|
526
|
+
highestRunStreak?: (number|null);
|
|
527
|
+
|
|
528
|
+
/** UserStats totalMinutes */
|
|
529
|
+
totalMinutes?: (number|null);
|
|
530
|
+
|
|
531
|
+
/** UserStats totalSessions */
|
|
532
|
+
totalSessions?: (number|null);
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
/** Represents a UserStats. */
|
|
536
|
+
class UserStats implements IUserStats {
|
|
537
|
+
|
|
538
|
+
/**
|
|
539
|
+
* Constructs a new UserStats.
|
|
540
|
+
* @param [properties] Properties to set
|
|
541
|
+
*/
|
|
542
|
+
constructor(properties?: content.IUserStats);
|
|
543
|
+
|
|
544
|
+
/** UserStats runStreak. */
|
|
545
|
+
public runStreak: number;
|
|
546
|
+
|
|
547
|
+
/** UserStats averageMinutes. */
|
|
548
|
+
public averageMinutes: number;
|
|
549
|
+
|
|
550
|
+
/** UserStats highestRunStreak. */
|
|
551
|
+
public highestRunStreak: number;
|
|
552
|
+
|
|
553
|
+
/** UserStats totalMinutes. */
|
|
554
|
+
public totalMinutes: number;
|
|
555
|
+
|
|
556
|
+
/** UserStats totalSessions. */
|
|
557
|
+
public totalSessions: number;
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* Creates a new UserStats instance using the specified properties.
|
|
561
|
+
* @param [properties] Properties to set
|
|
562
|
+
* @returns UserStats instance
|
|
563
|
+
*/
|
|
564
|
+
public static create(properties?: content.IUserStats): content.UserStats;
|
|
565
|
+
|
|
566
|
+
/**
|
|
567
|
+
* Encodes the specified UserStats message. Does not implicitly {@link content.UserStats.verify|verify} messages.
|
|
568
|
+
* @param message UserStats message or plain object to encode
|
|
569
|
+
* @param [writer] Writer to encode to
|
|
570
|
+
* @returns Writer
|
|
571
|
+
*/
|
|
572
|
+
public static encode(message: content.IUserStats, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
573
|
+
|
|
574
|
+
/**
|
|
575
|
+
* Encodes the specified UserStats message, length delimited. Does not implicitly {@link content.UserStats.verify|verify} messages.
|
|
576
|
+
* @param message UserStats message or plain object to encode
|
|
577
|
+
* @param [writer] Writer to encode to
|
|
578
|
+
* @returns Writer
|
|
579
|
+
*/
|
|
580
|
+
public static encodeDelimited(message: content.IUserStats, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
581
|
+
|
|
582
|
+
/**
|
|
583
|
+
* Decodes a UserStats message from the specified reader or buffer.
|
|
584
|
+
* @param reader Reader or buffer to decode from
|
|
585
|
+
* @param [length] Message length if known beforehand
|
|
586
|
+
* @returns UserStats
|
|
587
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
588
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
589
|
+
*/
|
|
590
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): content.UserStats;
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* Decodes a UserStats message from the specified reader or buffer, length delimited.
|
|
594
|
+
* @param reader Reader or buffer to decode from
|
|
595
|
+
* @returns UserStats
|
|
596
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
597
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
598
|
+
*/
|
|
599
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): content.UserStats;
|
|
600
|
+
|
|
601
|
+
/**
|
|
602
|
+
* Verifies a UserStats message.
|
|
603
|
+
* @param message Plain object to verify
|
|
604
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
605
|
+
*/
|
|
606
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
607
|
+
|
|
608
|
+
/**
|
|
609
|
+
* Creates a UserStats message from a plain object. Also converts values to their respective internal types.
|
|
610
|
+
* @param object Plain object
|
|
611
|
+
* @returns UserStats
|
|
612
|
+
*/
|
|
613
|
+
public static fromObject(object: { [k: string]: any }): content.UserStats;
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* Creates a plain object from a UserStats message. Also converts values to other types if specified.
|
|
617
|
+
* @param message UserStats
|
|
618
|
+
* @param [options] Conversion options
|
|
619
|
+
* @returns Plain object
|
|
620
|
+
*/
|
|
621
|
+
public static toObject(message: content.UserStats, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* Converts this UserStats to JSON.
|
|
625
|
+
* @returns JSON object
|
|
626
|
+
*/
|
|
627
|
+
public toJSON(): { [k: string]: any };
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
|
|
138
631
|
/** Namespace contentful. */
|
|
139
632
|
export namespace contentful {
|
|
140
633
|
|
|
@@ -5030,6 +5523,9 @@ export namespace scim {
|
|
|
5030
5523
|
|
|
5031
5524
|
/** SCIMUser isActive */
|
|
5032
5525
|
isActive?: (boolean|null);
|
|
5526
|
+
|
|
5527
|
+
/** SCIMUser oldWorkEmail */
|
|
5528
|
+
oldWorkEmail?: (string|null);
|
|
5033
5529
|
}
|
|
5034
5530
|
|
|
5035
5531
|
/** Represents a SCIMUser. */
|
|
@@ -5056,6 +5552,9 @@ export namespace scim {
|
|
|
5056
5552
|
/** SCIMUser isActive. */
|
|
5057
5553
|
public isActive: boolean;
|
|
5058
5554
|
|
|
5555
|
+
/** SCIMUser oldWorkEmail. */
|
|
5556
|
+
public oldWorkEmail: string;
|
|
5557
|
+
|
|
5059
5558
|
/**
|
|
5060
5559
|
* Creates a new SCIMUser instance using the specified properties.
|
|
5061
5560
|
* @param [properties] Properties to set
|
|
@@ -15203,6 +15702,114 @@ export class TopicDeleted implements ITopicDeleted {
|
|
|
15203
15702
|
public toJSON(): { [k: string]: any };
|
|
15204
15703
|
}
|
|
15205
15704
|
|
|
15705
|
+
/** Properties of a UserStatsUpdated. */
|
|
15706
|
+
export interface IUserStatsUpdated {
|
|
15707
|
+
|
|
15708
|
+
/** UserStatsUpdated userId */
|
|
15709
|
+
userId?: (string|null);
|
|
15710
|
+
|
|
15711
|
+
/** UserStatsUpdated stats */
|
|
15712
|
+
stats?: (content.IUserStats|null);
|
|
15713
|
+
|
|
15714
|
+
/** UserStatsUpdated previousStats */
|
|
15715
|
+
previousStats?: (content.IUserStats|null);
|
|
15716
|
+
|
|
15717
|
+
/** UserStatsUpdated timestamp */
|
|
15718
|
+
timestamp?: (number|Long|null);
|
|
15719
|
+
}
|
|
15720
|
+
|
|
15721
|
+
/** Represents a UserStatsUpdated. */
|
|
15722
|
+
export class UserStatsUpdated implements IUserStatsUpdated {
|
|
15723
|
+
|
|
15724
|
+
/**
|
|
15725
|
+
* Constructs a new UserStatsUpdated.
|
|
15726
|
+
* @param [properties] Properties to set
|
|
15727
|
+
*/
|
|
15728
|
+
constructor(properties?: IUserStatsUpdated);
|
|
15729
|
+
|
|
15730
|
+
/** UserStatsUpdated userId. */
|
|
15731
|
+
public userId: string;
|
|
15732
|
+
|
|
15733
|
+
/** UserStatsUpdated stats. */
|
|
15734
|
+
public stats?: (content.IUserStats|null);
|
|
15735
|
+
|
|
15736
|
+
/** UserStatsUpdated previousStats. */
|
|
15737
|
+
public previousStats?: (content.IUserStats|null);
|
|
15738
|
+
|
|
15739
|
+
/** UserStatsUpdated timestamp. */
|
|
15740
|
+
public timestamp: (number|Long);
|
|
15741
|
+
|
|
15742
|
+
/**
|
|
15743
|
+
* Creates a new UserStatsUpdated instance using the specified properties.
|
|
15744
|
+
* @param [properties] Properties to set
|
|
15745
|
+
* @returns UserStatsUpdated instance
|
|
15746
|
+
*/
|
|
15747
|
+
public static create(properties?: IUserStatsUpdated): UserStatsUpdated;
|
|
15748
|
+
|
|
15749
|
+
/**
|
|
15750
|
+
* Encodes the specified UserStatsUpdated message. Does not implicitly {@link UserStatsUpdated.verify|verify} messages.
|
|
15751
|
+
* @param message UserStatsUpdated message or plain object to encode
|
|
15752
|
+
* @param [writer] Writer to encode to
|
|
15753
|
+
* @returns Writer
|
|
15754
|
+
*/
|
|
15755
|
+
public static encode(message: IUserStatsUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
15756
|
+
|
|
15757
|
+
/**
|
|
15758
|
+
* Encodes the specified UserStatsUpdated message, length delimited. Does not implicitly {@link UserStatsUpdated.verify|verify} messages.
|
|
15759
|
+
* @param message UserStatsUpdated message or plain object to encode
|
|
15760
|
+
* @param [writer] Writer to encode to
|
|
15761
|
+
* @returns Writer
|
|
15762
|
+
*/
|
|
15763
|
+
public static encodeDelimited(message: IUserStatsUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
15764
|
+
|
|
15765
|
+
/**
|
|
15766
|
+
* Decodes a UserStatsUpdated message from the specified reader or buffer.
|
|
15767
|
+
* @param reader Reader or buffer to decode from
|
|
15768
|
+
* @param [length] Message length if known beforehand
|
|
15769
|
+
* @returns UserStatsUpdated
|
|
15770
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15771
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15772
|
+
*/
|
|
15773
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserStatsUpdated;
|
|
15774
|
+
|
|
15775
|
+
/**
|
|
15776
|
+
* Decodes a UserStatsUpdated message from the specified reader or buffer, length delimited.
|
|
15777
|
+
* @param reader Reader or buffer to decode from
|
|
15778
|
+
* @returns UserStatsUpdated
|
|
15779
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15780
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15781
|
+
*/
|
|
15782
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserStatsUpdated;
|
|
15783
|
+
|
|
15784
|
+
/**
|
|
15785
|
+
* Verifies a UserStatsUpdated message.
|
|
15786
|
+
* @param message Plain object to verify
|
|
15787
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
15788
|
+
*/
|
|
15789
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
15790
|
+
|
|
15791
|
+
/**
|
|
15792
|
+
* Creates a UserStatsUpdated message from a plain object. Also converts values to their respective internal types.
|
|
15793
|
+
* @param object Plain object
|
|
15794
|
+
* @returns UserStatsUpdated
|
|
15795
|
+
*/
|
|
15796
|
+
public static fromObject(object: { [k: string]: any }): UserStatsUpdated;
|
|
15797
|
+
|
|
15798
|
+
/**
|
|
15799
|
+
* Creates a plain object from a UserStatsUpdated message. Also converts values to other types if specified.
|
|
15800
|
+
* @param message UserStatsUpdated
|
|
15801
|
+
* @param [options] Conversion options
|
|
15802
|
+
* @returns Plain object
|
|
15803
|
+
*/
|
|
15804
|
+
public static toObject(message: UserStatsUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
15805
|
+
|
|
15806
|
+
/**
|
|
15807
|
+
* Converts this UserStatsUpdated to JSON.
|
|
15808
|
+
* @returns JSON object
|
|
15809
|
+
*/
|
|
15810
|
+
public toJSON(): { [k: string]: any };
|
|
15811
|
+
}
|
|
15812
|
+
|
|
15206
15813
|
/** Properties of a SurveyResponse. */
|
|
15207
15814
|
export interface ISurveyResponse {
|
|
15208
15815
|
|