@cloudcart/dev-mcp 0.2.14 → 0.2.16

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
@@ -5924,6 +5924,68 @@
5924
5924
  "isDeprecated": false,
5925
5925
  "deprecationReason": null
5926
5926
  },
5927
+ {
5928
+ "name": "storefrontWidgets",
5929
+ "description": "List all configurable storefront widgets (theme modules) for the current\nsite / theme, each tagged with its origin (CORE / THEME / APP) plus its\ncurrent settings, defaults and validation schema.\n\nUse this — not the page builder `availableWidgets` query, which covers a\ndifferent widget system — to discover and audit the storefront modules a\nsite exposes.",
5930
+ "args": [
5931
+ {
5932
+ "name": "filter",
5933
+ "description": "Filters for narrowing results.",
5934
+ "type": {
5935
+ "kind": "INPUT_OBJECT",
5936
+ "name": "StorefrontWidgetFilterInput",
5937
+ "ofType": null
5938
+ },
5939
+ "defaultValue": null
5940
+ }
5941
+ ],
5942
+ "type": {
5943
+ "kind": "NON_NULL",
5944
+ "name": null,
5945
+ "ofType": {
5946
+ "kind": "LIST",
5947
+ "name": null,
5948
+ "ofType": {
5949
+ "kind": "NON_NULL",
5950
+ "name": null,
5951
+ "ofType": {
5952
+ "kind": "OBJECT",
5953
+ "name": "StorefrontWidget",
5954
+ "ofType": null
5955
+ }
5956
+ }
5957
+ }
5958
+ },
5959
+ "isDeprecated": false,
5960
+ "deprecationReason": null
5961
+ },
5962
+ {
5963
+ "name": "storefrontWidget",
5964
+ "description": "Find a single storefront widget by its mapping (e.g. 'layout.header').",
5965
+ "args": [
5966
+ {
5967
+ "name": "mapping",
5968
+ "description": "Widget mapping.",
5969
+ "type": {
5970
+ "kind": "NON_NULL",
5971
+ "name": null,
5972
+ "ofType": {
5973
+ "kind": "SCALAR",
5974
+ "name": "String",
5975
+ "ofType": null
5976
+ }
5977
+ },
5978
+ "defaultValue": null
5979
+ }
5980
+ ],
5981
+ "type": {
5982
+ "kind": "OBJECT",
5983
+ "name": "StorefrontWidget",
5984
+ "ofType": null
5985
+ },
5986
+ "isDeprecated": false,
5987
+ "deprecationReason": null
5988
+ },
5927
5989
  {
5928
5990
  "name": "generalSettings",
5929
5991
  "description": "Get general store settings.",
@@ -7061,6 +7123,68 @@
7061
7123
  "isDeprecated": false,
7062
7124
  "deprecationReason": null
7063
7125
  },
7126
+ {
7127
+ "name": "paymentProviders",
7128
+ "description": "List the payment providers available to the current site, each with its\nreal activation state (PaymentProviderConfiguration.active).\n\nUse this — not applications(filter: { group: \"payment\" }) — to determine\nwhether a payment method is actually activated for checkout. The\nApplication.isActive flag reads a different store that is not kept in sync\nwith payment activation.",
7129
+ "args": [
7130
+ {
7131
+ "name": "filter",
7132
+ "description": "Filters for narrowing results.",
7133
+ "type": {
7134
+ "kind": "INPUT_OBJECT",
7135
+ "name": "PaymentProviderFilterInput",
7136
+ "ofType": null
7137
+ },
7138
+ "defaultValue": null
7139
+ }
7140
+ ],
7141
+ "type": {
7142
+ "kind": "NON_NULL",
7143
+ "name": null,
7144
+ "ofType": {
7145
+ "kind": "LIST",
7146
+ "name": null,
7147
+ "ofType": {
7148
+ "kind": "NON_NULL",
7149
+ "name": null,
7150
+ "ofType": {
7151
+ "kind": "OBJECT",
7152
+ "name": "PaymentProvider",
7153
+ "ofType": null
7154
+ }
7155
+ }
7156
+ }
7157
+ },
7158
+ "isDeprecated": false,
7159
+ "deprecationReason": null
7160
+ },
7161
+ {
7162
+ "name": "paymentProvider",
7163
+ "description": "Find a single payment provider by key (e.g. cod).",
7164
+ "args": [
7165
+ {
7166
+ "name": "key",
7167
+ "description": "The payment provider key.",
7168
+ "type": {
7169
+ "kind": "NON_NULL",
7170
+ "name": null,
7171
+ "ofType": {
7172
+ "kind": "SCALAR",
7173
+ "name": "String",
7174
+ "ofType": null
7175
+ }
7176
+ },
7177
+ "defaultValue": null
7178
+ }
7179
+ ],
7180
+ "type": {
7181
+ "kind": "OBJECT",
7182
+ "name": "PaymentProvider",
7183
+ "ofType": null
7184
+ },
7185
+ "isDeprecated": false,
7186
+ "deprecationReason": null
7187
+ },
7064
7188
  {
7065
7189
  "name": "productReviewSettings",
7066
7190
  "description": "Get Product Review app settings. Returns null if the app is not installed.",
@@ -27365,6 +27489,82 @@
27365
27489
  "isDeprecated": false,
27366
27490
  "deprecationReason": null
27367
27491
  },
