@sellout/models 0.0.51 → 0.0.53

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellout/models",
3
- "version": "0.0.51",
3
+ "version": "0.0.53",
4
4
  "description": "Sellout.io models",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -16,8 +16,8 @@
16
16
  "author": "samheutmaker@gmail.com",
17
17
  "license": "MIT",
18
18
  "dependencies": {
19
- "@sellout/service": "^0.0.51",
20
- "@sellout/utils": "^0.0.51",
19
+ "@sellout/service": "^0.0.53",
20
+ "@sellout/utils": "^0.0.53",
21
21
  "@types/shortid": "0.0.29",
22
22
  "graphql": "^14.6.0",
23
23
  "graphql-tag": "^2.10.3",
@@ -29,5 +29,5 @@
29
29
  "protobufjs": "~6.8.8",
30
30
  "typescript": "^3.8.3"
31
31
  },
32
- "gitHead": "536c0d73b584f85b6c493fa529f9a55515181e5d"
32
+ "gitHead": "6d686366208dad8fc1228f43870290f6bd335694"
33
33
  }
@@ -14,6 +14,7 @@ const query = gql`
14
14
  phoneNumberWaitingForVerify
15
15
  emailWaitingForVerify
16
16
  preferredLogin
17
+ secondaryEmails
17
18
  userProfile {
18
19
  imageUrl
19
20
  }
@@ -26,4 +26,5 @@ export default interface IUser {
26
26
  preferredLogin?: LoginTypes;
27
27
  authAttempts?: number;
28
28
  authTimeOut?: number;
29
+ secondaryEmails?: string[];
29
30
  }
@@ -217,6 +217,54 @@ message FindUserByEmailResponse {
217
217
  User user = 3;
218
218
  }
219
219
 
220
+ message AddSecondaryEmailRequest {
221
+ string spanContext = 1;
222
+ string email = 2;
223
+ string userId = 3;
224
+ }
225
+
226
+ // Secondary email
227
+ message AddSecondaryEmailResponse {
228
+ StatusCode status = 1;
229
+ repeated Error errors = 2;
230
+ User user = 3;
231
+ }
232
+
233
+ message UpdateSecondaryEmailRequest {
234
+ string spanContext = 1;
235
+ string email = 2;
236
+ string userId = 3;
237
+ }
238
+
239
+ message UpdateSecondaryEmailResponse {
240
+ StatusCode status = 1;
241
+ repeated Error errors = 2;
242
+ User user = 3;
243
+ }
244
+
245
+ message DeleteSecondaryEmailRequest {
246
+ string spanContext = 1;
247
+ string email = 2;
248
+ string userId = 3;
249
+ }
250
+
251
+ message DeleteSecondaryEmailResponse {
252
+ StatusCode status = 1;
253
+ repeated Error errors = 2;
254
+ User user = 3;
255
+ }
256
+
257
+ message MakeSecondaryEmailPrimaryRequest {
258
+ string spanContext = 1;
259
+ string email = 2;
260
+ string userId = 3;
261
+ }
262
+
263
+ message MakeSecondaryEmailPrimaryResponse {
264
+ StatusCode status = 1;
265
+ repeated Error errors = 2;
266
+ User user = 3;
267
+ }
220
268
 
221
269
  message UpdateBasicUserInfoRequest {
222
270
  string spanContext = 1;
@@ -312,6 +360,11 @@ service UserService {
312
360
  rpc updateUserPreferredLogin(UpdateUserPreferredLoginRequest) returns (UpdateUserPreferredLoginResponse) {}
313
361
  rpc setUserPassword(SetUserPasswordRequest) returns (SetUserPasswordResponse) {}
314
362
  rpc resetUserPasswordInApp(ResetUserPasswordInAppRequest) returns (ResetUserPasswordInAppResponse) {}
363
+ // Secondary Email
364
+ rpc addSecondaryEmail(AddSecondaryEmailRequest) returns (AddSecondaryEmailResponse) {}
365
+ rpc updateSecondaryEmail(UpdateSecondaryEmailRequest) returns (UpdateSecondaryEmailResponse) {}
366
+ rpc deleteSecondaryEmail(DeleteSecondaryEmailRequest) returns (DeleteSecondaryEmailResponse) {}
367
+ rpc makeSecondaryEmailPrimary(MakeSecondaryEmailPrimaryRequest) returns (MakeSecondaryEmailPrimaryResponse) {}
315
368
  // Delete
316
369
  rpc deleteUnverifiedUser(DeleteUnverifiedUserRequest) returns (DeleteUnverifiedUserResponse) {}
317
370
  }