@tbox.cn/app-module-member 1.0.0-alpha.1 → 1.0.0-alpha.11

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  clientModule
3
- } from "../chunk-GMHJMLRV.js";
3
+ } from "../chunk-O7IULIMR.js";
4
4
  export {
5
5
  clientModule
6
6
  };
package/dist/index.js CHANGED
@@ -7,10 +7,10 @@ import {
7
7
  resolveMemberEnrollmentPort,
8
8
  resolveMemberProfilePort,
9
9
  serverModule
10
- } from "./chunk-DSFXLULX.js";
10
+ } from "./chunk-6JWXQAHX.js";
11
11
  import {
12
12
  clientModule
13
- } from "./chunk-GMHJMLRV.js";
13
+ } from "./chunk-O7IULIMR.js";
14
14
  export {
15
15
  InMemoryMemberService,
16
16
  clientModule,
@@ -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
- url?: string | undefined;
189
188
  text?: string | undefined;
190
189
  title?: string | undefined;
190
+ url?: string | undefined;
191
191
  }, {
192
192
  kind: "toast" | "miniapp" | "dialog";
193
- url?: string | undefined;
194
193
  text?: string | undefined;
195
194
  title?: string | undefined;
195
+ url?: 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
- url?: string | undefined;
204
203
  text?: string | undefined;
205
204
  title?: string | undefined;
205
+ url?: 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
- url?: string | undefined;
215
214
  text?: string | undefined;
216
215
  title?: string | undefined;
216
+ url?: string | undefined;
217
217
  } | undefined;
218
218
  iconUrl?: string | undefined;
219
219
  }>, "many">>;
@@ -254,9 +254,9 @@ declare const memberCards: {
254
254
  description?: string | undefined;
255
255
  action?: {
256
256
  kind: "toast" | "miniapp" | "dialog";
257
- url?: string | undefined;
258
257
  text?: string | undefined;
259
258
  title?: string | undefined;
259
+ url?: string | undefined;
260
260
  } | undefined;
261
261
  iconUrl?: string | undefined;
262
262
  }[] | undefined;
@@ -291,9 +291,9 @@ declare const memberCards: {
291
291
  description?: string | undefined;
292
292
  action?: {
293
293
  kind: "toast" | "miniapp" | "dialog";
294
- url?: string | undefined;
295
294
  text?: string | undefined;
296
295
  title?: string | undefined;
296
+ url?: string | undefined;
297
297
  } | undefined;
298
298
  iconUrl?: string | undefined;
299
299
  }[] | undefined;
@@ -314,40 +314,40 @@ 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
- total: 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
  }[];
337
+ total: number;
338
+ userId: string;
339
339
  balance: number;
340
340
  membershipLabel?: string | undefined;
341
341
  }, {
342
- userId: string;
343
- total: number;
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
  }[];
349
+ total: number;
350
+ userId: string;
351
351
  balance: number;
352
352
  membershipLabel?: string | undefined;
353
353
  }>>;
@@ -366,8 +366,8 @@ 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
- required: boolean;
370
369
  label: string;
370
+ required: boolean;
371
371
  fieldId: string;
372
372
  options?: string[] | undefined;
373
373
  readOnly?: boolean | undefined;
@@ -375,8 +375,8 @@ declare const memberCards: {
375
375
  placeholder?: string | undefined;
376
376
  }, {
377
377
  type: "date" | "text" | "tel" | "select";
378
- required: boolean;
379
378
  label: string;
379
+ required: boolean;
380
380
  fieldId: string;
381
381
  options?: string[] | undefined;
382
382
  readOnly?: boolean | undefined;
@@ -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;
@@ -421,8 +421,8 @@ declare const memberCards: {
421
421
  };
422
422
  fields: {
423
423
  type: "date" | "text" | "tel" | "select";
424
- required: boolean;
425
424
  label: string;
425
+ required: boolean;
426
426
  fieldId: string;
427
427
  options?: string[] | undefined;
428
428
  readOnly?: boolean | undefined;
@@ -432,8 +432,8 @@ declare const memberCards: {
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;
@@ -447,8 +447,8 @@ declare const memberCards: {
447
447
  };
448
448
  fields: {
449
449
  type: "date" | "text" | "tel" | "select";
450
- required: boolean;
451
450
  label: string;
451
+ required: boolean;
452
452
  fieldId: string;
453
453
  options?: string[] | undefined;
454
454
  readOnly?: boolean | undefined;
@@ -458,8 +458,8 @@ declare const memberCards: {
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;
@@ -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
- url?: string | undefined;
627
626
  text?: string | undefined;
628
627
  title?: string | undefined;
628
+ url?: string | undefined;
629
629
  }, {
630
630
  kind: "toast" | "miniapp" | "dialog";
631
- url?: string | undefined;
632
631
  text?: string | undefined;
633
632
  title?: string | undefined;
633
+ url?: 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
- url?: string | undefined;
642
641
  text?: string | undefined;
643
642
  title?: string | undefined;
643
+ url?: 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
- url?: string | undefined;
653
652
  text?: string | undefined;
654
653
  title?: string | undefined;
654
+ url?: string | undefined;
655
655
  } | undefined;
656
656
  iconUrl?: string | undefined;
657
657
  }>, "many">>;
@@ -692,9 +692,9 @@ declare const serverModule: {
692
692
  description?: string | undefined;
693
693
  action?: {
694
694
  kind: "toast" | "miniapp" | "dialog";
695
- url?: string | undefined;
696
695
  text?: string | undefined;
697
696
  title?: string | undefined;
697
+ url?: string | undefined;
698
698
  } | undefined;
699
699
  iconUrl?: string | undefined;
700
700
  }[] | undefined;
@@ -729,9 +729,9 @@ declare const serverModule: {
729
729
  description?: string | undefined;
730
730
  action?: {
731
731
  kind: "toast" | "miniapp" | "dialog";
732
- url?: string | undefined;
733
732
  text?: string | undefined;
734
733
  title?: string | undefined;
734
+ url?: string | undefined;
735
735
  } | undefined;
736
736
  iconUrl?: string | undefined;
737
737
  }[] | undefined;
@@ -752,40 +752,40 @@ 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
- total: 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
  }[];
775
+ total: number;
776
+ userId: string;
777
777
  balance: number;
778
778
  membershipLabel?: string | undefined;
779
779
  }, {
780
- userId: string;
781
- total: number;
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
  }[];
787
+ total: number;
788
+ userId: string;
789
789
  balance: number;
790
790
  membershipLabel?: string | undefined;
791
791
  }>>;
