@headspace/protos-events 1.43.0 → 1.44.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 +624 -830
- package/lib/index.js +1594 -1917
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1144,847 +1144,641 @@ export namespace subscription {
|
|
|
1144
1144
|
}
|
|
1145
1145
|
}
|
|
1146
1146
|
|
|
1147
|
-
/** Namespace
|
|
1148
|
-
export namespace
|
|
1147
|
+
/** Namespace userdomain. */
|
|
1148
|
+
export namespace userdomain {
|
|
1149
1149
|
|
|
1150
|
-
/**
|
|
1151
|
-
|
|
1150
|
+
/** Properties of a UserRole. */
|
|
1151
|
+
interface IUserRole {
|
|
1152
1152
|
|
|
1153
|
-
/**
|
|
1154
|
-
|
|
1153
|
+
/** UserRole roles */
|
|
1154
|
+
roles?: (userdomain.Role[]|null);
|
|
1155
|
+
}
|
|
1156
|
+
|
|
1157
|
+
/** Represents a UserRole. */
|
|
1158
|
+
class UserRole implements IUserRole {
|
|
1159
|
+
|
|
1160
|
+
/**
|
|
1161
|
+
* Constructs a new UserRole.
|
|
1162
|
+
* @param [properties] Properties to set
|
|
1163
|
+
*/
|
|
1164
|
+
constructor(properties?: userdomain.IUserRole);
|
|
1165
|
+
|
|
1166
|
+
/** UserRole roles. */
|
|
1167
|
+
public roles: userdomain.Role[];
|
|
1168
|
+
|
|
1169
|
+
/**
|
|
1170
|
+
* Creates a new UserRole instance using the specified properties.
|
|
1171
|
+
* @param [properties] Properties to set
|
|
1172
|
+
* @returns UserRole instance
|
|
1173
|
+
*/
|
|
1174
|
+
public static create(properties?: userdomain.IUserRole): userdomain.UserRole;
|
|
1175
|
+
|
|
1176
|
+
/**
|
|
1177
|
+
* Encodes the specified UserRole message. Does not implicitly {@link userdomain.UserRole.verify|verify} messages.
|
|
1178
|
+
* @param message UserRole message or plain object to encode
|
|
1179
|
+
* @param [writer] Writer to encode to
|
|
1180
|
+
* @returns Writer
|
|
1181
|
+
*/
|
|
1182
|
+
public static encode(message: userdomain.IUserRole, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1183
|
+
|
|
1184
|
+
/**
|
|
1185
|
+
* Encodes the specified UserRole message, length delimited. Does not implicitly {@link userdomain.UserRole.verify|verify} messages.
|
|
1186
|
+
* @param message UserRole message or plain object to encode
|
|
1187
|
+
* @param [writer] Writer to encode to
|
|
1188
|
+
* @returns Writer
|
|
1189
|
+
*/
|
|
1190
|
+
public static encodeDelimited(message: userdomain.IUserRole, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1191
|
+
|
|
1192
|
+
/**
|
|
1193
|
+
* Decodes a UserRole message from the specified reader or buffer.
|
|
1194
|
+
* @param reader Reader or buffer to decode from
|
|
1195
|
+
* @param [length] Message length if known beforehand
|
|
1196
|
+
* @returns UserRole
|
|
1197
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1198
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1199
|
+
*/
|
|
1200
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): userdomain.UserRole;
|
|
1201
|
+
|
|
1202
|
+
/**
|
|
1203
|
+
* Decodes a UserRole message from the specified reader or buffer, length delimited.
|
|
1204
|
+
* @param reader Reader or buffer to decode from
|
|
1205
|
+
* @returns UserRole
|
|
1206
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1207
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1208
|
+
*/
|
|
1209
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): userdomain.UserRole;
|
|
1210
|
+
|
|
1211
|
+
/**
|
|
1212
|
+
* Verifies a UserRole message.
|
|
1213
|
+
* @param message Plain object to verify
|
|
1214
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
1215
|
+
*/
|
|
1216
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
1217
|
+
|
|
1218
|
+
/**
|
|
1219
|
+
* Creates a UserRole message from a plain object. Also converts values to their respective internal types.
|
|
1220
|
+
* @param object Plain object
|
|
1221
|
+
* @returns UserRole
|
|
1222
|
+
*/
|
|
1223
|
+
public static fromObject(object: { [k: string]: any }): userdomain.UserRole;
|
|
1224
|
+
|
|
1225
|
+
/**
|
|
1226
|
+
* Creates a plain object from a UserRole message. Also converts values to other types if specified.
|
|
1227
|
+
* @param message UserRole
|
|
1228
|
+
* @param [options] Conversion options
|
|
1229
|
+
* @returns Plain object
|
|
1230
|
+
*/
|
|
1231
|
+
public static toObject(message: userdomain.UserRole, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1232
|
+
|
|
1233
|
+
/**
|
|
1234
|
+
* Converts this UserRole to JSON.
|
|
1235
|
+
* @returns JSON object
|
|
1236
|
+
*/
|
|
1237
|
+
public toJSON(): { [k: string]: any };
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
/** Role enum. */
|
|
1241
|
+
enum Role {
|
|
1242
|
+
UNKNOWN_ROLE = 0,
|
|
1243
|
+
ROLEADMIN = 1,
|
|
1244
|
+
NORMALUSER = 2,
|
|
1245
|
+
CONTENTADMIN = 3,
|
|
1246
|
+
USERADMIN = 4,
|
|
1247
|
+
CORPORATEADMIN = 5,
|
|
1248
|
+
SPECIALADMIN = 6
|
|
1249
|
+
}
|
|
1250
|
+
|
|
1251
|
+
/** Properties of a User. */
|
|
1252
|
+
interface IUser {
|
|
1155
1253
|
|
|
1156
|
-
|
|
1157
|
-
|
|
1254
|
+
/** User hsId */
|
|
1255
|
+
hsId?: (string|null);
|
|
1158
1256
|
|
|
1159
|
-
|
|
1160
|
-
|
|
1257
|
+
/** User auth0Id */
|
|
1258
|
+
auth0Id?: (string|null);
|
|
1161
1259
|
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
DESKTOP = 0,
|
|
1165
|
-
IOS = 1,
|
|
1166
|
-
ANDROID = 2,
|
|
1167
|
-
ALEXA = 3,
|
|
1168
|
-
GOOGLE_ASSISTANT = 4
|
|
1169
|
-
}
|
|
1260
|
+
/** User firstName */
|
|
1261
|
+
firstName?: (string|null);
|
|
1170
1262
|
|
|
1171
|
-
|
|
1172
|
-
|
|
1263
|
+
/** User lastName */
|
|
1264
|
+
lastName?: (string|null);
|
|
1173
1265
|
|
|
1174
|
-
|
|
1175
|
-
|
|
1266
|
+
/** User email */
|
|
1267
|
+
email?: (string|null);
|
|
1176
1268
|
|
|
1177
|
-
|
|
1178
|
-
|
|
1269
|
+
/** User countryCode */
|
|
1270
|
+
countryCode?: (string|null);
|
|
1179
1271
|
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
/** User lastName */
|
|
1184
|
-
lastName?: (string|null);
|
|
1272
|
+
/** User stateCode */
|
|
1273
|
+
stateCode?: (string|null);
|
|
1185
1274
|
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
/** User countryCode */
|
|
1190
|
-
countryCode?: (string|null);
|
|
1191
|
-
|
|
1192
|
-
/** User stateCode */
|
|
1193
|
-
stateCode?: (string|null);
|
|
1194
|
-
|
|
1195
|
-
/** User signupPlatform */
|
|
1196
|
-
signupPlatform?: (com.headspace.userdomain.grpc.user.PLATFORM|null);
|
|
1197
|
-
|
|
1198
|
-
/** User createdAt */
|
|
1199
|
-
createdAt?: (number|Long|null);
|
|
1200
|
-
|
|
1201
|
-
/** User updatedAt */
|
|
1202
|
-
updatedAt?: (number|Long|null);
|
|
1203
|
-
}
|
|
1204
|
-
|
|
1205
|
-
/** Represents a User. */
|
|
1206
|
-
class User implements IUser {
|
|
1207
|
-
|
|
1208
|
-
/**
|
|
1209
|
-
* Constructs a new User.
|
|
1210
|
-
* @param [properties] Properties to set
|
|
1211
|
-
*/
|
|
1212
|
-
constructor(properties?: com.headspace.userdomain.grpc.user.IUser);
|
|
1213
|
-
|
|
1214
|
-
/** User hsId. */
|
|
1215
|
-
public hsId: string;
|
|
1216
|
-
|
|
1217
|
-
/** User auth0Id. */
|
|
1218
|
-
public auth0Id: string;
|
|
1219
|
-
|
|
1220
|
-
/** User firstName. */
|
|
1221
|
-
public firstName: string;
|
|
1222
|
-
|
|
1223
|
-
/** User lastName. */
|
|
1224
|
-
public lastName: string;
|
|
1225
|
-
|
|
1226
|
-
/** User email. */
|
|
1227
|
-
public email: string;
|
|
1228
|
-
|
|
1229
|
-
/** User countryCode. */
|
|
1230
|
-
public countryCode: string;
|
|
1231
|
-
|
|
1232
|
-
/** User stateCode. */
|
|
1233
|
-
public stateCode: string;
|
|
1234
|
-
|
|
1235
|
-
/** User signupPlatform. */
|
|
1236
|
-
public signupPlatform: com.headspace.userdomain.grpc.user.PLATFORM;
|
|
1237
|
-
|
|
1238
|
-
/** User createdAt. */
|
|
1239
|
-
public createdAt: (number|Long);
|
|
1240
|
-
|
|
1241
|
-
/** User updatedAt. */
|
|
1242
|
-
public updatedAt: (number|Long);
|
|
1243
|
-
|
|
1244
|
-
/**
|
|
1245
|
-
* Creates a new User instance using the specified properties.
|
|
1246
|
-
* @param [properties] Properties to set
|
|
1247
|
-
* @returns User instance
|
|
1248
|
-
*/
|
|
1249
|
-
public static create(properties?: com.headspace.userdomain.grpc.user.IUser): com.headspace.userdomain.grpc.user.User;
|
|
1250
|
-
|
|
1251
|
-
/**
|
|
1252
|
-
* Encodes the specified User message. Does not implicitly {@link com.headspace.userdomain.grpc.user.User.verify|verify} messages.
|
|
1253
|
-
* @param message User message or plain object to encode
|
|
1254
|
-
* @param [writer] Writer to encode to
|
|
1255
|
-
* @returns Writer
|
|
1256
|
-
*/
|
|
1257
|
-
public static encode(message: com.headspace.userdomain.grpc.user.IUser, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1258
|
-
|
|
1259
|
-
/**
|
|
1260
|
-
* Encodes the specified User message, length delimited. Does not implicitly {@link com.headspace.userdomain.grpc.user.User.verify|verify} messages.
|
|
1261
|
-
* @param message User message or plain object to encode
|
|
1262
|
-
* @param [writer] Writer to encode to
|
|
1263
|
-
* @returns Writer
|
|
1264
|
-
*/
|
|
1265
|
-
public static encodeDelimited(message: com.headspace.userdomain.grpc.user.IUser, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1266
|
-
|
|
1267
|
-
/**
|
|
1268
|
-
* Decodes a User message from the specified reader or buffer.
|
|
1269
|
-
* @param reader Reader or buffer to decode from
|
|
1270
|
-
* @param [length] Message length if known beforehand
|
|
1271
|
-
* @returns User
|
|
1272
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1273
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1274
|
-
*/
|
|
1275
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): com.headspace.userdomain.grpc.user.User;
|
|
1276
|
-
|
|
1277
|
-
/**
|
|
1278
|
-
* Decodes a User message from the specified reader or buffer, length delimited.
|
|
1279
|
-
* @param reader Reader or buffer to decode from
|
|
1280
|
-
* @returns User
|
|
1281
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1282
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1283
|
-
*/
|
|
1284
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): com.headspace.userdomain.grpc.user.User;
|
|
1285
|
-
|
|
1286
|
-
/**
|
|
1287
|
-
* Verifies a User message.
|
|
1288
|
-
* @param message Plain object to verify
|
|
1289
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
|
1290
|
-
*/
|
|
1291
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
1292
|
-
|
|
1293
|
-
/**
|
|
1294
|
-
* Creates a User message from a plain object. Also converts values to their respective internal types.
|
|
1295
|
-
* @param object Plain object
|
|
1296
|
-
* @returns User
|
|
1297
|
-
*/
|
|
1298
|
-
public static fromObject(object: { [k: string]: any }): com.headspace.userdomain.grpc.user.User;
|
|
1299
|
-
|
|
1300
|
-
/**
|
|
1301
|
-
* Creates a plain object from a User message. Also converts values to other types if specified.
|
|
1302
|
-
* @param message User
|
|
1303
|
-
* @param [options] Conversion options
|
|
1304
|
-
* @returns Plain object
|
|
1305
|
-
*/
|
|
1306
|
-
public static toObject(message: com.headspace.userdomain.grpc.user.User, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1307
|
-
|
|
1308
|
-
/**
|
|
1309
|
-
* Converts this User to JSON.
|
|
1310
|
-
* @returns JSON object
|
|
1311
|
-
*/
|
|
1312
|
-
public toJSON(): { [k: string]: any };
|
|
1313
|
-
}
|
|
1314
|
-
|
|
1315
|
-
/** Properties of a DeleteUserRequest. */
|
|
1316
|
-
interface IDeleteUserRequest {
|
|
1317
|
-
|
|
1318
|
-
/** DeleteUserRequest hsId */
|
|
1319
|
-
hsId?: (string|null);
|
|
1320
|
-
}
|
|
1321
|
-
|
|
1322
|
-
/** Represents a DeleteUserRequest. */
|
|
1323
|
-
class DeleteUserRequest implements IDeleteUserRequest {
|
|
1324
|
-
|
|
1325
|
-
/**
|
|
1326
|
-
* Constructs a new DeleteUserRequest.
|
|
1327
|
-
* @param [properties] Properties to set
|
|
1328
|
-
*/
|
|
1329
|
-
constructor(properties?: com.headspace.userdomain.grpc.user.IDeleteUserRequest);
|
|
1330
|
-
|
|
1331
|
-
/** DeleteUserRequest hsId. */
|
|
1332
|
-
public hsId: string;
|
|
1333
|
-
|
|
1334
|
-
/**
|
|
1335
|
-
* Creates a new DeleteUserRequest instance using the specified properties.
|
|
1336
|
-
* @param [properties] Properties to set
|
|
1337
|
-
* @returns DeleteUserRequest instance
|
|
1338
|
-
*/
|
|
1339
|
-
public static create(properties?: com.headspace.userdomain.grpc.user.IDeleteUserRequest): com.headspace.userdomain.grpc.user.DeleteUserRequest;
|
|
1340
|
-
|
|
1341
|
-
/**
|
|
1342
|
-
* Encodes the specified DeleteUserRequest message. Does not implicitly {@link com.headspace.userdomain.grpc.user.DeleteUserRequest.verify|verify} messages.
|
|
1343
|
-
* @param message DeleteUserRequest message or plain object to encode
|
|
1344
|
-
* @param [writer] Writer to encode to
|
|
1345
|
-
* @returns Writer
|
|
1346
|
-
*/
|
|
1347
|
-
public static encode(message: com.headspace.userdomain.grpc.user.IDeleteUserRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1348
|
-
|
|
1349
|
-
/**
|
|
1350
|
-
* Encodes the specified DeleteUserRequest message, length delimited. Does not implicitly {@link com.headspace.userdomain.grpc.user.DeleteUserRequest.verify|verify} messages.
|
|
1351
|
-
* @param message DeleteUserRequest message or plain object to encode
|
|
1352
|
-
* @param [writer] Writer to encode to
|
|
1353
|
-
* @returns Writer
|
|
1354
|
-
*/
|
|
1355
|
-
public static encodeDelimited(message: com.headspace.userdomain.grpc.user.IDeleteUserRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1356
|
-
|
|
1357
|
-
/**
|
|
1358
|
-
* Decodes a DeleteUserRequest message from the specified reader or buffer.
|
|
1359
|
-
* @param reader Reader or buffer to decode from
|
|
1360
|
-
* @param [length] Message length if known beforehand
|
|
1361
|
-
* @returns DeleteUserRequest
|
|
1362
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1363
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1364
|
-
*/
|
|
1365
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): com.headspace.userdomain.grpc.user.DeleteUserRequest;
|
|
1366
|
-
|
|
1367
|
-
/**
|
|
1368
|
-
* Decodes a DeleteUserRequest message from the specified reader or buffer, length delimited.
|
|
1369
|
-
* @param reader Reader or buffer to decode from
|
|
1370
|
-
* @returns DeleteUserRequest
|
|
1371
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1372
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1373
|
-
*/
|
|
1374
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): com.headspace.userdomain.grpc.user.DeleteUserRequest;
|
|
1375
|
-
|
|
1376
|
-
/**
|
|
1377
|
-
* Verifies a DeleteUserRequest message.
|
|
1378
|
-
* @param message Plain object to verify
|
|
1379
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
|
1380
|
-
*/
|
|
1381
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
1382
|
-
|
|
1383
|
-
/**
|
|
1384
|
-
* Creates a DeleteUserRequest message from a plain object. Also converts values to their respective internal types.
|
|
1385
|
-
* @param object Plain object
|
|
1386
|
-
* @returns DeleteUserRequest
|
|
1387
|
-
*/
|
|
1388
|
-
public static fromObject(object: { [k: string]: any }): com.headspace.userdomain.grpc.user.DeleteUserRequest;
|
|
1389
|
-
|
|
1390
|
-
/**
|
|
1391
|
-
* Creates a plain object from a DeleteUserRequest message. Also converts values to other types if specified.
|
|
1392
|
-
* @param message DeleteUserRequest
|
|
1393
|
-
* @param [options] Conversion options
|
|
1394
|
-
* @returns Plain object
|
|
1395
|
-
*/
|
|
1396
|
-
public static toObject(message: com.headspace.userdomain.grpc.user.DeleteUserRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1397
|
-
|
|
1398
|
-
/**
|
|
1399
|
-
* Converts this DeleteUserRequest to JSON.
|
|
1400
|
-
* @returns JSON object
|
|
1401
|
-
*/
|
|
1402
|
-
public toJSON(): { [k: string]: any };
|
|
1403
|
-
}
|
|
1404
|
-
|
|
1405
|
-
/** Properties of a DeleteUserResponse. */
|
|
1406
|
-
interface IDeleteUserResponse {
|
|
1407
|
-
}
|
|
1408
|
-
|
|
1409
|
-
/** Represents a DeleteUserResponse. */
|
|
1410
|
-
class DeleteUserResponse implements IDeleteUserResponse {
|
|
1411
|
-
|
|
1412
|
-
/**
|
|
1413
|
-
* Constructs a new DeleteUserResponse.
|
|
1414
|
-
* @param [properties] Properties to set
|
|
1415
|
-
*/
|
|
1416
|
-
constructor(properties?: com.headspace.userdomain.grpc.user.IDeleteUserResponse);
|
|
1417
|
-
|
|
1418
|
-
/**
|
|
1419
|
-
* Creates a new DeleteUserResponse instance using the specified properties.
|
|
1420
|
-
* @param [properties] Properties to set
|
|
1421
|
-
* @returns DeleteUserResponse instance
|
|
1422
|
-
*/
|
|
1423
|
-
public static create(properties?: com.headspace.userdomain.grpc.user.IDeleteUserResponse): com.headspace.userdomain.grpc.user.DeleteUserResponse;
|
|
1424
|
-
|
|
1425
|
-
/**
|
|
1426
|
-
* Encodes the specified DeleteUserResponse message. Does not implicitly {@link com.headspace.userdomain.grpc.user.DeleteUserResponse.verify|verify} messages.
|
|
1427
|
-
* @param message DeleteUserResponse message or plain object to encode
|
|
1428
|
-
* @param [writer] Writer to encode to
|
|
1429
|
-
* @returns Writer
|
|
1430
|
-
*/
|
|
1431
|
-
public static encode(message: com.headspace.userdomain.grpc.user.IDeleteUserResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1432
|
-
|
|
1433
|
-
/**
|
|
1434
|
-
* Encodes the specified DeleteUserResponse message, length delimited. Does not implicitly {@link com.headspace.userdomain.grpc.user.DeleteUserResponse.verify|verify} messages.
|
|
1435
|
-
* @param message DeleteUserResponse message or plain object to encode
|
|
1436
|
-
* @param [writer] Writer to encode to
|
|
1437
|
-
* @returns Writer
|
|
1438
|
-
*/
|
|
1439
|
-
public static encodeDelimited(message: com.headspace.userdomain.grpc.user.IDeleteUserResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1440
|
-
|
|
1441
|
-
/**
|
|
1442
|
-
* Decodes a DeleteUserResponse message from the specified reader or buffer.
|
|
1443
|
-
* @param reader Reader or buffer to decode from
|
|
1444
|
-
* @param [length] Message length if known beforehand
|
|
1445
|
-
* @returns DeleteUserResponse
|
|
1446
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1447
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1448
|
-
*/
|
|
1449
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): com.headspace.userdomain.grpc.user.DeleteUserResponse;
|
|
1450
|
-
|
|
1451
|
-
/**
|
|
1452
|
-
* Decodes a DeleteUserResponse message from the specified reader or buffer, length delimited.
|
|
1453
|
-
* @param reader Reader or buffer to decode from
|
|
1454
|
-
* @returns DeleteUserResponse
|
|
1455
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1456
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1457
|
-
*/
|
|
1458
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): com.headspace.userdomain.grpc.user.DeleteUserResponse;
|
|
1459
|
-
|
|
1460
|
-
/**
|
|
1461
|
-
* Verifies a DeleteUserResponse message.
|
|
1462
|
-
* @param message Plain object to verify
|
|
1463
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
|
1464
|
-
*/
|
|
1465
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
1466
|
-
|
|
1467
|
-
/**
|
|
1468
|
-
* Creates a DeleteUserResponse message from a plain object. Also converts values to their respective internal types.
|
|
1469
|
-
* @param object Plain object
|
|
1470
|
-
* @returns DeleteUserResponse
|
|
1471
|
-
*/
|
|
1472
|
-
public static fromObject(object: { [k: string]: any }): com.headspace.userdomain.grpc.user.DeleteUserResponse;
|
|
1473
|
-
|
|
1474
|
-
/**
|
|
1475
|
-
* Creates a plain object from a DeleteUserResponse message. Also converts values to other types if specified.
|
|
1476
|
-
* @param message DeleteUserResponse
|
|
1477
|
-
* @param [options] Conversion options
|
|
1478
|
-
* @returns Plain object
|
|
1479
|
-
*/
|
|
1480
|
-
public static toObject(message: com.headspace.userdomain.grpc.user.DeleteUserResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1481
|
-
|
|
1482
|
-
/**
|
|
1483
|
-
* Converts this DeleteUserResponse to JSON.
|
|
1484
|
-
* @returns JSON object
|
|
1485
|
-
*/
|
|
1486
|
-
public toJSON(): { [k: string]: any };
|
|
1487
|
-
}
|
|
1488
|
-
|
|
1489
|
-
/** Properties of a FindUserRequest. */
|
|
1490
|
-
interface IFindUserRequest {
|
|
1491
|
-
|
|
1492
|
-
/** FindUserRequest hsId */
|
|
1493
|
-
hsId?: (string|null);
|
|
1494
|
-
|
|
1495
|
-
/** FindUserRequest email */
|
|
1496
|
-
email?: (string|null);
|
|
1497
|
-
}
|
|
1498
|
-
|
|
1499
|
-
/** Represents a FindUserRequest. */
|
|
1500
|
-
class FindUserRequest implements IFindUserRequest {
|
|
1501
|
-
|
|
1502
|
-
/**
|
|
1503
|
-
* Constructs a new FindUserRequest.
|
|
1504
|
-
* @param [properties] Properties to set
|
|
1505
|
-
*/
|
|
1506
|
-
constructor(properties?: com.headspace.userdomain.grpc.user.IFindUserRequest);
|
|
1507
|
-
|
|
1508
|
-
/** FindUserRequest hsId. */
|
|
1509
|
-
public hsId: string;
|
|
1510
|
-
|
|
1511
|
-
/** FindUserRequest email. */
|
|
1512
|
-
public email: string;
|
|
1513
|
-
|
|
1514
|
-
/**
|
|
1515
|
-
* Creates a new FindUserRequest instance using the specified properties.
|
|
1516
|
-
* @param [properties] Properties to set
|
|
1517
|
-
* @returns FindUserRequest instance
|
|
1518
|
-
*/
|
|
1519
|
-
public static create(properties?: com.headspace.userdomain.grpc.user.IFindUserRequest): com.headspace.userdomain.grpc.user.FindUserRequest;
|
|
1520
|
-
|
|
1521
|
-
/**
|
|
1522
|
-
* Encodes the specified FindUserRequest message. Does not implicitly {@link com.headspace.userdomain.grpc.user.FindUserRequest.verify|verify} messages.
|
|
1523
|
-
* @param message FindUserRequest message or plain object to encode
|
|
1524
|
-
* @param [writer] Writer to encode to
|
|
1525
|
-
* @returns Writer
|
|
1526
|
-
*/
|
|
1527
|
-
public static encode(message: com.headspace.userdomain.grpc.user.IFindUserRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1528
|
-
|
|
1529
|
-
/**
|
|
1530
|
-
* Encodes the specified FindUserRequest message, length delimited. Does not implicitly {@link com.headspace.userdomain.grpc.user.FindUserRequest.verify|verify} messages.
|
|
1531
|
-
* @param message FindUserRequest message or plain object to encode
|
|
1532
|
-
* @param [writer] Writer to encode to
|
|
1533
|
-
* @returns Writer
|
|
1534
|
-
*/
|
|
1535
|
-
public static encodeDelimited(message: com.headspace.userdomain.grpc.user.IFindUserRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1536
|
-
|
|
1537
|
-
/**
|
|
1538
|
-
* Decodes a FindUserRequest message from the specified reader or buffer.
|
|
1539
|
-
* @param reader Reader or buffer to decode from
|
|
1540
|
-
* @param [length] Message length if known beforehand
|
|
1541
|
-
* @returns FindUserRequest
|
|
1542
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1543
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1544
|
-
*/
|
|
1545
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): com.headspace.userdomain.grpc.user.FindUserRequest;
|
|
1546
|
-
|
|
1547
|
-
/**
|
|
1548
|
-
* Decodes a FindUserRequest message from the specified reader or buffer, length delimited.
|
|
1549
|
-
* @param reader Reader or buffer to decode from
|
|
1550
|
-
* @returns FindUserRequest
|
|
1551
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1552
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1553
|
-
*/
|
|
1554
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): com.headspace.userdomain.grpc.user.FindUserRequest;
|
|
1555
|
-
|
|
1556
|
-
/**
|
|
1557
|
-
* Verifies a FindUserRequest message.
|
|
1558
|
-
* @param message Plain object to verify
|
|
1559
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
|
1560
|
-
*/
|
|
1561
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
1562
|
-
|
|
1563
|
-
/**
|
|
1564
|
-
* Creates a FindUserRequest message from a plain object. Also converts values to their respective internal types.
|
|
1565
|
-
* @param object Plain object
|
|
1566
|
-
* @returns FindUserRequest
|
|
1567
|
-
*/
|
|
1568
|
-
public static fromObject(object: { [k: string]: any }): com.headspace.userdomain.grpc.user.FindUserRequest;
|
|
1569
|
-
|
|
1570
|
-
/**
|
|
1571
|
-
* Creates a plain object from a FindUserRequest message. Also converts values to other types if specified.
|
|
1572
|
-
* @param message FindUserRequest
|
|
1573
|
-
* @param [options] Conversion options
|
|
1574
|
-
* @returns Plain object
|
|
1575
|
-
*/
|
|
1576
|
-
public static toObject(message: com.headspace.userdomain.grpc.user.FindUserRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1577
|
-
|
|
1578
|
-
/**
|
|
1579
|
-
* Converts this FindUserRequest to JSON.
|
|
1580
|
-
* @returns JSON object
|
|
1581
|
-
*/
|
|
1582
|
-
public toJSON(): { [k: string]: any };
|
|
1583
|
-
}
|
|
1584
|
-
|
|
1585
|
-
/** Represents a UserService */
|
|
1586
|
-
class UserService extends $protobuf.rpc.Service {
|
|
1587
|
-
|
|
1588
|
-
/**
|
|
1589
|
-
* Constructs a new UserService service.
|
|
1590
|
-
* @param rpcImpl RPC implementation
|
|
1591
|
-
* @param [requestDelimited=false] Whether requests are length-delimited
|
|
1592
|
-
* @param [responseDelimited=false] Whether responses are length-delimited
|
|
1593
|
-
*/
|
|
1594
|
-
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
|
|
1595
|
-
|
|
1596
|
-
/**
|
|
1597
|
-
* Creates new UserService service using the specified rpc implementation.
|
|
1598
|
-
* @param rpcImpl RPC implementation
|
|
1599
|
-
* @param [requestDelimited=false] Whether requests are length-delimited
|
|
1600
|
-
* @param [responseDelimited=false] Whether responses are length-delimited
|
|
1601
|
-
* @returns RPC service. Useful where requests and/or responses are streamed.
|
|
1602
|
-
*/
|
|
1603
|
-
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): UserService;
|
|
1604
|
-
|
|
1605
|
-
/**
|
|
1606
|
-
* Calls CreateUser.
|
|
1607
|
-
* @param request User message or plain object
|
|
1608
|
-
* @param callback Node-style callback called with the error, if any, and User
|
|
1609
|
-
*/
|
|
1610
|
-
public createUser(request: com.headspace.userdomain.grpc.user.IUser, callback: com.headspace.userdomain.grpc.user.UserService.CreateUserCallback): void;
|
|
1611
|
-
|
|
1612
|
-
/**
|
|
1613
|
-
* Calls CreateUser.
|
|
1614
|
-
* @param request User message or plain object
|
|
1615
|
-
* @returns Promise
|
|
1616
|
-
*/
|
|
1617
|
-
public createUser(request: com.headspace.userdomain.grpc.user.IUser): Promise<com.headspace.userdomain.grpc.user.User>;
|
|
1618
|
-
|
|
1619
|
-
/**
|
|
1620
|
-
* Calls DeleteUser.
|
|
1621
|
-
* @param request DeleteUserRequest message or plain object
|
|
1622
|
-
* @param callback Node-style callback called with the error, if any, and DeleteUserResponse
|
|
1623
|
-
*/
|
|
1624
|
-
public deleteUser(request: com.headspace.userdomain.grpc.user.IDeleteUserRequest, callback: com.headspace.userdomain.grpc.user.UserService.DeleteUserCallback): void;
|
|
1625
|
-
|
|
1626
|
-
/**
|
|
1627
|
-
* Calls DeleteUser.
|
|
1628
|
-
* @param request DeleteUserRequest message or plain object
|
|
1629
|
-
* @returns Promise
|
|
1630
|
-
*/
|
|
1631
|
-
public deleteUser(request: com.headspace.userdomain.grpc.user.IDeleteUserRequest): Promise<com.headspace.userdomain.grpc.user.DeleteUserResponse>;
|
|
1632
|
-
|
|
1633
|
-
/**
|
|
1634
|
-
* Calls UpdateUser.
|
|
1635
|
-
* @param request User message or plain object
|
|
1636
|
-
* @param callback Node-style callback called with the error, if any, and User
|
|
1637
|
-
*/
|
|
1638
|
-
public updateUser(request: com.headspace.userdomain.grpc.user.IUser, callback: com.headspace.userdomain.grpc.user.UserService.UpdateUserCallback): void;
|
|
1639
|
-
|
|
1640
|
-
/**
|
|
1641
|
-
* Calls UpdateUser.
|
|
1642
|
-
* @param request User message or plain object
|
|
1643
|
-
* @returns Promise
|
|
1644
|
-
*/
|
|
1645
|
-
public updateUser(request: com.headspace.userdomain.grpc.user.IUser): Promise<com.headspace.userdomain.grpc.user.User>;
|
|
1646
|
-
|
|
1647
|
-
/**
|
|
1648
|
-
* Calls FindUser.
|
|
1649
|
-
* @param request FindUserRequest message or plain object
|
|
1650
|
-
* @param callback Node-style callback called with the error, if any, and User
|
|
1651
|
-
*/
|
|
1652
|
-
public findUser(request: com.headspace.userdomain.grpc.user.IFindUserRequest, callback: com.headspace.userdomain.grpc.user.UserService.FindUserCallback): void;
|
|
1653
|
-
|
|
1654
|
-
/**
|
|
1655
|
-
* Calls FindUser.
|
|
1656
|
-
* @param request FindUserRequest message or plain object
|
|
1657
|
-
* @returns Promise
|
|
1658
|
-
*/
|
|
1659
|
-
public findUser(request: com.headspace.userdomain.grpc.user.IFindUserRequest): Promise<com.headspace.userdomain.grpc.user.User>;
|
|
1660
|
-
}
|
|
1661
|
-
|
|
1662
|
-
namespace UserService {
|
|
1663
|
-
|
|
1664
|
-
/**
|
|
1665
|
-
* Callback as used by {@link com.headspace.userdomain.grpc.user.UserService#createUser}.
|
|
1666
|
-
* @param error Error, if any
|
|
1667
|
-
* @param [response] User
|
|
1668
|
-
*/
|
|
1669
|
-
type CreateUserCallback = (error: (Error|null), response?: com.headspace.userdomain.grpc.user.User) => void;
|
|
1670
|
-
|
|
1671
|
-
/**
|
|
1672
|
-
* Callback as used by {@link com.headspace.userdomain.grpc.user.UserService#deleteUser}.
|
|
1673
|
-
* @param error Error, if any
|
|
1674
|
-
* @param [response] DeleteUserResponse
|
|
1675
|
-
*/
|
|
1676
|
-
type DeleteUserCallback = (error: (Error|null), response?: com.headspace.userdomain.grpc.user.DeleteUserResponse) => void;
|
|
1677
|
-
|
|
1678
|
-
/**
|
|
1679
|
-
* Callback as used by {@link com.headspace.userdomain.grpc.user.UserService#updateUser}.
|
|
1680
|
-
* @param error Error, if any
|
|
1681
|
-
* @param [response] User
|
|
1682
|
-
*/
|
|
1683
|
-
type UpdateUserCallback = (error: (Error|null), response?: com.headspace.userdomain.grpc.user.User) => void;
|
|
1684
|
-
|
|
1685
|
-
/**
|
|
1686
|
-
* Callback as used by {@link com.headspace.userdomain.grpc.user.UserService#findUser}.
|
|
1687
|
-
* @param error Error, if any
|
|
1688
|
-
* @param [response] User
|
|
1689
|
-
*/
|
|
1690
|
-
type FindUserCallback = (error: (Error|null), response?: com.headspace.userdomain.grpc.user.User) => void;
|
|
1691
|
-
}
|
|
1692
|
-
|
|
1693
|
-
/** Namespace events. */
|
|
1694
|
-
namespace events {
|
|
1695
|
-
|
|
1696
|
-
/** Properties of a UserCreated. */
|
|
1697
|
-
interface IUserCreated {
|
|
1698
|
-
|
|
1699
|
-
/** UserCreated user */
|
|
1700
|
-
user?: (com.headspace.userdomain.grpc.user.IUser|null);
|
|
1701
|
-
}
|
|
1702
|
-
|
|
1703
|
-
/** Represents a UserCreated. */
|
|
1704
|
-
class UserCreated implements IUserCreated {
|
|
1705
|
-
|
|
1706
|
-
/**
|
|
1707
|
-
* Constructs a new UserCreated.
|
|
1708
|
-
* @param [properties] Properties to set
|
|
1709
|
-
*/
|
|
1710
|
-
constructor(properties?: com.headspace.userdomain.grpc.user.events.IUserCreated);
|
|
1711
|
-
|
|
1712
|
-
/** UserCreated user. */
|
|
1713
|
-
public user?: (com.headspace.userdomain.grpc.user.IUser|null);
|
|
1714
|
-
|
|
1715
|
-
/**
|
|
1716
|
-
* Creates a new UserCreated instance using the specified properties.
|
|
1717
|
-
* @param [properties] Properties to set
|
|
1718
|
-
* @returns UserCreated instance
|
|
1719
|
-
*/
|
|
1720
|
-
public static create(properties?: com.headspace.userdomain.grpc.user.events.IUserCreated): com.headspace.userdomain.grpc.user.events.UserCreated;
|
|
1721
|
-
|
|
1722
|
-
/**
|
|
1723
|
-
* Encodes the specified UserCreated message. Does not implicitly {@link com.headspace.userdomain.grpc.user.events.UserCreated.verify|verify} messages.
|
|
1724
|
-
* @param message UserCreated message or plain object to encode
|
|
1725
|
-
* @param [writer] Writer to encode to
|
|
1726
|
-
* @returns Writer
|
|
1727
|
-
*/
|
|
1728
|
-
public static encode(message: com.headspace.userdomain.grpc.user.events.IUserCreated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1729
|
-
|
|
1730
|
-
/**
|
|
1731
|
-
* Encodes the specified UserCreated message, length delimited. Does not implicitly {@link com.headspace.userdomain.grpc.user.events.UserCreated.verify|verify} messages.
|
|
1732
|
-
* @param message UserCreated message or plain object to encode
|
|
1733
|
-
* @param [writer] Writer to encode to
|
|
1734
|
-
* @returns Writer
|
|
1735
|
-
*/
|
|
1736
|
-
public static encodeDelimited(message: com.headspace.userdomain.grpc.user.events.IUserCreated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1737
|
-
|
|
1738
|
-
/**
|
|
1739
|
-
* Decodes a UserCreated message from the specified reader or buffer.
|
|
1740
|
-
* @param reader Reader or buffer to decode from
|
|
1741
|
-
* @param [length] Message length if known beforehand
|
|
1742
|
-
* @returns UserCreated
|
|
1743
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1744
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1745
|
-
*/
|
|
1746
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): com.headspace.userdomain.grpc.user.events.UserCreated;
|
|
1747
|
-
|
|
1748
|
-
/**
|
|
1749
|
-
* Decodes a UserCreated message from the specified reader or buffer, length delimited.
|
|
1750
|
-
* @param reader Reader or buffer to decode from
|
|
1751
|
-
* @returns UserCreated
|
|
1752
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1753
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1754
|
-
*/
|
|
1755
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): com.headspace.userdomain.grpc.user.events.UserCreated;
|
|
1756
|
-
|
|
1757
|
-
/**
|
|
1758
|
-
* Verifies a UserCreated message.
|
|
1759
|
-
* @param message Plain object to verify
|
|
1760
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
|
1761
|
-
*/
|
|
1762
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
1763
|
-
|
|
1764
|
-
/**
|
|
1765
|
-
* Creates a UserCreated message from a plain object. Also converts values to their respective internal types.
|
|
1766
|
-
* @param object Plain object
|
|
1767
|
-
* @returns UserCreated
|
|
1768
|
-
*/
|
|
1769
|
-
public static fromObject(object: { [k: string]: any }): com.headspace.userdomain.grpc.user.events.UserCreated;
|
|
1770
|
-
|
|
1771
|
-
/**
|
|
1772
|
-
* Creates a plain object from a UserCreated message. Also converts values to other types if specified.
|
|
1773
|
-
* @param message UserCreated
|
|
1774
|
-
* @param [options] Conversion options
|
|
1775
|
-
* @returns Plain object
|
|
1776
|
-
*/
|
|
1777
|
-
public static toObject(message: com.headspace.userdomain.grpc.user.events.UserCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1778
|
-
|
|
1779
|
-
/**
|
|
1780
|
-
* Converts this UserCreated to JSON.
|
|
1781
|
-
* @returns JSON object
|
|
1782
|
-
*/
|
|
1783
|
-
public toJSON(): { [k: string]: any };
|
|
1784
|
-
}
|
|
1785
|
-
|
|
1786
|
-
/** Properties of a UserUpdated. */
|
|
1787
|
-
interface IUserUpdated {
|
|
1788
|
-
|
|
1789
|
-
/** UserUpdated hsId */
|
|
1790
|
-
hsId?: (string|null);
|
|
1791
|
-
|
|
1792
|
-
/** UserUpdated updatedAt */
|
|
1793
|
-
updatedAt?: (number|Long|null);
|
|
1794
|
-
|
|
1795
|
-
/** UserUpdated updatedAttributes */
|
|
1796
|
-
updatedAttributes?: (com.headspace.userdomain.grpc.user.IUser|null);
|
|
1797
|
-
}
|
|
1798
|
-
|
|
1799
|
-
/** Represents a UserUpdated. */
|
|
1800
|
-
class UserUpdated implements IUserUpdated {
|
|
1801
|
-
|
|
1802
|
-
/**
|
|
1803
|
-
* Constructs a new UserUpdated.
|
|
1804
|
-
* @param [properties] Properties to set
|
|
1805
|
-
*/
|
|
1806
|
-
constructor(properties?: com.headspace.userdomain.grpc.user.events.IUserUpdated);
|
|
1807
|
-
|
|
1808
|
-
/** UserUpdated hsId. */
|
|
1809
|
-
public hsId: string;
|
|
1810
|
-
|
|
1811
|
-
/** UserUpdated updatedAt. */
|
|
1812
|
-
public updatedAt: (number|Long);
|
|
1813
|
-
|
|
1814
|
-
/** UserUpdated updatedAttributes. */
|
|
1815
|
-
public updatedAttributes?: (com.headspace.userdomain.grpc.user.IUser|null);
|
|
1816
|
-
|
|
1817
|
-
/**
|
|
1818
|
-
* Creates a new UserUpdated instance using the specified properties.
|
|
1819
|
-
* @param [properties] Properties to set
|
|
1820
|
-
* @returns UserUpdated instance
|
|
1821
|
-
*/
|
|
1822
|
-
public static create(properties?: com.headspace.userdomain.grpc.user.events.IUserUpdated): com.headspace.userdomain.grpc.user.events.UserUpdated;
|
|
1823
|
-
|
|
1824
|
-
/**
|
|
1825
|
-
* Encodes the specified UserUpdated message. Does not implicitly {@link com.headspace.userdomain.grpc.user.events.UserUpdated.verify|verify} messages.
|
|
1826
|
-
* @param message UserUpdated message or plain object to encode
|
|
1827
|
-
* @param [writer] Writer to encode to
|
|
1828
|
-
* @returns Writer
|
|
1829
|
-
*/
|
|
1830
|
-
public static encode(message: com.headspace.userdomain.grpc.user.events.IUserUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1831
|
-
|
|
1832
|
-
/**
|
|
1833
|
-
* Encodes the specified UserUpdated message, length delimited. Does not implicitly {@link com.headspace.userdomain.grpc.user.events.UserUpdated.verify|verify} messages.
|
|
1834
|
-
* @param message UserUpdated message or plain object to encode
|
|
1835
|
-
* @param [writer] Writer to encode to
|
|
1836
|
-
* @returns Writer
|
|
1837
|
-
*/
|
|
1838
|
-
public static encodeDelimited(message: com.headspace.userdomain.grpc.user.events.IUserUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1839
|
-
|
|
1840
|
-
/**
|
|
1841
|
-
* Decodes a UserUpdated message from the specified reader or buffer.
|
|
1842
|
-
* @param reader Reader or buffer to decode from
|
|
1843
|
-
* @param [length] Message length if known beforehand
|
|
1844
|
-
* @returns UserUpdated
|
|
1845
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1846
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1847
|
-
*/
|
|
1848
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): com.headspace.userdomain.grpc.user.events.UserUpdated;
|
|
1849
|
-
|
|
1850
|
-
/**
|
|
1851
|
-
* Decodes a UserUpdated message from the specified reader or buffer, length delimited.
|
|
1852
|
-
* @param reader Reader or buffer to decode from
|
|
1853
|
-
* @returns UserUpdated
|
|
1854
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1855
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1856
|
-
*/
|
|
1857
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): com.headspace.userdomain.grpc.user.events.UserUpdated;
|
|
1858
|
-
|
|
1859
|
-
/**
|
|
1860
|
-
* Verifies a UserUpdated message.
|
|
1861
|
-
* @param message Plain object to verify
|
|
1862
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
|
1863
|
-
*/
|
|
1864
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
1865
|
-
|
|
1866
|
-
/**
|
|
1867
|
-
* Creates a UserUpdated message from a plain object. Also converts values to their respective internal types.
|
|
1868
|
-
* @param object Plain object
|
|
1869
|
-
* @returns UserUpdated
|
|
1870
|
-
*/
|
|
1871
|
-
public static fromObject(object: { [k: string]: any }): com.headspace.userdomain.grpc.user.events.UserUpdated;
|
|
1872
|
-
|
|
1873
|
-
/**
|
|
1874
|
-
* Creates a plain object from a UserUpdated message. Also converts values to other types if specified.
|
|
1875
|
-
* @param message UserUpdated
|
|
1876
|
-
* @param [options] Conversion options
|
|
1877
|
-
* @returns Plain object
|
|
1878
|
-
*/
|
|
1879
|
-
public static toObject(message: com.headspace.userdomain.grpc.user.events.UserUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1880
|
-
|
|
1881
|
-
/**
|
|
1882
|
-
* Converts this UserUpdated to JSON.
|
|
1883
|
-
* @returns JSON object
|
|
1884
|
-
*/
|
|
1885
|
-
public toJSON(): { [k: string]: any };
|
|
1886
|
-
}
|
|
1887
|
-
|
|
1888
|
-
/** Properties of a UserDeleted. */
|
|
1889
|
-
interface IUserDeleted {
|
|
1890
|
-
|
|
1891
|
-
/** UserDeleted hsId */
|
|
1892
|
-
hsId?: (string|null);
|
|
1893
|
-
|
|
1894
|
-
/** UserDeleted deletedAt */
|
|
1895
|
-
deletedAt?: (number|Long|null);
|
|
1896
|
-
}
|
|
1897
|
-
|
|
1898
|
-
/** Represents a UserDeleted. */
|
|
1899
|
-
class UserDeleted implements IUserDeleted {
|
|
1900
|
-
|
|
1901
|
-
/**
|
|
1902
|
-
* Constructs a new UserDeleted.
|
|
1903
|
-
* @param [properties] Properties to set
|
|
1904
|
-
*/
|
|
1905
|
-
constructor(properties?: com.headspace.userdomain.grpc.user.events.IUserDeleted);
|
|
1906
|
-
|
|
1907
|
-
/** UserDeleted hsId. */
|
|
1908
|
-
public hsId: string;
|
|
1909
|
-
|
|
1910
|
-
/** UserDeleted deletedAt. */
|
|
1911
|
-
public deletedAt: (number|Long);
|
|
1912
|
-
|
|
1913
|
-
/**
|
|
1914
|
-
* Creates a new UserDeleted instance using the specified properties.
|
|
1915
|
-
* @param [properties] Properties to set
|
|
1916
|
-
* @returns UserDeleted instance
|
|
1917
|
-
*/
|
|
1918
|
-
public static create(properties?: com.headspace.userdomain.grpc.user.events.IUserDeleted): com.headspace.userdomain.grpc.user.events.UserDeleted;
|
|
1919
|
-
|
|
1920
|
-
/**
|
|
1921
|
-
* Encodes the specified UserDeleted message. Does not implicitly {@link com.headspace.userdomain.grpc.user.events.UserDeleted.verify|verify} messages.
|
|
1922
|
-
* @param message UserDeleted message or plain object to encode
|
|
1923
|
-
* @param [writer] Writer to encode to
|
|
1924
|
-
* @returns Writer
|
|
1925
|
-
*/
|
|
1926
|
-
public static encode(message: com.headspace.userdomain.grpc.user.events.IUserDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1927
|
-
|
|
1928
|
-
/**
|
|
1929
|
-
* Encodes the specified UserDeleted message, length delimited. Does not implicitly {@link com.headspace.userdomain.grpc.user.events.UserDeleted.verify|verify} messages.
|
|
1930
|
-
* @param message UserDeleted message or plain object to encode
|
|
1931
|
-
* @param [writer] Writer to encode to
|
|
1932
|
-
* @returns Writer
|
|
1933
|
-
*/
|
|
1934
|
-
public static encodeDelimited(message: com.headspace.userdomain.grpc.user.events.IUserDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1935
|
-
|
|
1936
|
-
/**
|
|
1937
|
-
* Decodes a UserDeleted message from the specified reader or buffer.
|
|
1938
|
-
* @param reader Reader or buffer to decode from
|
|
1939
|
-
* @param [length] Message length if known beforehand
|
|
1940
|
-
* @returns UserDeleted
|
|
1941
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1942
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1943
|
-
*/
|
|
1944
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): com.headspace.userdomain.grpc.user.events.UserDeleted;
|
|
1945
|
-
|
|
1946
|
-
/**
|
|
1947
|
-
* Decodes a UserDeleted message from the specified reader or buffer, length delimited.
|
|
1948
|
-
* @param reader Reader or buffer to decode from
|
|
1949
|
-
* @returns UserDeleted
|
|
1950
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1951
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1952
|
-
*/
|
|
1953
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): com.headspace.userdomain.grpc.user.events.UserDeleted;
|
|
1954
|
-
|
|
1955
|
-
/**
|
|
1956
|
-
* Verifies a UserDeleted message.
|
|
1957
|
-
* @param message Plain object to verify
|
|
1958
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
|
1959
|
-
*/
|
|
1960
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
1961
|
-
|
|
1962
|
-
/**
|
|
1963
|
-
* Creates a UserDeleted message from a plain object. Also converts values to their respective internal types.
|
|
1964
|
-
* @param object Plain object
|
|
1965
|
-
* @returns UserDeleted
|
|
1966
|
-
*/
|
|
1967
|
-
public static fromObject(object: { [k: string]: any }): com.headspace.userdomain.grpc.user.events.UserDeleted;
|
|
1968
|
-
|
|
1969
|
-
/**
|
|
1970
|
-
* Creates a plain object from a UserDeleted message. Also converts values to other types if specified.
|
|
1971
|
-
* @param message UserDeleted
|
|
1972
|
-
* @param [options] Conversion options
|
|
1973
|
-
* @returns Plain object
|
|
1974
|
-
*/
|
|
1975
|
-
public static toObject(message: com.headspace.userdomain.grpc.user.events.UserDeleted, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1976
|
-
|
|
1977
|
-
/**
|
|
1978
|
-
* Converts this UserDeleted to JSON.
|
|
1979
|
-
* @returns JSON object
|
|
1980
|
-
*/
|
|
1981
|
-
public toJSON(): { [k: string]: any };
|
|
1982
|
-
}
|
|
1983
|
-
}
|
|
1984
|
-
}
|
|
1985
|
-
}
|
|
1986
|
-
}
|
|
1275
|
+
/** User signupPlatform */
|
|
1276
|
+
signupPlatform?: (userdomain.Platform|null);
|
|
1987
1277
|
}
|
|
1278
|
+
|
|
1279
|
+
/** Represents a User. */
|
|
1280
|
+
class User implements IUser {
|
|
1281
|
+
|
|
1282
|
+
/**
|
|
1283
|
+
* Constructs a new User.
|
|
1284
|
+
* @param [properties] Properties to set
|
|
1285
|
+
*/
|
|
1286
|
+
constructor(properties?: userdomain.IUser);
|
|
1287
|
+
|
|
1288
|
+
/** User hsId. */
|
|
1289
|
+
public hsId: string;
|
|
1290
|
+
|
|
1291
|
+
/** User auth0Id. */
|
|
1292
|
+
public auth0Id: string;
|
|
1293
|
+
|
|
1294
|
+
/** User firstName. */
|
|
1295
|
+
public firstName: string;
|
|
1296
|
+
|
|
1297
|
+
/** User lastName. */
|
|
1298
|
+
public lastName: string;
|
|
1299
|
+
|
|
1300
|
+
/** User email. */
|
|
1301
|
+
public email: string;
|
|
1302
|
+
|
|
1303
|
+
/** User countryCode. */
|
|
1304
|
+
public countryCode: string;
|
|
1305
|
+
|
|
1306
|
+
/** User stateCode. */
|
|
1307
|
+
public stateCode: string;
|
|
1308
|
+
|
|
1309
|
+
/** User signupPlatform. */
|
|
1310
|
+
public signupPlatform: userdomain.Platform;
|
|
1311
|
+
|
|
1312
|
+
/**
|
|
1313
|
+
* Creates a new User instance using the specified properties.
|
|
1314
|
+
* @param [properties] Properties to set
|
|
1315
|
+
* @returns User instance
|
|
1316
|
+
*/
|
|
1317
|
+
public static create(properties?: userdomain.IUser): userdomain.User;
|
|
1318
|
+
|
|
1319
|
+
/**
|
|
1320
|
+
* Encodes the specified User message. Does not implicitly {@link userdomain.User.verify|verify} messages.
|
|
1321
|
+
* @param message User message or plain object to encode
|
|
1322
|
+
* @param [writer] Writer to encode to
|
|
1323
|
+
* @returns Writer
|
|
1324
|
+
*/
|
|
1325
|
+
public static encode(message: userdomain.IUser, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1326
|
+
|
|
1327
|
+
/**
|
|
1328
|
+
* Encodes the specified User message, length delimited. Does not implicitly {@link userdomain.User.verify|verify} messages.
|
|
1329
|
+
* @param message User message or plain object to encode
|
|
1330
|
+
* @param [writer] Writer to encode to
|
|
1331
|
+
* @returns Writer
|
|
1332
|
+
*/
|
|
1333
|
+
public static encodeDelimited(message: userdomain.IUser, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1334
|
+
|
|
1335
|
+
/**
|
|
1336
|
+
* Decodes a User message from the specified reader or buffer.
|
|
1337
|
+
* @param reader Reader or buffer to decode from
|
|
1338
|
+
* @param [length] Message length if known beforehand
|
|
1339
|
+
* @returns User
|
|
1340
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1341
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1342
|
+
*/
|
|
1343
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): userdomain.User;
|
|
1344
|
+
|
|
1345
|
+
/**
|
|
1346
|
+
* Decodes a User message from the specified reader or buffer, length delimited.
|
|
1347
|
+
* @param reader Reader or buffer to decode from
|
|
1348
|
+
* @returns User
|
|
1349
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1350
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1351
|
+
*/
|
|
1352
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): userdomain.User;
|
|
1353
|
+
|
|
1354
|
+
/**
|
|
1355
|
+
* Verifies a User message.
|
|
1356
|
+
* @param message Plain object to verify
|
|
1357
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
1358
|
+
*/
|
|
1359
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
1360
|
+
|
|
1361
|
+
/**
|
|
1362
|
+
* Creates a User message from a plain object. Also converts values to their respective internal types.
|
|
1363
|
+
* @param object Plain object
|
|
1364
|
+
* @returns User
|
|
1365
|
+
*/
|
|
1366
|
+
public static fromObject(object: { [k: string]: any }): userdomain.User;
|
|
1367
|
+
|
|
1368
|
+
/**
|
|
1369
|
+
* Creates a plain object from a User message. Also converts values to other types if specified.
|
|
1370
|
+
* @param message User
|
|
1371
|
+
* @param [options] Conversion options
|
|
1372
|
+
* @returns Plain object
|
|
1373
|
+
*/
|
|
1374
|
+
public static toObject(message: userdomain.User, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1375
|
+
|
|
1376
|
+
/**
|
|
1377
|
+
* Converts this User to JSON.
|
|
1378
|
+
* @returns JSON object
|
|
1379
|
+
*/
|
|
1380
|
+
public toJSON(): { [k: string]: any };
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
/** Platform enum. */
|
|
1384
|
+
enum Platform {
|
|
1385
|
+
UNKNOWN_PLATFORM = 0,
|
|
1386
|
+
DESKTOP = 1,
|
|
1387
|
+
IOS = 2,
|
|
1388
|
+
ANDROID = 3,
|
|
1389
|
+
ALEXA = 4,
|
|
1390
|
+
GOOGLE_ASSISTANT = 5
|
|
1391
|
+
}
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1394
|
+
/** Properties of a UserRoleUpdated. */
|
|
1395
|
+
export interface IUserRoleUpdated {
|
|
1396
|
+
|
|
1397
|
+
/** UserRoleUpdated hsId */
|
|
1398
|
+
hsId?: (string|null);
|
|
1399
|
+
|
|
1400
|
+
/** UserRoleUpdated userRole */
|
|
1401
|
+
userRole?: (userdomain.IUserRole|null);
|
|
1402
|
+
|
|
1403
|
+
/** UserRoleUpdated updatedAt */
|
|
1404
|
+
updatedAt?: (number|Long|null);
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1407
|
+
/** Represents a UserRoleUpdated. */
|
|
1408
|
+
export class UserRoleUpdated implements IUserRoleUpdated {
|
|
1409
|
+
|
|
1410
|
+
/**
|
|
1411
|
+
* Constructs a new UserRoleUpdated.
|
|
1412
|
+
* @param [properties] Properties to set
|
|
1413
|
+
*/
|
|
1414
|
+
constructor(properties?: IUserRoleUpdated);
|
|
1415
|
+
|
|
1416
|
+
/** UserRoleUpdated hsId. */
|
|
1417
|
+
public hsId: string;
|
|
1418
|
+
|
|
1419
|
+
/** UserRoleUpdated userRole. */
|
|
1420
|
+
public userRole?: (userdomain.IUserRole|null);
|
|
1421
|
+
|
|
1422
|
+
/** UserRoleUpdated updatedAt. */
|
|
1423
|
+
public updatedAt: (number|Long);
|
|
1424
|
+
|
|
1425
|
+
/**
|
|
1426
|
+
* Creates a new UserRoleUpdated instance using the specified properties.
|
|
1427
|
+
* @param [properties] Properties to set
|
|
1428
|
+
* @returns UserRoleUpdated instance
|
|
1429
|
+
*/
|
|
1430
|
+
public static create(properties?: IUserRoleUpdated): UserRoleUpdated;
|
|
1431
|
+
|
|
1432
|
+
/**
|
|
1433
|
+
* Encodes the specified UserRoleUpdated message. Does not implicitly {@link UserRoleUpdated.verify|verify} messages.
|
|
1434
|
+
* @param message UserRoleUpdated message or plain object to encode
|
|
1435
|
+
* @param [writer] Writer to encode to
|
|
1436
|
+
* @returns Writer
|
|
1437
|
+
*/
|
|
1438
|
+
public static encode(message: IUserRoleUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1439
|
+
|
|
1440
|
+
/**
|
|
1441
|
+
* Encodes the specified UserRoleUpdated message, length delimited. Does not implicitly {@link UserRoleUpdated.verify|verify} messages.
|
|
1442
|
+
* @param message UserRoleUpdated message or plain object to encode
|
|
1443
|
+
* @param [writer] Writer to encode to
|
|
1444
|
+
* @returns Writer
|
|
1445
|
+
*/
|
|
1446
|
+
public static encodeDelimited(message: IUserRoleUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1447
|
+
|
|
1448
|
+
/**
|
|
1449
|
+
* Decodes a UserRoleUpdated message from the specified reader or buffer.
|
|
1450
|
+
* @param reader Reader or buffer to decode from
|
|
1451
|
+
* @param [length] Message length if known beforehand
|
|
1452
|
+
* @returns UserRoleUpdated
|
|
1453
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1454
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1455
|
+
*/
|
|
1456
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserRoleUpdated;
|
|
1457
|
+
|
|
1458
|
+
/**
|
|
1459
|
+
* Decodes a UserRoleUpdated message from the specified reader or buffer, length delimited.
|
|
1460
|
+
* @param reader Reader or buffer to decode from
|
|
1461
|
+
* @returns UserRoleUpdated
|
|
1462
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1463
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1464
|
+
*/
|
|
1465
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserRoleUpdated;
|
|
1466
|
+
|
|
1467
|
+
/**
|
|
1468
|
+
* Verifies a UserRoleUpdated message.
|
|
1469
|
+
* @param message Plain object to verify
|
|
1470
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
1471
|
+
*/
|
|
1472
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
1473
|
+
|
|
1474
|
+
/**
|
|
1475
|
+
* Creates a UserRoleUpdated message from a plain object. Also converts values to their respective internal types.
|
|
1476
|
+
* @param object Plain object
|
|
1477
|
+
* @returns UserRoleUpdated
|
|
1478
|
+
*/
|
|
1479
|
+
public static fromObject(object: { [k: string]: any }): UserRoleUpdated;
|
|
1480
|
+
|
|
1481
|
+
/**
|
|
1482
|
+
* Creates a plain object from a UserRoleUpdated message. Also converts values to other types if specified.
|
|
1483
|
+
* @param message UserRoleUpdated
|
|
1484
|
+
* @param [options] Conversion options
|
|
1485
|
+
* @returns Plain object
|
|
1486
|
+
*/
|
|
1487
|
+
public static toObject(message: UserRoleUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1488
|
+
|
|
1489
|
+
/**
|
|
1490
|
+
* Converts this UserRoleUpdated to JSON.
|
|
1491
|
+
* @returns JSON object
|
|
1492
|
+
*/
|
|
1493
|
+
public toJSON(): { [k: string]: any };
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
/** Properties of a UserCreated. */
|
|
1497
|
+
export interface IUserCreated {
|
|
1498
|
+
|
|
1499
|
+
/** UserCreated user */
|
|
1500
|
+
user?: (userdomain.IUser|null);
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
/** Represents a UserCreated. */
|
|
1504
|
+
export class UserCreated implements IUserCreated {
|
|
1505
|
+
|
|
1506
|
+
/**
|
|
1507
|
+
* Constructs a new UserCreated.
|
|
1508
|
+
* @param [properties] Properties to set
|
|
1509
|
+
*/
|
|
1510
|
+
constructor(properties?: IUserCreated);
|
|
1511
|
+
|
|
1512
|
+
/** UserCreated user. */
|
|
1513
|
+
public user?: (userdomain.IUser|null);
|
|
1514
|
+
|
|
1515
|
+
/**
|
|
1516
|
+
* Creates a new UserCreated instance using the specified properties.
|
|
1517
|
+
* @param [properties] Properties to set
|
|
1518
|
+
* @returns UserCreated instance
|
|
1519
|
+
*/
|
|
1520
|
+
public static create(properties?: IUserCreated): UserCreated;
|
|
1521
|
+
|
|
1522
|
+
/**
|
|
1523
|
+
* Encodes the specified UserCreated message. Does not implicitly {@link UserCreated.verify|verify} messages.
|
|
1524
|
+
* @param message UserCreated message or plain object to encode
|
|
1525
|
+
* @param [writer] Writer to encode to
|
|
1526
|
+
* @returns Writer
|
|
1527
|
+
*/
|
|
1528
|
+
public static encode(message: IUserCreated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1529
|
+
|
|
1530
|
+
/**
|
|
1531
|
+
* Encodes the specified UserCreated message, length delimited. Does not implicitly {@link UserCreated.verify|verify} messages.
|
|
1532
|
+
* @param message UserCreated message or plain object to encode
|
|
1533
|
+
* @param [writer] Writer to encode to
|
|
1534
|
+
* @returns Writer
|
|
1535
|
+
*/
|
|
1536
|
+
public static encodeDelimited(message: IUserCreated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1537
|
+
|
|
1538
|
+
/**
|
|
1539
|
+
* Decodes a UserCreated message from the specified reader or buffer.
|
|
1540
|
+
* @param reader Reader or buffer to decode from
|
|
1541
|
+
* @param [length] Message length if known beforehand
|
|
1542
|
+
* @returns UserCreated
|
|
1543
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1544
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1545
|
+
*/
|
|
1546
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserCreated;
|
|
1547
|
+
|
|
1548
|
+
/**
|
|
1549
|
+
* Decodes a UserCreated message from the specified reader or buffer, length delimited.
|
|
1550
|
+
* @param reader Reader or buffer to decode from
|
|
1551
|
+
* @returns UserCreated
|
|
1552
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1553
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1554
|
+
*/
|
|
1555
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserCreated;
|
|
1556
|
+
|
|
1557
|
+
/**
|
|
1558
|
+
* Verifies a UserCreated message.
|
|
1559
|
+
* @param message Plain object to verify
|
|
1560
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
1561
|
+
*/
|
|
1562
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
1563
|
+
|
|
1564
|
+
/**
|
|
1565
|
+
* Creates a UserCreated message from a plain object. Also converts values to their respective internal types.
|
|
1566
|
+
* @param object Plain object
|
|
1567
|
+
* @returns UserCreated
|
|
1568
|
+
*/
|
|
1569
|
+
public static fromObject(object: { [k: string]: any }): UserCreated;
|
|
1570
|
+
|
|
1571
|
+
/**
|
|
1572
|
+
* Creates a plain object from a UserCreated message. Also converts values to other types if specified.
|
|
1573
|
+
* @param message UserCreated
|
|
1574
|
+
* @param [options] Conversion options
|
|
1575
|
+
* @returns Plain object
|
|
1576
|
+
*/
|
|
1577
|
+
public static toObject(message: UserCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1578
|
+
|
|
1579
|
+
/**
|
|
1580
|
+
* Converts this UserCreated to JSON.
|
|
1581
|
+
* @returns JSON object
|
|
1582
|
+
*/
|
|
1583
|
+
public toJSON(): { [k: string]: any };
|
|
1584
|
+
}
|
|
1585
|
+
|
|
1586
|
+
/** Properties of a UserUpdated. */
|
|
1587
|
+
export interface IUserUpdated {
|
|
1588
|
+
|
|
1589
|
+
/** UserUpdated hsId */
|
|
1590
|
+
hsId?: (string|null);
|
|
1591
|
+
|
|
1592
|
+
/** UserUpdated updatedAt */
|
|
1593
|
+
updatedAt?: (number|Long|null);
|
|
1594
|
+
|
|
1595
|
+
/** UserUpdated updatedAttributes */
|
|
1596
|
+
updatedAttributes?: (userdomain.IUser|null);
|
|
1597
|
+
}
|
|
1598
|
+
|
|
1599
|
+
/** Represents a UserUpdated. */
|
|
1600
|
+
export class UserUpdated implements IUserUpdated {
|
|
1601
|
+
|
|
1602
|
+
/**
|
|
1603
|
+
* Constructs a new UserUpdated.
|
|
1604
|
+
* @param [properties] Properties to set
|
|
1605
|
+
*/
|
|
1606
|
+
constructor(properties?: IUserUpdated);
|
|
1607
|
+
|
|
1608
|
+
/** UserUpdated hsId. */
|
|
1609
|
+
public hsId: string;
|
|
1610
|
+
|
|
1611
|
+
/** UserUpdated updatedAt. */
|
|
1612
|
+
public updatedAt: (number|Long);
|
|
1613
|
+
|
|
1614
|
+
/** UserUpdated updatedAttributes. */
|
|
1615
|
+
public updatedAttributes?: (userdomain.IUser|null);
|
|
1616
|
+
|
|
1617
|
+
/**
|
|
1618
|
+
* Creates a new UserUpdated instance using the specified properties.
|
|
1619
|
+
* @param [properties] Properties to set
|
|
1620
|
+
* @returns UserUpdated instance
|
|
1621
|
+
*/
|
|
1622
|
+
public static create(properties?: IUserUpdated): UserUpdated;
|
|
1623
|
+
|
|
1624
|
+
/**
|
|
1625
|
+
* Encodes the specified UserUpdated message. Does not implicitly {@link UserUpdated.verify|verify} messages.
|
|
1626
|
+
* @param message UserUpdated message or plain object to encode
|
|
1627
|
+
* @param [writer] Writer to encode to
|
|
1628
|
+
* @returns Writer
|
|
1629
|
+
*/
|
|
1630
|
+
public static encode(message: IUserUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1631
|
+
|
|
1632
|
+
/**
|
|
1633
|
+
* Encodes the specified UserUpdated message, length delimited. Does not implicitly {@link UserUpdated.verify|verify} messages.
|
|
1634
|
+
* @param message UserUpdated message or plain object to encode
|
|
1635
|
+
* @param [writer] Writer to encode to
|
|
1636
|
+
* @returns Writer
|
|
1637
|
+
*/
|
|
1638
|
+
public static encodeDelimited(message: IUserUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1639
|
+
|
|
1640
|
+
/**
|
|
1641
|
+
* Decodes a UserUpdated message from the specified reader or buffer.
|
|
1642
|
+
* @param reader Reader or buffer to decode from
|
|
1643
|
+
* @param [length] Message length if known beforehand
|
|
1644
|
+
* @returns UserUpdated
|
|
1645
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1646
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1647
|
+
*/
|
|
1648
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserUpdated;
|
|
1649
|
+
|
|
1650
|
+
/**
|
|
1651
|
+
* Decodes a UserUpdated message from the specified reader or buffer, length delimited.
|
|
1652
|
+
* @param reader Reader or buffer to decode from
|
|
1653
|
+
* @returns UserUpdated
|
|
1654
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1655
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1656
|
+
*/
|
|
1657
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserUpdated;
|
|
1658
|
+
|
|
1659
|
+
/**
|
|
1660
|
+
* Verifies a UserUpdated message.
|
|
1661
|
+
* @param message Plain object to verify
|
|
1662
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
1663
|
+
*/
|
|
1664
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
1665
|
+
|
|
1666
|
+
/**
|
|
1667
|
+
* Creates a UserUpdated message from a plain object. Also converts values to their respective internal types.
|
|
1668
|
+
* @param object Plain object
|
|
1669
|
+
* @returns UserUpdated
|
|
1670
|
+
*/
|
|
1671
|
+
public static fromObject(object: { [k: string]: any }): UserUpdated;
|
|
1672
|
+
|
|
1673
|
+
/**
|
|
1674
|
+
* Creates a plain object from a UserUpdated message. Also converts values to other types if specified.
|
|
1675
|
+
* @param message UserUpdated
|
|
1676
|
+
* @param [options] Conversion options
|
|
1677
|
+
* @returns Plain object
|
|
1678
|
+
*/
|
|
1679
|
+
public static toObject(message: UserUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1680
|
+
|
|
1681
|
+
/**
|
|
1682
|
+
* Converts this UserUpdated to JSON.
|
|
1683
|
+
* @returns JSON object
|
|
1684
|
+
*/
|
|
1685
|
+
public toJSON(): { [k: string]: any };
|
|
1686
|
+
}
|
|
1687
|
+
|
|
1688
|
+
/** Properties of a UserDeleted. */
|
|
1689
|
+
export interface IUserDeleted {
|
|
1690
|
+
|
|
1691
|
+
/** UserDeleted hsId */
|
|
1692
|
+
hsId?: (string|null);
|
|
1693
|
+
|
|
1694
|
+
/** UserDeleted deletedAt */
|
|
1695
|
+
deletedAt?: (number|Long|null);
|
|
1696
|
+
}
|
|
1697
|
+
|
|
1698
|
+
/** Represents a UserDeleted. */
|
|
1699
|
+
export class UserDeleted implements IUserDeleted {
|
|
1700
|
+
|
|
1701
|
+
/**
|
|
1702
|
+
* Constructs a new UserDeleted.
|
|
1703
|
+
* @param [properties] Properties to set
|
|
1704
|
+
*/
|
|
1705
|
+
constructor(properties?: IUserDeleted);
|
|
1706
|
+
|
|
1707
|
+
/** UserDeleted hsId. */
|
|
1708
|
+
public hsId: string;
|
|
1709
|
+
|
|
1710
|
+
/** UserDeleted deletedAt. */
|
|
1711
|
+
public deletedAt: (number|Long);
|
|
1712
|
+
|
|
1713
|
+
/**
|
|
1714
|
+
* Creates a new UserDeleted instance using the specified properties.
|
|
1715
|
+
* @param [properties] Properties to set
|
|
1716
|
+
* @returns UserDeleted instance
|
|
1717
|
+
*/
|
|
1718
|
+
public static create(properties?: IUserDeleted): UserDeleted;
|
|
1719
|
+
|
|
1720
|
+
/**
|
|
1721
|
+
* Encodes the specified UserDeleted message. Does not implicitly {@link UserDeleted.verify|verify} messages.
|
|
1722
|
+
* @param message UserDeleted message or plain object to encode
|
|
1723
|
+
* @param [writer] Writer to encode to
|
|
1724
|
+
* @returns Writer
|
|
1725
|
+
*/
|
|
1726
|
+
public static encode(message: IUserDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1727
|
+
|
|
1728
|
+
/**
|
|
1729
|
+
* Encodes the specified UserDeleted message, length delimited. Does not implicitly {@link UserDeleted.verify|verify} messages.
|
|
1730
|
+
* @param message UserDeleted message or plain object to encode
|
|
1731
|
+
* @param [writer] Writer to encode to
|
|
1732
|
+
* @returns Writer
|
|
1733
|
+
*/
|
|
1734
|
+
public static encodeDelimited(message: IUserDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1735
|
+
|
|
1736
|
+
/**
|
|
1737
|
+
* Decodes a UserDeleted message from the specified reader or buffer.
|
|
1738
|
+
* @param reader Reader or buffer to decode from
|
|
1739
|
+
* @param [length] Message length if known beforehand
|
|
1740
|
+
* @returns UserDeleted
|
|
1741
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1742
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1743
|
+
*/
|
|
1744
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserDeleted;
|
|
1745
|
+
|
|
1746
|
+
/**
|
|
1747
|
+
* Decodes a UserDeleted message from the specified reader or buffer, length delimited.
|
|
1748
|
+
* @param reader Reader or buffer to decode from
|
|
1749
|
+
* @returns UserDeleted
|
|
1750
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1751
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1752
|
+
*/
|
|
1753
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserDeleted;
|
|
1754
|
+
|
|
1755
|
+
/**
|
|
1756
|
+
* Verifies a UserDeleted message.
|
|
1757
|
+
* @param message Plain object to verify
|
|
1758
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
1759
|
+
*/
|
|
1760
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
1761
|
+
|
|
1762
|
+
/**
|
|
1763
|
+
* Creates a UserDeleted message from a plain object. Also converts values to their respective internal types.
|
|
1764
|
+
* @param object Plain object
|
|
1765
|
+
* @returns UserDeleted
|
|
1766
|
+
*/
|
|
1767
|
+
public static fromObject(object: { [k: string]: any }): UserDeleted;
|
|
1768
|
+
|
|
1769
|
+
/**
|
|
1770
|
+
* Creates a plain object from a UserDeleted message. Also converts values to other types if specified.
|
|
1771
|
+
* @param message UserDeleted
|
|
1772
|
+
* @param [options] Conversion options
|
|
1773
|
+
* @returns Plain object
|
|
1774
|
+
*/
|
|
1775
|
+
public static toObject(message: UserDeleted, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1776
|
+
|
|
1777
|
+
/**
|
|
1778
|
+
* Converts this UserDeleted to JSON.
|
|
1779
|
+
* @returns JSON object
|
|
1780
|
+
*/
|
|
1781
|
+
public toJSON(): { [k: string]: any };
|
|
1988
1782
|
}
|
|
1989
1783
|
|
|
1990
1784
|
/** Properties of a UserPasswordResetCreated. */
|