@tbox.cn/app-module-member 0.9.3 → 0.9.4

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.
@@ -335,7 +335,9 @@ var meta3 = {
335
335
  items: [{ usageRecordRef: "r1", title: "\u6D88\u8D39\u5956\u52B1", amount: "+100", usedAt: "2026-08-13T00:00:00Z" }],
336
336
  total: 1
337
337
  },
338
- schemaVersion: 1
338
+ schemaVersion: 1,
339
+ // 永久型不出卡:积分流水仅作文本事实(queryPoints SKILL 9-03),不构造积分流水卡
340
+ hidden: true
339
341
  };
340
342
  var meta_default3 = meta3;
341
343
 
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  resolveMemberEnrollmentPort,
8
8
  resolveMemberProfilePort,
9
9
  serverModule
10
- } from "./chunk-ALVM7SOF.js";
10
+ } from "./chunk-T3VRIVI4.js";
11
11
  import {
12
12
  clientModule
13
13
  } from "./chunk-GMHJMLRV.js";
@@ -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
  url?: string | undefined;
189
+ title?: string | undefined;
190
190
  text?: string | undefined;
191
191
  }, {
192
192
  kind: "toast" | "miniapp" | "dialog";
193
- title?: string | undefined;
194
193
  url?: string | undefined;
194
+ title?: string | undefined;
195
195
  text?: 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
  url?: string | undefined;
204
+ title?: string | undefined;
205
205
  text?: 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
  url?: string | undefined;
215
+ title?: string | undefined;
216
216
  text?: 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
  url?: string | undefined;
258
+ title?: string | undefined;
259
259
  text?: 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
  url?: string | undefined;
295
+ title?: string | undefined;
296
296
  text?: 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;
317
+ usageRecordRef: string;
318
318
  amount: string;
319
- usedAt?: string | undefined;
320
319
  description?: string | undefined;
320
+ usedAt?: string | undefined;
321
321
  }, {
322
- usageRecordRef: string;
323
322
  title: string;
323
+ usageRecordRef: string;
324
324
  amount: string;
325
- usedAt?: string | undefined;
326
325
  description?: string | undefined;
326
+ usedAt?: string | undefined;
327
327
  }>, "many">;
328
328
  total: zod.ZodNumber;
329
329
  }, "strip", zod.ZodTypeAny, {
330
330
  userId: string;
331
- balance: number;
331
+ total: number;
332
332
  items: {
333
- usageRecordRef: string;
334
333
  title: string;
334
+ usageRecordRef: string;
335
335
  amount: string;
336
- usedAt?: string | undefined;
337
336
  description?: string | undefined;
337
+ usedAt?: string | undefined;
338
338
  }[];
339
- total: number;
339
+ balance: number;
340
340
  membershipLabel?: string | undefined;
341
341
  }, {
342
342
  userId: string;
343
- balance: number;
343
+ total: number;
344
344
  items: {
345
- usageRecordRef: string;
346
345
  title: string;
346
+ usageRecordRef: string;
347
347
  amount: string;
348
- usedAt?: string | undefined;
349
348
  description?: string | undefined;
349
+ usedAt?: string | undefined;
350
350
  }[];
351
- total: number;
351
+ balance: 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
- title: string;
394
393
  required: boolean;
394
+ title: string;
395
395
  version: string;
396
396
  consentId: string;
397
397
  url?: string | undefined;
398
398
  }, {
399
- title: string;
400
399
  required: boolean;
400
+ title: string;
401
401
  version: string;
402
402
  consentId: string;
403
403
  url?: string | undefined;
@@ -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,10 +429,11 @@ 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
- title: string;
436
435
  required: boolean;
436
+ title: string;
437
437
  version: string;
438
438
  consentId: string;
439
439
  url?: string | undefined;
@@ -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,10 +455,11 @@ 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
- title: string;
462
461
  required: boolean;
462
+ title: string;
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: "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
  url?: string | undefined;
627
+ title?: string | undefined;
628
628
  text?: string | undefined;
629
629
  }, {
630
630
  kind: "toast" | "miniapp" | "dialog";
631
- title?: string | undefined;
632
631
  url?: string | undefined;
632
+ title?: string | undefined;
633
633
  text?: 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
  url?: string | undefined;
642
+ title?: string | undefined;
643
643
  text?: 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
  url?: string | undefined;
653
+ title?: string | undefined;
654
654
  text?: 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
  url?: string | undefined;
696
+ title?: string | undefined;
697
697
  text?: 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
  url?: string | undefined;
733
+ title?: string | undefined;
734
734
  text?: 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;
755
+ usageRecordRef: string;
756
756
  amount: string;
757
- usedAt?: string | undefined;
758
757
  description?: string | undefined;
758
+ usedAt?: string | undefined;
759
759
  }, {
760
- usageRecordRef: string;
761
760
  title: string;
761
+ usageRecordRef: string;
762
762
  amount: string;
763
- usedAt?: string | undefined;
764
763
  description?: string | undefined;
764
+ usedAt?: string | undefined;
765
765
  }>, "many">;