@@ -804,8 +804,8 @@ 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
- required: boolean;
808
807
  label: string;
808
+ required: boolean;
809
809
  fieldId: string;
810
810
  options?: string[] | undefined;
811
811
  readOnly?: boolean | undefined;
@@ -813,8 +813,8 @@ declare const serverModule: {
813
813
  placeholder?: string | undefined;
814
814
  }, {
815
815
  type: "date" | "text" | "tel" | "select";
816
- required: boolean;
817
816
  label: string;
817
+ required: boolean;
818
818
  fieldId: string;
819
819
  options?: string[] | undefined;
820
820
  readOnly?: boolean | undefined;
@@ -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;
@@ -859,8 +859,8 @@ declare const serverModule: {
859
859
  };
860
860
  fields: {
861
861
  type: "date" | "text" | "tel" | "select";
862
- required: boolean;
863
862
  label: string;
863
+ required: boolean;
864
864
  fieldId: string;
865
865
  options?: string[] | undefined;
866
866
  readOnly?: boolean | undefined;
@@ -870,8 +870,8 @@ declare const serverModule: {
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;
@@ -885,8 +885,8 @@ declare const serverModule: {
885
885
  };
886
886
  fields: {
887
887
  type: "date" | "text" | "tel" | "select";
888
- required: boolean;
889
888
  label: string;
889
+ required: boolean;
890
890
  fieldId: string;
891
891
  options?: string[] | undefined;
892
892
  readOnly?: boolean | undefined;
@@ -896,8 +896,8 @@ declare const serverModule: {
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;
@@ -7,7 +7,7 @@ import {
7
7
  resolveMemberEnrollmentPort,
8
8
  resolveMemberProfilePort,
9
9
  serverModule
10
- } from "../chunk-DSFXLULX.js";
10
+ } from "../chunk-6JWXQAHX.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": "1.0.0-alpha.1",
3
+ "version": "1.0.0-alpha.11",
4
4
  "type": "module",
5
5
  "description": "商圈会员模块:会员账户、会员卡、积分流水与入会流程(codegen 源)。",
6
6
  "exports": {
@@ -18,16 +18,17 @@
18
18
  }
19
19
  },
20
20
  "dependencies": {
21
- "@tbox.cn/app-contracts": "1.0.0-alpha.1",
22
- "@tbox.cn/app-contracts-mall": "1.0.0-alpha.1",
23
- "@tbox.cn/app-agent-sdk-client": "1.0.0-alpha.1",
24
- "@tbox.cn/app-agent-sdk-server": "1.0.0-alpha.1"
21
+ "@tbox.cn/app-contracts": "1.0.0-alpha.11",
22
+ "@tbox.cn/app-contracts-mall": "1.0.0-alpha.11",
23
+ "@tbox.cn/app-agent-sdk-server": "1.0.0-alpha.11",
24
+ "@tbox.cn/app-agent-sdk-client": "1.0.0-alpha.11"
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
- "@phosphor-icons/react": "2.1.10"
30
+ "@phosphor-icons/react": "2.1.10",
31
+ "@tbox.cn/app-agent-ui-kit": "^1.0.0-alpha.11"
31
32
  },
32
33
  "devDependencies": {
33
34
  "@types/react": "18.3.31",
@@ -60,9 +61,11 @@
60
61
  "access": "public"
61
62
  },
62
63
  "license": "MIT",
63
- "sideEffects": [
64
- "**/*.css"
65
- ],
64
+ "peerDependenciesMeta": {
65
+ "@tbox.cn/app-agent-ui-kit": {
66
+ "optional": true
67
+ }
68
+ },
66
69
  "scripts": {
67
70
  "typecheck": "tsc --noEmit",
68
71
  "test": "vitest run",