@tbox.cn/app-module-activity-play 1.0.0-alpha.7 → 1.0.0-alpha.9

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.
Files changed (37) hide show
  1. package/INTEGRATION.md +6 -4
  2. package/README.md +5 -3
  3. package/dist/chunk-CVZ4T5JN.js +471 -0
  4. package/dist/{chunk-HXO47NYM.js → chunk-YH6HTRSS.js} +7 -76
  5. package/dist/client/index.d.ts +0 -1
  6. package/dist/client/index.js +1 -1
  7. package/dist/index.d.ts +1 -1
  8. package/dist/index.js +2 -4
  9. package/dist/server/index.d.ts +261 -156
  10. package/dist/server/index.js +1 -3
  11. package/package.json +15 -7
  12. package/skills/activity-play/SKILL.md +10 -0
  13. package/src/client/cards/ListPresentation.tsx +83 -0
  14. package/src/client/cards/activity-play/ActivityDetailSheet.tsx +135 -0
  15. package/src/client/cards/activity-play/ActivityPlayCard.tsx +60 -54
  16. package/src/client/cards/activity-play-prize/ActivityPlayPrizeListCard.tsx +55 -44
  17. package/src/client/cards/activity-play-prize/PrizeDetailContent.tsx +33 -0
  18. package/src/client/cards/activity-play-prize/PrizeDetailSheet.tsx +52 -0
  19. package/src/client/cards/activity-play-prize/index.ts +0 -7
  20. package/src/client/cards/view.ts +16 -0
  21. package/src/client/index.ts +7 -11
  22. package/src/server/cards/index.ts +1 -3
  23. package/src/server/index.ts +2 -19
  24. package/src/server/prizes/cards.ts +6 -6
  25. package/src/server/prizes/tools.ts +4 -6
  26. package/src/server/tools.ts +1 -1
  27. package/tbox.module.json +0 -4
  28. package/tests/activity-card.test.tsx +156 -0
  29. package/tests/prizes-tools.test.ts +7 -4
  30. package/tests/prizes.test.ts +6 -12
  31. package/tests/routes.test.ts +13 -0
  32. package/tests/smoke.test.ts +7 -5
  33. package/tsup.config.ts +1 -0
  34. package/dist/chunk-KK4F22GE.js +0 -190
  35. package/src/client/cards/activity-play-prize/ActivityPlayPrizeDetailCard.tsx +0 -44
  36. package/src/server/cards/activity-play-prize-detail/meta.ts +0 -29
  37. package/src/server/cards/activity-play-prize-detail/samples.ts +0 -54
@@ -5,7 +5,7 @@ import * as zod from 'zod';
5
5
  import * as _tbox_cn_app_agent_sdk_server from '@tbox.cn/app-agent-sdk-server';
6
6
  import { ServerContext } from '@tbox.cn/app-agent-sdk-server';
7
7
  import { Router } from 'express';
8
- import { ActivityPlayQueryPort, ActivityPlayPrizeQueryPort, ActivityPlayPrizeDetail, ActivityPlayPrizeListResult, ActivityPlayPrizeQueryContext, ActivityPlayPrizeDetailCardData, ActivityPlayPrizeListCardData, ActivityPlayActivity, ActivityPlayPage } from '@tbox.cn/app-contracts-mall';
8
+ import { ActivityPlayQueryPort, ActivityPlayPrizeQueryPort, ActivityPlayPrizeDetail, ActivityPlayPrizeListResult, ActivityPlayPrizeQueryContext, ActivityPlayPrizeListCardData, ActivityPlayActivity, ActivityPlayPage } from '@tbox.cn/app-contracts-mall';
9
9
  import * as _mastra_core_tools from '@mastra/core/tools';
10
10
 
11
11
  /**
@@ -86,9 +86,8 @@ declare function createActivityPlayTools(opts: {
86
86
  }, unknown, unknown, unknown, _mastra_core_tools.ToolExecutionContext<unknown, unknown, unknown>, "getActivityPlayDetail", unknown>;
87
87
  };
88
88
 
89
- /** 两张奖品稳定卡型(与 meta.cardType 同名——cards map 键约定铁律) */
89
+ /** 奖品唯一列表卡型(与 meta.cardType 同名——cards map 键约定铁律) */
90
90
  declare const ACTIVITY_PLAY_PRIZE_LIST_CARD_TYPE = "activity-play-prize-list";
