@tbox.cn/app-module-member 0.9.7 → 0.9.8
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/server/index.d.ts +140 -140
- package/package.json +5 -5
package/dist/server/index.d.ts
CHANGED
|
@@ -103,19 +103,19 @@ declare const memberCards: {
|
|
|
103
103
|
labelRef: zod.ZodString;
|
|
104
104
|
name: zod.ZodString;
|
|
105
105
|
}, "strip", zod.ZodTypeAny, {
|
|
106
|
-
name: string;
|
|
107
106
|
labelRef: string;
|
|
108
|
-
}, {
|
|
109
107
|
name: string;
|
|
108
|
+
}, {
|
|
110
109
|
labelRef: string;
|
|
110
|
+
name: string;
|
|
111
111
|
}>, "many">;
|
|
112
112
|
}, "strip", zod.ZodTypeAny, {
|
|
113
113
|
userId: string;
|
|
114
|
-
state: "unknown" | "active" | "not_enrolled" | "closed";
|
|
115
114
|
authState: "authenticated" | "unauthenticated";
|
|
115
|
+
state: "unknown" | "active" | "not_enrolled" | "closed";
|
|
116
116
|
labels: {
|
|
117
|
-
name: string;
|
|
118
117
|
labelRef: string;
|
|
118
|
+
name: string;
|
|
119
119
|
}[];
|
|
120
120
|
displayName?: string | undefined;
|
|
121
121
|
avatarUrl?: string | undefined;
|
|
@@ -124,11 +124,11 @@ declare const memberCards: {
|
|
|
124
124
|
registeredAt?: string | undefined;
|
|
125
125
|
}, {
|
|
126
126
|
userId: string;
|
|
127
|
-
state: "unknown" | "active" | "not_enrolled" | "closed";
|
|
128
127
|
authState: "authenticated" | "unauthenticated";
|
|
128
|
+
state: "unknown" | "active" | "not_enrolled" | "closed";
|
|
129
129
|
labels: {
|
|
130
|
-
name: string;
|
|
131
130
|
labelRef: string;
|
|
131
|
+
name: string;
|
|
132
132
|
}[];
|
|
133
133
|
displayName?: string | undefined;
|
|
134
134
|
avatarUrl?: string | undefined;
|
|
@@ -151,10 +151,10 @@ declare const memberCards: {
|
|
|
151
151
|
variant: zod.ZodEnum<["blue", "silver", "gold", "black"]>;
|
|
152
152
|
labelsEmbedded: zod.ZodOptional<zod.ZodBoolean>;
|
|
153
153
|
}, "strip", zod.ZodTypeAny, {
|
|
154
|
-
variant: "
|
|
154
|
+
variant: "blue" | "silver" | "gold" | "black";
|
|
155
155
|
labelsEmbedded?: boolean | undefined;
|
|
156
156
|
}, {
|
|
157
|
-
variant: "
|
|
157
|
+
variant: "blue" | "silver" | "gold" | "black";
|
|
158
158
|
labelsEmbedded?: boolean | undefined;
|
|
159
159
|
}>>;
|
|
160
160
|
progress: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -184,12 +184,12 @@ declare const memberCards: {
|
|
|
184
184
|
title: zod.ZodOptional<zod.ZodString>;
|
|
185
185
|
text: zod.ZodOptional<zod.ZodString>;
|
|
186
186
|
}, "strip", zod.ZodTypeAny, {
|
|
187
|
-
kind: "
|
|
187
|
+
kind: "miniapp" | "dialog" | "toast";
|
|
188
188
|
url?: string | undefined;
|
|
189
189
|
title?: string | undefined;
|
|
190
190
|
text?: string | undefined;
|
|
191
191
|
}, {
|
|
192
|
-
kind: "
|
|
192
|
+
kind: "miniapp" | "dialog" | "toast";
|
|
193
193
|
url?: string | undefined;
|
|
194
194
|
title?: string | undefined;
|
|
195
195
|
text?: string | undefined;
|
|
@@ -197,25 +197,25 @@ declare const memberCards: {
|
|
|
197
197
|
}, "strip", zod.ZodTypeAny, {
|
|
198
198
|
name: string;
|
|
199
199
|
benefitRef: string;
|
|
200
|
+
iconUrl?: string | undefined;
|
|
200
201
|
description?: string | undefined;
|
|
201
202
|
action?: {
|
|
202
|
-
kind: "
|
|
203
|
+
kind: "miniapp" | "dialog" | "toast";
|
|
203
204
|
url?: string | undefined;
|
|
204
205
|
title?: string | undefined;
|
|
205
206
|
text?: string | undefined;
|
|
206
207
|
} | undefined;
|
|
207
|
-
iconUrl?: string | undefined;
|
|
208
208
|
}, {
|
|
209
209
|
name: string;
|
|
210
210
|
benefitRef: string;
|
|
211
|
+
iconUrl?: string | undefined;
|
|
211
212
|
description?: string | undefined;
|
|
212
213
|
action?: {
|
|
213
|
-
kind: "
|
|
214
|
+
kind: "miniapp" | "dialog" | "toast";
|
|
214
215
|
url?: string | undefined;
|
|
215
216
|
title?: string | undefined;
|
|
216
217
|
text?: string | undefined;
|
|
217
218
|
} | undefined;
|
|
218
|
-
iconUrl?: string | undefined;
|
|
219
219
|
}>, "many">>;
|
|
220
220
|
preferencePrompts: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
221
221
|
value: zod.ZodEnum<["我常来买衣服", "我常带娃来玩", "我常来吃美食"]>;
|
|
@@ -228,20 +228,20 @@ declare const memberCards: {
|
|
|
228
228
|
query: string;
|
|
229
229
|
}>, "many">>;
|
|
230
230
|
}, "strip", zod.ZodTypeAny, {
|
|
231
|
-
status: "unknown" | "active" | "inactive" | "frozen" | "expired";
|
|
232
231
|
userId: string;
|
|
232
|
+
status: "unknown" | "active" | "inactive" | "frozen" | "expired";
|
|
233
233
|
cardRef: string;
|
|
234
234
|
cardDisplay: string;
|
|
235
235
|
availablePoints: number;
|
|
236
|
-
presentation?: {
|
|
237
|
-
variant: "silver" | "gold" | "blue" | "black";
|
|
238
|
-
labelsEmbedded?: boolean | undefined;
|
|
239
|
-
} | undefined;
|
|
240
236
|
levelName?: string | undefined;
|
|
241
237
|
cardImageUrl?: string | undefined;
|
|
242
238
|
pointsRuleImageUrl?: string | undefined;
|
|
243
239
|
pointsRuleContent?: string | undefined;
|
|
244
240
|
pointsUrl?: string | undefined;
|
|
241
|
+
presentation?: {
|
|
242
|
+
variant: "blue" | "silver" | "gold" | "black";
|
|
243
|
+
labelsEmbedded?: boolean | undefined;
|
|
244
|
+
} | undefined;
|
|
245
245
|
progress?: {
|
|
246
246
|
message: string;
|
|
247
247
|
daySpentCents: number;
|
|
@@ -251,34 +251,34 @@ declare const memberCards: {
|
|
|
251
251
|
benefits?: {
|
|
252
252
|
name: string;
|
|
253
253
|
benefitRef: string;
|
|
254
|
+
iconUrl?: string | undefined;
|
|
254
255
|
description?: string | undefined;
|
|
255
256
|
action?: {
|
|
256
|
-
kind: "
|
|
257
|
+
kind: "miniapp" | "dialog" | "toast";
|
|
257
258
|
url?: string | undefined;
|
|
258
259
|
title?: string | undefined;
|
|
259
260
|
text?: string | undefined;
|
|
260
261
|
} | undefined;
|
|
261
|
-
iconUrl?: string | undefined;
|
|
262
262
|
}[] | undefined;
|
|
263
263
|
preferencePrompts?: {
|
|
264
264
|
value: "我常来买衣服" | "我常带娃来玩" | "我常来吃美食";
|
|
265
265
|
query: string;
|
|
266
266
|
}[] | undefined;
|
|
267
267
|
}, {
|
|
268
|
-
status: "unknown" | "active" | "inactive" | "frozen" | "expired";
|
|
269
268
|
userId: string;
|
|
269
|
+
status: "unknown" | "active" | "inactive" | "frozen" | "expired";
|
|
270
270
|
cardRef: string;
|
|
271
271
|
cardDisplay: string;
|
|
272
272
|
availablePoints: number;
|
|
273
|
-
presentation?: {
|
|
274
|
-
variant: "silver" | "gold" | "blue" | "black";
|
|
275
|
-
labelsEmbedded?: boolean | undefined;
|
|
276
|
-
} | undefined;
|
|
277
273
|
levelName?: string | undefined;
|
|
278
274
|
cardImageUrl?: string | undefined;
|
|
279
275
|
pointsRuleImageUrl?: string | undefined;
|
|
280
276
|
pointsRuleContent?: string | undefined;
|
|
281
277
|
pointsUrl?: string | undefined;
|
|
278
|
+
presentation?: {
|
|
279
|
+
variant: "blue" | "silver" | "gold" | "black";
|
|
280
|
+
labelsEmbedded?: boolean | undefined;
|
|
281
|
+
} | undefined;
|
|
282
282
|
progress?: {
|
|
283
283
|
message: string;
|
|
284
284
|
daySpentCents: number;
|
|
@@ -288,14 +288,14 @@ declare const memberCards: {
|
|
|
288
288
|
benefits?: {
|
|
289
289
|
name: string;
|
|
290
290
|
benefitRef: string;
|
|
291
|
+
iconUrl?: string | undefined;
|
|
291
292
|
description?: string | undefined;
|
|
292
293
|
action?: {
|
|
293
|
-
kind: "
|
|
294
|
+
kind: "miniapp" | "dialog" | "toast";
|
|
294
295
|
url?: string | undefined;
|
|
295
296
|
title?: string | undefined;
|
|
296
297
|
text?: string | undefined;
|
|
297
298
|
} | undefined;
|
|
298
|
-
iconUrl?: string | undefined;
|
|
299
299
|
}[] | undefined;
|
|
300
300
|
preferencePrompts?: {
|
|
301
301
|
value: "我常来买衣服" | "我常带娃来玩" | "我常来吃美食";
|
|
@@ -328,7 +328,7 @@ declare const memberCards: {
|
|
|
328
328
|
total: zod.ZodNumber;
|
|
329
329
|
}, "strip", zod.ZodTypeAny, {
|
|
330
330
|
userId: string;
|
|
331
|
-
|
|
331
|
+
balance: number;
|
|
332
332
|
items: {
|
|
333
333
|
title: string;
|
|
334
334
|
usageRecordRef: string;
|
|
@@ -336,11 +336,11 @@ declare const memberCards: {
|
|
|
336
336
|
description?: string | undefined;
|
|
337
337
|
usedAt?: string | undefined;
|
|
338
338
|
}[];
|
|
339
|
-
|
|
339
|
+
total: number;
|
|
340
340
|
membershipLabel?: string | undefined;
|
|
341
341
|
}, {
|
|
342
342
|
userId: string;
|
|
343
|
-
|
|
343
|
+
balance: number;
|
|
344
344
|
items: {
|
|
345
345
|
title: string;
|
|
346
346
|
usageRecordRef: string;
|
|
@@ -348,7 +348,7 @@ declare const memberCards: {
|
|
|
348
348
|
description?: string | undefined;
|
|
349
349
|
usedAt?: string | undefined;
|
|
350
350
|
}[];
|
|
351
|
-
|
|
351
|
+
total: number;
|
|
352
352
|
membershipLabel?: string | undefined;
|
|
353
353
|
}>>;
|
|
354
354
|
readonly 'member-enrollment-form': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
|
|
@@ -366,18 +366,18 @@ declare const memberCards: {
|
|
|
366
366
|
options: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
367
367
|
}, "strip", zod.ZodTypeAny, {
|
|
368
368
|
type: "date" | "text" | "tel" | "select";
|
|
369
|
-
required: boolean;
|
|
370
|
-
label: string;
|
|
371
369
|
fieldId: string;
|
|
370
|
+
label: string;
|
|
371
|
+
required: boolean;
|
|
372
372
|
options?: string[] | undefined;
|
|
373
373
|
readOnly?: boolean | undefined;
|
|
374
374
|
prefill?: string | undefined;
|
|
375
375
|
placeholder?: string | undefined;
|
|
376
376
|
}, {
|
|
377
377
|
type: "date" | "text" | "tel" | "select";
|
|
378
|
-
required: boolean;
|
|
379
|
-
label: string;
|
|
380
378
|
fieldId: string;
|
|
379
|
+
label: string;
|
|
380
|
+
required: boolean;
|
|
381
381
|
options?: string[] | undefined;
|
|
382
382
|
readOnly?: boolean | undefined;
|
|
383
383
|
prefill?: string | undefined;
|
|
@@ -390,80 +390,80 @@ declare const memberCards: {
|
|
|
390
390
|
required: zod.ZodBoolean;
|
|
391
391
|
url: zod.ZodOptional<zod.ZodString>;
|
|
392
392
|
}, "strip", zod.ZodTypeAny, {
|
|
393
|
-
required: boolean;
|
|
394
393
|
title: string;
|
|
395
|
-
|
|
394
|
+
required: boolean;
|
|
396
395
|
consentId: string;
|
|
396
|
+
version: string;
|
|
397
397
|
url?: string | undefined;
|
|
398
398
|
}, {
|
|
399
|
-
required: boolean;
|
|
400
399
|
title: string;
|
|
401
|
-
|
|
400
|
+
required: boolean;
|
|
402
401
|
consentId: string;
|
|
402
|
+
version: string;
|
|
403
403
|
url?: string | undefined;
|
|
404
404
|
}>, "many">;
|
|
405
405
|
authorization: zod.ZodObject<{
|
|
406
406
|
status: zod.ZodEnum<["required", "authorized", "unavailable"]>;
|
|
407
407
|
mobileMasked: zod.ZodOptional<zod.ZodString>;
|
|
408
408
|
}, "strip", zod.ZodTypeAny, {
|
|
409
|
-
status: "
|
|
409
|
+
status: "required" | "authorized" | "unavailable";
|
|
410
410
|
mobileMasked?: string | undefined;
|
|
411
411
|
}, {
|
|
412
|
-
status: "
|
|
412
|
+
status: "required" | "authorized" | "unavailable";
|
|
413
413
|
mobileMasked?: string | undefined;
|
|
414
414
|
}>;
|
|
415
415
|
manualNotice: zod.ZodOptional<zod.ZodString>;
|
|
416
416
|
}, "strip", zod.ZodTypeAny, {
|
|
417
417
|
userId: string;
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
mobileMasked?: string | undefined;
|
|
421
|
-
};
|
|
418
|
+
state: "unknown" | "active" | "not_enrolled" | "closed";
|
|
419
|
+
formVersion: string;
|
|
422
420
|
fields: {
|
|
423
421
|
type: "date" | "text" | "tel" | "select";
|
|
424
|
-
required: boolean;
|
|
425
|
-
label: string;
|
|
426
422
|
fieldId: string;
|
|
423
|
+
label: string;
|
|
424
|
+
required: boolean;
|
|
427
425
|
options?: string[] | undefined;
|
|
428
426
|
readOnly?: boolean | undefined;
|
|
429
427
|
prefill?: string | undefined;
|
|
430
428
|
placeholder?: string | undefined;
|
|
431
429
|
}[];
|
|
432
|
-
state: "unknown" | "active" | "not_enrolled" | "closed";
|
|
433
|
-
formVersion: string;
|
|
434
430
|
consents: {
|
|
435
|
-
required: boolean;
|
|
436
431
|
title: string;
|
|
437
|
-
|
|
432
|
+
required: boolean;
|
|
438
433
|
consentId: string;
|
|
434
|
+
version: string;
|
|
439
435
|
url?: string | undefined;
|
|
440
436
|
}[];
|
|
441
|
-
manualNotice?: string | undefined;
|
|
442
|
-
}, {
|
|
443
|
-
userId: string;
|
|
444
437
|
authorization: {
|
|
445
|
-
status: "
|
|
438
|
+
status: "required" | "authorized" | "unavailable";
|
|
446
439
|
mobileMasked?: string | undefined;
|
|
447
440
|
};
|
|
441
|
+
manualNotice?: string | undefined;
|
|
442
|
+
}, {
|
|
443
|
+
userId: string;
|
|
444
|
+
state: "unknown" | "active" | "not_enrolled" | "closed";
|
|
445
|
+
formVersion: string;
|
|
448
446
|
fields: {
|
|
449
447
|
type: "date" | "text" | "tel" | "select";
|
|
450
|
-
required: boolean;
|
|
451
|
-
label: string;
|
|
452
448
|
fieldId: string;
|
|
449
|
+
label: string;
|
|
450
|
+
required: boolean;
|
|
453
451
|
options?: string[] | undefined;
|
|
454
452
|
readOnly?: boolean | undefined;
|
|
455
453
|
prefill?: string | undefined;
|
|
456
454
|
placeholder?: string | undefined;
|
|
457
455
|
}[];
|
|
458
|
-
state: "unknown" | "active" | "not_enrolled" | "closed";
|
|
459
|
-
formVersion: string;
|
|
460
456
|
consents: {
|
|
461
|
-
required: boolean;
|
|
462
457
|
title: string;
|
|
463
|
-
|
|
458
|
+
required: boolean;
|
|
464
459
|
consentId: string;
|
|
460
|
+
version: string;
|
|
465
461
|
url?: string | undefined;
|
|
466
462
|
}[];
|
|
463
|
+
authorization: {
|
|
464
|
+
status: "required" | "authorized" | "unavailable";
|
|
465
|
+
mobileMasked?: string | undefined;
|
|
466
|
+
};
|
|
467
467
|
manualNotice?: string | undefined;
|
|
468
468
|
}>>;
|
|
469
469
|
readonly 'member-enrollment-status': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
|
|
@@ -474,15 +474,15 @@ declare const memberCards: {
|
|
|
474
474
|
message: zod.ZodOptional<zod.ZodString>;
|
|
475
475
|
}, "strip", zod.ZodTypeAny, {
|
|
476
476
|
userId: string;
|
|
477
|
-
state: "
|
|
478
|
-
message?: string | undefined;
|
|
477
|
+
state: "active" | "pending_confirmation" | "confirmation_timeout" | "failed";
|
|
479
478
|
memberRef?: string | undefined;
|
|
479
|
+
message?: string | undefined;
|
|
480
480
|
attemptRef?: string | undefined;
|
|
481
481
|
}, {
|
|
482
482
|
userId: string;
|
|
483
|
-
state: "
|
|
484
|
-
message?: string | undefined;
|
|
483
|
+
state: "active" | "pending_confirmation" | "confirmation_timeout" | "failed";
|
|
485
484
|
memberRef?: string | undefined;
|
|
485
|
+
message?: string | undefined;
|
|
486
486
|
attemptRef?: string | undefined;
|
|
487
487
|
}>>;
|
|
488
488
|
readonly 'member-enrollment-cta': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
|
|
@@ -495,19 +495,19 @@ declare const memberCards: {
|
|
|
495
495
|
perks: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
496
496
|
}, "strip", zod.ZodTypeAny, {
|
|
497
497
|
userId: string;
|
|
498
|
-
state: "not_enrolled" | "closed";
|
|
499
498
|
authState: "authenticated";
|
|
499
|
+
state: "not_enrolled" | "closed";
|
|
500
500
|
title?: string | undefined;
|
|
501
|
-
subtitle?: string | undefined;
|
|
502
501
|
enrollUrl?: string | undefined;
|
|
502
|
+
subtitle?: string | undefined;
|
|
503
503
|
perks?: string[] | undefined;
|
|
504
504
|
}, {
|
|
505
505
|
userId: string;
|
|
506
|
-
state: "not_enrolled" | "closed";
|
|
507
506
|
authState: "authenticated";
|
|
507
|
+
state: "not_enrolled" | "closed";
|
|
508
508
|
title?: string | undefined;
|
|
509
|
-
subtitle?: string | undefined;
|
|
510
509
|
enrollUrl?: string | undefined;
|
|
510
|
+
subtitle?: string | undefined;
|
|
511
511
|
perks?: string[] | undefined;
|
|
512
512
|
}>>;
|
|
513
513
|
readonly 'member-login-cta': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
|
|
@@ -541,19 +541,19 @@ declare const serverModule: {
|
|
|
541
541
|
labelRef: zod.ZodString;
|
|
542
542
|
name: zod.ZodString;
|
|
543
543
|
}, "strip", zod.ZodTypeAny, {
|
|
544
|
-
name: string;
|
|
545
544
|
labelRef: string;
|
|
546
|
-
}, {
|
|
547
545
|
name: string;
|
|
546
|
+
}, {
|
|
548
547
|
labelRef: string;
|
|
548
|
+
name: string;
|
|
549
549
|
}>, "many">;
|
|
550
550
|
}, "strip", zod.ZodTypeAny, {
|
|
551
551
|
userId: string;
|
|
552
|
-
state: "unknown" | "active" | "not_enrolled" | "closed";
|
|
553
552
|
authState: "authenticated" | "unauthenticated";
|
|
553
|
+
state: "unknown" | "active" | "not_enrolled" | "closed";
|
|
554
554
|
labels: {
|
|
555
|
-
name: string;
|
|
556
555
|
labelRef: string;
|
|
556
|
+
name: string;
|
|
557
557
|
}[];
|
|
558
558
|
displayName?: string | undefined;
|
|
559
559
|
avatarUrl?: string | undefined;
|
|
@@ -562,11 +562,11 @@ declare const serverModule: {
|
|
|
562
562
|
registeredAt?: string | undefined;
|
|
563
563
|
}, {
|
|
564
564
|
userId: string;
|
|
565
|
-
state: "unknown" | "active" | "not_enrolled" | "closed";
|
|
566
565
|
authState: "authenticated" | "unauthenticated";
|
|
566
|
+
state: "unknown" | "active" | "not_enrolled" | "closed";
|
|
567
567
|
labels: {
|
|
568
|
-
name: string;
|
|
569
568
|
labelRef: string;
|
|
569
|
+
name: string;
|
|
570
570
|
}[];
|
|
571
571
|
displayName?: string | undefined;
|
|
572
572
|
avatarUrl?: string | undefined;
|
|
@@ -589,10 +589,10 @@ declare const serverModule: {
|
|
|
589
589
|
variant: zod.ZodEnum<["blue", "silver", "gold", "black"]>;
|
|
590
590
|
labelsEmbedded: zod.ZodOptional<zod.ZodBoolean>;
|
|
591
591
|
}, "strip", zod.ZodTypeAny, {
|
|
592
|
-
variant: "
|
|
592
|
+
variant: "blue" | "silver" | "gold" | "black";
|
|
593
593
|
labelsEmbedded?: boolean | undefined;
|
|
594
594
|
}, {
|
|
595
|
-
variant: "
|
|
595
|
+
variant: "blue" | "silver" | "gold" | "black";
|
|
596
596
|
labelsEmbedded?: boolean | undefined;
|
|
597
597
|
}>>;
|
|
598
598
|
progress: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -622,12 +622,12 @@ declare const serverModule: {
|
|
|
622
622
|
title: zod.ZodOptional<zod.ZodString>;
|
|
623
623
|
text: zod.ZodOptional<zod.ZodString>;
|
|
624
624
|
}, "strip", zod.ZodTypeAny, {
|
|
625
|
-
kind: "
|
|
625
|
+
kind: "miniapp" | "dialog" | "toast";
|
|
626
626
|
url?: string | undefined;
|
|
627
627
|
title?: string | undefined;
|
|
628
628
|
text?: string | undefined;
|
|
629
629
|
}, {
|
|
630
|
-
kind: "
|
|
630
|
+
kind: "miniapp" | "dialog" | "toast";
|
|
631
631
|
url?: string | undefined;
|
|
632
632
|
title?: string | undefined;
|
|
633
633
|
text?: string | undefined;
|
|
@@ -635,25 +635,25 @@ declare const serverModule: {
|
|
|
635
635
|
}, "strip", zod.ZodTypeAny, {
|
|
636
636
|
name: string;
|
|
637
637
|
benefitRef: string;
|
|
638
|
+
iconUrl?: string | undefined;
|
|
638
639
|
description?: string | undefined;
|
|
639
640
|
action?: {
|
|
640
|
-
kind: "
|
|
641
|
+
kind: "miniapp" | "dialog" | "toast";
|
|
641
642
|
url?: string | undefined;
|
|
642
643
|
title?: string | undefined;
|
|
643
644
|
text?: string | undefined;
|
|
644
645
|
} | undefined;
|
|
645
|
-
iconUrl?: string | undefined;
|
|
646
646
|
}, {
|
|
647
647
|
name: string;
|
|
648
648
|
benefitRef: string;
|
|
649
|
+
iconUrl?: string | undefined;
|
|
649
650
|
description?: string | undefined;
|
|
650
651
|
action?: {
|
|
651
|
-
kind: "
|
|
652
|
+
kind: "miniapp" | "dialog" | "toast";
|
|
652
653
|
url?: string | undefined;
|
|
653
654
|
title?: string | undefined;
|
|
654
655
|
text?: string | undefined;
|
|
655
656
|
} | undefined;
|
|
656
|
-
iconUrl?: string | undefined;
|
|
657
657
|
}>, "many">>;
|
|
658
658
|
preferencePrompts: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
659
659
|
value: zod.ZodEnum<["我常来买衣服", "我常带娃来玩", "我常来吃美食"]>;
|
|
@@ -666,20 +666,20 @@ declare const serverModule: {
|
|
|
666
666
|
query: string;
|
|
667
667
|
}>, "many">>;
|
|
668
668
|
}, "strip", zod.ZodTypeAny, {
|
|
669
|
-
status: "unknown" | "active" | "inactive" | "frozen" | "expired";
|
|
670
669
|
userId: string;
|
|
670
|
+
status: "unknown" | "active" | "inactive" | "frozen" | "expired";
|
|
671
671
|
cardRef: string;
|
|
672
672
|
cardDisplay: string;
|
|
673
673
|
availablePoints: number;
|
|
674
|
-
presentation?: {
|
|
675
|
-
variant: "silver" | "gold" | "blue" | "black";
|
|
676
|
-
labelsEmbedded?: boolean | undefined;
|
|
677
|
-
} | undefined;
|
|
678
674
|
levelName?: string | undefined;
|
|
679
675
|
cardImageUrl?: string | undefined;
|
|
680
676
|
pointsRuleImageUrl?: string | undefined;
|
|
681
677
|
pointsRuleContent?: string | undefined;
|
|
682
678
|
pointsUrl?: string | undefined;
|
|
679
|
+
presentation?: {
|
|
680
|
+
variant: "blue" | "silver" | "gold" | "black";
|
|
681
|
+
labelsEmbedded?: boolean | undefined;
|
|
682
|
+
} | undefined;
|
|
683
683
|
progress?: {
|
|
684
684
|
message: string;
|
|
685
685
|
daySpentCents: number;
|
|
@@ -689,34 +689,34 @@ declare const serverModule: {
|
|
|
689
689
|
benefits?: {
|
|
690
690
|
name: string;
|
|
691
691
|
benefitRef: string;
|
|
692
|
+
iconUrl?: string | undefined;
|
|
692
693
|
description?: string | undefined;
|
|
693
694
|
action?: {
|
|
694
|
-
kind: "
|
|
695
|
+
kind: "miniapp" | "dialog" | "toast";
|
|
695
696
|
url?: string | undefined;
|
|
696
697
|
title?: string | undefined;
|
|
697
698
|
text?: string | undefined;
|
|
698
699
|
} | undefined;
|
|
699
|
-
iconUrl?: string | undefined;
|
|
700
700
|
}[] | undefined;
|
|
701
701
|
preferencePrompts?: {
|
|
702
702
|
value: "我常来买衣服" | "我常带娃来玩" | "我常来吃美食";
|
|
703
703
|
query: string;
|
|
704
704
|
}[] | undefined;
|
|
705
705
|
}, {
|
|
706
|
-
status: "unknown" | "active" | "inactive" | "frozen" | "expired";
|
|
707
706
|
userId: string;
|
|
707
|
+
status: "unknown" | "active" | "inactive" | "frozen" | "expired";
|
|
708
708
|
cardRef: string;
|
|
709
709
|
cardDisplay: string;
|
|
710
710
|
availablePoints: number;
|
|
711
|
-
presentation?: {
|
|
712
|
-
variant: "silver" | "gold" | "blue" | "black";
|
|
713
|
-
labelsEmbedded?: boolean | undefined;
|
|
714
|
-
} | undefined;
|
|
715
711
|
levelName?: string | undefined;
|
|
716
712
|
cardImageUrl?: string | undefined;
|
|
717
713
|
pointsRuleImageUrl?: string | undefined;
|
|
718
714
|
pointsRuleContent?: string | undefined;
|
|
719
715
|
pointsUrl?: string | undefined;
|
|
716
|
+
presentation?: {
|
|
717
|
+
variant: "blue" | "silver" | "gold" | "black";
|
|
718
|
+
labelsEmbedded?: boolean | undefined;
|
|
719
|
+
} | undefined;
|
|
720
720
|
progress?: {
|
|
721
721
|
message: string;
|
|
722
722
|
daySpentCents: number;
|
|
@@ -726,14 +726,14 @@ declare const serverModule: {
|
|
|
726
726
|
benefits?: {
|
|
727
727
|
name: string;
|
|
728
728
|
benefitRef: string;
|
|
729
|
+
iconUrl?: string | undefined;
|
|
729
730
|
description?: string | undefined;
|
|
730
731
|
action?: {
|
|
731
|
-
kind: "
|
|
732
|
+
kind: "miniapp" | "dialog" | "toast";
|
|
732
733
|
url?: string | undefined;
|
|
733
734
|
title?: string | undefined;
|
|
734
735
|
text?: string | undefined;
|
|
735
736
|
} | undefined;
|
|
736
|
-
iconUrl?: string | undefined;
|
|
737
737
|
}[] | undefined;
|
|
738
738
|
preferencePrompts?: {
|
|
739
739
|
value: "我常来买衣服" | "我常带娃来玩" | "我常来吃美食";
|
|
@@ -766,7 +766,7 @@ declare const serverModule: {
|
|
|
766
766
|
total: zod.ZodNumber;
|
|
767
767
|
}, "strip", zod.ZodTypeAny, {
|
|
768
768
|
userId: string;
|
|
769
|
-
|
|
769
|
+
balance: number;
|
|
770
770
|
items: {
|
|
771
771
|
title: string;
|
|
772
772
|
usageRecordRef: string;
|
|
@@ -774,11 +774,11 @@ declare const serverModule: {
|
|
|
774
774
|
description?: string | undefined;
|
|
775
775
|
usedAt?: string | undefined;
|
|
776
776
|
}[];
|
|
777
|
-
|
|
777
|
+
total: number;
|
|
778
778
|
membershipLabel?: string | undefined;
|
|
779
779
|
}, {
|
|
780
780
|
userId: string;
|
|
781
|
-
|
|
781
|
+
balance: number;
|
|
782
782
|
items: {
|
|
783
783
|
title: string;
|
|
784
784
|
usageRecordRef: string;
|
|
@@ -786,7 +786,7 @@ declare const serverModule: {
|
|
|
786
786
|
description?: string | undefined;
|
|
787
787
|
usedAt?: string | undefined;
|
|
788
788
|
}[];
|
|
789
|
-
|
|
789
|
+
total: number;
|
|
790
790
|
membershipLabel?: string | undefined;
|
|
791
791
|
}>>;
|
|
792
792
|
readonly 'member-enrollment-form': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
|
|
@@ -804,18 +804,18 @@ declare const serverModule: {
|
|
|
804
804
|
options: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
805
805
|
}, "strip", zod.ZodTypeAny, {
|
|
806
806
|
type: "date" | "text" | "tel" | "select";
|
|
807
|
-
required: boolean;
|
|
808
|
-
label: string;
|
|
809
807
|
fieldId: string;
|
|
808
|
+
label: string;
|
|
809
|
+
required: boolean;
|
|
810
810
|
options?: string[] | undefined;
|
|
811
811
|
readOnly?: boolean | undefined;
|
|
812
812
|
prefill?: string | undefined;
|
|
813
813
|
placeholder?: string | undefined;
|
|
814
814
|
}, {
|
|
815
815
|
type: "date" | "text" | "tel" | "select";
|
|
816
|
-
required: boolean;
|
|
817
|
-
label: string;
|
|
818
816
|
fieldId: string;
|
|
817
|
+
label: string;
|
|
818
|
+
required: boolean;
|
|
819
819
|
options?: string[] | undefined;
|
|
820
820
|
readOnly?: boolean | undefined;
|
|
821
821
|
prefill?: string | undefined;
|
|
@@ -828,80 +828,80 @@ declare const serverModule: {
|
|
|
828
828
|
required: zod.ZodBoolean;
|
|
829
829
|
url: zod.ZodOptional<zod.ZodString>;
|
|
830
830
|
}, "strip", zod.ZodTypeAny, {
|
|
831
|
-
required: boolean;
|
|
832
831
|
title: string;
|
|
833
|
-
|
|
832
|
+
required: boolean;
|
|
834
833
|
consentId: string;
|
|
834
|
+
version: string;
|
|
835
835
|
url?: string | undefined;
|
|
836
836
|
}, {
|
|
837
|
-
required: boolean;
|
|
838
837
|
title: string;
|
|
839
|
-
|
|
838
|
+
required: boolean;
|
|
840
839
|
consentId: string;
|
|
840
|
+
version: string;
|
|
841
841
|
url?: string | undefined;
|
|
842
842
|
}>, "many">;
|
|
843
843
|
authorization: zod.ZodObject<{
|
|
844
844
|
status: zod.ZodEnum<["required", "authorized", "unavailable"]>;
|
|
845
845
|
mobileMasked: zod.ZodOptional<zod.ZodString>;
|
|
846
846
|
}, "strip", zod.ZodTypeAny, {
|
|
847
|
-
status: "
|
|
847
|
+
status: "required" | "authorized" | "unavailable";
|
|
848
848
|
mobileMasked?: string | undefined;
|
|
849
849
|
}, {
|
|
850
|
-
status: "
|
|
850
|
+
status: "required" | "authorized" | "unavailable";
|
|
851
851
|
mobileMasked?: string | undefined;
|
|
852
852
|
}>;
|
|
853
853
|
manualNotice: zod.ZodOptional<zod.ZodString>;
|
|
854
854
|
}, "strip", zod.ZodTypeAny, {
|
|
855
855
|
userId: string;
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
mobileMasked?: string | undefined;
|
|
859
|
-
};
|
|
856
|
+
state: "unknown" | "active" | "not_enrolled" | "closed";
|
|
857
|
+
formVersion: string;
|
|
860
858
|
fields: {
|
|
861
859
|
type: "date" | "text" | "tel" | "select";
|
|
862
|
-
required: boolean;
|
|
863
|
-
label: string;
|
|
864
860
|
fieldId: string;
|
|
861
|
+
label: string;
|
|
862
|
+
required: boolean;
|
|
865
863
|
options?: string[] | undefined;
|
|
866
864
|
readOnly?: boolean | undefined;
|
|
867
865
|
prefill?: string | undefined;
|
|
868
866
|
placeholder?: string | undefined;
|
|
869
867
|
}[];
|
|
870
|
-
state: "unknown" | "active" | "not_enrolled" | "closed";
|
|
871
|
-
formVersion: string;
|
|
872
868
|
consents: {
|
|
873
|
-
required: boolean;
|
|
874
869
|
title: string;
|
|
875
|
-
|
|
870
|
+
required: boolean;
|
|
876
871
|
consentId: string;
|
|
872
|
+
version: string;
|
|
877
873
|
url?: string | undefined;
|
|
878
874
|
}[];
|
|
879
|
-
manualNotice?: string | undefined;
|
|
880
|
-
}, {
|
|
881
|
-
userId: string;
|
|
882
875
|
authorization: {
|
|
883
|
-
status: "
|
|
876
|
+
status: "required" | "authorized" | "unavailable";
|
|
884
877
|
mobileMasked?: string | undefined;
|
|
885
878
|
};
|
|
879
|
+
manualNotice?: string | undefined;
|
|
880
|
+
}, {
|
|
881
|
+
userId: string;
|
|
882
|
+
state: "unknown" | "active" | "not_enrolled" | "closed";
|
|
883
|
+
formVersion: string;
|
|
886
884
|
fields: {
|
|
887
885
|
type: "date" | "text" | "tel" | "select";
|
|
888
|
-
required: boolean;
|
|
889
|
-
label: string;
|
|
890
886
|
fieldId: string;
|
|
887
|
+
label: string;
|
|
888
|
+
required: boolean;
|
|
891
889
|
options?: string[] | undefined;
|
|
892
890
|
readOnly?: boolean | undefined;
|
|
893
891
|
prefill?: string | undefined;
|
|
894
892
|
placeholder?: string | undefined;
|
|
895
893
|
}[];
|
|
896
|
-
state: "unknown" | "active" | "not_enrolled" | "closed";
|
|
897
|
-
formVersion: string;
|
|
898
894
|
consents: {
|
|
899
|
-
required: boolean;
|
|
900
895
|
title: string;
|
|
901
|
-
|
|
896
|
+
required: boolean;
|
|
902
897
|
consentId: string;
|
|
898
|
+
version: string;
|
|
903
899
|
url?: string | undefined;
|
|
904
900
|
}[];
|
|
901
|
+
authorization: {
|
|
902
|
+
status: "required" | "authorized" | "unavailable";
|
|
903
|
+
mobileMasked?: string | undefined;
|
|
904
|
+
};
|
|
905
905
|
manualNotice?: string | undefined;
|
|
906
906
|
}>>;
|
|
907
907
|
readonly 'member-enrollment-status': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
|
|
@@ -912,15 +912,15 @@ declare const serverModule: {
|
|
|
912
912
|
message: zod.ZodOptional<zod.ZodString>;
|
|
913
913
|
}, "strip", zod.ZodTypeAny, {
|
|
914
914
|
userId: string;
|
|
915
|
-
state: "
|
|
916
|
-
message?: string | undefined;
|
|
915
|
+
state: "active" | "pending_confirmation" | "confirmation_timeout" | "failed";
|
|
917
916
|
memberRef?: string | undefined;
|
|
917
|
+
message?: string | undefined;
|
|
918
918
|
attemptRef?: string | undefined;
|
|
919
919
|
}, {
|
|
920
920
|
userId: string;
|
|
921
|
-
state: "
|
|
922
|
-
message?: string | undefined;
|
|
921
|
+
state: "active" | "pending_confirmation" | "confirmation_timeout" | "failed";
|
|
923
922
|
memberRef?: string | undefined;
|
|
923
|
+
message?: string | undefined;
|
|
924
924
|
attemptRef?: string | undefined;
|
|
925
925
|
}>>;
|
|
926
926
|
readonly 'member-enrollment-cta': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
|
|
@@ -933,19 +933,19 @@ declare const serverModule: {
|
|
|
933
933
|
perks: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
934
934
|
}, "strip", zod.ZodTypeAny, {
|
|
935
935
|
userId: string;
|
|
936
|
-
state: "not_enrolled" | "closed";
|
|
937
936
|
authState: "authenticated";
|
|
937
|
+
state: "not_enrolled" | "closed";
|
|
938
938
|
title?: string | undefined;
|
|
939
|
-
subtitle?: string | undefined;
|
|
940
939
|
enrollUrl?: string | undefined;
|
|
940
|
+
subtitle?: string | undefined;
|
|
941
941
|
perks?: string[] | undefined;
|
|
942
942
|
}, {
|
|
943
943
|
userId: string;
|
|
944
|
-
state: "not_enrolled" | "closed";
|
|
945
944
|
authState: "authenticated";
|
|
945
|
+
state: "not_enrolled" | "closed";
|
|
946
946
|
title?: string | undefined;
|
|
947
|
-
subtitle?: string | undefined;
|
|
948
947
|
enrollUrl?: string | undefined;
|
|
948
|
+
subtitle?: string | undefined;
|
|
949
949
|
perks?: string[] | undefined;
|
|
950
950
|
}>>;
|
|
951
951
|
readonly 'member-login-cta': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tbox.cn/app-module-member",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "商圈会员模块:会员账户、会员卡、积分流水与入会流程(codegen 源)。",
|
|
6
6
|
"exports": {
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@tbox.cn/app-contracts": "0.
|
|
22
|
-
"@tbox.cn/app-contracts-mall": "0.
|
|
23
|
-
"@tbox.cn/app-agent-sdk-client": "0.1.
|
|
24
|
-
"@tbox.cn/app-agent-sdk-server": "0.2.
|
|
21
|
+
"@tbox.cn/app-contracts": "0.13.0",
|
|
22
|
+
"@tbox.cn/app-contracts-mall": "0.13.0",
|
|
23
|
+
"@tbox.cn/app-agent-sdk-client": "0.1.6",
|
|
24
|
+
"@tbox.cn/app-agent-sdk-server": "0.2.3"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"zod": "3.25.76",
|