@snokam/mcp-api 2.22.0 → 2.24.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snokam/mcp-api",
3
- "version": "2.22.0",
3
+ "version": "2.24.0",
4
4
  "description": "MCP server exposing Snokam backend APIs as tools for Claude Code and other MCP clients",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1695,6 +1695,37 @@
1695
1695
  ]
1696
1696
  }
1697
1697
  },
1698
+ "/v1.0/salesforce/opportunity-stages": {
1699
+ "get": {
1700
+ "tags": [
1701
+ "Salesforce"
1702
+ ],
1703
+ "summary": "List the SF org's Opportunity pipeline stages in configured order.",
1704
+ "operationId": "ListSalesforceOpportunityStages",
1705
+ "responses": {
1706
+ "200": {
1707
+ "description": "Payload of Array of SalesforceOpportunityStage",
1708
+ "content": {
1709
+ "application/json": {
1710
+ "schema": {
1711
+ "type": "array",
1712
+ "items": {
1713
+ "$ref": "#/components/schemas/salesforceOpportunityStage"
1714
+ }
1715
+ }
1716
+ }
1717
+ }
1718
+ }
1719
+ },
1720
+ "security": [
1721
+ {
1722
+ "Implicit": [
1723
+ "api://7e877854-e62d-4637-a655-1da7141f7ac9/.default"
1724
+ ]
1725
+ }
1726
+ ]
1727
+ }
1728
+ },
1698
1729
  "/v1.0/salesforce/refresh": {
1699
1730
  "post": {
1700
1731
  "tags": [
@@ -1723,6 +1754,61 @@
1723
1754
  ]
1724
1755
  }
1725
1756
  },
1757
+ "/v1.0/tenders/{id}/salesforce/stage": {
1758
+ "post": {
1759
+ "tags": [
1760
+ "Salesforce"
1761
+ ],
1762
+ "summary": "Move the linked SF Opportunity to a new stage and refresh the cache.",
1763
+ "operationId": "UpdateTenderSalesforceStage",
1764
+ "parameters": [
1765
+ {
1766
+ "name": "id",
1767
+ "in": "path",
1768
+ "required": true,
1769
+ "schema": {
1770
+ "type": "string"
1771
+ }
1772
+ }
1773
+ ],
1774
+ "requestBody": {
1775
+ "description": "The SF stage masterLabel/apiName to switch to.",
1776
+ "content": {
1777
+ "application/json": {
1778
+ "schema": {
1779
+ "$ref": "#/components/schemas/updateSalesforceStageRequest"
1780
+ }
1781
+ }
1782
+ },
1783
+ "required": true
1784
+ },
1785
+ "responses": {
1786
+ "200": {
1787
+ "description": "Payload of Tender",
1788
+ "content": {
1789
+ "application/json": {
1790
+ "schema": {
1791
+ "$ref": "#/components/schemas/tender"
1792
+ }
1793
+ }
1794
+ }
1795
+ },
1796
+ "400": {
1797
+ "description": "Tender has no Salesforce link, or stageName is missing."
1798
+ },
1799
+ "404": {
1800
+ "description": "No description"
1801
+ }
1802
+ },
1803
+ "security": [
1804
+ {
1805
+ "Implicit": [
1806
+ "api://7e877854-e62d-4637-a655-1da7141f7ac9/.default"
1807
+ ]
1808
+ }
1809
+ ]
1810
+ }
1811
+ },
1726
1812
  "/v1.0/salesforce/opportunities/{sfId}/import": {
1727
1813
  "post": {
1728
1814
  "tags": [
@@ -3586,6 +3672,36 @@
3586
3672
  }
3587
3673
  }
3588
3674
  },
3675
+ "salesforceOpportunityStage": {
3676
+ "type": "object",
3677
+ "properties": {
3678
+ "MasterLabel": {
3679
+ "type": "string",
3680
+ "nullable": true
3681
+ },
3682
+ "ApiName": {
3683
+ "type": "string",
3684
+ "nullable": true
3685
+ },
3686
+ "IsActive": {
3687
+ "type": "boolean",
3688
+ "nullable": true
3689
+ },
3690
+ "IsClosed": {
3691
+ "type": "boolean",
3692
+ "nullable": true
3693
+ },
3694
+ "IsWon": {
3695
+ "type": "boolean",
3696
+ "nullable": true
3697
+ },
3698
+ "SortOrder": {
3699
+ "type": "integer",
3700
+ "format": "int32",
3701
+ "nullable": true
3702
+ }
3703
+ }
3704
+ },
3589
3705
  "salesforceReference": {
3590
3706
  "type": "object",
3591
3707
  "properties": {
@@ -4262,6 +4378,14 @@
4262
4378
  }
4263
4379
  }
4264
4380
  },
