@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/.dist/graphql/queries/profile.query.js +1 -0
- package/.dist/graphql/queries/profile.query.js.map +1 -1
- package/.dist/interfaces/ISecondaryEmail.d.ts +4 -0
- package/.dist/interfaces/ISecondaryEmail.js +3 -0
- package/.dist/interfaces/ISecondaryEmail.js.map +1 -0
- package/.dist/interfaces/IUser.d.ts +1 -0
- package/.dist/schemas/SecondaryEmail.d.ts +12 -0
- package/.dist/schemas/SecondaryEmail.js +14 -0
- package/.dist/schemas/SecondaryEmail.js.map +1 -0
- package/.dist/sellout-proto.js +2268 -0
- package/package.json +4 -4
- package/src/graphql/queries/profile.query.ts +1 -0
- package/src/interfaces/IUser.ts +1 -0
- package/src/proto/user.proto +53 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sellout/models",
|
|
3
|
-
"version": "0.0.
|
|
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.
|
|
20
|
-
"@sellout/utils": "^0.0.
|
|
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": "
|
|
32
|
+
"gitHead": "6d686366208dad8fc1228f43870290f6bd335694"
|
|
33
33
|
}
|
package/src/interfaces/IUser.ts
CHANGED
package/src/proto/user.proto
CHANGED
|
@@ -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
|
}
|