@ikas/code-components-mcp 1.4.0-beta.175 → 1.4.0-beta.177

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "generatedAt": "2026-08-24T11:34:54.069Z",
2
+ "generatedAt": "2026-08-28T13:39:31.656Z",
3
3
  "functions": [
4
4
  {
5
5
  "name": "apiListProductBrand",
@@ -3085,6 +3085,35 @@
3085
3085
  "IkasOrderGiftPackageLine"
3086
3086
  ]
3087
3087
  },
3088
+ {
3089
+ "name": "getIkasOrderGiftCardTotalPrice",
3090
+ "displayName": "getGiftCardTotalPrice",
3091
+ "signature": "function getIkasOrderGiftCardTotalPrice(order: IkasOrder): number",
3092
+ "description": "Returns the total amount covered by the gift cards (and store credits) applied to the order or cart.\n\nThis is a derived value, the API does not return it: it sums `amount` over `order.giftCardLines`.\nSubtract it from `order.totalFinalPrice` to get the amount still due.",
3093
+ "params": [
3094
+ {
3095
+ "name": "order",
3096
+ "description": "- The IkasOrder or IkasCart holding the gift card lines"
3097
+ }
3098
+ ],
3099
+ "returns": "The summed gift card amount, or 0 when no gift card is applied",
3100
+ "returnType": "number",
3101
+ "example": "```typescript\nimport { getIkasOrderGiftCardTotalPrice } from \"@ikas/bp-storefront\";\n\nconst giftCardTotal = getIkasOrderGiftCardTotalPrice(cart);\nconst remainingPrice = cart.totalFinalPrice - giftCardTotal;\n```",
3102
+ "categories": [
3103
+ "Order",
3104
+ "Cart"
3105
+ ],
3106
+ "related": [
3107
+ "removeGiftCardLine",
3108
+ "saveCouponCode"
3109
+ ],
3110
+ "isAsync": false,
3111
+ "isClass": false,
3112
+ "parameterTypes": [
3113
+ "IkasOrderGiftCardTotalPrice",
3114
+ "IkasOrder"
3115
+ ]
3116
+ },
3088
3117
  {
3089
3118
  "name": "getIkasOrderDistinctItemCount",
3090
3119
  "displayName": "getDistinctItemCount",
@@ -13168,6 +13197,37 @@
13168
13197
  "IkasCartOperationResult"
13169
13198
  ]
13170
13199
  },
13200
+ {
13201
+ "name": "removeGiftCardLine",
13202
+ "signature": "async function removeGiftCardLine(cart: IkasCart, giftCardId?: string | null): Promise<IkasCartOperationResult>",
13203
+ "description": "Remove a gift card (or store credit) line from the cart.\n\nGift cards are applied through `saveCouponCode` with the gift card code, and the applied\ncards are listed on `cart.giftCardLines`. Pass the `giftCardId` of the line to remove; when\nomitted, every gift card line is removed from the cart.",
13204
+ "params": [
13205
+ {
13206
+ "name": "cart",
13207
+ "description": "- The cart object"
13208
+ },
13209
+ {
13210
+ "name": "giftCardId",
13211
+ "description": "- The gift card to remove, or null/undefined to remove all of them"
13212
+ }
13213
+ ],
13214
+ "returns": "Result with success flag",
13215
+ "returnType": "Promise<IkasCartOperationResult>",
13216
+ "example": "```typescript\nimport { cartStore, removeGiftCardLine } from \"@ikas/bp-storefront\";\n\nasync function handleRemoveGiftCard(giftCardId: string) {\n if (!cartStore.cart) return;\n\n const result = await removeGiftCardLine(cartStore.cart, giftCardId);\n if (result.success) {\n showToast(\"Gift card removed\");\n }\n}\n```",
13217
+ "categories": [
13218
+ "Cart"
13219
+ ],
13220
+ "related": [
13221
+ "saveCouponCode",
13222
+ "getIkasOrderGiftCardTotalPrice"
13223
+ ],
13224
+ "isAsync": true,
13225
+ "isClass": false,
13226
+ "parameterTypes": [
13227
+ "IkasCart",
13228
+ "IkasCartOperationResult"
13229
+ ]
13230
+ },
13171
13231
  {
13172
13232
  "name": "getCart",
13173
13233
  "signature": "async function getCart(): Promise<void>",
@@ -1,5 +1,5 @@
1
1
  {
2
- "generatedAt": "2026-08-24T11:34:54.098Z",
2
+ "generatedAt": "2026-08-28T13:39:31.696Z",
3
3
  "types": [
4
4
  {
5
5
  "name": "TextElementTagTypes",
@@ -2467,6 +2467,7 @@
2467
2467
  "findExistingCartItemWithProduct",
2468
2468
  "saveCouponCode",
2469
2469
  "removeCouponCode",
2470
+ "removeGiftCardLine",
2470
2471
  "setCart"
2471
2472
  ]
2472
2473
  },
@@ -6320,6 +6321,77 @@
6320
6321
  "hasIkasOrderCustomer"
6321
6322
  ]
6322
6323
  },
