@sendora/mcp 1.8.6 → 1.8.7
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/errors.js
CHANGED
|
@@ -5,16 +5,6 @@ const retryAfter = (error) => error.retryAfter === null
|
|
|
5
5
|
? 'Wait a moment and try again.'
|
|
6
6
|
: `Wait ${String(error.retryAfter)} seconds and try again.`;
|
|
7
7
|
const unconfirmed = () => 'Nothing was confirmed, so a send may or may not have been accepted: look for it with search_messages before sending again.';
|
|
8
|
-
/** The limit on unpaid emails (docs/design/billing.md §3.5): a wait while a charge makes room, a send too large to ever fit, or a charge to pay first. */
|
|
9
|
-
const unpaidLimit = (error) => {
|
|
10
|
-
if (error.retryAfter !== null) {
|
|
11
|
-
return `A charge for the emails so far is under way and makes room once it is paid. Wait ${String(error.retryAfter)} seconds and try again.`;
|
|
12
|
-
}
|
|
13
|
-
if (error.priceOre !== null && error.limitOre !== null && error.priceOre > error.limitOre) {
|
|
14
|
-
return "This send alone costs more than the account's limit for unpaid emails, so it never fits as one. Send it in smaller parts, or write to support@sendora.se to have the limit raised.";
|
|
15
|
-
}
|
|
16
|
-
return `No charge under way makes room yet. An administrator sees what the account owes under Account › Billing (Konto › Fakturering) in the dashboard, ${DASHBOARD}/account/billing.`;
|
|
17
|
-
};
|
|
18
8
|
const capOwner = {
|
|
19
9
|
account: `An administrator raises the account's ceiling under Account › Usage (Konto › Användning) in the dashboard, ${DASHBOARD}/account/usage.`,
|
|
20
10
|
server: "The server's own cap is Sendora's to set; write to support to change it.",
|
|
@@ -35,7 +25,6 @@ const hints = {
|
|
|
35
25
|
read_only_connection: () => 'The person approved this connection without changes on live servers, and the account is read only through a connection. They can connect again and tick "Tillåt ändringar på liveservrar" on the approval page, or the change can be made on a test server.',
|
|
36
26
|
test_server_only: () => 'Through a connected app, keys, webhooks and what cannot be undone happen on test servers only. Make the change on a test server, or in the dashboard.',
|
|
37
27
|
payment_required: null,
|
|
38
|
-
unpaid_limit_reached: unpaidLimit,
|
|
39
28
|
account_paused: null,
|
|
40
29
|
account_not_active: null,
|
|
41
30
|
spam_complaint_locked: null,
|