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

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,8 +1,9 @@
1
1
  /**
2
- * 活动玩法域卡片数据契约(task-02 服务端出卡)。
2
+ * 活动玩法域卡片数据契约(远端活动改造 2026-11-17)。
3
3
  * 单一稳定 CardType `activity-play`,mode 区分列表/详情传输形态——视觉由前端渲染器
4
4
  * 按 mode 组织,传输层不拆分多卡型(与 promotion 域 9 卡型形态区分)。
5
- * 条目复用 activityPlayActivitySchema(含 B 端 enabled 剥离——卡data 不带配置字段)。
5
+ * 条目复用 activityPlayActivitySchema(供应商活动对象——卡 data 不带本地目录/入口配置字段)。
6
+ * 本人奖品两张卡型归任务 07,不在本契约预置空实现。
6
7
  * 信封字段(卡片 ID/时间戳/历史标记/版本)由 SDK 生成,不在本契约。
7
8
  */
8
9
  import { z } from 'zod';
@@ -12,30 +13,27 @@ export declare const activityPlayCardDataSchema: z.ZodEffects<z.ZodObject<{
12
13
  mallId: z.ZodString;
13
14
  /** 传输形态:list(列表,可空,≤50 项)/ detail(详情,恰好 1 项,可携 disabled) */
14
15
  mode: z.ZodEnum<["list", "detail"]>;
15
- /** 活动条目(契约单源 ActivityPlayActivity;不带 enabled 配置字段)——list 可空 ≤50 项 */
16
+ /** 活动条目(供应商活动对象:activityId/title/status 等——list 可空 ≤50 项) */
16
17
  items: z.ZodArray<z.ZodObject<{
17
- activityRef: z.ZodString;
18
+ activityId: z.ZodEffects<z.ZodString, string, string>;
18
19
  title: z.ZodString;
19
20
  description: z.ZodOptional<z.ZodString>;
20
21
  imageUrl: z.ZodOptional<z.ZodString>;
21
22
  startsAt: z.ZodOptional<z.ZodString>;
22
23
  endsAt: z.ZodOptional<z.ZodString>;
23
- status: z.ZodEnum<["not_started", "active", "ended", "disabled"]>;
24
- loginRequired: z.ZodBoolean;
24
+ status: z.ZodEnum<["not_started", "active", "ended", "disabled", "unknown"]>;
25
25
  }, "strict", z.ZodTypeAny, {
26
- status: "not_started" | "active" | "ended" | "disabled";
27
- activityRef: string;
26
+ status: "unknown" | "not_started" | "active" | "ended" | "disabled";
27
+ activityId: string;
28
28
  title: string;
29
- loginRequired: boolean;
30
29
  description?: string | undefined;
31
30
  imageUrl?: string | undefined;
32
31
  startsAt?: string | undefined;
33
32
  endsAt?: string | undefined;
34
33
  }, {
35
- status: "not_started" | "active" | "ended" | "disabled";
36
- activityRef: string;
34
+ status: "unknown" | "not_started" | "active" | "ended" | "disabled";
35
+ activityId: string;
37
36
  title: string;
38
- loginRequired: boolean;
39
37
  description?: string | undefined;
40
38
  imageUrl?: string | undefined;
41
39
  startsAt?: string | undefined;
@@ -44,10 +42,9 @@ export declare const activityPlayCardDataSchema: z.ZodEffects<z.ZodObject<{
44
42
  }, "strip", z.ZodTypeAny, {
45
43
  mallId: string;
46
44
  items: {
47
- status: "not_started" | "active" | "ended" | "disabled";
48
- activityRef: string;
45
+ status: "unknown" | "not_started" | "active" | "ended" | "disabled";
46
+ activityId: string;
49
47
  title: string;
50
- loginRequired: boolean;
51
48
  description?: string | undefined;
52
49
  imageUrl?: string | undefined;
53
50
  startsAt?: string | undefined;
@@ -57,10 +54,9 @@ export declare const activityPlayCardDataSchema: z.ZodEffects<z.ZodObject<{
57
54
  }, {
58
55
  mallId: string;
59
56
  items: {
60
- status: "not_started" | "active" | "ended" | "disabled";
61
- activityRef: string;
57
+ status: "unknown" | "not_started" | "active" | "ended" | "disabled";
58
+ activityId: string;
62
59
  title: string;
63
- loginRequired: boolean;
64
60
  description?: string | undefined;
65
61
  imageUrl?: string | undefined;
66
62
  startsAt?: string | undefined;
@@ -70,10 +66,9 @@ export declare const activityPlayCardDataSchema: z.ZodEffects<z.ZodObject<{
70
66
  }>, {
71
67
  mallId: string;
72
68
  items: {
73
- status: "not_started" | "active" | "ended" | "disabled";
74
- activityRef: string;
69
+ status: "unknown" | "not_started" | "active" | "ended" | "disabled";
70
+ activityId: string;
75
71
  title: string;
76
- loginRequired: boolean;
77
72
  description?: string | undefined;
78
73
  imageUrl?: string | undefined;
79
74
  startsAt?: string | undefined;
@@ -83,10 +78,9 @@ export declare const activityPlayCardDataSchema: z.ZodEffects<z.ZodObject<{
83
78
  }, {
84
79
  mallId: string;
85
80
  items: {
86
- status: "not_started" | "active" | "ended" | "disabled";
87
- activityRef: string;
81
+ status: "unknown" | "not_started" | "active" | "ended" | "disabled";
82
+ activityId: string;
88
83
  title: string;
89
- loginRequired: boolean;
90
84
  description?: string | undefined;
91
85
  imageUrl?: string | undefined;
92
86
  startsAt?: string | undefined;
@@ -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
+ activityId?: string | undefined;
74
+ imageUrl?: 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
+ activityId?: string | undefined;
95
+ imageUrl?: 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
+ activityId?: string | undefined;
167
+ imageUrl?: 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
+ activityId?: string | undefined;
188
+ imageUrl?: 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
+ activityId?: string | undefined;
216
+ imageUrl?: 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
+ activityId?: string | undefined;
243
+ imageUrl?: 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
+ activityId?: string | undefined;
291
+ imageUrl?: 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
+ activityId?: string | undefined;
306
+ imageUrl?: 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>;
@@ -107,8 +107,8 @@ export declare const promotionBumpInActivityCardDataSchema: z.ZodObject<{
107
107
  description?: string | undefined;
108
108
  }>, "many">>;
109
109
  }, "strip", z.ZodTypeAny, {
110
- activityRef: string;
111
110
  title: string;
111
+ activityRef: string;
112
112
  actStatus: "NOT_START" | "INIT" | "PROCESSING" | "FINISH" | "RECEIVED";
113
113
  vouchers: {
114
114
  merchantName: string;
@@ -139,8 +139,8 @@ export declare const promotionBumpInActivityCardDataSchema: z.ZodObject<{
139
139
  description?: string | undefined;
140
140
  }[] | undefined;
141
141
  }, {
142
- activityRef: string;
143
142
  title: string;
143
+ activityRef: string;
144
144
  actStatus: "NOT_START" | "INIT" | "PROCESSING" | "FINISH" | "RECEIVED";
145
145
  vouchers: {
146
146
  merchantName: string;
@@ -236,8 +236,8 @@ export declare const alipayActivityCardDataSchemas: {
236
236
  description?: string | undefined;
237
237
  }>, "many">>;
238
238
  }, "strip", z.ZodTypeAny, {
239
- activityRef: string;
240
239
  title: string;
240
+ activityRef: string;
241
241
  actStatus: "NOT_START" | "INIT" | "PROCESSING" | "FINISH" | "RECEIVED";
242
242
  vouchers: {
243
243
  merchantName: string;
@@ -268,8 +268,8 @@ export declare const alipayActivityCardDataSchemas: {
268
268
  description?: string | undefined;
269
269
  }[] | undefined;
270
270
  }, {
271
- activityRef: string;
272
271
  title: string;
272
+ activityRef: string;
273
273
  actStatus: "NOT_START" | "INIT" | "PROCESSING" | "FINISH" | "RECEIVED";
274
274
  vouchers: {
275
275
  merchantName: string;
@@ -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
+ activityId?: string | undefined;
68
+ imageUrl?: 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
+ activityId?: string | undefined;
79
+ imageUrl?: 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
+ activityId?: string | undefined;
111
+ imageUrl?: 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
+ activityId?: string | undefined;
125
+ imageUrl?: 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
+ activityId?: string | undefined;
158
+ imageUrl?: 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
+ activityId?: string | undefined;
169
+ imageUrl?: 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
+ activityId?: string | undefined;
183
+ imageUrl?: 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
+ activityId?: string | undefined;
197
+ imageUrl?: 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>;