@influenzanet/case-web-app-core 2.9.5-staging → 2.9.7-staging
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/build/api/errorMessages.d.ts +4 -0
- package/build/components/dialogs/GlobalDialogs/AddPhone.d.ts +1 -1
- package/build/components/dialogs/GlobalDialogs/VerifyWhatsApp.d.ts +1 -1
- package/build/index.es.js +309 -158
- package/build/index.es.js.map +1 -1
- package/build/index.js +309 -158
- package/build/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -10,4 +10,8 @@ export declare const BACKEND_ERRORS: {
|
|
|
10
10
|
readonly CODE_EXPIRED: "verification code expired";
|
|
11
11
|
readonly INVALID_CODE: "invalid verification code";
|
|
12
12
|
readonly RATE_LIMITED: "too many phone verification attempts, try again later";
|
|
13
|
+
readonly RECIPIENT_NOT_ALLOWED: "phone number not enabled to receive WhatsApp messages";
|
|
13
14
|
};
|
|
15
|
+
export declare const logRequestFailure: (context: string, error: unknown) => void;
|
|
16
|
+
export declare type PhoneErrorKind = "rateLimited" | "recipientNotAllowed" | "invalidCode" | "codeExpired" | "tooManyAttempts" | "unknown";
|
|
17
|
+
export declare const classifyPhoneError: (error: unknown) => PhoneErrorKind;
|