766
766
  total: zod.ZodNumber;
767
767
  }, "strip", zod.ZodTypeAny, {
768
768
  userId: string;
769
- balance: number;
769
+ total: number;
770
770
  items: {
771
- usageRecordRef: string;
772
771
  title: string;
772
+ usageRecordRef: string;
773
773
  amount: string;
774
- usedAt?: string | undefined;
775
774
  description?: string | undefined;
775
+ usedAt?: string | undefined;
776
776
  }[];
777
- total: number;
777
+ balance: number;
778
778
  membershipLabel?: string | undefined;
779
779
  }, {
780
780
  userId: string;
781
- balance: number;
781
+ total: number;
782
782
  items: {
783
- usageRecordRef: string;
784
783
  title: string;
784
+ usageRecordRef: string;
785
785
  amount: string;
786
- usedAt?: string | undefined;
787
786
  description?: string | undefined;
787
+ usedAt?: string | undefined;
788
788
  }[];
789
- total: number;
789
+ balance: 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
- title: string;
832
831
  required: boolean;
832
+ title: string;
833
833
  version: string;
834
834
  consentId: string;
835
835
  url?: string | undefined;
836
836
  }, {
837
- title: string;
838
837
  required: boolean;
838
+ title: string;
839
839
  version: string;
840
840
  consentId: string;
841
841
  url?: string | undefined;
@@ -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,10 +867,11 @@ 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
- title: string;
874
873
  required: boolean;
874
+ title: string;
875
875
  version: string;
876
876
  consentId: string;
877
877
  url?: string | undefined;
@@ -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,10 +893,11 @@ 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
- title: string;
900
899
  required: boolean;
900
+ title: string;
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: "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;
@@ -7,7 +7,7 @@ import {
7
7
  resolveMemberEnrollmentPort,
8
8
  resolveMemberProfilePort,
9
9
  serverModule
10
- } from "../chunk-ALVM7SOF.js";
10
+ } from "../chunk-T3VRIVI4.js";
11
11
  export {
12
12
  InMemoryMemberService,
13
13
  memberCards,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tbox.cn/app-module-member",
3
- "version": "0.9.3",
3
+ "version": "0.9.4",
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": "0.12.0",
21
+ "@tbox.cn/app-contracts": "0.12.1",
22
22
  "@tbox.cn/app-contracts-mall": "0.12.1",
23
23
  "@tbox.cn/app-agent-sdk-client": "0.1.1",
24
- "@tbox.cn/app-agent-sdk-server": "0.1.1"
24
+ "@tbox.cn/app-agent-sdk-server": "0.1.2"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "zod": "3.25.76",
@@ -14,6 +14,8 @@ const meta: CardMeta<typeof memberPointUsageListCardDataSchema> = {
14
14
  total: 1,
15
15
  },
16
16
  schemaVersion: 1,
17
+ // 永久型不出卡:积分流水仅作文本事实(queryPoints SKILL 9-03),不构造积分流水卡
18
+ hidden: true,
17
19
  };
18
20
 
19
21
  export default meta;