@conduitplatform/grpc-sdk 0.16.15 → 0.16.16
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/index.cjs
CHANGED
|
@@ -207,7 +207,7 @@ const UserLoginRequest = {
|
|
|
207
207
|
},
|
|
208
208
|
};
|
|
209
209
|
function createBaseUserCreateRequest() {
|
|
210
|
-
return { email: "", password: undefined, verify: false, anonymousId: undefined };
|
|
210
|
+
return { email: "", password: undefined, verify: false, anonymousId: undefined, userData: undefined };
|
|
211
211
|
}
|
|
212
212
|
const UserCreateRequest = {
|
|
213
213
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -223,6 +223,9 @@ const UserCreateRequest = {
|
|
|
223
223
|
if (message.anonymousId !== undefined) {
|
|
224
224
|
writer.uint32(34).string(message.anonymousId);
|
|
225
225
|
}
|
|
226
|
+
if (message.userData !== undefined) {
|
|
227
|
+
writer.uint32(42).string(message.userData);
|
|
228
|
+
}
|
|
226
229
|
return writer;
|
|
227
230
|
},
|
|
228
231
|
decode(input, length) {
|
|
@@ -256,6 +259,12 @@ const UserCreateRequest = {
|
|
|
256
259
|
}
|
|
257
260
|
message.anonymousId = reader.string();
|
|
258
261
|
continue;
|
|
262
|
+
case 5:
|
|
263
|
+
if (tag !== 42) {
|
|
264
|
+
break;
|
|
265
|
+
}
|
|
266
|
+
message.userData = reader.string();
|
|
267
|
+
continue;
|
|
259
268
|
}
|
|
260
269
|
if ((tag & 7) === 4 || tag === 0) {
|
|
261
270
|
break;
|
|
@@ -270,6 +279,7 @@ const UserCreateRequest = {
|
|
|
270
279
|
password: isSet$b(object.password) ? globalThis.String(object.password) : undefined,
|
|
271
280
|
verify: isSet$b(object.verify) ? globalThis.Boolean(object.verify) : false,
|
|
272
281
|
anonymousId: isSet$b(object.anonymousId) ? globalThis.String(object.anonymousId) : undefined,
|
|
282
|
+
userData: isSet$b(object.userData) ? globalThis.String(object.userData) : undefined,
|
|
273
283
|
};
|
|
274
284
|
},
|
|
275
285
|
toJSON(message) {
|
|
@@ -286,6 +296,9 @@ const UserCreateRequest = {
|
|
|
286
296
|
if (message.anonymousId !== undefined) {
|
|
287
297
|
obj.anonymousId = message.anonymousId;
|
|
288
298
|
}
|
|
299
|
+
if (message.userData !== undefined) {
|
|
300
|
+
obj.userData = message.userData;
|
|
301
|
+
}
|
|
289
302
|
return obj;
|
|
290
303
|
},
|
|
291
304
|
create(base) {
|
|
@@ -297,6 +310,7 @@ const UserCreateRequest = {
|
|
|
297
310
|
message.password = object.password ?? undefined;
|
|
298
311
|
message.verify = object.verify ?? false;
|
|
299
312
|
message.anonymousId = object.anonymousId ?? undefined;
|
|
313
|
+
message.userData = object.userData ?? undefined;
|
|
300
314
|
return message;
|
|
301
315
|
},
|
|
302
316
|
};
|
|
@@ -13689,8 +13703,14 @@ class Authentication extends ConduitModule {
|
|
|
13689
13703
|
userDelete(userId) {
|
|
13690
13704
|
return this.client.userDelete({ userId });
|
|
13691
13705
|
}
|
|
13692
|
-
userCreate(email, verify = false, password, anonymousId) {
|
|
13693
|
-
return this.client.userCreate({
|
|
13706
|
+
userCreate(email, verify = false, password, anonymousId, userData) {
|
|
13707
|
+
return this.client.userCreate({
|
|
13708
|
+
email,
|
|
13709
|
+
verify,
|
|
13710
|
+
password,
|
|
13711
|
+
anonymousId,
|
|
13712
|
+
userData: JSON.stringify(userData),
|
|
13713
|
+
});
|
|
13694
13714
|
}
|
|
13695
13715
|
userCreateByUsername(username, password, anonymousId) {
|
|
13696
13716
|
return this.client.userCreateByUsername({ username, password, anonymousId });
|