@memberstack/dom 2.0.1 → 2.0.2
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/README.md +356 -3
- package/lib/index.d.mts +1912 -64
- package/lib/index.d.ts +1912 -64
- package/lib/index.js +2316 -30656
- package/lib/index.mjs +2302 -30656
- package/lib/{types/utils/payloads.d.mts → models-CFT_ABd5.d.ts} +194 -6
- package/lib/testing/index.d.mts +295 -0
- package/lib/testing/index.d.ts +295 -0
- package/lib/testing/index.js +335 -0
- package/lib/testing/index.mjs +305 -0
- package/package.json +23 -12
- package/lib/auth/index.d.mts +0 -9
- package/lib/auth/index.d.ts +0 -9
- package/lib/auth/index.global.js +0 -244
- package/lib/auth/index.js +0 -158
- package/lib/auth/index.mjs +0 -121
- package/lib/constants/endpoints.d.mts +0 -5
- package/lib/constants/endpoints.d.ts +0 -5
- package/lib/constants/endpoints.global.js +0 -29
- package/lib/constants/endpoints.js +0 -31
- package/lib/constants/endpoints.mjs +0 -7
- package/lib/index.global.js +0 -46364
- package/lib/methods/dom/index.d.mts +0 -2
- package/lib/methods/dom/index.d.ts +0 -2
- package/lib/methods/dom/index.global.js +0 -2
- package/lib/methods/dom/index.js +0 -0
- package/lib/methods/dom/index.mjs +0 -0
- package/lib/methods/dom/main-dom.d.mts +0 -14
- package/lib/methods/dom/main-dom.d.ts +0 -14
- package/lib/methods/dom/main-dom.global.js +0 -30620
- package/lib/methods/dom/main-dom.js +0 -30618
- package/lib/methods/dom/main-dom.mjs +0 -30601
- package/lib/methods/dom/methods.d.mts +0 -18
- package/lib/methods/dom/methods.d.ts +0 -18
- package/lib/methods/dom/methods.global.js +0 -30827
- package/lib/methods/dom/methods.js +0 -30835
- package/lib/methods/dom/methods.mjs +0 -30806
- package/lib/methods/index.d.mts +0 -103
- package/lib/methods/index.d.ts +0 -103
- package/lib/methods/index.global.js +0 -46361
- package/lib/methods/index.js +0 -32125
- package/lib/methods/index.mjs +0 -32096
- package/lib/methods/requests/index.d.mts +0 -92
- package/lib/methods/requests/index.d.ts +0 -92
- package/lib/methods/requests/index.global.js +0 -15553
- package/lib/methods/requests/index.js +0 -1322
- package/lib/methods/requests/index.mjs +0 -1288
- package/lib/methods/requests/requests.d.mts +0 -42
- package/lib/methods/requests/requests.d.ts +0 -42
- package/lib/methods/requests/requests.global.js +0 -14528
- package/lib/methods/requests/requests.js +0 -242
- package/lib/methods/requests/requests.mjs +0 -209
- package/lib/types/index.d.mts +0 -4
- package/lib/types/index.d.ts +0 -4
- package/lib/types/index.global.js +0 -19
- package/lib/types/index.js +0 -17
- package/lib/types/index.mjs +0 -0
- package/lib/types/params.d.mts +0 -322
- package/lib/types/params.d.ts +0 -322
- package/lib/types/params.global.js +0 -19
- package/lib/types/params.js +0 -17
- package/lib/types/params.mjs +0 -0
- package/lib/types/payloads.d.mts +0 -143
- package/lib/types/payloads.d.ts +0 -143
- package/lib/types/payloads.global.js +0 -19
- package/lib/types/payloads.js +0 -17
- package/lib/types/payloads.mjs +0 -0
- package/lib/types/translations.d.mts +0 -43
- package/lib/types/translations.d.ts +0 -43
- package/lib/types/translations.global.js +0 -19
- package/lib/types/translations.js +0 -17
- package/lib/types/translations.mjs +0 -0
- package/lib/types/utils/payloads.d.ts +0 -299
- package/lib/types/utils/payloads.global.js +0 -19
- package/lib/types/utils/payloads.js +0 -17
- package/lib/types/utils/payloads.mjs +0 -0
- package/lib/utils/cookies.d.mts +0 -13
- package/lib/utils/cookies.d.ts +0 -13
- package/lib/utils/cookies.global.js +0 -261
- package/lib/utils/cookies.js +0 -179
- package/lib/utils/cookies.mjs +0 -138
- package/lib/utils/defaultMessageBox.d.mts +0 -5
- package/lib/utils/defaultMessageBox.d.ts +0 -5
- package/lib/utils/defaultMessageBox.global.js +0 -125
- package/lib/utils/defaultMessageBox.js +0 -129
- package/lib/utils/defaultMessageBox.mjs +0 -103
package/lib/types/params.d.mts
DELETED
|
@@ -1,322 +0,0 @@
|
|
|
1
|
-
type SignupMemberEmailPasswordParams = {
|
|
2
|
-
email: string;
|
|
3
|
-
password: string;
|
|
4
|
-
customFields?: Record<string, any>;
|
|
5
|
-
metaData?: Record<string, any>;
|
|
6
|
-
plans?: {
|
|
7
|
-
planId: string;
|
|
8
|
-
}[];
|
|
9
|
-
captchaToken?: string;
|
|
10
|
-
inviteToken?: string;
|
|
11
|
-
};
|
|
12
|
-
type JoinTeamParams = {
|
|
13
|
-
inviteToken: string;
|
|
14
|
-
};
|
|
15
|
-
type GetTeamParams = {
|
|
16
|
-
teamId: string;
|
|
17
|
-
};
|
|
18
|
-
type RemoveMemberFromTeamParams = {
|
|
19
|
-
teamId: string;
|
|
20
|
-
memberId: string;
|
|
21
|
-
};
|
|
22
|
-
type GenerateInviteTokenParams = {
|
|
23
|
-
teamId: string;
|
|
24
|
-
};
|
|
25
|
-
type GetPostsParams = {
|
|
26
|
-
channelKey: string;
|
|
27
|
-
order?: "newest" | "oldest";
|
|
28
|
-
after?: string;
|
|
29
|
-
limit?: number;
|
|
30
|
-
};
|
|
31
|
-
type GetThreadsParams = {
|
|
32
|
-
postId: string;
|
|
33
|
-
order?: "newest" | "oldest";
|
|
34
|
-
after?: string;
|
|
35
|
-
limit?: number;
|
|
36
|
-
};
|
|
37
|
-
type CreatePostParams = {
|
|
38
|
-
channelKey: string;
|
|
39
|
-
content: string;
|
|
40
|
-
};
|
|
41
|
-
type UpdatePostParams = {
|
|
42
|
-
postId: string;
|
|
43
|
-
content: string;
|
|
44
|
-
};
|
|
45
|
-
type DeletePostParams = {
|
|
46
|
-
postId: string;
|
|
47
|
-
};
|
|
48
|
-
type PostVoteParams = {
|
|
49
|
-
postId: string;
|
|
50
|
-
vote: "UP" | "DOWN" | "NONE";
|
|
51
|
-
};
|
|
52
|
-
type ThreadVoteParams = {
|
|
53
|
-
threadId: string;
|
|
54
|
-
vote: "UP" | "DOWN" | "NONE";
|
|
55
|
-
};
|
|
56
|
-
type CreateThreadParams = {
|
|
57
|
-
postId: string;
|
|
58
|
-
content: string;
|
|
59
|
-
};
|
|
60
|
-
type UpdateThreadParams = {
|
|
61
|
-
threadId: string;
|
|
62
|
-
content: string;
|
|
63
|
-
};
|
|
64
|
-
type DeleteThreadParams = {
|
|
65
|
-
threadId: string;
|
|
66
|
-
};
|
|
67
|
-
type UpdateMemberProfileImageParams = {
|
|
68
|
-
profileImage: File;
|
|
69
|
-
};
|
|
70
|
-
type GetSecureContentParams = {
|
|
71
|
-
contentId: string;
|
|
72
|
-
};
|
|
73
|
-
type SetPasswordParams = {
|
|
74
|
-
password: string;
|
|
75
|
-
};
|
|
76
|
-
type SignupWithProviderParams = {
|
|
77
|
-
provider: string;
|
|
78
|
-
customFields?: Record<string, any>;
|
|
79
|
-
plans?: {
|
|
80
|
-
planId: string;
|
|
81
|
-
}[];
|
|
82
|
-
allowLogin?: boolean;
|
|
83
|
-
};
|
|
84
|
-
type LoginWithProviderParams = {
|
|
85
|
-
provider: string;
|
|
86
|
-
allowSignup?: boolean;
|
|
87
|
-
};
|
|
88
|
-
type LoginMemberPasswordlessParams = {
|
|
89
|
-
passwordlessToken: string;
|
|
90
|
-
email: string;
|
|
91
|
-
};
|
|
92
|
-
type SendMemberLoginPasswordlessEmailParams = {
|
|
93
|
-
email: string;
|
|
94
|
-
};
|
|
95
|
-
type SignupMemberAuthProviderParams = {
|
|
96
|
-
code: string;
|
|
97
|
-
provider: "GOOGLE" | "FACEBOOK";
|
|
98
|
-
planId?: string;
|
|
99
|
-
customFields?: Record<string, any>;
|
|
100
|
-
metaData?: Record<string, any>;
|
|
101
|
-
plans?: {
|
|
102
|
-
planId: string;
|
|
103
|
-
}[];
|
|
104
|
-
payment?: {
|
|
105
|
-
stripe?: {
|
|
106
|
-
paymentMethodId: string;
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
type LoginMemberEmailPasswordParams = {
|
|
111
|
-
email: string;
|
|
112
|
-
password: string;
|
|
113
|
-
};
|
|
114
|
-
type UpdateMemberParams = {
|
|
115
|
-
customFields?: Record<string, any>;
|
|
116
|
-
};
|
|
117
|
-
type UpdateMemberAuthParams = {
|
|
118
|
-
email?: string;
|
|
119
|
-
oldPassword?: string;
|
|
120
|
-
newPassword?: string;
|
|
121
|
-
};
|
|
122
|
-
type PurchasePlansParams = {
|
|
123
|
-
plans: {
|
|
124
|
-
planId: string;
|
|
125
|
-
priceId?: string;
|
|
126
|
-
}[];
|
|
127
|
-
payment: {
|
|
128
|
-
cardId?: string;
|
|
129
|
-
stripe?: {
|
|
130
|
-
paymentMethodId: string;
|
|
131
|
-
};
|
|
132
|
-
};
|
|
133
|
-
};
|
|
134
|
-
type AddPlanParams = {
|
|
135
|
-
planId: string;
|
|
136
|
-
};
|
|
137
|
-
type PurchasePlansWithCheckoutParams = {
|
|
138
|
-
priceId: string;
|
|
139
|
-
couponId?: string;
|
|
140
|
-
cancelUrl?: string;
|
|
141
|
-
successUrl?: string;
|
|
142
|
-
autoRedirect?: boolean;
|
|
143
|
-
metadataForCheckout?: object;
|
|
144
|
-
};
|
|
145
|
-
type LaunchStripeCustomerPortalParams = {
|
|
146
|
-
priceIds?: string[];
|
|
147
|
-
configuration?: object;
|
|
148
|
-
returnUrl?: string;
|
|
149
|
-
autoRedirect?: boolean;
|
|
150
|
-
};
|
|
151
|
-
type OpenStripeCustomerPortalParams = {
|
|
152
|
-
configuration?: object;
|
|
153
|
-
returnUrl?: string;
|
|
154
|
-
autoRedirect?: boolean;
|
|
155
|
-
};
|
|
156
|
-
type RemovePlanParams = {
|
|
157
|
-
planId: string;
|
|
158
|
-
};
|
|
159
|
-
type CancelPlanParams = {
|
|
160
|
-
planConnectionId: string;
|
|
161
|
-
};
|
|
162
|
-
type AddMemberCardParams = {
|
|
163
|
-
stripePaymentMethodId: string;
|
|
164
|
-
default?: boolean;
|
|
165
|
-
};
|
|
166
|
-
type UpdateDefaultCardParams = {
|
|
167
|
-
cardId: string;
|
|
168
|
-
};
|
|
169
|
-
type UpdatePlanPaymentParams = {
|
|
170
|
-
planConnectionId: string;
|
|
171
|
-
cardId: string;
|
|
172
|
-
};
|
|
173
|
-
type GetMemberReceiptsParams = {
|
|
174
|
-
first?: number;
|
|
175
|
-
after?: string;
|
|
176
|
-
order?: "ASC" | "DESC";
|
|
177
|
-
};
|
|
178
|
-
type GetMemberInvoicesParams = {
|
|
179
|
-
first?: number;
|
|
180
|
-
after?: string;
|
|
181
|
-
order?: "ASC" | "DESC";
|
|
182
|
-
};
|
|
183
|
-
type UpdateMemberJSONParams = {
|
|
184
|
-
json: object;
|
|
185
|
-
};
|
|
186
|
-
type GetMemberPurchasesParams = {
|
|
187
|
-
expandPlan?: boolean;
|
|
188
|
-
expandPrice?: boolean;
|
|
189
|
-
expandCard?: boolean;
|
|
190
|
-
expandSubscription?: boolean;
|
|
191
|
-
};
|
|
192
|
-
type GetPlanParams = {
|
|
193
|
-
planId: string;
|
|
194
|
-
};
|
|
195
|
-
type GetPlansParams = {
|
|
196
|
-
status?: "ALL" | "ACTIVE" | "INACTIVE";
|
|
197
|
-
};
|
|
198
|
-
type SendMemberResetPasswordEmailParams = {
|
|
199
|
-
email: string;
|
|
200
|
-
};
|
|
201
|
-
type ResetMemberPasswordParams = {
|
|
202
|
-
token: string;
|
|
203
|
-
newPassword: string;
|
|
204
|
-
};
|
|
205
|
-
type ReplacePlanParams = {
|
|
206
|
-
planConnectionId: string;
|
|
207
|
-
newPlanId?: string;
|
|
208
|
-
priceId?: string;
|
|
209
|
-
payment?: {
|
|
210
|
-
cardId?: string;
|
|
211
|
-
stripe?: {
|
|
212
|
-
paymentMethodId: string;
|
|
213
|
-
};
|
|
214
|
-
};
|
|
215
|
-
};
|
|
216
|
-
type GetAuthenticationClientSecretParams = {
|
|
217
|
-
planConnectionId: string;
|
|
218
|
-
};
|
|
219
|
-
type GetTotalCheckoutAmountParams = {
|
|
220
|
-
priceIds: string[];
|
|
221
|
-
};
|
|
222
|
-
type GetDataRecordsParams = {
|
|
223
|
-
table: string;
|
|
224
|
-
createdAfter?: string;
|
|
225
|
-
createdBefore?: string;
|
|
226
|
-
sortBy?: string;
|
|
227
|
-
sortDirection?: 'ASC' | 'DESC';
|
|
228
|
-
limit?: number;
|
|
229
|
-
after?: string;
|
|
230
|
-
};
|
|
231
|
-
type CreateDataRecordParams = {
|
|
232
|
-
table: string;
|
|
233
|
-
data: Record<string, any>;
|
|
234
|
-
memberId?: string;
|
|
235
|
-
};
|
|
236
|
-
type GetDataRecordParams = {
|
|
237
|
-
table: string;
|
|
238
|
-
recordId: string;
|
|
239
|
-
};
|
|
240
|
-
type ReferenceSelector = {
|
|
241
|
-
id: string;
|
|
242
|
-
};
|
|
243
|
-
type ReferenceOperation = {
|
|
244
|
-
connect?: ReferenceSelector | ReferenceSelector[];
|
|
245
|
-
disconnect?: ReferenceSelector | ReferenceSelector[];
|
|
246
|
-
};
|
|
247
|
-
type MemberReferenceSelector = {
|
|
248
|
-
self: true;
|
|
249
|
-
};
|
|
250
|
-
type MemberReferenceOperation = {
|
|
251
|
-
connect?: MemberReferenceSelector | MemberReferenceSelector[];
|
|
252
|
-
disconnect?: MemberReferenceSelector | MemberReferenceSelector[];
|
|
253
|
-
};
|
|
254
|
-
type UpdateDataRecordParams = {
|
|
255
|
-
recordId: string;
|
|
256
|
-
data: Record<string, any>;
|
|
257
|
-
};
|
|
258
|
-
type DeleteDataRecordParams = {
|
|
259
|
-
recordId: string;
|
|
260
|
-
};
|
|
261
|
-
type GetDataTableParams = {
|
|
262
|
-
table: string;
|
|
263
|
-
};
|
|
264
|
-
type WhereOperators = {
|
|
265
|
-
equals?: any;
|
|
266
|
-
not?: any;
|
|
267
|
-
in?: any[];
|
|
268
|
-
notIn?: any[];
|
|
269
|
-
lt?: any;
|
|
270
|
-
lte?: any;
|
|
271
|
-
gt?: any;
|
|
272
|
-
gte?: any;
|
|
273
|
-
contains?: string;
|
|
274
|
-
startsWith?: string;
|
|
275
|
-
endsWith?: string;
|
|
276
|
-
search?: string;
|
|
277
|
-
mode?: 'insensitive' | 'default';
|
|
278
|
-
};
|
|
279
|
-
type WhereClause = {
|
|
280
|
-
[field: string]: any | WhereOperators;
|
|
281
|
-
AND?: WhereClause[];
|
|
282
|
-
OR?: WhereClause[];
|
|
283
|
-
NOT?: WhereClause;
|
|
284
|
-
};
|
|
285
|
-
type CountClause = {
|
|
286
|
-
select: {
|
|
287
|
-
[relationName: string]: boolean;
|
|
288
|
-
};
|
|
289
|
-
};
|
|
290
|
-
type SelectClause = {
|
|
291
|
-
[fieldName: string]: boolean | CountClause;
|
|
292
|
-
};
|
|
293
|
-
type IncludeClause = {
|
|
294
|
-
[relationName: string]: boolean | {
|
|
295
|
-
where?: WhereClause;
|
|
296
|
-
include?: IncludeClause;
|
|
297
|
-
select?: SelectClause;
|
|
298
|
-
orderBy?: OrderByClause;
|
|
299
|
-
take?: number;
|
|
300
|
-
skip?: number;
|
|
301
|
-
};
|
|
302
|
-
_count?: boolean | CountClause;
|
|
303
|
-
};
|
|
304
|
-
type OrderByClause = {
|
|
305
|
-
[fieldName: string]: 'asc' | 'desc';
|
|
306
|
-
};
|
|
307
|
-
type DataRecordsQuery = {
|
|
308
|
-
where?: WhereClause;
|
|
309
|
-
include?: IncludeClause;
|
|
310
|
-
select?: SelectClause;
|
|
311
|
-
orderBy?: OrderByClause;
|
|
312
|
-
take?: number;
|
|
313
|
-
skip?: number;
|
|
314
|
-
after?: string;
|
|
315
|
-
_count?: boolean | CountClause;
|
|
316
|
-
};
|
|
317
|
-
type QueryDataRecordsParams = {
|
|
318
|
-
table: string;
|
|
319
|
-
query: DataRecordsQuery;
|
|
320
|
-
};
|
|
321
|
-
|
|
322
|
-
export type { AddMemberCardParams, AddPlanParams, CancelPlanParams, CountClause, CreateDataRecordParams, CreatePostParams, CreateThreadParams, DataRecordsQuery, DeleteDataRecordParams, DeletePostParams, DeleteThreadParams, GenerateInviteTokenParams, GetAuthenticationClientSecretParams, GetDataRecordParams, GetDataRecordsParams, GetDataTableParams, GetMemberInvoicesParams, GetMemberPurchasesParams, GetMemberReceiptsParams, GetPlanParams, GetPlansParams, GetPostsParams, GetSecureContentParams, GetTeamParams, GetThreadsParams, GetTotalCheckoutAmountParams, IncludeClause, JoinTeamParams, LaunchStripeCustomerPortalParams, LoginMemberEmailPasswordParams, LoginMemberPasswordlessParams, LoginWithProviderParams, MemberReferenceOperation, MemberReferenceSelector, OpenStripeCustomerPortalParams, OrderByClause, PostVoteParams, PurchasePlansParams, PurchasePlansWithCheckoutParams, QueryDataRecordsParams, ReferenceOperation, ReferenceSelector, RemoveMemberFromTeamParams, RemovePlanParams, ReplacePlanParams, ResetMemberPasswordParams, SelectClause, SendMemberLoginPasswordlessEmailParams, SendMemberResetPasswordEmailParams, SetPasswordParams, SignupMemberAuthProviderParams, SignupMemberEmailPasswordParams, SignupWithProviderParams, ThreadVoteParams, UpdateDataRecordParams, UpdateDefaultCardParams, UpdateMemberAuthParams, UpdateMemberJSONParams, UpdateMemberParams, UpdateMemberProfileImageParams, UpdatePlanPaymentParams, UpdatePostParams, UpdateThreadParams, WhereClause, WhereOperators };
|
package/lib/types/params.d.ts
DELETED
|
@@ -1,322 +0,0 @@
|
|
|
1
|
-
type SignupMemberEmailPasswordParams = {
|
|
2
|
-
email: string;
|
|
3
|
-
password: string;
|
|
4
|
-
customFields?: Record<string, any>;
|
|
5
|
-
metaData?: Record<string, any>;
|
|
6
|
-
plans?: {
|
|
7
|
-
planId: string;
|
|
8
|
-
}[];
|
|
9
|
-
captchaToken?: string;
|
|
10
|
-
inviteToken?: string;
|
|
11
|
-
};
|
|
12
|
-
type JoinTeamParams = {
|
|
13
|
-
inviteToken: string;
|
|
14
|
-
};
|
|
15
|
-
type GetTeamParams = {
|
|
16
|
-
teamId: string;
|
|
17
|
-
};
|
|
18
|
-
type RemoveMemberFromTeamParams = {
|
|
19
|
-
teamId: string;
|
|
20
|
-
memberId: string;
|
|
21
|
-
};
|
|
22
|
-
type GenerateInviteTokenParams = {
|
|
23
|
-
teamId: string;
|
|
24
|
-
};
|
|
25
|
-
type GetPostsParams = {
|
|
26
|
-
channelKey: string;
|
|
27
|
-
order?: "newest" | "oldest";
|
|
28
|
-
after?: string;
|
|
29
|
-
limit?: number;
|
|
30
|
-
};
|
|
31
|
-
type GetThreadsParams = {
|
|
32
|
-
postId: string;
|
|
33
|
-
order?: "newest" | "oldest";
|
|
34
|
-
after?: string;
|
|
35
|
-
limit?: number;
|
|
36
|
-
};
|
|
37
|
-
type CreatePostParams = {
|
|
38
|
-
channelKey: string;
|
|
39
|
-
content: string;
|
|
40
|
-
};
|
|
41
|
-
type UpdatePostParams = {
|
|
42
|
-
postId: string;
|
|
43
|
-
content: string;
|
|
44
|
-
};
|
|
45
|
-
type DeletePostParams = {
|
|
46
|
-
postId: string;
|
|
47
|
-
};
|
|
48
|
-
type PostVoteParams = {
|
|
49
|
-
postId: string;
|
|
50
|
-
vote: "UP" | "DOWN" | "NONE";
|
|
51
|
-
};
|
|
52
|
-
type ThreadVoteParams = {
|
|
53
|
-
threadId: string;
|
|
54
|
-
vote: "UP" | "DOWN" | "NONE";
|
|
55
|
-
};
|
|
56
|
-
type CreateThreadParams = {
|
|
57
|
-
postId: string;
|
|
58
|
-
content: string;
|
|
59
|
-
};
|
|
60
|
-
type UpdateThreadParams = {
|
|
61
|
-
threadId: string;
|
|
62
|
-
content: string;
|
|
63
|
-
};
|
|
64
|
-
type DeleteThreadParams = {
|
|
65
|
-
threadId: string;
|
|
66
|
-
};
|
|
67
|
-
type UpdateMemberProfileImageParams = {
|
|
68
|
-
profileImage: File;
|
|
69
|
-
};
|
|
70
|
-
type GetSecureContentParams = {
|
|
71
|
-
contentId: string;
|
|
72
|
-
};
|
|
73
|
-
type SetPasswordParams = {
|
|
74
|
-
password: string;
|
|
75
|
-
};
|
|
76
|
-
type SignupWithProviderParams = {
|
|
77
|
-
provider: string;
|
|
78
|
-
customFields?: Record<string, any>;
|
|
79
|
-
plans?: {
|
|
80
|
-
planId: string;
|
|
81
|
-
}[];
|
|
82
|
-
allowLogin?: boolean;
|
|
83
|
-
};
|
|
84
|
-
type LoginWithProviderParams = {
|
|
85
|
-
provider: string;
|
|
86
|
-
allowSignup?: boolean;
|
|
87
|
-
};
|
|
88
|
-
type LoginMemberPasswordlessParams = {
|
|
89
|
-
passwordlessToken: string;
|
|
90
|
-
email: string;
|
|
91
|
-
};
|
|
92
|
-
type SendMemberLoginPasswordlessEmailParams = {
|
|
93
|
-
email: string;
|
|
94
|
-
};
|
|
95
|
-
type SignupMemberAuthProviderParams = {
|
|
96
|
-
code: string;
|
|
97
|
-
provider: "GOOGLE" | "FACEBOOK";
|
|
98
|
-
planId?: string;
|
|
99
|
-
customFields?: Record<string, any>;
|
|
100
|
-
metaData?: Record<string, any>;
|
|
101
|
-
plans?: {
|
|
102
|
-
planId: string;
|
|
103
|
-
}[];
|
|
104
|
-
payment?: {
|
|
105
|
-
stripe?: {
|
|
106
|
-
paymentMethodId: string;
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
type LoginMemberEmailPasswordParams = {
|
|
111
|
-
email: string;
|
|
112
|
-
password: string;
|
|
113
|
-
};
|
|
114
|
-
type UpdateMemberParams = {
|
|
115
|
-
customFields?: Record<string, any>;
|
|
116
|
-
};
|
|
117
|
-
type UpdateMemberAuthParams = {
|
|
118
|
-
email?: string;
|
|
119
|
-
oldPassword?: string;
|
|
120
|
-
newPassword?: string;
|
|
121
|
-
};
|
|
122
|
-
type PurchasePlansParams = {
|
|
123
|
-
plans: {
|
|
124
|
-
planId: string;
|
|
125
|
-
priceId?: string;
|
|
126
|
-
}[];
|
|
127
|
-
payment: {
|
|
128
|
-
cardId?: string;
|
|
129
|
-
stripe?: {
|
|
130
|
-
paymentMethodId: string;
|
|
131
|
-
};
|
|
132
|
-
};
|
|
133
|
-
};
|
|
134
|
-
type AddPlanParams = {
|
|
135
|
-
planId: string;
|
|
136
|
-
};
|
|
137
|
-
type PurchasePlansWithCheckoutParams = {
|
|
138
|
-
priceId: string;
|
|
139
|
-
couponId?: string;
|
|
140
|
-
cancelUrl?: string;
|
|
141
|
-
successUrl?: string;
|
|
142
|
-
autoRedirect?: boolean;
|
|
143
|
-
metadataForCheckout?: object;
|
|
144
|
-
};
|
|
145
|
-
type LaunchStripeCustomerPortalParams = {
|
|
146
|
-
priceIds?: string[];
|
|
147
|
-
configuration?: object;
|
|
148
|
-
returnUrl?: string;
|
|
149
|
-
autoRedirect?: boolean;
|
|
150
|
-
};
|
|
151
|
-
type OpenStripeCustomerPortalParams = {
|
|
152
|
-
configuration?: object;
|
|
153
|
-
returnUrl?: string;
|
|
154
|
-
autoRedirect?: boolean;
|
|
155
|
-
};
|
|
156
|
-
type RemovePlanParams = {
|
|
157
|
-
planId: string;
|
|
158
|
-
};
|
|
159
|
-
type CancelPlanParams = {
|
|
160
|
-
planConnectionId: string;
|
|
161
|
-
};
|
|
162
|
-
type AddMemberCardParams = {
|
|
163
|
-
stripePaymentMethodId: string;
|
|
164
|
-
default?: boolean;
|
|
165
|
-
};
|
|
166
|
-
type UpdateDefaultCardParams = {
|
|
167
|
-
cardId: string;
|
|
168
|
-
};
|
|
169
|
-
type UpdatePlanPaymentParams = {
|
|
170
|
-
planConnectionId: string;
|
|
171
|
-
cardId: string;
|
|
172
|
-
};
|
|
173
|
-
type GetMemberReceiptsParams = {
|
|
174
|
-
first?: number;
|
|
175
|
-
after?: string;
|
|
176
|
-
order?: "ASC" | "DESC";
|
|
177
|
-
};
|
|
178
|
-
type GetMemberInvoicesParams = {
|
|
179
|
-
first?: number;
|
|
180
|
-
after?: string;
|
|
181
|
-
order?: "ASC" | "DESC";
|
|
182
|
-
};
|
|
183
|
-
type UpdateMemberJSONParams = {
|
|
184
|
-
json: object;
|
|
185
|
-
};
|
|
186
|
-
type GetMemberPurchasesParams = {
|
|
187
|
-
expandPlan?: boolean;
|
|
188
|
-
expandPrice?: boolean;
|
|
189
|
-
expandCard?: boolean;
|
|
190
|
-
expandSubscription?: boolean;
|
|
191
|
-
};
|
|
192
|
-
type GetPlanParams = {
|
|
193
|
-
planId: string;
|
|
194
|
-
};
|
|
195
|
-
type GetPlansParams = {
|
|
196
|
-
status?: "ALL" | "ACTIVE" | "INACTIVE";
|
|
197
|
-
};
|
|
198
|
-
type SendMemberResetPasswordEmailParams = {
|
|
199
|
-
email: string;
|
|
200
|
-
};
|
|
201
|
-
type ResetMemberPasswordParams = {
|
|
202
|
-
token: string;
|
|
203
|
-
newPassword: string;
|
|
204
|
-
};
|
|
205
|
-
type ReplacePlanParams = {
|
|
206
|
-
planConnectionId: string;
|
|
207
|
-
newPlanId?: string;
|
|
208
|
-
priceId?: string;
|
|
209
|
-
payment?: {
|
|
210
|
-
cardId?: string;
|
|
211
|
-
stripe?: {
|
|
212
|
-
paymentMethodId: string;
|
|
213
|
-
};
|
|
214
|
-
};
|
|
215
|
-
};
|
|
216
|
-
type GetAuthenticationClientSecretParams = {
|
|
217
|
-
planConnectionId: string;
|
|
218
|
-
};
|
|
219
|
-
type GetTotalCheckoutAmountParams = {
|
|
220
|
-
priceIds: string[];
|
|
221
|
-
};
|
|
222
|
-
type GetDataRecordsParams = {
|
|
223
|
-
table: string;
|
|
224
|
-
createdAfter?: string;
|
|
225
|
-
createdBefore?: string;
|
|
226
|
-
sortBy?: string;
|
|
227
|
-
sortDirection?: 'ASC' | 'DESC';
|
|
228
|
-
limit?: number;
|
|
229
|
-
after?: string;
|
|
230
|
-
};
|
|
231
|
-
type CreateDataRecordParams = {
|
|
232
|
-
table: string;
|
|
233
|
-
data: Record<string, any>;
|
|
234
|
-
memberId?: string;
|
|
235
|
-
};
|
|
236
|
-
type GetDataRecordParams = {
|
|
237
|
-
table: string;
|
|
238
|
-
recordId: string;
|
|
239
|
-
};
|
|
240
|
-
type ReferenceSelector = {
|
|
241
|
-
id: string;
|
|
242
|
-
};
|
|
243
|
-
type ReferenceOperation = {
|
|
244
|
-
connect?: ReferenceSelector | ReferenceSelector[];
|
|
245
|
-
disconnect?: ReferenceSelector | ReferenceSelector[];
|
|
246
|
-
};
|
|
247
|
-
type MemberReferenceSelector = {
|
|
248
|
-
self: true;
|
|
249
|
-
};
|
|
250
|
-
type MemberReferenceOperation = {
|
|
251
|
-
connect?: MemberReferenceSelector | MemberReferenceSelector[];
|
|
252
|
-
disconnect?: MemberReferenceSelector | MemberReferenceSelector[];
|
|
253
|
-
};
|
|
254
|
-
type UpdateDataRecordParams = {
|
|
255
|
-
recordId: string;
|
|
256
|
-
data: Record<string, any>;
|
|
257
|
-
};
|
|
258
|
-
type DeleteDataRecordParams = {
|
|
259
|
-
recordId: string;
|
|
260
|
-
};
|
|
261
|
-
type GetDataTableParams = {
|
|
262
|
-
table: string;
|
|
263
|
-
};
|
|
264
|
-
type WhereOperators = {
|
|
265
|
-
equals?: any;
|
|
266
|
-
not?: any;
|
|
267
|
-
in?: any[];
|
|
268
|
-
notIn?: any[];
|
|
269
|
-
lt?: any;
|
|
270
|
-
lte?: any;
|
|
271
|
-
gt?: any;
|
|
272
|
-
gte?: any;
|
|
273
|
-
contains?: string;
|
|
274
|
-
startsWith?: string;
|
|
275
|
-
endsWith?: string;
|
|
276
|
-
search?: string;
|
|
277
|
-
mode?: 'insensitive' | 'default';
|
|
278
|
-
};
|
|
279
|
-
type WhereClause = {
|
|
280
|
-
[field: string]: any | WhereOperators;
|
|
281
|
-
AND?: WhereClause[];
|
|
282
|
-
OR?: WhereClause[];
|
|
283
|
-
NOT?: WhereClause;
|
|
284
|
-
};
|
|
285
|
-
type CountClause = {
|
|
286
|
-
select: {
|
|
287
|
-
[relationName: string]: boolean;
|
|
288
|
-
};
|
|
289
|
-
};
|
|
290
|
-
type SelectClause = {
|
|
291
|
-
[fieldName: string]: boolean | CountClause;
|
|
292
|
-
};
|
|
293
|
-
type IncludeClause = {
|
|
294
|
-
[relationName: string]: boolean | {
|
|
295
|
-
where?: WhereClause;
|
|
296
|
-
include?: IncludeClause;
|
|
297
|
-
select?: SelectClause;
|
|
298
|
-
orderBy?: OrderByClause;
|
|
299
|
-
take?: number;
|
|
300
|
-
skip?: number;
|
|
301
|
-
};
|
|
302
|
-
_count?: boolean | CountClause;
|
|
303
|
-
};
|
|
304
|
-
type OrderByClause = {
|
|
305
|
-
[fieldName: string]: 'asc' | 'desc';
|
|
306
|
-
};
|
|
307
|
-
type DataRecordsQuery = {
|
|
308
|
-
where?: WhereClause;
|
|
309
|
-
include?: IncludeClause;
|
|
310
|
-
select?: SelectClause;
|
|
311
|
-
orderBy?: OrderByClause;
|
|
312
|
-
take?: number;
|
|
313
|
-
skip?: number;
|
|
314
|
-
after?: string;
|
|
315
|
-
_count?: boolean | CountClause;
|
|
316
|
-
};
|
|
317
|
-
type QueryDataRecordsParams = {
|
|
318
|
-
table: string;
|
|
319
|
-
query: DataRecordsQuery;
|
|
320
|
-
};
|
|
321
|
-
|
|
322
|
-
export type { AddMemberCardParams, AddPlanParams, CancelPlanParams, CountClause, CreateDataRecordParams, CreatePostParams, CreateThreadParams, DataRecordsQuery, DeleteDataRecordParams, DeletePostParams, DeleteThreadParams, GenerateInviteTokenParams, GetAuthenticationClientSecretParams, GetDataRecordParams, GetDataRecordsParams, GetDataTableParams, GetMemberInvoicesParams, GetMemberPurchasesParams, GetMemberReceiptsParams, GetPlanParams, GetPlansParams, GetPostsParams, GetSecureContentParams, GetTeamParams, GetThreadsParams, GetTotalCheckoutAmountParams, IncludeClause, JoinTeamParams, LaunchStripeCustomerPortalParams, LoginMemberEmailPasswordParams, LoginMemberPasswordlessParams, LoginWithProviderParams, MemberReferenceOperation, MemberReferenceSelector, OpenStripeCustomerPortalParams, OrderByClause, PostVoteParams, PurchasePlansParams, PurchasePlansWithCheckoutParams, QueryDataRecordsParams, ReferenceOperation, ReferenceSelector, RemoveMemberFromTeamParams, RemovePlanParams, ReplacePlanParams, ResetMemberPasswordParams, SelectClause, SendMemberLoginPasswordlessEmailParams, SendMemberResetPasswordEmailParams, SetPasswordParams, SignupMemberAuthProviderParams, SignupMemberEmailPasswordParams, SignupWithProviderParams, ThreadVoteParams, UpdateDataRecordParams, UpdateDefaultCardParams, UpdateMemberAuthParams, UpdateMemberJSONParams, UpdateMemberParams, UpdateMemberProfileImageParams, UpdatePlanPaymentParams, UpdatePostParams, UpdateThreadParams, WhereClause, WhereOperators };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
var MemberstackDOM = (() => {
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
-
|
|
16
|
-
// src/types/params.ts
|
|
17
|
-
var params_exports = {};
|
|
18
|
-
return __toCommonJS(params_exports);
|
|
19
|
-
})();
|
package/lib/types/params.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __copyProps = (to, from, except, desc) => {
|
|
6
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
-
for (let key of __getOwnPropNames(from))
|
|
8
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
-
}
|
|
11
|
-
return to;
|
|
12
|
-
};
|
|
13
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
-
|
|
15
|
-
// src/types/params.ts
|
|
16
|
-
var params_exports = {};
|
|
17
|
-
module.exports = __toCommonJS(params_exports);
|
package/lib/types/params.mjs
DELETED
|
File without changes
|