91
- declare const ACTIVITY_PLAY_PRIZE_DETAIL_CARD_TYPE = "activity-play-prize-detail";
92
91
  declare function createActivityPlayPrizeTools(opts: {
93
92
  getCtx: () => ServerContext;
94
93
  }): {
@@ -122,6 +121,41 @@ declare const activityPlayCards: {
122
121
  title: zod.ZodString;
123
122
  description: zod.ZodOptional<zod.ZodString>;
124
123
  imageUrl: zod.ZodOptional<zod.ZodString>;
124
+ detailCoverUrl: zod.ZodOptional<zod.ZodString>;
125
+ participationRules: zod.ZodOptional<zod.ZodObject<{
126
+ ruleTexts: zod.ZodArray<zod.ZodString, "many">;
127
+ }, "strict", zod.ZodTypeAny, {
128
+ ruleTexts: string[];
129
+ }, {
130
+ ruleTexts: string[];
131
+ }>>;
132
+ rewardSummary: zod.ZodOptional<zod.ZodObject<{
133
+ items: zod.ZodArray<zod.ZodObject<{
134
+ title: zod.ZodString;
135
+ tierName: zod.ZodString;
136
+ imageUrl: zod.ZodOptional<zod.ZodString>;
137
+ }, "strict", zod.ZodTypeAny, {
138
+ title: string;
139
+ tierName: string;
140
+ imageUrl?: string | undefined;
141
+ }, {
142
+ title: string;
143
+ tierName: string;
144
+ imageUrl?: string | undefined;
145
+ }>, "many">;
146
+ }, "strict", zod.ZodTypeAny, {
147
+ items: {
148
+ title: string;
149
+ tierName: string;
150
+ imageUrl?: string | undefined;
151
+ }[];
152
+ }, {
153
+ items: {
154
+ title: string;
155
+ tierName: string;
156
+ imageUrl?: string | undefined;
157
+ }[];
158
+ }>>;
125
159
  startsAt: zod.ZodOptional<zod.ZodString>;
126
160
  endsAt: zod.ZodOptional<zod.ZodString>;
127
161
  status: zod.ZodEnum<["not_started", "active", "ended", "disabled", "unknown"]>;
@@ -131,6 +165,17 @@ declare const activityPlayCards: {
131
165
  activityId: string;
132
166
  description?: string | undefined;
133
167
  imageUrl?: string | undefined;
168
+ detailCoverUrl?: string | undefined;
169
+ participationRules?: {
170
+ ruleTexts: string[];
171
+ } | undefined;
172
+ rewardSummary?: {
173
+ items: {
174
+ title: string;
175
+ tierName: string;
176
+ imageUrl?: string | undefined;
177
+ }[];
178
+ } | undefined;
134
179
  startsAt?: string | undefined;
135
180
  endsAt?: string | undefined;
136
181
  }, {
@@ -139,57 +184,112 @@ declare const activityPlayCards: {
139
184
  activityId: string;
140
185
  description?: string | undefined;
141
186
  imageUrl?: string | undefined;
187
+ detailCoverUrl?: string | undefined;
188
+ participationRules?: {
189
+ ruleTexts: string[];
190
+ } | undefined;
191
+ rewardSummary?: {
192
+ items: {
193
+ title: string;
194
+ tierName: string;
195
+ imageUrl?: string | undefined;
196
+ }[];
197
+ } | undefined;
142
198
  startsAt?: string | undefined;
143
199
  endsAt?: string | undefined;
144
200
  }>, "many">;
145
201
  }, "strip", zod.ZodTypeAny, {
146
- mode: "detail" | "list";
147
- mallId: string;
148
202
  items: {
149
203
  status: "unknown" | "disabled" | "not_started" | "active" | "ended";
150
204
  title: string;
151
205
  activityId: string;
152
206
  description?: string | undefined;
153
207
  imageUrl?: string | undefined;
208
+ detailCoverUrl?: string | undefined;
209
+ participationRules?: {
210
+ ruleTexts: string[];
211
+ } | undefined;
212
+ rewardSummary?: {
213
+ items: {
214
+ title: string;
215
+ tierName: string;
216
+ imageUrl?: string | undefined;
217
+ }[];
218
+ } | undefined;
154
219
  startsAt?: string | undefined;
155
220
  endsAt?: string | undefined;
156
221
  }[];
157
- }, {
158
222
  mode: "detail" | "list";
159
223
  mallId: string;
224
+ }, {
160
225
  items: {
161
226
  status: "unknown" | "disabled" | "not_started" | "active" | "ended";
162
227
  title: string;
163
228
  activityId: string;
164
229
  description?: string | undefined;
165
230
  imageUrl?: string | undefined;
231
+ detailCoverUrl?: string | undefined;
232
+ participationRules?: {
233
+ ruleTexts: string[];
234
+ } | undefined;
235
+ rewardSummary?: {
236
+ items: {
237
+ title: string;
238
+ tierName: string;
239
+ imageUrl?: string | undefined;
240
+ }[];
241
+ } | undefined;
166
242
  startsAt?: string | undefined;
167
243
  endsAt?: string | undefined;
168
244
  }[];
169
- }>, {
170
245
  mode: "detail" | "list";
171
246
  mallId: string;
247
+ }>, {
172
248
  items: {
173
249
  status: "unknown" | "disabled" | "not_started" | "active" | "ended";
174
250
  title: string;
175
251
  activityId: string;
176
252
  description?: string | undefined;
177
253
  imageUrl?: string | undefined;
254
+ detailCoverUrl?: string | undefined;
255
+ participationRules?: {
256
+ ruleTexts: string[];
257
+ } | undefined;
258
+ rewardSummary?: {
259
+ items: {
260
+ title: string;
261
+ tierName: string;
262
+ imageUrl?: string | undefined;
263
+ }[];
264
+ } | undefined;
178
265
  startsAt?: string | undefined;
179
266
  endsAt?: string | undefined;
180
267
  }[];
181
- }, {
182
268
  mode: "detail" | "list";
183
269
  mallId: string;
270
+ }, {
184
271
  items: {
185
272
  status: "unknown" | "disabled" | "not_started" | "active" | "ended";
186
273
  title: string;
187
274
  activityId: string;
188
275
  description?: string | undefined;
189
276
  imageUrl?: string | undefined;
277
+ detailCoverUrl?: string | undefined;
278
+ participationRules?: {
279
+ ruleTexts: string[];
280
+ } | undefined;
281
+ rewardSummary?: {
282
+ items: {
283
+ title: string;
284
+ tierName: string;
285
+ imageUrl?: string | undefined;
286
+ }[];
287
+ } | undefined;
190
288
  startsAt?: string | undefined;
191
289
  endsAt?: string | undefined;
192
290
  }[];
291
+ mode: "detail" | "list";
292
+ mallId: string;
193
293
  }>>;
194
294
  readonly 'activity-play-prize-list': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
195
295
  mallId: zod.ZodString;
@@ -212,13 +312,13 @@ declare const activityPlayCards: {
212
312
  value: zod.ZodOptional<zod.ZodString>;
213
313
  visibleValue: zod.ZodOptional<zod.ZodString>;
214
314
  }, "strip", zod.ZodTypeAny, {
215
- kind: "send";
216
315
  label: string;
316
+ kind: "send";
217
317
  value?: string | undefined;
218
318
  visibleValue?: string | undefined;
219
319
  }, {
220
- kind: "send";
221
320
  label: string;
321
+ kind: "send";
222
322
  value?: string | undefined;
223
323
  visibleValue?: string | undefined;
224
324
  }>, zod.ZodObject<{
@@ -226,13 +326,13 @@ declare const activityPlayCards: {
226
326
  label: zod.ZodString;
227
327
  url: zod.ZodString;
228
328
  }, "strip", zod.ZodTypeAny, {
229
- url: string;
230
- kind: "link";
231
329
  label: string;
232
- }, {
233
- url: string;
234
330
  kind: "link";
331
+ url: string;
332
+ }, {
235
333
  label: string;
334
+ kind: "link";
335
+ url: string;
236
336
  }>]>, "many">>;
237
337
  }, "strict", zod.ZodTypeAny, {
238
338
  title: string;
@@ -246,14 +346,14 @@ declare const activityPlayCards: {
246
346
  wonAt?: string | undefined;
247
347
  usageRuleText?: string | undefined;
248
348
  itemActions?: ({
249
- kind: "send";
250
349
  label: string;
350
+ kind: "send";
251
351
  value?: string | undefined;
252
352
  visibleValue?: string | undefined;
253
353
  } | {
254
- url: string;
255
- kind: "link";
256
354
  label: string;
355
+ kind: "link";
356
+ url: string;
257
357
  })[] | undefined;
258
358
  }, {
259
359
  title: string;
@@ -267,21 +367,19 @@ declare const activityPlayCards: {
267
367
  wonAt?: string | undefined;
268
368
  usageRuleText?: string | undefined;
269
369
  itemActions?: ({
270
- kind: "send";
271
370
  label: string;
371
+ kind: "send";
272
372
  value?: string | undefined;
273
373
  visibleValue?: string | undefined;
274
374
  } | {
275
- url: string;
276
- kind: "link";
277
375
  label: string;
376
+ kind: "link";
377
+ url: string;
278
378
  })[] | undefined;
279
379
  }>, "many">;
280
380
  noResultsReason: zod.ZodOptional<zod.ZodString>;
281
381
  truncated: zod.ZodOptional<zod.ZodBoolean>;
282
382
  }, "strict", zod.ZodTypeAny, {
283
- mallId: string;
284
- total: number;
285
383
  items: {
286
384
  title: string;
287
385
  prizeRecordRef: string;
@@ -294,21 +392,21 @@ declare const activityPlayCards: {
294
392
  wonAt?: string | undefined;
295
393
  usageRuleText?: string | undefined;
296
394
  itemActions?: ({
297
- kind: "send";
298
395
  label: string;
396
+ kind: "send";
299
397
  value?: string | undefined;
300
398
  visibleValue?: string | undefined;
301
399
  } | {
302
- url: string;
303
- kind: "link";
304
400
  label: string;
401
+ kind: "link";
402
+ url: string;
305
403
  })[] | undefined;
306
404
  }[];
405
+ total: number;
406
+ mallId: string;
307
407
  truncated?: boolean | undefined;
308
408
  noResultsReason?: string | undefined;
309
409
  }, {
310
- mallId: string;
311
- total: number;
312
410
  items: {
313
411
  title: string;
314
412
  prizeRecordRef: string;
@@ -321,67 +419,21 @@ declare const activityPlayCards: {
321
419
  wonAt?: string | undefined;
322
420
  usageRuleText?: string | undefined;
323
421
  itemActions?: ({
324
- kind: "send";
325
422
  label: string;
423
+ kind: "send";
326
424
  value?: string | undefined;
327
425
  visibleValue?: string | undefined;
328
426
  } | {
329
- url: string;
330
- kind: "link";
331
427
  label: string;
428
+ kind: "link";
429
+ url: string;
332
430
  })[] | undefined;
333
431
  }[];
432
+ total: number;
433
+ mallId: string;
334
434
  truncated?: boolean | undefined;
335
435
  noResultsReason?: string | undefined;
336
436
  }>>;
337
- readonly 'activity-play-prize-detail': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
338
- prizeRecordRef: zod.ZodEffects<zod.ZodString, string, string>;
339
- title: zod.ZodString;
340
- prizeType: zod.ZodString;
341
- claimStatus: zod.ZodString;
342
- useStatus: zod.ZodString;
343
- activityId: zod.ZodOptional<zod.ZodString>;
344
- activityTitle: zod.ZodOptional<zod.ZodString>;
345
- imageUrl: zod.ZodOptional<zod.ZodString>;
346
- wonAt: zod.ZodOptional<zod.ZodString>;
347
- usageRuleText: zod.ZodOptional<zod.ZodString>;
348
- } & {
349
- redemptionMethod: zod.ZodOptional<zod.ZodString>;
350
- redemptionInstruction: zod.ZodOptional<zod.ZodString>;
351
- prizeUrl: zod.ZodOptional<zod.ZodString>;
352
- } & {
353
- mallId: zod.ZodString;
354
- }, "strict", zod.ZodTypeAny, {
355
- title: string;
356
- mallId: string;
357
- prizeRecordRef: string;
358
- prizeType: string;
359
- claimStatus: string;
360
- useStatus: string;
361
- activityId?: string | undefined;
362
- imageUrl?: string | undefined;
363
- activityTitle?: string | undefined;
364
- wonAt?: string | undefined;
365
- usageRuleText?: string | undefined;
366
- redemptionMethod?: string | undefined;
367
- redemptionInstruction?: string | undefined;
368
- prizeUrl?: string | undefined;
369
- }, {
370
- title: string;
371
- mallId: string;
372
- prizeRecordRef: string;
373
- prizeType: string;
374
- claimStatus: string;
375
- useStatus: string;
376
- activityId?: string | undefined;
377
- imageUrl?: string | undefined;
378
- activityTitle?: string | undefined;
379
- wonAt?: string | undefined;
380
- usageRuleText?: string | undefined;
381
- redemptionMethod?: string | undefined;
382
- redemptionInstruction?: string | undefined;
383
- prizeUrl?: string | undefined;
384
- }>>;
385
437
  };
386
438
 
387
439
  /**
@@ -438,11 +490,11 @@ declare function toPrizeListCardData(input: {
438
490
  mallId: string;
439
491
  result: ActivityPlayPrizeListResult;
440
492
  }): ActivityPlayPrizeListCardData;
441
- /** 本人奖品详情卡片 data(平铺 {mallId, ...detail}) */
493
+ /** 详情查询投影为单条奖品列表卡,领取说明仅在详情 HTTP 与半屏展示 */
442
494
  declare function toPrizeDetailCardData(input: {
443
495
  mallId: string;
444
496
  detail: ActivityPlayPrizeDetail;
445
- }): ActivityPlayPrizeDetailCardData;
497
+ }): ActivityPlayPrizeListCardData;
446
498
 
