@carrierllc/mcp 0.11.16 → 0.11.17

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/index.js CHANGED
@@ -65,7 +65,7 @@ import {
65
65
  usageOverPeriodParams,
66
66
  verifyStorefront,
67
67
  withOcsListSummary
68
- } from "./chunk-Y7D6FHHT.js";
68
+ } from "./chunk-EHGZRVSO.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: Number(subscriberId),
10951
+ subscriber: { iccid: session.subscriber_iccid },
10981
10952
  packageTemplateId: session.package_template_id
10982
10953
  }
10983
10954
  );