@memberstack/dom 1.9.7 → 1.9.8

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 CHANGED
@@ -10,6 +10,108 @@ declare const _default: {
10
10
  unsubscribe: () => boolean;
11
11
  };
12
12
  } & {
13
+ signupWithProvider(params?: import("./types").SignupWithProviderParams): Promise<unknown>;
14
+ loginWithProvider(params?: import("./types").SignupWithProviderParams): Promise<unknown>;
15
+ getAppAndMember(): Promise<{
16
+ data: {
17
+ app: {
18
+ id: string;
19
+ name: string;
20
+ mode: "live" | "sandbox";
21
+ plans: {
22
+ id: string;
23
+ name: string;
24
+ description: string;
25
+ status: string;
26
+ redirects: {
27
+ afterLogin: string;
28
+ afterLogout: string;
29
+ afterSignup: string;
30
+ };
31
+ prices?: [] | {
32
+ id: string;
33
+ amount: string;
34
+ interval: {
35
+ type: string;
36
+ count: number;
37
+ };
38
+ name: string;
39
+ type: string;
40
+ status: string;
41
+ currency: string;
42
+ }[];
43
+ }[];
44
+ contentGroups: {
45
+ id: string;
46
+ name: string;
47
+ key: string;
48
+ allowAllMembers: boolean;
49
+ activeMemberHasAccess?: boolean;
50
+ redirect: string;
51
+ urls: {
52
+ url: string;
53
+ filter: string;
54
+ }[];
55
+ plans: {
56
+ id: string;
57
+ }[];
58
+ }[];
59
+ emailVerificationEnabled: boolean;
60
+ requireEmailVerification: boolean;
61
+ customField: {
62
+ order: number;
63
+ key: string;
64
+ label: string;
65
+ hidden: boolean;
66
+ }[];
67
+ branding: {
68
+ logo: string;
69
+ colors: {
70
+ lightMode: {
71
+ primaryButton: string;
72
+ };
73
+ };
74
+ };
75
+ authProviders: {
76
+ clientId: string;
77
+ provider: string;
78
+ providerType: string;
79
+ icon: string;
80
+ }[];
81
+ };
82
+ member: {
83
+ id: string;
84
+ verified: boolean;
85
+ auth: {
86
+ email: string;
87
+ };
88
+ loginRedirect: string;
89
+ stripeCustomerId: string;
90
+ createdAt: string;
91
+ metaData: object;
92
+ customFields: object;
93
+ permissions: [] | string[];
94
+ planConnections: {
95
+ id: string;
96
+ active: boolean;
97
+ status: string;
98
+ planId: string;
99
+ type: string;
100
+ payment: {
101
+ amount: number;
102
+ currency: string;
103
+ status: string;
104
+ lastBillingDate: number;
105
+ nextBillingDate: number;
106
+ cancelAtDate: number;
107
+ lastInvoice: string;
108
+ lastReceipt: string;
109
+ card: string;
110
+ };
111
+ }[];
112
+ };
113
+ };
114
+ }>;
13
115
  getApp(): Promise<{
14
116
  data: {
15
117
  id: string;
@@ -43,6 +145,7 @@ declare const _default: {
43
145
  name: string;
44
146
  key: string;
45
147
  allowAllMembers: boolean;
148
+ activeMemberHasAccess?: boolean;
46
149
  redirect: string;
47
150
  urls: {
48
151
  url: string;
@@ -52,6 +155,8 @@ declare const _default: {
52
155
  id: string;
53
156
  }[];
54
157
  }[];
158
+ emailVerificationEnabled: boolean;
159
+ requireEmailVerification: boolean;
55
160
  customField: {
56
161
  order: number;
57
162
  key: string;
@@ -66,6 +171,12 @@ declare const _default: {
66
171
  };
67
172
  };
68
173
  };
174
+ authProviders: {
175
+ clientId: string;
176
+ provider: string;
177
+ providerType: string;
178
+ icon: string;
179
+ }[];
69
180
  };
70
181
  }>;
71
182
  getAuthProviders(): Promise<{
@@ -101,6 +212,7 @@ declare const _default: {
101
212
  name: string;
102
213
  key: string;
103
214
  allowAllMembers: boolean;
215
+ activeMemberHasAccess?: boolean;
104
216
  redirect: string;
105
217
  urls: {
106
218
  url: string;
@@ -110,6 +222,8 @@ declare const _default: {
110
222
  id: string;
111
223
  }[];
112
224
  }[];
225
+ emailVerificationEnabled: boolean;
226
+ requireEmailVerification: boolean;
113
227
  customField: {
114
228
  order: number;
115
229
  key: string;
@@ -124,9 +238,15 @@ declare const _default: {
124
238
  };
125
239
  };
126
240
  };
241
+ authProviders: {
242
+ clientId: string;
243
+ provider: string;
244
+ providerType: string;
245
+ icon: string;
246
+ }[];
127
247
  };
128
248
  }>;
