@tbox.cn/app-contracts-mall 1.0.0-alpha.1 → 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.
package/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
  pnpm add @tbox.cn/app-contracts-mall
9
9
  ```
10
10
 
11
- 发布包同时提供两种消费形态:直接安装使用 `dist` 编译产物;模板中的 `@app/contracts-mall` shim 默认转发发布包,`npx --yes @tbox.cn/app-cli module add` 自动依赖本包时将其替换为本地源码包。显式使用 `--mode sdk` 时仍保持发布态消费。
11
+ 发布包同时提供两种消费形态:直接安装使用 `dist` 编译产物;模板中的 `@app/contracts-mall` shim 默认转发发布包,`pnpm exec tbox-app module add` 自动依赖本包时将其替换为本地源码包。显式使用 `--mode sdk` 时仍保持发布态消费。
12
12
 
13
13
  ## 入口
14
14
 
@@ -0,0 +1,193 @@
1
+ /**
2
+ * 活动玩法域卡片数据契约(远端活动改造 2026-11-17)。
3
+ * 单一稳定 CardType `activity-play`,mode 区分列表/详情传输形态——视觉由前端渲染器
4
+ * 按 mode 组织,传输层不拆分多卡型(与 promotion 域 9 卡型形态区分)。
5
+ * 条目复用 activityPlayActivitySchema(供应商活动对象——卡 data 不带本地目录/入口配置字段)。
6
+ * 本人奖品两张卡型归任务 07,不在本契约预置空实现。
7
+ * 信封字段(卡片 ID/时间戳/历史标记/版本)由 SDK 生成,不在本契约。
8
+ */
9
+ import { z } from 'zod';
10
+ /** 卡片数据(工具出卡 / 前端渲染双层共用契约面) */
11
+ export declare const activityPlayCardDataSchema: z.ZodEffects<z.ZodObject<{
12
+ /** 商圈标识:来自当前执行上下文 scope,非模型输入或硬编码值 */
13
+ mallId: z.ZodString;
14
+ /** 传输形态:list(列表,可空,≤50 项)/ detail(详情,恰好 1 项,可携 disabled) */
15
+ mode: z.ZodEnum<["list", "detail"]>;
16
+ /** 活动条目(供应商活动对象:activityId/title/status 等——list 可空 ≤50 项) */
17
+ items: z.ZodArray<z.ZodObject<{
18
+ activityId: z.ZodEffects<z.ZodString, string, string>;
19
+ title: z.ZodString;
20
+ description: z.ZodOptional<z.ZodString>;
21
+ imageUrl: z.ZodOptional<z.ZodString>;
22
+ detailCoverUrl: z.ZodOptional<z.ZodString>;
23
+ participationRules: z.ZodOptional<z.ZodObject<{
24
+ ruleTexts: z.ZodArray<z.ZodString, "many">;
25
+ }, "strict", z.ZodTypeAny, {
26
+ ruleTexts: string[];
27
+ }, {
28
+ ruleTexts: string[];
29
+ }>>;
30
+ rewardSummary: z.ZodOptional<z.ZodObject<{
31
+ items: z.ZodArray<z.ZodObject<{
32
+ title: z.ZodString;
33
+ tierName: z.ZodString;
34
+ imageUrl: z.ZodOptional<z.ZodString>;
35
+ }, "strict", z.ZodTypeAny, {
36
+ title: string;
37
+ tierName: string;
38
+ imageUrl?: string | undefined;
39
+ }, {
40
+ title: string;
41
+ tierName: string;
42
+ imageUrl?: string | undefined;
43
+ }>, "many">;
44
+ }, "strict", z.ZodTypeAny, {
45
+ items: {
46
+ title: string;
47
+ tierName: string;
48
+ imageUrl?: string | undefined;
49
+ }[];
50
+ }, {
51
+ items: {
52
+ title: string;
53
+ tierName: string;
54
+ imageUrl?: string | undefined;
55
+ }[];
56
+ }>>;
57
+ startsAt: z.ZodOptional<z.ZodString>;
58
+ endsAt: z.ZodOptional<z.ZodString>;
59
+ status: z.ZodEnum<["not_started", "active", "ended", "disabled", "unknown"]>;
60
+ }, "strict", z.ZodTypeAny, {
61
+ status: "unknown" | "not_started" | "active" | "ended" | "disabled";
62
+ title: string;
63
+ activityId: string;
64
+ description?: string | undefined;
65
+ imageUrl?: string | undefined;
66
+ detailCoverUrl?: string | undefined;
67
+ participationRules?: {
68
+ ruleTexts: string[];
69
+ } | undefined;
70
+ rewardSummary?: {
71
+ items: {
72
+ title: string;
73
+ tierName: string;
74
+ imageUrl?: string | undefined;
75
+ }[];
76
+ } | undefined;
77
+ startsAt?: string | undefined;
78
+ endsAt?: string | undefined;
79
+ }, {
80
+ status: "unknown" | "not_started" | "active" | "ended" | "disabled";
81
+ title: string;
82
+ activityId: string;
83
+ description?: string | undefined;
84
+ imageUrl?: string | undefined;
85
+ detailCoverUrl?: string | undefined;
86
+ participationRules?: {
87
+ ruleTexts: string[];
88
+ } | undefined;
89
+ rewardSummary?: {
90
+ items: {
91
+ title: string;
92
+ tierName: string;
93
+ imageUrl?: string | undefined;
94
+ }[];
95
+ } | undefined;
96
+ startsAt?: string | undefined;
97
+ endsAt?: string | undefined;
98
+ }>, "many">;
99
+ }, "strip", z.ZodTypeAny, {
100
+ items: {
101
+ status: "unknown" | "not_started" | "active" | "ended" | "disabled";
102
+ title: string;
103
+ activityId: string;
104
+ description?: string | undefined;
105
+ imageUrl?: string | undefined;
106
+ detailCoverUrl?: string | undefined;
107
+ participationRules?: {
108
+ ruleTexts: string[];
109
+ } | undefined;
110
+ rewardSummary?: {
111
+ items: {
112
+ title: string;
113
+ tierName: string;
114
+ imageUrl?: string | undefined;
115
+ }[];
116
+ } | undefined;
117
+ startsAt?: string | undefined;
118
+ endsAt?: string | undefined;
119
+ }[];
120
+ mallId: string;
121
+ mode: "detail" | "list";
122
+ }, {
123
+ items: {
124
+ status: "unknown" | "not_started" | "active" | "ended" | "disabled";
125
+ title: string;
126
+ activityId: string;
127
+ description?: string | undefined;
128
+ imageUrl?: string | undefined;
129
+ detailCoverUrl?: string | undefined;
130
+ participationRules?: {
131
+ ruleTexts: string[];
132
+ } | undefined;
133
+ rewardSummary?: {
134
+ items: {
135
+ title: string;
136
+ tierName: string;
137
+ imageUrl?: string | undefined;
138
+ }[];
139
+ } | undefined;
140
+ startsAt?: string | undefined;
141
+ endsAt?: string | undefined;
142
+ }[];
143
+ mallId: string;
144
+ mode: "detail" | "list";
145
+ }>, {
146
+ items: {
147
+ status: "unknown" | "not_started" | "active" | "ended" | "disabled";
148
+ title: string;
149
+ activityId: string;
150
+ description?: string | undefined;
151
+ imageUrl?: string | undefined;
152
+ detailCoverUrl?: string | undefined;
153
+ participationRules?: {
154
+ ruleTexts: string[];
155
+ } | undefined;
156
+ rewardSummary?: {
157
+ items: {
158
+ title: string;
159
+ tierName: string;
160
+ imageUrl?: string | undefined;
161
+ }[];
162
+ } | undefined;
163
+ startsAt?: string | undefined;
164
+ endsAt?: string | undefined;
165
+ }[];
166
+ mallId: string;
167
+ mode: "detail" | "list";
168
+ }, {
169
+ items: {
170
+ status: "unknown" | "not_started" | "active" | "ended" | "disabled";
171
+ title: string;
172
+ activityId: string;
173
+ description?: string | undefined;
174
+ imageUrl?: string | undefined;
175
+ detailCoverUrl?: string | undefined;
176
+ participationRules?: {
177
+ ruleTexts: string[];
178
+ } | undefined;
179
+ rewardSummary?: {
180
+ items: {
181
+ title: string;
182
+ tierName: string;
183
+ imageUrl?: string | undefined;
184
+ }[];
185
+ } | undefined;
186
+ startsAt?: string | undefined;
187
+ endsAt?: string | undefined;
188
+ }[];
189
+ mallId: string;
190
+ mode: "detail" | "list";
191
+ }>;
192
+ /** 卡片数据类型(zod 推断;客户端渲染器与工具出卡共用类型面) */
193
+ export type ActivityPlayCardData = z.infer<typeof activityPlayCardDataSchema>;
@@ -0,0 +1,249 @@
1
+ /** 奖品统一列表卡契约;详情查询出单条列表,完整详情经 HTTP 在半屏展示。 */
2
+ import { z } from 'zod';
3
+ /** 本人奖品列表卡型(列表查询工具出卡) */
4
+ export declare const ACTIVITY_PLAY_PRIZE_LIST_CARD_TYPE = "activity-play-prize-list";
5
+ /**
6
+ * 列表卡片展示条目上限(契约单源):schema items.max 与模块出卡适配共用同此值——
7
+ * 超出由适配层截断展示(total 仍为供应商真实值 + truncated 标记),两侧不得各写一个数。
8
+ */
9
+ export declare const ACTIVITY_PLAY_PRIZE_CARD_MAX_ITEMS = 50;
10
+ /**
11
+ * 列表卡片条目(奖品记录 DTO + 出卡适配层补充的标准动作)。
12
+ * itemActions 至多 4 项;适配层恒只产出 send 单一 kind(前端经 SDK sendMessage 发起
13
+ * 详情查询——不新增动作协议),schema 沿 actionDraftSchema 单源(判别联合天然拒未知 kind)。
14
+ */
15
+ export declare const activityPlayPrizeCardItemSchema: z.ZodObject<{
16
+ prizeRecordRef: z.ZodEffects<z.ZodString, string, string>;
17
+ title: z.ZodString;
18
+ prizeType: z.ZodString;
19
+ claimStatus: z.ZodString;
20
+ useStatus: z.ZodString;
21
+ activityId: z.ZodOptional<z.ZodString>;
22
+ activityTitle: z.ZodOptional<z.ZodString>;
23
+ imageUrl: z.ZodOptional<z.ZodString>;
24
+ wonAt: z.ZodOptional<z.ZodString>;
25
+ usageRuleText: z.ZodOptional<z.ZodString>;
26
+ } & {
27
+ itemActions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
28
+ kind: z.ZodLiteral<"send">;
29
+ label: z.ZodString;
30
+ value: z.ZodOptional<z.ZodString>;
31
+ visibleValue: z.ZodOptional<z.ZodString>;
32
+ }, "strip", z.ZodTypeAny, {
33
+ label: string;
34
+ kind: "send";
35
+ value?: string | undefined;
36
+ visibleValue?: string | undefined;
37
+ }, {
38
+ label: string;
39
+ kind: "send";
40
+ value?: string | undefined;
41
+ visibleValue?: string | undefined;
42
+ }>, z.ZodObject<{
43
+ kind: z.ZodLiteral<"link">;
44
+ label: z.ZodString;
45
+ url: z.ZodString;
46
+ }, "strip", z.ZodTypeAny, {
47
+ label: string;
48
+ kind: "link";
49
+ url: string;
50
+ }, {
51
+ label: string;
52
+ kind: "link";
53
+ url: string;
54
+ }>]>, "many">>;
55
+ }, "strict", z.ZodTypeAny, {
56
+ title: string;
57
+ prizeRecordRef: string;
58
+ prizeType: string;
59
+ claimStatus: string;
60
+ useStatus: string;
61
+ activityId?: string | undefined;
62
+ imageUrl?: string | undefined;
63
+ activityTitle?: string | undefined;
64
+ wonAt?: string | undefined;
65
+ usageRuleText?: string | undefined;
66
+ itemActions?: ({
67
+ label: string;
68
+ kind: "send";
69
+ value?: string | undefined;
70
+ visibleValue?: string | undefined;
71
+ } | {
72
+ label: string;
73
+ kind: "link";
74
+ url: string;
75
+ })[] | undefined;
76
+ }, {
77
+ title: string;
78
+ prizeRecordRef: string;
79
+ prizeType: string;
80
+ claimStatus: string;
81
+ useStatus: string;
82
+ activityId?: string | undefined;
83
+ imageUrl?: string | undefined;
84
+ activityTitle?: string | undefined;
85
+ wonAt?: string | undefined;
86
+ usageRuleText?: string | undefined;
87
+ itemActions?: ({
88
+ label: string;
89
+ kind: "send";
90
+ value?: string | undefined;
91
+ visibleValue?: string | undefined;
92
+ } | {
93
+ label: string;
94
+ kind: "link";
95
+ url: string;
96
+ })[] | undefined;
97
+ }>;
98
+ export type ActivityPlayPrizeCardItem = z.infer<typeof activityPlayPrizeCardItemSchema>;
99
+ /**
100
+ * 本人奖品列表卡片 data(成功空态 = total 0 + 空 items,可附 noResultsReason;
101
+ * 查询失败不产生本卡型——失败走错误路径,不伪装「未中奖」)。
102
+ */
103
+ export declare const activityPlayPrizeListCardDataSchema: z.ZodObject<{
104
+ /** 商圈标识:来自当前执行上下文 scope(非模型输入/硬编码) */
105
+ mallId: z.ZodString;
106
+ /** 供应商真实总数(≠ items.length——items 为展示面,至多 ACTIVITY_PLAY_PRIZE_CARD_MAX_ITEMS 条) */
107
+ total: z.ZodNumber;
108
+ items: z.ZodArray<z.ZodObject<{
109
+ prizeRecordRef: z.ZodEffects<z.ZodString, string, string>;
110
+ title: z.ZodString;
111
+ prizeType: z.ZodString;
112
+ claimStatus: z.ZodString;
113
+ useStatus: z.ZodString;
114
+ activityId: z.ZodOptional<z.ZodString>;
115
+ activityTitle: z.ZodOptional<z.ZodString>;
116
+ imageUrl: z.ZodOptional<z.ZodString>;
117
+ wonAt: z.ZodOptional<z.ZodString>;
118
+ usageRuleText: z.ZodOptional<z.ZodString>;
119
+ } & {
120
+ itemActions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
121
+ kind: z.ZodLiteral<"send">;
122
+ label: z.ZodString;
123
+ value: z.ZodOptional<z.ZodString>;
124
+ visibleValue: z.ZodOptional<z.ZodString>;
125
+ }, "strip", z.ZodTypeAny, {
126
+ label: string;
127
+ kind: "send";
128
+ value?: string | undefined;
129
+ visibleValue?: string | undefined;
130
+ }, {
131
+ label: string;
132
+ kind: "send";
133
+ value?: string | undefined;
134
+ visibleValue?: string | undefined;
135
+ }>, z.ZodObject<{
136
+ kind: z.ZodLiteral<"link">;
137
+ label: z.ZodString;
138
+ url: z.ZodString;
139
+ }, "strip", z.ZodTypeAny, {
140
+ label: string;
141
+ kind: "link";
142
+ url: string;
143
+ }, {
144
+ label: string;
145
+ kind: "link";
146
+ url: string;
147
+ }>]>, "many">>;
148
+ }, "strict", z.ZodTypeAny, {
149
+ title: string;
150
+ prizeRecordRef: string;
151
+ prizeType: string;
152
+ claimStatus: string;
153
+ useStatus: string;
154
+ activityId?: string | undefined;
155
+ imageUrl?: string | undefined;
156
+ activityTitle?: string | undefined;
157
+ wonAt?: string | undefined;
158
+ usageRuleText?: string | undefined;
159
+ itemActions?: ({
160
+ label: string;
161
+ kind: "send";
162
+ value?: string | undefined;
163
+ visibleValue?: string | undefined;
164
+ } | {
165
+ label: string;
166
+ kind: "link";
167
+ url: string;
168
+ })[] | undefined;
169
+ }, {
170
+ title: string;
171
+ prizeRecordRef: string;
172
+ prizeType: string;
173
+ claimStatus: string;
174
+ useStatus: string;
175
+ activityId?: string | undefined;
176
+ imageUrl?: string | undefined;
177
+ activityTitle?: string | undefined;
178
+ wonAt?: string | undefined;
179
+ usageRuleText?: string | undefined;
180
+ itemActions?: ({
181
+ label: string;
182
+ kind: "send";
183
+ value?: string | undefined;
184
+ visibleValue?: string | undefined;
185
+ } | {
186
+ label: string;
187
+ kind: "link";
188
+ url: string;
189
+ })[] | undefined;
190
+ }>, "many">;
191
+ noResultsReason: z.ZodOptional<z.ZodString>;
192
+ /** 展示截断标记:items 超出 50 条展示上限被截断时为 true(total 仍为真实值——展示范围 ≠ 记录范围) */
193
+ truncated: z.ZodOptional<z.ZodBoolean>;
194
+ }, "strict", z.ZodTypeAny, {
195
+ items: {
196
+ title: string;
197
+ prizeRecordRef: string;
198
+ prizeType: string;
199
+ claimStatus: string;
200
+ useStatus: string;
201
+ activityId?: string | undefined;
202
+ imageUrl?: string | undefined;
203
+ activityTitle?: string | undefined;
204
+ wonAt?: string | undefined;
205
+ usageRuleText?: string | undefined;
206
+ itemActions?: ({
207
+ label: string;
208
+ kind: "send";
209
+ value?: string | undefined;
210
+ visibleValue?: string | undefined;
211
+ } | {
212
+ label: string;
213
+ kind: "link";
214
+ url: string;
215
+ })[] | undefined;
216
+ }[];
217
+ total: number;
218
+ mallId: string;
219
+ noResultsReason?: string | undefined;
220
+ truncated?: boolean | undefined;
221
+ }, {
222
+ items: {
223
+ title: string;
224
+ prizeRecordRef: string;
225
+ prizeType: string;
226
+ claimStatus: string;
227
+ useStatus: string;
228
+ activityId?: string | undefined;
229
+ imageUrl?: string | undefined;
230
+ activityTitle?: string | undefined;
231
+ wonAt?: string | undefined;
232
+ usageRuleText?: string | undefined;
233
+ itemActions?: ({
234
+ label: string;
235
+ kind: "send";
236
+ value?: string | undefined;
237
+ visibleValue?: string | undefined;
238
+ } | {
239
+ label: string;
240
+ kind: "link";
241
+ url: string;
242
+ })[] | undefined;
243
+ }[];
244
+ total: number;
245
+ mallId: string;
246
+ noResultsReason?: string | undefined;
247
+ truncated?: boolean | undefined;
248
+ }>;
249
+ export type ActivityPlayPrizeListCardData = z.infer<typeof activityPlayPrizeListCardDataSchema>;
@@ -15,23 +15,23 @@ declare const bumpInVoucherSchema: z.ZodObject<{
15
15
  merchantLogo: z.ZodOptional<z.ZodString>;
16
16
  itemLogo: z.ZodOptional<z.ZodString>;
17
17
  }, "strip", z.ZodTypeAny, {
18
+ unit: string;
18
19
  merchantName: string;
19
20
  prizeId: string;
20
21
  voucherName: string;
21
22
  voucherType: string;
22
23
  reductionAmount: string;
23
24
  thresholdAmountText: string;
24
- unit: string;
25
25
  merchantLogo?: string | undefined;
26
26
  itemLogo?: string | undefined;
27
27
  }, {
28
+ unit: string;
28
29
  merchantName: string;
29
30
  prizeId: string;
30
31
  voucherName: string;
31
32
  voucherType: string;
32
33
  reductionAmount: string;
33
34
  thresholdAmountText: string;
34
- unit: string;
35
35
  merchantLogo?: string | undefined;
36
36
  itemLogo?: string | undefined;
37
37
  }>;
@@ -72,23 +72,23 @@ export declare const promotionBumpInActivityCardDataSchema: z.ZodObject<{
72
72
  merchantLogo: z.ZodOptional<z.ZodString>;
73
73
  itemLogo: z.ZodOptional<z.ZodString>;
74
74
  }, "strip", z.ZodTypeAny, {
75
+ unit: string;
75
76
  merchantName: string;
76
77
  prizeId: string;
77
78
  voucherName: string;
78
79
  voucherType: string;
79
80
  reductionAmount: string;
80
81
  thresholdAmountText: string;
81
- unit: string;
82
82
  merchantLogo?: string | undefined;
83
83
  itemLogo?: string | undefined;
84
84
  }, {
85
+ unit: string;
85
86
  merchantName: string;
86
87
  prizeId: string;
87
88
  voucherName: string;
88
89
  voucherType: string;
89
90
  reductionAmount: string;
90
91
  thresholdAmountText: string;
91
- unit: string;
92
92
  merchantLogo?: string | undefined;
93
93
  itemLogo?: string | undefined;
94
94
  }>, "many">;
@@ -111,19 +111,23 @@ export declare const promotionBumpInActivityCardDataSchema: z.ZodObject<{
111
111
  activityRef: string;
112
112
  actStatus: "NOT_START" | "INIT" | "PROCESSING" | "FINISH" | "RECEIVED";
113
113
  vouchers: {
114
+ unit: string;
114
115
  merchantName: string;
115
116
  prizeId: string;
116
117
  voucherName: string;
117
118
  voucherType: string;
118
119
  reductionAmount: string;
119
120
  thresholdAmountText: string;
120
- unit: string;
121
121
  merchantLogo?: string | undefined;
122
122
  itemLogo?: string | undefined;
123
123
  }[];
124
124
  mode: "detail" | "banner";
125
- progressStyle: "bar" | "steps";
125
+ progressStyle: "steps" | "bar";
126
126
  description?: string | undefined;
127
+ steps?: {
128
+ title: string;
129
+ description?: string | undefined;
130
+ }[] | undefined;
127
131
  coverUrl?: string | undefined;
128
132
  mainTitle?: string | undefined;
129
133
  backgroundUrl?: string | undefined;
@@ -134,26 +138,26 @@ export declare const promotionBumpInActivityCardDataSchema: z.ZodObject<{
134
138
  progressUnit?: string | undefined;
135
139
  startAtText?: string | undefined;
136
140
  endAtText?: string | undefined;
137
- steps?: {
138
- title: string;
139
- description?: string | undefined;
140
- }[] | undefined;
141
141
  }, {
142
142
  title: string;
143
143
  activityRef: string;
144
144
  actStatus: "NOT_START" | "INIT" | "PROCESSING" | "FINISH" | "RECEIVED";
145
145
  vouchers: {
146
+ unit: string;
146
147
  merchantName: string;
147
148
  prizeId: string;
148
149
  voucherName: string;
149
150
  voucherType: string;
150
151
  reductionAmount: string;
151
152
  thresholdAmountText: string;
152
- unit: string;
153
153
  merchantLogo?: string | undefined;
154
154
  itemLogo?: string | undefined;
155
155
  }[];
156
156
  description?: string | undefined;
157
+ steps?: {
158
+ title: string;
159
+ description?: string | undefined;
160
+ }[] | undefined;
157
161
  coverUrl?: string | undefined;
158
162
  mainTitle?: string | undefined;
159
163
  backgroundUrl?: string | undefined;
@@ -165,11 +169,7 @@ export declare const promotionBumpInActivityCardDataSchema: z.ZodObject<{
165
169
  startAtText?: string | undefined;
166
170
  endAtText?: string | undefined;
167
171
  mode?: "detail" | "banner" | undefined;
168
- steps?: {
169
- title: string;
170
- description?: string | undefined;
171
- }[] | undefined;
172
- progressStyle?: "bar" | "steps" | undefined;
172
+ progressStyle?: "steps" | "bar" | undefined;
173
173
  }>;
174
174
  export type PromotionBumpInActivityCardData = z.infer<typeof promotionBumpInActivityCardDataSchema>;
175
175
  export declare const alipayActivityCardDataSchemas: {
@@ -201,23 +201,23 @@ export declare const alipayActivityCardDataSchemas: {
201
201
  merchantLogo: z.ZodOptional<z.ZodString>;
202
202
  itemLogo: z.ZodOptional<z.ZodString>;
203
203
  }, "strip", z.ZodTypeAny, {
204
+ unit: string;
204
205
  merchantName: string;
205
206
  prizeId: string;
206
207
  voucherName: string;
207
208
  voucherType: string;
208
209
  reductionAmount: string;
209
210
  thresholdAmountText: string;
210
- unit: string;
211
211
  merchantLogo?: string | undefined;
212
212
  itemLogo?: string | undefined;
213
213
  }, {
214
+ unit: string;
214
215
  merchantName: string;
215
216
  prizeId: string;
216
217
  voucherName: string;
217
218
  voucherType: string;
218
219
  reductionAmount: string;
219
220
  thresholdAmountText: string;
220
- unit: string;
221
221
  merchantLogo?: string | undefined;
222
222
  itemLogo?: string | undefined;
223
223
  }>, "many">;
@@ -240,19 +240,23 @@ export declare const alipayActivityCardDataSchemas: {
240
240
  activityRef: string;
241
241
  actStatus: "NOT_START" | "INIT" | "PROCESSING" | "FINISH" | "RECEIVED";
242
242
  vouchers: {
243
+ unit: string;
243
244
  merchantName: string;
244
245
  prizeId: string;
245
246
  voucherName: string;
246
247
  voucherType: string;
247
248
  reductionAmount: string;
248
249
  thresholdAmountText: string;
249
- unit: string;
250
250
  merchantLogo?: string | undefined;
251
251
  itemLogo?: string | undefined;
252
252
  }[];
253
253
  mode: "detail" | "banner";
254
- progressStyle: "bar" | "steps";
254
+ progressStyle: "steps" | "bar";
255
255
  description?: string | undefined;
256
+ steps?: {
257
+ title: string;
258
+ description?: string | undefined;
259
+ }[] | undefined;
256
260
  coverUrl?: string | undefined;
257
261
  mainTitle?: string | undefined;
258
262
  backgroundUrl?: string | undefined;
@@ -263,26 +267,26 @@ export declare const alipayActivityCardDataSchemas: {
263
267
  progressUnit?: string | undefined;
264
268
  startAtText?: string | undefined;
265
269
  endAtText?: string | undefined;
266
- steps?: {
267
- title: string;
268
- description?: string | undefined;
269
- }[] | undefined;
270
270
  }, {
271
271
  title: string;
272
272
  activityRef: string;
273
273
  actStatus: "NOT_START" | "INIT" | "PROCESSING" | "FINISH" | "RECEIVED";
274
274
  vouchers: {
275
+ unit: string;
275
276
  merchantName: string;
276
277
  prizeId: string;
277
278
  voucherName: string;
278
279
  voucherType: string;
279
280
  reductionAmount: string;
280
281
  thresholdAmountText: string;
281
- unit: string;
282
282
  merchantLogo?: string | undefined;
283
283
  itemLogo?: string | undefined;
284
284
  }[];
285
285
  description?: string | undefined;
286
+ steps?: {
287
+ title: string;
288
+ description?: string | undefined;
289
+ }[] | undefined;
286
290
  coverUrl?: string | undefined;
287
291
  mainTitle?: string | undefined;
288
292
  backgroundUrl?: string | undefined;
@@ -294,11 +298,7 @@ export declare const alipayActivityCardDataSchemas: {
294
298
  startAtText?: string | undefined;
295
299
  endAtText?: string | undefined;
296
300
  mode?: "detail" | "banner" | undefined;
297
- steps?: {
298
- title: string;
299
- description?: string | undefined;
300
- }[] | undefined;
301
- progressStyle?: "bar" | "steps" | undefined;
301
+ progressStyle?: "steps" | "bar" | undefined;
302
302
  }>;
303
303
  };
304
304
  export type AlipayActivityCardType = keyof typeof alipayActivityCardDataSchemas;