返回 CodeWhale
interest-options.ts
根目录 / web / lib / merch / interest-options.ts
1 /** Willingness-to-pay research, in major currency units. Never checkout prices or FX conversions. */
2 export const MERCH_INTEREST_ITEMS = [
3 { id: "signature-tee", group: "cotton", prices: { cny: [59, 69, 89], usd: [12, 15, 19] } },
4 { id: "classic-tee", group: "cotton", prices: { cny: [59, 69, 89], usd: [12, 15, 19] } },
5 { id: "whale-bro-tee", group: "cotton", prices: { cny: [59, 69, 89], usd: [12, 15, 19] } },
6 { id: "mascot-tee", group: "cotton", prices: { cny: [59, 69, 89], usd: [12, 15, 19] } },
7 { id: "tide-tee", group: "stretch", prices: { cny: [69, 89, 109], usd: [15, 19, 23] } },
8 { id: "signature-polo", group: "stretch", prices: { cny: [99, 129, 159], usd: [20, 25, 30] } },
9 { id: "everyday-hoodie", group: "stretch", prices: { cny: [129, 159, 199], usd: [25, 30, 36] } },
10 { id: "mascot-hoodie", group: "stretch", prices: { cny: [99, 129, 159], usd: [22, 28, 34] } },
11 { id: "mousepad", group: "desk", prices: { cny: [29, 39, 49], usd: [6, 8, 10] } },
12 { id: "deskmat", group: "desk", prices: { cny: [49, 69, 89], usd: [12, 15, 19] } },
13 { id: "stickers", group: "desk", prices: { cny: [9, 19, 29], usd: [3, 5, 8] } },
14 { id: "plush", group: "plush", prices: { cny: [99, 129, 149], usd: [20, 25, 30] } },
15 ] as const;
16
17 export type MerchInterestItemId = typeof MERCH_INTEREST_ITEMS[number]["id"];
18 export type MerchInterestCurrency = "cny" | "usd";
19 export type MerchInterestPriceChoice = "low" | "mid" | "high" | "none" | "unsure";
20 export const MERCH_INTEREST_PRICE_CHOICES = ["low", "mid", "high", "none", "unsure"] as const;
21
21 lines TYPESCRIPT