@tbox.cn/app-module-member 1.0.0-alpha.8 → 1.0.0-alpha.9

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.
@@ -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;
@@ -185,13 +185,13 @@ 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;
189
188
  text?: string | undefined;
189
+ title?: string | undefined;
190
190
  url?: string | undefined;
191
191
  }, {
192
192
  kind: "toast" | "miniapp" | "dialog";
193
- title?: string | undefined;
194
193
  text?: string | undefined;
194
+ title?: string | undefined;
195
195
  url?: string | undefined;
196
196
  }>>;
197
197
  }, "strip", zod.ZodTypeAny, {
@@ -200,8 +200,8 @@ declare const memberCards: {
200
200
  description?: string | undefined;
201
201
  action?: {
202
202
  kind: "toast" | "miniapp" | "dialog";
203
- title?: string | undefined;
204
203
  text?: string | undefined;
204
+ title?: string | undefined;
205
205
  url?: string | undefined;
206
206
  } | undefined;
207
207
  iconUrl?: string | undefined;
@@ -211,8 +211,8 @@ declare const memberCards: {
211
211
  description?: string | undefined;
212
212
  action?: {
213
213
  kind: "toast" | "miniapp" | "dialog";
214
- title?: string | undefined;
215
214
  text?: string | undefined;
215
+ title?: string | undefined;
216
216
  url?: string | undefined;
217
217
  } | undefined;
218
218
  iconUrl?: string | undefined;
@@ -228,8 +228,8 @@ 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;
@@ -254,8 +254,8 @@ declare const memberCards: {
254
254
  description?: string | undefined;
255
255
  action?: {
256
256
  kind: "toast" | "miniapp" | "dialog";
257
- title?: string | undefined;
258
257
  text?: string | undefined;
258
+ title?: string | undefined;
259
259
  url?: string | undefined;
260
260
  } | undefined;
261
261
  iconUrl?: string | undefined;
@@ -265,8 +265,8 @@ declare const memberCards: {
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;
@@ -291,8 +291,8 @@ declare const memberCards: {
291
291
  description?: string | undefined;
292
292
  action?: {
293
293
  kind: "toast" | "miniapp" | "dialog";
294
- title?: string | undefined;
295
294
  text?: string | undefined;
295
+ title?: string | undefined;
296
296
  url?: string | undefined;
297
297
  } | undefined;
298
298
  iconUrl?: string | 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
- usageRecordRef: string;
317
316
  title: string;
318
317
  amount: string;
319
- usedAt?: string | undefined;
318
+ usageRecordRef: string;
320
319
  description?: string | undefined;
320
+ usedAt?: string | undefined;
321
321
  }, {
322
- usageRecordRef: string;
323
322
  title: string;
324
323
  amount: string;
325
- usedAt?: string | undefined;
324
+ usageRecordRef: string;
326
325
  description?: string | undefined;
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
- usageRecordRef: string;
334
331
  title: string;
335
332
  amount: string;
336
- usedAt?: string | undefined;
333
+ usageRecordRef: string;
337
334
  description?: string | undefined;
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
- usageRecordRef: string;
346
343
  title: string;
347
344
  amount: string;
348
- usedAt?: string | undefined;
345
+ usageRecordRef: string;
349
346
  description?: string | undefined;
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<{
@@ -415,7 +415,6 @@ 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";
419
418
  authorization: {
420
419
  status: "unavailable" | "required" | "authorized";
421
420
  mobileMasked?: string | undefined;
@@ -430,6 +429,7 @@ declare const memberCards: {
430
429
  prefill?: string | undefined;
431
430
  placeholder?: string | undefined;
432
431
  }[];
432
+ state: "unknown" | "active" | "not_enrolled" | "closed";
433
433
  formVersion: string;
434
434
  consents: {
435
435
  title: string;
@@ -441,7 +441,6 @@ declare const memberCards: {
441
441
  manualNotice?: string | undefined;
442
442
  }, {
443
443
  userId: string;
444
- state: "unknown" | "active" | "not_enrolled" | "closed";
445
444
  authorization: {
446
445
  status: "unavailable" | "required" | "authorized";
447
446
  mobileMasked?: string | undefined;
@@ -456,6 +455,7 @@ declare const memberCards: {
456
455
  prefill?: string | undefined;
457
456
  placeholder?: string | undefined;
458
457
  }[];
458
+ state: "unknown" | "active" | "not_enrolled" | "closed";
459
459
  formVersion: string;
460
460
  consents: {
461
461
  title: string;
@@ -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: "active" | "failed" | "pending_confirmation" | "confirmation_timeout";
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: "active" | "failed" | "pending_confirmation" | "confirmation_timeout";
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,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
- authState: "authenticated";
499
498
  state: "not_enrolled" | "closed";
499
+ authState: "authenticated";
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
- authState: "authenticated";
507
506
  state: "not_enrolled" | "closed";
507
+ authState: "authenticated";
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
- 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;
@@ -623,13 +623,13 @@ 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;
627
626
  text?: string | undefined;
627
+ title?: string | undefined;
628
628
  url?: string | undefined;
629
629
  }, {
630
630
  kind: "toast" | "miniapp" | "dialog";
631
- title?: string | undefined;
632
631
  text?: string | undefined;
632
+ title?: string | undefined;
633
633
  url?: string | undefined;
634
634
  }>>;
635
635
  }, "strip", zod.ZodTypeAny, {
@@ -638,8 +638,8 @@ declare const serverModule: {
638
638
  description?: string | undefined;
639
639
  action?: {
640
640
  kind: "toast" | "miniapp" | "dialog";
641
- title?: string | undefined;
642
641
  text?: string | undefined;
642
+ title?: string | undefined;
643
643
  url?: string | undefined;
644
644
  } | undefined;
645
645
  iconUrl?: string | undefined;
@@ -649,8 +649,8 @@ declare const serverModule: {
649
649
  description?: string | undefined;
650
650
  action?: {
651
651
  kind: "toast" | "miniapp" | "dialog";
652
- title?: string | undefined;
653
652
  text?: string | undefined;
653
+ title?: string | undefined;
654
654
  url?: string | undefined;
655
655
  } | undefined;
656
656
  iconUrl?: string | undefined;
@@ -666,8 +666,8 @@ 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;
@@ -692,8 +692,8 @@ declare const serverModule: {
692
692
  description?: string | undefined;
693
693
  action?: {
694
694
  kind: "toast" | "miniapp" | "dialog";
695
- title?: string | undefined;
696
695
  text?: string | undefined;
696
+ title?: string | undefined;
697
697
  url?: string | undefined;
698
698
  } | undefined;
699
699
  iconUrl?: string | undefined;
@@ -703,8 +703,8 @@ declare const serverModule: {
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;
@@ -729,8 +729,8 @@ declare const serverModule: {
729
729
  description?: string | undefined;
730
730
  action?: {
731
731
  kind: "toast" | "miniapp" | "dialog";
732
- title?: string | undefined;
733
732
  text?: string | undefined;
733
+ title?: string | undefined;
734
734
  url?: string | undefined;
735
735
  } | undefined;
736
736
  iconUrl?: string | 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
- usageRecordRef: string;
755
754
  title: string;
756
755
  amount: string;
757
- usedAt?: string | undefined;
756
+ usageRecordRef: string;
758
757
  description?: string | undefined;
758
+ usedAt?: string | undefined;
759
759
  }, {
760
- usageRecordRef: string;
761
760
  title: string;
762
761
  amount: string;
763
- usedAt?: string | undefined;
762
+ usageRecordRef: string;
764
763
  description?: string | undefined;
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
- usageRecordRef: string;
772
769
  title: string;
773
770
  amount: string;
774
- usedAt?: string | undefined;
771
+ usageRecordRef: string;
775
772
  description?: string | undefined;
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
- usageRecordRef: string;
784
781
  title: string;
785
782
  amount: string;
786
- usedAt?: string | undefined;
783
+ usageRecordRef: string;
787
784
  description?: string | undefined;
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<{
@@ -853,7 +853,6 @@ 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";
857
856
  authorization: {
858
857
  status: "unavailable" | "required" | "authorized";
859
858
  mobileMasked?: string | undefined;
@@ -868,6 +867,7 @@ declare const serverModule: {
868
867
  prefill?: string | undefined;
869
868
  placeholder?: string | undefined;
870
869
  }[];
870
+ state: "unknown" | "active" | "not_enrolled" | "closed";
871
871
  formVersion: string;
872
872
  consents: {
873
873
  title: string;
@@ -879,7 +879,6 @@ declare const serverModule: {
879
879
  manualNotice?: string | undefined;
880
880
  }, {
881
881
  userId: string;
882
- state: "unknown" | "active" | "not_enrolled" | "closed";
883
882
  authorization: {
884
883
  status: "unavailable" | "required" | "authorized";
885
884
  mobileMasked?: string | undefined;
@@ -894,6 +893,7 @@ declare const serverModule: {
894
893
  prefill?: string | undefined;
895
894
  placeholder?: string | undefined;
896
895
  }[];
896
+ state: "unknown" | "active" | "not_enrolled" | "closed";
897
897
  formVersion: string;
898
898
  consents: {
899
899
  title: string;
@@ -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: "active" | "failed" | "pending_confirmation" | "confirmation_timeout";
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: "active" | "failed" | "pending_confirmation" | "confirmation_timeout";
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,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
- authState: "authenticated";
937
936
  state: "not_enrolled" | "closed";
937
+ authState: "authenticated";
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
- authState: "authenticated";
945
944
  state: "not_enrolled" | "closed";
945
+ authState: "authenticated";
946
946
  title?: string | undefined;
947
947
  subtitle?: string | undefined;
948
948
  enrollUrl?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tbox.cn/app-module-member",
3
- "version": "1.0.0-alpha.8",
3
+ "version": "1.0.0-alpha.9",
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.8",
22
- "@tbox.cn/app-agent-sdk-client": "1.0.0-alpha.8",
23
- "@tbox.cn/app-contracts-mall": "1.0.0-alpha.8",
24
- "@tbox.cn/app-agent-sdk-server": "1.0.0-alpha.8"
21
+ "@tbox.cn/app-contracts": "1.0.0-alpha.9",
22
+ "@tbox.cn/app-contracts-mall": "1.0.0-alpha.9",
23
+ "@tbox.cn/app-agent-sdk-client": "1.0.0-alpha.9",
24
+ "@tbox.cn/app-agent-sdk-server": "1.0.0-alpha.9"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "zod": "3.25.76",