27492
+ {
27493
+ "name": "saveStorefrontWidgetSettings",
27494
+ "description": "Save settings for a storefront widget. The settings object is validated\nagainst the widget's settingsSchema using the same backend rules as the\nstorefront admin (App\\\\Helper\\\\Validator); rejected fields are reported as a\n422 validation error. Plan-gated widgets require the matching paid feature.\nReturns the updated widget.",
27495
+ "args": [
27496
+ {
27497
+ "name": "mapping",
27498
+ "description": "Widget mapping (e.g. 'layout.header').",
27499
+ "type": {
27500
+ "kind": "NON_NULL",
27501
+ "name": null,
27502
+ "ofType": {
27503
+ "kind": "SCALAR",
27504
+ "name": "String",
27505
+ "ofType": null
27506
+ }
27507
+ },
27508
+ "defaultValue": null
27509
+ },
27510
+ {
27511
+ "name": "settings",
27512
+ "description": "Settings object — keys must match the widget's settingsSchema.",
27513
+ "type": {
27514
+ "kind": "NON_NULL",
27515
+ "name": null,
27516
+ "ofType": {
27517
+ "kind": "SCALAR",
27518
+ "name": "JSON",
27519
+ "ofType": null
27520
+ }
27521
+ },
27522
+ "defaultValue": null
27523
+ }
27524
+ ],
27525
+ "type": {
27526
+ "kind": "NON_NULL",
27527
+ "name": null,
27528
+ "ofType": {
27529
+ "kind": "OBJECT",
27530
+ "name": "StorefrontWidget",
27531
+ "ofType": null
27532
+ }
27533
+ },
27534
+ "isDeprecated": false,
27535
+ "deprecationReason": null
27536
+ },
27537
+ {
27538
+ "name": "resetStorefrontWidgetSettings",
27539
+ "description": "Reset a storefront widget to its default settings (removes the saved override). Returns the reset widget.",
27540
+ "args": [
27541
+ {
27542
+ "name": "mapping",
27543
+ "description": "Widget mapping (e.g. 'layout.header').",
27544
+ "type": {
27545
+ "kind": "NON_NULL",
27546
+ "name": null,
27547
+ "ofType": {
27548
+ "kind": "SCALAR",
27549
+ "name": "String",
27550
+ "ofType": null
27551
+ }
27552
+ },
27553
+ "defaultValue": null
27554
+ }
27555
+ ],
27556
+ "type": {
27557
+ "kind": "NON_NULL",
27558
+ "name": null,
27559
+ "ofType": {
27560
+ "kind": "OBJECT",
27561
+ "name": "StorefrontWidget",
27562
+ "ofType": null
27563
+ }
27564
+ },
27565
+ "isDeprecated": false,
27566
+ "deprecationReason": null
27567
+ },
27368
27568
  {
27369
27569
  "name": "updateGeneralSettings",
27370
27570
  "description": "Update general store settings.",
@@ -48476,6 +48676,29 @@
48476
48676
  "isDeprecated": false,
48477
48677
  "deprecationReason": null
48478
48678
  },