4381
+ "updateSalesforceStageRequest": {
4382
+ "type": "object",
4383
+ "properties": {
4384
+ "stageName": {
4385
+ "type": "string"
4386
+ }
4387
+ }
4388
+ },
4265
4389
  "zombieReapResult": {
4266
4390
  "type": "object",
4267
4391
  "properties": {
@@ -1695,6 +1695,37 @@
1695
1695
  ]
1696
1696
  }
1697
1697
  },
1698
+ "/v1.0/salesforce/opportunity-stages": {
1699
+ "get": {
1700
+ "tags": [
1701
+ "Salesforce"
1702
+ ],
1703
+ "summary": "List the SF org's Opportunity pipeline stages in configured order.",
1704
+ "operationId": "ListSalesforceOpportunityStages",
1705
+ "responses": {
1706
+ "200": {
1707
+ "description": "Payload of Array of SalesforceOpportunityStage",
1708
+ "content": {
1709
+ "application/json": {
1710
+ "schema": {
1711
+ "type": "array",
1712
+ "items": {
1713
+ "$ref": "#/components/schemas/salesforceOpportunityStage"
1714
+ }
1715
+ }
1716
+ }
1717
+ }
1718
+ }
1719
+ },
1720
+ "security": [
1721
+ {
1722
+ "Implicit": [
1723
+ "api://d7f15838-af74-4048-88b3-503089de0064/.default"
1724
+ ]
1725
+ }
1726
+ ]
1727
+ }
1728
+ },
1698
1729
  "/v1.0/salesforce/refresh": {
1699
1730
  "post": {
1700
1731
  "tags": [
@@ -1723,6 +1754,61 @@
1723
1754
  ]
1724
1755
  }
1725
1756
  },
1757
+ "/v1.0/tenders/{id}/salesforce/stage": {
1758
+ "post": {
1759
+ "tags": [
1760
+ "Salesforce"
1761
+ ],
1762
+ "summary": "Move the linked SF Opportunity to a new stage and refresh the cache.",
1763
+ "operationId": "UpdateTenderSalesforceStage",
1764
+ "parameters": [
1765
+ {
1766
+ "name": "id",
1767
+ "in": "path",
1768
+ "required": true,
1769
+ "schema": {
1770
+ "type": "string"
1771
+ }
1772
+ }
1773
+ ],
1774
+ "requestBody": {
1775
+ "description": "The SF stage masterLabel/apiName to switch to.",
1776
+ "content": {
1777
+ "application/json": {
1778
+ "schema": {
1779
+ "$ref": "#/components/schemas/updateSalesforceStageRequest"
1780
+ }
1781
+ }
1782
+ },
1783
+ "required": true
1784
+ },
1785
+ "responses": {
1786
+ "200": {
1787
+ "description": "Payload of Tender",
1788
+ "content": {
1789
+ "application/json": {
1790
+ "schema": {
1791
+ "$ref": "#/components/schemas/tender"
1792
+ }
1793
+ }
1794
+ }
1795
+ },
1796
+ "400": {
1797
+ "description": "Tender has no Salesforce link, or stageName is missing."
1798
+ },
1799
+ "404": {
1800
+ "description": "No description"
1801
+ }
1802
+ },
1803
+ "security": [
1804
+ {
1805
+ "Implicit": [
1806
+ "api://d7f15838-af74-4048-88b3-503089de0064/.default"
1807
+ ]
1808
+ }
1809
+ ]
1810
+ }
1811
+ },
1726
1812
  "/v1.0/salesforce/opportunities/{sfId}/import": {
1727
1813
  "post": {
1728
1814
  "tags": [
@@ -3586,6 +3672,36 @@
3586
3672
  }
3587
3673
  }
3588
3674
  },
3675
+ "salesforceOpportunityStage": {
3676
+ "type": "object",
3677
+ "properties": {
3678
+ "MasterLabel": {
3679
+ "type": "string",
3680
+ "nullable": true
3681
+ },
3682
+ "ApiName": {
3683
+ "type": "string",
3684
+ "nullable": true
3685
+ },
3686
+ "IsActive": {
3687
+ "type": "boolean",
3688
+ "nullable": true
3689
+ },
3690
+ "IsClosed": {
3691
+ "type": "boolean",
3692
+ "nullable": true
3693
+ },
3694
+ "IsWon": {
3695
+ "type": "boolean",
3696
+ "nullable": true
3697
+ },
3698
+ "SortOrder": {
3699
+ "type": "integer",
3700
+ "format": "int32",
3701
+ "nullable": true
3702
+ }
3703
+ }
3704
+ },
3589
3705
  "salesforceReference": {
3590
3706
  "type": "object",
3591
3707
  "properties": {
@@ -4262,6 +4378,14 @@
4262
4378
  }
4263
4379
  }
4264
4380
  },
4381
+ "updateSalesforceStageRequest": {
4382
+ "type": "object",
4383
+ "properties": {
4384
+ "stageName": {
4385
+ "type": "string"
4386
+ }
4387
+ }
4388
+ },
4265
4389
  "zombieReapResult": {
4266
4390
  "type": "object",
4267
4391
  "properties": {