@tbox.cn/app-module-member 1.0.0-alpha.1 → 1.0.0-alpha.7
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/AGENTS.md +3 -3
- package/dist/chunk-W5YKIKTD.js +857 -0
- package/dist/client/index.js +1 -1
- package/dist/index.js +2 -2
- package/dist/server/index.d.ts +76 -76
- package/dist/server/index.js +1 -1
- package/package.json +5 -8
- package/src/client/cards/member-card-summary/index.tsx +175 -58
- package/src/client/cards/member-enrollment-cta/index.tsx +10 -10
- package/src/client/cards/member-enrollment-form/index.tsx +34 -26
- package/src/client/cards/member-enrollment-status/index.tsx +24 -9
- package/src/client/cards/member-info/index.tsx +20 -20
- package/src/client/cards/member-login-cta/index.tsx +14 -14
- package/src/client/cards/member-point-usage-list/index.tsx +27 -21
- package/src/client/components/ImageWithFallback.tsx +1 -1
- package/src/client/index.ts +0 -2
- package/tbox.module.json +0 -1
- package/tsup.config.ts +0 -5
- package/dist/chunk-GMHJMLRV.js +0 -767
- package/dist/member-372B74DY.css +0 -1740
- package/src/client/styles/member.css +0 -1740
- package/src/client/types/css.d.ts +0 -2
- /package/dist/{chunk-DSFXLULX.js → chunk-6JWXQAHX.js} +0 -0
package/dist/client/index.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
resolveMemberEnrollmentPort,
|
|
8
8
|
resolveMemberProfilePort,
|
|
9
9
|
serverModule
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6JWXQAHX.js";
|
|
11
11
|
import {
|
|
12
12
|
clientModule
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-W5YKIKTD.js";
|
|
14
14
|
export {
|
|
15
15
|
InMemoryMemberService,
|
|
16
16
|
clientModule,
|
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
|
-
name: string;
|
|
107
106
|
labelRef: string;
|
|
108
|
-
}, {
|
|
109
107
|
name: string;
|
|
108
|
+
}, {
|
|
110
109
|
labelRef: string;
|
|
110
|
+
name: string;
|
|
111
111
|
}>, "many">;
|
|
112
112
|
}, "strip", zod.ZodTypeAny, {
|
|
113
113
|
userId: string;
|
|
114
|
-
state: "unknown" | "active" | "not_enrolled" | "closed";
|
|
115
114
|
authState: "authenticated" | "unauthenticated";
|
|
115
|
+
state: "unknown" | "active" | "not_enrolled" | "closed";
|
|
116
116
|
labels: {
|
|
117
|
-
name: string;
|
|
118
117
|
labelRef: string;
|
|
118
|
+
name: 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
|
-
state: "unknown" | "active" | "not_enrolled" | "closed";
|
|
128
127
|
authState: "authenticated" | "unauthenticated";
|
|
128
|
+
state: "unknown" | "active" | "not_enrolled" | "closed";
|
|
129
129
|
labels: {
|
|
130
|
-
name: string;
|
|
131
130
|
labelRef: string;
|
|
131
|
+
name: string;
|
|
132
132
|
}[];
|
|
133
133
|
displayName?: string | undefined;
|
|
134
134
|
avatarUrl?: string | undefined;
|
|
@@ -185,14 +185,14 @@ declare const memberCards: {
|
|
|
185
185
|
text: zod.ZodOptional<zod.ZodString>;
|
|
186
186
|
}, "strip", zod.ZodTypeAny, {
|
|
187
187
|
kind: "toast" | "miniapp" | "dialog";
|
|
188
|
+
title?: string | undefined;
|
|
188
189
|
url?: string | undefined;
|
|
189
190
|
text?: string | undefined;
|
|
190
|
-
title?: string | undefined;
|
|
191
191
|
}, {
|
|
192
192
|
kind: "toast" | "miniapp" | "dialog";
|
|
193
|
+
title?: string | undefined;
|
|
193
194
|
url?: string | undefined;
|
|
194
195
|
text?: string | undefined;
|
|
195
|
-
title?: string | undefined;
|
|
196
196
|
}>>;
|
|
197
197
|
}, "strip", zod.ZodTypeAny, {
|
|
198
198
|
name: string;
|
|
@@ -200,9 +200,9 @@ declare const memberCards: {
|
|
|
200
200
|
description?: string | undefined;
|
|
201
201
|
action?: {
|
|
202
202
|
kind: "toast" | "miniapp" | "dialog";
|
|
203
|
+
title?: string | undefined;
|
|
203
204
|
url?: string | undefined;
|
|
204
205
|
text?: string | undefined;
|
|
205
|
-
title?: string | undefined;
|
|
206
206
|
} | undefined;
|
|
207
207
|
iconUrl?: string | undefined;
|
|
208
208
|
}, {
|
|
@@ -211,9 +211,9 @@ declare const memberCards: {
|
|
|
211
211
|
description?: string | undefined;
|
|
212
212
|
action?: {
|
|
213
213
|
kind: "toast" | "miniapp" | "dialog";
|
|
214
|
+
title?: string | undefined;
|
|
214
215
|
url?: string | undefined;
|
|
215
216
|
text?: string | undefined;
|
|
216
|
-
title?: string | undefined;
|
|
217
217
|
} | undefined;
|
|
218
218
|
iconUrl?: string | undefined;
|
|
219
219
|
}>, "many">>;
|
|
@@ -228,8 +228,8 @@ declare const memberCards: {
|
|
|
228
228
|
query: string;
|
|
229
229
|
}>, "many">>;
|
|
230
230
|
}, "strip", zod.ZodTypeAny, {
|
|
231
|
-
status: "unknown" | "active" | "inactive" | "frozen" | "expired";
|
|
232
231
|
userId: string;
|
|
232
|
+
status: "unknown" | "active" | "inactive" | "frozen" | "expired";
|
|
233
233
|
cardRef: string;
|
|
234
234
|
cardDisplay: string;
|
|
235
235
|
availablePoints: number;
|
|
@@ -254,9 +254,9 @@ declare const memberCards: {
|
|
|
254
254
|
description?: string | undefined;
|
|
255
255
|
action?: {
|
|
256
256
|
kind: "toast" | "miniapp" | "dialog";
|
|
257
|
+
title?: string | undefined;
|
|
257
258
|
url?: string | undefined;
|
|
258
259
|
text?: string | undefined;
|
|
259
|
-
title?: string | undefined;
|
|
260
260
|
} | undefined;
|
|
261
261
|
iconUrl?: string | undefined;
|
|
262
262
|
}[] | undefined;
|
|
@@ -265,8 +265,8 @@ declare const memberCards: {
|
|
|
265
265
|
query: string;
|
|
266
266
|
}[] | undefined;
|
|
267
267
|
}, {
|
|
268
|
-
status: "unknown" | "active" | "inactive" | "frozen" | "expired";
|
|
269
268
|
userId: string;
|
|
269
|
+
status: "unknown" | "active" | "inactive" | "frozen" | "expired";
|
|
270
270
|
cardRef: string;
|
|
271
271
|
cardDisplay: string;
|
|
272
272
|
availablePoints: number;
|
|
@@ -291,9 +291,9 @@ declare const memberCards: {
|
|
|
291
291
|
description?: string | undefined;
|
|
292
292
|
action?: {
|
|
293
293
|
kind: "toast" | "miniapp" | "dialog";
|
|
294
|
+
title?: string | undefined;
|
|
294
295
|
url?: string | undefined;
|
|
295
296
|
text?: string | undefined;
|
|
296
|
-
title?: string | undefined;
|
|
297
297
|
} | undefined;
|
|
298
298
|
iconUrl?: string | undefined;
|
|
299
299
|
}[] | undefined;
|
|
@@ -313,42 +313,42 @@ declare const memberCards: {
|
|
|
313
313
|
usedAt: zod.ZodOptional<zod.ZodString>;
|
|
314
314
|
description: zod.ZodOptional<zod.ZodString>;
|
|
315
315
|
}, "strip", zod.ZodTypeAny, {
|
|
316
|
-
title: string;
|
|
317
316
|
usageRecordRef: string;
|
|
317
|
+
title: string;
|
|
318
318
|
amount: string;
|
|
319
|
-
description?: string | undefined;
|
|
320
319
|
usedAt?: string | undefined;
|
|
320
|
+
description?: string | undefined;
|
|
321
321
|
}, {
|
|
322
|
-
title: string;
|
|
323
322
|
usageRecordRef: string;
|
|
323
|
+
title: string;
|
|
324
324
|
amount: string;
|
|
325
|
-
description?: string | undefined;
|
|
326
325
|
usedAt?: string | undefined;
|
|
326
|
+
description?: string | undefined;
|
|
327
327
|
}>, "many">;
|
|
328
328
|
total: zod.ZodNumber;
|
|
329
329
|
}, "strip", zod.ZodTypeAny, {
|
|
330
330
|
userId: string;
|
|
331
|
-
|
|
331
|
+
balance: number;
|
|
332
332
|
items: {
|
|
333
|
-
title: string;
|
|
334
333
|
usageRecordRef: string;
|
|
334
|
+
title: string;
|
|
335
335
|
amount: string;
|
|
336
|
-
description?: string | undefined;
|
|
337
336
|
usedAt?: string | undefined;
|
|
337
|
+
description?: string | undefined;
|
|
338
338
|
}[];
|
|
339
|
-
|
|
339
|
+
total: number;
|
|
340
340
|
membershipLabel?: string | undefined;
|
|
341
341
|
}, {
|
|
342
342
|
userId: string;
|
|
343
|
-
|
|
343
|
+
balance: number;
|
|
344
344
|
items: {
|
|
345
|
-
title: string;
|
|
346
345
|
usageRecordRef: string;
|
|
346
|
+
title: string;
|
|
347
347
|
amount: string;
|
|
348
|
-
description?: string | undefined;
|
|
349
348
|
usedAt?: string | undefined;
|
|
349
|
+
description?: string | undefined;
|
|
350
350
|
}[];
|
|
351
|
-
|
|
351
|
+
total: number;
|
|
352
352
|
membershipLabel?: string | undefined;
|
|
353
353
|
}>>;
|
|
354
354
|
readonly 'member-enrollment-form': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
|
|
@@ -390,14 +390,14 @@ declare const memberCards: {
|
|
|
390
390
|
required: zod.ZodBoolean;
|
|
391
391
|
url: zod.ZodOptional<zod.ZodString>;
|
|
392
392
|
}, "strip", zod.ZodTypeAny, {
|
|
393
|
-
required: boolean;
|
|
394
393
|
title: string;
|
|
394
|
+
required: boolean;
|
|
395
395
|
version: string;
|
|
396
396
|
consentId: string;
|
|
397
397
|
url?: string | undefined;
|
|
398
398
|
}, {
|
|
399
|
-
required: boolean;
|
|
400
399
|
title: string;
|
|
400
|
+
required: boolean;
|
|
401
401
|
version: string;
|
|
402
402
|
consentId: string;
|
|
403
403
|
url?: string | undefined;
|
|
@@ -415,6 +415,7 @@ declare const memberCards: {
|
|
|
415
415
|
manualNotice: zod.ZodOptional<zod.ZodString>;
|
|
416
416
|
}, "strip", zod.ZodTypeAny, {
|
|
417
417
|
userId: string;
|
|
418
|
+
state: "unknown" | "active" | "not_enrolled" | "closed";
|
|
418
419
|
authorization: {
|
|
419
420
|
status: "unavailable" | "required" | "authorized";
|
|
420
421
|
mobileMasked?: string | undefined;
|
|
@@ -429,11 +430,10 @@ declare const memberCards: {
|
|
|
429
430
|
prefill?: string | undefined;
|
|
430
431
|
placeholder?: string | undefined;
|
|
431
432
|
}[];
|
|
432
|
-
state: "unknown" | "active" | "not_enrolled" | "closed";
|
|
433
433
|
formVersion: string;
|
|
434
434
|
consents: {
|
|
435
|
-
required: boolean;
|
|
436
435
|
title: string;
|
|
436
|
+
required: boolean;
|
|
437
437
|
version: string;
|
|
438
438
|
consentId: string;
|
|
439
439
|
url?: string | undefined;
|
|
@@ -441,6 +441,7 @@ declare const memberCards: {
|
|
|
441
441
|
manualNotice?: string | undefined;
|
|
442
442
|
}, {
|
|
443
443
|
userId: string;
|
|
444
|
+
state: "unknown" | "active" | "not_enrolled" | "closed";
|
|
444
445
|
authorization: {
|
|
445
446
|
status: "unavailable" | "required" | "authorized";
|
|
446
447
|
mobileMasked?: string | undefined;
|
|
@@ -455,11 +456,10 @@ declare const memberCards: {
|
|
|
455
456
|
prefill?: string | undefined;
|
|
456
457
|
placeholder?: string | undefined;
|
|
457
458
|
}[];
|
|
458
|
-
state: "unknown" | "active" | "not_enrolled" | "closed";
|
|
459
459
|
formVersion: string;
|
|
460
460
|
consents: {
|
|
461
|
-
required: boolean;
|
|
462
461
|
title: string;
|
|
462
|
+
required: boolean;
|
|
463
463
|
version: string;
|
|
464
464
|
consentId: string;
|
|
465
465
|
url?: string | undefined;
|
|
@@ -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
|
-
message?: string | undefined;
|
|
477
|
+
state: "active" | "failed" | "pending_confirmation" | "confirmation_timeout";
|
|
479
478
|
memberRef?: string | undefined;
|
|
479
|
+
message?: string | undefined;
|
|
480
480
|
attemptRef?: string | undefined;
|
|
481
481
|
}, {
|
|
482
482
|
userId: string;
|
|
483
|
-
state: "
|
|
484
|
-
message?: string | undefined;
|
|
483
|
+
state: "active" | "failed" | "pending_confirmation" | "confirmation_timeout";
|
|
485
484
|
memberRef?: string | undefined;
|
|
485
|
+
message?: string | undefined;
|
|
486
486
|
attemptRef?: string | undefined;
|
|
487
487
|
}>>;
|
|
488
488
|
readonly 'member-enrollment-cta': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
|
|
@@ -495,16 +495,16 @@ declare const memberCards: {
|
|
|
495
495
|
perks: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
496
496
|
}, "strip", zod.ZodTypeAny, {
|
|
497
497
|
userId: string;
|
|
498
|
-
state: "not_enrolled" | "closed";
|
|
499
498
|
authState: "authenticated";
|
|
499
|
+
state: "not_enrolled" | "closed";
|
|
500
500
|
title?: string | undefined;
|
|
501
501
|
subtitle?: string | undefined;
|
|
502
502
|
enrollUrl?: string | undefined;
|
|
503
503
|
perks?: string[] | undefined;
|
|
504
504
|
}, {
|
|
505
505
|
userId: string;
|
|
506
|
-
state: "not_enrolled" | "closed";
|
|
507
506
|
authState: "authenticated";
|
|
507
|
+
state: "not_enrolled" | "closed";
|
|
508
508
|
title?: string | undefined;
|
|
509
509
|
subtitle?: string | undefined;
|
|
510
510
|
enrollUrl?: string | undefined;
|
|
@@ -541,19 +541,19 @@ declare const serverModule: {
|
|
|
541
541
|
labelRef: zod.ZodString;
|
|
542
542
|
name: zod.ZodString;
|
|
543
543
|
}, "strip", zod.ZodTypeAny, {
|
|
544
|
-
name: string;
|
|
545
544
|
labelRef: string;
|
|
546
|
-
}, {
|
|
547
545
|
name: string;
|
|
546
|
+
}, {
|
|
548
547
|
labelRef: string;
|
|
548
|
+
name: string;
|
|
549
549
|
}>, "many">;
|
|
550
550
|
}, "strip", zod.ZodTypeAny, {
|
|
551
551
|
userId: string;
|
|
552
|
-
state: "unknown" | "active" | "not_enrolled" | "closed";
|
|
553
552
|
authState: "authenticated" | "unauthenticated";
|
|
553
|
+
state: "unknown" | "active" | "not_enrolled" | "closed";
|
|
554
554
|
labels: {
|
|
555
|
-
name: string;
|
|
556
555
|
labelRef: string;
|
|
556
|
+
name: 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
|
-
state: "unknown" | "active" | "not_enrolled" | "closed";
|
|
566
565
|
authState: "authenticated" | "unauthenticated";
|
|
566
|
+
state: "unknown" | "active" | "not_enrolled" | "closed";
|
|
567
567
|
labels: {
|
|
568
|
-
name: string;
|
|
569
568
|
labelRef: string;
|
|
569
|
+
name: string;
|
|
570
570
|
}[];
|
|
571
571
|
displayName?: string | undefined;
|
|
572
572
|
avatarUrl?: string | undefined;
|
|
@@ -623,14 +623,14 @@ declare const serverModule: {
|
|
|
623
623
|
text: zod.ZodOptional<zod.ZodString>;
|
|
624
624
|
}, "strip", zod.ZodTypeAny, {
|
|
625
625
|
kind: "toast" | "miniapp" | "dialog";
|
|
626
|
+
title?: string | undefined;
|
|
626
627
|
url?: string | undefined;
|
|
627
628
|
text?: string | undefined;
|
|
628
|
-
title?: string | undefined;
|
|
629
629
|
}, {
|
|
630
630
|
kind: "toast" | "miniapp" | "dialog";
|
|
631
|
+
title?: string | undefined;
|
|
631
632
|
url?: string | undefined;
|
|
632
633
|
text?: string | undefined;
|
|
633
|
-
title?: string | undefined;
|
|
634
634
|
}>>;
|
|
635
635
|
}, "strip", zod.ZodTypeAny, {
|
|
636
636
|
name: string;
|
|
@@ -638,9 +638,9 @@ declare const serverModule: {
|
|
|
638
638
|
description?: string | undefined;
|
|
639
639
|
action?: {
|
|
640
640
|
kind: "toast" | "miniapp" | "dialog";
|
|
641
|
+
title?: string | undefined;
|
|
641
642
|
url?: string | undefined;
|
|
642
643
|
text?: string | undefined;
|
|
643
|
-
title?: string | undefined;
|
|
644
644
|
} | undefined;
|
|
645
645
|
iconUrl?: string | undefined;
|
|
646
646
|
}, {
|
|
@@ -649,9 +649,9 @@ declare const serverModule: {
|
|
|
649
649
|
description?: string | undefined;
|
|
650
650
|
action?: {
|
|
651
651
|
kind: "toast" | "miniapp" | "dialog";
|
|
652
|
+
title?: string | undefined;
|
|
652
653
|
url?: string | undefined;
|
|
653
654
|
text?: string | undefined;
|
|
654
|
-
title?: string | undefined;
|
|
655
655
|
} | undefined;
|
|
656
656
|
iconUrl?: string | undefined;
|
|
657
657
|
}>, "many">>;
|
|
@@ -666,8 +666,8 @@ declare const serverModule: {
|
|
|
666
666
|
query: string;
|
|
667
667
|
}>, "many">>;
|
|
668
668
|
}, "strip", zod.ZodTypeAny, {
|
|
669
|
-
status: "unknown" | "active" | "inactive" | "frozen" | "expired";
|
|
670
669
|
userId: string;
|
|
670
|
+
status: "unknown" | "active" | "inactive" | "frozen" | "expired";
|
|
671
671
|
cardRef: string;
|
|
672
672
|
cardDisplay: string;
|
|
673
673
|
availablePoints: number;
|
|
@@ -692,9 +692,9 @@ declare const serverModule: {
|
|
|
692
692
|
description?: string | undefined;
|
|
693
693
|
action?: {
|
|
694
694
|
kind: "toast" | "miniapp" | "dialog";
|
|
695
|
+
title?: string | undefined;
|
|
695
696
|
url?: string | undefined;
|
|
696
697
|
text?: string | undefined;
|
|
697
|
-
title?: string | undefined;
|
|
698
698
|
} | undefined;
|
|
699
699
|
iconUrl?: string | undefined;
|
|
700
700
|
}[] | undefined;
|
|
@@ -703,8 +703,8 @@ declare const serverModule: {
|
|
|
703
703
|
query: string;
|
|
704
704
|
}[] | undefined;
|
|
705
705
|
}, {
|
|
706
|
-
status: "unknown" | "active" | "inactive" | "frozen" | "expired";
|
|
707
706
|
userId: string;
|
|
707
|
+
status: "unknown" | "active" | "inactive" | "frozen" | "expired";
|
|
708
708
|
cardRef: string;
|
|
709
709
|
cardDisplay: string;
|
|
710
710
|
availablePoints: number;
|
|
@@ -729,9 +729,9 @@ declare const serverModule: {
|
|
|
729
729
|
description?: string | undefined;
|
|
730
730
|
action?: {
|
|
731
731
|
kind: "toast" | "miniapp" | "dialog";
|
|
732
|
+
title?: string | undefined;
|
|
732
733
|
url?: string | undefined;
|
|
733
734
|
text?: string | undefined;
|
|
734
|
-
title?: string | undefined;
|
|
735
735
|
} | undefined;
|
|
736
736
|
iconUrl?: string | undefined;
|
|
737
737
|
}[] | undefined;
|
|
@@ -751,42 +751,42 @@ declare const serverModule: {
|
|
|
751
751
|
usedAt: zod.ZodOptional<zod.ZodString>;
|
|
752
752
|
description: zod.ZodOptional<zod.ZodString>;
|
|
753
753
|
}, "strip", zod.ZodTypeAny, {
|
|
754
|
-
title: string;
|
|
755
754
|
usageRecordRef: string;
|
|
755
|
+
title: string;
|
|
756
756
|
amount: string;
|
|
757
|
-
description?: string | undefined;
|
|
758
757
|
usedAt?: string | undefined;
|
|
758
|
+
description?: string | undefined;
|
|
759
759
|
}, {
|
|
760
|
-
title: string;
|
|
761
760
|
usageRecordRef: string;
|
|
761
|
+
title: string;
|
|
762
762
|
amount: string;
|
|
763
|
-
description?: string | undefined;
|
|
764
763
|
usedAt?: string | undefined;
|
|
764
|
+
description?: string | undefined;
|
|
765
765
|
}>, "many">;
|
|
766
766
|
total: zod.ZodNumber;
|
|
767
767
|
}, "strip", zod.ZodTypeAny, {
|
|
768
768
|
userId: string;
|
|
769
|
-
|
|
769
|
+
balance: number;
|
|
770
770
|
items: {
|
|
771
|
-
title: string;
|
|
772
771
|
usageRecordRef: string;
|
|
772
|
+
title: string;
|
|
773
773
|
amount: string;
|
|
774
|
-
description?: string | undefined;
|
|
775
774
|
usedAt?: string | undefined;
|
|
775
|
+
description?: string | undefined;
|
|
776
776
|
}[];
|
|
777
|
-
|
|
777
|
+
total: number;
|
|
778
778
|
membershipLabel?: string | undefined;
|
|
779
779
|
}, {
|
|
780
780
|
userId: string;
|
|
781
|
-
|
|
781
|
+
balance: number;
|
|
782
782
|
items: {
|
|
783
|
-
title: string;
|
|
784
783
|
usageRecordRef: string;
|
|
784
|
+
title: string;
|
|
785
785
|
amount: string;
|
|
786
|
-
description?: string | undefined;
|
|
787
786
|
usedAt?: string | undefined;
|
|
787
|
+
description?: string | undefined;
|
|
788
788
|
}[];
|
|
789
|
-
|
|
789
|
+
total: number;
|
|
790
790
|
membershipLabel?: string | undefined;
|
|
791
791
|
}>>;
|
|
792
792
|
readonly 'member-enrollment-form': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
|
|
@@ -828,14 +828,14 @@ declare const serverModule: {
|
|
|
828
828
|
required: zod.ZodBoolean;
|
|
829
829
|
url: zod.ZodOptional<zod.ZodString>;
|
|
830
830
|
}, "strip", zod.ZodTypeAny, {
|
|
831
|
-
required: boolean;
|
|
832
831
|
title: string;
|
|
832
|
+
required: boolean;
|
|
833
833
|
version: string;
|
|
834
834
|
consentId: string;
|
|
835
835
|
url?: string | undefined;
|
|
836
836
|
}, {
|
|
837
|
-
required: boolean;
|
|
838
837
|
title: string;
|
|
838
|
+
required: boolean;
|
|
839
839
|
version: string;
|
|
840
840
|
consentId: string;
|
|
841
841
|
url?: string | undefined;
|
|
@@ -853,6 +853,7 @@ declare const serverModule: {
|
|
|
853
853
|
manualNotice: zod.ZodOptional<zod.ZodString>;
|
|
854
854
|
}, "strip", zod.ZodTypeAny, {
|
|
855
855
|
userId: string;
|
|
856
|
+
state: "unknown" | "active" | "not_enrolled" | "closed";
|
|
856
857
|
authorization: {
|
|
857
858
|
status: "unavailable" | "required" | "authorized";
|
|
858
859
|
mobileMasked?: string | undefined;
|
|
@@ -867,11 +868,10 @@ declare const serverModule: {
|
|
|
867
868
|
prefill?: string | undefined;
|
|
868
869
|
placeholder?: string | undefined;
|
|
869
870
|
}[];
|
|
870
|
-
state: "unknown" | "active" | "not_enrolled" | "closed";
|
|
871
871
|
formVersion: string;
|
|
872
872
|
consents: {
|
|
873
|
-
required: boolean;
|
|
874
873
|
title: string;
|
|
874
|
+
required: boolean;
|
|
875
875
|
version: string;
|
|
876
876
|
consentId: string;
|
|
877
877
|
url?: string | undefined;
|
|
@@ -879,6 +879,7 @@ declare const serverModule: {
|
|
|
879
879
|
manualNotice?: string | undefined;
|
|
880
880
|
}, {
|
|
881
881
|
userId: string;
|
|
882
|
+
state: "unknown" | "active" | "not_enrolled" | "closed";
|
|
882
883
|
authorization: {
|
|
883
884
|
status: "unavailable" | "required" | "authorized";
|
|
884
885
|
mobileMasked?: string | undefined;
|
|
@@ -893,11 +894,10 @@ declare const serverModule: {
|
|
|
893
894
|
prefill?: string | undefined;
|
|
894
895
|
placeholder?: string | undefined;
|
|
895
896
|
}[];
|
|
896
|
-
state: "unknown" | "active" | "not_enrolled" | "closed";
|
|
897
897
|
formVersion: string;
|
|
898
898
|
consents: {
|
|
899
|
-
required: boolean;
|
|
900
899
|
title: string;
|
|
900
|
+
required: boolean;
|
|
901
901
|
version: string;
|
|
902
902
|
consentId: string;
|
|
903
903
|
url?: string | undefined;
|
|
@@ -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
|
-
message?: string | undefined;
|
|
915
|
+
state: "active" | "failed" | "pending_confirmation" | "confirmation_timeout";
|
|
917
916
|
memberRef?: string | undefined;
|
|
917
|
+
message?: string | undefined;
|
|
918
918
|
attemptRef?: string | undefined;
|
|
919
919
|
}, {
|
|
920
920
|
userId: string;
|
|
921
|
-
state: "
|
|
922
|
-
message?: string | undefined;
|
|
921
|
+
state: "active" | "failed" | "pending_confirmation" | "confirmation_timeout";
|
|
923
922
|
memberRef?: string | undefined;
|
|
923
|
+
message?: string | undefined;
|
|
924
924
|
attemptRef?: string | undefined;
|
|
925
925
|
}>>;
|
|
926
926
|
readonly 'member-enrollment-cta': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
|
|
@@ -933,16 +933,16 @@ declare const serverModule: {
|
|
|
933
933
|
perks: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
934
934
|
}, "strip", zod.ZodTypeAny, {
|
|
935
935
|
userId: string;
|
|
936
|
-
state: "not_enrolled" | "closed";
|
|
937
936
|
authState: "authenticated";
|
|
937
|
+
state: "not_enrolled" | "closed";
|
|
938
938
|
title?: string | undefined;
|
|
939
939
|
subtitle?: string | undefined;
|
|
940
940
|
enrollUrl?: string | undefined;
|
|
941
941
|
perks?: string[] | undefined;
|
|
942
942
|
}, {
|
|
943
943
|
userId: string;
|
|
944
|
-
state: "not_enrolled" | "closed";
|
|
945
944
|
authState: "authenticated";
|
|
945
|
+
state: "not_enrolled" | "closed";
|
|
946
946
|
title?: string | undefined;
|
|
947
947
|
subtitle?: string | undefined;
|
|
948
948
|
enrollUrl?: string | undefined;
|
package/dist/server/index.js
CHANGED
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.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "商圈会员模块:会员账户、会员卡、积分流水与入会流程(codegen 源)。",
|
|
6
6
|
"exports": {
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@tbox.cn/app-contracts": "1.0.0-alpha.
|
|
22
|
-
"@tbox.cn/app-contracts
|
|
23
|
-
"@tbox.cn/app-agent-sdk-client": "1.0.0-alpha.
|
|
24
|
-
"@tbox.cn/app-agent-sdk-server": "1.0.0-alpha.
|
|
21
|
+
"@tbox.cn/app-contracts-mall": "1.0.0-alpha.7",
|
|
22
|
+
"@tbox.cn/app-contracts": "1.0.0-alpha.7",
|
|
23
|
+
"@tbox.cn/app-agent-sdk-client": "1.0.0-alpha.7",
|
|
24
|
+
"@tbox.cn/app-agent-sdk-server": "1.0.0-alpha.7"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"zod": "3.25.76",
|
|
@@ -60,9 +60,6 @@
|
|
|
60
60
|
"access": "public"
|
|
61
61
|
},
|
|
62
62
|
"license": "MIT",
|
|
63
|
-
"sideEffects": [
|
|
64
|
-
"**/*.css"
|
|
65
|
-
],
|
|
66
63
|
"scripts": {
|
|
67
64
|
"typecheck": "tsc --noEmit",
|
|
68
65
|
"test": "vitest run",
|