@wix/members 1.0.16 → 1.0.18
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/build/cjs/src/identity-members-v1-member.http.d.ts +66 -1
- package/build/cjs/src/identity-members-v1-member.http.js +369 -1
- package/build/cjs/src/identity-members-v1-member.http.js.map +1 -1
- package/build/cjs/src/identity-members-v1-member.public.d.ts +6 -2
- package/build/cjs/src/identity-members-v1-member.public.js +25 -1
- package/build/cjs/src/identity-members-v1-member.public.js.map +1 -1
- package/build/cjs/src/identity-members-v1-member.universal.d.ts +147 -0
- package/build/cjs/src/identity-members-v1-member.universal.js +288 -1
- package/build/cjs/src/identity-members-v1-member.universal.js.map +1 -1
- package/build/cjs/src/members-v1-member.http.js +6 -6
- package/build/cjs/src/members-v1-member.http.js.map +1 -1
- package/build/es/src/identity-members-v1-member.http.d.ts +66 -1
- package/build/es/src/identity-members-v1-member.http.js +364 -0
- package/build/es/src/identity-members-v1-member.http.js.map +1 -1
- package/build/es/src/identity-members-v1-member.public.d.ts +6 -2
- package/build/es/src/identity-members-v1-member.public.js +21 -1
- package/build/es/src/identity-members-v1-member.public.js.map +1 -1
- package/build/es/src/identity-members-v1-member.universal.d.ts +147 -0
- package/build/es/src/identity-members-v1-member.universal.js +283 -0
- package/build/es/src/identity-members-v1-member.universal.js.map +1 -1
- package/build/es/src/members-v1-member.http.js +6 -6
- package/build/es/src/members-v1-member.http.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,70 @@
|
|
|
1
1
|
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
-
import { SendSetPasswordEmailRequest, SendSetPasswordEmailResponse } from './identity-members-v1-member.types';
|
|
2
|
+
import { ApproveMemberRequest, ApproveMemberResponse, BlockMemberRequest, BlockMemberResponse, LoginRequest, LoginResponse, RegisterRequest, RegisterResponse, SendSetPasswordEmailRequest, SendSetPasswordEmailResponse } from './identity-members-v1-member.types';
|
|
3
|
+
/**
|
|
4
|
+
* Approves a pending member using an email address or approval token.
|
|
5
|
+
*
|
|
6
|
+
* <!--ONLY:VELO:function:approveByEmail
|
|
7
|
+
* The `approveByEmail()` function returns a Promise that resolves to a session token
|
|
8
|
+
* when the specified member is approved.
|
|
9
|
+
*
|
|
10
|
+
* > **Note:**
|
|
11
|
+
* > This function replaces the deprecated
|
|
12
|
+
* > `wix-users-backend.approveByEmail()`.
|
|
13
|
+
* > The deprecated function will continue to work, but it will not receive updates.
|
|
14
|
+
* > To keep any existing code compatible with future changes, see the
|
|
15
|
+
* > [migration instructions](wix-users-backend/approvebyemail#migration-instructions).
|
|
16
|
+
*
|
|
17
|
+
* A new member's status is `"PENDING"`
|
|
18
|
+
* when the site's membership policy is set to manual approval.
|
|
19
|
+
* To learn more about setting your site's membership approval policy, see
|
|
20
|
+
* [Editing Your Member Signup Settings](https://support.wix.com/en/article/editing-your-member-signup-settings-for-the-default-form).
|
|
21
|
+
* <!--END:ONLY:VELO-->
|
|
22
|
+
*
|
|
23
|
+
* <!--ONLY:VELO:function:approveByToken
|
|
24
|
+
* The `approveByToken()` function returns a Promise that resolves to a session token
|
|
25
|
+
* when the specified member is approved. Tokens must be approved within 30 hours of token creation.
|
|
26
|
+
*
|
|
27
|
+
* > **Note:**
|
|
28
|
+
* > This function replaces the deprecated
|
|
29
|
+
* > `wix-users-backend.approveByToken()`.
|
|
30
|
+
* > The deprecated function will continue to work, but it will not receive updates.
|
|
31
|
+
* > To keep any existing code compatible with future changes, see the
|
|
32
|
+
* > [migration instructions](wix-users-backend/approvebytoken#migration-instructions).
|
|
33
|
+
*
|
|
34
|
+
* A new member's status is `"PENDING"`
|
|
35
|
+
* when the site's membership policy is set to manual approval.
|
|
36
|
+
* To learn more about setting your site's membership approval policy, see
|
|
37
|
+
* [Editing Your Member Signup Settings](https://support.wix.com/en/article/editing-your-member-signup-settings-for-the-default-form).
|
|
38
|
+
*
|
|
39
|
+
* Use the `approvalToken` parameter returned from the
|
|
40
|
+
* [`register()`](wix-members-backend/authentication-obj/register)
|
|
41
|
+
* function when calling `approveByToken()`.
|
|
42
|
+
* <!--END:ONLY:VELO-->
|
|
43
|
+
*/
|
|
44
|
+
export declare function approve(payload: ApproveMemberRequest): RequestOptionsFactory<ApproveMemberResponse>;
|
|
45
|
+
/**
|
|
46
|
+
* Blocks a member from logging in to the site.
|
|
47
|
+
*
|
|
48
|
+
* <!--ONLY:VELO
|
|
49
|
+
* The `blockByEmail()` function returns a Promise that resolves
|
|
50
|
+
* when the specified member is blocked.
|
|
51
|
+
*
|
|
52
|
+
* > **Note:**
|
|
53
|
+
* > This function replaces the deprecated
|
|
54
|
+
* > `wix-users-backend.blockByEmail()`.
|
|
55
|
+
* > The deprecated function will continue to work, but it will not receive updates.
|
|
56
|
+
* > To keep any existing code compatible with future changes, see the
|
|
57
|
+
* > [migration instructions](wix-users-backend/blockbyemail#migration-instructions).
|
|
58
|
+
*
|
|
59
|
+
* To unblock the member and allow them to log in to the site, use
|
|
60
|
+
* [`approveByEmail()`](wix-members-backend/authentication-obj/approvebyemail).
|
|
61
|
+
* <!--END:ONLY:VELO-->
|
|
62
|
+
*/
|
|
63
|
+
export declare function block(payload: BlockMemberRequest): RequestOptionsFactory<BlockMemberResponse>;
|
|
64
|
+
/** Registers new site member. */
|
|
65
|
+
export declare function register(payload: RegisterRequest): RequestOptionsFactory<RegisterResponse>;
|
|
66
|
+
/** Logs a member in with an email and password. */
|
|
67
|
+
export declare function login(payload: LoginRequest): RequestOptionsFactory<LoginResponse>;
|
|
3
68
|
/**
|
|
4
69
|
* Sends a site member an email with a link to set their password.
|
|
5
70
|
*
|
|
@@ -1,8 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sendSetPasswordEmail = void 0;
|
|
3
|
+
exports.sendSetPasswordEmail = exports.login = exports.register = exports.block = exports.approve = void 0;
|
|
4
4
|
const ambassador_1 = require("@wix/metro-runtime/ambassador");
|
|
5
5
|
const metro_runtime_1 = require("@wix/metro-runtime");
|
|
6
|
+
const _approveMemberRequest = {};
|
|
7
|
+
const _approveMemberResponse = {};
|
|
8
|
+
const _blockMemberRequest = {};
|
|
9
|
+
const _blockMemberResponse = {};
|
|
10
|
+
const _customField = {
|
|
11
|
+
numValue: 'DOUBLE',
|
|
12
|
+
dateValue: 'google.protobuf.Timestamp',
|
|
13
|
+
};
|
|
14
|
+
const _image = { urlExpirationDate: 'google.protobuf.Timestamp' };
|
|
15
|
+
const _loginRequest = {};
|
|
16
|
+
const _loginResponse = { member: '_member' };
|
|
17
|
+
const _member = {
|
|
18
|
+
creationDate: 'google.protobuf.Timestamp',
|
|
19
|
+
lastUpdateDate: 'google.protobuf.Timestamp',
|
|
20
|
+
lastLoginDate: 'google.protobuf.Timestamp',
|
|
21
|
+
customFields: '_customField',
|
|
22
|
+
picture: '_image',
|
|
23
|
+
};
|
|
24
|
+
const _memberContactInfo = { customFields: '_customField' };
|
|
25
|
+
const _registerRequest = { contactInfo: '_memberContactInfo' };
|
|
26
|
+
const _registerResponse = { member: '_member' };
|
|
6
27
|
const _sendSetPasswordEmailRequest = {};
|
|
7
28
|
const _sendSetPasswordEmailResponse = {};
|
|
8
29
|
function resolveWixMembersApiV1AuthServiceUrl(opts) {
|
|
@@ -188,6 +209,353 @@ function resolveWixMembersApiV1AuthServiceUrl(opts) {
|
|
|
188
209
|
};
|
|
189
210
|
return (0, metro_runtime_1.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
190
211
|
}
|
|
212
|
+
function resolveWixMembersApiV1MembersServiceUrl(opts) {
|
|
213
|
+
const domainToMappings = {
|
|
214
|
+
'users._base_domain_': [
|
|
215
|
+
{
|
|
216
|
+
srcPath: '/wix-sm',
|
|
217
|
+
destPath: '',
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
srcPath: '/_api/wix-sm-webapp',
|
|
221
|
+
destPath: '/api',
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
srcPath: '/google1474e9a8a98de860.html',
|
|
225
|
+
destPath: '/view/google/google1474e9a8a98de860.html',
|
|
226
|
+
},
|
|
227
|
+
],
|
|
228
|
+
'sslusers._base_domain_': [
|
|
229
|
+
{
|
|
230
|
+
srcPath: '/wix-sm',
|
|
231
|
+
destPath: '',
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
srcPath: '/_api/wix-sm-webapp',
|
|
235
|
+
destPath: '/api',
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
srcPath: '/google1474e9a8a98de860.html',
|
|
239
|
+
destPath: '/view/google/google1474e9a8a98de860.html',
|
|
240
|
+
},
|
|
241
|
+
],
|
|
242
|
+
'api._api_base_domain_': [
|
|
243
|
+
{
|
|
244
|
+
srcPath: '/wix-sm',
|
|
245
|
+
destPath: '',
|
|
246
|
+
},
|
|
247
|
+
],
|
|
248
|
+
_: [
|
|
249
|
+
{
|
|
250
|
+
srcPath: '/_api/wix-sm',
|
|
251
|
+
destPath: '/api/tokens',
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
srcPath: '/api/wix-sm/v1',
|
|
255
|
+
destPath: '/api/v1',
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
srcPath: '/_api/wix-sm-webapp',
|
|
259
|
+
destPath: '/api',
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
srcPath: '/_api/wix-sm-webapp/members/v1/auth',
|
|
263
|
+
destPath: '/v1/auth',
|
|
264
|
+
},
|
|
265
|
+
],
|
|
266
|
+
'www._base_domain_': [
|
|
267
|
+
{
|
|
268
|
+
srcPath: '/_api/wix-sm',
|
|
269
|
+
destPath: '/api/tokens',
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
srcPath: '/_api/wix-sm/v1',
|
|
273
|
+
destPath: '/api/v1',
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
srcPath: '/_api/wix-sm-webapp',
|
|
277
|
+
destPath: '/api',
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
srcPath: '/corvid/api/wix-sm/v1',
|
|
281
|
+
destPath: '/api/v1',
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
srcPath: '/blacklivesmatter/api/wix-sm/v1',
|
|
285
|
+
destPath: '/api/v1',
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
srcPath: '/api/wix-sm',
|
|
289
|
+
destPath: '/api',
|
|
290
|
+
},
|
|
291
|
+
],
|
|
292
|
+
'editor._base_domain_': [
|
|
293
|
+
{
|
|
294
|
+
srcPath: '/_api/wix-sm-webapp',
|
|
295
|
+
destPath: '/api',
|
|
296
|
+
},
|
|
297
|
+
],
|
|
298
|
+
'blocks._base_domain_': [
|
|
299
|
+
{
|
|
300
|
+
srcPath: '/_api/wix-sm-webapp',
|
|
301
|
+
destPath: '/api',
|
|
302
|
+
},
|
|
303
|
+
],
|
|
304
|
+
'create.editorx': [
|
|
305
|
+
{
|
|
306
|
+
srcPath: '/_api/wix-sm-webapp',
|
|
307
|
+
destPath: '/api',
|
|
308
|
+
},
|
|
309
|
+
],
|
|
310
|
+
'*.dev.wix-code.com': [
|
|
311
|
+
{
|
|
312
|
+
srcPath: '/_api/wix-sm-webapp',
|
|
313
|
+
destPath: '/api',
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
srcPath: '/api/wix-sm/v1',
|
|
317
|
+
destPath: '/api/v1',
|
|
318
|
+
},
|
|
319
|
+
],
|
|
320
|
+
'*.pub.wix-code.com': [
|
|
321
|
+
{
|
|
322
|
+
srcPath: '/_api/wix-sm-webapp',
|
|
323
|
+
destPath: '/api',
|
|
324
|
+
},
|
|
325
|
+
],
|
|
326
|
+
'bo._base_domain_': [
|
|
327
|
+
{
|
|
328
|
+
srcPath: '/_api/wix-sm-webapp',
|
|
329
|
+
destPath: '/api',
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
srcPath: '/wow/bulx/api/wix-sm/v1',
|
|
333
|
+
destPath: '/api/v1',
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
srcPath: '/wow/data-hub/api/wix-sm/v1',
|
|
337
|
+
destPath: '/api/v1',
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
srcPath: '/wow/[a-z0-9-_]+/api/wix-sm/v1',
|
|
341
|
+
destPath: '/api/v1',
|
|
342
|
+
},
|
|
343
|
+
],
|
|
344
|
+
'dev._base_domain_': [
|
|
345
|
+
{
|
|
346
|
+
srcPath: '/_api/wix-sm-webapp',
|
|
347
|
+
destPath: '/api',
|
|
348
|
+
},
|
|
349
|
+
],
|
|
350
|
+
'groups.wixapps.net': [
|
|
351
|
+
{
|
|
352
|
+
srcPath: '/_api/wix-sm-webapp',
|
|
353
|
+
destPath: '/api',
|
|
354
|
+
},
|
|
355
|
+
],
|
|
356
|
+
'manage._base_domain_': [
|
|
357
|
+
{
|
|
358
|
+
srcPath: '/corvid/api/wix-sm/v1',
|
|
359
|
+
destPath: '/api/v1',
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
srcPath: '/_api/wix-sm',
|
|
363
|
+
destPath: '/api/tokens',
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
srcPath: '/_api/wix-sm-webapp',
|
|
367
|
+
destPath: '/api',
|
|
368
|
+
},
|
|
369
|
+
],
|
|
370
|
+
'forums._base_domain_': [
|
|
371
|
+
{
|
|
372
|
+
srcPath: '/_api/wix-sm-webapp',
|
|
373
|
+
destPath: '/api',
|
|
374
|
+
},
|
|
375
|
+
],
|
|
376
|
+
'www.wixapis.com': [
|
|
377
|
+
{
|
|
378
|
+
srcPath: '/members/v1/auth',
|
|
379
|
+
destPath: '/v1/auth',
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
srcPath: '/api',
|
|
383
|
+
destPath: '/api',
|
|
384
|
+
},
|
|
385
|
+
],
|
|
386
|
+
'editor.wixapps.net': [
|
|
387
|
+
{
|
|
388
|
+
srcPath: '/api/wix-sm/v1',
|
|
389
|
+
destPath: '/api/v1',
|
|
390
|
+
},
|
|
391
|
+
],
|
|
392
|
+
};
|
|
393
|
+
return (0, metro_runtime_1.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
394
|
+
}
|
|
395
|
+
/**
|
|
396
|
+
* Approves a pending member using an email address or approval token.
|
|
397
|
+
*
|
|
398
|
+
* <!--ONLY:VELO:function:approveByEmail
|
|
399
|
+
* The `approveByEmail()` function returns a Promise that resolves to a session token
|
|
400
|
+
* when the specified member is approved.
|
|
401
|
+
*
|
|
402
|
+
* > **Note:**
|
|
403
|
+
* > This function replaces the deprecated
|
|
404
|
+
* > `wix-users-backend.approveByEmail()`.
|
|
405
|
+
* > The deprecated function will continue to work, but it will not receive updates.
|
|
406
|
+
* > To keep any existing code compatible with future changes, see the
|
|
407
|
+
* > [migration instructions](wix-users-backend/approvebyemail#migration-instructions).
|
|
408
|
+
*
|
|
409
|
+
* A new member's status is `"PENDING"`
|
|
410
|
+
* when the site's membership policy is set to manual approval.
|
|
411
|
+
* To learn more about setting your site's membership approval policy, see
|
|
412
|
+
* [Editing Your Member Signup Settings](https://support.wix.com/en/article/editing-your-member-signup-settings-for-the-default-form).
|
|
413
|
+
* <!--END:ONLY:VELO-->
|
|
414
|
+
*
|
|
415
|
+
* <!--ONLY:VELO:function:approveByToken
|
|
416
|
+
* The `approveByToken()` function returns a Promise that resolves to a session token
|
|
417
|
+
* when the specified member is approved. Tokens must be approved within 30 hours of token creation.
|
|
418
|
+
*
|
|
419
|
+
* > **Note:**
|
|
420
|
+
* > This function replaces the deprecated
|
|
421
|
+
* > `wix-users-backend.approveByToken()`.
|
|
422
|
+
* > The deprecated function will continue to work, but it will not receive updates.
|
|
423
|
+
* > To keep any existing code compatible with future changes, see the
|
|
424
|
+
* > [migration instructions](wix-users-backend/approvebytoken#migration-instructions).
|
|
425
|
+
*
|
|
426
|
+
* A new member's status is `"PENDING"`
|
|
427
|
+
* when the site's membership policy is set to manual approval.
|
|
428
|
+
* To learn more about setting your site's membership approval policy, see
|
|
429
|
+
* [Editing Your Member Signup Settings](https://support.wix.com/en/article/editing-your-member-signup-settings-for-the-default-form).
|
|
430
|
+
*
|
|
431
|
+
* Use the `approvalToken` parameter returned from the
|
|
432
|
+
* [`register()`](wix-members-backend/authentication-obj/register)
|
|
433
|
+
* function when calling `approveByToken()`.
|
|
434
|
+
* <!--END:ONLY:VELO-->
|
|
435
|
+
*/
|
|
436
|
+
function approve(payload) {
|
|
437
|
+
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_approveMemberRequest, {});
|
|
438
|
+
const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_approveMemberResponse, {});
|
|
439
|
+
function __approve({ host }) {
|
|
440
|
+
const serializedData = toReq(payload);
|
|
441
|
+
const metadata = {
|
|
442
|
+
entityFqdn: 'wix.identity.members.v1.member',
|
|
443
|
+
method: 'POST',
|
|
444
|
+
methodFqn: 'wix.members.api.v1.MembersService.Approve',
|
|
445
|
+
url: resolveWixMembersApiV1MembersServiceUrl({
|
|
446
|
+
protoPath: '/api/v1/members/approve',
|
|
447
|
+
data: serializedData,
|
|
448
|
+
host,
|
|
449
|
+
}),
|
|
450
|
+
data: serializedData,
|
|
451
|
+
transformResponse: fromRes,
|
|
452
|
+
};
|
|
453
|
+
return metadata;
|
|
454
|
+
}
|
|
455
|
+
__approve.fromReq = fromReq;
|
|
456
|
+
return __approve;
|
|
457
|
+
}
|
|
458
|
+
exports.approve = approve;
|
|
459
|
+
/**
|
|
460
|
+
* Blocks a member from logging in to the site.
|
|
461
|
+
*
|
|
462
|
+
* <!--ONLY:VELO
|
|
463
|
+
* The `blockByEmail()` function returns a Promise that resolves
|
|
464
|
+
* when the specified member is blocked.
|
|
465
|
+
*
|
|
466
|
+
* > **Note:**
|
|
467
|
+
* > This function replaces the deprecated
|
|
468
|
+
* > `wix-users-backend.blockByEmail()`.
|
|
469
|
+
* > The deprecated function will continue to work, but it will not receive updates.
|
|
470
|
+
* > To keep any existing code compatible with future changes, see the
|
|
471
|
+
* > [migration instructions](wix-users-backend/blockbyemail#migration-instructions).
|
|
472
|
+
*
|
|
473
|
+
* To unblock the member and allow them to log in to the site, use
|
|
474
|
+
* [`approveByEmail()`](wix-members-backend/authentication-obj/approvebyemail).
|
|
475
|
+
* <!--END:ONLY:VELO-->
|
|
476
|
+
*/
|
|
477
|
+
function block(payload) {
|
|
478
|
+
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_blockMemberRequest, {});
|
|
479
|
+
const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_blockMemberResponse, {});
|
|
480
|
+
function __block({ host }) {
|
|
481
|
+
const serializedData = toReq(payload);
|
|
482
|
+
const metadata = {
|
|
483
|
+
entityFqdn: 'wix.identity.members.v1.member',
|
|
484
|
+
method: 'POST',
|
|
485
|
+
methodFqn: 'wix.members.api.v1.MembersService.Block',
|
|
486
|
+
url: resolveWixMembersApiV1MembersServiceUrl({
|
|
487
|
+
protoPath: '/api/v1/members/block',
|
|
488
|
+
data: serializedData,
|
|
489
|
+
host,
|
|
490
|
+
}),
|
|
491
|
+
data: serializedData,
|
|
492
|
+
transformResponse: fromRes,
|
|
493
|
+
};
|
|
494
|
+
return metadata;
|
|
495
|
+
}
|
|
496
|
+
__block.fromReq = fromReq;
|
|
497
|
+
return __block;
|
|
498
|
+
}
|
|
499
|
+
exports.block = block;
|
|
500
|
+
/** Registers new site member. */
|
|
501
|
+
function register(payload) {
|
|
502
|
+
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_registerRequest, {
|
|
503
|
+
_customField,
|
|
504
|
+
_memberContactInfo,
|
|
505
|
+
});
|
|
506
|
+
const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_registerResponse, {
|
|
507
|
+
_customField,
|
|
508
|
+
_image,
|
|
509
|
+
_member,
|
|
510
|
+
});
|
|
511
|
+
function __register({ host }) {
|
|
512
|
+
const serializedData = toReq(payload);
|
|
513
|
+
const metadata = {
|
|
514
|
+
entityFqdn: 'wix.identity.members.v1.member',
|
|
515
|
+
method: 'POST',
|
|
516
|
+
methodFqn: 'wix.members.api.v1.AuthService.Register',
|
|
517
|
+
url: resolveWixMembersApiV1AuthServiceUrl({
|
|
518
|
+
protoPath: '/api/v1/auth/register',
|
|
519
|
+
data: serializedData,
|
|
520
|
+
host,
|
|
521
|
+
}),
|
|
522
|
+
data: serializedData,
|
|
523
|
+
transformResponse: fromRes,
|
|
524
|
+
};
|
|
525
|
+
return metadata;
|
|
526
|
+
}
|
|
527
|
+
__register.fromReq = fromReq;
|
|
528
|
+
return __register;
|
|
529
|
+
}
|
|
530
|
+
exports.register = register;
|
|
531
|
+
/** Logs a member in with an email and password. */
|
|
532
|
+
function login(payload) {
|
|
533
|
+
const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_loginRequest, {});
|
|
534
|
+
const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_loginResponse, {
|
|
535
|
+
_customField,
|
|
536
|
+
_image,
|
|
537
|
+
_member,
|
|
538
|
+
});
|
|
539
|
+
function __login({ host }) {
|
|
540
|
+
const serializedData = toReq(payload);
|
|
541
|
+
const metadata = {
|
|
542
|
+
entityFqdn: 'wix.identity.members.v1.member',
|
|
543
|
+
method: 'POST',
|
|
544
|
+
methodFqn: 'wix.members.api.v1.AuthService.Login',
|
|
545
|
+
url: resolveWixMembersApiV1AuthServiceUrl({
|
|
546
|
+
protoPath: '/api/v1/auth/login',
|
|
547
|
+
data: serializedData,
|
|
548
|
+
host,
|
|
549
|
+
}),
|
|
550
|
+
data: serializedData,
|
|
551
|
+
transformResponse: fromRes,
|
|
552
|
+
};
|
|
553
|
+
return metadata;
|
|
554
|
+
}
|
|
555
|
+
__login.fromReq = fromReq;
|
|
556
|
+
return __login;
|
|
557
|
+
}
|
|
558
|
+
exports.login = login;
|
|
191
559
|
/**
|
|
192
560
|
* Sends a site member an email with a link to set their password.
|
|
193
561
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity-members-v1-member.http.js","sourceRoot":"","sources":["../../../src/identity-members-v1-member.http.ts"],"names":[],"mappings":";;;AAAA,8DAA2D;AAC3D,sDAAgD;
|
|
1
|
+
{"version":3,"file":"identity-members-v1-member.http.js","sourceRoot":"","sources":["../../../src/identity-members-v1-member.http.ts"],"names":[],"mappings":";;;AAAA,8DAA2D;AAC3D,sDAAgD;AAgBhD,MAAM,qBAAqB,GAAG,EAAE,CAAC;AACjC,MAAM,sBAAsB,GAAG,EAAE,CAAC;AAClC,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAC/B,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAChC,MAAM,YAAY,GAAG;IACnB,QAAQ,EAAE,QAAQ;IAClB,SAAS,EAAE,2BAA2B;CACvC,CAAC;AACF,MAAM,MAAM,GAAG,EAAE,iBAAiB,EAAE,2BAA2B,EAAE,CAAC;AAClE,MAAM,aAAa,GAAG,EAAE,CAAC;AACzB,MAAM,cAAc,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;AAC7C,MAAM,OAAO,GAAG;IACd,YAAY,EAAE,2BAA2B;IACzC,cAAc,EAAE,2BAA2B;IAC3C,aAAa,EAAE,2BAA2B;IAC1C,YAAY,EAAE,cAAc;IAC5B,OAAO,EAAE,QAAQ;CAClB,CAAC;AACF,MAAM,kBAAkB,GAAG,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC;AAC5D,MAAM,gBAAgB,GAAG,EAAE,WAAW,EAAE,oBAAoB,EAAE,CAAC;AAC/D,MAAM,iBAAiB,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;AAChD,MAAM,4BAA4B,GAAG,EAAE,CAAC;AACxC,MAAM,6BAA6B,GAAG,EAAE,CAAC;AAEzC,SAAS,oCAAoC,CAC3C,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,qBAAqB,EAAE;YACrB;gBACE,OAAO,EAAE,SAAS;gBAClB,QAA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-members-v1-member.universal';
|
|
2
|
+
import { ApproveOptions, BlockOptions, LoginOptions, RegisterOptions, SendSetPasswordEmailOptions } from './identity-members-v1-member.universal';
|
|
3
3
|
export declare const __metadata: {
|
|
4
4
|
PACKAGE_NAME: string;
|
|
5
5
|
};
|
|
6
|
+
export declare function approve(httpClient: HttpClient): (options?: ApproveOptions | undefined) => Promise<import("./identity-members-v1-member.universal").ApproveMemberResponse>;
|
|
7
|
+
export declare function block(httpClient: HttpClient): (options?: BlockOptions | undefined) => Promise<void>;
|
|
8
|
+
export declare function register(httpClient: HttpClient): (options?: RegisterOptions | undefined) => Promise<import("./identity-members-v1-member.universal").RegisterResponse>;
|
|
9
|
+
export declare function login(httpClient: HttpClient): (options?: LoginOptions | undefined) => Promise<import("./identity-members-v1-member.universal").LoginResponse>;
|
|
6
10
|
export declare function sendSetPasswordEmail(httpClient: HttpClient): (email: string, options?: SendSetPasswordEmailOptions | undefined) => Promise<import("./identity-members-v1-member.universal").SendSetPasswordEmailResponse>;
|
|
7
11
|
export { Role, SiteMemberPrivacyStatus, SiteMemberStatus, Sorting, Source, VerificationFailureReason, } from './identity-members-v1-member.universal';
|
|
8
|
-
export { Member, Address, CustomField, CustomFieldValueOneOf, Group, ListMembersRequest, ListMembersResponse, PaginationResponse, SearchRequest, Paging, SearchBy, FilterBy, SearchResponse, GetCurrentMemberRequest, GetMemberResponse, GetMemberRequest, GetUserMembershipsRequest, GetUserMembershipsResponse, UserMembership, GetMemberRoleRequest, GetMemberRoleResponse, GetMemberRolesRequest, GetMemberRolesResponse, MemberRole, BatchGetMembersRequest, BatchGetMembersResponse, GetAuthorizedPagesRequest, GetAuthorizedPagesResponse, UpdateMemberRequest, UpdateMemberResponse, ChangeLoginEmailRequest, ChangeLoginEmailResponse, QueryMembersRequest, QueryMembersResponse, DeleteMemberRequest, DeleteMemberResponse, ApproveMemberRequest, ApproveMemberRequestMemberIdentifierOneOf, ApproveMemberResponse, Session, BlockMemberRequest, BlockMemberRequestMemberIdentifierOneOf, BlockMemberResponse, MakeMemberOfflineRequest, MakeMemberOfflineResponse, RegisterRequest, MemberContactInfo, DialogData, EmailVerification, RegisterResponse, EmailVerificationRequired, EmailVerificationFailed, LoginRequest, LoginResponse, GetResetPasswordLinkRequest, GetResetPasswordLinkResponse, SendSetPasswordEmailRequest, SendSetPasswordEmailResponse, ResetPasswordRequest, ResetPasswordResponse, SocialLoginRequest, SocialLoginRequestLoginOneOf, AppleLogin, GoogleLogin, FacebookLogin, SendSetPasswordEmailOptions, } from './identity-members-v1-member.universal';
|
|
12
|
+
export { Member, Address, CustomField, CustomFieldValueOneOf, Group, ListMembersRequest, ListMembersResponse, PaginationResponse, SearchRequest, Paging, SearchBy, FilterBy, SearchResponse, GetCurrentMemberRequest, GetMemberResponse, GetMemberRequest, GetUserMembershipsRequest, GetUserMembershipsResponse, UserMembership, GetMemberRoleRequest, GetMemberRoleResponse, GetMemberRolesRequest, GetMemberRolesResponse, MemberRole, BatchGetMembersRequest, BatchGetMembersResponse, GetAuthorizedPagesRequest, GetAuthorizedPagesResponse, UpdateMemberRequest, UpdateMemberResponse, ChangeLoginEmailRequest, ChangeLoginEmailResponse, QueryMembersRequest, QueryMembersResponse, DeleteMemberRequest, DeleteMemberResponse, ApproveMemberRequest, ApproveMemberRequestMemberIdentifierOneOf, ApproveMemberResponse, Session, BlockMemberRequest, BlockMemberRequestMemberIdentifierOneOf, BlockMemberResponse, MakeMemberOfflineRequest, MakeMemberOfflineResponse, RegisterRequest, MemberContactInfo, DialogData, EmailVerification, RegisterResponse, EmailVerificationRequired, EmailVerificationFailed, LoginRequest, LoginResponse, GetResetPasswordLinkRequest, GetResetPasswordLinkResponse, SendSetPasswordEmailRequest, SendSetPasswordEmailResponse, ResetPasswordRequest, ResetPasswordResponse, SocialLoginRequest, SocialLoginRequestLoginOneOf, AppleLogin, GoogleLogin, FacebookLogin, ApproveOptions, BlockOptions, RegisterOptions, LoginOptions, SendSetPasswordEmailOptions, } from './identity-members-v1-member.universal';
|
|
@@ -1,8 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VerificationFailureReason = exports.Source = exports.Sorting = exports.SiteMemberStatus = exports.SiteMemberPrivacyStatus = exports.Role = exports.sendSetPasswordEmail = exports.__metadata = void 0;
|
|
3
|
+
exports.VerificationFailureReason = exports.Source = exports.Sorting = exports.SiteMemberStatus = exports.SiteMemberPrivacyStatus = exports.Role = exports.sendSetPasswordEmail = exports.login = exports.register = exports.block = exports.approve = exports.__metadata = void 0;
|
|
4
4
|
const identity_members_v1_member_universal_1 = require("./identity-members-v1-member.universal");
|
|
5
5
|
exports.__metadata = { PACKAGE_NAME: '@wix/members' };
|
|
6
|
+
function approve(httpClient) {
|
|
7
|
+
return (options) => (0, identity_members_v1_member_universal_1.approve)(options,
|
|
8
|
+
// @ts-ignore
|
|
9
|
+
{ httpClient });
|
|
10
|
+
}
|
|
11
|
+
exports.approve = approve;
|
|
12
|
+
function block(httpClient) {
|
|
13
|
+
return (options) => (0, identity_members_v1_member_universal_1.block)(options,
|
|
14
|
+
// @ts-ignore
|
|
15
|
+
{ httpClient });
|
|
16
|
+
}
|
|
17
|
+
exports.block = block;
|
|
18
|
+
function register(httpClient) {
|
|
19
|
+
return (options) => (0, identity_members_v1_member_universal_1.register)(options,
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
{ httpClient });
|
|
22
|
+
}
|
|
23
|
+
exports.register = register;
|
|
24
|
+
function login(httpClient) {
|
|
25
|
+
return (options) => (0, identity_members_v1_member_universal_1.login)(options,
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
{ httpClient });
|
|
28
|
+
}
|
|
29
|
+
exports.login = login;
|
|
6
30
|
function sendSetPasswordEmail(httpClient) {
|
|
7
31
|
return (email, options) => (0, identity_members_v1_member_universal_1.sendSetPasswordEmail)(email, options,
|
|
8
32
|
// @ts-ignore
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity-members-v1-member.public.js","sourceRoot":"","sources":["../../../src/identity-members-v1-member.public.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"identity-members-v1-member.public.js","sourceRoot":"","sources":["../../../src/identity-members-v1-member.public.ts"],"names":[],"mappings":";;;AACA,iGAWgD;AAEnC,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC;AAE3D,SAAgB,OAAO,CAAC,UAAsB;IAC5C,OAAO,CAAC,OAAwB,EAAE,EAAE,CAClC,IAAA,8CAAgB,EACd,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,0BAOC;AAED,SAAgB,KAAK,CAAC,UAAsB;IAC1C,OAAO,CAAC,OAAsB,EAAE,EAAE,CAChC,IAAA,4CAAc,EACZ,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,sBAOC;AAED,SAAgB,QAAQ,CAAC,UAAsB;IAC7C,OAAO,CAAC,OAAyB,EAAE,EAAE,CACnC,IAAA,+CAAiB,EACf,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,4BAOC;AAED,SAAgB,KAAK,CAAC,UAAsB;IAC1C,OAAO,CAAC,OAAsB,EAAE,EAAE,CAChC,IAAA,4CAAc,EACZ,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,sBAOC;AAED,SAAgB,oBAAoB,CAAC,UAAsB;IACzD,OAAO,CAAC,KAAa,EAAE,OAAqC,EAAE,EAAE,CAC9D,IAAA,2DAA6B,EAC3B,KAAK,EACL,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,oDAQC;AAED,+FAOgD;AAN9C,4HAAA,IAAI,OAAA;AACJ,+IAAA,uBAAuB,OAAA;AACvB,wIAAA,gBAAgB,OAAA;AAChB,+HAAA,OAAO,OAAA;AACP,8HAAA,MAAM,OAAA;AACN,iJAAA,yBAAyB,OAAA"}
|