@tbox.cn/app-contracts-mall 1.0.0-alpha.1 → 1.0.0-alpha.6
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/README.md +1 -1
- package/dist/activity-play/cards.d.ts +92 -0
- package/dist/activity-play-prize/cards.d.ts +314 -0
- package/dist/domain/activity-play-prize.d.ts +208 -0
- package/dist/domain/activity-play.d.ts +78 -0
- package/dist/index.d.ts +6 -0
- package/dist/member/cards.d.ts +28 -28
- package/dist/parking/cards.d.ts +20 -20
- package/dist/promotion/cards.d.ts +32 -32
- package/dist/runtime.d.ts +6 -0
- package/dist/runtime.js +773 -634
- package/dist/services/activity-play-prize.d.ts +36 -0
- package/dist/services/activity-play.d.ts +39 -0
- package/dist/services/member.d.ts +1 -1
- package/dist/services/parking.d.ts +1 -1
- package/dist/services/promotion.d.ts +1 -1
- package/dist/shopping-guide/cards.d.ts +36 -36
- package/package.json +3 -3
- package/src/activity-play/cards.ts +33 -0
- package/src/activity-play-prize/cards.ts +69 -0
- package/src/domain/activity-play-prize.ts +105 -0
- package/src/domain/activity-play.ts +83 -0
- package/src/index.ts +6 -0
- package/src/runtime.ts +28 -0
- package/src/service-slots.json +83 -19
- package/src/services/activity-play-prize.ts +47 -0
- package/src/services/activity-play.ts +45 -0
- package/src/services/member.ts +1 -1
- package/src/services/parking.ts +1 -1
- package/src/services/promotion.ts +1 -1
- package/tests/activity-play-prize.test.ts +175 -0
- package/tests/activity-play.test.ts +123 -0
- package/tests/service-slots.test.ts +11 -7
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 活动玩法域模型(TIER1):远端活动查询 DTO + 字段级运行时校验单源。
|
|
3
|
+
* 活动事实来自供应商 API(查询时转换——远端活动改造 2026-11-17):本层只描述
|
|
4
|
+
* 供应商返回的活动对象,不做本地目录登记、状态计算或参与入口准备。
|
|
5
|
+
*
|
|
6
|
+
* 身份语义:activityId 是供应商返回的活动标识,按原字符串处理('001'/'1.20'/'1e3'
|
|
7
|
+
* 不改写、不作数字预解析);公开面不出现第二个 ID 或别名映射。
|
|
8
|
+
*
|
|
9
|
+
* 字段校验单源:`activityPlayActivitySchema` 是工具/HTTP/卡片三方共用的活动对象形状
|
|
10
|
+
* (strict 拒未知键——供给侧键名漂移显性失败,不静默放行);
|
|
11
|
+
* 可选字段(description/imageUrl/startsAt/endsAt)缺席即省略,不合成默认值。
|
|
12
|
+
*/
|
|
13
|
+
import { z } from 'zod';
|
|
14
|
+
/** 活动开放状态(供应商状态转换后返回;unknown = 上游未知值,不得按 active 参与展示) */
|
|
15
|
+
export type ActivityPlayStatus = 'not_started' | 'active' | 'ended' | 'disabled' | 'unknown';
|
|
16
|
+
/** 活动对象(列表/详情同形;activityId 与状态均来自供应商) */
|
|
17
|
+
export interface ActivityPlayActivity {
|
|
18
|
+
/** 供应商活动标识(按原字符串处理——非本地配置、非数字) */
|
|
19
|
+
readonly activityId: string;
|
|
20
|
+
readonly title: string;
|
|
21
|
+
/** 展示说明,按普通文本处理 */
|
|
22
|
+
readonly description?: string;
|
|
23
|
+
/** HTTPS 封面地址 */
|
|
24
|
+
readonly imageUrl?: string;
|
|
25
|
+
/** 含时区的 ISO 时间;缺失表示供应商未提供该事实,不编造 */
|
|
26
|
+
readonly startsAt?: string;
|
|
27
|
+
readonly endsAt?: string;
|
|
28
|
+
/**
|
|
29
|
+
* 供应商转换后的活动状态:不表示参与资格;unknown 是保守兜底
|
|
30
|
+
* (上游枚举缺失/无法映射时不得推断为 active)。
|
|
31
|
+
*/
|
|
32
|
+
readonly status: ActivityPlayStatus;
|
|
33
|
+
}
|
|
34
|
+
/** 列表结果(上游范围/分页记录归供应商核验;列表被截断不等同没有更多活动) */
|
|
35
|
+
export interface ActivityPlayPage {
|
|
36
|
+
readonly items: readonly ActivityPlayActivity[];
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* 供应商活动标识:非空、≤128、拒控制字符与路径段破坏符(/ ? # % ——路径定位与
|
|
40
|
+
* URL 编码歧义防线)。除上述形态约束外**按原字符串**收发:字符集/数字形态不做
|
|
41
|
+
* 归一,'001' 与 '1' 是两个不同活动(与旧 activityRef 的字符集白名单语义不同——
|
|
42
|
+
* 现由供应商定义标识空间)。
|
|
43
|
+
*/
|
|
44
|
+
export declare const activityPlayIdSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
45
|
+
/** 活动名称:非空、≤64 */
|
|
46
|
+
export declare const activityPlayTitleSchema: z.ZodString;
|
|
47
|
+
/** 说明:普通文本,≤500 */
|
|
48
|
+
export declare const activityPlayDescriptionSchema: z.ZodString;
|
|
49
|
+
/** 时间:含时区偏移的 ISO 形态,且为真实日历时刻(拒 2027-02-30 类滚日值) */
|
|
50
|
+
export declare const activityPlayTimeSchema: z.ZodString;
|
|
51
|
+
/** 封面图:有效 URL 且恒 HTTPS(拒 https://? 等残缺形态) */
|
|
52
|
+
export declare const activityPlayImageUrlSchema: z.ZodString;
|
|
53
|
+
/** 活动对象 schema(列表项/详情/H5 与 B 端展示同形;strict 拒未知键——含旧字段 activityRef/loginRequired) */
|
|
54
|
+
export declare const activityPlayActivitySchema: z.ZodObject<{
|
|
55
|
+
activityId: z.ZodEffects<z.ZodString, string, string>;
|
|
56
|
+
title: z.ZodString;
|
|
57
|
+
description: z.ZodOptional<z.ZodString>;
|
|
58
|
+
imageUrl: z.ZodOptional<z.ZodString>;
|
|
59
|
+
startsAt: z.ZodOptional<z.ZodString>;
|
|
60
|
+
endsAt: z.ZodOptional<z.ZodString>;
|
|
61
|
+
status: z.ZodEnum<["not_started", "active", "ended", "disabled", "unknown"]>;
|
|
62
|
+
}, "strict", z.ZodTypeAny, {
|
|
63
|
+
status: "unknown" | "not_started" | "active" | "ended" | "disabled";
|
|
64
|
+
activityId: string;
|
|
65
|
+
title: string;
|
|
66
|
+
description?: string | undefined;
|
|
67
|
+
imageUrl?: string | undefined;
|
|
68
|
+
startsAt?: string | undefined;
|
|
69
|
+
endsAt?: string | undefined;
|
|
70
|
+
}, {
|
|
71
|
+
status: "unknown" | "not_started" | "active" | "ended" | "disabled";
|
|
72
|
+
activityId: string;
|
|
73
|
+
title: string;
|
|
74
|
+
description?: string | undefined;
|
|
75
|
+
imageUrl?: string | undefined;
|
|
76
|
+
startsAt?: string | undefined;
|
|
77
|
+
endsAt?: string | undefined;
|
|
78
|
+
}>;
|
package/dist/index.d.ts
CHANGED
|
@@ -12,10 +12,14 @@ export * from './domain/offer';
|
|
|
12
12
|
export * from './domain/entitlement';
|
|
13
13
|
export * from './domain/activity';
|
|
14
14
|
export * from './domain/operation';
|
|
15
|
+
export * from './domain/activity-play';
|
|
16
|
+
export * from './domain/activity-play-prize';
|
|
15
17
|
export * from './services/member';
|
|
16
18
|
export * from './services/parking';
|
|
17
19
|
export * from './services/promotion';
|
|
18
20
|
export * from './services/mall-info';
|
|
21
|
+
export * from './services/activity-play';
|
|
22
|
+
export * from './services/activity-play-prize';
|
|
19
23
|
export * from './events';
|
|
20
24
|
export * from './scope';
|
|
21
25
|
export * from './query-context';
|
|
@@ -31,4 +35,6 @@ export * from './services/customer-service';
|
|
|
31
35
|
export * from './member/cards';
|
|
32
36
|
export * from './promotion/cards';
|
|
33
37
|
export * from './parking/cards';
|
|
38
|
+
export * from './activity-play/cards';
|
|
39
|
+
export * from './activity-play-prize/cards';
|
|
34
40
|
export * from './alipay-activity/cards';
|
package/dist/member/cards.d.ts
CHANGED
|
@@ -113,13 +113,13 @@ export declare const memberCardSummaryCardDataSchema: z.ZodObject<{
|
|
|
113
113
|
}, "strip", z.ZodTypeAny, {
|
|
114
114
|
kind: "toast" | "miniapp" | "dialog";
|
|
115
115
|
url?: string | undefined;
|
|
116
|
-
text?: string | undefined;
|
|
117
116
|
title?: string | undefined;
|
|
117
|
+
text?: string | undefined;
|
|
118
118
|
}, {
|
|
119
119
|
kind: "toast" | "miniapp" | "dialog";
|
|
120
120
|
url?: string | undefined;
|
|
121
|
-
text?: string | undefined;
|
|
122
121
|
title?: string | undefined;
|
|
122
|
+
text?: string | undefined;
|
|
123
123
|
}>>;
|
|
124
124
|
}, "strip", z.ZodTypeAny, {
|
|
125
125
|
name: string;
|
|
@@ -129,8 +129,8 @@ export declare const memberCardSummaryCardDataSchema: z.ZodObject<{
|
|
|
129
129
|
action?: {
|
|
130
130
|
kind: "toast" | "miniapp" | "dialog";
|
|
131
131
|
url?: string | undefined;
|
|
132
|
-
text?: string | undefined;
|
|
133
132
|
title?: string | undefined;
|
|
133
|
+
text?: string | undefined;
|
|
134
134
|
} | undefined;
|
|
135
135
|
}, {
|
|
136
136
|
name: string;
|
|
@@ -140,8 +140,8 @@ export declare const memberCardSummaryCardDataSchema: z.ZodObject<{
|
|
|
140
140
|
action?: {
|
|
141
141
|
kind: "toast" | "miniapp" | "dialog";
|
|
142
142
|
url?: string | undefined;
|
|
143
|
-
text?: string | undefined;
|
|
144
143
|
title?: string | undefined;
|
|
144
|
+
text?: string | undefined;
|
|
145
145
|
} | undefined;
|
|
146
146
|
}>, "many">>;
|
|
147
147
|
/** 入会后偏好引导;首批固定三项,保留数组形态便于后续扩展。 */
|
|
@@ -184,8 +184,8 @@ export declare const memberCardSummaryCardDataSchema: z.ZodObject<{
|
|
|
184
184
|
action?: {
|
|
185
185
|
kind: "toast" | "miniapp" | "dialog";
|
|
186
186
|
url?: string | undefined;
|
|
187
|
-
text?: string | undefined;
|
|
188
187
|
title?: string | undefined;
|
|
188
|
+
text?: string | undefined;
|
|
189
189
|
} | undefined;
|
|
190
190
|
}[] | undefined;
|
|
191
191
|
preferencePrompts?: {
|
|
@@ -221,8 +221,8 @@ export declare const memberCardSummaryCardDataSchema: z.ZodObject<{
|
|
|
221
221
|
action?: {
|
|
222
222
|
kind: "toast" | "miniapp" | "dialog";
|
|
223
223
|
url?: string | undefined;
|
|
224
|
-
text?: string | undefined;
|
|
225
224
|
title?: string | undefined;
|
|
225
|
+
text?: string | undefined;
|
|
226
226
|
} | undefined;
|
|
227
227
|
}[] | undefined;
|
|
228
228
|
preferencePrompts?: {
|
|
@@ -327,14 +327,14 @@ export declare const memberEnrollmentFormCardDataSchema: z.ZodObject<{
|
|
|
327
327
|
required: z.ZodBoolean;
|
|
328
328
|
url: z.ZodOptional<z.ZodString>;
|
|
329
329
|
}, "strip", z.ZodTypeAny, {
|
|
330
|
-
required: boolean;
|
|
331
330
|
title: string;
|
|
331
|
+
required: boolean;
|
|
332
332
|
consentId: string;
|
|
333
333
|
version: string;
|
|
334
334
|
url?: string | undefined;
|
|
335
335
|
}, {
|
|
336
|
-
required: boolean;
|
|
337
336
|
title: string;
|
|
337
|
+
required: boolean;
|
|
338
338
|
consentId: string;
|
|
339
339
|
version: string;
|
|
340
340
|
url?: string | undefined;
|
|
@@ -367,8 +367,8 @@ export declare const memberEnrollmentFormCardDataSchema: z.ZodObject<{
|
|
|
367
367
|
placeholder?: string | undefined;
|
|
368
368
|
}[];
|
|
369
369
|
consents: {
|
|
370
|
-
required: boolean;
|
|
371
370
|
title: string;
|
|
371
|
+
required: boolean;
|
|
372
372
|
consentId: string;
|
|
373
373
|
version: string;
|
|
374
374
|
url?: string | undefined;
|
|
@@ -393,8 +393,8 @@ export declare const memberEnrollmentFormCardDataSchema: z.ZodObject<{
|
|
|
393
393
|
placeholder?: string | undefined;
|
|
394
394
|
}[];
|
|
395
395
|
consents: {
|
|
396
|
-
required: boolean;
|
|
397
396
|
title: string;
|
|
397
|
+
required: boolean;
|
|
398
398
|
consentId: string;
|
|
399
399
|
version: string;
|
|
400
400
|
url?: string | undefined;
|
|
@@ -448,16 +448,16 @@ export declare const memberEnrollmentCtaCardDataSchema: z.ZodObject<{
|
|
|
448
448
|
userId: string;
|
|
449
449
|
authState: "authenticated";
|
|
450
450
|
state: "not_enrolled" | "closed";
|
|
451
|
-
enrollUrl?: string | undefined;
|
|
452
451
|
title?: string | undefined;
|
|
452
|
+
enrollUrl?: string | undefined;
|
|
453
453
|
subtitle?: string | undefined;
|
|
454
454
|
perks?: string[] | undefined;
|
|
455
455
|
}, {
|
|
456
456
|
userId: string;
|
|
457
457
|
authState: "authenticated";
|
|
458
458
|
state: "not_enrolled" | "closed";
|
|
459
|
-
enrollUrl?: string | undefined;
|
|
460
459
|
title?: string | undefined;
|
|
460
|
+
enrollUrl?: string | undefined;
|
|
461
461
|
subtitle?: string | undefined;
|
|
462
462
|
perks?: string[] | undefined;
|
|
463
463
|
}>;
|
|
@@ -479,11 +479,11 @@ export declare const memberLoginCtaCardDataSchema: z.ZodObject<{
|
|
|
479
479
|
loginUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
480
480
|
title: z.ZodOptional<z.ZodString>;
|
|
481
481
|
}, "strip", z.ZodTypeAny, {
|
|
482
|
-
loginUrl?: string | undefined;
|
|
483
482
|
title?: string | undefined;
|
|
484
|
-
}, {
|
|
485
483
|
loginUrl?: string | undefined;
|
|
484
|
+
}, {
|
|
486
485
|
title?: string | undefined;
|
|
486
|
+
loginUrl?: string | undefined;
|
|
487
487
|
}>;
|
|
488
488
|
export type MemberLoginCtaCardData = z.infer<typeof memberLoginCtaCardDataSchema>;
|
|
489
489
|
/** 7 卡 schema map(cardType → dataSchema;券面 0.4.0 净删——promotion 承接) */
|
|
@@ -584,13 +584,13 @@ export declare const memberCardDataSchemas: {
|
|
|
584
584
|
}, "strip", z.ZodTypeAny, {
|
|
585
585
|
kind: "toast" | "miniapp" | "dialog";
|
|
586
586
|
url?: string | undefined;
|
|
587
|
-
text?: string | undefined;
|
|
588
587
|
title?: string | undefined;
|
|
588
|
+
text?: string | undefined;
|
|
589
589
|
}, {
|
|
590
590
|
kind: "toast" | "miniapp" | "dialog";
|
|
591
591
|
url?: string | undefined;
|
|
592
|
-
text?: string | undefined;
|
|
593
592
|
title?: string | undefined;
|
|
593
|
+
text?: string | undefined;
|
|
594
594
|
}>>;
|
|
595
595
|
}, "strip", z.ZodTypeAny, {
|
|
596
596
|
name: string;
|
|
@@ -600,8 +600,8 @@ export declare const memberCardDataSchemas: {
|
|
|
600
600
|
action?: {
|
|
601
601
|
kind: "toast" | "miniapp" | "dialog";
|
|
602
602
|
url?: string | undefined;
|
|
603
|
-
text?: string | undefined;
|
|
604
603
|
title?: string | undefined;
|
|
604
|
+
text?: string | undefined;
|
|
605
605
|
} | undefined;
|
|
606
606
|
}, {
|
|
607
607
|
name: string;
|
|
@@ -611,8 +611,8 @@ export declare const memberCardDataSchemas: {
|
|
|
611
611
|
action?: {
|
|
612
612
|
kind: "toast" | "miniapp" | "dialog";
|
|
613
613
|
url?: string | undefined;
|
|
614
|
-
text?: string | undefined;
|
|
615
614
|
title?: string | undefined;
|
|
615
|
+
text?: string | undefined;
|
|
616
616
|
} | undefined;
|
|
617
617
|
}>, "many">>;
|
|
618
618
|
/** 入会后偏好引导;首批固定三项,保留数组形态便于后续扩展。 */
|
|
@@ -655,8 +655,8 @@ export declare const memberCardDataSchemas: {
|
|
|
655
655
|
action?: {
|
|
656
656
|
kind: "toast" | "miniapp" | "dialog";
|
|
657
657
|
url?: string | undefined;
|
|
658
|
-
text?: string | undefined;
|
|
659
658
|
title?: string | undefined;
|
|
659
|
+
text?: string | undefined;
|
|
660
660
|
} | undefined;
|
|
661
661
|
}[] | undefined;
|
|
662
662
|
preferencePrompts?: {
|
|
@@ -692,8 +692,8 @@ export declare const memberCardDataSchemas: {
|
|
|
692
692
|
action?: {
|
|
693
693
|
kind: "toast" | "miniapp" | "dialog";
|
|
694
694
|
url?: string | undefined;
|
|
695
|
-
text?: string | undefined;
|
|
696
695
|
title?: string | undefined;
|
|
696
|
+
text?: string | undefined;
|
|
697
697
|
} | undefined;
|
|
698
698
|
}[] | undefined;
|
|
699
699
|
preferencePrompts?: {
|
|
@@ -792,14 +792,14 @@ export declare const memberCardDataSchemas: {
|
|
|
792
792
|
required: z.ZodBoolean;
|
|
793
793
|
url: z.ZodOptional<z.ZodString>;
|
|
794
794
|
}, "strip", z.ZodTypeAny, {
|
|
795
|
-
required: boolean;
|
|
796
795
|
title: string;
|
|
796
|
+
required: boolean;
|
|
797
797
|
consentId: string;
|
|
798
798
|
version: string;
|
|
799
799
|
url?: string | undefined;
|
|
800
800
|
}, {
|
|
801
|
-
required: boolean;
|
|
802
801
|
title: string;
|
|
802
|
+
required: boolean;
|
|
803
803
|
consentId: string;
|
|
804
804
|
version: string;
|
|
805
805
|
url?: string | undefined;
|
|
@@ -832,8 +832,8 @@ export declare const memberCardDataSchemas: {
|
|
|
832
832
|
placeholder?: string | undefined;
|
|
833
833
|
}[];
|
|
834
834
|
consents: {
|
|
835
|
-
required: boolean;
|
|
836
835
|
title: string;
|
|
836
|
+
required: boolean;
|
|
837
837
|
consentId: string;
|
|
838
838
|
version: string;
|
|
839
839
|
url?: string | undefined;
|
|
@@ -858,8 +858,8 @@ export declare const memberCardDataSchemas: {
|
|
|
858
858
|
placeholder?: string | undefined;
|
|
859
859
|
}[];
|
|
860
860
|
consents: {
|
|
861
|
-
required: boolean;
|
|
862
861
|
title: string;
|
|
862
|
+
required: boolean;
|
|
863
863
|
consentId: string;
|
|
864
864
|
version: string;
|
|
865
865
|
url?: string | undefined;
|
|
@@ -909,16 +909,16 @@ export declare const memberCardDataSchemas: {
|
|
|
909
909
|
userId: string;
|
|
910
910
|
authState: "authenticated";
|
|
911
911
|
state: "not_enrolled" | "closed";
|
|
912
|
-
enrollUrl?: string | undefined;
|
|
913
912
|
title?: string | undefined;
|
|
913
|
+
enrollUrl?: string | undefined;
|
|
914
914
|
subtitle?: string | undefined;
|
|
915
915
|
perks?: string[] | undefined;
|
|
916
916
|
}, {
|
|
917
917
|
userId: string;
|
|
918
918
|
authState: "authenticated";
|
|
919
919
|
state: "not_enrolled" | "closed";
|
|
920
|
-
enrollUrl?: string | undefined;
|
|
921
920
|
title?: string | undefined;
|
|
921
|
+
enrollUrl?: string | undefined;
|
|
922
922
|
subtitle?: string | undefined;
|
|
923
923
|
perks?: string[] | undefined;
|
|
924
924
|
}>;
|
|
@@ -930,11 +930,11 @@ export declare const memberCardDataSchemas: {
|
|
|
930
930
|
loginUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
931
931
|
title: z.ZodOptional<z.ZodString>;
|
|
932
932
|
}, "strip", z.ZodTypeAny, {
|
|
933
|
-
loginUrl?: string | undefined;
|
|
934
933
|
title?: string | undefined;
|
|
935
|
-
}, {
|
|
936
934
|
loginUrl?: string | undefined;
|
|
935
|
+
}, {
|
|
937
936
|
title?: string | undefined;
|
|
937
|
+
loginUrl?: string | undefined;
|
|
938
938
|
}>;
|
|
939
939
|
};
|
|
940
940
|
export type MemberCardType = keyof typeof memberCardDataSchemas;
|
package/dist/parking/cards.d.ts
CHANGED
|
@@ -72,10 +72,10 @@ export declare const parkingPaymentCardDataSchema: z.ZodObject<{
|
|
|
72
72
|
state: z.ZodEnum<["unauthenticated", "unknown", "active", "not_enrolled", "closed", "unavailable"]>;
|
|
73
73
|
availablePoints: z.ZodOptional<z.ZodNumber>;
|
|
74
74
|
}, "strip", z.ZodTypeAny, {
|
|
75
|
-
state: "unknown" | "unavailable" | "
|
|
75
|
+
state: "unknown" | "unavailable" | "active" | "unauthenticated" | "not_enrolled" | "closed";
|
|
76
76
|
availablePoints?: number | undefined;
|
|
77
77
|
}, {
|
|
78
|
-
state: "unknown" | "unavailable" | "
|
|
78
|
+
state: "unknown" | "unavailable" | "active" | "unauthenticated" | "not_enrolled" | "closed";
|
|
79
79
|
availablePoints?: number | undefined;
|
|
80
80
|
}>>;
|
|
81
81
|
/** 服务端归一化后的支付入口;客户端不解析权益标题。 */
|
|
@@ -322,7 +322,7 @@ export declare const parkingPaymentCardDataSchema: z.ZodObject<{
|
|
|
322
322
|
durationText?: string | undefined;
|
|
323
323
|
discountText?: string | undefined;
|
|
324
324
|
membership?: {
|
|
325
|
-
state: "unknown" | "unavailable" | "
|
|
325
|
+
state: "unknown" | "unavailable" | "active" | "unauthenticated" | "not_enrolled" | "closed";
|
|
326
326
|
availablePoints?: number | undefined;
|
|
327
327
|
} | undefined;
|
|
328
328
|
paymentOptions?: {
|
|
@@ -390,7 +390,7 @@ export declare const parkingPaymentCardDataSchema: z.ZodObject<{
|
|
|
390
390
|
durationText?: string | undefined;
|
|
391
391
|
discountText?: string | undefined;
|
|
392
392
|
membership?: {
|
|
393
|
-
state: "unknown" | "unavailable" | "
|
|
393
|
+
state: "unknown" | "unavailable" | "active" | "unauthenticated" | "not_enrolled" | "closed";
|
|
394
394
|
availablePoints?: number | undefined;
|
|
395
395
|
} | undefined;
|
|
396
396
|
paymentOptions?: {
|
|
@@ -536,7 +536,6 @@ export declare const parkingPaymentRecordsCardDataSchema: z.ZodObject<{
|
|
|
536
536
|
message: z.ZodOptional<z.ZodString>;
|
|
537
537
|
}, "strip", z.ZodTypeAny, {
|
|
538
538
|
total: number;
|
|
539
|
-
hasMore: boolean;
|
|
540
539
|
items: {
|
|
541
540
|
status: "PAID" | "REFUNDED" | "CLOSED" | "UNKNOWN";
|
|
542
541
|
plateNo: string;
|
|
@@ -553,11 +552,11 @@ export declare const parkingPaymentRecordsCardDataSchema: z.ZodObject<{
|
|
|
553
552
|
invoiceEligible?: boolean | undefined;
|
|
554
553
|
invoiceIssued?: boolean | undefined;
|
|
555
554
|
}[];
|
|
555
|
+
hasMore: boolean;
|
|
556
556
|
caveats: string[];
|
|
557
557
|
message?: string | undefined;
|
|
558
558
|
}, {
|
|
559
559
|
total: number;
|
|
560
|
-
hasMore: boolean;
|
|
561
560
|
items: {
|
|
562
561
|
status: "PAID" | "REFUNDED" | "CLOSED" | "UNKNOWN";
|
|
563
562
|
plateNo: string;
|
|
@@ -574,6 +573,7 @@ export declare const parkingPaymentRecordsCardDataSchema: z.ZodObject<{
|
|
|
574
573
|
invoiceEligible?: boolean | undefined;
|
|
575
574
|
invoiceIssued?: boolean | undefined;
|
|
576
575
|
}[];
|
|
576
|
+
hasMore: boolean;
|
|
577
577
|
caveats: string[];
|
|
578
578
|
message?: string | undefined;
|
|
579
579
|
}>;
|
|
@@ -601,9 +601,9 @@ export declare const parkingVehicleManagementCardDataSchema: z.ZodObject<{
|
|
|
601
601
|
membership: z.ZodOptional<z.ZodObject<{
|
|
602
602
|
state: z.ZodEnum<["unauthenticated", "unknown", "active", "not_enrolled", "closed", "unavailable"]>;
|
|
603
603
|
}, "strip", z.ZodTypeAny, {
|
|
604
|
-
state: "unknown" | "unavailable" | "
|
|
604
|
+
state: "unknown" | "unavailable" | "active" | "unauthenticated" | "not_enrolled" | "closed";
|
|
605
605
|
}, {
|
|
606
|
-
state: "unknown" | "unavailable" | "
|
|
606
|
+
state: "unknown" | "unavailable" | "active" | "unauthenticated" | "not_enrolled" | "closed";
|
|
607
607
|
}>>;
|
|
608
608
|
}, "strip", z.ZodTypeAny, {
|
|
609
609
|
bound: {
|
|
@@ -613,7 +613,7 @@ export declare const parkingVehicleManagementCardDataSchema: z.ZodObject<{
|
|
|
613
613
|
}[];
|
|
614
614
|
message?: string | undefined;
|
|
615
615
|
membership?: {
|
|
616
|
-
state: "unknown" | "unavailable" | "
|
|
616
|
+
state: "unknown" | "unavailable" | "active" | "unauthenticated" | "not_enrolled" | "closed";
|
|
617
617
|
} | undefined;
|
|
618
618
|
}, {
|
|
619
619
|
bound: {
|
|
@@ -623,7 +623,7 @@ export declare const parkingVehicleManagementCardDataSchema: z.ZodObject<{
|
|
|
623
623
|
}[];
|
|
624
624
|
message?: string | undefined;
|
|
625
625
|
membership?: {
|
|
626
|
-
state: "unknown" | "unavailable" | "
|
|
626
|
+
state: "unknown" | "unavailable" | "active" | "unauthenticated" | "not_enrolled" | "closed";
|
|
627
627
|
} | undefined;
|
|
628
628
|
}>;
|
|
629
629
|
export type ParkingVehicleManagementCardData = z.infer<typeof parkingVehicleManagementCardDataSchema>;
|
|
@@ -691,10 +691,10 @@ export declare const parkingCardDataSchemas: {
|
|
|
691
691
|
state: z.ZodEnum<["unauthenticated", "unknown", "active", "not_enrolled", "closed", "unavailable"]>;
|
|
692
692
|
availablePoints: z.ZodOptional<z.ZodNumber>;
|
|
693
693
|
}, "strip", z.ZodTypeAny, {
|
|
694
|
-
state: "unknown" | "unavailable" | "
|
|
694
|
+
state: "unknown" | "unavailable" | "active" | "unauthenticated" | "not_enrolled" | "closed";
|
|
695
695
|
availablePoints?: number | undefined;
|
|
696
696
|
}, {
|
|
697
|
-
state: "unknown" | "unavailable" | "
|
|
697
|
+
state: "unknown" | "unavailable" | "active" | "unauthenticated" | "not_enrolled" | "closed";
|
|
698
698
|
availablePoints?: number | undefined;
|
|
699
699
|
}>>;
|
|
700
700
|
/** 服务端归一化后的支付入口;客户端不解析权益标题。 */
|
|
@@ -941,7 +941,7 @@ export declare const parkingCardDataSchemas: {
|
|
|
941
941
|
durationText?: string | undefined;
|
|
942
942
|
discountText?: string | undefined;
|
|
943
943
|
membership?: {
|
|
944
|
-
state: "unknown" | "unavailable" | "
|
|
944
|
+
state: "unknown" | "unavailable" | "active" | "unauthenticated" | "not_enrolled" | "closed";
|
|
945
945
|
availablePoints?: number | undefined;
|
|
946
946
|
} | undefined;
|
|
947
947
|
paymentOptions?: {
|
|
@@ -1009,7 +1009,7 @@ export declare const parkingCardDataSchemas: {
|
|
|
1009
1009
|
durationText?: string | undefined;
|
|
1010
1010
|
discountText?: string | undefined;
|
|
1011
1011
|
membership?: {
|
|
1012
|
-
state: "unknown" | "unavailable" | "
|
|
1012
|
+
state: "unknown" | "unavailable" | "active" | "unauthenticated" | "not_enrolled" | "closed";
|
|
1013
1013
|
availablePoints?: number | undefined;
|
|
1014
1014
|
} | undefined;
|
|
1015
1015
|
paymentOptions?: {
|
|
@@ -1151,7 +1151,6 @@ export declare const parkingCardDataSchemas: {
|
|
|
1151
1151
|
message: z.ZodOptional<z.ZodString>;
|
|
1152
1152
|
}, "strip", z.ZodTypeAny, {
|
|
1153
1153
|
total: number;
|
|
1154
|
-
hasMore: boolean;
|
|
1155
1154
|
items: {
|
|
1156
1155
|
status: "PAID" | "REFUNDED" | "CLOSED" | "UNKNOWN";
|
|
1157
1156
|
plateNo: string;
|
|
@@ -1168,11 +1167,11 @@ export declare const parkingCardDataSchemas: {
|
|
|
1168
1167
|
invoiceEligible?: boolean | undefined;
|
|
1169
1168
|
invoiceIssued?: boolean | undefined;
|
|
1170
1169
|
}[];
|
|
1170
|
+
hasMore: boolean;
|
|
1171
1171
|
caveats: string[];
|
|
1172
1172
|
message?: string | undefined;
|
|
1173
1173
|
}, {
|
|
1174
1174
|
total: number;
|
|
1175
|
-
hasMore: boolean;
|
|
1176
1175
|
items: {
|
|
1177
1176
|
status: "PAID" | "REFUNDED" | "CLOSED" | "UNKNOWN";
|
|
1178
1177
|
plateNo: string;
|
|
@@ -1189,6 +1188,7 @@ export declare const parkingCardDataSchemas: {
|
|
|
1189
1188
|
invoiceEligible?: boolean | undefined;
|
|
1190
1189
|
invoiceIssued?: boolean | undefined;
|
|
1191
1190
|
}[];
|
|
1191
|
+
hasMore: boolean;
|
|
1192
1192
|
caveats: string[];
|
|
1193
1193
|
message?: string | undefined;
|
|
1194
1194
|
}>;
|
|
@@ -1214,9 +1214,9 @@ export declare const parkingCardDataSchemas: {
|
|
|
1214
1214
|
membership: z.ZodOptional<z.ZodObject<{
|
|
1215
1215
|
state: z.ZodEnum<["unauthenticated", "unknown", "active", "not_enrolled", "closed", "unavailable"]>;
|
|
1216
1216
|
}, "strip", z.ZodTypeAny, {
|
|
1217
|
-
state: "unknown" | "unavailable" | "
|
|
1217
|
+
state: "unknown" | "unavailable" | "active" | "unauthenticated" | "not_enrolled" | "closed";
|
|
1218
1218
|
}, {
|
|
1219
|
-
state: "unknown" | "unavailable" | "
|
|
1219
|
+
state: "unknown" | "unavailable" | "active" | "unauthenticated" | "not_enrolled" | "closed";
|
|
1220
1220
|
}>>;
|
|
1221
1221
|
}, "strip", z.ZodTypeAny, {
|
|
1222
1222
|
bound: {
|
|
@@ -1226,7 +1226,7 @@ export declare const parkingCardDataSchemas: {
|
|
|
1226
1226
|
}[];
|
|
1227
1227
|
message?: string | undefined;
|
|
1228
1228
|
membership?: {
|
|
1229
|
-
state: "unknown" | "unavailable" | "
|
|
1229
|
+
state: "unknown" | "unavailable" | "active" | "unauthenticated" | "not_enrolled" | "closed";
|
|
1230
1230
|
} | undefined;
|
|
1231
1231
|
}, {
|
|
1232
1232
|
bound: {
|
|
@@ -1236,7 +1236,7 @@ export declare const parkingCardDataSchemas: {
|
|
|
1236
1236
|
}[];
|
|
1237
1237
|
message?: string | undefined;
|
|
1238
1238
|
membership?: {
|
|
1239
|
-
state: "unknown" | "unavailable" | "
|
|
1239
|
+
state: "unknown" | "unavailable" | "active" | "unauthenticated" | "not_enrolled" | "closed";
|
|
1240
1240
|
} | undefined;
|
|
1241
1241
|
}>;
|
|
1242
1242
|
readonly 'parking-info': z.ZodObject<{
|