@tbox.cn/app-module-promotion 1.0.0-alpha.13 → 1.0.0-alpha.14
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/INTEGRATION.md +1 -0
- package/dist/{chunk-5GWOZC6X.js → chunk-2S7WUHX4.js} +225 -81
- package/dist/chunk-HK4U3I7K.js +1547 -0
- package/dist/client/index.d.ts +2 -0
- package/dist/client/index.js +1 -1
- package/dist/index.js +2 -2
- package/dist/server/index.d.ts +376 -263
- package/dist/server/index.js +1 -1
- package/package.json +6 -6
- package/src/client/cards/index.ts +1 -0
- package/src/client/cards/promotion-deal-recall/index.tsx +60 -0
- package/src/client/cards/promotion-entitlement-list/index.tsx +10 -30
- package/src/client/cards/promotion-offer-list/NearbyDealsPanel.tsx +120 -0
- package/src/client/cards/promotion-offer-list/index.tsx +57 -68
- package/src/client/components/CouponListRow.tsx +51 -0
- package/src/client/components/CouponListToggle.tsx +22 -0
- package/src/client/components/use-coupon-list-expansion.ts +41 -0
- package/src/client/index.ts +2 -0
- package/src/deal-recall-card.ts +17 -0
- package/src/server/cards/index.ts +2 -0
- package/src/server/cards/promotion-deal-recall/meta.ts +16 -0
- package/src/server/deal-recall-tools.ts +70 -0
- package/src/server/handler.ts +10 -3
- package/src/server/index.ts +36 -1
- package/src/server/tools.ts +10 -3
- package/tbox.module.json +14 -1
- package/tests/cards-render.test.tsx +152 -3
- package/tests/promotion.test.ts +23 -0
- package/dist/chunk-OCTPGK3E.js +0 -1340
package/dist/server/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import * as _tbox_cn_app_sdk_server from '@tbox.cn/app-sdk-server';
|
|
|
5
5
|
import * as _tbox_cn_app_contracts from '@tbox.cn/app-contracts';
|
|
6
6
|
import { RequestContext } from '@tbox.cn/app-contracts';
|
|
7
7
|
import * as zod from 'zod';
|
|
8
|
+
import { z } from 'zod';
|
|
8
9
|
import * as _tbox_cn_app_contracts_mall from '@tbox.cn/app-contracts-mall';
|
|
9
10
|
import { PromotionOfferQueryPort, PromotionEntitlementPort, PromotionActivityPort, PromotionAcquisitionPort, PromotionQueryContext, PromotionSearchInput, PromotionOfferPage, PromotionOffer, PromotionBestDeal, PromotionEntitlementPage, PromotionEntitlement, PromotionActivityPage, PromotionActivityDetail, PromotionOperation } from '@tbox.cn/app-contracts-mall';
|
|
10
11
|
|
|
@@ -200,6 +201,7 @@ declare const promotionCards: {
|
|
|
200
201
|
}>, "many">;
|
|
201
202
|
noResultsReason: zod.ZodOptional<zod.ZodString>;
|
|
202
203
|
nextCursor: zod.ZodOptional<zod.ZodString>;
|
|
204
|
+
showDealRecall: zod.ZodOptional<zod.ZodLiteral<true>>;
|
|
203
205
|
}, "strip", zod.ZodTypeAny, {
|
|
204
206
|
items: {
|
|
205
207
|
title: string;
|
|
@@ -243,6 +245,7 @@ declare const promotionCards: {
|
|
|
243
245
|
noResultsReason?: string | undefined;
|
|
244
246
|
maxItems?: number | undefined;
|
|
245
247
|
nextCursor?: string | undefined;
|
|
248
|
+
showDealRecall?: true | undefined;
|
|
246
249
|
}, {
|
|
247
250
|
items: {
|
|
248
251
|
title: string;
|
|
@@ -286,6 +289,7 @@ declare const promotionCards: {
|
|
|
286
289
|
noResultsReason?: string | undefined;
|
|
287
290
|
maxItems?: number | undefined;
|
|
288
291
|
nextCursor?: string | undefined;
|
|
292
|
+
showDealRecall?: true | undefined;
|
|
289
293
|
}>>;
|
|
290
294
|
readonly 'promotion-offer-detail': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
|
|
291
295
|
presentation: zod.ZodOptional<zod.ZodEnum<["offer", "promotion", "promotion-guide", "coupon", "package"]>>;
|
|
@@ -1273,6 +1277,59 @@ declare const promotionCards: {
|
|
|
1273
1277
|
validityText?: string | undefined;
|
|
1274
1278
|
}[] | undefined;
|
|
1275
1279
|
}>>;
|
|
1280
|
+
readonly 'promotion-deal-recall': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
|
|
1281
|
+
title: zod.ZodString;
|
|
1282
|
+
partial: zod.ZodOptional<zod.ZodBoolean>;
|
|
1283
|
+
items: zod.ZodArray<zod.ZodObject<{
|
|
1284
|
+
id: zod.ZodString;
|
|
1285
|
+
kind: zod.ZodEnum<["item", "shop"]>;
|
|
1286
|
+
title: zod.ZodString;
|
|
1287
|
+
subtitle: zod.ZodOptional<zod.ZodString>;
|
|
1288
|
+
imageUrl: zod.ZodOptional<zod.ZodString>;
|
|
1289
|
+
price: zod.ZodOptional<zod.ZodString>;
|
|
1290
|
+
url: zod.ZodOptional<zod.ZodString>;
|
|
1291
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1292
|
+
id: string;
|
|
1293
|
+
title: string;
|
|
1294
|
+
kind: "item" | "shop";
|
|
1295
|
+
price?: string | undefined;
|
|
1296
|
+
url?: string | undefined;
|
|
1297
|
+
subtitle?: string | undefined;
|
|
1298
|
+
imageUrl?: string | undefined;
|
|
1299
|
+
}, {
|
|
1300
|
+
id: string;
|
|
1301
|
+
title: string;
|
|
1302
|
+
kind: "item" | "shop";
|
|
1303
|
+
price?: string | undefined;
|
|
1304
|
+
url?: string | undefined;
|
|
1305
|
+
subtitle?: string | undefined;
|
|
1306
|
+
imageUrl?: string | undefined;
|
|
1307
|
+
}>, "many">;
|
|
1308
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1309
|
+
title: string;
|
|
1310
|
+
items: {
|
|
1311
|
+
id: string;
|
|
1312
|
+
title: string;
|
|
1313
|
+
kind: "item" | "shop";
|
|
1314
|
+
price?: string | undefined;
|
|
1315
|
+
url?: string | undefined;
|
|
1316
|
+
subtitle?: string | undefined;
|
|
1317
|
+
imageUrl?: string | undefined;
|
|
1318
|
+
}[];
|
|
1319
|
+
partial?: boolean | undefined;
|
|
1320
|
+
}, {
|
|
1321
|
+
title: string;
|
|
1322
|
+
items: {
|
|
1323
|
+
id: string;
|
|
1324
|
+
title: string;
|
|
1325
|
+
kind: "item" | "shop";
|
|
1326
|
+
price?: string | undefined;
|
|
1327
|
+
url?: string | undefined;
|
|
1328
|
+
subtitle?: string | undefined;
|
|
1329
|
+
imageUrl?: string | undefined;
|
|
1330
|
+
}[];
|
|
1331
|
+
partial?: boolean | undefined;
|
|
1332
|
+
}>>;
|
|
1276
1333
|
};
|
|
1277
1334
|
|
|
1278
1335
|
/** 模块注册入口:自注册闭环(与客户端 clientModule 对称) */
|
|
@@ -1281,41 +1338,41 @@ declare const serverModule: {
|
|
|
1281
1338
|
moduleId: string;
|
|
1282
1339
|
};
|
|
1283
1340
|
cards: {
|
|
1284
|
-
readonly 'promotion-offer-list': _tbox_cn_app_contracts.CardMeta<
|
|
1285
|
-
presentation:
|
|
1286
|
-
mode:
|
|
1287
|
-
maxItems:
|
|
1288
|
-
summary:
|
|
1289
|
-
items:
|
|
1290
|
-
offerRef:
|
|
1291
|
-
title:
|
|
1292
|
-
subtitle:
|
|
1293
|
-
offerType:
|
|
1294
|
-
benefitText:
|
|
1295
|
-
thresholdText:
|
|
1296
|
-
priceText:
|
|
1297
|
-
originalPriceText:
|
|
1298
|
-
discountLabel:
|
|
1299
|
-
claimActionLabel:
|
|
1300
|
-
purchaseUrl:
|
|
1301
|
-
freeCouponClaimMode:
|
|
1302
|
-
stockText:
|
|
1303
|
-
usageNoticeText:
|
|
1304
|
-
guaranteeText:
|
|
1305
|
-
usageSceneText:
|
|
1306
|
-
usageTimeText:
|
|
1307
|
-
claimTimeText:
|
|
1308
|
-
usageRuleText:
|
|
1309
|
-
claimable:
|
|
1310
|
-
availabilityStatus:
|
|
1311
|
-
validityText:
|
|
1312
|
-
imageUrl:
|
|
1313
|
-
itemActions:
|
|
1314
|
-
kind:
|
|
1315
|
-
label:
|
|
1316
|
-
value:
|
|
1317
|
-
visibleValue:
|
|
1318
|
-
}, "strip",
|
|
1341
|
+
readonly 'promotion-offer-list': _tbox_cn_app_contracts.CardMeta<z.ZodObject<{
|
|
1342
|
+
presentation: z.ZodOptional<z.ZodEnum<["offer", "promotion", "coupon", "recommendation"]>>;
|
|
1343
|
+
mode: z.ZodEnum<["search", "claimable", "recommend"]>;
|
|
1344
|
+
maxItems: z.ZodOptional<z.ZodNumber>;
|
|
1345
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
1346
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1347
|
+
offerRef: z.ZodString;
|
|
1348
|
+
title: z.ZodString;
|
|
1349
|
+
subtitle: z.ZodOptional<z.ZodString>;
|
|
1350
|
+
offerType: z.ZodEnum<["COUPON", "BUNDLE", "PROMOTION", "ACTIVITY", "GROUPON"]>;
|
|
1351
|
+
benefitText: z.ZodOptional<z.ZodString>;
|
|
1352
|
+
thresholdText: z.ZodOptional<z.ZodString>;
|
|
1353
|
+
priceText: z.ZodOptional<z.ZodString>;
|
|
1354
|
+
originalPriceText: z.ZodOptional<z.ZodString>;
|
|
1355
|
+
discountLabel: z.ZodOptional<z.ZodString>;
|
|
1356
|
+
claimActionLabel: z.ZodOptional<z.ZodString>;
|
|
1357
|
+
purchaseUrl: z.ZodOptional<z.ZodString>;
|
|
1358
|
+
freeCouponClaimMode: z.ZodOptional<z.ZodEnum<["DIRECT", "REDIRECT"]>>;
|
|
1359
|
+
stockText: z.ZodOptional<z.ZodString>;
|
|
1360
|
+
usageNoticeText: z.ZodOptional<z.ZodString>;
|
|
1361
|
+
guaranteeText: z.ZodOptional<z.ZodString>;
|
|
1362
|
+
usageSceneText: z.ZodOptional<z.ZodString>;
|
|
1363
|
+
usageTimeText: z.ZodOptional<z.ZodString>;
|
|
1364
|
+
claimTimeText: z.ZodOptional<z.ZodString>;
|
|
1365
|
+
usageRuleText: z.ZodOptional<z.ZodString>;
|
|
1366
|
+
claimable: z.ZodBoolean;
|
|
1367
|
+
availabilityStatus: z.ZodOptional<z.ZodEnum<["AVAILABLE", "UNAVAILABLE", "REQUIRES_ACTION", "UNKNOWN"]>>;
|
|
1368
|
+
validityText: z.ZodOptional<z.ZodString>;
|
|
1369
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
1370
|
+
itemActions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
1371
|
+
kind: z.ZodLiteral<"send">;
|
|
1372
|
+
label: z.ZodString;
|
|
1373
|
+
value: z.ZodOptional<z.ZodString>;
|
|
1374
|
+
visibleValue: z.ZodOptional<z.ZodString>;
|
|
1375
|
+
}, "strip", z.ZodTypeAny, {
|
|
1319
1376
|
label: string;
|
|
1320
1377
|
kind: "send";
|
|
1321
1378
|
value?: string | undefined;
|
|
@@ -1325,11 +1382,11 @@ declare const serverModule: {
|
|
|
1325
1382
|
kind: "send";
|
|
1326
1383
|
value?: string | undefined;
|
|
1327
1384
|
visibleValue?: string | undefined;
|
|
1328
|
-
}>,
|
|
1329
|
-
kind:
|
|
1330
|
-
label:
|
|
1331
|
-
url:
|
|
1332
|
-
}, "strip",
|
|
1385
|
+
}>, z.ZodObject<{
|
|
1386
|
+
kind: z.ZodLiteral<"link">;
|
|
1387
|
+
label: z.ZodString;
|
|
1388
|
+
url: z.ZodString;
|
|
1389
|
+
}, "strip", z.ZodTypeAny, {
|
|
1333
1390
|
label: string;
|
|
1334
1391
|
kind: "link";
|
|
1335
1392
|
url: string;
|
|
@@ -1338,8 +1395,8 @@ declare const serverModule: {
|
|
|
1338
1395
|
kind: "link";
|
|
1339
1396
|
url: string;
|
|
1340
1397
|
}>]>, "many">>;
|
|
1341
|
-
tags:
|
|
1342
|
-
}, "strip",
|
|
1398
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
1399
|
+
}, "strip", z.ZodTypeAny, {
|
|
1343
1400
|
title: string;
|
|
1344
1401
|
tags: string[];
|
|
1345
1402
|
offerRef: string;
|
|
@@ -1410,9 +1467,10 @@ declare const serverModule: {
|
|
|
1410
1467
|
availabilityStatus?: "UNKNOWN" | "AVAILABLE" | "UNAVAILABLE" | "REQUIRES_ACTION" | undefined;
|
|
1411
1468
|
validityText?: string | undefined;
|
|
1412
1469
|
}>, "many">;
|
|
1413
|
-
noResultsReason:
|
|
1414
|
-
nextCursor:
|
|
1415
|
-
|
|
1470
|
+
noResultsReason: z.ZodOptional<z.ZodString>;
|
|
1471
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
1472
|
+
showDealRecall: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1473
|
+
}, "strip", z.ZodTypeAny, {
|
|
1416
1474
|
items: {
|
|
1417
1475
|
title: string;
|
|
1418
1476
|
tags: string[];
|
|
@@ -1455,6 +1513,7 @@ declare const serverModule: {
|
|
|
1455
1513
|
noResultsReason?: string | undefined;
|
|
1456
1514
|
maxItems?: number | undefined;
|
|
1457
1515
|
nextCursor?: string | undefined;
|
|
1516
|
+
showDealRecall?: true | undefined;
|
|
1458
1517
|
}, {
|
|
1459
1518
|
items: {
|
|
1460
1519
|
title: string;
|
|
@@ -1498,51 +1557,52 @@ declare const serverModule: {
|
|
|
1498
1557
|
noResultsReason?: string | undefined;
|
|
1499
1558
|
maxItems?: number | undefined;
|
|
1500
1559
|
nextCursor?: string | undefined;
|
|
1560
|
+
showDealRecall?: true | undefined;
|
|
1501
1561
|
}>>;
|
|
1502
|
-
readonly 'promotion-offer-detail': _tbox_cn_app_contracts.CardMeta<
|
|
1503
|
-
presentation:
|
|
1504
|
-
offerRef:
|
|
1505
|
-
title:
|
|
1506
|
-
offerType:
|
|
1507
|
-
subtitle:
|
|
1508
|
-
description:
|
|
1509
|
-
imageUrl:
|
|
1510
|
-
benefitText:
|
|
1511
|
-
thresholdText:
|
|
1512
|
-
validityText:
|
|
1513
|
-
priceText:
|
|
1514
|
-
originalPriceText:
|
|
1515
|
-
discountLabel:
|
|
1516
|
-
claimActionLabel:
|
|
1517
|
-
purchaseUrl:
|
|
1518
|
-
stockText:
|
|
1519
|
-
usageNoticeText:
|
|
1520
|
-
usageSceneText:
|
|
1521
|
-
usageTimeText:
|
|
1522
|
-
claimTimeText:
|
|
1523
|
-
usageRuleText:
|
|
1524
|
-
guaranteeText:
|
|
1525
|
-
rules:
|
|
1526
|
-
participationMode:
|
|
1527
|
-
steps:
|
|
1528
|
-
title:
|
|
1529
|
-
description:
|
|
1530
|
-
}, "strip",
|
|
1562
|
+
readonly 'promotion-offer-detail': _tbox_cn_app_contracts.CardMeta<z.ZodObject<{
|
|
1563
|
+
presentation: z.ZodOptional<z.ZodEnum<["offer", "promotion", "promotion-guide", "coupon", "package"]>>;
|
|
1564
|
+
offerRef: z.ZodString;
|
|
1565
|
+
title: z.ZodString;
|
|
1566
|
+
offerType: z.ZodEnum<["COUPON", "BUNDLE", "PROMOTION", "ACTIVITY", "GROUPON"]>;
|
|
1567
|
+
subtitle: z.ZodOptional<z.ZodString>;
|
|
1568
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1569
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
1570
|
+
benefitText: z.ZodOptional<z.ZodString>;
|
|
1571
|
+
thresholdText: z.ZodOptional<z.ZodString>;
|
|
1572
|
+
validityText: z.ZodOptional<z.ZodString>;
|
|
1573
|
+
priceText: z.ZodOptional<z.ZodString>;
|
|
1574
|
+
originalPriceText: z.ZodOptional<z.ZodString>;
|
|
1575
|
+
discountLabel: z.ZodOptional<z.ZodString>;
|
|
1576
|
+
claimActionLabel: z.ZodOptional<z.ZodString>;
|
|
1577
|
+
purchaseUrl: z.ZodOptional<z.ZodString>;
|
|
1578
|
+
stockText: z.ZodOptional<z.ZodString>;
|
|
1579
|
+
usageNoticeText: z.ZodOptional<z.ZodString>;
|
|
1580
|
+
usageSceneText: z.ZodOptional<z.ZodString>;
|
|
1581
|
+
usageTimeText: z.ZodOptional<z.ZodString>;
|
|
1582
|
+
claimTimeText: z.ZodOptional<z.ZodString>;
|
|
1583
|
+
usageRuleText: z.ZodOptional<z.ZodString>;
|
|
1584
|
+
guaranteeText: z.ZodOptional<z.ZodString>;
|
|
1585
|
+
rules: z.ZodArray<z.ZodString, "many">;
|
|
1586
|
+
participationMode: z.ZodOptional<z.ZodEnum<["AUTOMATIC_DISCOUNT", "CLAIM_THEN_PURCHASE", "REGISTER_THEN_ATTEND", "GROUP_PURCHASE", "UNKNOWN"]>>;
|
|
1587
|
+
steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1588
|
+
title: z.ZodString;
|
|
1589
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1590
|
+
}, "strip", z.ZodTypeAny, {
|
|
1531
1591
|
title: string;
|
|
1532
1592
|
description?: string | undefined;
|
|
1533
1593
|
}, {
|
|
1534
1594
|
title: string;
|
|
1535
1595
|
description?: string | undefined;
|
|
1536
1596
|
}>, "many">>;
|
|
1537
|
-
requirements:
|
|
1538
|
-
notice:
|
|
1539
|
-
stores:
|
|
1540
|
-
storeId:
|
|
1541
|
-
storeName:
|
|
1542
|
-
businessName:
|
|
1543
|
-
address:
|
|
1544
|
-
floor:
|
|
1545
|
-
}, "strip",
|
|
1597
|
+
requirements: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1598
|
+
notice: z.ZodOptional<z.ZodString>;
|
|
1599
|
+
stores: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1600
|
+
storeId: z.ZodString;
|
|
1601
|
+
storeName: z.ZodString;
|
|
1602
|
+
businessName: z.ZodOptional<z.ZodString>;
|
|
1603
|
+
address: z.ZodOptional<z.ZodString>;
|
|
1604
|
+
floor: z.ZodOptional<z.ZodString>;
|
|
1605
|
+
}, "strip", z.ZodTypeAny, {
|
|
1546
1606
|
storeId: string;
|
|
1547
1607
|
storeName: string;
|
|
1548
1608
|
address?: string | undefined;
|
|
@@ -1555,20 +1615,20 @@ declare const serverModule: {
|
|
|
1555
1615
|
businessName?: string | undefined;
|
|
1556
1616
|
floor?: string | undefined;
|
|
1557
1617
|
}>, "many">>;
|
|
1558
|
-
bundleItems:
|
|
1559
|
-
name:
|
|
1560
|
-
quantity:
|
|
1561
|
-
}, "strip",
|
|
1618
|
+
bundleItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1619
|
+
name: z.ZodString;
|
|
1620
|
+
quantity: z.ZodNumber;
|
|
1621
|
+
}, "strip", z.ZodTypeAny, {
|
|
1562
1622
|
name: string;
|
|
1563
1623
|
quantity: number;
|
|
1564
1624
|
}, {
|
|
1565
1625
|
name: string;
|
|
1566
1626
|
quantity: number;
|
|
1567
1627
|
}>, "many">>;
|
|
1568
|
-
claimable:
|
|
1569
|
-
unavailableReason:
|
|
1570
|
-
caveats:
|
|
1571
|
-
}, "strip",
|
|
1628
|
+
claimable: z.ZodBoolean;
|
|
1629
|
+
unavailableReason: z.ZodOptional<z.ZodString>;
|
|
1630
|
+
caveats: z.ZodArray<z.ZodString, "many">;
|
|
1631
|
+
}, "strip", z.ZodTypeAny, {
|
|
1572
1632
|
title: string;
|
|
1573
1633
|
offerRef: string;
|
|
1574
1634
|
caveats: string[];
|
|
@@ -1659,35 +1719,35 @@ declare const serverModule: {
|
|
|
1659
1719
|
}[] | undefined;
|
|
1660
1720
|
unavailableReason?: string | undefined;
|
|
1661
1721
|
}>>;
|
|
1662
|
-
readonly 'promotion-entitlement-list': _tbox_cn_app_contracts.CardMeta<
|
|
1663
|
-
mallId:
|
|
1664
|
-
miniAppId:
|
|
1665
|
-
maxItems:
|
|
1666
|
-
items:
|
|
1667
|
-
entitlementRef:
|
|
1668
|
-
title:
|
|
1669
|
-
imageUrl:
|
|
1670
|
-
entitlementType:
|
|
1671
|
-
status:
|
|
1672
|
-
codeMasked:
|
|
1673
|
-
code:
|
|
1674
|
-
qrCodeEnabled:
|
|
1675
|
-
benefitText:
|
|
1676
|
-
thresholdText:
|
|
1677
|
-
usageNotice:
|
|
1678
|
-
guaranteeText:
|
|
1679
|
-
usageSceneText:
|
|
1680
|
-
usageTimeText:
|
|
1681
|
-
claimTimeText:
|
|
1682
|
-
usageRuleText:
|
|
1683
|
-
validityText:
|
|
1684
|
-
validUntilText:
|
|
1685
|
-
itemActions:
|
|
1686
|
-
kind:
|
|
1687
|
-
label:
|
|
1688
|
-
value:
|
|
1689
|
-
visibleValue:
|
|
1690
|
-
}, "strip",
|
|
1722
|
+
readonly 'promotion-entitlement-list': _tbox_cn_app_contracts.CardMeta<z.ZodObject<{
|
|
1723
|
+
mallId: z.ZodOptional<z.ZodString>;
|
|
1724
|
+
miniAppId: z.ZodOptional<z.ZodString>;
|
|
1725
|
+
maxItems: z.ZodOptional<z.ZodNumber>;
|
|
1726
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1727
|
+
entitlementRef: z.ZodString;
|
|
1728
|
+
title: z.ZodString;
|
|
1729
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
1730
|
+
entitlementType: z.ZodEnum<["COUPON", "BUNDLE", "PROMOTION", "ACTIVITY", "GROUPON"]>;
|
|
1731
|
+
status: z.ZodEnum<["EFFECTIVE", "USED", "EXPIRED", "INVALID", "UNKNOWN"]>;
|
|
1732
|
+
codeMasked: z.ZodOptional<z.ZodString>;
|
|
1733
|
+
code: z.ZodOptional<z.ZodString>;
|
|
1734
|
+
qrCodeEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
1735
|
+
benefitText: z.ZodOptional<z.ZodString>;
|
|
1736
|
+
thresholdText: z.ZodOptional<z.ZodString>;
|
|
1737
|
+
usageNotice: z.ZodOptional<z.ZodString>;
|
|
1738
|
+
guaranteeText: z.ZodOptional<z.ZodString>;
|
|
1739
|
+
usageSceneText: z.ZodOptional<z.ZodString>;
|
|
1740
|
+
usageTimeText: z.ZodOptional<z.ZodString>;
|
|
1741
|
+
claimTimeText: z.ZodOptional<z.ZodString>;
|
|
1742
|
+
usageRuleText: z.ZodOptional<z.ZodString>;
|
|
1743
|
+
validityText: z.ZodOptional<z.ZodString>;
|
|
1744
|
+
validUntilText: z.ZodOptional<z.ZodString>;
|
|
1745
|
+
itemActions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
1746
|
+
kind: z.ZodLiteral<"send">;
|
|
1747
|
+
label: z.ZodString;
|
|
1748
|
+
value: z.ZodOptional<z.ZodString>;
|
|
1749
|
+
visibleValue: z.ZodOptional<z.ZodString>;
|
|
1750
|
+
}, "strip", z.ZodTypeAny, {
|
|
1691
1751
|
label: string;
|
|
1692
1752
|
kind: "send";
|
|
1693
1753
|
value?: string | undefined;
|
|
@@ -1697,11 +1757,11 @@ declare const serverModule: {
|
|
|
1697
1757
|
kind: "send";
|
|
1698
1758
|
value?: string | undefined;
|
|
1699
1759
|
visibleValue?: string | undefined;
|
|
1700
|
-
}>,
|
|
1701
|
-
kind:
|
|
1702
|
-
label:
|
|
1703
|
-
url:
|
|
1704
|
-
}, "strip",
|
|
1760
|
+
}>, z.ZodObject<{
|
|
1761
|
+
kind: z.ZodLiteral<"link">;
|
|
1762
|
+
label: z.ZodString;
|
|
1763
|
+
url: z.ZodString;
|
|
1764
|
+
}, "strip", z.ZodTypeAny, {
|
|
1705
1765
|
label: string;
|
|
1706
1766
|
kind: "link";
|
|
1707
1767
|
url: string;
|
|
@@ -1710,16 +1770,16 @@ declare const serverModule: {
|
|
|
1710
1770
|
kind: "link";
|
|
1711
1771
|
url: string;
|
|
1712
1772
|
}>]>, "many">>;
|
|
1713
|
-
stores:
|
|
1714
|
-
storeId:
|
|
1715
|
-
storeName:
|
|
1716
|
-
businessName:
|
|
1717
|
-
imageUrl:
|
|
1718
|
-
address:
|
|
1719
|
-
floor:
|
|
1720
|
-
latitude:
|
|
1721
|
-
longitude:
|
|
1722
|
-
}, "strip",
|
|
1773
|
+
stores: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1774
|
+
storeId: z.ZodString;
|
|
1775
|
+
storeName: z.ZodString;
|
|
1776
|
+
businessName: z.ZodOptional<z.ZodString>;
|
|
1777
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
1778
|
+
address: z.ZodOptional<z.ZodString>;
|
|
1779
|
+
floor: z.ZodOptional<z.ZodString>;
|
|
1780
|
+
latitude: z.ZodOptional<z.ZodNumber>;
|
|
1781
|
+
longitude: z.ZodOptional<z.ZodNumber>;
|
|
1782
|
+
}, "strip", z.ZodTypeAny, {
|
|
1723
1783
|
storeId: string;
|
|
1724
1784
|
storeName: string;
|
|
1725
1785
|
imageUrl?: string | undefined;
|
|
@@ -1738,7 +1798,7 @@ declare const serverModule: {
|
|
|
1738
1798
|
businessName?: string | undefined;
|
|
1739
1799
|
floor?: string | undefined;
|
|
1740
1800
|
}>, "many">>;
|
|
1741
|
-
}, "strip",
|
|
1801
|
+
}, "strip", z.ZodTypeAny, {
|
|
1742
1802
|
status: "UNKNOWN" | "USED" | "EXPIRED" | "EFFECTIVE" | "INVALID";
|
|
1743
1803
|
title: string;
|
|
1744
1804
|
entitlementRef: string;
|
|
@@ -1817,9 +1877,9 @@ declare const serverModule: {
|
|
|
1817
1877
|
usageNotice?: string | undefined;
|
|
1818
1878
|
validUntilText?: string | undefined;
|
|
1819
1879
|
}>, "many">;
|
|
1820
|
-
noResultsReason:
|
|
1821
|
-
nextCursor:
|
|
1822
|
-
}, "strip",
|
|
1880
|
+
noResultsReason: z.ZodOptional<z.ZodString>;
|
|
1881
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
1882
|
+
}, "strip", z.ZodTypeAny, {
|
|
1823
1883
|
items: {
|
|
1824
1884
|
status: "UNKNOWN" | "USED" | "EXPIRED" | "EFFECTIVE" | "INVALID";
|
|
1825
1885
|
title: string;
|
|
@@ -1912,25 +1972,25 @@ declare const serverModule: {
|
|
|
1912
1972
|
maxItems?: number | undefined;
|
|
1913
1973
|
nextCursor?: string | undefined;
|
|
1914
1974
|
}>>;
|
|
1915
|
-
readonly 'promotion-activity-list': _tbox_cn_app_contracts.CardMeta<
|
|
1916
|
-
items:
|
|
1917
|
-
activityRef:
|
|
1918
|
-
title:
|
|
1919
|
-
subtitle:
|
|
1920
|
-
coverUrl:
|
|
1921
|
-
registrationRequired:
|
|
1922
|
-
jumpOnly:
|
|
1923
|
-
jumpLabel:
|
|
1924
|
-
remainingQuota:
|
|
1925
|
-
periodText:
|
|
1926
|
-
categoryName:
|
|
1927
|
-
availabilityStatus:
|
|
1928
|
-
itemActions:
|
|
1929
|
-
kind:
|
|
1930
|
-
label:
|
|
1931
|
-
value:
|
|
1932
|
-
visibleValue:
|
|
1933
|
-
}, "strip",
|
|
1975
|
+
readonly 'promotion-activity-list': _tbox_cn_app_contracts.CardMeta<z.ZodObject<{
|
|
1976
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1977
|
+
activityRef: z.ZodString;
|
|
1978
|
+
title: z.ZodString;
|
|
1979
|
+
subtitle: z.ZodOptional<z.ZodString>;
|
|
1980
|
+
coverUrl: z.ZodOptional<z.ZodString>;
|
|
1981
|
+
registrationRequired: z.ZodBoolean;
|
|
1982
|
+
jumpOnly: z.ZodOptional<z.ZodBoolean>;
|
|
1983
|
+
jumpLabel: z.ZodOptional<z.ZodString>;
|
|
1984
|
+
remainingQuota: z.ZodOptional<z.ZodNumber>;
|
|
1985
|
+
periodText: z.ZodOptional<z.ZodString>;
|
|
1986
|
+
categoryName: z.ZodOptional<z.ZodString>;
|
|
1987
|
+
availabilityStatus: z.ZodOptional<z.ZodEnum<["AVAILABLE", "FULL", "ENDED", "UPCOMING", "UNKNOWN"]>>;
|
|
1988
|
+
itemActions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
1989
|
+
kind: z.ZodLiteral<"send">;
|
|
1990
|
+
label: z.ZodString;
|
|
1991
|
+
value: z.ZodOptional<z.ZodString>;
|
|
1992
|
+
visibleValue: z.ZodOptional<z.ZodString>;
|
|
1993
|
+
}, "strip", z.ZodTypeAny, {
|
|
1934
1994
|
label: string;
|
|
1935
1995
|
kind: "send";
|
|
1936
1996
|
value?: string | undefined;
|
|
@@ -1940,11 +2000,11 @@ declare const serverModule: {
|
|
|
1940
2000
|
kind: "send";
|
|
1941
2001
|
value?: string | undefined;
|
|
1942
2002
|
visibleValue?: string | undefined;
|
|
1943
|
-
}>,
|
|
1944
|
-
kind:
|
|
1945
|
-
label:
|
|
1946
|
-
url:
|
|
1947
|
-
}, "strip",
|
|
2003
|
+
}>, z.ZodObject<{
|
|
2004
|
+
kind: z.ZodLiteral<"link">;
|
|
2005
|
+
label: z.ZodString;
|
|
2006
|
+
url: z.ZodString;
|
|
2007
|
+
}, "strip", z.ZodTypeAny, {
|
|
1948
2008
|
label: string;
|
|
1949
2009
|
kind: "link";
|
|
1950
2010
|
url: string;
|
|
@@ -1953,7 +2013,7 @@ declare const serverModule: {
|
|
|
1953
2013
|
kind: "link";
|
|
1954
2014
|
url: string;
|
|
1955
2015
|
}>]>, "many">>;
|
|
1956
|
-
}, "strip",
|
|
2016
|
+
}, "strip", z.ZodTypeAny, {
|
|
1957
2017
|
title: string;
|
|
1958
2018
|
activityRef: string;
|
|
1959
2019
|
registrationRequired: boolean;
|
|
@@ -1998,9 +2058,9 @@ declare const serverModule: {
|
|
|
1998
2058
|
periodText?: string | undefined;
|
|
1999
2059
|
categoryName?: string | undefined;
|
|
2000
2060
|
}>, "many">;
|
|
2001
|
-
noResultsReason:
|
|
2002
|
-
nextCursor:
|
|
2003
|
-
}, "strip",
|
|
2061
|
+
noResultsReason: z.ZodOptional<z.ZodString>;
|
|
2062
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
2063
|
+
}, "strip", z.ZodTypeAny, {
|
|
2004
2064
|
items: {
|
|
2005
2065
|
title: string;
|
|
2006
2066
|
activityRef: string;
|
|
@@ -2053,30 +2113,30 @@ declare const serverModule: {
|
|
|
2053
2113
|
noResultsReason?: string | undefined;
|
|
2054
2114
|
nextCursor?: string | undefined;
|
|
2055
2115
|
}>>;
|
|
2056
|
-
readonly 'promotion-activity-detail': _tbox_cn_app_contracts.CardMeta<
|
|
2057
|
-
presentation:
|
|
2058
|
-
activityRef:
|
|
2059
|
-
title:
|
|
2060
|
-
subtitle:
|
|
2061
|
-
categoryName:
|
|
2062
|
-
description:
|
|
2063
|
-
coverUrl:
|
|
2064
|
-
periodText:
|
|
2065
|
-
location:
|
|
2066
|
-
registrationRequired:
|
|
2067
|
-
jumpOnly:
|
|
2068
|
-
jumpLabel:
|
|
2069
|
-
registrationUrl:
|
|
2070
|
-
remainingQuota:
|
|
2071
|
-
sessions:
|
|
2072
|
-
sessionRef:
|
|
2073
|
-
title:
|
|
2074
|
-
startText:
|
|
2075
|
-
endText:
|
|
2076
|
-
location:
|
|
2077
|
-
remainingQuota:
|
|
2078
|
-
status:
|
|
2079
|
-
}, "strip",
|
|
2116
|
+
readonly 'promotion-activity-detail': _tbox_cn_app_contracts.CardMeta<z.ZodObject<{
|
|
2117
|
+
presentation: z.ZodOptional<z.ZodEnum<["detail", "schedule", "guide"]>>;
|
|
2118
|
+
activityRef: z.ZodString;
|
|
2119
|
+
title: z.ZodString;
|
|
2120
|
+
subtitle: z.ZodOptional<z.ZodString>;
|
|
2121
|
+
categoryName: z.ZodOptional<z.ZodString>;
|
|
2122
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2123
|
+
coverUrl: z.ZodOptional<z.ZodString>;
|
|
2124
|
+
periodText: z.ZodOptional<z.ZodString>;
|
|
2125
|
+
location: z.ZodOptional<z.ZodString>;
|
|
2126
|
+
registrationRequired: z.ZodBoolean;
|
|
2127
|
+
jumpOnly: z.ZodOptional<z.ZodBoolean>;
|
|
2128
|
+
jumpLabel: z.ZodOptional<z.ZodString>;
|
|
2129
|
+
registrationUrl: z.ZodOptional<z.ZodString>;
|
|
2130
|
+
remainingQuota: z.ZodOptional<z.ZodNumber>;
|
|
2131
|
+
sessions: z.ZodArray<z.ZodObject<{
|
|
2132
|
+
sessionRef: z.ZodString;
|
|
2133
|
+
title: z.ZodString;
|
|
2134
|
+
startText: z.ZodString;
|
|
2135
|
+
endText: z.ZodOptional<z.ZodString>;
|
|
2136
|
+
location: z.ZodOptional<z.ZodString>;
|
|
2137
|
+
remainingQuota: z.ZodOptional<z.ZodNumber>;
|
|
2138
|
+
status: z.ZodEnum<["OPEN", "FULL", "CLOSED", "UNKNOWN"]>;
|
|
2139
|
+
}, "strip", z.ZodTypeAny, {
|
|
2080
2140
|
status: "UNKNOWN" | "CLOSED" | "OPEN" | "FULL";
|
|
2081
2141
|
title: string;
|
|
2082
2142
|
sessionRef: string;
|
|
@@ -2093,20 +2153,20 @@ declare const serverModule: {
|
|
|
2093
2153
|
remainingQuota?: number | undefined;
|
|
2094
2154
|
endText?: string | undefined;
|
|
2095
2155
|
}>, "many">;
|
|
2096
|
-
guideSteps:
|
|
2097
|
-
guideItems:
|
|
2098
|
-
title:
|
|
2099
|
-
description:
|
|
2100
|
-
}, "strip",
|
|
2156
|
+
guideSteps: z.ZodArray<z.ZodString, "many">;
|
|
2157
|
+
guideItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2158
|
+
title: z.ZodString;
|
|
2159
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2160
|
+
}, "strip", z.ZodTypeAny, {
|
|
2101
2161
|
title: string;
|
|
2102
2162
|
description?: string | undefined;
|
|
2103
2163
|
}, {
|
|
2104
2164
|
title: string;
|
|
2105
2165
|
description?: string | undefined;
|
|
2106
2166
|
}>, "many">>;
|
|
2107
|
-
conditions:
|
|
2108
|
-
notice:
|
|
2109
|
-
}, "strip",
|
|
2167
|
+
conditions: z.ZodArray<z.ZodString, "many">;
|
|
2168
|
+
notice: z.ZodOptional<z.ZodString>;
|
|
2169
|
+
}, "strip", z.ZodTypeAny, {
|
|
2110
2170
|
title: string;
|
|
2111
2171
|
activityRef: string;
|
|
2112
2172
|
registrationRequired: boolean;
|
|
@@ -2169,17 +2229,17 @@ declare const serverModule: {
|
|
|
2169
2229
|
description?: string | undefined;
|
|
2170
2230
|
}[] | undefined;
|
|
2171
2231
|
}>>;
|
|
2172
|
-
readonly 'promotion-activity-category-list': _tbox_cn_app_contracts.CardMeta<
|
|
2173
|
-
items:
|
|
2174
|
-
categoryId:
|
|
2175
|
-
name:
|
|
2176
|
-
parentId:
|
|
2177
|
-
itemActions:
|
|
2178
|
-
kind:
|
|
2179
|
-
label:
|
|
2180
|
-
value:
|
|
2181
|
-
visibleValue:
|
|
2182
|
-
}, "strip",
|
|
2232
|
+
readonly 'promotion-activity-category-list': _tbox_cn_app_contracts.CardMeta<z.ZodObject<{
|
|
2233
|
+
items: z.ZodArray<z.ZodObject<{
|
|
2234
|
+
categoryId: z.ZodString;
|
|
2235
|
+
name: z.ZodString;
|
|
2236
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
2237
|
+
itemActions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
2238
|
+
kind: z.ZodLiteral<"send">;
|
|
2239
|
+
label: z.ZodString;
|
|
2240
|
+
value: z.ZodOptional<z.ZodString>;
|
|
2241
|
+
visibleValue: z.ZodOptional<z.ZodString>;
|
|
2242
|
+
}, "strip", z.ZodTypeAny, {
|
|
2183
2243
|
label: string;
|
|
2184
2244
|
kind: "send";
|
|
2185
2245
|
value?: string | undefined;
|
|
@@ -2189,11 +2249,11 @@ declare const serverModule: {
|
|
|
2189
2249
|
kind: "send";
|
|
2190
2250
|
value?: string | undefined;
|
|
2191
2251
|
visibleValue?: string | undefined;
|
|
2192
|
-
}>,
|
|
2193
|
-
kind:
|
|
2194
|
-
label:
|
|
2195
|
-
url:
|
|
2196
|
-
}, "strip",
|
|
2252
|
+
}>, z.ZodObject<{
|
|
2253
|
+
kind: z.ZodLiteral<"link">;
|
|
2254
|
+
label: z.ZodString;
|
|
2255
|
+
url: z.ZodString;
|
|
2256
|
+
}, "strip", z.ZodTypeAny, {
|
|
2197
2257
|
label: string;
|
|
2198
2258
|
kind: "link";
|
|
2199
2259
|
url: string;
|
|
@@ -2202,7 +2262,7 @@ declare const serverModule: {
|
|
|
2202
2262
|
kind: "link";
|
|
2203
2263
|
url: string;
|
|
2204
2264
|
}>]>, "many">>;
|
|
2205
|
-
}, "strip",
|
|
2265
|
+
}, "strip", z.ZodTypeAny, {
|
|
2206
2266
|
name: string;
|
|
2207
2267
|
categoryId: string;
|
|
2208
2268
|
itemActions?: ({
|
|
@@ -2231,8 +2291,8 @@ declare const serverModule: {
|
|
|
2231
2291
|
})[] | undefined;
|
|
2232
2292
|
parentId?: string | undefined;
|
|
2233
2293
|
}>, "many">;
|
|
2234
|
-
noResultsReason:
|
|
2235
|
-
}, "strip",
|
|
2294
|
+
noResultsReason: z.ZodOptional<z.ZodString>;
|
|
2295
|
+
}, "strip", z.ZodTypeAny, {
|
|
2236
2296
|
items: {
|
|
2237
2297
|
name: string;
|
|
2238
2298
|
categoryId: string;
|
|
@@ -2267,42 +2327,42 @@ declare const serverModule: {
|
|
|
2267
2327
|
}[];
|
|
2268
2328
|
noResultsReason?: string | undefined;
|
|
2269
2329
|
}>>;
|
|
2270
|
-
readonly 'promotion-best-deal': _tbox_cn_app_contracts.CardMeta<
|
|
2271
|
-
authoritative:
|
|
2272
|
-
originalAmountCents:
|
|
2273
|
-
savingsCents:
|
|
2274
|
-
expectedPayCents:
|
|
2275
|
-
appliedOfferRefs:
|
|
2276
|
-
candidates:
|
|
2277
|
-
offerRef:
|
|
2278
|
-
title:
|
|
2279
|
-
subtitle:
|
|
2280
|
-
offerType:
|
|
2281
|
-
benefitText:
|
|
2282
|
-
thresholdText:
|
|
2283
|
-
priceText:
|
|
2284
|
-
originalPriceText:
|
|
2285
|
-
discountLabel:
|
|
2286
|
-
claimActionLabel:
|
|
2287
|
-
purchaseUrl:
|
|
2288
|
-
freeCouponClaimMode:
|
|
2289
|
-
stockText:
|
|
2290
|
-
usageNoticeText:
|
|
2291
|
-
guaranteeText:
|
|
2292
|
-
usageSceneText:
|
|
2293
|
-
usageTimeText:
|
|
2294
|
-
claimTimeText:
|
|
2295
|
-
usageRuleText:
|
|
2296
|
-
claimable:
|
|
2297
|
-
availabilityStatus:
|
|
2298
|
-
validityText:
|
|
2299
|
-
imageUrl:
|
|
2300
|
-
itemActions:
|
|
2301
|
-
kind:
|
|
2302
|
-
label:
|
|
2303
|
-
value:
|
|
2304
|
-
visibleValue:
|
|
2305
|
-
}, "strip",
|
|
2330
|
+
readonly 'promotion-best-deal': _tbox_cn_app_contracts.CardMeta<z.ZodObject<{
|
|
2331
|
+
authoritative: z.ZodBoolean;
|
|
2332
|
+
originalAmountCents: z.ZodNumber;
|
|
2333
|
+
savingsCents: z.ZodOptional<z.ZodNumber>;
|
|
2334
|
+
expectedPayCents: z.ZodOptional<z.ZodNumber>;
|
|
2335
|
+
appliedOfferRefs: z.ZodArray<z.ZodString, "many">;
|
|
2336
|
+
candidates: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2337
|
+
offerRef: z.ZodString;
|
|
2338
|
+
title: z.ZodString;
|
|
2339
|
+
subtitle: z.ZodOptional<z.ZodString>;
|
|
2340
|
+
offerType: z.ZodEnum<["COUPON", "BUNDLE", "PROMOTION", "ACTIVITY", "GROUPON"]>;
|
|
2341
|
+
benefitText: z.ZodOptional<z.ZodString>;
|
|
2342
|
+
thresholdText: z.ZodOptional<z.ZodString>;
|
|
2343
|
+
priceText: z.ZodOptional<z.ZodString>;
|
|
2344
|
+
originalPriceText: z.ZodOptional<z.ZodString>;
|
|
2345
|
+
discountLabel: z.ZodOptional<z.ZodString>;
|
|
2346
|
+
claimActionLabel: z.ZodOptional<z.ZodString>;
|
|
2347
|
+
purchaseUrl: z.ZodOptional<z.ZodString>;
|
|
2348
|
+
freeCouponClaimMode: z.ZodOptional<z.ZodEnum<["DIRECT", "REDIRECT"]>>;
|
|
2349
|
+
stockText: z.ZodOptional<z.ZodString>;
|
|
2350
|
+
usageNoticeText: z.ZodOptional<z.ZodString>;
|
|
2351
|
+
guaranteeText: z.ZodOptional<z.ZodString>;
|
|
2352
|
+
usageSceneText: z.ZodOptional<z.ZodString>;
|
|
2353
|
+
usageTimeText: z.ZodOptional<z.ZodString>;
|
|
2354
|
+
claimTimeText: z.ZodOptional<z.ZodString>;
|
|
2355
|
+
usageRuleText: z.ZodOptional<z.ZodString>;
|
|
2356
|
+
claimable: z.ZodBoolean;
|
|
2357
|
+
availabilityStatus: z.ZodOptional<z.ZodEnum<["AVAILABLE", "UNAVAILABLE", "REQUIRES_ACTION", "UNKNOWN"]>>;
|
|
2358
|
+
validityText: z.ZodOptional<z.ZodString>;
|
|
2359
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
2360
|
+
itemActions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
2361
|
+
kind: z.ZodLiteral<"send">;
|
|
2362
|
+
label: z.ZodString;
|
|
2363
|
+
value: z.ZodOptional<z.ZodString>;
|
|
2364
|
+
visibleValue: z.ZodOptional<z.ZodString>;
|
|
2365
|
+
}, "strip", z.ZodTypeAny, {
|
|
2306
2366
|
label: string;
|
|
2307
2367
|
kind: "send";
|
|
2308
2368
|
value?: string | undefined;
|
|
@@ -2312,11 +2372,11 @@ declare const serverModule: {
|
|
|
2312
2372
|
kind: "send";
|
|
2313
2373
|
value?: string | undefined;
|
|
2314
2374
|
visibleValue?: string | undefined;
|
|
2315
|
-
}>,
|
|
2316
|
-
kind:
|
|
2317
|
-
label:
|
|
2318
|
-
url:
|
|
2319
|
-
}, "strip",
|
|
2375
|
+
}>, z.ZodObject<{
|
|
2376
|
+
kind: z.ZodLiteral<"link">;
|
|
2377
|
+
label: z.ZodString;
|
|
2378
|
+
url: z.ZodString;
|
|
2379
|
+
}, "strip", z.ZodTypeAny, {
|
|
2320
2380
|
label: string;
|
|
2321
2381
|
kind: "link";
|
|
2322
2382
|
url: string;
|
|
@@ -2325,8 +2385,8 @@ declare const serverModule: {
|
|
|
2325
2385
|
kind: "link";
|
|
2326
2386
|
url: string;
|
|
2327
2387
|
}>]>, "many">>;
|
|
2328
|
-
tags:
|
|
2329
|
-
}, "strip",
|
|
2388
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
2389
|
+
}, "strip", z.ZodTypeAny, {
|
|
2330
2390
|
title: string;
|
|
2331
2391
|
tags: string[];
|
|
2332
2392
|
offerRef: string;
|
|
@@ -2397,8 +2457,8 @@ declare const serverModule: {
|
|
|
2397
2457
|
availabilityStatus?: "UNKNOWN" | "AVAILABLE" | "UNAVAILABLE" | "REQUIRES_ACTION" | undefined;
|
|
2398
2458
|
validityText?: string | undefined;
|
|
2399
2459
|
}>, "many">>;
|
|
2400
|
-
message:
|
|
2401
|
-
}, "strip",
|
|
2460
|
+
message: z.ZodOptional<z.ZodString>;
|
|
2461
|
+
}, "strip", z.ZodTypeAny, {
|
|
2402
2462
|
authoritative: boolean;
|
|
2403
2463
|
originalAmountCents: number;
|
|
2404
2464
|
appliedOfferRefs: string[];
|
|
@@ -2485,6 +2545,59 @@ declare const serverModule: {
|
|
|
2485
2545
|
validityText?: string | undefined;
|
|
2486
2546
|
}[] | undefined;
|
|
2487
2547
|
}>>;
|
|
2548
|
+
readonly 'promotion-deal-recall': _tbox_cn_app_contracts.CardMeta<z.ZodObject<{
|
|
2549
|
+
title: z.ZodString;
|
|
2550
|
+
partial: z.ZodOptional<z.ZodBoolean>;
|
|
2551
|
+
items: z.ZodArray<z.ZodObject<{
|
|
2552
|
+
id: z.ZodString;
|
|
2553
|
+
kind: z.ZodEnum<["item", "shop"]>;
|
|
2554
|
+
title: z.ZodString;
|
|
2555
|
+
subtitle: z.ZodOptional<z.ZodString>;
|
|
2556
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
2557
|
+
price: z.ZodOptional<z.ZodString>;
|
|
2558
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2559
|
+
}, "strip", z.ZodTypeAny, {
|
|
2560
|
+
id: string;
|
|
2561
|
+
title: string;
|
|
2562
|
+
kind: "item" | "shop";
|
|
2563
|
+
price?: string | undefined;
|
|
2564
|
+
url?: string | undefined;
|
|
2565
|
+
subtitle?: string | undefined;
|
|
2566
|
+
imageUrl?: string | undefined;
|
|
2567
|
+
}, {
|
|
2568
|
+
id: string;
|
|
2569
|
+
title: string;
|
|
2570
|
+
kind: "item" | "shop";
|
|
2571
|
+
price?: string | undefined;
|
|
2572
|
+
url?: string | undefined;
|
|
2573
|
+
subtitle?: string | undefined;
|
|
2574
|
+
imageUrl?: string | undefined;
|
|
2575
|
+
}>, "many">;
|
|
2576
|
+
}, "strip", z.ZodTypeAny, {
|
|
2577
|
+
title: string;
|
|
2578
|
+
items: {
|
|
2579
|
+
id: string;
|
|
2580
|
+
title: string;
|
|
2581
|
+
kind: "item" | "shop";
|
|
2582
|
+
price?: string | undefined;
|
|
2583
|
+
url?: string | undefined;
|
|
2584
|
+
subtitle?: string | undefined;
|
|
2585
|
+
imageUrl?: string | undefined;
|
|
2586
|
+
}[];
|
|
2587
|
+
partial?: boolean | undefined;
|
|
2588
|
+
}, {
|
|
2589
|
+
title: string;
|
|
2590
|
+
items: {
|
|
2591
|
+
id: string;
|
|
2592
|
+
title: string;
|
|
2593
|
+
kind: "item" | "shop";
|
|
2594
|
+
price?: string | undefined;
|
|
2595
|
+
url?: string | undefined;
|
|
2596
|
+
subtitle?: string | undefined;
|
|
2597
|
+
imageUrl?: string | undefined;
|
|
2598
|
+
}[];
|
|
2599
|
+
partial?: boolean | undefined;
|
|
2600
|
+
}>>;
|
|
2488
2601
|
};
|
|
2489
2602
|
skills: {
|
|
2490
2603
|
[k: string]: _tbox_cn_app_sdk_server.LocalSkill;
|