@carrierllc/mcp 0.11.16 → 0.12.0
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/{chunk-Y7D6FHHT.js → chunk-J52VP7E7.js} +14 -2
- package/dist/chunk-J52VP7E7.js.map +1 -0
- package/dist/cli.js +22 -6
- package/dist/cli.js.map +1 -1
- package/dist/index.js +2 -31
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/plugin/carrier/agents/carrier-storefront-builder.md +3 -3
- package/plugin/carrier/skills/storefront/SKILL.md +2 -2
- package/templates/storefront/src/app/activate/[orderId]/ActivateClient.tsx +145 -14
- package/templates/storefront/src/app/activate/[orderId]/page.tsx +1 -1
- package/templates/storefront/src/app/api/checkout/guest/route.ts +72 -9
- package/templates/storefront/src/app/api/orders/[orderId]/cancel/route.ts +33 -0
- package/templates/storefront/src/app/api/orders/[orderId]/top-up-options/route.ts +28 -0
- package/templates/storefront/src/app/api/orders/[orderId]/usage/route.ts +25 -0
- package/templates/storefront/src/app/api/profile/phone/route.ts +1 -1
- package/templates/storefront/src/app/checkout/[templateId]/CheckoutClient.tsx +142 -39
- package/templates/storefront/src/app/checkout/success/CheckoutSuccessClient.tsx +1 -1
- package/templates/storefront/src/app/checkout/success/page.tsx +1 -1
- package/templates/storefront/src/app/dashboard/EsimControls.tsx +293 -0
- package/templates/storefront/src/app/dashboard/page.tsx +12 -1
- package/templates/storefront/src/app/shop/ShopClient.tsx +126 -5
- package/templates/storefront/src/app/sign-up/[[...sign-up]]/StorefrontSignUpClient.tsx +1 -1
- package/templates/storefront/src/app/sign-up/[[...sign-up]]/page.tsx +1 -1
- package/templates/storefront/src/brand.config.ts +19 -0
- package/templates/storefront/src/components/checkout/EmbeddedStripeCheckout.tsx +191 -0
- package/templates/storefront/src/components/landing/PlanCard.tsx +12 -4
- package/templates/storefront/src/lib/checkout-order-claim.ts +68 -4
- package/templates/storefront/src/lib/order-route-guard.ts +85 -0
- package/templates/storefront/src/middleware.ts +1 -1
- package/templates/storefront/src/vendor/carrier/client.ts +86 -1
- package/templates/storefront/src/vendor/carrier/types.ts +34 -0
- package/templates/storefront/src/vendor/geo/index.ts +45 -0
- package/templates/storefront/src/vendor/ui/brand.ts +8 -1
- package/dist/chunk-Y7D6FHHT.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
usageOverPeriodParams,
|
|
66
66
|
verifyStorefront,
|
|
67
67
|
withOcsListSummary
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-J52VP7E7.js";
|
|
69
69
|
import "./chunk-SHKKVIIA.js";
|
|
70
70
|
|
|
71
71
|
// src/index.ts
|
|
@@ -10943,41 +10943,12 @@ function registerProvisioningWizard(server2, ctx) {
|
|
|
10943
10943
|
isError: true
|
|
10944
10944
|
};
|
|
10945
10945
|
}
|
|
10946
|
-
const subRecord = await safeCallWithToken(
|
|
10947
|
-
client2,
|
|
10948
|
-
token2,
|
|
10949
|
-
"getSingleSubscriber",
|
|
10950
|
-
{ iccid: session.subscriber_iccid }
|
|
10951
|
-
);
|
|
10952
|
-
if (subRecord.error || !subRecord.data) {
|
|
10953
|
-
return {
|
|
10954
|
-
content: [
|
|
10955
|
-
{
|
|
10956
|
-
type: "text",
|
|
10957
|
-
text: `Provisioning failed: could not resolve subscriber for ICCID ${session.subscriber_iccid}: ${subRecord.error ?? "empty response"}`
|
|
10958
|
-
}
|
|
10959
|
-
],
|
|
10960
|
-
isError: true
|
|
10961
|
-
};
|
|
10962
|
-
}
|
|
10963
|
-
const subscriberId = subRecord.data.id ?? subRecord.data.subscriberId;
|
|
10964
|
-
if (subscriberId === void 0) {
|
|
10965
|
-
return {
|
|
10966
|
-
content: [
|
|
10967
|
-
{
|
|
10968
|
-
type: "text",
|
|
10969
|
-
text: `Provisioning failed: getSingleSubscriber returned no id for ICCID ${session.subscriber_iccid}`
|
|
10970
|
-
}
|
|
10971
|
-
],
|
|
10972
|
-
isError: true
|
|
10973
|
-
};
|
|
10974
|
-
}
|
|
10975
10946
|
const result2 = await safeCallWithToken(
|
|
10976
10947
|
client2,
|
|
10977
10948
|
token2,
|
|
10978
10949
|
"affectPackageToSubscriber",
|
|
10979
10950
|
{
|
|
10980
|
-
subscriber:
|
|
10951
|
+
subscriber: { iccid: session.subscriber_iccid },
|
|
10981
10952
|
packageTemplateId: session.package_template_id
|
|
10982
10953
|
}
|
|
10983
10954
|
);
|