129
- loginMemberEmailPassword(params: import("./types").LoginMemberEmailPasswordParams): Promise<{
249
+ loginMemberEmailPassword(params: import("./types").LoginMemberEmailPasswordParams, options?: any): Promise<{
130
250
  data: {
131
251
  tokens: {
132
252
  accessToken: string;
@@ -135,6 +255,7 @@ declare const _default: {
135
255
  };
136
256
  member: {
137
257
  id: string;
258
+ verified: boolean;
138
259
  auth: {
139
260
  email: string;
140
261
  };
@@ -168,6 +289,21 @@ declare const _default: {
168
289
  requirePayment: string[];
169
290
  requireAuthentication: string[];
170
291
  };
292
+ contentGroups?: {
293
+ id: string;
294
+ name: string;
295
+ key: string;
296
+ allowAllMembers: boolean;
297
+ activeMemberHasAccess?: boolean;
298
+ redirect: string;
299
+ urls: {
300
+ url: string;
301
+ filter: string;
302
+ }[];
303
+ plans: {
304
+ id: string;
305
+ }[];
306
+ }[];
171
307
  };
172
308
  }>;
173
309
  loginMemberAuthProvider(params: import("./types").LoginMemberAuthProviderParams): Promise<{
@@ -179,6 +315,7 @@ declare const _default: {
179
315
  };
180
316
  member: {
181
317
  id: string;
318
+ verified: boolean;
182
319
  auth: {
183
320
  email: string;
184
321
  };
@@ -212,6 +349,21 @@ declare const _default: {
212
349
  requirePayment: string[];
213
350
  requireAuthentication: string[];
214
351
  };
352
+ contentGroups?: {
353
+ id: string;
354
+ name: string;
355
+ key: string;
356
+ allowAllMembers: boolean;
357
+ activeMemberHasAccess?: boolean;
358
+ redirect: string;
359
+ urls: {
360
+ url: string;
361
+ filter: string;
362
+ }[];
363
+ plans: {
364
+ id: string;
365
+ }[];
366
+ }[];
215
367
  };
216
368
  }>;
217
369
  getPlan(params: import("./types").GetPlanParams): Promise<{
@@ -270,6 +422,7 @@ declare const _default: {
270
422
  name: string;
271
423
  key: string;
272
424
  allowAllMembers: boolean;
425
+ activeMemberHasAccess?: boolean;
273
426
  redirect: string;
274
427
  urls: {
275
428
  url: string;
@@ -283,6 +436,7 @@ declare const _default: {
283
436
  getCurrentMember(options?: import("./methods/requests").GetCurrentMemberParams): Promise<{
284
437
  data: {
285
438
  id: string;
439
+ verified: boolean;
286
440
  auth: {
287
441
  email: string;
288
442
  };
@@ -436,6 +590,7 @@ declare const _default: {
436
590
  cancelPlan(params: import("./types").CancelPlanParams, options?: import("./methods/requests").MemberstackOptions): Promise<{
437
591
  data: {
438
592
  id: string;
593
+ verified: boolean;
439
594
  auth: {
440
595
  email: string;
441
596
  };
@@ -468,6 +623,7 @@ declare const _default: {
468
623
  updateMember(params: import("./types").UpdateMemberParams, options?: import("./methods/requests").MemberstackOptions): Promise<{
469
624
  data: {
470
625
  id: string;
626
+ verified: boolean;
471
627
  auth: {
472
628
  email: string;
473
629
  };
@@ -500,6 +656,7 @@ declare const _default: {
500
656
  updateMemberAuth(params: import("./types").UpdateMemberAuthParams, options?: import("./methods/requests").MemberstackOptions): Promise<{
501
657
  data: {
502
658
  id: string;
659
+ verified: boolean;
503
660
  auth: {
504
661
  email: string;
505
662
  };
@@ -532,6 +689,7 @@ declare const _default: {
532
689
  addCard(params: import("./types").AddMemberCardParams, options?: import("./methods/requests").MemberstackOptions): Promise<{
533
690
  data: {
534
691
  id: string;
692
+ verified: boolean;
535
693
  auth: {
536
694
  email: string;
537
695
  };
@@ -564,6 +722,7 @@ declare const _default: {
564
722
  updateDefaultCard(params: import("./types").UpdateDefaultCardParams, options?: import("./methods/requests").MemberstackOptions): Promise<{
565
723
  data: {
566
724
  id: string;
725
+ verified: boolean;
567
726
  auth: {
568
727
  email: string;
569
728
  };
@@ -596,6 +755,7 @@ declare const _default: {
596
755
  updatePlanPayment(params: import("./types").UpdatePlanPaymentParams, options?: import("./methods/requests").MemberstackOptions): Promise<{
597
756
  data: {
598
757
  id: string;
758
+ verified: boolean;
599
759
  auth: {
600
760
  email: string;
601
761
  };
@@ -625,7 +785,7 @@ declare const _default: {
625
785
  }[];
626
786
  };
627
787
  }>;
628
- signupMemberEmailPassword(params: import("./types").SignupMemberEmailPasswordParams): Promise<{
788
+ signupMemberEmailPassword(params: import("./types").SignupMemberEmailPasswordParams, options?: any): Promise<{
629
789
  data: {
630
790
  tokens: {
631
791
  accessToken: string;
@@ -634,6 +794,7 @@ declare const _default: {
634
794
  };
635
795
  member: {
636
796
  id: string;
797
+ verified: boolean;
637
798
  auth: {
638
799
  email: string;
639
800
  };
@@ -667,6 +828,21 @@ declare const _default: {
667
828
  requirePayment: string[];
668
829
  requireAuthentication: string[];
669
830
  };
831
+ contentGroups?: {
832
+ id: string;
833
+ name: string;
834
+ key: string;
835
+ allowAllMembers: boolean;
836
+ activeMemberHasAccess?: boolean;
837
+ redirect: string;
838
+ urls: {
839
+ url: string;
840
+ filter: string;
841
+ }[];
842
+ plans: {
843
+ id: string;
844
+ }[];
845
+ }[];
670
846
  };
671
847
  }>;
672
848
  signupMemberAuthProvider(params: import("./types").SignupMemberAuthProviderParams): Promise<{
@@ -678,6 +854,7 @@ declare const _default: {
678
854
  };
679
855
  member: {
680
856
  id: string;
857
+ verified: boolean;
681
858
  auth: {
682
859
  email: string;
683
860
  };
@@ -711,14 +888,31 @@ declare const _default: {
711
888
  requirePayment: string[];
712
889
  requireAuthentication: string[];
713
890
  };
891
+ contentGroups?: {
892
+ id: string;
893
+ name: string;
894
+ key: string;
895
+ allowAllMembers: boolean;
896
+ activeMemberHasAccess?: boolean;
897
+ redirect: string;
898
+ urls: {
899
+ url: string;
900
+ filter: string;
901
+ }[];
902
+ plans: {
903
+ id: string;
904
+ }[];
905
+ }[];
714
906
  };
715
907
  }>;
908
+ sendMemberVerificationEmail(): Promise<void>;
716
909
  sendMemberResetPasswordEmail(params: import("./types").SendMemberResetPasswordEmailParams): Promise<{
717
910
  data: string;
718
911
  }>;
719
912
  resetMemberPassword(params: import("./types").ResetMemberPasswordParams): Promise<{
720
913
  data: {
721
914
  id: string;
915
+ verified: boolean;
722
916
  auth: {
723
917
  email: string;
724
918
  };