@cloudcart/dev-mcp 0.2.4 → 0.2.5

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/data/admin.json CHANGED
@@ -15945,6 +15945,68 @@
15945
15945
  "isDeprecated": false,
15946
15946
  "deprecationReason": null
15947
15947
  },
15948
+ {
15949
+ "name": "getOrderInvoicePdf",
15950
+ "description": "Download the invoice PDF for an order. Returns the binary as base64 in `pdfContent`. The order must already have an invoice number — call `generateInvoiceNumber` first if `Order.documents.invoiceNumber` is null.",
15951
+ "args": [
15952
+ {
15953
+ "name": "id",
15954
+ "description": "Order ID.",
15955
+ "type": {
15956
+ "kind": "NON_NULL",
15957
+ "name": null,
15958
+ "ofType": {
15959
+ "kind": "SCALAR",
15960
+ "name": "ID",
15961
+ "ofType": null
15962
+ }
15963
+ },
15964
+ "defaultValue": null
15965
+ }
15966
+ ],
15967
+ "type": {
15968
+ "kind": "NON_NULL",
15969
+ "name": null,
15970
+ "ofType": {
15971
+ "kind": "OBJECT",
15972
+ "name": "OrderDocumentPdfResult",
15973
+ "ofType": null
15974
+ }
15975
+ },
15976
+ "isDeprecated": false,
15977
+ "deprecationReason": null
15978
+ },
15979
+ {
15980
+ "name": "getOrderReceiptPdf",
15981
+ "description": "Download the fiscal receipt PDF for an order. Returns the binary as base64 in `pdfContent`. The order must already have a receipt number (`Order.documents.receiptNumber`).",
15982
+ "args": [
15983
+ {
15984
+ "name": "id",
15985
+ "description": "Order ID.",
15986
+ "type": {
15987
+ "kind": "NON_NULL",
15988
+ "name": null,
15989
+ "ofType": {
15990
+ "kind": "SCALAR",
15991
+ "name": "ID",
15992
+ "ofType": null
15993
+ }
15994
+ },
15995
+ "defaultValue": null
15996
+ }
15997
+ ],
15998
+ "type": {
15999
+ "kind": "NON_NULL",
16000
+ "name": null,
16001
+ "ofType": {
16002
+ "kind": "OBJECT",
16003
+ "name": "OrderDocumentPdfResult",
16004
+ "ofType": null
16005
+ }
16006
+ },
16007
+ "isDeprecated": false,
16008
+ "deprecationReason": null
16009
+ },
15948
16010
  {
15949
16011
  "name": "toggleNotifyCustomer",
15950
16012
  "description": "Toggle customer notification setting on an order.",
@@ -36124,6 +36186,96 @@
36124
36186
  "isDeprecated": false,
36125
36187
  "deprecationReason": null
36126
36188
  },
36189
+ {
36190
+ "name": "changeOrderShippingPayer",
36191
+ "description": "Change the shipping payer side on an order (who pays the carrier — SENDER / RECEIVER / OTHER). Updates Order meta.side and re-runs the current provider's shipping flow so insurance, VAT and the quote are recalculated for the new payer. Available sides depend on provider and order state — paid / completed orders cannot move to RECEIVER.",
36192
+ "args": [
36193
+ {
36194
+ "name": "orderId",
36195
+ "description": "Order ID.",
36196
+ "type": {
36197
+ "kind": "NON_NULL",
36198
+ "name": null,
36199
+ "ofType": {
36200
+ "kind": "SCALAR",
36201
+ "name": "ID",
36202
+ "ofType": null
36203
+ }
36204
+ },
36205
+ "defaultValue": null
36206
+ },
36207
+ {
36208
+ "name": "side",
36209
+ "description": "Payer side. Must be one of the values returned by `Order.shipping.payerSides` for this order.",
36210
+ "type": {
36211
+ "kind": "NON_NULL",
36212
+ "name": null,
36213
+ "ofType": {
36214
+ "kind": "ENUM",
36215
+ "name": "ShippingPayerSide",
36216
+ "ofType": null
36217
+ }
36218
+ },
36219
+ "defaultValue": null
36220
+ }
36221
+ ],
36222
+ "type": {
36223
+ "kind": "NON_NULL",
36224
+ "name": null,
36225
+ "ofType": {
36226
+ "kind": "OBJECT",
36227
+ "name": "Order",
36228
+ "ofType": null
36229
+ }
36230
+ },
36231
+ "isDeprecated": false,
36232
+ "deprecationReason": null
36233
+ },
36234
+ {
36235
+ "name": "setOrderShippingInsurance",
36236
+ "description": "Toggle shipping insurance on an order. Re-runs the current provider with the new insurance flag. Rejects with reason `provider_rejected` when the provider does not support insurance.",
36237
+ "args": [
36238
+ {
36239
+ "name": "orderId",
36240
+ "description": "Order ID.",
36241
+ "type": {
36242
+ "kind": "NON_NULL",
36243
+ "name": null,
36244
+ "ofType": {
36245
+ "kind": "SCALAR",
36246
+ "name": "ID",
36247
+ "ofType": null
36248
+ }
36249
+ },
36250
+ "defaultValue": null
36251
+ },
36252
+ {
36253
+ "name": "enabled",
36254
+ "description": "Enable (true) or disable (false) shipping insurance.",
36255
+ "type": {
36256
+ "kind": "NON_NULL",
36257
+ "name": null,
36258
+ "ofType": {
36259
+ "kind": "SCALAR",
36260
+ "name": "Boolean",
36261
+ "ofType": null
36262
+ }
36263
+ },
36264
+ "defaultValue": null
36265
+ }
36266
+ ],
36267
+ "type": {
36268
+ "kind": "NON_NULL",
36269
+ "name": null,
36270
+ "ofType": {
36271
+ "kind": "OBJECT",
36272
+ "name": "Order",
36273
+ "ofType": null
36274
+ }
36275
+ },
36276
+ "isDeprecated": false,
36277
+ "deprecationReason": null
36278
+ },
36127
36279
  {
36128
36280
  "name": "validateDhlexpressAddress",
36129
36281
  "description": "Validate a DHL Express address.",
@@ -38204,6 +38356,81 @@
38204
38356
  "enumValues": null,
38205
38357
  "possibleTypes": null
38206
38358
  },