447
499
  type ActivityPlayPrizeErrorCode = 'INVALID_REQUEST' | 'SCOPE_REQUIRED' | 'SCOPE_MISMATCH' | 'LOGIN_REQUIRED' | 'PRIZE_NOT_FOUND' | 'NOT_CONFIGURED' | 'PROVIDER_ERROR';
448
500
  /** 可直接渲染的奖品链错误(service/route 层统一抛出/转换) */
@@ -547,6 +599,41 @@ declare const serverModule: {
547
599
  title: zod.ZodString;
548
600
  description: zod.ZodOptional<zod.ZodString>;
549
601
  imageUrl: zod.ZodOptional<zod.ZodString>;
602
+ detailCoverUrl: zod.ZodOptional<zod.ZodString>;
603
+ participationRules: zod.ZodOptional<zod.ZodObject<{
604
+ ruleTexts: zod.ZodArray<zod.ZodString, "many">;
605
+ }, "strict", zod.ZodTypeAny, {
606
+ ruleTexts: string[];
607
+ }, {
608
+ ruleTexts: string[];
609
+ }>>;
610
+ rewardSummary: zod.ZodOptional<zod.ZodObject<{
611
+ items: zod.ZodArray<zod.ZodObject<{
612
+ title: zod.ZodString;
613
+ tierName: zod.ZodString;
614
+ imageUrl: zod.ZodOptional<zod.ZodString>;
615
+ }, "strict", zod.ZodTypeAny, {
616
+ title: string;
617
+ tierName: string;
618
+ imageUrl?: string | undefined;
619
+ }, {
620
+ title: string;
621
+ tierName: string;
622
+ imageUrl?: string | undefined;
623
+ }>, "many">;
624
+ }, "strict", zod.ZodTypeAny, {
625
+ items: {
626
+ title: string;
627
+ tierName: string;
628
+ imageUrl?: string | undefined;
629
+ }[];
630
+ }, {
631
+ items: {
632
+ title: string;
633
+ tierName: string;
634
+ imageUrl?: string | undefined;
635
+ }[];
636
+ }>>;
550
637
  startsAt: zod.ZodOptional<zod.ZodString>;
551
638
  endsAt: zod.ZodOptional<zod.ZodString>;
552
639
  status: zod.ZodEnum<["not_started", "active", "ended", "disabled", "unknown"]>;
@@ -556,6 +643,17 @@ declare const serverModule: {
556
643
  activityId: string;
557
644
  description?: string | undefined;
558
645
  imageUrl?: string | undefined;
646
+ detailCoverUrl?: string | undefined;
647
+ participationRules?: {
648
+ ruleTexts: string[];
649
+ } | undefined;
650
+ rewardSummary?: {
651
+ items: {
652
+ title: string;
653
+ tierName: string;
654
+ imageUrl?: string | undefined;
655
+ }[];
656
+ } | undefined;
559
657
  startsAt?: string | undefined;
560
658
  endsAt?: string | undefined;
561
659
  }, {
@@ -564,57 +662,112 @@ declare const serverModule: {
564
662
  activityId: string;
565
663
  description?: string | undefined;
566
664
  imageUrl?: string | undefined;
665
+ detailCoverUrl?: string | undefined;
666
+ participationRules?: {
667
+ ruleTexts: string[];
668
+ } | undefined;
669
+ rewardSummary?: {
670
+ items: {
671
+ title: string;
672
+ tierName: string;
673
+ imageUrl?: string | undefined;
674
+ }[];
675
+ } | undefined;
567
676
  startsAt?: string | undefined;
568
677
  endsAt?: string | undefined;
569
678
  }>, "many">;
570
679
  }, "strip", zod.ZodTypeAny, {
571
- mode: "detail" | "list";
572
- mallId: string;
573
680
  items: {
574
681
  status: "unknown" | "disabled" | "not_started" | "active" | "ended";
575
682
  title: string;
576
683
  activityId: string;
577
684
  description?: string | undefined;
578
685
  imageUrl?: string | undefined;
686
+ detailCoverUrl?: string | undefined;
687
+ participationRules?: {
688
+ ruleTexts: string[];
689
+ } | undefined;
690
+ rewardSummary?: {
691
+ items: {
692
+ title: string;
693
+ tierName: string;
694
+ imageUrl?: string | undefined;
695
+ }[];
696
+ } | undefined;
579
697
  startsAt?: string | undefined;
580
698
  endsAt?: string | undefined;
581
699
  }[];
582
- }, {
583
700
  mode: "detail" | "list";
584
701
  mallId: string;
702
+ }, {
585
703
  items: {
586
704
  status: "unknown" | "disabled" | "not_started" | "active" | "ended";
587
705
  title: string;
588
706
  activityId: string;
589
707
  description?: string | undefined;
590
708
  imageUrl?: string | undefined;
709
+ detailCoverUrl?: string | undefined;
710
+ participationRules?: {
711
+ ruleTexts: string[];
712
+ } | undefined;
713
+ rewardSummary?: {
714
+ items: {
715
+ title: string;
716
+ tierName: string;
717
+ imageUrl?: string | undefined;
718
+ }[];
719
+ } | undefined;
591
720
  startsAt?: string | undefined;
592
721
  endsAt?: string | undefined;
593
722
  }[];
594
- }>, {
595
723
  mode: "detail" | "list";
596
724
  mallId: string;
725
+ }>, {
597
726
  items: {
598
727
  status: "unknown" | "disabled" | "not_started" | "active" | "ended";
599
728
  title: string;
600
729
  activityId: string;
601
730
  description?: string | undefined;
602
731
  imageUrl?: string | undefined;
732
+ detailCoverUrl?: string | undefined;
733
+ participationRules?: {
734
+ ruleTexts: string[];
735
+ } | undefined;
736
+ rewardSummary?: {
737
+ items: {
738
+ title: string;
739
+ tierName: string;
740
+ imageUrl?: string | undefined;
741
+ }[];
742
+ } | undefined;
603
743
  startsAt?: string | undefined;
604
744
  endsAt?: string | undefined;
605
745
  }[];
606
- }, {
607
746
  mode: "detail" | "list";
608
747
  mallId: string;
748
+ }, {
609
749
  items: {
610
750
  status: "unknown" | "disabled" | "not_started" | "active" | "ended";
611
751
  title: string;
612
752
  activityId: string;
613
753
  description?: string | undefined;
614
754
  imageUrl?: string | undefined;
755
+ detailCoverUrl?: string | undefined;
756
+ participationRules?: {
757
+ ruleTexts: string[];
758
+ } | undefined;
759
+ rewardSummary?: {
760
+ items: {
761
+ title: string;
762
+ tierName: string;
763
+ imageUrl?: string | undefined;
764
+ }[];
765
+ } | undefined;
615
766
  startsAt?: string | undefined;
616
767
  endsAt?: string | undefined;
617
768
  }[];
769
+ mode: "detail" | "list";
770
+ mallId: string;
618
771
  }>>;
619
772
  readonly 'activity-play-prize-list': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
620
773
  mallId: zod.ZodString;
@@ -637,13 +790,13 @@ declare const serverModule: {
637
790
  value: zod.ZodOptional<zod.ZodString>;
638
791
  visibleValue: zod.ZodOptional<zod.ZodString>;
639
792
  }, "strip", zod.ZodTypeAny, {
640
- kind: "send";
641
793
  label: string;
794
+ kind: "send";
642
795
  value?: string | undefined;
643
796
  visibleValue?: string | undefined;
644
797
  }, {
645
- kind: "send";
646
798
  label: string;
799
+ kind: "send";
647
800
  value?: string | undefined;
648
801
  visibleValue?: string | undefined;
649
802
  }>, zod.ZodObject<{
@@ -651,13 +804,13 @@ declare const serverModule: {
651
804
  label: zod.ZodString;
652
805
  url: zod.ZodString;
653
806
  }, "strip", zod.ZodTypeAny, {
654
- url: string;
655
- kind: "link";
656
807
  label: string;
657
- }, {
658
- url: string;
659
808
  kind: "link";
809
+ url: string;
810
+ }, {
660
811
  label: string;
812
+ kind: "link";
813
+ url: string;
661
814
  }>]>, "many">>;
662
815
  }, "strict", zod.ZodTypeAny, {
663
816
  title: string;
@@ -671,14 +824,14 @@ declare const serverModule: {
671
824
  wonAt?: string | undefined;
672
825
  usageRuleText?: string | undefined;
673
826
  itemActions?: ({
674
- kind: "send";
675
827
  label: string;
828
+ kind: "send";
676
829
  value?: string | undefined;
677
830
  visibleValue?: string | undefined;
678
831
  } | {
679
- url: string;
680
- kind: "link";
681
832
  label: string;
833
+ kind: "link";
834
+ url: string;
682
835
  })[] | undefined;
683
836
  }, {
684
837
  title: string;
@@ -692,21 +845,19 @@ declare const serverModule: {
692
845
  wonAt?: string | undefined;
693
846
  usageRuleText?: string | undefined;
694
847
  itemActions?: ({
695
- kind: "send";
696
848
  label: string;
849
+ kind: "send";
697
850
  value?: string | undefined;
698
851
  visibleValue?: string | undefined;
699
852
  } | {
700
- url: string;
701
- kind: "link";
702
853
  label: string;
854
+ kind: "link";
855
+ url: string;
703
856
  })[] | undefined;
704
857
  }>, "many">;
705
858
  noResultsReason: zod.ZodOptional<zod.ZodString>;
706
859
  truncated: zod.ZodOptional<zod.ZodBoolean>;
707
860
  }, "strict", zod.ZodTypeAny, {
708
- mallId: string;
709
- total: number;
710
861
  items: {
711
862
  title: string;
712
863
  prizeRecordRef: string;
@@ -719,21 +870,21 @@ declare const serverModule: {
719
870
  wonAt?: string | undefined;
720
871
  usageRuleText?: string | undefined;
721
872
  itemActions?: ({
722
- kind: "send";
723
873
  label: string;
874
+ kind: "send";
724
875
  value?: string | undefined;
725
876
  visibleValue?: string | undefined;
726
877
  } | {
727
- url: string;
728
- kind: "link";
729
878
  label: string;
879
+ kind: "link";
880
+ url: string;
730
881
  })[] | undefined;
731
882
  }[];
883
+ total: number;
884
+ mallId: string;
732
885
  truncated?: boolean | undefined;
733
886
  noResultsReason?: string | undefined;
734
887
  }, {
735
- mallId: string;
736
- total: number;
737
888
  items: {
738
889
  title: string;
739
890
  prizeRecordRef: string;
@@ -746,67 +897,21 @@ declare const serverModule: {
746
897
  wonAt?: string | undefined;
747
898
  usageRuleText?: string | undefined;
748
899
  itemActions?: ({
749
- kind: "send";
750
900
  label: string;
901
+ kind: "send";
751
902
  value?: string | undefined;
752
903
  visibleValue?: string | undefined;
753
904
  } | {
754
- url: string;
755
- kind: "link";
756
905
  label: string;
906
+ kind: "link";
907
+ url: string;
757
908
  })[] | undefined;
758
909
  }[];
910
+ total: number;
911
+ mallId: string;
759
912
  truncated?: boolean | undefined;
760
913
  noResultsReason?: string | undefined;
761
914
  }>>;
762
- readonly 'activity-play-prize-detail': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
763
- prizeRecordRef: zod.ZodEffects<zod.ZodString, string, string>;
764
- title: zod.ZodString;
765
- prizeType: zod.ZodString;
766
- claimStatus: zod.ZodString;
767
- useStatus: zod.ZodString;
768
- activityId: zod.ZodOptional<zod.ZodString>;
769
- activityTitle: zod.ZodOptional<zod.ZodString>;
770
- imageUrl: zod.ZodOptional<zod.ZodString>;
771
- wonAt: zod.ZodOptional<zod.ZodString>;
772
- usageRuleText: zod.ZodOptional<zod.ZodString>;
773
- } & {
774
- redemptionMethod: zod.ZodOptional<zod.ZodString>;
775
- redemptionInstruction: zod.ZodOptional<zod.ZodString>;
776
- prizeUrl: zod.ZodOptional<zod.ZodString>;
777
- } & {
778
- mallId: zod.ZodString;
779
- }, "strict", zod.ZodTypeAny, {
780
- title: string;
781
- mallId: string;
782
- prizeRecordRef: string;
783
- prizeType: string;
784
- claimStatus: string;
785
- useStatus: string;
786
- activityId?: string | undefined;
787
- imageUrl?: string | undefined;
788
- activityTitle?: string | undefined;
789
- wonAt?: string | undefined;
790
- usageRuleText?: string | undefined;
791
- redemptionMethod?: string | undefined;
792
- redemptionInstruction?: string | undefined;
793
- prizeUrl?: string | undefined;
794
- }, {
795
- title: string;
796
- mallId: string;
797
- prizeRecordRef: string;
798
- prizeType: string;
799
- claimStatus: string;
800
- useStatus: string;
801
- activityId?: string | undefined;
802
- imageUrl?: string | undefined;
803
- activityTitle?: string | undefined;
804
- wonAt?: string | undefined;
805
- usageRuleText?: string | undefined;
806
- redemptionMethod?: string | undefined;
807
- redemptionInstruction?: string | undefined;
808
- prizeUrl?: string | undefined;
809
- }>>;
810
915
  };
811
916
  skills: {
812
917
  [k: string]: _tbox_cn_app_sdk_server.LocalSkill;
@@ -814,4 +919,4 @@ declare const serverModule: {
814
919
  register(ctx: ServerContext): void;
815
920
  };
816
921
 
817
- export { ACTIVITY_PLAY_CARD_TYPE, ACTIVITY_PLAY_LIMIT_DEFAULT, ACTIVITY_PLAY_LIMIT_MAX, ACTIVITY_PLAY_LIMIT_MIN, ACTIVITY_PLAY_PRIZE_DETAIL_CARD_TYPE, ACTIVITY_PLAY_PRIZE_LIST_CARD_TYPE, type ActivityPlayErrorCode, ActivityPlayHttpError, type ActivityPlayPrizeErrorCode, ActivityPlayPrizeHttpError, PRIZE_NO_RESULTS_TEXT, PRIZE_VIEW_DETAIL_LABEL, activityPlayCards, createActivityPlayPrizeRouter, createActivityPlayPrizeTools, createActivityPlayRouter, createActivityPlayTools, normalizeActivityId, normalizeKeyword, normalizeListLimit, normalizePrizeRecordRef, queryActivityPlayDetail, queryActivityPlayList, queryMyPrizeDetail, queryMyPrizeList, requireMallIdOf, requirePrizeQueryContext, requirePrizeSubjectId, resolveActivityPlayPrizePort, resolveActivityPlayQueryPort, serverModule, toActivityPlayHttpError, toActivityPlayPrizeError, toPrizeDetailCardData, toPrizeListCardData };
922
+ export { ACTIVITY_PLAY_CARD_TYPE, ACTIVITY_PLAY_LIMIT_DEFAULT, ACTIVITY_PLAY_LIMIT_MAX, ACTIVITY_PLAY_LIMIT_MIN, ACTIVITY_PLAY_PRIZE_LIST_CARD_TYPE, type ActivityPlayErrorCode, ActivityPlayHttpError, type ActivityPlayPrizeErrorCode, ActivityPlayPrizeHttpError, PRIZE_NO_RESULTS_TEXT, PRIZE_VIEW_DETAIL_LABEL, activityPlayCards, createActivityPlayPrizeRouter, createActivityPlayPrizeTools, createActivityPlayRouter, createActivityPlayTools, normalizeActivityId, normalizeKeyword, normalizeListLimit, normalizePrizeRecordRef, queryActivityPlayDetail, queryActivityPlayList, queryMyPrizeDetail, queryMyPrizeList, requireMallIdOf, requirePrizeQueryContext, requirePrizeSubjectId, resolveActivityPlayPrizePort, resolveActivityPlayQueryPort, serverModule, toActivityPlayHttpError, toActivityPlayPrizeError, toPrizeDetailCardData, toPrizeListCardData };