@tbox.cn/app-module-member 1.0.0-alpha.10 → 1.0.0-alpha.12
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/server/index.d.ts +156 -156
- package/package.json +6 -6
package/dist/server/index.d.ts
CHANGED
|
@@ -103,19 +103,19 @@ declare const memberCards: {
|
|
|
103
103
|
labelRef: zod.ZodString;
|
|
104
104
|
name: zod.ZodString;
|
|
105
105
|
}, "strip", zod.ZodTypeAny, {
|
|
106
|
-
labelRef: string;
|
|
107
106
|
name: string;
|
|
108
|
-
}, {
|
|
109
107
|
labelRef: string;
|
|
108
|
+
}, {
|
|
110
109
|
name: string;
|
|
110
|
+
labelRef: string;
|
|
111
111
|
}>, "many">;
|
|
112
112
|
}, "strip", zod.ZodTypeAny, {
|
|
113
113
|
userId: string;
|
|
114
|
-
authState: "authenticated" | "unauthenticated";
|
|
115
114
|
state: "unknown" | "active" | "not_enrolled" | "closed";
|
|
115
|
+
authState: "authenticated" | "unauthenticated";
|
|
116
116
|
labels: {
|
|
117
|
-
labelRef: string;
|
|
118
117
|
name: string;
|
|
118
|
+
labelRef: string;
|
|
119
119
|
}[];
|
|
120
120
|
displayName?: string | undefined;
|
|
121
121
|
avatarUrl?: string | undefined;
|
|
@@ -124,11 +124,11 @@ declare const memberCards: {
|
|
|
124
124
|
registeredAt?: string | undefined;
|
|
125
125
|
}, {
|
|
126
126
|
userId: string;
|
|
127
|
-
authState: "authenticated" | "unauthenticated";
|
|
128
127
|
state: "unknown" | "active" | "not_enrolled" | "closed";
|
|
128
|
+
authState: "authenticated" | "unauthenticated";
|
|
129
129
|
labels: {
|
|
130
|
-
labelRef: string;
|
|
131
130
|
name: string;
|
|
131
|
+
labelRef: string;
|
|
132
132
|
}[];
|
|
133
133
|
displayName?: string | undefined;
|
|
134
134
|
avatarUrl?: string | undefined;
|
|
@@ -151,10 +151,10 @@ declare const memberCards: {
|
|
|
151
151
|
variant: zod.ZodEnum<["blue", "silver", "gold", "black"]>;
|
|
152
152
|
labelsEmbedded: zod.ZodOptional<zod.ZodBoolean>;
|
|
153
153
|
}, "strip", zod.ZodTypeAny, {
|
|
154
|
-
variant: "
|
|
154
|
+
variant: "silver" | "gold" | "blue" | "black";
|
|
155
155
|
labelsEmbedded?: boolean | undefined;
|
|
156
156
|
}, {
|
|
157
|
-
variant: "
|
|
157
|
+
variant: "silver" | "gold" | "blue" | "black";
|
|
158
158
|
labelsEmbedded?: boolean | undefined;
|
|
159
159
|
}>>;
|
|
160
160
|
progress: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -184,38 +184,38 @@ declare const memberCards: {
|
|
|
184
184
|
title: zod.ZodOptional<zod.ZodString>;
|
|
185
185
|
text: zod.ZodOptional<zod.ZodString>;
|
|
186
186
|
}, "strip", zod.ZodTypeAny, {
|
|
187
|
-
kind: "
|
|
188
|
-
url?: string | undefined;
|
|
189
|
-
title?: string | undefined;
|
|
187
|
+
kind: "toast" | "miniapp" | "dialog";
|
|
190
188
|
text?: string | undefined;
|
|
191
|
-
}, {
|
|
192
|
-
kind: "miniapp" | "dialog" | "toast";
|
|
193
|
-
url?: string | undefined;
|
|
194
189
|
title?: string | undefined;
|
|
190
|
+
url?: string | undefined;
|
|
191
|
+
}, {
|
|
192
|
+
kind: "toast" | "miniapp" | "dialog";
|
|
195
193
|
text?: string | undefined;
|
|
194
|
+
title?: string | undefined;
|
|
195
|
+
url?: string | undefined;
|
|
196
196
|
}>>;
|
|
197
197
|
}, "strip", zod.ZodTypeAny, {
|
|
198
198
|
name: string;
|
|
199
199
|
benefitRef: string;
|
|
200
|
-
iconUrl?: string | undefined;
|
|
201
200
|
description?: string | undefined;
|
|
202
201
|
action?: {
|
|
203
|
-
kind: "
|
|
204
|
-
url?: string | undefined;
|
|
205
|
-
title?: string | undefined;
|
|
202
|
+
kind: "toast" | "miniapp" | "dialog";
|
|
206
203
|
text?: string | undefined;
|
|
204
|
+
title?: string | undefined;
|
|
205
|
+
url?: string | undefined;
|
|
207
206
|
} | undefined;
|
|
207
|
+
iconUrl?: string | undefined;
|
|
208
208
|
}, {
|
|
209
209
|
name: string;
|
|
210
210
|
benefitRef: string;
|
|
211
|
-
iconUrl?: string | undefined;
|
|
212
211
|
description?: string | undefined;
|
|
213
212
|
action?: {
|
|
214
|
-
kind: "
|
|
215
|
-
url?: string | undefined;
|
|
216
|
-
title?: string | undefined;
|
|
213
|
+
kind: "toast" | "miniapp" | "dialog";
|
|
217
214
|
text?: string | undefined;
|
|
215
|
+
title?: string | undefined;
|
|
216
|
+
url?: string | undefined;
|
|
218
217
|
} | undefined;
|
|
218
|
+
iconUrl?: string | undefined;
|
|
219
219
|
}>, "many">>;
|
|
220
220
|
preferencePrompts: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
221
221
|
value: zod.ZodEnum<["我常来买衣服", "我常带娃来玩", "我常来吃美食"]>;
|
|
@@ -228,20 +228,20 @@ declare const memberCards: {
|
|
|
228
228
|
query: string;
|
|
229
229
|
}>, "many">>;
|
|
230
230
|
}, "strip", zod.ZodTypeAny, {
|
|
231
|
-
userId: string;
|
|
232
231
|
status: "unknown" | "active" | "inactive" | "frozen" | "expired";
|
|
232
|
+
userId: string;
|
|
233
233
|
cardRef: string;
|
|
234
234
|
cardDisplay: string;
|
|
235
235
|
availablePoints: number;
|
|
236
|
+
presentation?: {
|
|
237
|
+
variant: "silver" | "gold" | "blue" | "black";
|
|
238
|
+
labelsEmbedded?: boolean | undefined;
|
|
239
|
+
} | undefined;
|
|
236
240
|
levelName?: string | undefined;
|
|
237
241
|
cardImageUrl?: string | undefined;
|
|
238
242
|
pointsRuleImageUrl?: string | undefined;
|
|
239
243
|
pointsRuleContent?: string | undefined;
|
|
240
244
|
pointsUrl?: string | undefined;
|
|
241
|
-
presentation?: {
|
|
242
|
-
variant: "blue" | "silver" | "gold" | "black";
|
|
243
|
-
labelsEmbedded?: boolean | undefined;
|
|
244
|
-
} | undefined;
|
|
245
245
|
progress?: {
|
|
246
246
|
message: string;
|
|
247
247
|
daySpentCents: number;
|
|
@@ -251,34 +251,34 @@ declare const memberCards: {
|
|
|
251
251
|
benefits?: {
|
|
252
252
|
name: string;
|
|
253
253
|
benefitRef: string;
|
|
254
|
-
iconUrl?: string | undefined;
|
|
255
254
|
description?: string | undefined;
|
|
256
255
|
action?: {
|
|
257
|
-
kind: "
|
|
258
|
-
url?: string | undefined;
|
|
259
|
-
title?: string | undefined;
|
|
256
|
+
kind: "toast" | "miniapp" | "dialog";
|
|
260
257
|
text?: string | undefined;
|
|
258
|
+
title?: string | undefined;
|
|
259
|
+
url?: string | undefined;
|
|
261
260
|
} | undefined;
|
|
261
|
+
iconUrl?: string | undefined;
|
|
262
262
|
}[] | undefined;
|
|
263
263
|
preferencePrompts?: {
|
|
264
264
|
value: "我常来买衣服" | "我常带娃来玩" | "我常来吃美食";
|
|
265
265
|
query: string;
|
|
266
266
|
}[] | undefined;
|
|
267
267
|
}, {
|
|
268
|
-
userId: string;
|
|
269
268
|
status: "unknown" | "active" | "inactive" | "frozen" | "expired";
|
|
269
|
+
userId: string;
|
|
270
270
|
cardRef: string;
|
|
271
271
|
cardDisplay: string;
|
|
272
272
|
availablePoints: number;
|
|
273
|
+
presentation?: {
|
|
274
|
+
variant: "silver" | "gold" | "blue" | "black";
|
|
275
|
+
labelsEmbedded?: boolean | undefined;
|
|
276
|
+
} | undefined;
|
|
273
277
|
levelName?: string | undefined;
|
|
274
278
|
cardImageUrl?: string | undefined;
|
|
275
279
|
pointsRuleImageUrl?: string | undefined;
|
|
276
280
|
pointsRuleContent?: string | undefined;
|
|
277
281
|
pointsUrl?: string | undefined;
|
|
278
|
-
presentation?: {
|
|
279
|
-
variant: "blue" | "silver" | "gold" | "black";
|
|
280
|
-
labelsEmbedded?: boolean | undefined;
|
|
281
|
-
} | undefined;
|
|
282
282
|
progress?: {
|
|
283
283
|
message: string;
|
|
284
284
|
daySpentCents: number;
|
|
@@ -288,14 +288,14 @@ declare const memberCards: {
|
|
|
288
288
|
benefits?: {
|
|
289
289
|
name: string;
|
|
290
290
|
benefitRef: string;
|
|
291
|
-
iconUrl?: string | undefined;
|
|
292
291
|
description?: string | undefined;
|
|
293
292
|
action?: {
|
|
294
|
-
kind: "
|
|
295
|
-
url?: string | undefined;
|
|
296
|
-
title?: string | undefined;
|
|
293
|
+
kind: "toast" | "miniapp" | "dialog";
|
|
297
294
|
text?: string | undefined;
|
|
295
|
+
title?: string | undefined;
|
|
296
|
+
url?: string | undefined;
|
|
298
297
|
} | undefined;
|
|
298
|
+
iconUrl?: string | undefined;
|
|
299
299
|
}[] | undefined;
|
|
300
300
|
preferencePrompts?: {
|
|
301
301
|
value: "我常来买衣服" | "我常带娃来玩" | "我常来吃美食";
|
|
@@ -314,41 +314,41 @@ declare const memberCards: {
|
|
|
314
314
|
description: zod.ZodOptional<zod.ZodString>;
|
|
315
315
|
}, "strip", zod.ZodTypeAny, {
|
|
316
316
|
title: string;
|
|
317
|
-
usageRecordRef: string;
|
|
318
317
|
amount: string;
|
|
318
|
+
usageRecordRef: string;
|
|
319
319
|
description?: string | undefined;
|
|
320
320
|
usedAt?: string | undefined;
|
|
321
321
|
}, {
|
|
322
322
|
title: string;
|
|
323
|
-
usageRecordRef: string;
|
|
324
323
|
amount: string;
|
|
324
|
+
usageRecordRef: string;
|
|
325
325
|
description?: string | undefined;
|
|
326
326
|
usedAt?: string | undefined;
|
|
327
327
|
}>, "many">;
|
|
328
328
|
total: zod.ZodNumber;
|
|
329
329
|
}, "strip", zod.ZodTypeAny, {
|
|
330
|
-
userId: string;
|
|
331
|
-
balance: number;
|
|
332
330
|
items: {
|
|
333
331
|
title: string;
|
|
334
|
-
usageRecordRef: string;
|
|
335
332
|
amount: string;
|
|
333
|
+
usageRecordRef: string;
|
|
336
334
|
description?: string | undefined;
|
|
337
335
|
usedAt?: string | undefined;
|
|
338
336
|
}[];
|
|
339
337
|
total: number;
|
|
340
|
-
membershipLabel?: string | undefined;
|
|
341
|
-
}, {
|
|
342
338
|
userId: string;
|
|
343
339
|
balance: number;
|
|
340
|
+
membershipLabel?: string | undefined;
|
|
341
|
+
}, {
|
|
344
342
|
items: {
|
|
345
343
|
title: string;
|
|
346
|
-
usageRecordRef: string;
|
|
347
344
|
amount: string;
|
|
345
|
+
usageRecordRef: string;
|
|
348
346
|
description?: string | undefined;
|
|
349
347
|
usedAt?: string | undefined;
|
|
350
348
|
}[];
|
|
351
349
|
total: number;
|
|
350
|
+
userId: string;
|
|
351
|
+
balance: number;
|
|
352
352
|
membershipLabel?: string | undefined;
|
|
353
353
|
}>>;
|
|
354
354
|
readonly 'member-enrollment-form': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
|
|
@@ -366,18 +366,18 @@ declare const memberCards: {
|
|
|
366
366
|
options: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
367
367
|
}, "strip", zod.ZodTypeAny, {
|
|
368
368
|
type: "date" | "text" | "tel" | "select";
|
|
369
|
-
fieldId: string;
|
|
370
369
|
label: string;
|
|
371
370
|
required: boolean;
|
|
371
|
+
fieldId: string;
|
|
372
372
|
options?: string[] | undefined;
|
|
373
373
|
readOnly?: boolean | undefined;
|
|
374
374
|
prefill?: string | undefined;
|
|
375
375
|
placeholder?: string | undefined;
|
|
376
376
|
}, {
|
|
377
377
|
type: "date" | "text" | "tel" | "select";
|
|
378
|
-
fieldId: string;
|
|
379
378
|
label: string;
|
|
380
379
|
required: boolean;
|
|
380
|
+
fieldId: string;
|
|
381
381
|
options?: string[] | undefined;
|
|
382
382
|
readOnly?: boolean | undefined;
|
|
383
383
|
prefill?: string | undefined;
|
|
@@ -392,78 +392,78 @@ declare const memberCards: {
|
|
|
392
392
|
}, "strip", zod.ZodTypeAny, {
|
|
393
393
|
title: string;
|
|
394
394
|
required: boolean;
|
|
395
|
-
consentId: string;
|
|
396
395
|
version: string;
|
|
396
|
+
consentId: string;
|
|
397
397
|
url?: string | undefined;
|
|
398
398
|
}, {
|
|
399
399
|
title: string;
|
|
400
400
|
required: boolean;
|
|
401
|
-
consentId: string;
|
|
402
401
|
version: string;
|
|
402
|
+
consentId: string;
|
|
403
403
|
url?: string | undefined;
|
|
404
404
|
}>, "many">;
|
|
405
405
|
authorization: zod.ZodObject<{
|
|
406
406
|
status: zod.ZodEnum<["required", "authorized", "unavailable"]>;
|
|
407
407
|
mobileMasked: zod.ZodOptional<zod.ZodString>;
|
|
408
408
|
}, "strip", zod.ZodTypeAny, {
|
|
409
|
-
status: "
|
|
409
|
+
status: "unavailable" | "required" | "authorized";
|
|
410
410
|
mobileMasked?: string | undefined;
|
|
411
411
|
}, {
|
|
412
|
-
status: "
|
|
412
|
+
status: "unavailable" | "required" | "authorized";
|
|
413
413
|
mobileMasked?: string | undefined;
|
|
414
414
|
}>;
|
|
415
415
|
manualNotice: zod.ZodOptional<zod.ZodString>;
|
|
416
416
|
}, "strip", zod.ZodTypeAny, {
|
|
417
417
|
userId: string;
|
|
418
|
-
|
|
419
|
-
|
|
418
|
+
authorization: {
|
|
419
|
+
status: "unavailable" | "required" | "authorized";
|
|
420
|
+
mobileMasked?: string | undefined;
|
|
421
|
+
};
|
|
420
422
|
fields: {
|
|
421
423
|
type: "date" | "text" | "tel" | "select";
|
|
422
|
-
fieldId: string;
|
|
423
424
|
label: string;
|
|
424
425
|
required: boolean;
|
|
426
|
+
fieldId: string;
|
|
425
427
|
options?: string[] | undefined;
|
|
426
428
|
readOnly?: boolean | undefined;
|
|
427
429
|
prefill?: string | undefined;
|
|
428
430
|
placeholder?: string | undefined;
|
|
429
431
|
}[];
|
|
432
|
+
state: "unknown" | "active" | "not_enrolled" | "closed";
|
|
433
|
+
formVersion: string;
|
|
430
434
|
consents: {
|
|
431
435
|
title: string;
|
|
432
436
|
required: boolean;
|
|
433
|
-
consentId: string;
|
|
434
437
|
version: string;
|
|
438
|
+
consentId: string;
|
|
435
439
|
url?: string | undefined;
|
|
436
440
|
}[];
|
|
437
|
-
authorization: {
|
|
438
|
-
status: "required" | "authorized" | "unavailable";
|
|
439
|
-
mobileMasked?: string | undefined;
|
|
440
|
-
};
|
|
441
441
|
manualNotice?: string | undefined;
|
|
442
442
|
}, {
|
|
443
443
|
userId: string;
|
|
444
|
-
|
|
445
|
-
|
|
444
|
+
authorization: {
|
|
445
|
+
status: "unavailable" | "required" | "authorized";
|
|
446
|
+
mobileMasked?: string | undefined;
|
|
447
|
+
};
|
|
446
448
|
fields: {
|
|
447
449
|
type: "date" | "text" | "tel" | "select";
|
|
448
|
-
fieldId: string;
|
|
449
450
|
label: string;
|
|
450
451
|
required: boolean;
|
|
452
|
+
fieldId: string;
|
|
451
453
|
options?: string[] | undefined;
|
|
452
454
|
readOnly?: boolean | undefined;
|
|
453
455
|
prefill?: string | undefined;
|
|
454
456
|
placeholder?: string | undefined;
|
|
455
457
|
}[];
|
|
458
|
+
state: "unknown" | "active" | "not_enrolled" | "closed";
|
|
459
|
+
formVersion: string;
|
|
456
460
|
consents: {
|
|
457
461
|
title: string;
|
|
458
462
|
required: boolean;
|
|
459
|
-
consentId: string;
|
|
460
463
|
version: string;
|
|
464
|
+
consentId: string;
|
|
461
465
|
url?: string | undefined;
|
|
462
466
|
}[];
|
|
463
|
-
authorization: {
|
|
464
|
-
status: "required" | "authorized" | "unavailable";
|
|
465
|
-
mobileMasked?: string | undefined;
|
|
466
|
-
};
|
|
467
467
|
manualNotice?: string | undefined;
|
|
468
468
|
}>>;
|
|
469
469
|
readonly 'member-enrollment-status': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
|
|
@@ -474,15 +474,15 @@ declare const memberCards: {
|
|
|
474
474
|
message: zod.ZodOptional<zod.ZodString>;
|
|
475
475
|
}, "strip", zod.ZodTypeAny, {
|
|
476
476
|
userId: string;
|
|
477
|
-
state: "
|
|
478
|
-
memberRef?: string | undefined;
|
|
477
|
+
state: "failed" | "active" | "pending_confirmation" | "confirmation_timeout";
|
|
479
478
|
message?: string | undefined;
|
|
479
|
+
memberRef?: string | undefined;
|
|
480
480
|
attemptRef?: string | undefined;
|
|
481
481
|
}, {
|
|
482
482
|
userId: string;
|
|
483
|
-
state: "
|
|
484
|
-
memberRef?: string | undefined;
|
|
483
|
+
state: "failed" | "active" | "pending_confirmation" | "confirmation_timeout";
|
|
485
484
|
message?: string | undefined;
|
|
485
|
+
memberRef?: string | undefined;
|
|
486
486
|
attemptRef?: string | undefined;
|
|
487
487
|
}>>;
|
|
488
488
|
readonly 'member-enrollment-cta': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
|
|
@@ -495,19 +495,19 @@ declare const memberCards: {
|
|
|
495
495
|
perks: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
496
496
|
}, "strip", zod.ZodTypeAny, {
|
|
497
497
|
userId: string;
|
|
498
|
-
authState: "authenticated";
|
|
499
498
|
state: "not_enrolled" | "closed";
|
|
499
|
+
authState: "authenticated";
|
|
500
500
|
title?: string | undefined;
|
|
501
|
-
enrollUrl?: string | undefined;
|
|
502
501
|
subtitle?: string | undefined;
|
|
502
|
+
enrollUrl?: string | undefined;
|
|
503
503
|
perks?: string[] | undefined;
|
|
504
504
|
}, {
|
|
505
505
|
userId: string;
|
|
506
|
-
authState: "authenticated";
|
|
507
506
|
state: "not_enrolled" | "closed";
|
|
507
|
+
authState: "authenticated";
|
|
508
508
|
title?: string | undefined;
|
|
509
|
-
enrollUrl?: string | undefined;
|
|
510
509
|
subtitle?: string | undefined;
|
|
510
|
+
enrollUrl?: string | undefined;
|
|
511
511
|
perks?: string[] | undefined;
|
|
512
512
|
}>>;
|
|
513
513
|
readonly 'member-login-cta': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
|
|
@@ -541,19 +541,19 @@ declare const serverModule: {
|
|
|
541
541
|
labelRef: zod.ZodString;
|
|
542
542
|
name: zod.ZodString;
|
|
543
543
|
}, "strip", zod.ZodTypeAny, {
|
|
544
|
-
labelRef: string;
|
|
545
544
|
name: string;
|
|
546
|
-
}, {
|
|
547
545
|
labelRef: string;
|
|
546
|
+
}, {
|
|
548
547
|
name: string;
|
|
548
|
+
labelRef: string;
|
|
549
549
|
}>, "many">;
|
|
550
550
|
}, "strip", zod.ZodTypeAny, {
|
|
551
551
|
userId: string;
|
|
552
|
-
authState: "authenticated" | "unauthenticated";
|
|
553
552
|
state: "unknown" | "active" | "not_enrolled" | "closed";
|
|
553
|
+
authState: "authenticated" | "unauthenticated";
|
|
554
554
|
labels: {
|
|
555
|
-
labelRef: string;
|
|
556
555
|
name: string;
|
|
556
|
+
labelRef: string;
|
|
557
557
|
}[];
|
|
558
558
|
displayName?: string | undefined;
|
|
559
559
|
avatarUrl?: string | undefined;
|
|
@@ -562,11 +562,11 @@ declare const serverModule: {
|
|
|
562
562
|
registeredAt?: string | undefined;
|
|
563
563
|
}, {
|
|
564
564
|
userId: string;
|
|
565
|
-
authState: "authenticated" | "unauthenticated";
|
|
566
565
|
state: "unknown" | "active" | "not_enrolled" | "closed";
|
|
566
|
+
authState: "authenticated" | "unauthenticated";
|
|
567
567
|
labels: {
|
|
568
|
-
labelRef: string;
|
|
569
568
|
name: string;
|
|
569
|
+
labelRef: string;
|
|
570
570
|
}[];
|
|
571
571
|
displayName?: string | undefined;
|
|
572
572
|
avatarUrl?: string | undefined;
|
|
@@ -589,10 +589,10 @@ declare const serverModule: {
|
|
|
589
589
|
variant: zod.ZodEnum<["blue", "silver", "gold", "black"]>;
|
|
590
590
|
labelsEmbedded: zod.ZodOptional<zod.ZodBoolean>;
|
|
591
591
|
}, "strip", zod.ZodTypeAny, {
|
|
592
|
-
variant: "
|
|
592
|
+
variant: "silver" | "gold" | "blue" | "black";
|
|
593
593
|
labelsEmbedded?: boolean | undefined;
|
|
594
594
|
}, {
|
|
595
|
-
variant: "
|
|
595
|
+
variant: "silver" | "gold" | "blue" | "black";
|
|
596
596
|
labelsEmbedded?: boolean | undefined;
|
|
597
597
|
}>>;
|
|
598
598
|
progress: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -622,38 +622,38 @@ declare const serverModule: {
|
|
|
622
622
|
title: zod.ZodOptional<zod.ZodString>;
|
|
623
623
|
text: zod.ZodOptional<zod.ZodString>;
|
|
624
624
|
}, "strip", zod.ZodTypeAny, {
|
|
625
|
-
kind: "
|
|
626
|
-
url?: string | undefined;
|
|
627
|
-
title?: string | undefined;
|
|
625
|
+
kind: "toast" | "miniapp" | "dialog";
|
|
628
626
|
text?: string | undefined;
|
|
629
|
-
}, {
|
|
630
|
-
kind: "miniapp" | "dialog" | "toast";
|
|
631
|
-
url?: string | undefined;
|
|
632
627
|
title?: string | undefined;
|
|
628
|
+
url?: string | undefined;
|
|
629
|
+
}, {
|
|
630
|
+
kind: "toast" | "miniapp" | "dialog";
|
|
633
631
|
text?: string | undefined;
|
|
632
|
+
title?: string | undefined;
|
|
633
|
+
url?: string | undefined;
|
|
634
634
|
}>>;
|
|
635
635
|
}, "strip", zod.ZodTypeAny, {
|
|
636
636
|
name: string;
|
|
637
637
|
benefitRef: string;
|
|
638
|
-
iconUrl?: string | undefined;
|
|
639
638
|
description?: string | undefined;
|
|
640
639
|
action?: {
|
|
641
|
-
kind: "
|
|
642
|
-
url?: string | undefined;
|
|
643
|
-
title?: string | undefined;
|
|
640
|
+
kind: "toast" | "miniapp" | "dialog";
|
|
644
641
|
text?: string | undefined;
|
|
642
|
+
title?: string | undefined;
|
|
643
|
+
url?: string | undefined;
|
|
645
644
|
} | undefined;
|
|
645
|
+
iconUrl?: string | undefined;
|
|
646
646
|
}, {
|
|
647
647
|
name: string;
|
|
648
648
|
benefitRef: string;
|
|
649
|
-
iconUrl?: string | undefined;
|
|
650
649
|
description?: string | undefined;
|
|
651
650
|
action?: {
|
|
652
|
-
kind: "
|
|
653
|
-
url?: string | undefined;
|
|
654
|
-
title?: string | undefined;
|
|
651
|
+
kind: "toast" | "miniapp" | "dialog";
|
|
655
652
|
text?: string | undefined;
|
|
653
|
+
title?: string | undefined;
|
|
654
|
+
url?: string | undefined;
|
|
656
655
|
} | undefined;
|
|
656
|
+
iconUrl?: string | undefined;
|
|
657
657
|
}>, "many">>;
|
|
658
658
|
preferencePrompts: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
659
659
|
value: zod.ZodEnum<["我常来买衣服", "我常带娃来玩", "我常来吃美食"]>;
|
|
@@ -666,20 +666,20 @@ declare const serverModule: {
|
|
|
666
666
|
query: string;
|
|
667
667
|
}>, "many">>;
|
|
668
668
|
}, "strip", zod.ZodTypeAny, {
|
|
669
|
-
userId: string;
|
|
670
669
|
status: "unknown" | "active" | "inactive" | "frozen" | "expired";
|
|
670
|
+
userId: string;
|
|
671
671
|
cardRef: string;
|
|
672
672
|
cardDisplay: string;
|
|
673
673
|
availablePoints: number;
|
|
674
|
+
presentation?: {
|
|
675
|
+
variant: "silver" | "gold" | "blue" | "black";
|
|
676
|
+
labelsEmbedded?: boolean | undefined;
|
|
677
|
+
} | undefined;
|
|
674
678
|
levelName?: string | undefined;
|
|
675
679
|
cardImageUrl?: string | undefined;
|
|
676
680
|
pointsRuleImageUrl?: string | undefined;
|
|
677
681
|
pointsRuleContent?: string | undefined;
|
|
678
682
|
pointsUrl?: string | undefined;
|
|
679
|
-
presentation?: {
|
|
680
|
-
variant: "blue" | "silver" | "gold" | "black";
|
|
681
|
-
labelsEmbedded?: boolean | undefined;
|
|
682
|
-
} | undefined;
|
|
683
683
|
progress?: {
|
|
684
684
|
message: string;
|
|
685
685
|
daySpentCents: number;
|
|
@@ -689,34 +689,34 @@ declare const serverModule: {
|
|
|
689
689
|
benefits?: {
|
|
690
690
|
name: string;
|
|
691
691
|
benefitRef: string;
|
|
692
|
-
iconUrl?: string | undefined;
|
|
693
692
|
description?: string | undefined;
|
|
694
693
|
action?: {
|
|
695
|
-
kind: "
|
|
696
|
-
url?: string | undefined;
|
|
697
|
-
title?: string | undefined;
|
|
694
|
+
kind: "toast" | "miniapp" | "dialog";
|
|
698
695
|
text?: string | undefined;
|
|
696
|
+
title?: string | undefined;
|
|
697
|
+
url?: string | undefined;
|
|
699
698
|
} | undefined;
|
|
699
|
+
iconUrl?: string | undefined;
|
|
700
700
|
}[] | undefined;
|
|
701
701
|
preferencePrompts?: {
|
|
702
702
|
value: "我常来买衣服" | "我常带娃来玩" | "我常来吃美食";
|
|
703
703
|
query: string;
|
|
704
704
|
}[] | undefined;
|
|
705
705
|
}, {
|
|
706
|
-
userId: string;
|
|
707
706
|
status: "unknown" | "active" | "inactive" | "frozen" | "expired";
|
|
707
|
+
userId: string;
|
|
708
708
|
cardRef: string;
|
|
709
709
|
cardDisplay: string;
|
|
710
710
|
availablePoints: number;
|
|
711
|
+
presentation?: {
|
|
712
|
+
variant: "silver" | "gold" | "blue" | "black";
|
|
713
|
+
labelsEmbedded?: boolean | undefined;
|
|
714
|
+
} | undefined;
|
|
711
715
|
levelName?: string | undefined;
|
|
712
716
|
cardImageUrl?: string | undefined;
|
|
713
717
|
pointsRuleImageUrl?: string | undefined;
|
|
714
718
|
pointsRuleContent?: string | undefined;
|
|
715
719
|
pointsUrl?: string | undefined;
|
|
716
|
-
presentation?: {
|
|
717
|
-
variant: "blue" | "silver" | "gold" | "black";
|
|
718
|
-
labelsEmbedded?: boolean | undefined;
|
|
719
|
-
} | undefined;
|
|
720
720
|
progress?: {
|
|
721
721
|
message: string;
|
|
722
722
|
daySpentCents: number;
|
|
@@ -726,14 +726,14 @@ declare const serverModule: {
|
|
|
726
726
|
benefits?: {
|
|
727
727
|
name: string;
|
|
728
728
|
benefitRef: string;
|
|
729
|
-
iconUrl?: string | undefined;
|
|
730
729
|
description?: string | undefined;
|
|
731
730
|
action?: {
|
|
732
|
-
kind: "
|
|
733
|
-
url?: string | undefined;
|
|
734
|
-
title?: string | undefined;
|
|
731
|
+
kind: "toast" | "miniapp" | "dialog";
|
|
735
732
|
text?: string | undefined;
|
|
733
|
+
title?: string | undefined;
|
|
734
|
+
url?: string | undefined;
|
|
736
735
|
} | undefined;
|
|
736
|
+
iconUrl?: string | undefined;
|
|
737
737
|
}[] | undefined;
|
|
738
738
|
preferencePrompts?: {
|
|
739
739
|
value: "我常来买衣服" | "我常带娃来玩" | "我常来吃美食";
|
|
@@ -752,41 +752,41 @@ declare const serverModule: {
|
|
|
752
752
|
description: zod.ZodOptional<zod.ZodString>;
|
|
753
753
|
}, "strip", zod.ZodTypeAny, {
|
|
754
754
|
title: string;
|
|
755
|
-
usageRecordRef: string;
|
|
756
755
|
amount: string;
|
|
756
|
+
usageRecordRef: string;
|
|
757
757
|
description?: string | undefined;
|
|
758
758
|
usedAt?: string | undefined;
|
|
759
759
|
}, {
|
|
760
760
|
title: string;
|
|
761
|
-
usageRecordRef: string;
|
|
762
761
|
amount: string;
|
|
762
|
+
usageRecordRef: string;
|
|
763
763
|
description?: string | undefined;
|
|
764
764
|
usedAt?: string | undefined;
|
|
765
765
|
}>, "many">;
|
|
766
766
|
total: zod.ZodNumber;
|
|
767
767
|
}, "strip", zod.ZodTypeAny, {
|
|
768
|
-
userId: string;
|
|
769
|
-
balance: number;
|
|
770
768
|
items: {
|
|
771
769
|
title: string;
|
|
772
|
-
usageRecordRef: string;
|
|
773
770
|
amount: string;
|
|
771
|
+
usageRecordRef: string;
|
|
774
772
|
description?: string | undefined;
|
|
775
773
|
usedAt?: string | undefined;
|
|
776
774
|
}[];
|
|
777
775
|
total: number;
|
|
778
|
-
membershipLabel?: string | undefined;
|
|
779
|
-
}, {
|
|
780
776
|
userId: string;
|
|
781
777
|
balance: number;
|
|
778
|
+
membershipLabel?: string | undefined;
|
|
779
|
+
}, {
|
|
782
780
|
items: {
|
|
783
781
|
title: string;
|
|
784
|
-
usageRecordRef: string;
|
|
785
782
|
amount: string;
|
|
783
|
+
usageRecordRef: string;
|
|
786
784
|
description?: string | undefined;
|
|
787
785
|
usedAt?: string | undefined;
|
|
788
786
|
}[];
|
|
789
787
|
total: number;
|
|
788
|
+
userId: string;
|
|
789
|
+
balance: number;
|
|
790
790
|
membershipLabel?: string | undefined;
|
|
791
791
|
}>>;
|
|
792
792
|
readonly 'member-enrollment-form': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
|
|
@@ -804,18 +804,18 @@ declare const serverModule: {
|
|
|
804
804
|
options: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
805
805
|
}, "strip", zod.ZodTypeAny, {
|
|
806
806
|
type: "date" | "text" | "tel" | "select";
|
|
807
|
-
fieldId: string;
|
|
808
807
|
label: string;
|
|
809
808
|
required: boolean;
|
|
809
|
+
fieldId: string;
|
|
810
810
|
options?: string[] | undefined;
|
|
811
811
|
readOnly?: boolean | undefined;
|
|
812
812
|
prefill?: string | undefined;
|
|
813
813
|
placeholder?: string | undefined;
|
|
814
814
|
}, {
|
|
815
815
|
type: "date" | "text" | "tel" | "select";
|
|
816
|
-
fieldId: string;
|
|
817
816
|
label: string;
|
|
818
817
|
required: boolean;
|
|
818
|
+
fieldId: string;
|
|
819
819
|
options?: string[] | undefined;
|
|
820
820
|
readOnly?: boolean | undefined;
|
|
821
821
|
prefill?: string | undefined;
|
|
@@ -830,78 +830,78 @@ declare const serverModule: {
|
|
|
830
830
|
}, "strip", zod.ZodTypeAny, {
|
|
831
831
|
title: string;
|
|
832
832
|
required: boolean;
|
|
833
|
-
consentId: string;
|
|
834
833
|
version: string;
|
|
834
|
+
consentId: string;
|
|
835
835
|
url?: string | undefined;
|
|
836
836
|
}, {
|
|
837
837
|
title: string;
|
|
838
838
|
required: boolean;
|
|
839
|
-
consentId: string;
|
|
840
839
|
version: string;
|
|
840
|
+
consentId: string;
|
|
841
841
|
url?: string | undefined;
|
|
842
842
|
}>, "many">;
|
|
843
843
|
authorization: zod.ZodObject<{
|
|
844
844
|
status: zod.ZodEnum<["required", "authorized", "unavailable"]>;
|
|
845
845
|
mobileMasked: zod.ZodOptional<zod.ZodString>;
|
|
846
846
|
}, "strip", zod.ZodTypeAny, {
|
|
847
|
-
status: "
|
|
847
|
+
status: "unavailable" | "required" | "authorized";
|
|
848
848
|
mobileMasked?: string | undefined;
|
|
849
849
|
}, {
|
|
850
|
-
status: "
|
|
850
|
+
status: "unavailable" | "required" | "authorized";
|
|
851
851
|
mobileMasked?: string | undefined;
|
|
852
852
|
}>;
|
|
853
853
|
manualNotice: zod.ZodOptional<zod.ZodString>;
|
|
854
854
|
}, "strip", zod.ZodTypeAny, {
|
|
855
855
|
userId: string;
|
|
856
|
-
|
|
857
|
-
|
|
856
|
+
authorization: {
|
|
857
|
+
status: "unavailable" | "required" | "authorized";
|
|
858
|
+
mobileMasked?: string | undefined;
|
|
859
|
+
};
|
|
858
860
|
fields: {
|
|
859
861
|
type: "date" | "text" | "tel" | "select";
|
|
860
|
-
fieldId: string;
|
|
861
862
|
label: string;
|
|
862
863
|
required: boolean;
|
|
864
|
+
fieldId: string;
|
|
863
865
|
options?: string[] | undefined;
|
|
864
866
|
readOnly?: boolean | undefined;
|
|
865
867
|
prefill?: string | undefined;
|
|
866
868
|
placeholder?: string | undefined;
|
|
867
869
|
}[];
|
|
870
|
+
state: "unknown" | "active" | "not_enrolled" | "closed";
|
|
871
|
+
formVersion: string;
|
|
868
872
|
consents: {
|
|
869
873
|
title: string;
|
|
870
874
|
required: boolean;
|
|
871
|
-
consentId: string;
|
|
872
875
|
version: string;
|
|
876
|
+
consentId: string;
|
|
873
877
|
url?: string | undefined;
|
|
874
878
|
}[];
|
|
875
|
-
authorization: {
|
|
876
|
-
status: "required" | "authorized" | "unavailable";
|
|
877
|
-
mobileMasked?: string | undefined;
|
|
878
|
-
};
|
|
879
879
|
manualNotice?: string | undefined;
|
|
880
880
|
}, {
|
|
881
881
|
userId: string;
|
|
882
|
-
|
|
883
|
-
|
|
882
|
+
authorization: {
|
|
883
|
+
status: "unavailable" | "required" | "authorized";
|
|
884
|
+
mobileMasked?: string | undefined;
|
|
885
|
+
};
|
|
884
886
|
fields: {
|
|
885
887
|
type: "date" | "text" | "tel" | "select";
|
|
886
|
-
fieldId: string;
|
|
887
888
|
label: string;
|
|
888
889
|
required: boolean;
|
|
890
|
+
fieldId: string;
|
|
889
891
|
options?: string[] | undefined;
|
|
890
892
|
readOnly?: boolean | undefined;
|
|
891
893
|
prefill?: string | undefined;
|
|
892
894
|
placeholder?: string | undefined;
|
|
893
895
|
}[];
|
|
896
|
+
state: "unknown" | "active" | "not_enrolled" | "closed";
|
|
897
|
+
formVersion: string;
|
|
894
898
|
consents: {
|
|
895
899
|
title: string;
|
|
896
900
|
required: boolean;
|
|
897
|
-
consentId: string;
|
|
898
901
|
version: string;
|
|
902
|
+
consentId: string;
|
|
899
903
|
url?: string | undefined;
|
|
900
904
|
}[];
|
|
901
|
-
authorization: {
|
|
902
|
-
status: "required" | "authorized" | "unavailable";
|
|
903
|
-
mobileMasked?: string | undefined;
|
|
904
|
-
};
|
|
905
905
|
manualNotice?: string | undefined;
|
|
906
906
|
}>>;
|
|
907
907
|
readonly 'member-enrollment-status': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
|
|
@@ -912,15 +912,15 @@ declare const serverModule: {
|
|
|
912
912
|
message: zod.ZodOptional<zod.ZodString>;
|
|
913
913
|
}, "strip", zod.ZodTypeAny, {
|
|
914
914
|
userId: string;
|
|
915
|
-
state: "
|
|
916
|
-
memberRef?: string | undefined;
|
|
915
|
+
state: "failed" | "active" | "pending_confirmation" | "confirmation_timeout";
|
|
917
916
|
message?: string | undefined;
|
|
917
|
+
memberRef?: string | undefined;
|
|
918
918
|
attemptRef?: string | undefined;
|
|
919
919
|
}, {
|
|
920
920
|
userId: string;
|
|
921
|
-
state: "
|
|
922
|
-
memberRef?: string | undefined;
|
|
921
|
+
state: "failed" | "active" | "pending_confirmation" | "confirmation_timeout";
|
|
923
922
|
message?: string | undefined;
|
|
923
|
+
memberRef?: string | undefined;
|
|
924
924
|
attemptRef?: string | undefined;
|
|
925
925
|
}>>;
|
|
926
926
|
readonly 'member-enrollment-cta': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
|
|
@@ -933,19 +933,19 @@ declare const serverModule: {
|
|
|
933
933
|
perks: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
934
934
|
}, "strip", zod.ZodTypeAny, {
|
|
935
935
|
userId: string;
|
|
936
|
-
authState: "authenticated";
|
|
937
936
|
state: "not_enrolled" | "closed";
|
|
937
|
+
authState: "authenticated";
|
|
938
938
|
title?: string | undefined;
|
|
939
|
-
enrollUrl?: string | undefined;
|
|
940
939
|
subtitle?: string | undefined;
|
|
940
|
+
enrollUrl?: string | undefined;
|
|
941
941
|
perks?: string[] | undefined;
|
|
942
942
|
}, {
|
|
943
943
|
userId: string;
|
|
944
|
-
authState: "authenticated";
|
|
945
944
|
state: "not_enrolled" | "closed";
|
|
945
|
+
authState: "authenticated";
|
|
946
946
|
title?: string | undefined;
|
|
947
|
-
enrollUrl?: string | undefined;
|
|
948
947
|
subtitle?: string | undefined;
|
|
948
|
+
enrollUrl?: string | undefined;
|
|
949
949
|
perks?: string[] | undefined;
|
|
950
950
|
}>>;
|
|
951
951
|
readonly 'member-login-cta': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tbox.cn/app-module-member",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "商圈会员模块:会员账户、会员卡、积分流水与入会流程(codegen 源)。",
|
|
6
6
|
"exports": {
|
|
@@ -18,17 +18,17 @@
|
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@tbox.cn/app-
|
|
22
|
-
"@tbox.cn/app-
|
|
23
|
-
"@tbox.cn/app-
|
|
24
|
-
"@tbox.cn/app-
|
|
21
|
+
"@tbox.cn/app-contracts": "1.0.0-alpha.12",
|
|
22
|
+
"@tbox.cn/app-contracts-mall": "1.0.0-alpha.12",
|
|
23
|
+
"@tbox.cn/app-agent-sdk-server": "1.0.0-alpha.12",
|
|
24
|
+
"@tbox.cn/app-agent-sdk-client": "1.0.0-alpha.12"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"zod": "3.25.76",
|
|
28
28
|
"react": "18.3.1",
|
|
29
29
|
"react-dom": "18.3.1",
|
|
30
30
|
"@phosphor-icons/react": "2.1.10",
|
|
31
|
-
"@tbox.cn/app-agent-ui-kit": "^1.0.0-alpha.
|
|
31
|
+
"@tbox.cn/app-agent-ui-kit": "^1.0.0-alpha.12"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/react": "18.3.31",
|