38359
+ {
38360
+ "kind": "OBJECT",
38361
+ "name": "OrderDocumentPdfResult",
38362
+ "description": "PDF result for fiscal documents (invoice/receipt). Returns binary as base64 in pdfContent.",
38363
+ "fields": [
38364
+ {
38365
+ "name": "success",
38366
+ "description": "True if a PDF was generated; false if the document does not exist for this order.",
38367
+ "args": [],
38368
+ "type": {
38369
+ "kind": "NON_NULL",
38370
+ "name": null,
38371
+ "ofType": {
38372
+ "kind": "SCALAR",
38373
+ "name": "Boolean",
38374
+ "ofType": null
38375
+ }
38376
+ },
38377
+ "isDeprecated": false,
38378
+ "deprecationReason": null
38379
+ },
38380
+ {
38381
+ "name": "message",
38382
+ "description": "Human-readable message — populated when success=false (e.g. document not generated yet).",
38383
+ "args": [],
38384
+ "type": {
38385
+ "kind": "SCALAR",
38386
+ "name": "String",
38387
+ "ofType": null
38388
+ },
38389
+ "isDeprecated": false,
38390
+ "deprecationReason": null
38391
+ },
38392
+ {
38393
+ "name": "pdfContent",
38394
+ "description": "PDF binary, base64-encoded. Decode and write to disk to obtain the file.",
38395
+ "args": [],
38396
+ "type": {
38397
+ "kind": "SCALAR",
38398
+ "name": "String",
38399
+ "ofType": null
38400
+ },
38401
+ "isDeprecated": false,
38402
+ "deprecationReason": null
38403
+ },
38404
+ {
38405
+ "name": "filename",
38406
+ "description": "Suggested filename (e.g. invoice-12345.pdf). Use this when saving locally.",
38407
+ "args": [],
38408
+ "type": {
38409
+ "kind": "SCALAR",
38410
+ "name": "String",
38411
+ "ofType": null
38412
+ },
38413
+ "isDeprecated": false,
38414
+ "deprecationReason": null
38415
+ },
38416
+ {
38417
+ "name": "contentType",
38418
+ "description": "MIME content type — always application/pdf when success=true.",
38419
+ "args": [],
38420
+ "type": {
38421
+ "kind": "SCALAR",
38422
+ "name": "String",
38423
+ "ofType": null
38424
+ },
38425
+ "isDeprecated": false,
38426
+ "deprecationReason": null
38427
+ }
38428
+ ],
38429
+ "inputFields": null,
38430
+ "interfaces": [],
38431
+ "enumValues": null,
38432
+ "possibleTypes": null
38433
+ },
38207
38434
  {
38208
38435
  "kind": "OBJECT",
38209
38436
  "name": "OrderNotes",
@@ -107798,6 +108025,35 @@
107798
108025
  ],
107799
108026
  "possibleTypes": null
107800
108027
  },
108028
+ {
108029
+ "kind": "ENUM",
108030
+ "name": "ShippingPayerSide",
108031
+ "description": "Who pays for the shipping waybill (used by createShippingWaybill / changeOrderShippingPayer). Each provider exposes which sides are valid via Order.shipping payer info.",
108032
+ "fields": null,
108033
+ "inputFields": null,
108034
+ "interfaces": null,
108035
+ "enumValues": [
108036
+ {
108037
+ "name": "SENDER",
108038
+ "description": "Sender (merchant) pays the carrier.",
108039
+ "isDeprecated": false,
108040
+ "deprecationReason": null
108041
+ },
108042
+ {
108043
+ "name": "RECEIVER",
108044
+ "description": "Receiver (customer) pays on delivery (cash on delivery scenarios).",
108045
+ "isDeprecated": false,
108046
+ "deprecationReason": null
108047
+ },
108048
+ {
108049
+ "name": "OTHER",
108050
+ "description": "Third-party / other payer.",
108051
+ "isDeprecated": false,
108052
+ "deprecationReason": null
108053
+ }
108054
+ ],
108055
+ "possibleTypes": null
108056
+ },
107801
108057
  {
107802
108058
  "kind": "OBJECT",
107803
108059
  "name": "ShippingSettings",
Binary file