@tbox.cn/app-module-shopping-guide 0.2.1 → 0.8.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.
Files changed (85) hide show
  1. package/AGENTS.md +16 -0
  2. package/README.md +96 -0
  3. package/dist/chunk-AYQZO2FV.js +1496 -0
  4. package/dist/chunk-VKDA6RXQ.js +1676 -0
  5. package/dist/client/index.d.ts +3 -3
  6. package/dist/client/index.js +1 -1
  7. package/dist/index.d.ts +1 -1
  8. package/dist/index.js +2 -8
  9. package/dist/server/index.d.ts +2512 -608
  10. package/dist/server/index.js +1 -7
  11. package/dist/shopping-guide-EGRHPEDA.css +2598 -0
  12. package/package.json +25 -16
  13. package/skills/shopping-guide/SKILL.md +127 -24
  14. package/src/client/cards/category-list/index.tsx +113 -0
  15. package/src/client/cards/human-guide-list/index.tsx +72 -0
  16. package/src/client/cards/index.ts +14 -0
  17. package/src/client/cards/location-handoff/index.tsx +52 -0
  18. package/src/client/cards/mall-directory/index.tsx +77 -0
  19. package/src/client/cards/nearby-mall-list/index.tsx +40 -0
  20. package/src/client/cards/product-comparison/index.tsx +100 -0
  21. package/src/client/cards/product-detail/index.tsx +97 -0
  22. package/src/client/cards/product-list/index.tsx +223 -0
  23. package/src/client/cards/recommend-merchants/index.tsx +147 -0
  24. package/src/client/cards/shop-detail/index.tsx +133 -0
  25. package/src/client/cards/shop-list/index.tsx +216 -0
  26. package/src/client/cards/view.ts +147 -0
  27. package/src/client/categories.ts +38 -0
  28. package/src/client/components/ImageWithFallback.tsx +34 -0
  29. package/src/client/components/MerchantRow.tsx +78 -0
  30. package/src/client/components/ShopDetailSheet.tsx +383 -0
  31. package/src/client/components/ShopGuideHeader.tsx +23 -0
  32. package/src/client/components/ShopGuideSectionLabel.tsx +10 -0
  33. package/src/client/components/ShopListSheet.tsx +293 -0
  34. package/src/client/index.ts +8 -6
  35. package/src/client/styles/shopping-guide.css +2598 -0
  36. package/src/client/types/css.d.ts +2 -0
  37. package/src/server/cards/category-list/meta.ts +0 -2
  38. package/src/server/cards/human-guide-list/meta.ts +0 -2
  39. package/src/server/cards/index.ts +10 -10
  40. package/src/server/cards/location-handoff/meta.ts +0 -2
  41. package/src/server/cards/mall-directory/meta.ts +0 -2
  42. package/src/server/cards/nearby-mall-list/meta.ts +1 -3
  43. package/src/server/cards/product-comparison/meta.ts +0 -2
  44. package/src/server/cards/product-detail/meta.ts +0 -2
  45. package/src/server/cards/product-list/meta.ts +0 -2
  46. package/src/server/cards/recommend-merchants/meta.ts +37 -0
  47. package/src/server/cards/recommend-merchants/samples.ts +189 -0
  48. package/src/server/cards/{merchant-detail → shop-detail}/meta.ts +6 -6
  49. package/src/server/cards/shop-detail/samples.ts +72 -0
  50. package/src/server/cards/{merchant-list → shop-list}/meta.ts +9 -9
  51. package/src/server/cards/shop-list/samples.ts +154 -0
  52. package/src/server/domain/value-objects.ts +1 -2
  53. package/src/server/handler.ts +63 -0
  54. package/src/server/index.ts +161 -101
  55. package/src/server/ports/index.ts +120 -91
  56. package/src/server/ports/local-adapters.ts +5 -55
  57. package/src/server/projections/index.ts +159 -41
  58. package/src/server/tools/index.ts +590 -315
  59. package/tbox.module.json +137 -0
  60. package/tests/cards-render.test.tsx +830 -0
  61. package/tests/floor-pretool.test.ts +275 -0
  62. package/tests/handler.test.ts +259 -0
  63. package/tests/merchant-list-limit.test.ts +53 -0
  64. package/tests/ports-resolve.test.ts +112 -0
  65. package/tests/samples.test.ts +71 -0
  66. package/tests/shopping-guide.test.ts +402 -234
  67. package/tests/skill.test.ts +86 -0
  68. package/tests/view.test.ts +42 -0
  69. package/tsup.config.ts +9 -1
  70. package/dist/chunk-AGBLC6XI.js +0 -1294
  71. package/dist/chunk-U4WDS5PQ.js +0 -173
  72. package/skills/shopping-guide/references/comparison-format.md +0 -5
  73. package/skills/shopping-guide/references/faq-answers.md +0 -5
  74. package/skills/shopping-guide/references/floor-directory.md +0 -4
  75. package/skills/shopping-guide/references/intent-patterns.md +0 -5
  76. package/skills/shopping-guide/references/location-format.md +0 -5
  77. package/skills/shopping-guide/references/policy-lookup.md +0 -5
  78. package/skills/shopping-guide/references/product-search-tips.md +0 -6
  79. package/skills/shopping-guide/references/recommendation-style.md +0 -5
  80. package/src/client/cards/index.tsx +0 -267
  81. package/src/server/cards/customer-service-faq/meta.ts +0 -18
  82. package/src/server/integrations/joycity/adapter.ts +0 -226
  83. package/src/server/integrations/joycity/auth-strategy.ts +0 -38
  84. package/src/server/integrations/joycity/gateway.ts +0 -128
  85. package/tbox.component.json +0 -48
