@tbox.cn/app-contracts-mall 0.17.1 → 0.17.2

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.
@@ -0,0 +1,314 @@
1
+ /**
2
+ * 个人奖品域卡片数据契约(任务07——本人奖品列表/详情两张稳定卡型)。
3
+ * 与活动域「单一 cardType + mode」形态区分:奖品按 api.md 卡片表为两张独立卡型
4
+ *(列表含 itemActions 标准动作 / 详情平铺),传输层不共用 mode。
5
+ *
6
+ * 分层纪律:HTTP 业务 DTO 只含奖品事实(domain 单源,条目数跟随供应商返回不加展示上限);
7
+ * itemActions、noResultsReason、truncated 是卡片适配层补充字段,仅出现在本卡片契约面
8
+ * ——不回写 DTO、不透传厂商原始 JSON。列表动作沿既有 actionDraftSchema(shared/cards
9
+ * 单源)的 send 形态:value 携带准确中奖记录标识、visibleValue 可用可读名称;信封字段
10
+ * 由 SDK 卡片框架承载,不在本契约。
11
+ */
12
+ import { z } from 'zod';
13
+ /** 本人奖品列表卡型(列表查询工具出卡) */
14
+ export declare const ACTIVITY_PLAY_PRIZE_LIST_CARD_TYPE = "activity-play-prize-list";
15
+ /** 本人奖品详情卡型(详情查询工具出卡) */
16
+ export declare const ACTIVITY_PLAY_PRIZE_DETAIL_CARD_TYPE = "activity-play-prize-detail";
17
+ /**
18
+ * 列表卡片展示条目上限(契约单源):schema items.max 与模块出卡适配共用同此值——
19
+ * 超出由适配层截断展示(total 仍为供应商真实值 + truncated 标记),两侧不得各写一个数。
20
+ */
21
+ export declare const ACTIVITY_PLAY_PRIZE_CARD_MAX_ITEMS = 50;
22
+ /**
23
+ * 列表卡片条目(奖品记录 DTO + 出卡适配层补充的标准动作)。
24
+ * itemActions 至多 4 项;适配层恒只产出 send 单一 kind(前端经 SDK sendMessage 发起
25
+ * 详情查询——不新增动作协议),schema 沿 actionDraftSchema 单源(判别联合天然拒未知 kind)。
26
+ */
27
+ export declare const activityPlayPrizeCardItemSchema: z.ZodObject<{
28
+ prizeRecordRef: z.ZodEffects<z.ZodString, string, string>;
29
+ title: z.ZodString;
30
+ prizeType: z.ZodString;
31
+ claimStatus: z.ZodString;
32
+ useStatus: z.ZodString;
33
+ activityId: z.ZodOptional<z.ZodString>;
34
+ activityTitle: z.ZodOptional<z.ZodString>;
35
+ imageUrl: z.ZodOptional<z.ZodString>;
36
+ wonAt: z.ZodOptional<z.ZodString>;
37
+ usageRuleText: z.ZodOptional<z.ZodString>;
38
+ } & {
39
+ itemActions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
40
+ kind: z.ZodLiteral<"send">;
41
+ label: z.ZodString;
42
+ value: z.ZodOptional<z.ZodString>;
43
+ visibleValue: z.ZodOptional<z.ZodString>;
44
+ }, "strip", z.ZodTypeAny, {
45
+ kind: "send";
46
+ label: string;
47
+ value?: string | undefined;
48
+ visibleValue?: string | undefined;
49
+ }, {
50
+ kind: "send";
51
+ label: string;
52
+ value?: string | undefined;
53
+ visibleValue?: string | undefined;
54
+ }>, z.ZodObject<{
55
+ kind: z.ZodLiteral<"link">;
56
+ label: z.ZodString;
57
+ url: z.ZodString;
58
+ }, "strip", z.ZodTypeAny, {
59
+ url: string;
60
+ kind: "link";
61
+ label: string;
62
+ }, {
63
+ url: string;
64
+ kind: "link";
65
+ label: string;
66
+ }>]>, "many">>;
67
+ }, "strict", z.ZodTypeAny, {
68
+ title: string;
69
+ prizeRecordRef: string;
70
+ prizeType: string;
71
+ claimStatus: string;
72
+ useStatus: string;
73
+ imageUrl?: string | undefined;
74
+ activityId?: string | undefined;
75
+ activityTitle?: string | undefined;
76
+ wonAt?: string | undefined;
77
+ usageRuleText?: string | undefined;
78
+ itemActions?: ({
79
+ kind: "send";
80
+ label: string;
81
+ value?: string | undefined;
82
+ visibleValue?: string | undefined;
83
+ } | {
84
+ url: string;
85
+ kind: "link";
86
+ label: string;
87
+ })[] | undefined;
88
+ }, {
89
+ title: string;
90
+ prizeRecordRef: string;
91
+ prizeType: string;
92
+ claimStatus: string;
93
+ useStatus: string;
94
+ imageUrl?: string | undefined;
95
+ activityId?: string | undefined;
96
+ activityTitle?: string | undefined;
97
+ wonAt?: string | undefined;
98
+ usageRuleText?: string | undefined;
99
+ itemActions?: ({
100
+ kind: "send";
101
+ label: string;
102
+ value?: string | undefined;
103
+ visibleValue?: string | undefined;
104
+ } | {
105
+ url: string;
106
+ kind: "link";
107
+ label: string;
108
+ })[] | undefined;
109
+ }>;
110
+ export type ActivityPlayPrizeCardItem = z.infer<typeof activityPlayPrizeCardItemSchema>;
111
+ /**
112
+ * 本人奖品列表卡片 data(成功空态 = total 0 + 空 items,可附 noResultsReason;
113
+ * 查询失败不产生本卡型——失败走错误路径,不伪装「未中奖」)。
114
+ */
115
+ export declare const activityPlayPrizeListCardDataSchema: z.ZodObject<{
116
+ /** 商圈标识:来自当前执行上下文 scope(非模型输入/硬编码) */
117
+ mallId: z.ZodString;
118
+ /** 供应商真实总数(≠ items.length——items 为展示面,至多 ACTIVITY_PLAY_PRIZE_CARD_MAX_ITEMS 条) */
119
+ total: z.ZodNumber;
120
+ items: z.ZodArray<z.ZodObject<{
121
+ prizeRecordRef: z.ZodEffects<z.ZodString, string, string>;
122
+ title: z.ZodString;
123
+ prizeType: z.ZodString;
124
+ claimStatus: z.ZodString;
125
+ useStatus: z.ZodString;
126
+ activityId: z.ZodOptional<z.ZodString>;
127
+ activityTitle: z.ZodOptional<z.ZodString>;
128
+ imageUrl: z.ZodOptional<z.ZodString>;
129
+ wonAt: z.ZodOptional<z.ZodString>;
130
+ usageRuleText: z.ZodOptional<z.ZodString>;
131
+ } & {
132
+ itemActions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
133
+ kind: z.ZodLiteral<"send">;
134
+ label: z.ZodString;
135
+ value: z.ZodOptional<z.ZodString>;
136
+ visibleValue: z.ZodOptional<z.ZodString>;
137
+ }, "strip", z.ZodTypeAny, {
138
+ kind: "send";
139
+ label: string;
140
+ value?: string | undefined;
141
+ visibleValue?: string | undefined;
142
+ }, {
143
+ kind: "send";
144
+ label: string;
145
+ value?: string | undefined;
146
+ visibleValue?: string | undefined;
147
+ }>, z.ZodObject<{
148
+ kind: z.ZodLiteral<"link">;
149
+ label: z.ZodString;
150
+ url: z.ZodString;
151
+ }, "strip", z.ZodTypeAny, {
152
+ url: string;
153
+ kind: "link";
154
+ label: string;
155
+ }, {
156
+ url: string;
157
+ kind: "link";
158
+ label: string;
159
+ }>]>, "many">>;
160
+ }, "strict", z.ZodTypeAny, {
161
+ title: string;
162
+ prizeRecordRef: string;
163
+ prizeType: string;
164
+ claimStatus: string;
165
+ useStatus: string;
166
+ imageUrl?: string | undefined;
167
+ activityId?: string | undefined;
168
+ activityTitle?: string | undefined;
169
+ wonAt?: string | undefined;
170
+ usageRuleText?: string | undefined;
171
+ itemActions?: ({
172
+ kind: "send";
173
+ label: string;
174
+ value?: string | undefined;
175
+ visibleValue?: string | undefined;
176
+ } | {
177
+ url: string;
178
+ kind: "link";
179
+ label: string;
180
+ })[] | undefined;
181
+ }, {
182
+ title: string;
183
+ prizeRecordRef: string;
184
+ prizeType: string;
185
+ claimStatus: string;
186
+ useStatus: string;
187
+ imageUrl?: string | undefined;
188
+ activityId?: string | undefined;
189
+ activityTitle?: string | undefined;
190
+ wonAt?: string | undefined;
191
+ usageRuleText?: string | undefined;
192
+ itemActions?: ({
193
+ kind: "send";
194
+ label: string;
195
+ value?: string | undefined;
196
+ visibleValue?: string | undefined;
197
+ } | {
198
+ url: string;
199
+ kind: "link";
200
+ label: string;
201
+ })[] | undefined;
202
+ }>, "many">;
203
+ noResultsReason: z.ZodOptional<z.ZodString>;
204
+ /** 展示截断标记:items 超出 50 条展示上限被截断时为 true(total 仍为真实值——展示范围 ≠ 记录范围) */
205
+ truncated: z.ZodOptional<z.ZodBoolean>;
206
+ }, "strict", z.ZodTypeAny, {
207
+ mallId: string;
208
+ total: number;
209
+ items: {
210
+ title: string;
211
+ prizeRecordRef: string;
212
+ prizeType: string;
213
+ claimStatus: string;
214
+ useStatus: string;
215
+ imageUrl?: string | undefined;
216
+ activityId?: string | undefined;
217
+ activityTitle?: string | undefined;
218
+ wonAt?: string | undefined;
219
+ usageRuleText?: string | undefined;
220
+ itemActions?: ({
221
+ kind: "send";
222
+ label: string;
223
+ value?: string | undefined;
224
+ visibleValue?: string | undefined;
225
+ } | {
226
+ url: string;
227
+ kind: "link";
228
+ label: string;
229
+ })[] | undefined;
230
+ }[];
231
+ noResultsReason?: string | undefined;
232
+ truncated?: boolean | undefined;
233
+ }, {
234
+ mallId: string;
235
+ total: number;
236
+ items: {
237
+ title: string;
238
+ prizeRecordRef: string;
239
+ prizeType: string;
240
+ claimStatus: string;
241
+ useStatus: string;
242
+ imageUrl?: string | undefined;
243
+ activityId?: string | undefined;
244
+ activityTitle?: string | undefined;
245
+ wonAt?: string | undefined;
246
+ usageRuleText?: string | undefined;
247
+ itemActions?: ({
248
+ kind: "send";
249
+ label: string;
250
+ value?: string | undefined;
251
+ visibleValue?: string | undefined;
252
+ } | {
253
+ url: string;
254
+ kind: "link";
255
+ label: string;
256
+ })[] | undefined;
257
+ }[];
258
+ noResultsReason?: string | undefined;
259
+ truncated?: boolean | undefined;
260
+ }>;
261
+ export type ActivityPlayPrizeListCardData = z.infer<typeof activityPlayPrizeListCardDataSchema>;
262
+ /**
263
+ * 本人奖品详情卡片 data(平铺:{mallId, ...PrizeDetail}——不套 mode/items 或额外
264
+ * prize 包装对象)。prizeUrl 仅为指引事实字段(不据此增加按钮、自动请求或导航)。
265
+ */
266
+ export declare const activityPlayPrizeDetailCardDataSchema: z.ZodObject<{
267
+ prizeRecordRef: z.ZodEffects<z.ZodString, string, string>;
268
+ title: z.ZodString;
269
+ prizeType: z.ZodString;
270
+ claimStatus: z.ZodString;
271
+ useStatus: z.ZodString;
272
+ activityId: z.ZodOptional<z.ZodString>;
273
+ activityTitle: z.ZodOptional<z.ZodString>;
274
+ imageUrl: z.ZodOptional<z.ZodString>;
275
+ wonAt: z.ZodOptional<z.ZodString>;
276
+ usageRuleText: z.ZodOptional<z.ZodString>;
277
+ } & {
278
+ redemptionMethod: z.ZodOptional<z.ZodString>;
279
+ redemptionInstruction: z.ZodOptional<z.ZodString>;
280
+ prizeUrl: z.ZodOptional<z.ZodString>;
281
+ } & {
282
+ mallId: z.ZodString;
283
+ }, "strict", z.ZodTypeAny, {
284
+ mallId: string;
285
+ title: string;
286
+ prizeRecordRef: string;
287
+ prizeType: string;
288
+ claimStatus: string;
289
+ useStatus: string;
290
+ imageUrl?: string | undefined;
291
+ activityId?: string | undefined;
292
+ activityTitle?: string | undefined;
293
+ wonAt?: string | undefined;
294
+ usageRuleText?: string | undefined;
295
+ redemptionMethod?: string | undefined;
296
+ redemptionInstruction?: string | undefined;
297
+ prizeUrl?: string | undefined;
298
+ }, {
299
+ mallId: string;
300
+ title: string;
301
+ prizeRecordRef: string;
302
+ prizeType: string;
303
+ claimStatus: string;
304
+ useStatus: string;
305
+ imageUrl?: string | undefined;
306
+ activityId?: string | undefined;
307
+ activityTitle?: string | undefined;
308
+ wonAt?: string | undefined;
309
+ usageRuleText?: string | undefined;
310
+ redemptionMethod?: string | undefined;
311
+ redemptionInstruction?: string | undefined;
312
+ prizeUrl?: string | undefined;
313
+ }>;
314
+ export type ActivityPlayPrizeDetailCardData = z.infer<typeof activityPlayPrizeDetailCardDataSchema>;
@@ -0,0 +1,208 @@
1
+ /**
2
+ * 活动玩法·个人奖品域模型(任务07——供应商返回的本人中奖记录 DTO + 字段级校验单源)。
3
+ * 语义独立于营销券/权益域:本域只描述「外部供应商提供的本人奖品事实」,不承诺领取核销、
4
+ * 本地奖品库、同步任务或结果推送(一期均不建)。
5
+ *
6
+ * 字段口径(api.md「本人奖品查询」唯一字段清单):
7
+ * - prizeRecordRef/title 必填;记录标识按供应商原字符串定位(同名奖品的不同中奖记录
8
+ * 可区分;'001'/'1.20'/'1e3' 等标识不做数字或 JSON 预解析);
9
+ * - activityId/activityTitle 仅为供应商提供的来源事实(缺失不编造、不以活动列表补齐,
10
+ * 也不是本地登记或查询前置);
11
+ * - prizeType/claimStatus/useStatus 经适配层明确映射产生,未知或缺失兜底 UNKNOWN;
12
+ * - 可选字段缺席归一为缺省(不编造值);必填字段或响应结构非法须上层显性失败,
13
+ * 不得丢弃坏记录后声称用户未中奖;
14
+ * - 图片/时间校验与活动域共用单源 schema(HTTPS / 含时区真实日历时刻)。
15
+ */
16
+ import { z } from 'zod';
17
+ /** 未知状态兜底桶(固定值——适配层映射产物,未确认来源不得编造具体状态) */
18
+ export declare const ACTIVITY_PLAY_PRIZE_STATUS_UNKNOWN: "UNKNOWN";
19
+ /** 状态桶标签(映射后的供应商状态——已知集确认前为 string 面) */
20
+ export type ActivityPlayPrizeStatusTag = string;
21
+ /**
22
+ * 状态标签归一(契约单源):raw 命中 known 集 → 原样通过;其余(缺失/null/未知字符串/
23
+ * 非字符串)→ UNKNOWN。只用于归一第三方原始状态值;接口示例不构成供应商已支持证据,
24
+ * known 集以琥珀确认的映射表为准(协议核验页)。
25
+ */
26
+ export declare function toActivityPlayPrizeStatusTag(raw: unknown, known: readonly string[]): ActivityPlayPrizeStatusTag;
27
+ /** 中奖记录标识:非空白 ≤128 的原字符串(不数字化/不按名称或活动 ID 推算;空白串显性拒绝) */
28
+ export declare const activityPlayPrizeRecordRefSchema: z.ZodEffects<z.ZodString, string, string>;
29
+ /** 奖品名称:非空 ≤64 */
30
+ export declare const activityPlayPrizeTitleSchema: z.ZodString;
31
+ /** 来源活动标识(供应商提供的事实——不是本系统登记键):非空 ≤128 原字符串 */
32
+ export declare const activityPlayPrizeActivityIdSchema: z.ZodString;
33
+ /** 来源活动名称:非空 ≤64 */
34
+ export declare const activityPlayPrizeActivityTitleSchema: z.ZodString;
35
+ /** 状态桶标签(prizeType/claimStatus/useStatus 共用):非空 ≤32 */
36
+ export declare const activityPlayPrizeStatusTagSchema: z.ZodString;
37
+ /** 使用规则:普通文本 ≤500 */
38
+ export declare const activityPlayPrizeUsageRuleTextSchema: z.ZodString;
39
+ /** 领取方式(详情):非空 ≤64 */
40
+ export declare const activityPlayPrizeRedemptionMethodSchema: z.ZodString;
41
+ /** 领取说明(详情):普通文本 ≤500 */
42
+ export declare const activityPlayPrizeRedemptionInstructionSchema: z.ZodString;
43
+ /** 外部领取指引:有效 URL 且恒 HTTPS(事实字段——不作为插件地址、不据此增加按钮) */
44
+ export declare const activityPlayPrizeUrlSchema: z.ZodString;
45
+ /** 奖品记录基础面(列表项与详情共用同源字段集;strict 拒未知键) */
46
+ export declare const activityPlayPrizeRecordSchema: z.ZodObject<{
47
+ prizeRecordRef: z.ZodEffects<z.ZodString, string, string>;
48
+ title: z.ZodString;
49
+ /** 奖品类型标签(映射后——未知为 UNKNOWN) */
50
+ prizeType: z.ZodString;
51
+ /** 领取状态标签(映射后——未知/缺失为 UNKNOWN) */
52
+ claimStatus: z.ZodString;
53
+ /** 使用状态标签(映射后——未知/缺失为 UNKNOWN) */
54
+ useStatus: z.ZodString;
55
+ activityId: z.ZodOptional<z.ZodString>;
56
+ activityTitle: z.ZodOptional<z.ZodString>;
57
+ imageUrl: z.ZodOptional<z.ZodString>;
58
+ /** 中奖时间(含时区 ISO 真实日历时刻——缺失不编造) */
59
+ wonAt: z.ZodOptional<z.ZodString>;
60
+ usageRuleText: z.ZodOptional<z.ZodString>;
61
+ }, "strict", z.ZodTypeAny, {
62
+ title: string;
63
+ prizeRecordRef: string;
64
+ prizeType: string;
65
+ claimStatus: string;
66
+ useStatus: string;
67
+ imageUrl?: string | undefined;
68
+ activityId?: string | undefined;
69
+ activityTitle?: string | undefined;
70
+ wonAt?: string | undefined;
71
+ usageRuleText?: string | undefined;
72
+ }, {
73
+ title: string;
74
+ prizeRecordRef: string;
75
+ prizeType: string;
76
+ claimStatus: string;
77
+ useStatus: string;
78
+ imageUrl?: string | undefined;
79
+ activityId?: string | undefined;
80
+ activityTitle?: string | undefined;
81
+ wonAt?: string | undefined;
82
+ usageRuleText?: string | undefined;
83
+ }>;
84
+ /** 奖品详情(记录基础面 + 领取方式/说明与外部指引;strict 拒未知键) */
85
+ export declare const activityPlayPrizeDetailSchema: z.ZodObject<{
86
+ prizeRecordRef: z.ZodEffects<z.ZodString, string, string>;
87
+ title: z.ZodString;
88
+ /** 奖品类型标签(映射后——未知为 UNKNOWN) */
89
+ prizeType: z.ZodString;
90
+ /** 领取状态标签(映射后——未知/缺失为 UNKNOWN) */
91
+ claimStatus: z.ZodString;
92
+ /** 使用状态标签(映射后——未知/缺失为 UNKNOWN) */
93
+ useStatus: z.ZodString;
94
+ activityId: z.ZodOptional<z.ZodString>;
95
+ activityTitle: z.ZodOptional<z.ZodString>;
96
+ imageUrl: z.ZodOptional<z.ZodString>;
97
+ /** 中奖时间(含时区 ISO 真实日历时刻——缺失不编造) */
98
+ wonAt: z.ZodOptional<z.ZodString>;
99
+ usageRuleText: z.ZodOptional<z.ZodString>;
100
+ } & {
101
+ redemptionMethod: z.ZodOptional<z.ZodString>;
102
+ redemptionInstruction: z.ZodOptional<z.ZodString>;
103
+ prizeUrl: z.ZodOptional<z.ZodString>;
104
+ }, "strict", z.ZodTypeAny, {
105
+ title: string;
106
+ prizeRecordRef: string;
107
+ prizeType: string;
108
+ claimStatus: string;
109
+ useStatus: string;
110
+ imageUrl?: string | undefined;
111
+ activityId?: string | undefined;
112
+ activityTitle?: string | undefined;
113
+ wonAt?: string | undefined;
114
+ usageRuleText?: string | undefined;
115
+ redemptionMethod?: string | undefined;
116
+ redemptionInstruction?: string | undefined;
117
+ prizeUrl?: string | undefined;
118
+ }, {
119
+ title: string;
120
+ prizeRecordRef: string;
121
+ prizeType: string;
122
+ claimStatus: string;
123
+ useStatus: string;
124
+ imageUrl?: string | undefined;
125
+ activityId?: string | undefined;
126
+ activityTitle?: string | undefined;
127
+ wonAt?: string | undefined;
128
+ usageRuleText?: string | undefined;
129
+ redemptionMethod?: string | undefined;
130
+ redemptionInstruction?: string | undefined;
131
+ prizeUrl?: string | undefined;
132
+ }>;
133
+ /** 列表结果(total 非负整数——实际统计/翻页覆盖范围按供应商实调记录,不冒称全量历史) */
134
+ export declare const activityPlayPrizeListResultSchema: z.ZodObject<{
135
+ total: z.ZodNumber;
136
+ items: z.ZodArray<z.ZodObject<{
137
+ prizeRecordRef: z.ZodEffects<z.ZodString, string, string>;
138
+ title: z.ZodString;
139
+ /** 奖品类型标签(映射后——未知为 UNKNOWN) */
140
+ prizeType: z.ZodString;
141
+ /** 领取状态标签(映射后——未知/缺失为 UNKNOWN) */
142
+ claimStatus: z.ZodString;
143
+ /** 使用状态标签(映射后——未知/缺失为 UNKNOWN) */
144
+ useStatus: z.ZodString;
145
+ activityId: z.ZodOptional<z.ZodString>;
146
+ activityTitle: z.ZodOptional<z.ZodString>;
147
+ imageUrl: z.ZodOptional<z.ZodString>;
148
+ /** 中奖时间(含时区 ISO 真实日历时刻——缺失不编造) */
149
+ wonAt: z.ZodOptional<z.ZodString>;
150
+ usageRuleText: z.ZodOptional<z.ZodString>;
151
+ }, "strict", z.ZodTypeAny, {
152
+ title: string;
153
+ prizeRecordRef: string;
154
+ prizeType: string;
155
+ claimStatus: string;
156
+ useStatus: string;
157
+ imageUrl?: string | undefined;
158
+ activityId?: string | undefined;
159
+ activityTitle?: string | undefined;
160
+ wonAt?: string | undefined;
161
+ usageRuleText?: string | undefined;
162
+ }, {
163
+ title: string;
164
+ prizeRecordRef: string;
165
+ prizeType: string;
166
+ claimStatus: string;
167
+ useStatus: string;
168
+ imageUrl?: string | undefined;
169
+ activityId?: string | undefined;
170
+ activityTitle?: string | undefined;
171
+ wonAt?: string | undefined;
172
+ usageRuleText?: string | undefined;
173
+ }>, "many">;
174
+ }, "strict", z.ZodTypeAny, {
175
+ total: number;
176
+ items: {
177
+ title: string;
178
+ prizeRecordRef: string;
179
+ prizeType: string;
180
+ claimStatus: string;
181
+ useStatus: string;
182
+ imageUrl?: string | undefined;
183
+ activityId?: string | undefined;
184
+ activityTitle?: string | undefined;
185
+ wonAt?: string | undefined;
186
+ usageRuleText?: string | undefined;
187
+ }[];
188
+ }, {
189
+ total: number;
190
+ items: {
191
+ title: string;
192
+ prizeRecordRef: string;
193
+ prizeType: string;
194
+ claimStatus: string;
195
+ useStatus: string;
196
+ imageUrl?: string | undefined;
197
+ activityId?: string | undefined;
198
+ activityTitle?: string | undefined;
199
+ wonAt?: string | undefined;
200
+ usageRuleText?: string | undefined;
201
+ }[];
202
+ }>;
203
+ /** 奖品记录(列表条目形态) */
204
+ export type ActivityPlayPrizeRecord = z.infer<typeof activityPlayPrizeRecordSchema>;
205
+ /** 奖品详情(详情返回形态) */
206
+ export type ActivityPlayPrizeDetail = z.infer<typeof activityPlayPrizeDetailSchema>;
207
+ /** 列表结果(HTTP data 面——无 itemActions/noResultsReason,出卡适配层补充) */
208
+ export type ActivityPlayPrizeListResult = z.infer<typeof activityPlayPrizeListResultSchema>;
package/dist/index.d.ts CHANGED
@@ -13,11 +13,13 @@ export * from './domain/entitlement';
13
13
  export * from './domain/activity';
