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