@headspace/protos-events 1.93.0 → 1.94.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 +298 -266
- package/lib/index.js +885 -748
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -2220,281 +2220,313 @@ export namespace asset {
|
|
|
2220
2220
|
/** Namespace userdomain. */
|
|
2221
2221
|
export namespace userdomain {
|
|
2222
2222
|
|
|
2223
|
-
/**
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
/** UserRole
|
|
2227
|
-
|
|
2223
|
+
/** Namespace roles. */
|
|
2224
|
+
namespace roles {
|
|
2225
|
+
|
|
2226
|
+
/** Properties of a UserRole. */
|
|
2227
|
+
interface IUserRole {
|
|
2228
|
+
|
|
2229
|
+
/** UserRole roles */
|
|
2230
|
+
roles?: (userdomain.roles.Role[]|null);
|
|
2231
|
+
}
|
|
2232
|
+
|
|
2233
|
+
/** Represents a UserRole. */
|
|
2234
|
+
class UserRole implements IUserRole {
|
|
2235
|
+
|
|
2236
|
+
/**
|
|
2237
|
+
* Constructs a new UserRole.
|
|
2238
|
+
* @param [properties] Properties to set
|
|
2239
|
+
*/
|
|
2240
|
+
constructor(properties?: userdomain.roles.IUserRole);
|
|
2241
|
+
|
|
2242
|
+
/** UserRole roles. */
|
|
2243
|
+
public roles: userdomain.roles.Role[];
|
|
2244
|
+
|
|
2245
|
+
/**
|
|
2246
|
+
* Creates a new UserRole instance using the specified properties.
|
|
2247
|
+
* @param [properties] Properties to set
|
|
2248
|
+
* @returns UserRole instance
|
|
2249
|
+
*/
|
|
2250
|
+
public static create(properties?: userdomain.roles.IUserRole): userdomain.roles.UserRole;
|
|
2251
|
+
|
|
2252
|
+
/**
|
|
2253
|
+
* Encodes the specified UserRole message. Does not implicitly {@link userdomain.roles.UserRole.verify|verify} messages.
|
|
2254
|
+
* @param message UserRole message or plain object to encode
|
|
2255
|
+
* @param [writer] Writer to encode to
|
|
2256
|
+
* @returns Writer
|
|
2257
|
+
*/
|
|
2258
|
+
public static encode(message: userdomain.roles.IUserRole, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2259
|
+
|
|
2260
|
+
/**
|
|
2261
|
+
* Encodes the specified UserRole message, length delimited. Does not implicitly {@link userdomain.roles.UserRole.verify|verify} messages.
|
|
2262
|
+
* @param message UserRole message or plain object to encode
|
|
2263
|
+
* @param [writer] Writer to encode to
|
|
2264
|
+
* @returns Writer
|
|
2265
|
+
*/
|
|
2266
|
+
public static encodeDelimited(message: userdomain.roles.IUserRole, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2267
|
+
|
|
2268
|
+
/**
|
|
2269
|
+
* Decodes a UserRole message from the specified reader or buffer.
|
|
2270
|
+
* @param reader Reader or buffer to decode from
|
|
2271
|
+
* @param [length] Message length if known beforehand
|
|
2272
|
+
* @returns UserRole
|
|
2273
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2274
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2275
|
+
*/
|
|
2276
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): userdomain.roles.UserRole;
|
|
2277
|
+
|
|
2278
|
+
/**
|
|
2279
|
+
* Decodes a UserRole message from the specified reader or buffer, length delimited.
|
|
2280
|
+
* @param reader Reader or buffer to decode from
|
|
2281
|
+
* @returns UserRole
|
|
2282
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2283
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2284
|
+
*/
|
|
2285
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): userdomain.roles.UserRole;
|
|
2286
|
+
|
|
2287
|
+
/**
|
|
2288
|
+
* Verifies a UserRole message.
|
|
2289
|
+
* @param message Plain object to verify
|
|
2290
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
2291
|
+
*/
|
|
2292
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
2293
|
+
|
|
2294
|
+
/**
|
|
2295
|
+
* Creates a UserRole message from a plain object. Also converts values to their respective internal types.
|
|
2296
|
+
* @param object Plain object
|
|
2297
|
+
* @returns UserRole
|
|
2298
|
+
*/
|
|
2299
|
+
public static fromObject(object: { [k: string]: any }): userdomain.roles.UserRole;
|
|
2300
|
+
|
|
2301
|
+
/**
|
|
2302
|
+
* Creates a plain object from a UserRole message. Also converts values to other types if specified.
|
|
2303
|
+
* @param message UserRole
|
|
2304
|
+
* @param [options] Conversion options
|
|
2305
|
+
* @returns Plain object
|
|
2306
|
+
*/
|
|
2307
|
+
public static toObject(message: userdomain.roles.UserRole, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
2308
|
+
|
|
2309
|
+
/**
|
|
2310
|
+
* Converts this UserRole to JSON.
|
|
2311
|
+
* @returns JSON object
|
|
2312
|
+
*/
|
|
2313
|
+
public toJSON(): { [k: string]: any };
|
|
2314
|
+
}
|
|
2315
|
+
|
|
2316
|
+
/** Role enum. */
|
|
2317
|
+
enum Role {
|
|
2318
|
+
UNKNOWN_ROLE = 0,
|
|
2319
|
+
ROLEADMIN = 1,
|
|
2320
|
+
NORMALUSER = 2,
|
|
2321
|
+
CONTENTADMIN = 3,
|
|
2322
|
+
USERADMIN = 4,
|
|
2323
|
+
CORPORATEADMIN = 5,
|
|
2324
|
+
SPECIALADMIN = 6,
|
|
2325
|
+
HEALTH_ADMIN = 7,
|
|
2326
|
+
HEALTH_COACH = 8,
|
|
2327
|
+
HEALTH_PATIENT = 9
|
|
2328
|
+
}
|
|
2228
2329
|
}
|
|
2229
2330
|
|
|
2230
|
-
/**
|
|
2231
|
-
|
|
2331
|
+
/** Namespace users. */
|
|
2332
|
+
namespace users {
|
|
2232
2333
|
|
|
2233
|
-
/**
|
|
2234
|
-
|
|
2235
|
-
* @param [properties] Properties to set
|
|
2236
|
-
*/
|
|
2237
|
-
constructor(properties?: userdomain.IUserRole);
|
|
2334
|
+
/** Properties of a User. */
|
|
2335
|
+
interface IUser {
|
|
2238
2336
|
|
|
2239
|
-
|
|
2240
|
-
|
|
2337
|
+
/** User hsId */
|
|
2338
|
+
hsId?: (string|null);
|
|
2241
2339
|
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
* @param [properties] Properties to set
|
|
2245
|
-
* @returns UserRole instance
|
|
2246
|
-
*/
|
|
2247
|
-
public static create(properties?: userdomain.IUserRole): userdomain.UserRole;
|
|
2340
|
+
/** User auth0Id */
|
|
2341
|
+
auth0Id?: (string|null);
|
|
2248
2342
|
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
* @param message UserRole message or plain object to encode
|
|
2252
|
-
* @param [writer] Writer to encode to
|
|
2253
|
-
* @returns Writer
|
|
2254
|
-
*/
|
|
2255
|
-
public static encode(message: userdomain.IUserRole, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2343
|
+
/** User firstName */
|
|
2344
|
+
firstName?: (string|null);
|
|
2256
2345
|
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
* @param message UserRole message or plain object to encode
|
|
2260
|
-
* @param [writer] Writer to encode to
|
|
2261
|
-
* @returns Writer
|
|
2262
|
-
*/
|
|
2263
|
-
public static encodeDelimited(message: userdomain.IUserRole, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2346
|
+
/** User lastName */
|
|
2347
|
+
lastName?: (string|null);
|
|
2264
2348
|
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
* @param reader Reader or buffer to decode from
|
|
2268
|
-
* @param [length] Message length if known beforehand
|
|
2269
|
-
* @returns UserRole
|
|
2270
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2271
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2272
|
-
*/
|
|
2273
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): userdomain.UserRole;
|
|
2349
|
+
/** User email */
|
|
2350
|
+
email?: (string|null);
|
|
2274
2351
|
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
* @param reader Reader or buffer to decode from
|
|
2278
|
-
* @returns UserRole
|
|
2279
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2280
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2281
|
-
*/
|
|
2282
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): userdomain.UserRole;
|
|
2352
|
+
/** User countryCode */
|
|
2353
|
+
countryCode?: (string|null);
|
|
2283
2354
|
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
* @param message Plain object to verify
|
|
2287
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
|
2288
|
-
*/
|
|
2289
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
2355
|
+
/** User stateCode */
|
|
2356
|
+
stateCode?: (string|null);
|
|
2290
2357
|
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
* @param object Plain object
|
|
2294
|
-
* @returns UserRole
|
|
2295
|
-
*/
|
|
2296
|
-
public static fromObject(object: { [k: string]: any }): userdomain.UserRole;
|
|
2297
|
-
|
|
2298
|
-
/**
|
|
2299
|
-
* Creates a plain object from a UserRole message. Also converts values to other types if specified.
|
|
2300
|
-
* @param message UserRole
|
|
2301
|
-
* @param [options] Conversion options
|
|
2302
|
-
* @returns Plain object
|
|
2303
|
-
*/
|
|
2304
|
-
public static toObject(message: userdomain.UserRole, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
2305
|
-
|
|
2306
|
-
/**
|
|
2307
|
-
* Converts this UserRole to JSON.
|
|
2308
|
-
* @returns JSON object
|
|
2309
|
-
*/
|
|
2310
|
-
public toJSON(): { [k: string]: any };
|
|
2311
|
-
}
|
|
2312
|
-
|
|
2313
|
-
/** Role enum. */
|
|
2314
|
-
enum Role {
|
|
2315
|
-
UNKNOWN_ROLE = 0,
|
|
2316
|
-
ROLEADMIN = 1,
|
|
2317
|
-
NORMALUSER = 2,
|
|
2318
|
-
CONTENTADMIN = 3,
|
|
2319
|
-
USERADMIN = 4,
|
|
2320
|
-
CORPORATEADMIN = 5,
|
|
2321
|
-
SPECIALADMIN = 6
|
|
2322
|
-
}
|
|
2323
|
-
|
|
2324
|
-
/** Properties of a User. */
|
|
2325
|
-
interface IUser {
|
|
2326
|
-
|
|
2327
|
-
/** User hsId */
|
|
2328
|
-
hsId?: (string|null);
|
|
2329
|
-
|
|
2330
|
-
/** User auth0Id */
|
|
2331
|
-
auth0Id?: (string|null);
|
|
2332
|
-
|
|
2333
|
-
/** User firstName */
|
|
2334
|
-
firstName?: (string|null);
|
|
2335
|
-
|
|
2336
|
-
/** User lastName */
|
|
2337
|
-
lastName?: (string|null);
|
|
2338
|
-
|
|
2339
|
-
/** User email */
|
|
2340
|
-
email?: (string|null);
|
|
2341
|
-
|
|
2342
|
-
/** User countryCode */
|
|
2343
|
-
countryCode?: (string|null);
|
|
2358
|
+
/** User signupPlatform */
|
|
2359
|
+
signupPlatform?: (userdomain.users.Platform|null);
|
|
2344
2360
|
|
|
2345
|
-
|
|
2346
|
-
|
|
2361
|
+
/** User facebookId */
|
|
2362
|
+
facebookId?: (string|null);
|
|
2347
2363
|
|
|
2348
|
-
|
|
2349
|
-
|
|
2364
|
+
/** User appleId */
|
|
2365
|
+
appleId?: (string|null);
|
|
2350
2366
|
|
|
2351
|
-
|
|
2352
|
-
|
|
2367
|
+
/** User spotifyId */
|
|
2368
|
+
spotifyId?: (string|null);
|
|
2353
2369
|
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
/** User spotifyId */
|
|
2358
|
-
spotifyId?: (string|null);
|
|
2359
|
-
}
|
|
2360
|
-
|
|
2361
|
-
/** Represents a User. */
|
|
2362
|
-
class User implements IUser {
|
|
2363
|
-
|
|
2364
|
-
/**
|
|
2365
|
-
* Constructs a new User.
|
|
2366
|
-
* @param [properties] Properties to set
|
|
2367
|
-
*/
|
|
2368
|
-
constructor(properties?: userdomain.IUser);
|
|
2370
|
+
/** User oneloginId */
|
|
2371
|
+
oneloginId?: (string|null);
|
|
2369
2372
|
|
|
2370
|
-
|
|
2371
|
-
|
|
2373
|
+
/** User userType */
|
|
2374
|
+
userType?: (userdomain.users.UserType|null);
|
|
2375
|
+
}
|
|
2372
2376
|
|
|
2373
|
-
/** User
|
|
2374
|
-
|
|
2377
|
+
/** Represents a User. */
|
|
2378
|
+
class User implements IUser {
|
|
2375
2379
|
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
/** User countryCode. */
|
|
2386
|
-
public countryCode: string;
|
|
2387
|
-
|
|
2388
|
-
/** User stateCode. */
|
|
2389
|
-
public stateCode: string;
|
|
2390
|
-
|
|
2391
|
-
/** User signupPlatform. */
|
|
2392
|
-
public signupPlatform: userdomain.Platform;
|
|
2393
|
-
|
|
2394
|
-
/** User facebookId. */
|
|
2395
|
-
public facebookId: string;
|
|
2396
|
-
|
|
2397
|
-
/** User appleId. */
|
|
2398
|
-
public appleId: string;
|
|
2399
|
-
|
|
2400
|
-
/** User spotifyId. */
|
|
2401
|
-
public spotifyId: string;
|
|
2402
|
-
|
|
2403
|
-
/**
|
|
2404
|
-
* Creates a new User instance using the specified properties.
|
|
2405
|
-
* @param [properties] Properties to set
|
|
2406
|
-
* @returns User instance
|
|
2407
|
-
*/
|
|
2408
|
-
public static create(properties?: userdomain.IUser): userdomain.User;
|
|
2409
|
-
|
|
2410
|
-
/**
|
|
2411
|
-
* Encodes the specified User message. Does not implicitly {@link userdomain.User.verify|verify} messages.
|
|
2412
|
-
* @param message User message or plain object to encode
|
|
2413
|
-
* @param [writer] Writer to encode to
|
|
2414
|
-
* @returns Writer
|
|
2415
|
-
*/
|
|
2416
|
-
public static encode(message: userdomain.IUser, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2417
|
-
|
|
2418
|
-
/**
|
|
2419
|
-
* Encodes the specified User message, length delimited. Does not implicitly {@link userdomain.User.verify|verify} messages.
|
|
2420
|
-
* @param message User message or plain object to encode
|
|
2421
|
-
* @param [writer] Writer to encode to
|
|
2422
|
-
* @returns Writer
|
|
2423
|
-
*/
|
|
2424
|
-
public static encodeDelimited(message: userdomain.IUser, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2425
|
-
|
|
2426
|
-
/**
|
|
2427
|
-
* Decodes a User message from the specified reader or buffer.
|
|
2428
|
-
* @param reader Reader or buffer to decode from
|
|
2429
|
-
* @param [length] Message length if known beforehand
|
|
2430
|
-
* @returns User
|
|
2431
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2432
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2433
|
-
*/
|
|
2434
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): userdomain.User;
|
|
2435
|
-
|
|
2436
|
-
/**
|
|
2437
|
-
* Decodes a User message from the specified reader or buffer, length delimited.
|
|
2438
|
-
* @param reader Reader or buffer to decode from
|
|
2439
|
-
* @returns User
|
|
2440
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2441
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2442
|
-
*/
|
|
2443
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): userdomain.User;
|
|
2444
|
-
|
|
2445
|
-
/**
|
|
2446
|
-
* Verifies a User message.
|
|
2447
|
-
* @param message Plain object to verify
|
|
2448
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
|
2449
|
-
*/
|
|
2450
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
2451
|
-
|
|
2452
|
-
/**
|
|
2453
|
-
* Creates a User message from a plain object. Also converts values to their respective internal types.
|
|
2454
|
-
* @param object Plain object
|
|
2455
|
-
* @returns User
|
|
2456
|
-
*/
|
|
2457
|
-
public static fromObject(object: { [k: string]: any }): userdomain.User;
|
|
2458
|
-
|
|
2459
|
-
/**
|
|
2460
|
-
* Creates a plain object from a User message. Also converts values to other types if specified.
|
|
2461
|
-
* @param message User
|
|
2462
|
-
* @param [options] Conversion options
|
|
2463
|
-
* @returns Plain object
|
|
2464
|
-
*/
|
|
2465
|
-
public static toObject(message: userdomain.User, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
2466
|
-
|
|
2467
|
-
/**
|
|
2468
|
-
* Converts this User to JSON.
|
|
2469
|
-
* @returns JSON object
|
|
2470
|
-
*/
|
|
2471
|
-
public toJSON(): { [k: string]: any };
|
|
2472
|
-
}
|
|
2473
|
-
|
|
2474
|
-
/** Platform enum. */
|
|
2475
|
-
enum Platform {
|
|
2476
|
-
UNKNOWN_PLATFORM = 0,
|
|
2477
|
-
DESKTOP = 1,
|
|
2478
|
-
IOS = 2,
|
|
2479
|
-
ANDROID = 3,
|
|
2480
|
-
ALEXA = 4,
|
|
2481
|
-
GOOGLE_ASSISTANT = 5
|
|
2482
|
-
}
|
|
2483
|
-
|
|
2484
|
-
/** LoginStatus enum. */
|
|
2485
|
-
enum LoginStatus {
|
|
2486
|
-
LOGIN_UNKNOWN = 0,
|
|
2487
|
-
LOGIN_SUCCESS = 1,
|
|
2488
|
-
LOGIN_FAIL = 2
|
|
2489
|
-
}
|
|
2380
|
+
/**
|
|
2381
|
+
* Constructs a new User.
|
|
2382
|
+
* @param [properties] Properties to set
|
|
2383
|
+
*/
|
|
2384
|
+
constructor(properties?: userdomain.users.IUser);
|
|
2385
|
+
|
|
2386
|
+
/** User hsId. */
|
|
2387
|
+
public hsId: string;
|
|
2490
2388
|
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2389
|
+
/** User auth0Id. */
|
|
2390
|
+
public auth0Id: string;
|
|
2391
|
+
|
|
2392
|
+
/** User firstName. */
|
|
2393
|
+
public firstName: string;
|
|
2394
|
+
|
|
2395
|
+
/** User lastName. */
|
|
2396
|
+
public lastName: string;
|
|
2397
|
+
|
|
2398
|
+
/** User email. */
|
|
2399
|
+
public email: string;
|
|
2400
|
+
|
|
2401
|
+
/** User countryCode. */
|
|
2402
|
+
public countryCode: string;
|
|
2403
|
+
|
|
2404
|
+
/** User stateCode. */
|
|
2405
|
+
public stateCode: string;
|
|
2406
|
+
|
|
2407
|
+
/** User signupPlatform. */
|
|
2408
|
+
public signupPlatform: userdomain.users.Platform;
|
|
2409
|
+
|
|
2410
|
+
/** User facebookId. */
|
|
2411
|
+
public facebookId: string;
|
|
2412
|
+
|
|
2413
|
+
/** User appleId. */
|
|
2414
|
+
public appleId: string;
|
|
2415
|
+
|
|
2416
|
+
/** User spotifyId. */
|
|
2417
|
+
public spotifyId: string;
|
|
2418
|
+
|
|
2419
|
+
/** User oneloginId. */
|
|
2420
|
+
public oneloginId: string;
|
|
2421
|
+
|
|
2422
|
+
/** User userType. */
|
|
2423
|
+
public userType: userdomain.users.UserType;
|
|
2424
|
+
|
|
2425
|
+
/**
|
|
2426
|
+
* Creates a new User instance using the specified properties.
|
|
2427
|
+
* @param [properties] Properties to set
|
|
2428
|
+
* @returns User instance
|
|
2429
|
+
*/
|
|
2430
|
+
public static create(properties?: userdomain.users.IUser): userdomain.users.User;
|
|
2431
|
+
|
|
2432
|
+
/**
|
|
2433
|
+
* Encodes the specified User message. Does not implicitly {@link userdomain.users.User.verify|verify} messages.
|
|
2434
|
+
* @param message User message or plain object to encode
|
|
2435
|
+
* @param [writer] Writer to encode to
|
|
2436
|
+
* @returns Writer
|
|
2437
|
+
*/
|
|
2438
|
+
public static encode(message: userdomain.users.IUser, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2439
|
+
|
|
2440
|
+
/**
|
|
2441
|
+
* Encodes the specified User message, length delimited. Does not implicitly {@link userdomain.users.User.verify|verify} messages.
|
|
2442
|
+
* @param message User message or plain object to encode
|
|
2443
|
+
* @param [writer] Writer to encode to
|
|
2444
|
+
* @returns Writer
|
|
2445
|
+
*/
|
|
2446
|
+
public static encodeDelimited(message: userdomain.users.IUser, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2447
|
+
|
|
2448
|
+
/**
|
|
2449
|
+
* Decodes a User message from the specified reader or buffer.
|
|
2450
|
+
* @param reader Reader or buffer to decode from
|
|
2451
|
+
* @param [length] Message length if known beforehand
|
|
2452
|
+
* @returns User
|
|
2453
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2454
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2455
|
+
*/
|
|
2456
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): userdomain.users.User;
|
|
2457
|
+
|
|
2458
|
+
/**
|
|
2459
|
+
* Decodes a User message from the specified reader or buffer, length delimited.
|
|
2460
|
+
* @param reader Reader or buffer to decode from
|
|
2461
|
+
* @returns User
|
|
2462
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2463
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2464
|
+
*/
|
|
2465
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): userdomain.users.User;
|
|
2466
|
+
|
|
2467
|
+
/**
|
|
2468
|
+
* Verifies a User message.
|
|
2469
|
+
* @param message Plain object to verify
|
|
2470
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
2471
|
+
*/
|
|
2472
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
2473
|
+
|
|
2474
|
+
/**
|
|
2475
|
+
* Creates a User message from a plain object. Also converts values to their respective internal types.
|
|
2476
|
+
* @param object Plain object
|
|
2477
|
+
* @returns User
|
|
2478
|
+
*/
|
|
2479
|
+
public static fromObject(object: { [k: string]: any }): userdomain.users.User;
|
|
2480
|
+
|
|
2481
|
+
/**
|
|
2482
|
+
* Creates a plain object from a User message. Also converts values to other types if specified.
|
|
2483
|
+
* @param message User
|
|
2484
|
+
* @param [options] Conversion options
|
|
2485
|
+
* @returns Plain object
|
|
2486
|
+
*/
|
|
2487
|
+
public static toObject(message: userdomain.users.User, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
2488
|
+
|
|
2489
|
+
/**
|
|
2490
|
+
* Converts this User to JSON.
|
|
2491
|
+
* @returns JSON object
|
|
2492
|
+
*/
|
|
2493
|
+
public toJSON(): { [k: string]: any };
|
|
2494
|
+
}
|
|
2495
|
+
|
|
2496
|
+
/** Platform enum. */
|
|
2497
|
+
enum Platform {
|
|
2498
|
+
UNKNOWN_PLATFORM = 0,
|
|
2499
|
+
DESKTOP = 1,
|
|
2500
|
+
IOS = 2,
|
|
2501
|
+
ANDROID = 3,
|
|
2502
|
+
ALEXA = 4,
|
|
2503
|
+
GOOGLE_ASSISTANT = 5
|
|
2504
|
+
}
|
|
2505
|
+
|
|
2506
|
+
/** UserType enum. */
|
|
2507
|
+
enum UserType {
|
|
2508
|
+
CORE_ADMIN = 0,
|
|
2509
|
+
CORE_USER = 1,
|
|
2510
|
+
HEALTH_ADMIN = 2,
|
|
2511
|
+
HEALTH_COACH = 3,
|
|
2512
|
+
HEALTH_USER = 4
|
|
2513
|
+
}
|
|
2514
|
+
|
|
2515
|
+
/** LoginStatus enum. */
|
|
2516
|
+
enum LoginStatus {
|
|
2517
|
+
LOGIN_UNKNOWN = 0,
|
|
2518
|
+
LOGIN_SUCCESS = 1,
|
|
2519
|
+
LOGIN_FAIL = 2
|
|
2520
|
+
}
|
|
2521
|
+
|
|
2522
|
+
/** ConnectionSource enum. */
|
|
2523
|
+
enum ConnectionSource {
|
|
2524
|
+
CONNSRC_UNKNOWN = 0,
|
|
2525
|
+
CONNSRC_EMAIL = 1,
|
|
2526
|
+
CONNSRC_FACEBOOK = 2,
|
|
2527
|
+
CONNSRC_SPOTIFY = 3,
|
|
2528
|
+
CONNSRC_APPLE = 4
|
|
2529
|
+
}
|
|
2498
2530
|
}
|
|
2499
2531
|
}
|
|
2500
2532
|
|
|
@@ -2505,7 +2537,7 @@ export interface IUserRoleUpdated {
|
|
|
2505
2537
|
hsId?: (string|null);
|
|
2506
2538
|
|
|
2507
2539
|
/** UserRoleUpdated userRole */
|
|
2508
|
-
userRole?: (userdomain.IUserRole|null);
|
|
2540
|
+
userRole?: (userdomain.roles.IUserRole|null);
|
|
2509
2541
|
|
|
2510
2542
|
/** UserRoleUpdated updatedAt */
|
|
2511
2543
|
updatedAt?: (number|Long|null);
|
|
@@ -2524,7 +2556,7 @@ export class UserRoleUpdated implements IUserRoleUpdated {
|
|
|
2524
2556
|
public hsId: string;
|
|
2525
2557
|
|
|
2526
2558
|
/** UserRoleUpdated userRole. */
|
|
2527
|
-
public userRole?: (userdomain.IUserRole|null);
|
|
2559
|
+
public userRole?: (userdomain.roles.IUserRole|null);
|
|
2528
2560
|
|
|
2529
2561
|
/** UserRoleUpdated updatedAt. */
|
|
2530
2562
|
public updatedAt: (number|Long);
|
|
@@ -2604,7 +2636,7 @@ export class UserRoleUpdated implements IUserRoleUpdated {
|
|
|
2604
2636
|
export interface IUserDomainCreated {
|
|
2605
2637
|
|
|
2606
2638
|
/** UserDomainCreated user */
|
|
2607
|
-
user?: (userdomain.IUser|null);
|
|
2639
|
+
user?: (userdomain.users.IUser|null);
|
|
2608
2640
|
|
|
2609
2641
|
/** UserDomainCreated createdAt */
|
|
2610
2642
|
createdAt?: (number|Long|null);
|
|
@@ -2620,7 +2652,7 @@ export class UserDomainCreated implements IUserDomainCreated {
|
|
|
2620
2652
|
constructor(properties?: IUserDomainCreated);
|
|
2621
2653
|
|
|
2622
2654
|
/** UserDomainCreated user. */
|
|
2623
|
-
public user?: (userdomain.IUser|null);
|
|
2655
|
+
public user?: (userdomain.users.IUser|null);
|
|
2624
2656
|
|
|
2625
2657
|
/** UserDomainCreated createdAt. */
|
|
2626
2658
|
public createdAt: (number|Long);
|
|
@@ -3114,13 +3146,13 @@ export interface IUserDomainLoggedIn {
|
|
|
3114
3146
|
loginTimestamp?: (number|Long|null);
|
|
3115
3147
|
|
|
3116
3148
|
/** UserDomainLoggedIn loginStatus */
|
|
3117
|
-
loginStatus?: (userdomain.LoginStatus|null);
|
|
3149
|
+
loginStatus?: (userdomain.users.LoginStatus|null);
|
|
3118
3150
|
|
|
3119
3151
|
/** UserDomainLoggedIn loginPlatform */
|
|
3120
|
-
loginPlatform?: (userdomain.Platform|null);
|
|
3152
|
+
loginPlatform?: (userdomain.users.Platform|null);
|
|
3121
3153
|
|
|
3122
3154
|
/** UserDomainLoggedIn loginConnectionSource */
|
|
3123
|
-
loginConnectionSource?: (userdomain.ConnectionSource|null);
|
|
3155
|
+
loginConnectionSource?: (userdomain.users.ConnectionSource|null);
|
|
3124
3156
|
}
|
|
3125
3157
|
|
|
3126
3158
|
/** Represents a UserDomainLoggedIn. */
|
|
@@ -3139,13 +3171,13 @@ export class UserDomainLoggedIn implements IUserDomainLoggedIn {
|
|
|
3139
3171
|
public loginTimestamp: (number|Long);
|
|
3140
3172
|
|
|
3141
3173
|
/** UserDomainLoggedIn loginStatus. */
|
|
3142
|
-
public loginStatus: userdomain.LoginStatus;
|
|
3174
|
+
public loginStatus: userdomain.users.LoginStatus;
|
|
3143
3175
|
|
|
3144
3176
|
/** UserDomainLoggedIn loginPlatform. */
|
|
3145
|
-
public loginPlatform: userdomain.Platform;
|
|
3177
|
+
public loginPlatform: userdomain.users.Platform;
|
|
3146
3178
|
|
|
3147
3179
|
/** UserDomainLoggedIn loginConnectionSource. */
|
|
3148
|
-
public loginConnectionSource: userdomain.ConnectionSource;
|
|
3180
|
+
public loginConnectionSource: userdomain.users.ConnectionSource;
|
|
3149
3181
|
|
|
3150
3182
|
/**
|
|
3151
3183
|
* Creates a new UserDomainLoggedIn instance using the specified properties.
|