6324
+ {
6325
+ "name": "IkasOrderGiftCardLine",
6326
+ "kind": "type",
6327
+ "domain": "order",
6328
+ "properties": [
6329
+ {
6330
+ "name": "id",
6331
+ "type": "string",
6332
+ "optional": false
6333
+ },
6334
+ {
6335
+ "name": "amount",
6336
+ "type": "number",
6337
+ "optional": false
6338
+ },
6339
+ {
6340
+ "name": "code",
6341
+ "type": "string",
6342
+ "optional": false
6343
+ },
6344
+ {
6345
+ "name": "giftCardId",
6346
+ "type": "string",
6347
+ "optional": false
6348
+ },
6349
+ {
6350
+ "name": "type",
6351
+ "type": "IkasGiftCardType | null",
6352
+ "optional": false
6353
+ },
6354
+ {
6355
+ "name": "appliedTransactions",
6356
+ "type": "IkasOrderGiftCardLineAppliedTransaction[]",
6357
+ "optional": false
6358
+ }
6359
+ ],
6360
+ "filePath": "order/gift-card-line/index.ts"
6361
+ },
6362
+ {
6363
+ "name": "IkasOrderGiftCardLineAppliedTransaction",
6364
+ "kind": "type",
6365
+ "domain": "order",
6366
+ "properties": [
6367
+ {
6368
+ "name": "id",
6369
+ "type": "string",
6370
+ "optional": false
6371
+ },
6372
+ {
6373
+ "name": "amount",
6374
+ "type": "number",
6375
+ "optional": false
6376
+ },
6377
+ {
6378
+ "name": "type",
6379
+ "type": "IkasTransactionType",
6380
+ "optional": false
6381
+ }
6382
+ ],
6383
+ "filePath": "order/gift-card-line/index.ts"
6384
+ },
6385
+ {
6386
+ "name": "IkasGiftCardType",
6387
+ "kind": "type",
6388
+ "domain": "order",
6389
+ "unionValues": [
6390
+ "GIFT_CARD",
6391
+ "STORE_CREDIT"
6392
+ ],
6393
+ "filePath": "order/gift-card-line/index.ts"
6394
+ },
6323
6395
  {
6324
6396
  "name": "IkasOrderGiftPackageLine",
6325
6397
  "kind": "type",
@@ -6411,6 +6483,11 @@
6411
6483
  "type": "string | null",
6412
6484
  "optional": false
6413
6485
  },
6486
+ {
6487
+ "name": "giftCardLines",
6488
+ "type": "IkasOrderGiftCardLine[] | null",
6489
+ "optional": false
6490
+ },
6414
6491
  {
6415
6492
  "name": "giftPackageLines",
6416
6493
  "type": "IkasOrderGiftPackageLine[] | null",
@@ -6524,6 +6601,7 @@
6524
6601
  ],
6525
6602
  "filePath": "order/index.ts",
6526
6603
  "relatedFunctions": [
6604
+ "getIkasOrderGiftCardTotalPrice",
6527
6605
  "getIkasOrderDistinctItemCount",
6528
6606
  "getIkasOrderTotalItemCount",
6529
6607
  "getIkasOrderDisplayedPackages",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/code-components-mcp",
3
- "version": "1.4.0-beta.175",
3
+ "version": "1.4.0-beta.177",
4
4
  "description": "MCP server for ikas code components documentation",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",