48679
+ {
48680
+ "name": "imageUrl",
48681
+ "description": "Thumbnail URL for the main product image. Pass a size string (e.g. '150x150') or omit for the original.",
48682
+ "args": [
48683
+ {
48684
+ "name": "size",
48685
+ "description": null,
48686
+ "type": {
48687
+ "kind": "SCALAR",
48688
+ "name": "String",
48689
+ "ofType": null
48690
+ },
48691
+ "defaultValue": "\"150x150\""
48692
+ }
48693
+ ],
48694
+ "type": {
48695
+ "kind": "SCALAR",
48696
+ "name": "String",
48697
+ "ofType": null
48698
+ },
48699
+ "isDeprecated": false,
48700
+ "deprecationReason": null
48701
+ },
48479
48702
  {
48480
48703
  "name": "p1Parameter",
48481
48704
  "description": "Parameter 1 definition (if applicable).",
@@ -84755,6 +84978,238 @@
84755
84978
  "enumValues": null,
84756
84979
  "possibleTypes": null
84757
84980
  },
84981
+ {
84982
+ "kind": "ENUM",
84983
+ "name": "StorefrontWidgetSource",
84984
+ "description": "Where a storefront widget (module) originates.",
84985
+ "fields": null,
84986
+ "inputFields": null,
84987
+ "interfaces": null,
84988
+ "enumValues": [
84989
+ {
84990
+ "name": "CORE",
84991
+ "description": "Platform default widget, available regardless of the active theme.",
84992
+ "isDeprecated": false,
84993
+ "deprecationReason": null
84994
+ },
84995
+ {
84996
+ "name": "THEME",
84997
+ "description": "Defined by the active theme.",
84998
+ "isDeprecated": false,
84999
+ "deprecationReason": null
85000
+ },
85001
+ {
85002
+ "name": "APP",
85003
+ "description": "Provided by an installed app / integration.",
85004
+ "isDeprecated": false,
85005
+ "deprecationReason": null
85006
+ }
85007
+ ],
85008
+ "possibleTypes": null
85009
+ },
85010
+ {
85011
+ "kind": "OBJECT",
85012
+ "name": "StorefrontWidget",
85013
+ "description": "A storefront widget (theme module) — the configurable blocks listed under\nStorefront → Widgets in the admin. Mirrors the BuilderWidget shape (map,\ndefaultSettings, settingsSchema) and adds the widget's origin (`source`),\nwhether it is editable / plan-gated, and its current effective `settings`.",
85014
+ "fields": [
85015
+ {
85016
+ "name": "mapping",
85017
+ "description": "Stable widget identifier — pass this to the save / reset mutations (e.g. 'layout.header', 'store.cart').",
85018
+ "args": [],
85019
+ "type": {
85020
+ "kind": "NON_NULL",
85021
+ "name": null,
85022
+ "ofType": {
85023
+ "kind": "SCALAR",
85024
+ "name": "String",
85025
+ "ofType": null
85026
+ }
85027
+ },
85028
+ "isDeprecated": false,
85029
+ "deprecationReason": null
85030
+ },
85031
+ {
85032
+ "name": "map",
85033
+ "description": "Internal widget map (the lib\\widget map), when it differs from `mapping`.",
85034
+ "args": [],
85035
+ "type": {
85036
+ "kind": "SCALAR",
85037
+ "name": "String",
85038
+ "ofType": null
85039
+ },
85040
+ "isDeprecated": false,
85041
+ "deprecationReason": null
85042
+ },
85043
+ {
85044
+ "name": "name",
85045
+ "description": "Human-readable, translated widget name.",
85046
+ "args": [],
85047
+ "type": {
85048
+ "kind": "NON_NULL",
85049
+ "name": null,
85050
+ "ofType": {
85051
+ "kind": "SCALAR",
85052
+ "name": "String",
85053
+ "ofType": null
85054
+ }
85055
+ },
85056
+ "isDeprecated": false,
85057
+ "deprecationReason": null
85058
+ },
85059
+ {
85060
+ "name": "description",
85061
+ "description": "Translated widget description.",
85062
+ "args": [],
85063
+ "type": {
85064
+ "kind": "SCALAR",
85065
+ "name": "String",
85066
+ "ofType": null
85067
+ },
85068
+ "isDeprecated": false,
85069
+ "deprecationReason": null
85070
+ },
85071
+ {
85072
+ "name": "category",
85073
+ "description": "Category the widget is grouped under (store, user, blog, contact, extra, custom, layout).",
85074
+ "args": [],
85075
+ "type": {
85076
+ "kind": "NON_NULL",
85077
+ "name": null,
85078
+ "ofType": {
85079
+ "kind": "SCALAR",
85080
+ "name": "String",
85081
+ "ofType": null
85082
+ }
85083
+ },
85084
+ "isDeprecated": false,
85085
+ "deprecationReason": null
85086
+ },
85087
+ {
85088
+ "name": "group",
85089
+ "description": "Optional sub-group within the category.",
85090
+ "args": [],
85091
+ "type": {
85092
+ "kind": "SCALAR",
85093
+ "name": "String",
85094
+ "ofType": null
85095
+ },
85096
+ "isDeprecated": false,
85097
+ "deprecationReason": null
85098
+ },
85099
+ {
85100
+ "name": "source",
85101
+ "description": "Where the widget comes from: CORE (platform), THEME (active theme) or APP (installed app).",
85102
+ "args": [],
85103
+ "type": {
85104
+ "kind": "NON_NULL",
85105
+ "name": null,
85106
+ "ofType": {
85107
+ "kind": "ENUM",
85108
+ "name": "StorefrontWidgetSource",
85109
+ "ofType": null
85110
+ }
85111
+ },
85112
+ "isDeprecated": false,
85113
+ "deprecationReason": null
85114
+ },
85115
+ {
85116
+ "name": "editable",
85117
+ "description": "Whether the widget's settings can be edited.",
85118
+ "args": [],
85119
+ "type": {
85120
+ "kind": "NON_NULL",
85121
+ "name": null,
85122
+ "ofType": {
85123
+ "kind": "SCALAR",
85124
+ "name": "Boolean",
85125
+ "ofType": null
85126
+ }
85127
+ },
85128
+ "isDeprecated": false,
85129
+ "deprecationReason": null
85130
+ },
85131
+ {
85132
+ "name": "isPaid",
85133
+ "description": "Whether the widget is gated behind a paid plan feature.",
85134
+ "args": [],
85135
+ "type": {
85136
+ "kind": "NON_NULL",
85137
+ "name": null,
85138
+ "ofType": {
85139
+ "kind": "SCALAR",
85140
+ "name": "Boolean",
85141
+ "ofType": null
85142
+ }
85143
+ },
85144
+ "isDeprecated": false,
85145
+ "deprecationReason": null
85146
+ },
85147
+ {
85148
+ "name": "paidFeature",
85149
+ "description": "Plan feature key required to configure the widget when `isPaid` is true.",
85150
+ "args": [],
85151
+ "type": {
85152
+ "kind": "SCALAR",
85153
+ "name": "String",
85154
+ "ofType": null
85155
+ },
85156
+ "isDeprecated": false,
85157
+ "deprecationReason": null
85158
+ },
85159
+ {
85160
+ "name": "settings",
85161
+ "description": "Current effective settings (saved overrides merged with the defaults).",
85162
+ "args": [],
85163
+ "type": {
85164
+ "kind": "NON_NULL",
85165
+ "name": null,
85166
+ "ofType": {
85167
+ "kind": "SCALAR",
85168
+ "name": "JSON",
85169
+ "ofType": null
85170
+ }
85171
+ },
85172
+ "isDeprecated": false,
85173
+ "deprecationReason": null
85174
+ },
85175
+ {
85176
+ "name": "defaultSettings",
85177
+ "description": "Default settings template for the widget.",
85178
+ "args": [],
85179
+ "type": {
85180
+ "kind": "NON_NULL",
85181
+ "name": null,
85182
+ "ofType": {
85183
+ "kind": "SCALAR",
85184
+ "name": "JSON",
85185
+ "ofType": null
85186
+ }
85187
+ },
85188
+ "isDeprecated": false,
85189
+ "deprecationReason": null
85190
+ },
85191
+ {
85192
+ "name": "settingsSchema",
85193
+ "description": "Settings validation schema. Keys are setting names, values are restriction rules:\n- false: no validation\n- 'bool': boolean\n- 'char:min,max': string length\n- 'int:min,max': integer range\n- 'in:val1,val2': enum\n- 'url': URL validation\nThe save mutation enforces these exactly as the storefront admin does.",
85194
+ "args": [],
85195
+ "type": {
85196
+ "kind": "NON_NULL",
85197
+ "name": null,
85198
+ "ofType": {
85199
+ "kind": "SCALAR",
85200
+ "name": "JSON",
85201
+ "ofType": null
85202
+ }
85203
+ },
85204
+ "isDeprecated": false,
85205
+ "deprecationReason": null
85206
+ }
85207
+ ],
85208
+ "inputFields": null,
85209
+ "interfaces": [],
85210
+ "enumValues": null,
85211
+ "possibleTypes": null
85212
+ },
84758
85213
  {
84759
85214
  "kind": "INPUT_OBJECT",
84760
85215
  "name": "CreatePageInput",
@@ -85469,6 +85924,47 @@
85469
85924
  ],