@@ -1,226 +0,0 @@
1
- /**
2
- * JoyCity adapter:DTO → contracts-mall Port 实现(011 K6)。
3
- * 实现 CatalogQueryPort / MerchantDirectoryQueryPort / CommercialCategoryQueryPort / MallDirectoryQueryPort 四 Port;
4
- * Assistance/Navigation 由本地实现(知识库/FAQ/位置)。
5
- */
6
- import type {
7
- CatalogQueryPort,
8
- CategoryRecord,
9
- CommercialCategoryQueryPort,
10
- MallDirectoryQueryPort,
11
- MallDirectoryRecord,
12
- MerchantDirectoryQueryPort,
13
- MerchantRecord,
14
- MerchantSearchCriteria,
15
- ProductFacetsRecord,
16
- ProductRecord,
17
- ProductSearchCriteria,
18
- ShoppingPage,
19
- ShoppingQueryContext,
20
- } from '@tbox.cn/app-contracts-mall';
21
- import { nowIso } from '../../domain/value-objects';
22
- import {
23
- JoyCityTransportGateway,
24
- type JoyCityMerchantListItemDto,
25
- type JoyCityProductDto,
26
- } from './gateway';
27
-
28
- export class JoyCityCatalogAdapter implements CatalogQueryPort {
29
- constructor(private readonly gateway: JoyCityTransportGateway) {}
30
-
31
- async searchProducts(criteria: ProductSearchCriteria): Promise<ShoppingPage<ProductRecord>> {
32
- const items = await this.gateway.searchProducts({
33
- Keyword: criteria.keyword ?? '',
34
- PageIndex: criteria.page,
35
- PageSize: criteria.pageSize,
36
- ...(criteria.categoryCode ? { CommercialTypeID: Number(criteria.categoryCode) } : {}),
37
- ...(criteria.minPriceMinor !== undefined ? { MinPriceMinor: criteria.minPriceMinor } : {}),
38
- ...(criteria.maxPriceMinor !== undefined ? { MaxPriceMinor: criteria.maxPriceMinor } : {}),
39
- });
40
- const mapped = items.map((dto, order) => mapProductDto(dto, order));
41
- return {
42
- items: mapped,
43
- page: criteria.page,
44
- pageSize: criteria.pageSize,
45
- total: mapped.length,
46
- hasMore: mapped.length === criteria.pageSize,
47
- };
48
- }
49
-
50
- async getProduct(productId: string, _ctx: ShoppingQueryContext): Promise<ProductRecord | null> {
51
- const dto = await this.gateway.getProduct({ ProductID: Number(productId) });
52
- if (!dto) return null;
53
- return mapProductDto(dto, 0);
54
- }
55
-
56
- async getFacets(_criteria: ProductSearchCriteria): Promise<ProductFacetsRecord> {
57
- // JoyCity 目录 API 暂不支持分面
58
- return { brands: [], categories: [], priceRanges: [], floors: [] };
59
- }
60
- }
61
-
62
- export class JoyCityMerchantAdapter implements MerchantDirectoryQueryPort {
63
- constructor(private readonly gateway: JoyCityTransportGateway) {}
64
-
65
- async searchMerchants(criteria: MerchantSearchCriteria): Promise<ShoppingPage<MerchantRecord>> {
66
- const items = await this.gateway.listMerchants({
67
- Keyword: criteria.keyword ?? '',
68
- PageIndex: criteria.page,
69
- PageSize: criteria.pageSize,
70
- ...(criteria.businessCategory ? { CommercialTypeID: Number(criteria.businessCategory) } : {}),
71
- ...(criteria.floorCode ? { FloorCode: criteria.floorCode } : {}),
72
- ...(criteria.buildingCode ? { BuildingCode: criteria.buildingCode } : {}),
73
- });
74
- const mapped = items.map(mapMerchantListItem);
75
- return {
76
- items: mapped,
77
- page: criteria.page,
78
- pageSize: criteria.pageSize,
79
- total: mapped.length,
80
- hasMore: mapped.length === criteria.pageSize,
81
- };
82
- }
83
-
84
- async getMerchant(merchantId: string, _ctx: ShoppingQueryContext): Promise<MerchantRecord | null> {
85
- const dto = await this.gateway.getMerchant({ MerchantID: Number(merchantId) });
86
- if (!dto) return null;
87
- return {
88
- ...mapMerchantListItem(dto),
89
- ...(dto.Description ? { description: dto.Description } : {}),
90
- ...(dto.ContactInfo?.length
91
- ? {
92
- contactInfo: dto.ContactInfo.filter((c) => c.Channel && c.Value).map((c) => ({
93
- channel: String(c.Channel),
94
- value: String(c.Value),
95
- })),
96
- }
97
- : {}),
98
- };
99
- }
100
- }
101
-
102
- export class JoyCityCategoryAdapter implements CommercialCategoryQueryPort {
103
- constructor(private readonly gateway: JoyCityTransportGateway) {}
104
-
105
- async listCategories(_ctx: ShoppingQueryContext): Promise<readonly CategoryRecord[]> {
106
- const categories = await this.gateway.listCategories({ Level: 1, PageIndex: 1, PageSize: 100 });
107
- return categories.map((c) => ({
108
- code: String(c.CategoryID ?? ''),
109
- name: c.Name ?? '',
110
- ...(c.Description ? { description: c.Description } : {}),
111
- merchantCount: c.MerchantCount ?? 0,
112
- ...(c.SubCategories?.length
113
- ? {
114
- subCategories: c.SubCategories.map((s) => ({
115
- code: String(s.CategoryID ?? ''),
116
- name: s.Name ?? '',
117
- merchantCount: s.MerchantCount ?? 0,
118
- })),
119
- }
120
- : {}),
121
- }));
122
- }
123
- }
124
-
125
- export class JoyCityMallDirectoryAdapter implements MallDirectoryQueryPort {
126
- constructor(private readonly gateway: JoyCityTransportGateway) {}
127
-
128
- async getDirectory(ctx: ShoppingQueryContext): Promise<MallDirectoryRecord | null> {
129
- const dto = await this.gateway.getMallDirectory({ MallID: ctx.scope.mallId });
130
- if (!dto) return null;
131
- return {
132
- mallId: dto.MallID ?? ctx.scope.mallId,
133
- mallName: dto.MallName ?? ctx.scope.mallId,
134
- buildings: (dto.Buildings ?? []).map((b) => ({
135
- buildingCode: b.BuildingCode ?? '',
136
- buildingName: b.BuildingName ?? '',
137
- floors: (b.Floors ?? []).map((f) => ({
138
- floorCode: f.FloorCode ?? '',
139
- floorName: f.FloorName ?? '',
140
- businessCategories: f.BusinessCategories ?? [],
141
- merchantCount: f.MerchantCount ?? 0,
142
- })),
143
- })),
144
- observedAt: nowIso(),
145
- };
146
- }
147
- }
148
-
149
- // ===== DTO 映射 =====
150
-
151
- export function mapProductDto(dto: JoyCityProductDto, _order: number): ProductRecord {
152
- const observedAt = nowIso();
153
- return {
154
- productId: String(dto.ProductID ?? ''),
155
- name: dto.Name ?? '',
156
- ...(dto.Description ? { description: dto.Description } : {}),
157
- ...(dto.ImageUrl ? { imageUrls: [dto.ImageUrl] } : { imageUrls: [] }),
158
- ...(dto.BrandName ? { brand: dto.BrandName } : {}),
159
- categoryPath: dto.CategoryPath ?? [],
160
- price:
161
- dto.PriceYuan !== undefined
162
- ? {
163
- sale: {
164
- currency: 'CNY' as const,
165
- amountMinor: Math.round(dto.PriceYuan * 100),
166
- display: `¥${dto.PriceYuan.toFixed(2)}`,
167
- },
168
- ...(dto.OriginalPriceYuan !== undefined && dto.OriginalPriceYuan > dto.PriceYuan
169
- ? {
170
- original: {
171
- currency: 'CNY' as const,
172
- amountMinor: Math.round(dto.OriginalPriceYuan * 100),
173
- display: `¥${dto.OriginalPriceYuan.toFixed(2)}`,
174
- },
175
- }
176
- : {}),
177
- }
178
- : {},
179
- availability: {
180
- status: dto.Marketable === false ? 'out_of_stock' : 'in_stock',
181
- label: dto.StockLabel ?? '有货',
182
- marketable: dto.Marketable !== false,
183
- observedAt,
184
- },
185
- merchant: {
186
- merchantId: String(dto.MerchantID ?? ''),
187
- name: dto.MerchantName ?? '',
188
- location: {
189
- displayText: [dto.BuildingName, dto.FloorName, dto.UnitName].filter(Boolean).join(' ') || '位置待确认',
190
- ...(dto.BuildingName ? { buildingName: dto.BuildingName } : {}),
191
- ...(dto.FloorName ? { floorName: dto.FloorName } : {}),
192
- ...(dto.UnitName ? { unitName: dto.UnitName } : {}),
193
- },
194
- },
195
- labels: dto.Labels ?? [],
196
- attributes: [],
197
- promotionFacts: dto.PromotionFacts ?? [],
198
- observedAt,
199
- };
200
- }
201
-
202
- export function mapMerchantListItem(dto: JoyCityMerchantListItemDto): MerchantRecord {
203
- const observedAt = nowIso();
204
- return {
205
- merchantId: String(dto.MerchantID ?? ''),
206
- name: dto.Name ?? '',
207
- ...(dto.LogoUrl ? { logoUrl: dto.LogoUrl } : {}),
208
- ...(dto.CoverUrl ? { coverUrls: [dto.CoverUrl] } : { coverUrls: [] }),
209
- ...(dto.BrandName ? { brand: dto.BrandName } : {}),
210
- businessCategories: [dto.CommercialTypeName].filter((x): x is string => Boolean(x)),
211
- location: {
212
- displayText: [dto.BuildingName, dto.FloorName, dto.UnitName].filter(Boolean).join(' ') || '位置待确认',
213
- ...(dto.BuildingName ? { buildingName: dto.BuildingName } : {}),
214
- ...(dto.FloorName ? { floorName: dto.FloorName } : {}),
215
- ...(dto.UnitName ? { unitName: dto.UnitName } : {}),
216
- },
217
- status: {
218
- code: dto.Status === 0 ? 'disabled' : 'enabled',
219
- label: dto.Status === 0 ? '暂停营业' : '营业中',
220
- observedAt,
221
- },
222
- services: dto.Services ?? [],
223
- promotionFacts: dto.PromotionFacts ?? [],
224
- observedAt,
225
- };
226
- }
@@ -1,38 +0,0 @@
1
- /**
2
- * JoyCity C 端签名认证策略(011 K6:签名算法留模块 + strategy 注册点)。
3
- * 头格式(全小写,时间戳 epoch ms):
4
- * sign: <MD5(...)[8..24] 小写>
5
- * timestamp: <epoch ms>
6
- * publickey: <publicKey>
7
- * 签名源:MD5("{publicKey:<pk>,timeStamp:<ts>,data:<bodyJson>,privateKey:<sk>}")[8..24].toLowerCase()
8
- */
9
- import { createHash } from 'node:crypto';
10
- import type { ProviderAuthStrategy, ProviderAuthStrategyInput } from '@tbox.cn/app-sdk/server';
11
-
12
- export const JOYCITY_C_SIGNED_CREDENTIAL_TYPE = 'joycity-c-signed-v1';
13
-
14
- export const joycityCSignedAuthStrategy: ProviderAuthStrategy = {
15
- credentialType: JOYCITY_C_SIGNED_CREDENTIAL_TYPE,
16
- apply(input: ProviderAuthStrategyInput): Record<string, string> {
17
- const credential = input.credential.value as { publicKey?: unknown; privateKey?: unknown };
18
- const publicKey = typeof credential.publicKey === 'string' ? credential.publicKey : '';
19
- const privateKey = typeof credential.privateKey === 'string' ? credential.privateKey : '';
20
- const timestamp = String(Date.now());
21
- const bodyJson = input.body === undefined ? '' : JSON.stringify(input.body);
22
- return {
23
- sign: computeJoyCityCSign(publicKey, timestamp, bodyJson, privateKey),
24
- timestamp,
25
- publickey: publicKey,
26
- };
27
- },
28
- };
29
-
30
- export function computeJoyCityCSign(
31
- publicKey: string,
32
- timestamp: string,
33
- bodyJson: string,
34
- privateKey: string,
35
- ): string {
36
- const source = `{publicKey:${publicKey},timeStamp:${timestamp},data:${bodyJson},privateKey:${privateKey}}`;
37
- return createHash('md5').update(source, 'utf8').digest('hex').substring(8, 24).toLowerCase();
38
- }
@@ -1,128 +0,0 @@
1
- /**
2
- * JoyCity 商业网关(011 K6):AuthenticatedTransport 之上的薄 DTO 网关。
3
- * 签名由 ProviderAuthStrategy(transport 层)完成;本网关只负责路径/请求/响应解包。
4
- */
5
- import type { AuthenticatedTransport } from '@tbox.cn/app-contracts';
6
-
7
- interface JoyCityResponse<T> {
8
- readonly Code: number;
9
- readonly Data: T;
10
- }
11
-
12
- export const JOYCITY_READ_OPERATIONS = {
13
- listMerchants: '/api/merchant/list',
14
- getMerchant: '/api/merchant/detail',
15
- listCategories: '/api/category/list',
16
- searchProducts: '/api/product/search',
17
- getProduct: '/api/product/detail',
18
- mallDirectory: '/api/mall/directory',
19
- nearbyMalls: '/api/mall/nearby',
20
- } as const;
21
-
22
- // ===== DTO 形状(joycity 上游;模块内部使用,不对外) =====
23
-
24
- export interface JoyCityMerchantListItemDto {
25
- readonly MerchantID?: number;
26
- readonly Name?: string;
27
- readonly LogoUrl?: string;
28
- readonly CoverUrl?: string;
29
- readonly BrandName?: string;
30
- readonly CommercialTypeID?: number;
31
- readonly CommercialTypeName?: string;
32
- readonly BuildingName?: string;
33
- readonly FloorName?: string;
34
- readonly UnitName?: string;
35
- readonly Status?: number;
36
- readonly Services?: readonly string[];
37
- readonly PromotionFacts?: readonly string[];
38
- }
39
-
40
- export interface JoyCityMerchantDetailDto extends JoyCityMerchantListItemDto {
41
- readonly Description?: string;
42
- readonly ContactInfo?: ReadonlyArray<{ readonly Channel?: string; readonly Value?: string }>;
43
- }
44
-
45
- export interface JoyCityCategoryDto {
46
- readonly CategoryID?: number;
47
- readonly Name?: string;
48
- readonly Description?: string;
49
- readonly MerchantCount?: number;
50
- readonly SubCategories?: readonly JoyCityCategoryDto[];
51
- }
52
-
53
- export interface JoyCityProductDto {
54
- readonly ProductID?: number;
55
- readonly Name?: string;
56
- readonly Description?: string;
57
- readonly ImageUrl?: string;
58
- readonly BrandName?: string;
59
- readonly CategoryPath?: readonly string[];
60
- readonly PriceYuan?: number;
61
- readonly OriginalPriceYuan?: number;
62
- readonly StockStatus?: string;
63
- readonly StockLabel?: string;
64
- readonly Marketable?: boolean;
65
- readonly MerchantID?: number;
66
- readonly MerchantName?: string;
67
- readonly BuildingName?: string;
68
- readonly FloorName?: string;
69
- readonly UnitName?: string;
70
- readonly Labels?: readonly string[];
71
- readonly PromotionFacts?: readonly string[];
72
- }
73
-
74
- export interface JoyCityMallDirectoryDto {
75
- readonly MallID?: string;
76
- readonly MallName?: string;
77
- readonly Buildings?: ReadonlyArray<{
78
- readonly BuildingCode?: string;
79
- readonly BuildingName?: string;
80
- readonly Floors?: ReadonlyArray<{
81
- readonly FloorCode?: string;
82
- readonly FloorName?: string;
83
- readonly BusinessCategories?: readonly string[];
84
- readonly MerchantCount?: number;
85
- }>;
86
- }>;
87
- }
88
-
89
- export class JoyCityTransportGateway {
90
- readonly #transport: AuthenticatedTransport;
91
-
92
- constructor(transport: AuthenticatedTransport) {
93
- this.#transport = transport;
94
- Object.freeze(this);
95
- }
96
-
97
- async listMerchants(body: Record<string, unknown>): Promise<readonly JoyCityMerchantListItemDto[]> {
98
- return this.#post<readonly JoyCityMerchantListItemDto[]>(JOYCITY_READ_OPERATIONS.listMerchants, body);
99
- }
100
-
101
- async getMerchant(body: Record<string, unknown>): Promise<JoyCityMerchantDetailDto | null> {
102
- return this.#post<JoyCityMerchantDetailDto | null>(JOYCITY_READ_OPERATIONS.getMerchant, body);
103
- }
104
-
105
- async listCategories(body: Record<string, unknown>): Promise<readonly JoyCityCategoryDto[]> {
106
- return this.#post<readonly JoyCityCategoryDto[]>(JOYCITY_READ_OPERATIONS.listCategories, body);
107
- }
108
-
109
- async searchProducts(body: Record<string, unknown>): Promise<readonly JoyCityProductDto[]> {
110
- return this.#post<readonly JoyCityProductDto[]>(JOYCITY_READ_OPERATIONS.searchProducts, body);
111
- }
112
-
113
- async getProduct(body: Record<string, unknown>): Promise<JoyCityProductDto | null> {
114
- return this.#post<JoyCityProductDto | null>(JOYCITY_READ_OPERATIONS.getProduct, body);
115
- }
116
-
117
- async getMallDirectory(body: Record<string, unknown>): Promise<JoyCityMallDirectoryDto | null> {
118
- return this.#post<JoyCityMallDirectoryDto | null>(JOYCITY_READ_OPERATIONS.mallDirectory, body);
119
- }
120
-
121
- async #post<T>(path: string, body: Record<string, unknown>): Promise<T> {
122
- const response = (await this.#transport.request({ path, body })) as JoyCityResponse<T>;
123
- if (response.Code !== 1) {
124
- throw new Error(`JoyCity API 错误:Code=${response.Code}`);
125
- }
126
- return response.Data;
127
- }
128
- }
@@ -1,48 +0,0 @@
1
- {
2
- "schemaVersion": 1,
3
- "name": "module-shopping-guide",
4
- "version": "0.2.0",
5
- "kind": "business",
6
- "risk": { "level": "medium", "writeBoundary": "source" },
7
- "distribution": { "defaultMode": "codegen" },
8
- "contributes": {
9
- "handlers": ["shopping-guide"],
10
- "tools": [
11
- "recommend",
12
- "search-products",
13
- "product-facets",
14
- "get-product",
15
- "compare-products",
16
- "search-merchants",
17
- "get-merchant",
18
- "mall-directory",
19
- "get-location",
20
- "list-human-guides",
21
- "list-browsing-history",
22
- "list-nearby-malls",
23
- "list-categories",
24
- "search-knowledge",
25
- "customer-service-faq"
26
- ],
27
- "cards": [
28
- { "cardType": "product-list", "schemaVersion": 1 },
29
- { "cardType": "product-detail", "schemaVersion": 1 },
30
- { "cardType": "merchant-list", "schemaVersion": 1 },
31
- { "cardType": "merchant-detail", "schemaVersion": 1 },
32
- { "cardType": "category-list", "schemaVersion": 1 },
33
- { "cardType": "product-comparison", "schemaVersion": 1 },
34
- { "cardType": "mall-directory", "schemaVersion": 1 },
35
- { "cardType": "nearby-mall-list", "schemaVersion": 1 },
36
- { "cardType": "customer-service-faq", "schemaVersion": 1 },
37
- { "cardType": "human-guide-list", "schemaVersion": 1 },
38
- { "cardType": "location-handoff", "schemaVersion": 1 }
39
- ],
40
- "routes": [],
41
- "pages": [],
42
- "tabs": []
43
- },
44
- "dependencies": {
45
- "modules": [{ "id": "contracts-mall", "required": true }]
46
- },
47
- "env": []
48
- }