14
14
  export * from './domain/operation';
15
15
  export * from './domain/activity-play';
16
+ export * from './domain/activity-play-prize';
16
17
  export * from './services/member';
17
18
  export * from './services/parking';
18
19
  export * from './services/promotion';
19
20
  export * from './services/mall-info';
20
21
  export * from './services/activity-play';
22
+ export * from './services/activity-play-prize';
21
23
  export * from './events';
22
24
  export * from './scope';
23
25
  export * from './query-context';
@@ -34,4 +36,5 @@ export * from './member/cards';
34
36
  export * from './promotion/cards';
35
37
  export * from './parking/cards';
36
38
  export * from './activity-play/cards';
39
+ export * from './activity-play-prize/cards';
37
40
  export * from './alipay-activity/cards';
@@ -536,7 +536,6 @@ export declare const parkingPaymentRecordsCardDataSchema: z.ZodObject<{
536
536
  message: z.ZodOptional<z.ZodString>;
537
537
  }, "strip", z.ZodTypeAny, {
538
538
  total: number;
539
- hasMore: boolean;
540
539
  items: {
541
540
  status: "PAID" | "REFUNDED" | "CLOSED" | "UNKNOWN";
542
541
  plateNo: string;
@@ -553,11 +552,11 @@ export declare const parkingPaymentRecordsCardDataSchema: z.ZodObject<{
553
552
  invoiceEligible?: boolean | undefined;
554
553
  invoiceIssued?: boolean | undefined;
555
554
  }[];
555
+ hasMore: boolean;
556
556
  caveats: string[];
557
557
  message?: string | undefined;
558
558
  }, {
559
559
  total: number;
560
- hasMore: boolean;
561
560
  items: {
562
561
  status: "PAID" | "REFUNDED" | "CLOSED" | "UNKNOWN";
563
562
  plateNo: string;
@@ -574,6 +573,7 @@ export declare const parkingPaymentRecordsCardDataSchema: z.ZodObject<{
574
573
  invoiceEligible?: boolean | undefined;
575
574
  invoiceIssued?: boolean | undefined;
576
575
  }[];
576
+ hasMore: boolean;
577
577
  caveats: string[];
578
578
  message?: string | undefined;
579
579
  }>;
@@ -1151,7 +1151,6 @@ export declare const parkingCardDataSchemas: {
1151
1151
  message: z.ZodOptional<z.ZodString>;
1152
1152
  }, "strip", z.ZodTypeAny, {
1153
1153
  total: number;
1154
- hasMore: boolean;
1155
1154
  items: {
1156
1155
  status: "PAID" | "REFUNDED" | "CLOSED" | "UNKNOWN";
1157
1156
  plateNo: string;
@@ -1168,11 +1167,11 @@ export declare const parkingCardDataSchemas: {
1168
1167
  invoiceEligible?: boolean | undefined;
1169
1168
  invoiceIssued?: boolean | undefined;
1170
1169
  }[];
1170
+ hasMore: boolean;
1171
1171
  caveats: string[];
1172
1172
  message?: string | undefined;
1173
1173
  }, {
1174
1174
  total: number;
1175
- hasMore: boolean;
1176
1175
  items: {
1177
1176
  status: "PAID" | "REFUNDED" | "CLOSED" | "UNKNOWN";
1178
1177
  plateNo: string;
@@ -1189,6 +1188,7 @@ export declare const parkingCardDataSchemas: {
1189
1188
  invoiceEligible?: boolean | undefined;
1190
1189
  invoiceIssued?: boolean | undefined;
1191
1190
  }[];
1191
+ hasMore: boolean;
1192
1192
  caveats: string[];
1193
1193
  message?: string | undefined;
1194
1194
  }>;