|
1 | | -from typing import TypedDict |
2 | | - |
3 | | - |
4 | | -class TagsDict(TypedDict): |
5 | | - legacy: str |
6 | | - tiers: list[str] |
7 | | - automation: str | None |
8 | | - segmentation: str | None |
9 | | - |
10 | | - |
11 | | -class CategoryDict(TypedDict): |
12 | | - slug: str |
13 | | - topic: str |
14 | | - tags: TagsDict |
15 | | - |
16 | | - |
17 | | -BASE_CATEGORIES: dict[str, CategoryDict] = { |
18 | | - "payments": { |
19 | | - "slug": "payments", |
20 | | - "topic": "I need help with a billing or subscription question", |
21 | | - "tags": { |
22 | | - "legacy": "payments", |
23 | | - "tiers": ["t1-billing-and-subscriptions"], |
24 | | - "automation": None, |
25 | | - "segmentation": None, |
26 | | - }, |
27 | | - }, |
28 | | - "accounts_signin": { |
29 | | - "slug": "account-signin", |
30 | | - "topic": "I can't sign in to my Mozilla account or subscription", |
31 | | - "tags": { |
32 | | - "legacy": "accounts", |
33 | | - "tiers": ["t1-passwords-and-sign-in", "t2-sign-in", "t3-sign-in-failure"], |
34 | | - "automation": "ssa-sign-in-failure-automation", |
35 | | - "segmentation": None, |
36 | | - }, |
37 | | - }, |
38 | | - "general": { |
39 | | - "slug": "general", |
40 | | - "topic": "I want to share feedback or suggest a feature", |
41 | | - "tags": { |
42 | | - "legacy": "general", |
43 | | - "tiers": ["general"], |
44 | | - "automation": None, |
45 | | - "segmentation": None, |
46 | | - }, |
47 | | - }, |
48 | | - "not_listed": { |
49 | | - "slug": "not-listed", |
50 | | - "topic": "My issue isn't listed here", |
51 | | - "tags": { |
52 | | - "legacy": "not_listed", |
53 | | - "tiers": ["not_listed"], |
54 | | - "automation": None, |
55 | | - "segmentation": None, |
56 | | - }, |
57 | | - }, |
58 | | -} |
59 | | - |
60 | | -ZENDESK_CATEGORIES = { |
61 | | - "mozilla-vpn": [ |
62 | | - { |
63 | | - "slug": "vpn-connection-issues", |
64 | | - "topic": "I can't connect to Mozilla VPN", |
65 | | - "tags": { |
66 | | - "legacy": "technical", |
67 | | - "tiers": [ |
68 | | - "t1-performance-and-connectivity", |
69 | | - "t2-connectivity", |
70 | | - "t3-connection-failure", |
71 | | - ], |
72 | | - "automation": "ssa-connection-issues-automation", |
73 | | - "segmentation": None, |
74 | | - }, |
75 | | - }, |
76 | | - { |
77 | | - "slug": "vpn-installation-updates", |
78 | | - "topic": "I need help installing or updating Mozilla VPN", |
79 | | - "tags": { |
80 | | - "legacy": "technical", |
81 | | - "tiers": ["t1-installation-and-updates"], |
82 | | - "automation": None, |
83 | | - "segmentation": None, |
84 | | - }, |
85 | | - }, |
86 | | - { |
87 | | - "slug": "vpn-server-selection", |
88 | | - "topic": "I can't choose a VPN location", |
89 | | - "tags": { |
90 | | - "legacy": "technical", |
91 | | - "tiers": [ |
92 | | - "t1-performance-and-connectivity", |
93 | | - "t2-connectivity", |
94 | | - "t3-cant-select-server", |
95 | | - ], |
96 | | - "automation": None, |
97 | | - "segmentation": None, |
98 | | - }, |
99 | | - }, |
100 | | - *BASE_CATEGORIES.values(), |
101 | | - ], |
102 | | - "relay": [ |
103 | | - { |
104 | | - "slug": "relay-email-forwarding", |
105 | | - "topic": "I'm not receiving emails to my Relay mask", |
106 | | - "tags": { |
107 | | - "legacy": "technical", |
108 | | - "tiers": ["t1-privacy-and-security", "t2-masking", "t3-email-masking"], |
109 | | - "automation": None, |
110 | | - "segmentation": "seg-relay-no-fwd-deliver", |
111 | | - }, |
112 | | - }, |
113 | | - { |
114 | | - "slug": "relay-domain-change", |
115 | | - "topic": "I want to change my Relay email domain", |
116 | | - "tags": { |
117 | | - "legacy": "technical", |
118 | | - "tiers": ["t1-privacy-and-security", "t2-masking", "t3-email-masking"], |
119 | | - "automation": None, |
120 | | - "segmentation": "seg-relay-chg-domain", |
121 | | - }, |
122 | | - }, |
123 | | - *BASE_CATEGORIES.values(), |
124 | | - ], |
125 | | - "pocket": [ |
126 | | - BASE_CATEGORIES["not_listed"], |
127 | | - BASE_CATEGORIES["accounts_signin"], |
128 | | - ], |
129 | | - "mozilla-account": [ |
130 | | - { |
131 | | - "slug": "mozilla-account-sync", |
132 | | - "topic": "I need help with Firefox Sync", |
133 | | - "tags": { |
134 | | - "legacy": "accounts", |
135 | | - "tiers": ["t1-backup-recovery-and-sync"], |
136 | | - "automation": "ssa-sync-data-automation", |
137 | | - "segmentation": None, |
138 | | - }, |
139 | | - }, |
140 | | - { |
141 | | - "slug": "mozilla-account-delete", |
142 | | - "topic": "I want to delete my Mozilla account", |
143 | | - "tags": { |
144 | | - "legacy": "accounts", |
145 | | - "tiers": ["t1-accounts", "t2-account-management"], |
146 | | - "automation": None, |
147 | | - "segmentation": "seg-acct-delete", |
148 | | - }, |
149 | | - }, |
150 | | - *BASE_CATEGORIES.values(), |
151 | | - ], |
152 | | - "monitor": [ |
153 | | - { |
154 | | - "slug": "monitor-data-removal", |
155 | | - "topic": "My data removal is taking too long", |
156 | | - "tags": { |
157 | | - "legacy": "technical", |
158 | | - "tiers": ["t1-privacy-and-security", "t2-data-removal", "t3-data-brokers"], |
159 | | - "automation": None, |
160 | | - "segmentation": "seg-mntor-slow-remove", |
161 | | - }, |
162 | | - }, |
163 | | - { |
164 | | - "slug": "monitor-wrong-results", |
165 | | - "topic": "I'm seeing results that don't belong to me", |
166 | | - "tags": { |
167 | | - "legacy": "technical", |
168 | | - "tiers": [ |
169 | | - "t1-privacy-and-security", |
170 | | - "t2-data-removal", |
171 | | - "t3-privacy-protection-scan", |
172 | | - ], |
173 | | - "automation": None, |
174 | | - "segmentation": "seg-mntor-wrong-scan-result", |
175 | | - }, |
176 | | - }, |
177 | | - *BASE_CATEGORIES.values(), |
178 | | - ], |
179 | | - "mdn-plus": [ |
180 | | - *BASE_CATEGORIES.values(), |
181 | | - ], |
182 | | -} |
183 | | - |
184 | | -ZENDESK_CATEGORIES_LOGINLESS = { |
185 | | - "mozilla-account": [ |
186 | | - { |
187 | | - "slug": "fxa-2fa-lockout", |
188 | | - "topic": "My security code isn't working or is lost", |
189 | | - "tags": { |
190 | | - "legacy": "accounts", |
191 | | - "tiers": [ |
192 | | - "t1-passwords-and-sign-in", |
193 | | - "t2-two-factor-authentication", |
194 | | - "t3-two-factor-lockout", |
195 | | - ], |
196 | | - "automation": "ssa-2fa-automation", |
197 | | - "segmentation": None, |
198 | | - }, |
199 | | - }, |
200 | | - { |
201 | | - "slug": "fxa-emailverify-lockout", |
202 | | - "topic": "I can't recover my account using email", |
203 | | - "tags": { |
204 | | - "legacy": "accounts", |
205 | | - "tiers": ["t1-passwords-and-sign-in", "t2-sign-in", "t3-email-verify-lockout"], |
206 | | - "automation": "ssa-pwrdreset-automation", |
207 | | - "segmentation": None, |
208 | | - }, |
209 | | - }, |
210 | | - { |
211 | | - "slug": "fxa-reset-password", |
212 | | - "topic": "I forgot my password", |
213 | | - "tags": { |
214 | | - "legacy": "accounts", |
215 | | - "tiers": ["t1-passwords-and-sign-in", "t2-reset-passwords"], |
216 | | - "automation": "ssa-emailverify-automation", |
217 | | - "segmentation": None, |
218 | | - }, |
219 | | - }, |
220 | | - { |
221 | | - "slug": "fxa-remove3rdprtylogin", |
222 | | - "topic": "I'm having issues signing in with my Google or Apple ID", |
223 | | - "tags": { |
224 | | - "legacy": "accounts", |
225 | | - "tiers": ["t1-passwords-and-sign-in", "t2-sign-in", "t3-3rd-party-sign-in"], |
226 | | - "automation": None, |
227 | | - "segmentation": None, |
228 | | - }, |
229 | | - }, |
230 | | - ] |
231 | | -} |
232 | | - |
233 | | - |
234 | | -ZENDESK_LEGACY_MAPPING: dict[str, set] = { |
235 | | - "accounts": { |
236 | | - "t1-accounts", |
237 | | - "t1-passwords-and-sign-in", |
238 | | - }, |
239 | | - "technical": { |
240 | | - "t1-accessibility", |
241 | | - "t1-backup-recovery-and-sync", |
242 | | - "t1-browse", |
243 | | - "t1-download-and-save", |
244 | | - "t1-email-and-messaging", |
245 | | - "t1-installation-and-updates", |
246 | | - "t1-performance-and-connectivity", |
247 | | - "t1-privacy-and-security", |
248 | | - "t1-search-tag-and-share", |
249 | | - "t1-settings", |
250 | | - }, |
251 | | - "payment": {"t1-billing-and-subscriptions"}, |
252 | | -} |
0 commit comments