85470
85925
  "possibleTypes": null
85471
85926
  },
85927
+ {
85928
+ "kind": "INPUT_OBJECT",
85929
+ "name": "StorefrontWidgetFilterInput",
85930
+ "description": "Filters for the storefrontWidgets query.",
85931
+ "fields": null,
85932
+ "inputFields": [
85933
+ {
85934
+ "name": "category",
85935
+ "description": "Keep only widgets in this category (store, user, blog, contact, extra, custom, layout).",
85936
+ "type": {
85937
+ "kind": "SCALAR",
85938
+ "name": "String",
85939
+ "ofType": null
85940
+ },
85941
+ "defaultValue": null
85942
+ },
85943
+ {
85944
+ "name": "source",
85945
+ "description": "Keep only widgets from this origin (CORE / THEME / APP).",
85946
+ "type": {
85947
+ "kind": "ENUM",
85948
+ "name": "StorefrontWidgetSource",
85949
+ "ofType": null
85950
+ },
85951
+ "defaultValue": null
85952
+ },
85953
+ {
85954
+ "name": "editableOnly",
85955
+ "description": "Keep only editable widgets. The listing is already limited to editable widgets, so this is normally a no-op.",
85956
+ "type": {
85957
+ "kind": "SCALAR",
85958
+ "name": "Boolean",
85959
+ "ofType": null
85960
+ },
85961
+ "defaultValue": null
85962
+ }
85963
+ ],
85964
+ "interfaces": null,
85965
+ "enumValues": null,
85966
+ "possibleTypes": null
85967
+ },
85472
85968
  {
85473
85969
  "kind": "ENUM",
85474
85970
  "name": "TaxType",
@@ -97808,6 +98304,152 @@
97808
98304
  "enumValues": null,
97809
98305
  "possibleTypes": null
97810
98306
  },
