@nocobase/plugin-verification 0.8.0-alpha.8 → 0.8.1-alpha.3
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/client.d.ts +4 -0
- package/client.js +30 -0
- package/lib/client/ProviderOptions.d.ts +3 -0
- package/lib/client/ProviderOptions.js +81 -0
- package/lib/client/Shortcut.d.ts +1 -0
- package/lib/client/Shortcut.js +78 -0
- package/lib/client/VerificationProviders.d.ts +2 -0
- package/lib/client/VerificationProviders.js +55 -0
- package/lib/client/index.d.ts +3 -0
- package/lib/client/index.js +74 -0
- package/lib/client/locale/index.d.ts +3 -0
- package/lib/client/locale/index.js +47 -0
- package/lib/client/locale/zh-CN.d.ts +12 -0
- package/lib/client/locale/zh-CN.js +19 -0
- package/lib/client/providerTypes/index.d.ts +4 -0
- package/lib/client/providerTypes/index.js +25 -0
- package/lib/client/providerTypes/sms-aliyun.d.ts +57 -0
- package/lib/client/providerTypes/sms-aliyun.js +45 -0
- package/lib/client/schemas/providers.d.ts +355 -0
- package/lib/client/schemas/providers.js +356 -0
- package/lib/index.d.ts +1 -4
- package/lib/index.js +3 -34
- package/lib/{Plugin.d.ts → server/Plugin.d.ts} +1 -1
- package/lib/{Plugin.js → server/Plugin.js} +22 -4
- package/lib/{actions → server/actions}/index.d.ts +0 -0
- package/lib/{actions → server/actions}/index.js +0 -0
- package/lib/{actions → server/actions}/verifications.d.ts +0 -0
- package/lib/{actions → server/actions}/verifications.js +12 -5
- package/lib/{collections → server/collections}/verifications.d.ts +0 -0
- package/lib/{collections → server/collections}/verifications.js +0 -0
- package/lib/{collections → server/collections}/verifications_providers.d.ts +0 -0
- package/lib/{collections → server/collections}/verifications_providers.js +3 -0
- package/lib/{constants.d.ts → server/constants.d.ts} +0 -0
- package/lib/{constants.js → server/constants.js} +0 -0
- package/lib/server/index.d.ts +4 -0
- package/lib/server/index.js +46 -0
- package/lib/{locale → server/locale}/index.d.ts +0 -0
- package/lib/{locale → server/locale}/index.js +0 -0
- package/lib/{locale → server/locale}/zh-CN.d.ts +1 -0
- package/lib/{locale → server/locale}/zh-CN.js +2 -1
- package/lib/{providers → server/providers}/index.d.ts +0 -0
- package/lib/{providers → server/providers}/index.js +0 -0
- package/lib/{providers → server/providers}/sms-aliyun.d.ts +0 -0
- package/lib/{providers → server/providers}/sms-aliyun.js +1 -0
- package/package.json +7 -7
- package/server.d.ts +4 -0
- package/server.js +30 -0
- package/src/client/ProviderOptions.tsx +22 -0
- package/src/client/Shortcut.tsx +20 -0
- package/src/client/VerificationProviders.tsx +19 -0
- package/src/client/index.tsx +41 -0
- package/src/client/locale/index.ts +16 -0
- package/src/client/locale/zh-CN.ts +13 -0
- package/src/client/providerTypes/index.ts +9 -0
- package/src/client/providerTypes/sms-aliyun.ts +39 -0
- package/src/client/schemas/providers.ts +330 -0
- package/src/index.ts +1 -5
- package/src/{Plugin.ts → server/Plugin.ts} +13 -2
- package/src/{__tests__ → server/__tests__}/Plugin.test.ts +1 -3
- package/src/{__tests__ → server/__tests__}/collections/authors.ts +0 -0
- package/src/{__tests__ → server/__tests__}/index.ts +0 -0
- package/src/{actions → server/actions}/index.ts +0 -0
- package/src/{actions → server/actions}/verifications.ts +5 -3
- package/src/{collections → server/collections}/verifications.ts +0 -0
- package/src/{collections → server/collections}/verifications_providers.ts +4 -0
- package/src/{constants.ts → server/constants.ts} +0 -0
- package/src/server/index.ts +5 -0
- package/src/{locale → server/locale}/index.ts +0 -0
- package/src/{locale → server/locale}/zh-CN.ts +2 -1
- package/src/{providers → server/providers}/index.ts +0 -0
- package/src/{providers → server/providers}/sms-aliyun.ts +1 -0
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
type: string;
|
|
3
|
+
name: string;
|
|
4
|
+
'x-decorator': string;
|
|
5
|
+
'x-decorator-props': {
|
|
6
|
+
collection: {
|
|
7
|
+
name: string;
|
|
8
|
+
fields: ({
|
|
9
|
+
type: string;
|
|
10
|
+
name: string;
|
|
11
|
+
interface: string;
|
|
12
|
+
uiSchema: {
|
|
13
|
+
title: string;
|
|
14
|
+
type: string;
|
|
15
|
+
'x-component': string;
|
|
16
|
+
required: boolean;
|
|
17
|
+
enum?: undefined;
|
|
18
|
+
};
|
|
19
|
+
} | {
|
|
20
|
+
type: string;
|
|
21
|
+
name: string;
|
|
22
|
+
interface: string;
|
|
23
|
+
uiSchema: {
|
|
24
|
+
title: string;
|
|
25
|
+
type: string;
|
|
26
|
+
'x-component': string;
|
|
27
|
+
required: boolean;
|
|
28
|
+
enum: {
|
|
29
|
+
label: string;
|
|
30
|
+
value: string;
|
|
31
|
+
}[];
|
|
32
|
+
};
|
|
33
|
+
} | {
|
|
34
|
+
type: string;
|
|
35
|
+
name: string;
|
|
36
|
+
interface: string;
|
|
37
|
+
uiSchema: {
|
|
38
|
+
title: string;
|
|
39
|
+
type: string;
|
|
40
|
+
'x-component': string;
|
|
41
|
+
required?: undefined;
|
|
42
|
+
enum?: undefined;
|
|
43
|
+
};
|
|
44
|
+
})[];
|
|
45
|
+
};
|
|
46
|
+
resourceName: string;
|
|
47
|
+
request: {
|
|
48
|
+
resource: string;
|
|
49
|
+
action: string;
|
|
50
|
+
params: {
|
|
51
|
+
pageSize: number;
|
|
52
|
+
sort: string[];
|
|
53
|
+
appends: any[];
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
'x-component': string;
|
|
58
|
+
'x-component-props': {
|
|
59
|
+
collection: {
|
|
60
|
+
name: string;
|
|
61
|
+
fields: ({
|
|
62
|
+
type: string;
|
|
63
|
+
name: string;
|
|
64
|
+
interface: string;
|
|
65
|
+
uiSchema: {
|
|
66
|
+
title: string;
|
|
67
|
+
type: string;
|
|
68
|
+
'x-component': string;
|
|
69
|
+
required: boolean;
|
|
70
|
+
enum?: undefined;
|
|
71
|
+
};
|
|
72
|
+
} | {
|
|
73
|
+
type: string;
|
|
74
|
+
name: string;
|
|
75
|
+
interface: string;
|
|
76
|
+
uiSchema: {
|
|
77
|
+
title: string;
|
|
78
|
+
type: string;
|
|
79
|
+
'x-component': string;
|
|
80
|
+
required: boolean;
|
|
81
|
+
enum: {
|
|
82
|
+
label: string;
|
|
83
|
+
value: string;
|
|
84
|
+
}[];
|
|
85
|
+
};
|
|
86
|
+
} | {
|
|
87
|
+
type: string;
|
|
88
|
+
name: string;
|
|
89
|
+
interface: string;
|
|
90
|
+
uiSchema: {
|
|
91
|
+
title: string;
|
|
92
|
+
type: string;
|
|
93
|
+
'x-component': string;
|
|
94
|
+
required?: undefined;
|
|
95
|
+
enum?: undefined;
|
|
96
|
+
};
|
|
97
|
+
})[];
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
properties: {
|
|
101
|
+
actions: {
|
|
102
|
+
type: string;
|
|
103
|
+
'x-component': string;
|
|
104
|
+
'x-component-props': {
|
|
105
|
+
style: {
|
|
106
|
+
marginBottom: number;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
properties: {
|
|
110
|
+
delete: {
|
|
111
|
+
type: string;
|
|
112
|
+
title: string;
|
|
113
|
+
'x-component': string;
|
|
114
|
+
'x-component-props': {
|
|
115
|
+
useAction: string;
|
|
116
|
+
confirm: {
|
|
117
|
+
title: string;
|
|
118
|
+
content: string;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
create: {
|
|
123
|
+
type: string;
|
|
124
|
+
title: string;
|
|
125
|
+
'x-component': string;
|
|
126
|
+
'x-component-props': {
|
|
127
|
+
type: string;
|
|
128
|
+
};
|
|
129
|
+
properties: {
|
|
130
|
+
drawer: {
|
|
131
|
+
type: string;
|
|
132
|
+
'x-component': string;
|
|
133
|
+
'x-decorator': string;
|
|
134
|
+
'x-decorator-props': {
|
|
135
|
+
useValues(options: any): {
|
|
136
|
+
state: {};
|
|
137
|
+
setState: import("ahooks/lib/useSetState").SetState<{}>;
|
|
138
|
+
loading: boolean;
|
|
139
|
+
data?: any;
|
|
140
|
+
error?: Error;
|
|
141
|
+
params: any;
|
|
142
|
+
cancel: () => void;
|
|
143
|
+
refresh: () => void;
|
|
144
|
+
refreshAsync: () => Promise<any>;
|
|
145
|
+
run: (...params: any) => void;
|
|
146
|
+
runAsync: (...params: any) => Promise<any>;
|
|
147
|
+
mutate: (data?: any) => void;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
title: string;
|
|
151
|
+
properties: {
|
|
152
|
+
id: {
|
|
153
|
+
'x-component': string;
|
|
154
|
+
'x-decorator': string;
|
|
155
|
+
description: string;
|
|
156
|
+
};
|
|
157
|
+
title: {
|
|
158
|
+
'x-component': string;
|
|
159
|
+
'x-decorator': string;
|
|
160
|
+
};
|
|
161
|
+
type: {
|
|
162
|
+
'x-component': string;
|
|
163
|
+
'x-decorator': string;
|
|
164
|
+
};
|
|
165
|
+
options: {
|
|
166
|
+
type: string;
|
|
167
|
+
'x-component': string;
|
|
168
|
+
};
|
|
169
|
+
default: {
|
|
170
|
+
'x-component': string;
|
|
171
|
+
'x-decorator': string;
|
|
172
|
+
};
|
|
173
|
+
footer: {
|
|
174
|
+
type: string;
|
|
175
|
+
'x-component': string;
|
|
176
|
+
properties: {
|
|
177
|
+
cancel: {
|
|
178
|
+
title: string;
|
|
179
|
+
'x-component': string;
|
|
180
|
+
'x-component-props': {
|
|
181
|
+
useAction: string;
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
submit: {
|
|
185
|
+
title: string;
|
|
186
|
+
'x-component': string;
|
|
187
|
+
'x-component-props': {
|
|
188
|
+
type: string;
|
|
189
|
+
useAction: string;
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
table: {
|
|
201
|
+
type: string;
|
|
202
|
+
'x-uid': string;
|
|
203
|
+
'x-component': string;
|
|
204
|
+
'x-component-props': {
|
|
205
|
+
rowKey: string;
|
|
206
|
+
rowSelection: {
|
|
207
|
+
type: string;
|
|
208
|
+
};
|
|
209
|
+
useDataSource: string;
|
|
210
|
+
};
|
|
211
|
+
properties: {
|
|
212
|
+
id: {
|
|
213
|
+
type: string;
|
|
214
|
+
'x-decorator': string;
|
|
215
|
+
'x-component': string;
|
|
216
|
+
properties: {
|
|
217
|
+
id: {
|
|
218
|
+
type: string;
|
|
219
|
+
'x-component': string;
|
|
220
|
+
'x-read-pretty': boolean;
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
title: {
|
|
225
|
+
type: string;
|
|
226
|
+
'x-decorator': string;
|
|
227
|
+
'x-component': string;
|
|
228
|
+
properties: {
|
|
229
|
+
title: {
|
|
230
|
+
type: string;
|
|
231
|
+
'x-component': string;
|
|
232
|
+
'x-read-pretty': boolean;
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
type: {
|
|
237
|
+
type: string;
|
|
238
|
+
'x-decorator': string;
|
|
239
|
+
'x-component': string;
|
|
240
|
+
properties: {
|
|
241
|
+
type: {
|
|
242
|
+
type: string;
|
|
243
|
+
'x-component': string;
|
|
244
|
+
'x-read-pretty': boolean;
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
default: {
|
|
249
|
+
type: string;
|
|
250
|
+
'x-decorator': string;
|
|
251
|
+
'x-component': string;
|
|
252
|
+
properties: {
|
|
253
|
+
default: {
|
|
254
|
+
type: string;
|
|
255
|
+
'x-component': string;
|
|
256
|
+
'x-read-pretty': boolean;
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
actions: {
|
|
261
|
+
type: string;
|
|
262
|
+
title: string;
|
|
263
|
+
'x-component': string;
|
|
264
|
+
properties: {
|
|
265
|
+
actions: {
|
|
266
|
+
type: string;
|
|
267
|
+
'x-component': string;
|
|
268
|
+
'x-component-props': {
|
|
269
|
+
split: string;
|
|
270
|
+
};
|
|
271
|
+
properties: {
|
|
272
|
+
update: {
|
|
273
|
+
type: string;
|
|
274
|
+
title: string;
|
|
275
|
+
'x-component': string;
|
|
276
|
+
'x-component-props': {
|
|
277
|
+
type: string;
|
|
278
|
+
};
|
|
279
|
+
properties: {
|
|
280
|
+
drawer: {
|
|
281
|
+
type: string;
|
|
282
|
+
'x-component': string;
|
|
283
|
+
'x-decorator': string;
|
|
284
|
+
'x-decorator-props': {
|
|
285
|
+
useValues: string;
|
|
286
|
+
};
|
|
287
|
+
title: string;
|
|
288
|
+
properties: {
|
|
289
|
+
id: {
|
|
290
|
+
'x-component': string;
|
|
291
|
+
'x-decorator': string;
|
|
292
|
+
};
|
|
293
|
+
title: {
|
|
294
|
+
'x-component': string;
|
|
295
|
+
'x-decorator': string;
|
|
296
|
+
};
|
|
297
|
+
type: {
|
|
298
|
+
'x-component': string;
|
|
299
|
+
'x-decorator': string;
|
|
300
|
+
'x-disabled': boolean;
|
|
301
|
+
};
|
|
302
|
+
options: {
|
|
303
|
+
type: string;
|
|
304
|
+
'x-component': string;
|
|
305
|
+
};
|
|
306
|
+
default: {
|
|
307
|
+
'x-component': string;
|
|
308
|
+
'x-decorator': string;
|
|
309
|
+
};
|
|
310
|
+
footer: {
|
|
311
|
+
type: string;
|
|
312
|
+
'x-component': string;
|
|
313
|
+
properties: {
|
|
314
|
+
cancel: {
|
|
315
|
+
title: string;
|
|
316
|
+
'x-component': string;
|
|
317
|
+
'x-component-props': {
|
|
318
|
+
useAction: string;
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
submit: {
|
|
322
|
+
title: string;
|
|
323
|
+
'x-component': string;
|
|
324
|
+
'x-component-props': {
|
|
325
|
+
type: string;
|
|
326
|
+
useAction: string;
|
|
327
|
+
};
|
|
328
|
+
};
|
|
329
|
+
};
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
};
|
|
333
|
+
};
|
|
334
|
+
};
|
|
335
|
+
delete: {
|
|
336
|
+
type: string;
|
|
337
|
+
title: string;
|
|
338
|
+
'x-component': string;
|
|
339
|
+
'x-component-props': {
|
|
340
|
+
confirm: {
|
|
341
|
+
title: string;
|
|
342
|
+
content: string;
|
|
343
|
+
};
|
|
344
|
+
useAction: string;
|
|
345
|
+
};
|
|
346
|
+
};
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
};
|
|
350
|
+
};
|
|
351
|
+
};
|
|
352
|
+
};
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
export default _default;
|