@tbox.cn/app-module-parking 0.10.2 → 0.10.3
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/dist/{chunk-AC5FKXIW.js → chunk-VH3J7FEI.js} +47 -17
- package/dist/index.js +1 -1
- package/dist/server/index.d.ts +171 -171
- package/dist/server/index.js +1 -1
- package/package.json +5 -5
- package/src/server/cards/index.ts +5 -5
- package/src/server/cards/parking-info/meta.ts +1 -0
- package/src/server/cards/parking-payment/meta.ts +1 -0
- package/src/server/cards/parking-payment/samples.ts +19 -0
- package/src/server/cards/parking-payment-records/meta.ts +1 -0
- package/src/server/cards/parking-payment-records/samples.ts +2 -0
- package/src/server/cards/parking-payment-result/meta.ts +1 -0
- package/src/server/cards/parking-payment-result/samples.ts +5 -0
- package/src/server/cards/parking-vehicle-management/meta.ts +1 -0
- package/src/server/cards/parking-vehicle-management/samples.ts +2 -0
- package/tests/samples.test.ts +33 -3
package/dist/server/index.d.ts
CHANGED
|
@@ -89,6 +89,77 @@ declare const resolveParkingPaymentPort: (reqCtx: RequestContext, ctx?: ServerCo
|
|
|
89
89
|
declare const resolveParkingVehiclePort: (reqCtx: RequestContext, ctx?: ServerContext) => Promise<ParkingVehiclePort>;
|
|
90
90
|
|
|
91
91
|
declare const parkingCards: {
|
|
92
|
+
readonly 'parking-vehicle-management': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
|
|
93
|
+
bound: zod.ZodArray<zod.ZodObject<{
|
|
94
|
+
vehicleRef: zod.ZodString;
|
|
95
|
+
plateNo: zod.ZodString;
|
|
96
|
+
parked: zod.ZodOptional<zod.ZodBoolean>;
|
|
97
|
+
}, "strip", zod.ZodTypeAny, {
|
|
98
|
+
plateNo: string;
|
|
99
|
+
vehicleRef: string;
|
|
100
|
+
parked?: boolean | undefined;
|
|
101
|
+
}, {
|
|
102
|
+
plateNo: string;
|
|
103
|
+
vehicleRef: string;
|
|
104
|
+
parked?: boolean | undefined;
|
|
105
|
+
}>, "many">;
|
|
106
|
+
message: zod.ZodOptional<zod.ZodString>;
|
|
107
|
+
membership: zod.ZodOptional<zod.ZodObject<{
|
|
108
|
+
state: zod.ZodEnum<["unauthenticated", "unknown", "active", "not_enrolled", "closed", "unavailable"]>;
|
|
109
|
+
}, "strip", zod.ZodTypeAny, {
|
|
110
|
+
state: "unknown" | "unauthenticated" | "active" | "not_enrolled" | "closed" | "unavailable";
|
|
111
|
+
}, {
|
|
112
|
+
state: "unknown" | "unauthenticated" | "active" | "not_enrolled" | "closed" | "unavailable";
|
|
113
|
+
}>>;
|
|
114
|
+
}, "strip", zod.ZodTypeAny, {
|
|
115
|
+
bound: {
|
|
116
|
+
plateNo: string;
|
|
117
|
+
vehicleRef: string;
|
|
118
|
+
parked?: boolean | undefined;
|
|
119
|
+
}[];
|
|
120
|
+
message?: string | undefined;
|
|
121
|
+
membership?: {
|
|
122
|
+
state: "unknown" | "unauthenticated" | "active" | "not_enrolled" | "closed" | "unavailable";
|
|
123
|
+
} | undefined;
|
|
124
|
+
}, {
|
|
125
|
+
bound: {
|
|
126
|
+
plateNo: string;
|
|
127
|
+
vehicleRef: string;
|
|
128
|
+
parked?: boolean | undefined;
|
|
129
|
+
}[];
|
|
130
|
+
message?: string | undefined;
|
|
131
|
+
membership?: {
|
|
132
|
+
state: "unknown" | "unauthenticated" | "active" | "not_enrolled" | "closed" | "unavailable";
|
|
133
|
+
} | undefined;
|
|
134
|
+
}>>;
|
|
135
|
+
readonly 'parking-info': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
|
|
136
|
+
kind: zod.ZodEnum<["chargeRules", "benefitPolicy", "vehicleLocation"]>;
|
|
137
|
+
title: zod.ZodString;
|
|
138
|
+
entries: zod.ZodArray<zod.ZodObject<{
|
|
139
|
+
label: zod.ZodString;
|
|
140
|
+
value: zod.ZodString;
|
|
141
|
+
}, "strip", zod.ZodTypeAny, {
|
|
142
|
+
value: string;
|
|
143
|
+
label: string;
|
|
144
|
+
}, {
|
|
145
|
+
value: string;
|
|
146
|
+
label: string;
|
|
147
|
+
}>, "many">;
|
|
148
|
+
}, "strip", zod.ZodTypeAny, {
|
|
149
|
+
entries: {
|
|
150
|
+
value: string;
|
|
151
|
+
label: string;
|
|
152
|
+
}[];
|
|
153
|
+
kind: "chargeRules" | "benefitPolicy" | "vehicleLocation";
|
|
154
|
+
title: string;
|
|
155
|
+
}, {
|
|
156
|
+
entries: {
|
|
157
|
+
value: string;
|
|
158
|
+
label: string;
|
|
159
|
+
}[];
|
|
160
|
+
kind: "chargeRules" | "benefitPolicy" | "vehicleLocation";
|
|
161
|
+
title: string;
|
|
162
|
+
}>>;
|
|
92
163
|
readonly 'parking-payment': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
|
|
93
164
|
quoteRef: zod.ZodString;
|
|
94
165
|
plateNo: zod.ZodString;
|
|
@@ -98,11 +169,11 @@ declare const parkingCards: {
|
|
|
98
169
|
name: zod.ZodString;
|
|
99
170
|
amountText: zod.ZodString;
|
|
100
171
|
}, "strip", zod.ZodTypeAny, {
|
|
101
|
-
name: string;
|
|
102
172
|
amountText: string;
|
|
103
|
-
}, {
|
|
104
173
|
name: string;
|
|
174
|
+
}, {
|
|
105
175
|
amountText: string;
|
|
176
|
+
name: string;
|
|
106
177
|
}>, "many">;
|
|
107
178
|
totalText: zod.ZodString;
|
|
108
179
|
discountText: zod.ZodOptional<zod.ZodString>;
|
|
@@ -111,10 +182,10 @@ declare const parkingCards: {
|
|
|
111
182
|
state: zod.ZodEnum<["unauthenticated", "unknown", "active", "not_enrolled", "closed", "unavailable"]>;
|
|
112
183
|
availablePoints: zod.ZodOptional<zod.ZodNumber>;
|
|
113
184
|
}, "strip", zod.ZodTypeAny, {
|
|
114
|
-
state: "unknown" | "
|
|
185
|
+
state: "unknown" | "unauthenticated" | "active" | "not_enrolled" | "closed" | "unavailable";
|
|
115
186
|
availablePoints?: number | undefined;
|
|
116
187
|
}, {
|
|
117
|
-
state: "unknown" | "
|
|
188
|
+
state: "unknown" | "unauthenticated" | "active" | "not_enrolled" | "closed" | "unavailable";
|
|
118
189
|
availablePoints?: number | undefined;
|
|
119
190
|
}>>;
|
|
120
191
|
paymentOptions: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -213,7 +284,7 @@ declare const parkingCards: {
|
|
|
213
284
|
benefitRef: string;
|
|
214
285
|
autoSelected: boolean;
|
|
215
286
|
description?: string | undefined;
|
|
216
|
-
kind?: "
|
|
287
|
+
kind?: "points" | "discount" | "coupon" | "other" | undefined;
|
|
217
288
|
discountText?: string | undefined;
|
|
218
289
|
exclusiveWithKinds?: ("points" | "discount" | "coupon")[] | undefined;
|
|
219
290
|
}, {
|
|
@@ -221,7 +292,7 @@ declare const parkingCards: {
|
|
|
221
292
|
benefitRef: string;
|
|
222
293
|
autoSelected: boolean;
|
|
223
294
|
description?: string | undefined;
|
|
224
|
-
kind?: "
|
|
295
|
+
kind?: "points" | "discount" | "coupon" | "other" | undefined;
|
|
225
296
|
discountText?: string | undefined;
|
|
226
297
|
exclusiveWithKinds?: ("points" | "discount" | "coupon")[] | undefined;
|
|
227
298
|
}>, "many">;
|
|
@@ -264,6 +335,7 @@ declare const parkingCards: {
|
|
|
264
335
|
orderNo: zod.ZodOptional<zod.ZodString>;
|
|
265
336
|
}, "strip", zod.ZodTypeAny, {
|
|
266
337
|
kind: "pay" | "unpaid";
|
|
338
|
+
parkingStoreId?: string | undefined;
|
|
267
339
|
orderInfo?: {
|
|
268
340
|
orderType: number;
|
|
269
341
|
parkingId: string;
|
|
@@ -275,10 +347,10 @@ declare const parkingCards: {
|
|
|
275
347
|
entranceTime?: string | undefined;
|
|
276
348
|
supportDiscount?: string | undefined;
|
|
277
349
|
} | undefined;
|
|
278
|
-
parkingStoreId?: string | undefined;
|
|
279
350
|
orderNo?: string | undefined;
|
|
280
351
|
}, {
|
|
281
352
|
kind: "pay" | "unpaid";
|
|
353
|
+
parkingStoreId?: string | undefined;
|
|
282
354
|
orderInfo?: {
|
|
283
355
|
orderType: number;
|
|
284
356
|
parkingId: string;
|
|
@@ -290,7 +362,6 @@ declare const parkingCards: {
|
|
|
290
362
|
entranceTime?: string | undefined;
|
|
291
363
|
supportDiscount?: string | undefined;
|
|
292
364
|
} | undefined;
|
|
293
|
-
parkingStoreId?: string | undefined;
|
|
294
365
|
orderNo?: string | undefined;
|
|
295
366
|
}>>;
|
|
296
367
|
settlement: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -298,19 +369,18 @@ declare const parkingCards: {
|
|
|
298
369
|
text: zod.ZodString;
|
|
299
370
|
}, "strip", zod.ZodTypeAny, {
|
|
300
371
|
text: string;
|
|
301
|
-
state: "
|
|
372
|
+
state: "paying" | "paid" | "failed";
|
|
302
373
|
}, {
|
|
303
374
|
text: string;
|
|
304
|
-
state: "
|
|
375
|
+
state: "paying" | "paid" | "failed";
|
|
305
376
|
}>>;
|
|
306
377
|
}, "strip", zod.ZodTypeAny, {
|
|
307
|
-
|
|
378
|
+
plateNo: string;
|
|
308
379
|
caveats: string[];
|
|
309
380
|
quoteRef: string;
|
|
310
|
-
plateNo: string;
|
|
311
381
|
feeItems: {
|
|
312
|
-
name: string;
|
|
313
382
|
amountText: string;
|
|
383
|
+
name: string;
|
|
314
384
|
}[];
|
|
315
385
|
totalText: string;
|
|
316
386
|
payableText: string;
|
|
@@ -324,17 +394,18 @@ declare const parkingCards: {
|
|
|
324
394
|
benefitRef: string;
|
|
325
395
|
autoSelected: boolean;
|
|
326
396
|
description?: string | undefined;
|
|
327
|
-
kind?: "
|
|
397
|
+
kind?: "points" | "discount" | "coupon" | "other" | undefined;
|
|
328
398
|
discountText?: string | undefined;
|
|
329
399
|
exclusiveWithKinds?: ("points" | "discount" | "coupon")[] | undefined;
|
|
330
400
|
}[];
|
|
331
|
-
|
|
332
|
-
durationText?: string | undefined;
|
|
333
|
-
discountText?: string | undefined;
|
|
401
|
+
revision: number;
|
|
334
402
|
membership?: {
|
|
335
|
-
state: "unknown" | "
|
|
403
|
+
state: "unknown" | "unauthenticated" | "active" | "not_enrolled" | "closed" | "unavailable";
|
|
336
404
|
availablePoints?: number | undefined;
|
|
337
405
|
} | undefined;
|
|
406
|
+
entryAtText?: string | undefined;
|
|
407
|
+
durationText?: string | undefined;
|
|
408
|
+
discountText?: string | undefined;
|
|
338
409
|
paymentOptions?: {
|
|
339
410
|
direct: {
|
|
340
411
|
benefitRefs: string[];
|
|
@@ -353,6 +424,7 @@ declare const parkingCards: {
|
|
|
353
424
|
} | undefined;
|
|
354
425
|
payHandoff?: {
|
|
355
426
|
kind: "pay" | "unpaid";
|
|
427
|
+
parkingStoreId?: string | undefined;
|
|
356
428
|
orderInfo?: {
|
|
357
429
|
orderType: number;
|
|
358
430
|
parkingId: string;
|
|
@@ -364,21 +436,19 @@ declare const parkingCards: {
|
|
|
364
436
|
entranceTime?: string | undefined;
|
|
365
437
|
supportDiscount?: string | undefined;
|
|
366
438
|
} | undefined;
|
|
367
|
-
parkingStoreId?: string | undefined;
|
|
368
439
|
orderNo?: string | undefined;
|
|
369
440
|
} | undefined;
|
|
370
441
|
settlement?: {
|
|
371
442
|
text: string;
|
|
372
|
-
state: "
|
|
443
|
+
state: "paying" | "paid" | "failed";
|
|
373
444
|
} | undefined;
|
|
374
445
|
}, {
|
|
375
|
-
|
|
446
|
+
plateNo: string;
|
|
376
447
|
caveats: string[];
|
|
377
448
|
quoteRef: string;
|
|
378
|
-
plateNo: string;
|
|
379
449
|
feeItems: {
|
|
380
|
-
name: string;
|
|
381
450
|
amountText: string;
|
|
451
|
+
name: string;
|
|
382
452
|
}[];
|
|
383
453
|
totalText: string;
|
|
384
454
|
payableText: string;
|
|
@@ -392,17 +462,18 @@ declare const parkingCards: {
|
|
|
392
462
|
benefitRef: string;
|
|
393
463
|
autoSelected: boolean;
|
|
394
464
|
description?: string | undefined;
|
|
395
|
-
kind?: "
|
|
465
|
+
kind?: "points" | "discount" | "coupon" | "other" | undefined;
|
|
396
466
|
discountText?: string | undefined;
|
|
397
467
|
exclusiveWithKinds?: ("points" | "discount" | "coupon")[] | undefined;
|
|
398
468
|
}[];
|
|
399
|
-
|
|
400
|
-
durationText?: string | undefined;
|
|
401
|
-
discountText?: string | undefined;
|
|
469
|
+
revision: number;
|
|
402
470
|
membership?: {
|
|
403
|
-
state: "unknown" | "
|
|
471
|
+
state: "unknown" | "unauthenticated" | "active" | "not_enrolled" | "closed" | "unavailable";
|
|
404
472
|
availablePoints?: number | undefined;
|
|
405
473
|
} | undefined;
|
|
474
|
+
entryAtText?: string | undefined;
|
|
475
|
+
durationText?: string | undefined;
|
|
476
|
+
discountText?: string | undefined;
|
|
406
477
|
paymentOptions?: {
|
|
407
478
|
direct: {
|
|
408
479
|
benefitRefs: string[];
|
|
@@ -421,6 +492,7 @@ declare const parkingCards: {
|
|
|
421
492
|
} | undefined;
|
|
422
493
|
payHandoff?: {
|
|
423
494
|
kind: "pay" | "unpaid";
|
|
495
|
+
parkingStoreId?: string | undefined;
|
|
424
496
|
orderInfo?: {
|
|
425
497
|
orderType: number;
|
|
426
498
|
parkingId: string;
|
|
@@ -432,12 +504,11 @@ declare const parkingCards: {
|
|
|
432
504
|
entranceTime?: string | undefined;
|
|
433
505
|
supportDiscount?: string | undefined;
|
|
434
506
|
} | undefined;
|
|
435
|
-
parkingStoreId?: string | undefined;
|
|
436
507
|
orderNo?: string | undefined;
|
|
437
508
|
} | undefined;
|
|
438
509
|
settlement?: {
|
|
439
510
|
text: string;
|
|
440
|
-
state: "
|
|
511
|
+
state: "paying" | "paid" | "failed";
|
|
441
512
|
} | undefined;
|
|
442
513
|
}>>;
|
|
443
514
|
readonly 'parking-payment-result': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
|
|
@@ -460,28 +531,28 @@ declare const parkingCards: {
|
|
|
460
531
|
}>, "many">>;
|
|
461
532
|
}, "strip", zod.ZodTypeAny, {
|
|
462
533
|
message: string;
|
|
463
|
-
status: "
|
|
464
|
-
paymentRef: string;
|
|
534
|
+
status: "PAID" | "UNKNOWN" | "CANCELLED";
|
|
465
535
|
plateNo: string;
|
|
536
|
+
paymentRef: string;
|
|
466
537
|
amountText?: string | undefined;
|
|
467
538
|
retryable?: boolean | undefined;
|
|
468
|
-
leaveNotice?: string | undefined;
|
|
469
539
|
details?: {
|
|
470
540
|
value: string;
|
|
471
541
|
label: string;
|
|
472
542
|
}[] | undefined;
|
|
543
|
+
leaveNotice?: string | undefined;
|
|
473
544
|
}, {
|
|
474
545
|
message: string;
|
|
475
|
-
status: "
|
|
476
|
-
paymentRef: string;
|
|
546
|
+
status: "PAID" | "UNKNOWN" | "CANCELLED";
|
|
477
547
|
plateNo: string;
|
|
548
|
+
paymentRef: string;
|
|
478
549
|
amountText?: string | undefined;
|
|
479
550
|
retryable?: boolean | undefined;
|
|
480
|
-
leaveNotice?: string | undefined;
|
|
481
551
|
details?: {
|
|
482
552
|
value: string;
|
|
483
553
|
label: string;
|
|
484
554
|
}[] | undefined;
|
|
555
|
+
leaveNotice?: string | undefined;
|
|
485
556
|
}>>;
|
|
486
557
|
readonly 'parking-payment-records': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
|
|
487
558
|
items: zod.ZodArray<zod.ZodObject<{
|
|
@@ -500,30 +571,30 @@ declare const parkingCards: {
|
|
|
500
571
|
invoiceEligible: zod.ZodOptional<zod.ZodBoolean>;
|
|
501
572
|
invoiceIssued: zod.ZodOptional<zod.ZodBoolean>;
|
|
502
573
|
}, "strip", zod.ZodTypeAny, {
|
|
503
|
-
status: "
|
|
574
|
+
status: "PAID" | "REFUNDED" | "CLOSED" | "UNKNOWN";
|
|
504
575
|
plateNo: string;
|
|
505
576
|
amountText: string;
|
|
506
577
|
recordRef: string;
|
|
507
578
|
paidAtText: string;
|
|
508
579
|
statusText?: string | undefined;
|
|
509
|
-
entryAtText?: string | undefined;
|
|
510
580
|
parkName?: string | undefined;
|
|
511
581
|
plazaName?: string | undefined;
|
|
582
|
+
entryAtText?: string | undefined;
|
|
512
583
|
exitAtText?: string | undefined;
|
|
513
584
|
payOrderNoMasked?: string | undefined;
|
|
514
585
|
orderCompleted?: boolean | undefined;
|
|
515
586
|
invoiceEligible?: boolean | undefined;
|
|
516
587
|
invoiceIssued?: boolean | undefined;
|
|
517
588
|
}, {
|
|
518
|
-
status: "
|
|
589
|
+
status: "PAID" | "REFUNDED" | "CLOSED" | "UNKNOWN";
|
|
519
590
|
plateNo: string;
|
|
520
591
|
amountText: string;
|
|
521
592
|
recordRef: string;
|
|
522
593
|
paidAtText: string;
|
|
523
594
|
statusText?: string | undefined;
|
|
524
|
-
entryAtText?: string | undefined;
|
|
525
595
|
parkName?: string | undefined;
|
|
526
596
|
plazaName?: string | undefined;
|
|
597
|
+
entryAtText?: string | undefined;
|
|
527
598
|
exitAtText?: string | undefined;
|
|
528
599
|
payOrderNoMasked?: string | undefined;
|
|
529
600
|
orderCompleted?: boolean | undefined;
|
|
@@ -535,119 +606,48 @@ declare const parkingCards: {
|
|
|
535
606
|
caveats: zod.ZodArray<zod.ZodString, "many">;
|
|
536
607
|
message: zod.ZodOptional<zod.ZodString>;
|
|
537
608
|
}, "strip", zod.ZodTypeAny, {
|
|
538
|
-
total: number;
|
|
539
|
-
hasMore: boolean;
|
|
540
609
|
items: {
|
|
541
|
-
status: "
|
|
610
|
+
status: "PAID" | "REFUNDED" | "CLOSED" | "UNKNOWN";
|
|
542
611
|
plateNo: string;
|
|
543
612
|
amountText: string;
|
|
544
613
|
recordRef: string;
|
|
545
614
|
paidAtText: string;
|
|
546
615
|
statusText?: string | undefined;
|
|
547
|
-
entryAtText?: string | undefined;
|
|
548
616
|
parkName?: string | undefined;
|
|
549
617
|
plazaName?: string | undefined;
|
|
618
|
+
entryAtText?: string | undefined;
|
|
550
619
|
exitAtText?: string | undefined;
|
|
551
620
|
payOrderNoMasked?: string | undefined;
|
|
552
621
|
orderCompleted?: boolean | undefined;
|
|
553
622
|
invoiceEligible?: boolean | undefined;
|
|
554
623
|
invoiceIssued?: boolean | undefined;
|
|
555
624
|
}[];
|
|
625
|
+
total: number;
|
|
626
|
+
hasMore: boolean;
|
|
556
627
|
caveats: string[];
|
|
557
628
|
message?: string | undefined;
|
|
558
629
|
}, {
|
|
559
|
-
total: number;
|
|
560
|
-
hasMore: boolean;
|
|
561
630
|
items: {
|
|
562
|
-
status: "
|
|
631
|
+
status: "PAID" | "REFUNDED" | "CLOSED" | "UNKNOWN";
|
|
563
632
|
plateNo: string;
|
|
564
633
|
amountText: string;
|
|
565
634
|
recordRef: string;
|
|
566
635
|
paidAtText: string;
|
|
567
636
|
statusText?: string | undefined;
|
|
568
|
-
entryAtText?: string | undefined;
|
|
569
637
|
parkName?: string | undefined;
|
|
570
638
|
plazaName?: string | undefined;
|
|
639
|
+
entryAtText?: string | undefined;
|
|
571
640
|
exitAtText?: string | undefined;
|
|
572
641
|
payOrderNoMasked?: string | undefined;
|
|
573
642
|
orderCompleted?: boolean | undefined;
|
|
574
643
|
invoiceEligible?: boolean | undefined;
|
|
575
644
|
invoiceIssued?: boolean | undefined;
|
|
576
645
|
}[];
|
|
646
|
+
total: number;
|
|
647
|
+
hasMore: boolean;
|
|
577
648
|
caveats: string[];
|
|
578
649
|
message?: string | undefined;
|
|
579
650
|
}>>;
|
|
580
|
-
readonly 'parking-vehicle-management': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
|
|
581
|
-
bound: zod.ZodArray<zod.ZodObject<{
|
|
582
|
-
vehicleRef: zod.ZodString;
|
|
583
|
-
plateNo: zod.ZodString;
|
|
584
|
-
parked: zod.ZodOptional<zod.ZodBoolean>;
|
|
585
|
-
}, "strip", zod.ZodTypeAny, {
|
|
586
|
-
plateNo: string;
|
|
587
|
-
vehicleRef: string;
|
|
588
|
-
parked?: boolean | undefined;
|
|
589
|
-
}, {
|
|
590
|
-
plateNo: string;
|
|
591
|
-
vehicleRef: string;
|
|
592
|
-
parked?: boolean | undefined;
|
|
593
|
-
}>, "many">;
|
|
594
|
-
message: zod.ZodOptional<zod.ZodString>;
|
|
595
|
-
membership: zod.ZodOptional<zod.ZodObject<{
|
|
596
|
-
state: zod.ZodEnum<["unauthenticated", "unknown", "active", "not_enrolled", "closed", "unavailable"]>;
|
|
597
|
-
}, "strip", zod.ZodTypeAny, {
|
|
598
|
-
state: "unknown" | "unavailable" | "unauthenticated" | "active" | "not_enrolled" | "closed";
|
|
599
|
-
}, {
|
|
600
|
-
state: "unknown" | "unavailable" | "unauthenticated" | "active" | "not_enrolled" | "closed";
|
|
601
|
-
}>>;
|
|
602
|
-
}, "strip", zod.ZodTypeAny, {
|
|
603
|
-
bound: {
|
|
604
|
-
plateNo: string;
|
|
605
|
-
vehicleRef: string;
|
|
606
|
-
parked?: boolean | undefined;
|
|
607
|
-
}[];
|
|
608
|
-
message?: string | undefined;
|
|
609
|
-
membership?: {
|
|
610
|
-
state: "unknown" | "unavailable" | "unauthenticated" | "active" | "not_enrolled" | "closed";
|
|
611
|
-
} | undefined;
|
|
612
|
-
}, {
|
|
613
|
-
bound: {
|
|
614
|
-
plateNo: string;
|
|
615
|
-
vehicleRef: string;
|
|
616
|
-
parked?: boolean | undefined;
|
|
617
|
-
}[];
|
|
618
|
-
message?: string | undefined;
|
|
619
|
-
membership?: {
|
|
620
|
-
state: "unknown" | "unavailable" | "unauthenticated" | "active" | "not_enrolled" | "closed";
|
|
621
|
-
} | undefined;
|
|
622
|
-
}>>;
|
|
623
|
-
readonly 'parking-info': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
|
|
624
|
-
kind: zod.ZodEnum<["chargeRules", "benefitPolicy", "vehicleLocation"]>;
|
|
625
|
-
title: zod.ZodString;
|
|
626
|
-
entries: zod.ZodArray<zod.ZodObject<{
|
|
627
|
-
label: zod.ZodString;
|
|
628
|
-
value: zod.ZodString;
|
|
629
|
-
}, "strip", zod.ZodTypeAny, {
|
|
630
|
-
value: string;
|
|
631
|
-
label: string;
|
|
632
|
-
}, {
|
|
633
|
-
value: string;
|
|
634
|
-
label: string;
|
|
635
|
-
}>, "many">;
|
|
636
|
-
}, "strip", zod.ZodTypeAny, {
|
|
637
|
-
entries: {
|
|
638
|
-
value: string;
|
|
639
|
-
label: string;
|
|
640
|
-
}[];
|
|
641
|
-
kind: "chargeRules" | "benefitPolicy" | "vehicleLocation";
|
|
642
|
-
title: string;
|
|
643
|
-
}, {
|
|
644
|
-
entries: {
|
|
645
|
-
value: string;
|
|
646
|
-
label: string;
|
|
647
|
-
}[];
|
|
648
|
-
kind: "chargeRules" | "benefitPolicy" | "vehicleLocation";
|
|
649
|
-
title: string;
|
|
650
|
-
}>>;
|
|
651
651
|
};
|
|
652
652
|
|
|
653
653
|
/** 模块注册入口:自注册闭环(与客户端 clientModule 对称) */
|
|
@@ -665,11 +665,11 @@ declare const serverModule: {
|
|
|
665
665
|
name: zod.ZodString;
|
|
666
666
|
amountText: zod.ZodString;
|
|
667
667
|
}, "strip", zod.ZodTypeAny, {
|
|
668
|
-
name: string;
|
|
669
668
|
amountText: string;
|
|
670
|
-
}, {
|
|
671
669
|
name: string;
|
|
670
|
+
}, {
|
|
672
671
|
amountText: string;
|
|
672
|
+
name: string;
|
|
673
673
|
}>, "many">;
|
|
674
674
|
totalText: zod.ZodString;
|
|
675
675
|
discountText: zod.ZodOptional<zod.ZodString>;
|
|
@@ -678,10 +678,10 @@ declare const serverModule: {
|
|
|
678
678
|
state: zod.ZodEnum<["unauthenticated", "unknown", "active", "not_enrolled", "closed", "unavailable"]>;
|
|
679
679
|
availablePoints: zod.ZodOptional<zod.ZodNumber>;
|
|
680
680
|
}, "strip", zod.ZodTypeAny, {
|
|
681
|
-
state: "unknown" | "
|
|
681
|
+
state: "unknown" | "unauthenticated" | "active" | "not_enrolled" | "closed" | "unavailable";
|
|
682
682
|
availablePoints?: number | undefined;
|
|
683
683
|
}, {
|
|
684
|
-
state: "unknown" | "
|
|
684
|
+
state: "unknown" | "unauthenticated" | "active" | "not_enrolled" | "closed" | "unavailable";
|
|
685
685
|
availablePoints?: number | undefined;
|
|
686
686
|
}>>;
|
|
687
687
|
paymentOptions: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -780,7 +780,7 @@ declare const serverModule: {
|
|
|
780
780
|
benefitRef: string;
|
|
781
781
|
autoSelected: boolean;
|
|
782
782
|
description?: string | undefined;
|
|
783
|
-
kind?: "
|
|
783
|
+
kind?: "points" | "discount" | "coupon" | "other" | undefined;
|
|
784
784
|
discountText?: string | undefined;
|
|
785
785
|
exclusiveWithKinds?: ("points" | "discount" | "coupon")[] | undefined;
|
|
786
786
|
}, {
|
|
@@ -788,7 +788,7 @@ declare const serverModule: {
|
|
|
788
788
|
benefitRef: string;
|
|
789
789
|
autoSelected: boolean;
|
|
790
790
|
description?: string | undefined;
|
|
791
|
-
kind?: "
|
|
791
|
+
kind?: "points" | "discount" | "coupon" | "other" | undefined;
|
|
792
792
|
discountText?: string | undefined;
|
|
793
793
|
exclusiveWithKinds?: ("points" | "discount" | "coupon")[] | undefined;
|
|
794
794
|
}>, "many">;
|
|
@@ -831,6 +831,7 @@ declare const serverModule: {
|
|
|
831
831
|
orderNo: zod.ZodOptional<zod.ZodString>;
|
|
832
832
|
}, "strip", zod.ZodTypeAny, {
|
|
833
833
|
kind: "pay" | "unpaid";
|
|
834
|
+
parkingStoreId?: string | undefined;
|
|
834
835
|
orderInfo?: {
|
|
835
836
|
orderType: number;
|
|
836
837
|
parkingId: string;
|
|
@@ -842,10 +843,10 @@ declare const serverModule: {
|
|
|
842
843
|
entranceTime?: string | undefined;
|
|
843
844
|
supportDiscount?: string | undefined;
|
|
844
845
|
} | undefined;
|
|
845
|
-
parkingStoreId?: string | undefined;
|
|
846
846
|
orderNo?: string | undefined;
|
|
847
847
|
}, {
|
|
848
848
|
kind: "pay" | "unpaid";
|
|
849
|
+
parkingStoreId?: string | undefined;
|
|
849
850
|
orderInfo?: {
|
|
850
851
|
orderType: number;
|
|
851
852
|
parkingId: string;
|
|
@@ -857,7 +858,6 @@ declare const serverModule: {
|
|
|
857
858
|
entranceTime?: string | undefined;
|
|
858
859
|
supportDiscount?: string | undefined;
|
|
859
860
|
} | undefined;
|
|
860
|
-
parkingStoreId?: string | undefined;
|
|
861
861
|
orderNo?: string | undefined;
|
|
862
862
|
}>>;
|
|
863
863
|
settlement: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -865,19 +865,18 @@ declare const serverModule: {
|
|
|
865
865
|
text: zod.ZodString;
|
|
866
866
|
}, "strip", zod.ZodTypeAny, {
|
|
867
867
|
text: string;
|
|
868
|
-
state: "
|
|
868
|
+
state: "paying" | "paid" | "failed";
|
|
869
869
|
}, {
|
|
870
870
|
text: string;
|
|
871
|
-
state: "
|
|
871
|
+
state: "paying" | "paid" | "failed";
|
|
872
872
|
}>>;
|
|
873
873
|
}, "strip", zod.ZodTypeAny, {
|
|
874
|
-
|
|
874
|
+
plateNo: string;
|
|
875
875
|
caveats: string[];
|
|
876
876
|
quoteRef: string;
|
|
877
|
-
plateNo: string;
|
|
878
877
|
feeItems: {
|
|
879
|
-
name: string;
|
|
880
878
|
amountText: string;
|
|
879
|
+
name: string;
|
|
881
880
|
}[];
|
|
882
881
|
totalText: string;
|
|
883
882
|
payableText: string;
|
|
@@ -891,17 +890,18 @@ declare const serverModule: {
|
|
|
891
890
|
benefitRef: string;
|
|
892
891
|
autoSelected: boolean;
|
|
893
892
|
description?: string | undefined;
|
|
894
|
-
kind?: "
|
|
893
|
+
kind?: "points" | "discount" | "coupon" | "other" | undefined;
|
|
895
894
|
discountText?: string | undefined;
|
|
896
895
|
exclusiveWithKinds?: ("points" | "discount" | "coupon")[] | undefined;
|
|
897
896
|
}[];
|
|
898
|
-
|
|
899
|
-
durationText?: string | undefined;
|
|
900
|
-
discountText?: string | undefined;
|
|
897
|
+
revision: number;
|
|
901
898
|
membership?: {
|
|
902
|
-
state: "unknown" | "
|
|
899
|
+
state: "unknown" | "unauthenticated" | "active" | "not_enrolled" | "closed" | "unavailable";
|
|
903
900
|
availablePoints?: number | undefined;
|
|
904
901
|
} | undefined;
|
|
902
|
+
entryAtText?: string | undefined;
|
|
903
|
+
durationText?: string | undefined;
|
|
904
|
+
discountText?: string | undefined;
|
|
905
905
|
paymentOptions?: {
|
|
906
906
|
direct: {
|
|
907
907
|
benefitRefs: string[];
|
|
@@ -920,6 +920,7 @@ declare const serverModule: {
|
|
|
920
920
|
} | undefined;
|
|
921
921
|
payHandoff?: {
|
|
922
922
|
kind: "pay" | "unpaid";
|
|
923
|
+
parkingStoreId?: string | undefined;
|
|
923
924
|
orderInfo?: {
|
|
924
925
|
orderType: number;
|
|
925
926
|
parkingId: string;
|
|
@@ -931,21 +932,19 @@ declare const serverModule: {
|
|
|
931
932
|
entranceTime?: string | undefined;
|
|
932
933
|
supportDiscount?: string | undefined;
|
|
933
934
|
} | undefined;
|
|
934
|
-
parkingStoreId?: string | undefined;
|
|
935
935
|
orderNo?: string | undefined;
|
|
936
936
|
} | undefined;
|
|
937
937
|
settlement?: {
|
|
938
938
|
text: string;
|
|
939
|
-
state: "
|
|
939
|
+
state: "paying" | "paid" | "failed";
|
|
940
940
|
} | undefined;
|
|
941
941
|
}, {
|
|
942
|
-
|
|
942
|
+
plateNo: string;
|
|
943
943
|
caveats: string[];
|
|
944
944
|
quoteRef: string;
|
|
945
|
-
plateNo: string;
|
|
946
945
|
feeItems: {
|
|
947
|
-
name: string;
|
|
948
946
|
amountText: string;
|
|
947
|
+
name: string;
|
|
949
948
|
}[];
|
|
950
949
|
totalText: string;
|
|
951
950
|
payableText: string;
|
|
@@ -959,17 +958,18 @@ declare const serverModule: {
|
|
|
959
958
|
benefitRef: string;
|
|
960
959
|
autoSelected: boolean;
|
|
961
960
|
description?: string | undefined;
|
|
962
|
-
kind?: "
|
|
961
|
+
kind?: "points" | "discount" | "coupon" | "other" | undefined;
|
|
963
962
|
discountText?: string | undefined;
|
|
964
963
|
exclusiveWithKinds?: ("points" | "discount" | "coupon")[] | undefined;
|
|
965
964
|
}[];
|
|
966
|
-
|
|
967
|
-
durationText?: string | undefined;
|
|
968
|
-
discountText?: string | undefined;
|
|
965
|
+
revision: number;
|
|
969
966
|
membership?: {
|
|
970
|
-
state: "unknown" | "
|
|
967
|
+
state: "unknown" | "unauthenticated" | "active" | "not_enrolled" | "closed" | "unavailable";
|
|
971
968
|
availablePoints?: number | undefined;
|
|
972
969
|
} | undefined;
|
|
970
|
+
entryAtText?: string | undefined;
|
|
971
|
+
durationText?: string | undefined;
|
|
972
|
+
discountText?: string | undefined;
|
|
973
973
|
paymentOptions?: {
|
|
974
974
|
direct: {
|
|
975
975
|
benefitRefs: string[];
|
|
@@ -988,6 +988,7 @@ declare const serverModule: {
|
|
|
988
988
|
} | undefined;
|
|
989
989
|
payHandoff?: {
|
|
990
990
|
kind: "pay" | "unpaid";
|
|
991
|
+
parkingStoreId?: string | undefined;
|
|
991
992
|
orderInfo?: {
|
|
992
993
|
orderType: number;
|
|
993
994
|
parkingId: string;
|
|
@@ -999,12 +1000,11 @@ declare const serverModule: {
|
|
|
999
1000
|
entranceTime?: string | undefined;
|
|
1000
1001
|
supportDiscount?: string | undefined;
|
|
1001
1002
|
} | undefined;
|
|
1002
|
-
parkingStoreId?: string | undefined;
|
|
1003
1003
|
orderNo?: string | undefined;
|
|
1004
1004
|
} | undefined;
|
|
1005
1005
|
settlement?: {
|
|
1006
1006
|
text: string;
|
|
1007
|
-
state: "
|
|
1007
|
+
state: "paying" | "paid" | "failed";
|
|
1008
1008
|
} | undefined;
|
|
1009
1009
|
}>>;
|
|
1010
1010
|
readonly 'parking-payment-result': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
|
|
@@ -1027,28 +1027,28 @@ declare const serverModule: {
|
|
|
1027
1027
|
}>, "many">>;
|
|
1028
1028
|
}, "strip", zod.ZodTypeAny, {
|
|
1029
1029
|
message: string;
|
|
1030
|
-
status: "
|
|
1031
|
-
paymentRef: string;
|
|
1030
|
+
status: "PAID" | "UNKNOWN" | "CANCELLED";
|
|
1032
1031
|
plateNo: string;
|
|
1032
|
+
paymentRef: string;
|
|
1033
1033
|
amountText?: string | undefined;
|
|
1034
1034
|
retryable?: boolean | undefined;
|
|
1035
|
-
leaveNotice?: string | undefined;
|
|
1036
1035
|
details?: {
|
|
1037
1036
|
value: string;
|
|
1038
1037
|
label: string;
|
|
1039
1038
|
}[] | undefined;
|
|
1039
|
+
leaveNotice?: string | undefined;
|
|
1040
1040
|
}, {
|
|
1041
1041
|
message: string;
|
|
1042
|
-
status: "
|
|
1043
|
-
paymentRef: string;
|
|
1042
|
+
status: "PAID" | "UNKNOWN" | "CANCELLED";
|
|
1044
1043
|
plateNo: string;
|
|
1044
|
+
paymentRef: string;
|
|
1045
1045
|
amountText?: string | undefined;
|
|
1046
1046
|
retryable?: boolean | undefined;
|
|
1047
|
-
leaveNotice?: string | undefined;
|
|
1048
1047
|
details?: {
|
|
1049
1048
|
value: string;
|
|
1050
1049
|
label: string;
|
|
1051
1050
|
}[] | undefined;
|
|
1051
|
+
leaveNotice?: string | undefined;
|
|
1052
1052
|
}>>;
|
|
1053
1053
|
readonly 'parking-payment-records': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
|
|
1054
1054
|
items: zod.ZodArray<zod.ZodObject<{
|
|
@@ -1067,30 +1067,30 @@ declare const serverModule: {
|
|
|
1067
1067
|
invoiceEligible: zod.ZodOptional<zod.ZodBoolean>;
|
|
1068
1068
|
invoiceIssued: zod.ZodOptional<zod.ZodBoolean>;
|
|
1069
1069
|
}, "strip", zod.ZodTypeAny, {
|
|
1070
|
-
status: "
|
|
1070
|
+
status: "PAID" | "REFUNDED" | "CLOSED" | "UNKNOWN";
|
|
1071
1071
|
plateNo: string;
|
|
1072
1072
|
amountText: string;
|
|
1073
1073
|
recordRef: string;
|
|
1074
1074
|
paidAtText: string;
|
|
1075
1075
|
statusText?: string | undefined;
|
|
1076
|
-
entryAtText?: string | undefined;
|
|
1077
1076
|
parkName?: string | undefined;
|
|
1078
1077
|
plazaName?: string | undefined;
|
|
1078
|
+
entryAtText?: string | undefined;
|
|
1079
1079
|
exitAtText?: string | undefined;
|
|
1080
1080
|
payOrderNoMasked?: string | undefined;
|
|
1081
1081
|
orderCompleted?: boolean | undefined;
|
|
1082
1082
|
invoiceEligible?: boolean | undefined;
|
|
1083
1083
|
invoiceIssued?: boolean | undefined;
|
|
1084
1084
|
}, {
|
|
1085
|
-
status: "
|
|
1085
|
+
status: "PAID" | "REFUNDED" | "CLOSED" | "UNKNOWN";
|
|
1086
1086
|
plateNo: string;
|
|
1087
1087
|
amountText: string;
|
|
1088
1088
|
recordRef: string;
|
|
1089
1089
|
paidAtText: string;
|
|
1090
1090
|
statusText?: string | undefined;
|
|
1091
|
-
entryAtText?: string | undefined;
|
|
1092
1091
|
parkName?: string | undefined;
|
|
1093
1092
|
plazaName?: string | undefined;
|
|
1093
|
+
entryAtText?: string | undefined;
|
|
1094
1094
|
exitAtText?: string | undefined;
|
|
1095
1095
|
payOrderNoMasked?: string | undefined;
|
|
1096
1096
|
orderCompleted?: boolean | undefined;
|
|
@@ -1102,45 +1102,45 @@ declare const serverModule: {
|
|
|
1102
1102
|
caveats: zod.ZodArray<zod.ZodString, "many">;
|
|
1103
1103
|
message: zod.ZodOptional<zod.ZodString>;
|
|
1104
1104
|
}, "strip", zod.ZodTypeAny, {
|
|
1105
|
-
total: number;
|
|
1106
|
-
hasMore: boolean;
|
|
1107
1105
|
items: {
|
|
1108
|
-
status: "
|
|
1106
|
+
status: "PAID" | "REFUNDED" | "CLOSED" | "UNKNOWN";
|
|
1109
1107
|
plateNo: string;
|
|
1110
1108
|
amountText: string;
|
|
1111
1109
|
recordRef: string;
|
|
1112
1110
|
paidAtText: string;
|
|
1113
1111
|
statusText?: string | undefined;
|
|
1114
|
-
entryAtText?: string | undefined;
|
|
1115
1112
|
parkName?: string | undefined;
|
|
1116
1113
|
plazaName?: string | undefined;
|
|
1114
|
+
entryAtText?: string | undefined;
|
|
1117
1115
|
exitAtText?: string | undefined;
|
|
1118
1116
|
payOrderNoMasked?: string | undefined;
|
|
1119
1117
|
orderCompleted?: boolean | undefined;
|
|
1120
1118
|
invoiceEligible?: boolean | undefined;
|
|
1121
1119
|
invoiceIssued?: boolean | undefined;
|
|
1122
1120
|
}[];
|
|
1121
|
+
total: number;
|
|
1122
|
+
hasMore: boolean;
|
|
1123
1123
|
caveats: string[];
|
|
1124
1124
|
message?: string | undefined;
|
|
1125
1125
|
}, {
|
|
1126
|
-
total: number;
|
|
1127
|
-
hasMore: boolean;
|
|
1128
1126
|
items: {
|
|
1129
|
-
status: "
|
|
1127
|
+
status: "PAID" | "REFUNDED" | "CLOSED" | "UNKNOWN";
|
|
1130
1128
|
plateNo: string;
|
|
1131
1129
|
amountText: string;
|
|
1132
1130
|
recordRef: string;
|
|
1133
1131
|
paidAtText: string;
|
|
1134
1132
|
statusText?: string | undefined;
|
|
1135
|
-
entryAtText?: string | undefined;
|
|
1136
1133
|
parkName?: string | undefined;
|
|
1137
1134
|
plazaName?: string | undefined;
|
|
1135
|
+
entryAtText?: string | undefined;
|
|
1138
1136
|
exitAtText?: string | undefined;
|
|
1139
1137
|
payOrderNoMasked?: string | undefined;
|
|
1140
1138
|
orderCompleted?: boolean | undefined;
|
|
1141
1139
|
invoiceEligible?: boolean | undefined;
|
|
1142
1140
|
invoiceIssued?: boolean | undefined;
|
|
1143
1141
|
}[];
|
|
1142
|
+
total: number;
|
|
1143
|
+
hasMore: boolean;
|
|
1144
1144
|
caveats: string[];
|
|
1145
1145
|
message?: string | undefined;
|
|
1146
1146
|
}>>;
|
|
@@ -1162,9 +1162,9 @@ declare const serverModule: {
|
|
|
1162
1162
|
membership: zod.ZodOptional<zod.ZodObject<{
|
|
1163
1163
|
state: zod.ZodEnum<["unauthenticated", "unknown", "active", "not_enrolled", "closed", "unavailable"]>;
|
|
1164
1164
|
}, "strip", zod.ZodTypeAny, {
|
|
1165
|
-
state: "unknown" | "
|
|
1165
|
+
state: "unknown" | "unauthenticated" | "active" | "not_enrolled" | "closed" | "unavailable";
|
|
1166
1166
|
}, {
|
|
1167
|
-
state: "unknown" | "
|
|
1167
|
+
state: "unknown" | "unauthenticated" | "active" | "not_enrolled" | "closed" | "unavailable";
|
|
1168
1168
|
}>>;
|
|
1169
1169
|
}, "strip", zod.ZodTypeAny, {
|
|
1170
1170
|
bound: {
|
|
@@ -1174,7 +1174,7 @@ declare const serverModule: {
|
|
|
1174
1174
|
}[];
|
|
1175
1175
|
message?: string | undefined;
|
|
1176
1176
|
membership?: {
|
|
1177
|
-
state: "unknown" | "
|
|
1177
|
+
state: "unknown" | "unauthenticated" | "active" | "not_enrolled" | "closed" | "unavailable";
|
|
1178
1178
|
} | undefined;
|
|
1179
1179
|
}, {
|
|
1180
1180
|
bound: {
|
|
@@ -1184,7 +1184,7 @@ declare const serverModule: {
|
|
|
1184
1184
|
}[];
|
|
1185
1185
|
message?: string | undefined;
|
|
1186
1186
|
membership?: {
|
|
1187
|
-
state: "unknown" | "
|
|
1187
|
+
state: "unknown" | "unauthenticated" | "active" | "not_enrolled" | "closed" | "unavailable";
|
|
1188
1188
|
} | undefined;
|
|
1189
1189
|
}>>;
|
|
1190
1190
|
readonly 'parking-info': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
|