98307
+ {
98308
+ "kind": "OBJECT",
98309
+ "name": "PaymentProvider",
98310
+ "description": "A payment provider (payment method) on the current site, with its real\nactivation state.\n\nUse this instead of `applications(filter: { group: \"payment\" })` to tell\nwhether a payment method is actually turned on for checkout. `Application.isActive`\nreads the generic app-install flag (the `apps` table), which is NOT kept in\nsync with the payment Activate/Deactivate toggle. `PaymentProvider.isActive`\nreads the authoritative `PaymentProviderConfiguration.active` value that the\nadmin payment page writes.",
98311
+ "fields": [
98312
+ {
98313
+ "name": "key",
98314
+ "description": "Payment provider key (e.g. cod, stripe, borica_way4).",
98315
+ "args": [],
98316
+ "type": {
98317
+ "kind": "NON_NULL",
98318
+ "name": null,
98319
+ "ofType": {
98320
+ "kind": "SCALAR",
98321
+ "name": "String",
98322
+ "ofType": null
98323
+ }
98324
+ },
98325
+ "isDeprecated": false,
98326
+ "deprecationReason": null
98327
+ },
98328
+ {
98329
+ "name": "name",
98330
+ "description": "Display name (the configuration title if set, otherwise the provider name).",
98331
+ "args": [],
98332
+ "type": {
98333
+ "kind": "NON_NULL",
98334
+ "name": null,
98335
+ "ofType": {
98336
+ "kind": "SCALAR",
98337
+ "name": "String",
98338
+ "ofType": null
98339
+ }
98340
+ },
98341
+ "isDeprecated": false,
98342
+ "deprecationReason": null
98343
+ },
98344
+ {
98345
+ "name": "group",
98346
+ "description": "Provider group (always payment).",
98347
+ "args": [],
98348
+ "type": {
98349
+ "kind": "SCALAR",
98350
+ "name": "String",
98351
+ "ofType": null
98352
+ },
98353
+ "isDeprecated": false,
98354
+ "deprecationReason": null
98355
+ },
98356
+ {
98357
+ "name": "isInstalled",
98358
+ "description": "Whether the payment method is installed on the current site (a configuration record exists).",
98359
+ "args": [],
98360
+ "type": {
98361
+ "kind": "NON_NULL",
98362
+ "name": null,
98363
+ "ofType": {
98364
+ "kind": "SCALAR",
98365
+ "name": "Boolean",
98366
+ "ofType": null
98367
+ }
98368
+ },
98369
+ "isDeprecated": false,
98370
+ "deprecationReason": null
98371
+ },
98372
+ {
98373
+ "name": "isActive",
98374
+ "description": "Whether the payment method is activated for checkout — the value of the\nActivate/Deactivate toggle on the admin payment page. Reads\nPaymentProviderConfiguration.active; this is the authoritative flag, NOT\nthe generic Application.isActive.",
98375
+ "args": [],
98376
+ "type": {
98377
+ "kind": "NON_NULL",
98378
+ "name": null,
98379
+ "ofType": {
98380
+ "kind": "SCALAR",
98381
+ "name": "Boolean",
98382
+ "ofType": null
98383
+ }
98384
+ },
98385
+ "isDeprecated": false,
98386
+ "deprecationReason": null
98387
+ },
98388
+ {
98389
+ "name": "isConfigured",
98390
+ "description": "Whether the provider is configured (a configuration record exists).",
98391
+ "args": [],
98392
+ "type": {
98393
+ "kind": "NON_NULL",
98394
+ "name": null,
98395
+ "ofType": {
98396
+ "kind": "SCALAR",
98397
+ "name": "Boolean",
98398
+ "ofType": null
98399
+ }
98400
+ },
98401
+ "isDeprecated": false,
98402
+ "deprecationReason": null
98403
+ },
98404
+ {
98405
+ "name": "image",
98406
+ "description": "Logo image URL (custom uploaded configuration image if present, otherwise the app icon).",
98407
+ "args": [],
98408
+ "type": {
98409
+ "kind": "SCALAR",
98410
+ "name": "String",
98411
+ "ofType": null
98412
+ },
98413
+ "isDeprecated": false,
98414
+ "deprecationReason": null
98415
+ }
98416
+ ],
98417
+ "inputFields": null,
98418
+ "interfaces": [],
98419
+ "enumValues": null,
98420
+ "possibleTypes": null
98421
+ },
98422
+ {
98423
+ "kind": "INPUT_OBJECT",
98424
+ "name": "PaymentProviderFilterInput",
98425
+ "description": "Filters for the paymentProviders query.",
98426
+ "fields": null,
98427
+ "inputFields": [
98428
+ {
98429
+ "name": "isInstalled",
98430
+ "description": "Keep only providers installed on the current site.",
98431
+ "type": {
98432
+ "kind": "SCALAR",
98433
+ "name": "Boolean",
98434
+ "ofType": null
98435
+ },
98436
+ "defaultValue": null
98437
+ },
98438
+ {
98439
+ "name": "isActive",
98440
+ "description": "Keep only providers activated for checkout (PaymentProviderConfiguration.active = yes).",
98441
+ "type": {
98442
+ "kind": "SCALAR",
98443
+ "name": "Boolean",
98444
+ "ofType": null
98445
+ },
98446
+ "defaultValue": null
98447
+ }
98448
+ ],
98449
+ "interfaces": null,
98450
+ "enumValues": null,
98451
+ "possibleTypes": null
98452
+ },
97811
98453
  {
97812
98454
  "kind": "OBJECT",
97813
98455
  "name": "ProductReviewSettings",
Binary file