@tbox.cn/app-contracts-mall 0.18.0 → 1.0.0-alpha.10

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.
@@ -172,7 +172,6 @@ export declare const activityPlayPrizeListResultSchema: z.ZodObject<{
172
172
  usageRuleText?: string | undefined;
173
173
  }>, "many">;
174
174
  }, "strict", z.ZodTypeAny, {
175
- total: number;
176
175
  items: {
177
176
  title: string;
178
177
  prizeRecordRef: string;
@@ -185,8 +184,8 @@ export declare const activityPlayPrizeListResultSchema: z.ZodObject<{
185
184
  wonAt?: string | undefined;
186
185
  usageRuleText?: string | undefined;
187
186
  }[];
188
- }, {
189
187
  total: number;
188
+ }, {
190
189
  items: {
191
190
  title: string;
192
191
  prizeRecordRef: string;
@@ -199,6 +198,7 @@ export declare const activityPlayPrizeListResultSchema: z.ZodObject<{
199
198
  wonAt?: string | undefined;
200
199
  usageRuleText?: string | undefined;
201
200
  }[];
201
+ total: number;
202
202
  }>;
203
203
  /** 奖品记录(列表条目形态) */
204
204
  export type ActivityPlayPrizeRecord = z.infer<typeof activityPlayPrizeRecordSchema>;
@@ -22,6 +22,18 @@ export interface ActivityPlayActivity {
22
22
  readonly description?: string;
23
23
  /** HTTPS 封面地址 */
24
24
  readonly imageUrl?: string;
25
+ /** 详情主图;缺省使用列表封面。 */
26
+ readonly detailCoverUrl?: string;
27
+ readonly participationRules?: {
28
+ readonly ruleTexts: readonly string[];
29
+ };
30
+ readonly rewardSummary?: {
31
+ readonly items: readonly {
32
+ readonly title: string;
33
+ readonly tierName: string;
34
+ readonly imageUrl?: string;
35
+ }[];
36
+ };
25
37
  /** 含时区的 ISO 时间;缺失表示供应商未提供该事实,不编造 */
26
38
  readonly startsAt?: string;
27
39
  readonly endsAt?: string;
@@ -56,23 +68,80 @@ export declare const activityPlayActivitySchema: z.ZodObject<{
56
68
  title: z.ZodString;
57
69
  description: z.ZodOptional<z.ZodString>;
58
70
  imageUrl: z.ZodOptional<z.ZodString>;
71
+ detailCoverUrl: z.ZodOptional<z.ZodString>;
72
+ participationRules: z.ZodOptional<z.ZodObject<{
73
+ ruleTexts: z.ZodArray<z.ZodString, "many">;
74
+ }, "strict", z.ZodTypeAny, {
75
+ ruleTexts: string[];
76
+ }, {
77
+ ruleTexts: string[];
78
+ }>>;
79
+ rewardSummary: z.ZodOptional<z.ZodObject<{
80
+ items: z.ZodArray<z.ZodObject<{
81
+ title: z.ZodString;
82
+ tierName: z.ZodString;
83
+ imageUrl: z.ZodOptional<z.ZodString>;
84
+ }, "strict", z.ZodTypeAny, {
85
+ title: string;
86
+ tierName: string;
87
+ imageUrl?: string | undefined;
88
+ }, {
89
+ title: string;
90
+ tierName: string;
91
+ imageUrl?: string | undefined;
92
+ }>, "many">;
93
+ }, "strict", z.ZodTypeAny, {
94
+ items: {
95
+ title: string;
96
+ tierName: string;
97
+ imageUrl?: string | undefined;
98
+ }[];
99
+ }, {
100
+ items: {
101
+ title: string;
102
+ tierName: string;
103
+ imageUrl?: string | undefined;
104
+ }[];
105
+ }>>;
59
106
  startsAt: z.ZodOptional<z.ZodString>;
60
107
  endsAt: z.ZodOptional<z.ZodString>;
61
108
  status: z.ZodEnum<["not_started", "active", "ended", "disabled", "unknown"]>;
62
109
  }, "strict", z.ZodTypeAny, {
63
110
  status: "unknown" | "not_started" | "active" | "ended" | "disabled";
64
- activityId: string;
65
111
  title: string;
112
+ activityId: string;
66
113
  description?: string | undefined;
67
114
  imageUrl?: string | undefined;
115
+ detailCoverUrl?: string | undefined;
116
+ participationRules?: {
117
+ ruleTexts: string[];
118
+ } | undefined;
119
+ rewardSummary?: {
120
+ items: {
121
+ title: string;
122
+ tierName: string;
123
+ imageUrl?: string | undefined;
124
+ }[];
125
+ } | undefined;
68
126
  startsAt?: string | undefined;
69
127
  endsAt?: string | undefined;
70
128
  }, {
71
129
  status: "unknown" | "not_started" | "active" | "ended" | "disabled";
72
- activityId: string;
73
130
  title: string;
131
+ activityId: string;
74
132
  description?: string | undefined;
75
133
  imageUrl?: string | undefined;
134
+ detailCoverUrl?: string | undefined;
135
+ participationRules?: {
136
+ ruleTexts: string[];
137
+ } | undefined;
138
+ rewardSummary?: {
139
+ items: {
140
+ title: string;
141
+ tierName: string;
142
+ imageUrl?: string | undefined;
143
+ }[];
144
+ } | undefined;
76
145
  startsAt?: string | undefined;
77
146
  endsAt?: string | undefined;
78
147
  }>;
@@ -112,37 +112,37 @@ export declare const memberCardSummaryCardDataSchema: z.ZodObject<{
112
112
  text: z.ZodOptional<z.ZodString>;
113
113
  }, "strip", z.ZodTypeAny, {
114
114
  kind: "toast" | "miniapp" | "dialog";
115
- url?: string | undefined;
116
- title?: string | undefined;
117
115
  text?: string | undefined;
116
+ title?: string | undefined;
117
+ url?: string | undefined;
118
118
  }, {
119
119
  kind: "toast" | "miniapp" | "dialog";
120
- url?: string | undefined;
121
- title?: string | undefined;
122
120
  text?: string | undefined;
121
+ title?: string | undefined;
122
+ url?: string | undefined;
123
123
  }>>;
124
124
  }, "strip", z.ZodTypeAny, {
125
125
  name: string;
126
126
  benefitRef: string;
127
127
  description?: string | undefined;
128
- iconUrl?: string | undefined;
129
128
  action?: {
130
129
  kind: "toast" | "miniapp" | "dialog";
131
- url?: string | undefined;
132
- title?: string | undefined;
133
130
  text?: string | undefined;
131
+ title?: string | undefined;
132
+ url?: string | undefined;
134
133
  } | undefined;
134
+ iconUrl?: string | undefined;
135
135
  }, {
136
136
  name: string;
137
137
  benefitRef: string;
138
138
  description?: string | undefined;
139
- iconUrl?: string | undefined;
140
139
  action?: {
141
140
  kind: "toast" | "miniapp" | "dialog";
142
- url?: string | undefined;
143
- title?: string | undefined;
144
141
  text?: string | undefined;
142
+ title?: string | undefined;
143
+ url?: string | undefined;
145
144
  } | undefined;
145
+ iconUrl?: string | undefined;
146
146
  }>, "many">>;
147
147
  /** 入会后偏好引导;首批固定三项,保留数组形态便于后续扩展。 */
148
148
  preferencePrompts: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -180,13 +180,13 @@ export declare const memberCardSummaryCardDataSchema: z.ZodObject<{
180
180
  name: string;
181
181
  benefitRef: string;
182
182
  description?: string | undefined;
183
- iconUrl?: string | undefined;
184
183
  action?: {
185
184
  kind: "toast" | "miniapp" | "dialog";
186
- url?: string | undefined;
187
- title?: string | undefined;
188
185
  text?: string | undefined;
186
+ title?: string | undefined;
187
+ url?: string | undefined;
189
188
  } | undefined;
189
+ iconUrl?: string | undefined;
190
190
  }[] | undefined;
191
191
  preferencePrompts?: {
192
192
  value: "我常来买衣服" | "我常带娃来玩" | "我常来吃美食";
@@ -217,13 +217,13 @@ export declare const memberCardSummaryCardDataSchema: z.ZodObject<{
217
217
  name: string;
218
218
  benefitRef: string;
219
219
  description?: string | undefined;
220
- iconUrl?: string | undefined;
221
220
  action?: {
222
221
  kind: "toast" | "miniapp" | "dialog";
223
- url?: string | undefined;
224
- title?: string | undefined;
225
222
  text?: string | undefined;
223
+ title?: string | undefined;
224
+ url?: string | undefined;
226
225
  } | undefined;
226
+ iconUrl?: string | undefined;
227
227
  }[] | undefined;
228
228
  preferencePrompts?: {
229
229
  value: "我常来买衣服" | "我常带娃来玩" | "我常来吃美食";
@@ -246,40 +246,40 @@ export declare const memberPointUsageListCardDataSchema: z.ZodObject<{
246
246
  description: z.ZodOptional<z.ZodString>;
247
247
  }, "strip", z.ZodTypeAny, {
248
248
  title: string;
249
- usageRecordRef: string;
250
249
  amount: string;
250
+ usageRecordRef: string;
251
251
  description?: string | undefined;
252
252
  usedAt?: string | undefined;
253
253
  }, {
254
254
  title: string;
255
- usageRecordRef: string;
256
255
  amount: string;
256
+ usageRecordRef: string;
257
257
  description?: string | undefined;
258
258
  usedAt?: string | undefined;
259
259
  }>, "many">;
260
260
  total: z.ZodNumber;
261
261
  }, "strip", z.ZodTypeAny, {
262
- userId: string;
263
- total: number;
264
262
  items: {
265
263
  title: string;
266
- usageRecordRef: string;
267
264
  amount: string;
265
+ usageRecordRef: string;
268
266
  description?: string | undefined;
269
267
  usedAt?: string | undefined;
270
268
  }[];
269
+ total: number;
270
+ userId: string;
271
271
  balance: number;
272
272
  membershipLabel?: string | undefined;
273
273
  }, {
274
- userId: string;
275
- total: number;
276
274
  items: {
277
275
  title: string;
278
- usageRecordRef: string;
279
276
  amount: string;
277
+ usageRecordRef: string;
280
278
  description?: string | undefined;
281
279
  usedAt?: string | undefined;
282
280
  }[];
281
+ total: number;
282
+ userId: string;
283
283
  balance: number;
284
284
  membershipLabel?: string | undefined;
285
285
  }>;
@@ -302,8 +302,8 @@ export declare const memberEnrollmentFormCardDataSchema: z.ZodObject<{
302
302
  options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
303
303
  }, "strip", z.ZodTypeAny, {
304
304
  type: "date" | "text" | "tel" | "select";
305
- required: boolean;
306
305
  label: string;
306
+ required: boolean;
307
307
  fieldId: string;
308
308
  options?: string[] | undefined;
309
309
  readOnly?: boolean | undefined;
@@ -311,8 +311,8 @@ export declare const memberEnrollmentFormCardDataSchema: z.ZodObject<{
311
311
  placeholder?: string | undefined;
312
312
  }, {
313
313
  type: "date" | "text" | "tel" | "select";
314
- required: boolean;
315
314
  label: string;
315
+ required: boolean;
316
316
  fieldId: string;
317
317
  options?: string[] | undefined;
318
318
  readOnly?: boolean | undefined;
@@ -358,8 +358,8 @@ export declare const memberEnrollmentFormCardDataSchema: z.ZodObject<{
358
358
  formVersion: string;
359
359
  fields: {
360
360
  type: "date" | "text" | "tel" | "select";
361
- required: boolean;
362
361
  label: string;
362
+ required: boolean;
363
363
  fieldId: string;
364
364
  options?: string[] | undefined;
365
365
  readOnly?: boolean | undefined;
@@ -384,8 +384,8 @@ export declare const memberEnrollmentFormCardDataSchema: z.ZodObject<{
384
384
  formVersion: string;
385
385
  fields: {
386
386
  type: "date" | "text" | "tel" | "select";
387
- required: boolean;
388
387
  label: string;
388
+ required: boolean;
389
389
  fieldId: string;
390
390
  options?: string[] | undefined;
391
391
  readOnly?: boolean | undefined;
@@ -583,37 +583,37 @@ export declare const memberCardDataSchemas: {
583
583
  text: z.ZodOptional<z.ZodString>;
584
584
  }, "strip", z.ZodTypeAny, {
585
585
  kind: "toast" | "miniapp" | "dialog";
586
- url?: string | undefined;
587
- title?: string | undefined;
588
586
  text?: string | undefined;
587
+ title?: string | undefined;
588
+ url?: string | undefined;
589
589
  }, {
590
590
  kind: "toast" | "miniapp" | "dialog";
591
- url?: string | undefined;
592
- title?: string | undefined;
593
591
  text?: string | undefined;
592
+ title?: string | undefined;
593
+ url?: string | undefined;
594
594
  }>>;
595
595
  }, "strip", z.ZodTypeAny, {
596
596
  name: string;
597
597
  benefitRef: string;
598
598
  description?: string | undefined;
599
- iconUrl?: string | undefined;
600
599
  action?: {
601
600
  kind: "toast" | "miniapp" | "dialog";
602
- url?: string | undefined;
603
- title?: string | undefined;
604
601
  text?: string | undefined;
602
+ title?: string | undefined;
603
+ url?: string | undefined;
605
604
  } | undefined;
605
+ iconUrl?: string | undefined;
606
606
  }, {
607
607
  name: string;
608
608
  benefitRef: string;
609
609
  description?: string | undefined;
610
- iconUrl?: string | undefined;
611
610
  action?: {
612
611
  kind: "toast" | "miniapp" | "dialog";
613
- url?: string | undefined;
614
- title?: string | undefined;
615
612
  text?: string | undefined;
613
+ title?: string | undefined;
614
+ url?: string | undefined;
616
615
  } | undefined;
616
+ iconUrl?: string | undefined;
617
617
  }>, "many">>;
618
618
  /** 入会后偏好引导;首批固定三项,保留数组形态便于后续扩展。 */
619
619
  preferencePrompts: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -651,13 +651,13 @@ export declare const memberCardDataSchemas: {
651
651
  name: string;
652
652
  benefitRef: string;
653
653
  description?: string | undefined;
654
- iconUrl?: string | undefined;
655
654
  action?: {
656
655
  kind: "toast" | "miniapp" | "dialog";
657
- url?: string | undefined;
658
- title?: string | undefined;
659
656
  text?: string | undefined;
657
+ title?: string | undefined;
658
+ url?: string | undefined;
660
659
  } | undefined;
660
+ iconUrl?: string | undefined;
661
661
  }[] | undefined;
662
662
  preferencePrompts?: {
663
663
  value: "我常来买衣服" | "我常带娃来玩" | "我常来吃美食";
@@ -688,13 +688,13 @@ export declare const memberCardDataSchemas: {
688
688
  name: string;
689
689
  benefitRef: string;
690
690
  description?: string | undefined;
691
- iconUrl?: string | undefined;
692
691
  action?: {
693
692
  kind: "toast" | "miniapp" | "dialog";
694
- url?: string | undefined;
695
- title?: string | undefined;
696
693
  text?: string | undefined;
694
+ title?: string | undefined;
695
+ url?: string | undefined;
697
696
  } | undefined;
697
+ iconUrl?: string | undefined;
698
698
  }[] | undefined;
699
699
  preferencePrompts?: {
700
700
  value: "我常来买衣服" | "我常带娃来玩" | "我常来吃美食";
@@ -713,40 +713,40 @@ export declare const memberCardDataSchemas: {
713
713
  description: z.ZodOptional<z.ZodString>;
714
714
  }, "strip", z.ZodTypeAny, {
715
715
  title: string;
716
- usageRecordRef: string;
717
716
  amount: string;
717
+ usageRecordRef: string;
718
718
  description?: string | undefined;
719
719
  usedAt?: string | undefined;
720
720
  }, {
721
721
  title: string;
722
- usageRecordRef: string;
723
722
  amount: string;
723
+ usageRecordRef: string;
724
724
  description?: string | undefined;
725
725
  usedAt?: string | undefined;
726
726
  }>, "many">;
727
727
  total: z.ZodNumber;
728
728
  }, "strip", z.ZodTypeAny, {
729
- userId: string;
730
- total: number;
731
729
  items: {
732
730
  title: string;
733
- usageRecordRef: string;
734
731
  amount: string;
732
+ usageRecordRef: string;
735
733
  description?: string | undefined;
736
734
  usedAt?: string | undefined;
737
735
  }[];
736
+ total: number;
737
+ userId: string;
738
738
  balance: number;
739
739
  membershipLabel?: string | undefined;
740
740
  }, {
741
- userId: string;
742
- total: number;
743
741
  items: {
744
742
  title: string;
745
- usageRecordRef: string;
746
743
  amount: string;
744
+ usageRecordRef: string;
747
745
  description?: string | undefined;
748
746
  usedAt?: string | undefined;
749
747
  }[];
748
+ total: number;
749
+ userId: string;
750
750
  balance: number;
751
751
  membershipLabel?: string | undefined;
752
752
  }>;
@@ -767,8 +767,8 @@ export declare const memberCardDataSchemas: {
767
767
  options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
768
768
  }, "strip", z.ZodTypeAny, {
769
769
  type: "date" | "text" | "tel" | "select";
770
- required: boolean;
771
770
  label: string;
771
+ required: boolean;
772
772
  fieldId: string;
773
773
  options?: string[] | undefined;
774
774
  readOnly?: boolean | undefined;
@@ -776,8 +776,8 @@ export declare const memberCardDataSchemas: {
776
776
  placeholder?: string | undefined;
777
777
  }, {
778
778
  type: "date" | "text" | "tel" | "select";
779
- required: boolean;
780
779
  label: string;
780
+ required: boolean;
781
781
  fieldId: string;
782
782
  options?: string[] | undefined;
783
783
  readOnly?: boolean | undefined;
@@ -823,8 +823,8 @@ export declare const memberCardDataSchemas: {
823
823
  formVersion: string;
824
824
  fields: {
825
825
  type: "date" | "text" | "tel" | "select";
826
- required: boolean;
827
826
  label: string;
827
+ required: boolean;
828
828
  fieldId: string;
829
829
  options?: string[] | undefined;
830
830
  readOnly?: boolean | undefined;
@@ -849,8 +849,8 @@ export declare const memberCardDataSchemas: {
849
849
  formVersion: string;
850
850
  fields: {
851
851
  type: "date" | "text" | "tel" | "select";
852
- required: boolean;
853
852
  label: string;
853
+ required: boolean;
854
854
  fieldId: string;
855
855
  options?: string[] | undefined;
856
856
  readOnly?: boolean | undefined;
@@ -535,7 +535,6 @@ export declare const parkingPaymentRecordsCardDataSchema: z.ZodObject<{
535
535
  /** 详情加载、开票提交等动作反馈 */
536
536
  message: z.ZodOptional<z.ZodString>;
537
537
  }, "strip", z.ZodTypeAny, {
538
- total: number;
539
538
  items: {
540
539
  status: "PAID" | "REFUNDED" | "CLOSED" | "UNKNOWN";
541
540
  plateNo: string;
@@ -552,11 +551,11 @@ export declare const parkingPaymentRecordsCardDataSchema: z.ZodObject<{
552
551
  invoiceEligible?: boolean | undefined;
553
552
  invoiceIssued?: boolean | undefined;
554
553
  }[];
554
+ total: number;
555
555
  hasMore: boolean;
556
556
  caveats: string[];
557
557
  message?: string | undefined;
558
558
  }, {
559
- total: number;
560
559
  items: {
561
560
  status: "PAID" | "REFUNDED" | "CLOSED" | "UNKNOWN";
562
561
  plateNo: string;
@@ -573,6 +572,7 @@ export declare const parkingPaymentRecordsCardDataSchema: z.ZodObject<{
573
572
  invoiceEligible?: boolean | undefined;
574
573
  invoiceIssued?: boolean | undefined;
575
574
  }[];
575
+ total: number;
576
576
  hasMore: boolean;
577
577
  caveats: string[];
578
578
  message?: string | undefined;
@@ -1150,7 +1150,6 @@ export declare const parkingCardDataSchemas: {
1150
1150
  /** 详情加载、开票提交等动作反馈 */
1151
1151
  message: z.ZodOptional<z.ZodString>;
1152
1152
  }, "strip", z.ZodTypeAny, {
1153
- total: number;
1154
1153
  items: {
1155
1154
  status: "PAID" | "REFUNDED" | "CLOSED" | "UNKNOWN";
1156
1155
  plateNo: string;
@@ -1167,11 +1166,11 @@ export declare const parkingCardDataSchemas: {
1167
1166
  invoiceEligible?: boolean | undefined;
1168
1167
  invoiceIssued?: boolean | undefined;
1169
1168
  }[];
1169
+ total: number;
1170
1170
  hasMore: boolean;
1171
1171
  caveats: string[];
1172
1172
  message?: string | undefined;
1173
1173
  }, {
1174
- total: number;
1175
1174
  items: {
1176
1175
  status: "PAID" | "REFUNDED" | "CLOSED" | "UNKNOWN";
1177
1176
  plateNo: string;
@@ -1188,6 +1187,7 @@ export declare const parkingCardDataSchemas: {
1188
1187
  invoiceEligible?: boolean | undefined;
1189
1188
  invoiceIssued?: boolean | undefined;
1190
1189
  }[];
1190
+ total: number;
1191
1191
  hasMore: boolean;
1192
1192
  caveats: string[];
1193
1193
  message?: string | undefined;