@tbox.cn/app-contracts-mall 1.0.0-alpha.16 → 1.0.0-alpha.17
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.
|
@@ -47,6 +47,8 @@ export interface PromotionEntitlement {
|
|
|
47
47
|
readonly usageRuleText?: string;
|
|
48
48
|
}
|
|
49
49
|
export interface PromotionEntitlementPage {
|
|
50
|
+
/** 查询结果可附带支付宝卡包入口。 */
|
|
51
|
+
readonly showAlipayWallet?: boolean;
|
|
50
52
|
readonly items: readonly PromotionEntitlement[];
|
|
51
53
|
readonly nextCursor?: string;
|
|
52
54
|
readonly hasMore: boolean;
|
package/dist/member/cards.d.ts
CHANGED
|
@@ -69,7 +69,7 @@ export declare const memberCardSummaryCardDataSchema: z.ZodObject<{
|
|
|
69
69
|
cardDisplay: z.ZodString;
|
|
70
70
|
status: z.ZodEnum<["active", "inactive", "frozen", "expired", "unknown"]>;
|
|
71
71
|
levelName: z.ZodOptional<z.ZodString>;
|
|
72
|
-
availablePoints: z.ZodNumber
|
|
72
|
+
availablePoints: z.ZodOptional<z.ZodNumber>;
|
|
73
73
|
cardImageUrl: z.ZodOptional<z.ZodString>;
|
|
74
74
|
pointsRuleImageUrl: z.ZodOptional<z.ZodString>;
|
|
75
75
|
pointsRuleContent: z.ZodOptional<z.ZodString>;
|
|
@@ -160,8 +160,8 @@ export declare const memberCardSummaryCardDataSchema: z.ZodObject<{
|
|
|
160
160
|
userId: string;
|
|
161
161
|
cardRef: string;
|
|
162
162
|
cardDisplay: string;
|
|
163
|
-
availablePoints: number;
|
|
164
163
|
levelName?: string | undefined;
|
|
164
|
+
availablePoints?: number | undefined;
|
|
165
165
|
cardImageUrl?: string | undefined;
|
|
166
166
|
pointsRuleImageUrl?: string | undefined;
|
|
167
167
|
pointsRuleContent?: string | undefined;
|
|
@@ -197,8 +197,8 @@ export declare const memberCardSummaryCardDataSchema: z.ZodObject<{
|
|
|
197
197
|
userId: string;
|
|
198
198
|
cardRef: string;
|
|
199
199
|
cardDisplay: string;
|
|
200
|
-
availablePoints: number;
|
|
201
200
|
levelName?: string | undefined;
|
|
201
|
+
availablePoints?: number | undefined;
|
|
202
202
|
cardImageUrl?: string | undefined;
|
|
203
203
|
pointsRuleImageUrl?: string | undefined;
|
|
204
204
|
pointsRuleContent?: string | undefined;
|
|
@@ -540,7 +540,7 @@ export declare const memberCardDataSchemas: {
|
|
|
540
540
|
cardDisplay: z.ZodString;
|
|
541
541
|
status: z.ZodEnum<["active", "inactive", "frozen", "expired", "unknown"]>;
|
|
542
542
|
levelName: z.ZodOptional<z.ZodString>;
|
|
543
|
-
availablePoints: z.ZodNumber
|
|
543
|
+
availablePoints: z.ZodOptional<z.ZodNumber>;
|
|
544
544
|
cardImageUrl: z.ZodOptional<z.ZodString>;
|
|
545
545
|
pointsRuleImageUrl: z.ZodOptional<z.ZodString>;
|
|
546
546
|
pointsRuleContent: z.ZodOptional<z.ZodString>;
|
|
@@ -631,8 +631,8 @@ export declare const memberCardDataSchemas: {
|
|
|
631
631
|
userId: string;
|
|
632
632
|
cardRef: string;
|
|
633
633
|
cardDisplay: string;
|
|
634
|
-
availablePoints: number;
|
|
635
634
|
levelName?: string | undefined;
|
|
635
|
+
availablePoints?: number | undefined;
|
|
636
636
|
cardImageUrl?: string | undefined;
|
|
637
637
|
pointsRuleImageUrl?: string | undefined;
|
|
638
638
|
pointsRuleContent?: string | undefined;
|
|
@@ -668,8 +668,8 @@ export declare const memberCardDataSchemas: {
|
|
|
668
668
|
userId: string;
|
|
669
669
|
cardRef: string;
|
|
670
670
|
cardDisplay: string;
|
|
671
|
-
availablePoints: number;
|
|
672
671
|
levelName?: string | undefined;
|
|
672
|
+
availablePoints?: number | undefined;
|
|
673
673
|
cardImageUrl?: string | undefined;
|
|
674
674
|
pointsRuleImageUrl?: string | undefined;
|
|
675
675
|
pointsRuleContent?: string | undefined;
|
|
@@ -416,6 +416,7 @@ export declare const promotionOfferDetailCardDataSchema: z.ZodObject<{
|
|
|
416
416
|
export type PromotionOfferDetailCardData = z.infer<typeof promotionOfferDetailCardDataSchema>;
|
|
417
417
|
/** promotion-entitlement-list:我的券 */
|
|
418
418
|
export declare const promotionEntitlementListCardDataSchema: z.ZodObject<{
|
|
419
|
+
showAlipayWallet: z.ZodOptional<z.ZodBoolean>;
|
|
419
420
|
mallId: z.ZodOptional<z.ZodString>;
|
|
420
421
|
miniAppId: z.ZodOptional<z.ZodString>;
|
|
421
422
|
/** 客户端默认展示 4 条;传入正整数可覆盖该上限。 */
|
|
@@ -623,6 +624,7 @@ export declare const promotionEntitlementListCardDataSchema: z.ZodObject<{
|
|
|
623
624
|
noResultsReason?: string | undefined;
|
|
624
625
|
maxItems?: number | undefined;
|
|
625
626
|
nextCursor?: string | undefined;
|
|
627
|
+
showAlipayWallet?: boolean | undefined;
|
|
626
628
|
}, {
|
|
627
629
|
items: {
|
|
628
630
|
status: "USED" | "EXPIRED" | "UNKNOWN" | "EFFECTIVE" | "INVALID";
|
|
@@ -669,6 +671,7 @@ export declare const promotionEntitlementListCardDataSchema: z.ZodObject<{
|
|
|
669
671
|
noResultsReason?: string | undefined;
|
|
670
672
|
maxItems?: number | undefined;
|
|
671
673
|
nextCursor?: string | undefined;
|
|
674
|
+
showAlipayWallet?: boolean | undefined;
|
|
672
675
|
}>;
|
|
673
676
|
export type PromotionEntitlementListCardData = z.infer<typeof promotionEntitlementListCardDataSchema>;
|
|
674
677
|
/** promotion-activity-category-list:活动分类入口。 */
|
|
@@ -1684,6 +1687,7 @@ export declare const promotionCardDataSchemas: {
|
|
|
1684
1687
|
unavailableReason?: string | undefined;
|
|
1685
1688
|
}>;
|
|
1686
1689
|
readonly 'promotion-entitlement-list': z.ZodObject<{
|
|
1690
|
+
showAlipayWallet: z.ZodOptional<z.ZodBoolean>;
|
|
1687
1691
|
mallId: z.ZodOptional<z.ZodString>;
|
|
1688
1692
|
miniAppId: z.ZodOptional<z.ZodString>;
|
|
1689
1693
|
/** 客户端默认展示 4 条;传入正整数可覆盖该上限。 */
|
|
@@ -1891,6 +1895,7 @@ export declare const promotionCardDataSchemas: {
|
|
|
1891
1895
|
noResultsReason?: string | undefined;
|
|
1892
1896
|
maxItems?: number | undefined;
|
|
1893
1897
|
nextCursor?: string | undefined;
|
|
1898
|
+
showAlipayWallet?: boolean | undefined;
|
|
1894
1899
|
}, {
|
|
1895
1900
|
items: {
|
|
1896
1901
|
status: "USED" | "EXPIRED" | "UNKNOWN" | "EFFECTIVE" | "INVALID";
|
|
@@ -1937,6 +1942,7 @@ export declare const promotionCardDataSchemas: {
|
|
|
1937
1942
|
noResultsReason?: string | undefined;
|
|
1938
1943
|
maxItems?: number | undefined;
|
|
1939
1944
|
nextCursor?: string | undefined;
|
|
1945
|
+
showAlipayWallet?: boolean | undefined;
|
|
1940
1946
|
}>;
|
|
1941
1947
|
readonly 'promotion-activity-category-list': z.ZodObject<{
|
|
1942
1948
|
items: z.ZodArray<z.ZodObject<{
|
package/dist/runtime.js
CHANGED
|
@@ -703,7 +703,7 @@ var memberCardSummaryCardDataSchema = z7.object({
|
|
|
703
703
|
cardDisplay: z7.string(),
|
|
704
704
|
status: z7.enum(["active", "inactive", "frozen", "expired", "unknown"]),
|
|
705
705
|
levelName: z7.string().optional(),
|
|
706
|
-
availablePoints: z7.number().int().min(0),
|
|
706
|
+
availablePoints: z7.number().int().min(0).optional(),
|
|
707
707
|
cardImageUrl: z7.string().optional(),
|
|
708
708
|
pointsRuleImageUrl: z7.string().url().optional(),
|
|
709
709
|
pointsRuleContent: z7.string().min(1).max(2e4).optional(),
|
|
@@ -994,6 +994,7 @@ var promotionOfferDetailCardDataSchema = z9.object({
|
|
|
994
994
|
caveats: z9.array(z9.string())
|
|
995
995
|
});
|
|
996
996
|
var promotionEntitlementListCardDataSchema = z9.object({
|
|
997
|
+
showAlipayWallet: z9.boolean().optional(),
|
|
997
998
|
mallId: z9.string().optional(),
|
|
998
999
|
miniAppId: z9.string().optional(),
|
|
999
1000
|
/** 客户端默认展示 4 条;传入正整数可覆盖该上限。 */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tbox.cn/app-contracts-mall",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.17",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "商圈领域契约(TIER1,types + runtime):Port 接口 + MallEventMap + 领域 DTO + scope/装配器运行时。",
|
|
6
6
|
"exports": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"zod": "3.25.76",
|
|
33
|
-
"@tbox.cn/app-contracts": "1.0.0-alpha.
|
|
33
|
+
"@tbox.cn/app-contracts": "1.0.0-alpha.17"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"tsup": "8.5.1",
|
|
@@ -50,6 +50,8 @@ export interface PromotionEntitlement {
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
export interface PromotionEntitlementPage {
|
|
53
|
+
/** 查询结果可附带支付宝卡包入口。 */
|
|
54
|
+
readonly showAlipayWallet?: boolean;
|
|
53
55
|
readonly items: readonly PromotionEntitlement[];
|
|
54
56
|
readonly nextCursor?: string;
|
|
55
57
|
readonly hasMore: boolean;
|
package/src/member/cards.ts
CHANGED
|
@@ -48,7 +48,7 @@ export const memberCardSummaryCardDataSchema = z.object({
|
|
|
48
48
|
cardDisplay: z.string(),
|
|
49
49
|
status: z.enum(['active', 'inactive', 'frozen', 'expired', 'unknown']),
|
|
50
50
|
levelName: z.string().optional(),
|
|
51
|
-
availablePoints: z.number().int().min(0),
|
|
51
|
+
availablePoints: z.number().int().min(0).optional(),
|
|
52
52
|
cardImageUrl: z.string().optional(),
|
|
53
53
|
pointsRuleImageUrl: z.string().url().optional(),
|
|
54
54
|
pointsRuleContent: z.string().min(1).max(20_000).optional(),
|
package/src/promotion/cards.ts
CHANGED
|
@@ -138,6 +138,7 @@ export type PromotionOfferDetailCardData = z.infer<typeof promotionOfferDetailCa
|
|
|
138
138
|
|
|
139
139
|
/** promotion-entitlement-list:我的券 */
|
|
140
140
|
export const promotionEntitlementListCardDataSchema = z.object({
|
|
141
|
+
showAlipayWallet: z.boolean().optional(),
|
|
141
142
|
mallId: z.string().optional(),
|
|
142
143
|
miniAppId: z.string().optional(),
|
|
143
144
|
/** 客户端默认展示 4 条;传入正整数可覆盖该上限。 */
|