adoptai-mcp 1.0.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/README.md +70 -0
- package/bin/adoptai-mcp.js +2 -0
- package/dist/apps/canva.js +1 -0
- package/dist/apps/figma.js +1 -0
- package/dist/apps/github.js +2 -0
- package/dist/apps/notion.js +1 -0
- package/dist/apps/registry.js +20 -0
- package/dist/apps/salesforce.js +1 -0
- package/dist/cli/add.js +532 -0
- package/dist/cli/index.js +39 -0
- package/dist/cli/list.js +19 -0
- package/dist/cli/remove.js +37 -0
- package/dist/cli/serve.js +27 -0
- package/dist/cli/status.js +24 -0
- package/dist/config/clients.js +118 -0
- package/dist/config/credentials.js +34 -0
- package/dist/core/auth-manager.js +237 -0
- package/dist/core/config-writer.js +161 -0
- package/dist/core/doctor.js +199 -0
- package/dist/core/package.json +3 -0
- package/dist/core/server-base.js +81 -0
- package/dist/integrations/canva/.env +3 -0
- package/dist/integrations/canva/auth.js +287 -0
- package/dist/integrations/canva/env.js +9 -0
- package/dist/integrations/canva/index.js +12 -0
- package/dist/integrations/canva/package.json +31 -0
- package/dist/integrations/canva/publish-to-adoptai.js +365 -0
- package/dist/integrations/canva/setup.js +90 -0
- package/dist/integrations/canva/tools.js +1315 -0
- package/dist/integrations/canva/tools.original.js +1315 -0
- package/dist/integrations/figma/auth.js +48 -0
- package/dist/integrations/figma/index.js +11 -0
- package/dist/integrations/figma/package.json +27 -0
- package/dist/integrations/figma/publish-to-adoptai.js +384 -0
- package/dist/integrations/figma/setup.js +90 -0
- package/dist/integrations/figma/tools.js +1137 -0
- package/dist/integrations/github/auth.js +53 -0
- package/dist/integrations/github/index.js +11 -0
- package/dist/integrations/github/package.json +28 -0
- package/dist/integrations/github/publish-to-adoptai.js +240 -0
- package/dist/integrations/github/setup.js +103 -0
- package/dist/integrations/github/tools.js +78 -0
- package/dist/integrations/github-actions/auth.js +53 -0
- package/dist/integrations/github-actions/index.js +11 -0
- package/dist/integrations/github-actions/package.json +27 -0
- package/dist/integrations/github-actions/setup.js +103 -0
- package/dist/integrations/github-actions/tools.js +5642 -0
- package/dist/integrations/github-activity/auth.js +53 -0
- package/dist/integrations/github-activity/index.js +11 -0
- package/dist/integrations/github-activity/package.json +27 -0
- package/dist/integrations/github-activity/setup.js +103 -0
- package/dist/integrations/github-activity/tools.js +925 -0
- package/dist/integrations/github-apps/auth.js +53 -0
- package/dist/integrations/github-apps/index.js +11 -0
- package/dist/integrations/github-apps/package.json +27 -0
- package/dist/integrations/github-apps/setup.js +103 -0
- package/dist/integrations/github-apps/tools.js +791 -0
- package/dist/integrations/github-billing/auth.js +53 -0
- package/dist/integrations/github-billing/index.js +11 -0
- package/dist/integrations/github-billing/package.json +27 -0
- package/dist/integrations/github-billing/setup.js +103 -0
- package/dist/integrations/github-billing/tools.js +438 -0
- package/dist/integrations/github-checks/auth.js +53 -0
- package/dist/integrations/github-checks/index.js +11 -0
- package/dist/integrations/github-checks/package.json +27 -0
- package/dist/integrations/github-checks/setup.js +103 -0
- package/dist/integrations/github-checks/tools.js +607 -0
- package/dist/integrations/github-code-scanning/auth.js +53 -0
- package/dist/integrations/github-code-scanning/index.js +11 -0
- package/dist/integrations/github-code-scanning/package.json +27 -0
- package/dist/integrations/github-code-scanning/setup.js +103 -0
- package/dist/integrations/github-code-scanning/tools.js +987 -0
- package/dist/integrations/github-dependabot/auth.js +53 -0
- package/dist/integrations/github-dependabot/index.js +11 -0
- package/dist/integrations/github-dependabot/package.json +27 -0
- package/dist/integrations/github-dependabot/setup.js +103 -0
- package/dist/integrations/github-dependabot/tools.js +915 -0
- package/dist/integrations/github-gists/auth.js +53 -0
- package/dist/integrations/github-gists/index.js +11 -0
- package/dist/integrations/github-gists/package.json +27 -0
- package/dist/integrations/github-gists/setup.js +103 -0
- package/dist/integrations/github-gists/tools.js +545 -0
- package/dist/integrations/github-git/auth.js +53 -0
- package/dist/integrations/github-git/index.js +11 -0
- package/dist/integrations/github-git/package.json +27 -0
- package/dist/integrations/github-git/setup.js +103 -0
- package/dist/integrations/github-git/tools.js +513 -0
- package/dist/integrations/github-issues/auth.js +53 -0
- package/dist/integrations/github-issues/index.js +11 -0
- package/dist/integrations/github-issues/package.json +27 -0
- package/dist/integrations/github-issues/setup.js +103 -0
- package/dist/integrations/github-issues/tools.js +2232 -0
- package/dist/integrations/github-orgs/auth.js +53 -0
- package/dist/integrations/github-orgs/index.js +11 -0
- package/dist/integrations/github-orgs/package.json +27 -0
- package/dist/integrations/github-orgs/setup.js +103 -0
- package/dist/integrations/github-orgs/tools.js +3512 -0
- package/dist/integrations/github-packages/auth.js +53 -0
- package/dist/integrations/github-packages/index.js +11 -0
- package/dist/integrations/github-packages/package.json +27 -0
- package/dist/integrations/github-packages/setup.js +103 -0
- package/dist/integrations/github-packages/tools.js +1088 -0
- package/dist/integrations/github-pulls/auth.js +53 -0
- package/dist/integrations/github-pulls/index.js +11 -0
- package/dist/integrations/github-pulls/package.json +27 -0
- package/dist/integrations/github-pulls/setup.js +103 -0
- package/dist/integrations/github-pulls/tools.js +1252 -0
- package/dist/integrations/github-reactions/auth.js +53 -0
- package/dist/integrations/github-reactions/index.js +11 -0
- package/dist/integrations/github-reactions/package.json +27 -0
- package/dist/integrations/github-reactions/setup.js +103 -0
- package/dist/integrations/github-reactions/tools.js +706 -0
- package/dist/integrations/github-repos/auth.js +53 -0
- package/dist/integrations/github-repos/index.js +11 -0
- package/dist/integrations/github-repos/package.json +27 -0
- package/dist/integrations/github-repos/setup.js +103 -0
- package/dist/integrations/github-repos/tools.js +7286 -0
- package/dist/integrations/github-search/auth.js +53 -0
- package/dist/integrations/github-search/index.js +11 -0
- package/dist/integrations/github-search/package.json +27 -0
- package/dist/integrations/github-search/setup.js +103 -0
- package/dist/integrations/github-search/tools.js +370 -0
- package/dist/integrations/github-teams/auth.js +53 -0
- package/dist/integrations/github-teams/index.js +11 -0
- package/dist/integrations/github-teams/package.json +27 -0
- package/dist/integrations/github-teams/setup.js +103 -0
- package/dist/integrations/github-teams/tools.js +633 -0
- package/dist/integrations/github-users/auth.js +53 -0
- package/dist/integrations/github-users/index.js +11 -0
- package/dist/integrations/github-users/package.json +27 -0
- package/dist/integrations/github-users/setup.js +103 -0
- package/dist/integrations/github-users/tools.js +1118 -0
- package/dist/integrations/notion/api.js +108 -0
- package/dist/integrations/notion/auth.js +59 -0
- package/dist/integrations/notion/endpoints.json +630 -0
- package/dist/integrations/notion/index.js +11 -0
- package/dist/integrations/notion/package.json +33 -0
- package/dist/integrations/notion/publish-to-adoptai.js +271 -0
- package/dist/integrations/notion/scripts/generate-endpoints.mjs +306 -0
- package/dist/integrations/notion/setup.js +89 -0
- package/dist/integrations/notion/tools.js +586 -0
- package/dist/integrations/notion/tools.original.js +568 -0
- package/dist/integrations/salesforce/.env +8 -0
- package/dist/integrations/salesforce/.env.example +15 -0
- package/dist/integrations/salesforce/auth.js +311 -0
- package/dist/integrations/salesforce/endpoints.json +1359 -0
- package/dist/integrations/salesforce/env.js +9 -0
- package/dist/integrations/salesforce/index.js +12 -0
- package/dist/integrations/salesforce/package.json +42 -0
- package/dist/integrations/salesforce/publish-smart-specs.js +890 -0
- package/dist/integrations/salesforce/publish-to-adoptai.js +386 -0
- package/dist/integrations/salesforce/scripts/extract-postman.mjs +222 -0
- package/dist/integrations/salesforce/setup.js +112 -0
- package/dist/integrations/salesforce/tools.js +4544 -0
- package/dist/integrations/salesforce/tools.original.js +4487 -0
- package/dist/server/mcp-server.js +50 -0
- package/dist/server/tool-loader.js +47 -0
- package/dist/specs/figma-api.json +13621 -0
- package/dist/specs/split/salesforce-auth.json +3931 -0
- package/dist/specs/split/salesforce-bulk-v1.json +1489 -0
- package/dist/specs/split/salesforce-bulk-v2.json +1951 -0
- package/dist/specs/split/salesforce-composite.json +1246 -0
- package/dist/specs/split/salesforce-connect.json +11639 -0
- package/dist/specs/split/salesforce-einstein-prediction-service.json +576 -0
- package/dist/specs/split/salesforce-event-platform.json +2682 -0
- package/dist/specs/split/salesforce-graphql.json +1754 -0
- package/dist/specs/split/salesforce-industries.json +4115 -0
- package/dist/specs/split/salesforce-metadata.json +555 -0
- package/dist/specs/split/salesforce-rest.json +4798 -0
- package/dist/specs/split/salesforce-soap.json +210 -0
- package/dist/specs/split/salesforce-subscription-management.json +1299 -0
- package/dist/specs/split/salesforce-tooling.json +2026 -0
- package/dist/specs/split/salesforce-ui.json +7426 -0
- package/package.json +47 -0
|
@@ -0,0 +1,576 @@
|
|
|
1
|
+
{
|
|
2
|
+
"info": {
|
|
3
|
+
"_postman_id": "67cb9baa-e0da-4986-957e-88d8734647e2",
|
|
4
|
+
"name": "Salesforce Platform APIs - einstein-prediction-service",
|
|
5
|
+
"description": "The Salesforce Platform APIs collection contains 250+ requests and example responses for the following APIs:\n\n<table><tbody><tr><td><div>Auth<br>Bulk (v1 & v2)<br>Composite<br>Connect<br>CPQ<br>Einstein Prediction Service<br>Event Platform</div><div contenteditable=\"false\"><div><div><div></div></div></div><div></div></div></td><td><div>GraphQL<br>Loyalty Management<br>Metadata<br>REST<br>Subscription Management<br>Tooling<br>UI</div><div contenteditable=\"false\"><div><div><div></div></div></div><div></div></div></td></tr></tbody></table>\n\n**⚠️ Disclaimer:** this collection is not covered by Salesforce support and SLAs.\n\n## Get Started\n\nClick the button below and follow the instructions from the following sections: \n[<img src=\"https://run.pstmn.io/button.svg\" alt=\"Run In Postman\">](https://god.gw.postman.com/run-collection/12721794-67cb9baa-e0da-4986-957e-88d8734647e2?action=collection%2Ffork&source=rip_markdown&collection-url=entityId%3D12721794-67cb9baa-e0da-4986-957e-88d8734647e2%26entityType%3Dcollection%26workspaceId%3D34382471-0c97-40e5-a206-f947271665c4)\n\n### New Salesforce Users\n\nIf you are new to Salesforce, start by obtaining a free [Developer Edition Org](https://developer.salesforce.com/signup) then, follow the rest of the instructions from this documentation.\n\nYou can also watch our [Beginner's Mind YouTube series](https://www.youtube.com/playlist?list=PLgIMQe2PKPSKJ33M6CX-VLvgax7Xptcmz) for a tour of the Salesforce Platform (the last episode focuses on APIs).\n\n### New Postman Users\n\n<table><tbody><tr><td><div><p>If you are new to Postman, complete this Trailhead project to setup the collection: <a rel=\"noreferrer noopener nofollow\" href=\"https://trailhead.salesforce.com/content/learn/projects/quick-start-connect-postman-to-salesforce\" target=\"_blank\" url=\"https://trailhead.salesforce.com/content/learn/projects/quick-start-connect-postman-to-salesforce\">Quick Start: Connect Postman to Salesforce</a>.<br></p><figure editor=\"[object Object]\"><div contenteditable=\"false\"><div><img src=\"https://res.cloudinary.com/hy4kyit2a/f_auto,fl_lossy,q_70/learn/projects/quick-start-connect-postman-to-salesforce/d281185a04fbccaf4f1d37e51a3b0049_badge.png\" alt=\"\"><div><div></div><div><div></div></div><div></div><div><div></div></div><div></div><div></div><div></div><div></div></div></div></div></figure></div><div contenteditable=\"false\"><div><div><div></div></div></div><div></div></div></td><td><div><p>If you want to learn more about Postman in general, you can also complete this optional Trailhead badge: <a rel=\"noreferrer noopener nofollow\" href=\"https://trailhead.salesforce.com/content/learn/modules/postman-api-client\" target=\"_blank\" url=\"https://trailhead.salesforce.com/content/learn/modules/postman-api-client\">Postman API Client</a>.<br></p><figure editor=\"[object Object]\"><div contenteditable=\"false\"><div><img src=\"https://res.cloudinary.com/hy4kyit2a/f_auto,fl_lossy,q_70/learn/modules/postman-api-client/c4f5ce5df16040d22df5f1cfb77af5a6_badge.png\" alt=\"\"><div><div></div><div><div></div></div><div></div><div><div></div></div><div></div><div></div><div></div><div></div></div></div></div></figure></div><div contenteditable=\"false\"><div><div><div></div></div></div><div></div></div></td></tr></tbody></table>\n\n### Regular Postman Users\n\nIf you are already familiar with Postman, here are the minimal getting started steps:\n\n1. If using Postman Web UI, follow these [steps to set up CORS](https://github.com/forcedotcom/postman-salesforce-apis/blob/master/install-with-web.md#enable-cors-in-salesforce) in your Salesforce Org. This is not required when working with the Postman Desktop app.\n \n2. Assign the following value to the `clientId` collection variable (this is a temporary step due to a Postman bug):\n\n```\n{{vault:salesforce-consumer-key}}\n```\n \n3. Assign a value to the `url` collection variable based on your Salesforce Org type:\n \n | URL | Org Type |\n | --- | --- |\n | `https://test.salesforce.com` | Sandboxes or Scratch orgs. |\n | `https://login.salesforce.com` | Production, Trailhead Playground and Developer Edition orgs. |\n | Custom My Domain base URL | Org with a custom domain. |\n \n4. Click **Get New Access Token** from the collection's **Authorization** tab.\n \n5. When prompted to do so, log in to your Salesforce org and allow access to \"Salesforce APIs Collection for Postman\".\n \n6. Copy the value of the `instance_url` field from the token details view.\n \n7. Click **Use Token**.\n \n8. Save the value that you copied in the `_endpoint` variable.\n \n9. Click **Save** and you're good to go!\n \n\n## Resources\n\nCheck out [the documentation](https://github.com/forcedotcom/postman-salesforce-apis) for videos and extra information on how to install, update and contribute to the collection.\n\nWe also have an [demo video](https://www.youtube.com/watch?v=W-IwW6RM4F0) on how to setup the collection.\n\n<img src=\"https://i3.ytimg.com/vi/W-IwW6RM4F0/maxresdefault.jpg\" width=\"80%\">\n\nReport issues and ask questions [here](https://github.com/forcedotcom/postman-salesforce-apis/issues).\n\n## Variables Reference\n\nThe collection relies on the following variables:\n\n| Variable | Description |\n| --- | --- |\n| `_endpoint` | Your Salesforce Org's instance URL. |\n| `url` | The URL used for logging in. Either: <br>\\- `https://test.salesforce.com` for sandboxes or Scratch orgs <br>\\- `https://login.salesforce.com` for production, Trailhead Playground and Developer Edition orgs <br>\\- your custom My Domain base URL. |\n| `version` | The Salesforce API version (e.g.: 50.0). |\n| `username` | Your username. |\n| `password` | Your password. |\n| `secretToken` | Your personal [security token](https://help.salesforce.com/articleView?id=user_security_token.htm). |\n| `clientId` | Connected App client Id. |\n| `clientSecret` | Connected App client secret. |\n| `redirectUrl` | Connected App redirect URL for OAuth 2.0. |\n| `initAccessToken` | Initial access token for dynamic Connected App registration. |\n| `site` | Community suffix when connecting with an Experience Cloud user. |\n\nOnly a few of these variables are mandatory. The authentication requests will automatically register and set extra \"private\" variables identified with a `_` prefix (e.g.: `_accessToken`, `_orgId`, `_userId`...).",
|
|
6
|
+
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
|
|
7
|
+
"_exporter_id": "32907289",
|
|
8
|
+
"_collection_link": "https://go.postman.co/collection/12721794-67cb9baa-e0da-4986-957e-88d8734647e2?source=collection_link"
|
|
9
|
+
},
|
|
10
|
+
"auth": {
|
|
11
|
+
"type": "oauth2",
|
|
12
|
+
"oauth2": [
|
|
13
|
+
{
|
|
14
|
+
"key": "grant_type",
|
|
15
|
+
"value": "implicit",
|
|
16
|
+
"type": "string"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"key": "scope",
|
|
20
|
+
"value": "api",
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"key": "addTokenTo",
|
|
25
|
+
"value": "header",
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"key": "client_authentication",
|
|
30
|
+
"value": "body",
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"key": "password",
|
|
35
|
+
"value": "{{password}}",
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"key": "username",
|
|
40
|
+
"value": "{{username}}",
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"key": "challengeAlgorithm",
|
|
45
|
+
"value": "S256",
|
|
46
|
+
"type": "string"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"key": "clientSecret",
|
|
50
|
+
"value": "{{clientSecret}}",
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"key": "clientId",
|
|
55
|
+
"value": "{{clientId}}",
|
|
56
|
+
"type": "string"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"key": "accessTokenUrl",
|
|
60
|
+
"value": "{{url}}{{site}}/services/oauth2/token",
|
|
61
|
+
"type": "string"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"key": "authUrl",
|
|
65
|
+
"value": "{{url}}{{site}}/services/oauth2/authorize",
|
|
66
|
+
"type": "string"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"key": "tokenName",
|
|
70
|
+
"value": "access_token",
|
|
71
|
+
"type": "string"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"key": "useBrowser",
|
|
75
|
+
"value": true,
|
|
76
|
+
"type": "boolean"
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
"variable": [
|
|
81
|
+
{
|
|
82
|
+
"key": "url",
|
|
83
|
+
"value": "https://login.salesforce.com"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"key": "version",
|
|
87
|
+
"value": "64.0"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"key": "username",
|
|
91
|
+
"value": ""
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"key": "password",
|
|
95
|
+
"value": ""
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"key": "secretToken",
|
|
99
|
+
"value": ""
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"key": "clientId",
|
|
103
|
+
"value": "{{vault:salesforce-consumer-key}}"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"key": "clientSecret",
|
|
107
|
+
"value": ""
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"key": "redirectUrl",
|
|
111
|
+
"value": ""
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"key": "initAccessToken",
|
|
115
|
+
"value": ""
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"key": "site",
|
|
119
|
+
"value": ""
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"key": "_accessToken",
|
|
123
|
+
"value": ""
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"key": "_endpoint",
|
|
127
|
+
"value": ""
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"key": "_userId",
|
|
131
|
+
"value": ""
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"key": "_appId",
|
|
135
|
+
"value": ""
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"key": "_consumerId",
|
|
139
|
+
"value": ""
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"key": "_tokenId",
|
|
143
|
+
"value": ""
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"key": "_orgId",
|
|
147
|
+
"value": ""
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"key": "_jobId",
|
|
151
|
+
"value": ""
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"key": "webstoreId",
|
|
155
|
+
"value": ""
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"key": "_deviceCode",
|
|
159
|
+
"value": ""
|
|
160
|
+
}
|
|
161
|
+
],
|
|
162
|
+
"item": [
|
|
163
|
+
{
|
|
164
|
+
"name": "Predict",
|
|
165
|
+
"request": {
|
|
166
|
+
"method": "POST",
|
|
167
|
+
"header": [],
|
|
168
|
+
"body": {
|
|
169
|
+
"mode": "raw",
|
|
170
|
+
"raw": "{\n \"predictionDefinition\": \"<PREDICTION_DEFINITION_ID>\",\n \"type\": \"RawData\",\n \"columnNames\": [\n \"Quantity\",\n \"Category\",\n \"Sub_Category\",\n \"Sales\",\n \"Profit_per_Order\"\n ],\n \"rows\": [\n [\n \"2\",\n \"Furniture\",\n \"Chairs\",\n \"300\",\n \"10\"\n ]\n ]\n}",
|
|
171
|
+
"options": {
|
|
172
|
+
"raw": {
|
|
173
|
+
"language": "json"
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
"url": {
|
|
178
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/smartdatadiscovery/predict",
|
|
179
|
+
"host": [
|
|
180
|
+
"{{_endpoint}}"
|
|
181
|
+
],
|
|
182
|
+
"path": [
|
|
183
|
+
"services",
|
|
184
|
+
"data",
|
|
185
|
+
"v{{version}}",
|
|
186
|
+
"smartdatadiscovery",
|
|
187
|
+
"predict"
|
|
188
|
+
]
|
|
189
|
+
},
|
|
190
|
+
"description": "Get available prediction definitions."
|
|
191
|
+
},
|
|
192
|
+
"response": [
|
|
193
|
+
{
|
|
194
|
+
"name": "Predict",
|
|
195
|
+
"originalRequest": {
|
|
196
|
+
"method": "POST",
|
|
197
|
+
"header": [],
|
|
198
|
+
"body": {
|
|
199
|
+
"mode": "raw",
|
|
200
|
+
"raw": "{\n \"predictionDefinition\": \"1OR5Y0000010ws8WAA\",\n \"type\": \"RawData\",\n \"columnNames\": [\n \"Quantity\",\n \"Category\",\n \"Sub_Category\",\n \"Sales\",\n \"Profit_per_Order\"\n ],\n \"rows\": [\n [\n \"2\",\n \"Furniture\",\n \"Chairs\",\n \"300\",\n \"10\"\n ]\n ]\n}",
|
|
201
|
+
"options": {
|
|
202
|
+
"raw": {
|
|
203
|
+
"language": "json"
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"url": {
|
|
208
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/smartdatadiscovery/predict",
|
|
209
|
+
"host": [
|
|
210
|
+
"{{_endpoint}}"
|
|
211
|
+
],
|
|
212
|
+
"path": [
|
|
213
|
+
"services",
|
|
214
|
+
"data",
|
|
215
|
+
"v{{version}}",
|
|
216
|
+
"smartdatadiscovery",
|
|
217
|
+
"predict"
|
|
218
|
+
]
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
"status": "Created",
|
|
222
|
+
"code": 201,
|
|
223
|
+
"_postman_previewlanguage": "json",
|
|
224
|
+
"header": [
|
|
225
|
+
{
|
|
226
|
+
"key": "Date",
|
|
227
|
+
"value": "Thu, 04 Mar 2021 13:53:39 GMT"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"key": "Strict-Transport-Security",
|
|
231
|
+
"value": "max-age=31536002; includeSubDomains"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"key": "Expect-CT",
|
|
235
|
+
"value": "max-age=86400, report-uri=\"https://a.forcesslreports.com/Expect-CT-report/00D5Y000001crJvm\""
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"key": "X-Content-Type-Options",
|
|
239
|
+
"value": "nosniff"
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"key": "X-XSS-Protection",
|
|
243
|
+
"value": "1; mode=block"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"key": "X-Robots-Tag",
|
|
247
|
+
"value": "none"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"key": "Cache-Control",
|
|
251
|
+
"value": "no-cache,must-revalidate,max-age=0,no-store,private"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"key": "Content-Type",
|
|
255
|
+
"value": "application/json;charset=UTF-8"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"key": "Vary",
|
|
259
|
+
"value": "Accept-Encoding"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"key": "Content-Encoding",
|
|
263
|
+
"value": "gzip"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"key": "Transfer-Encoding",
|
|
267
|
+
"value": "chunked"
|
|
268
|
+
}
|
|
269
|
+
],
|
|
270
|
+
"cookie": [],
|
|
271
|
+
"body": "{\n \"predictionDefinition\": \"1OR5Y0000010ws8\",\n \"predictions\": [\n {\n \"model\": {\n \"id\": \"1Ot5Y0000010wzNSAQ\"\n },\n \"prediction\": {\n \"middleValues\": [],\n \"total\": 88.52494255547592\n },\n \"prescriptions\": [],\n \"status\": \"Success\"\n }\n ],\n \"settings\": {\n \"maxMiddleValues\": 0,\n \"maxPrescriptions\": 0,\n \"prescriptionImpactPercentage\": 0\n }\n}"
|
|
272
|
+
}
|
|
273
|
+
]
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"name": "Prediction definitions",
|
|
277
|
+
"request": {
|
|
278
|
+
"method": "GET",
|
|
279
|
+
"header": [],
|
|
280
|
+
"url": {
|
|
281
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/smartdatadiscovery/predictionDefinitions",
|
|
282
|
+
"host": [
|
|
283
|
+
"{{_endpoint}}"
|
|
284
|
+
],
|
|
285
|
+
"path": [
|
|
286
|
+
"services",
|
|
287
|
+
"data",
|
|
288
|
+
"v{{version}}",
|
|
289
|
+
"smartdatadiscovery",
|
|
290
|
+
"predictionDefinitions"
|
|
291
|
+
]
|
|
292
|
+
},
|
|
293
|
+
"description": "Get available prediction definitions."
|
|
294
|
+
},
|
|
295
|
+
"response": [
|
|
296
|
+
{
|
|
297
|
+
"name": "Prediction definitions",
|
|
298
|
+
"originalRequest": {
|
|
299
|
+
"method": "GET",
|
|
300
|
+
"header": [],
|
|
301
|
+
"url": {
|
|
302
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/smartdatadiscovery/predictionDefinitions",
|
|
303
|
+
"host": [
|
|
304
|
+
"{{_endpoint}}"
|
|
305
|
+
],
|
|
306
|
+
"path": [
|
|
307
|
+
"services",
|
|
308
|
+
"data",
|
|
309
|
+
"v{{version}}",
|
|
310
|
+
"smartdatadiscovery",
|
|
311
|
+
"predictionDefinitions"
|
|
312
|
+
]
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
"status": "OK",
|
|
316
|
+
"code": 200,
|
|
317
|
+
"_postman_previewlanguage": "json",
|
|
318
|
+
"header": [
|
|
319
|
+
{
|
|
320
|
+
"key": "Date",
|
|
321
|
+
"value": "Thu, 04 Mar 2021 13:45:15 GMT"
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"key": "Strict-Transport-Security",
|
|
325
|
+
"value": "max-age=31536002; includeSubDomains"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"key": "Expect-CT",
|
|
329
|
+
"value": "max-age=86400, report-uri=\"https://a.forcesslreports.com/Expect-CT-report/00D5Y000001crJvm\""
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"key": "X-Content-Type-Options",
|
|
333
|
+
"value": "nosniff"
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"key": "X-XSS-Protection",
|
|
337
|
+
"value": "1; mode=block"
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"key": "X-Robots-Tag",
|
|
341
|
+
"value": "none"
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"key": "Cache-Control",
|
|
345
|
+
"value": "no-cache,must-revalidate,max-age=0,no-store,private"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
"key": "Content-Type",
|
|
349
|
+
"value": "application/json;charset=UTF-8"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"key": "Vary",
|
|
353
|
+
"value": "Accept-Encoding"
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"key": "Content-Encoding",
|
|
357
|
+
"value": "gzip"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"key": "Transfer-Encoding",
|
|
361
|
+
"value": "chunked"
|
|
362
|
+
}
|
|
363
|
+
],
|
|
364
|
+
"cookie": [],
|
|
365
|
+
"body": "{\n \"nextPageUrl\": null,\n \"predictionDefinitions\": [\n {\n \"countOfActiveModels\": 1,\n \"countOfModels\": 1,\n \"createdBy\": {\n \"id\": \"0055Y00000DWwAIQA1\",\n \"name\": \"Philippe Ozil\",\n \"profilePhotoUrl\": \"https://crm-analytics-deorg-dev-ed--c.documentforce.com/profilephoto/005/T\"\n },\n \"createdDate\": \"2021-03-04T13:37:02.000Z\",\n \"id\": \"1OR5Y0000010ws8WAA\",\n \"label\": \"Sales_per_Customer\",\n \"lastModifiedBy\": {\n \"id\": \"0055Y00000DWwAIQA1\",\n \"name\": \"Philippe Ozil\",\n \"profilePhotoUrl\": \"https://crm-analytics-deorg-dev-ed--c.documentforce.com/profilephoto/005/T\"\n },\n \"lastModifiedDate\": \"2021-03-04T13:37:02.000Z\",\n \"modelsUrl\": \"/services/data/v51.0/smartdatadiscovery/predictiondefinitions/1OR5Y0000010ws8WAA/models\",\n \"name\": \"Sales_per_Customer\",\n \"outcome\": {\n \"goal\": \"Maximize\",\n \"label\": \"Sales per Customer\",\n \"name\": \"Sales_per_Customer\"\n },\n \"predictionType\": \"Regression\",\n \"status\": \"Enabled\",\n \"url\": \"/services/data/v51.0/smartdatadiscovery/predictiondefinitions/1OR5Y0000010ws8WAA\"\n }\n ],\n \"totalSize\": 1,\n \"url\": \"/services/data/v51.0/smartdatadiscovery/predictiondefinitions?pageSize=25\"\n}"
|
|
366
|
+
}
|
|
367
|
+
]
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"name": "Prediction definition metadata",
|
|
371
|
+
"request": {
|
|
372
|
+
"method": "GET",
|
|
373
|
+
"header": [],
|
|
374
|
+
"url": {
|
|
375
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/smartdatadiscovery/predictionDefinitions/:PREDICTION_DEFINITION_ID",
|
|
376
|
+
"host": [
|
|
377
|
+
"{{_endpoint}}"
|
|
378
|
+
],
|
|
379
|
+
"path": [
|
|
380
|
+
"services",
|
|
381
|
+
"data",
|
|
382
|
+
"v{{version}}",
|
|
383
|
+
"smartdatadiscovery",
|
|
384
|
+
"predictionDefinitions",
|
|
385
|
+
":PREDICTION_DEFINITION_ID"
|
|
386
|
+
],
|
|
387
|
+
"variable": [
|
|
388
|
+
{
|
|
389
|
+
"key": "PREDICTION_DEFINITION_ID",
|
|
390
|
+
"value": ""
|
|
391
|
+
}
|
|
392
|
+
]
|
|
393
|
+
},
|
|
394
|
+
"description": "Get available prediction definitions."
|
|
395
|
+
},
|
|
396
|
+
"response": [
|
|
397
|
+
{
|
|
398
|
+
"name": "Prediction definition metadata",
|
|
399
|
+
"originalRequest": {
|
|
400
|
+
"method": "GET",
|
|
401
|
+
"header": [],
|
|
402
|
+
"url": {
|
|
403
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/smartdatadiscovery/predictionDefinitions/1OR5Y0000010ws8WAA",
|
|
404
|
+
"host": [
|
|
405
|
+
"{{_endpoint}}"
|
|
406
|
+
],
|
|
407
|
+
"path": [
|
|
408
|
+
"services",
|
|
409
|
+
"data",
|
|
410
|
+
"v{{version}}",
|
|
411
|
+
"smartdatadiscovery",
|
|
412
|
+
"predictionDefinitions",
|
|
413
|
+
"1OR5Y0000010ws8WAA"
|
|
414
|
+
]
|
|
415
|
+
}
|
|
416
|
+
},
|
|
417
|
+
"status": "OK",
|
|
418
|
+
"code": 200,
|
|
419
|
+
"_postman_previewlanguage": "json",
|
|
420
|
+
"header": [
|
|
421
|
+
{
|
|
422
|
+
"key": "Date",
|
|
423
|
+
"value": "Thu, 04 Mar 2021 13:45:58 GMT"
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"key": "Strict-Transport-Security",
|
|
427
|
+
"value": "max-age=31536002; includeSubDomains"
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
"key": "Expect-CT",
|
|
431
|
+
"value": "max-age=86400, report-uri=\"https://a.forcesslreports.com/Expect-CT-report/00D5Y000001crJvm\""
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
"key": "X-Content-Type-Options",
|
|
435
|
+
"value": "nosniff"
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
"key": "X-XSS-Protection",
|
|
439
|
+
"value": "1; mode=block"
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"key": "X-Robots-Tag",
|
|
443
|
+
"value": "none"
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"key": "Cache-Control",
|
|
447
|
+
"value": "no-cache,must-revalidate,max-age=0,no-store,private"
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"key": "Content-Type",
|
|
451
|
+
"value": "application/json;charset=UTF-8"
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
"key": "Vary",
|
|
455
|
+
"value": "Accept-Encoding"
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"key": "Content-Encoding",
|
|
459
|
+
"value": "gzip"
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
"key": "Transfer-Encoding",
|
|
463
|
+
"value": "chunked"
|
|
464
|
+
}
|
|
465
|
+
],
|
|
466
|
+
"cookie": [],
|
|
467
|
+
"body": "{\n \"countOfActiveModels\": 1,\n \"countOfModels\": 1,\n \"createdBy\": {\n \"id\": \"0055Y00000DWwAIQA1\",\n \"name\": \"Philippe Ozil\",\n \"profilePhotoUrl\": \"https://crm-analytics-deorg-dev-ed--c.documentforce.com/profilephoto/005/T\"\n },\n \"createdDate\": \"2021-03-04T13:37:02.000Z\",\n \"id\": \"1OR5Y0000010ws8WAA\",\n \"label\": \"Sales_per_Customer\",\n \"lastModifiedBy\": {\n \"id\": \"0055Y00000DWwAIQA1\",\n \"name\": \"Philippe Ozil\",\n \"profilePhotoUrl\": \"https://crm-analytics-deorg-dev-ed--c.documentforce.com/profilephoto/005/T\"\n },\n \"lastModifiedDate\": \"2021-03-04T13:37:02.000Z\",\n \"modelsUrl\": \"/services/data/v51.0/smartdatadiscovery/predictiondefinitions/1OR5Y0000010ws8WAA/models\",\n \"name\": \"Sales_per_Customer\",\n \"outcome\": {\n \"goal\": \"Maximize\",\n \"label\": \"Sales per Customer\",\n \"name\": \"Sales_per_Customer\"\n },\n \"predictionType\": \"Regression\",\n \"status\": \"Enabled\",\n \"url\": \"/services/data/v51.0/smartdatadiscovery/predictiondefinitions/1OR5Y0000010ws8WAA\"\n}"
|
|
468
|
+
}
|
|
469
|
+
]
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"name": "Prediction models",
|
|
473
|
+
"request": {
|
|
474
|
+
"method": "GET",
|
|
475
|
+
"header": [],
|
|
476
|
+
"url": {
|
|
477
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/smartdatadiscovery/predictionDefinitions/:PREDICTION_DEFINITION_ID/models",
|
|
478
|
+
"host": [
|
|
479
|
+
"{{_endpoint}}"
|
|
480
|
+
],
|
|
481
|
+
"path": [
|
|
482
|
+
"services",
|
|
483
|
+
"data",
|
|
484
|
+
"v{{version}}",
|
|
485
|
+
"smartdatadiscovery",
|
|
486
|
+
"predictionDefinitions",
|
|
487
|
+
":PREDICTION_DEFINITION_ID",
|
|
488
|
+
"models"
|
|
489
|
+
],
|
|
490
|
+
"variable": [
|
|
491
|
+
{
|
|
492
|
+
"key": "PREDICTION_DEFINITION_ID",
|
|
493
|
+
"value": ""
|
|
494
|
+
}
|
|
495
|
+
]
|
|
496
|
+
},
|
|
497
|
+
"description": "Get available prediction definitions."
|
|
498
|
+
},
|
|
499
|
+
"response": [
|
|
500
|
+
{
|
|
501
|
+
"name": "Prediction models",
|
|
502
|
+
"originalRequest": {
|
|
503
|
+
"method": "GET",
|
|
504
|
+
"header": [],
|
|
505
|
+
"url": {
|
|
506
|
+
"raw": "{{_endpoint}}/services/data/v{{version}}/smartdatadiscovery/predictionDefinitions/1OR5Y0000010ws8WAA/models",
|
|
507
|
+
"host": [
|
|
508
|
+
"{{_endpoint}}"
|
|
509
|
+
],
|
|
510
|
+
"path": [
|
|
511
|
+
"services",
|
|
512
|
+
"data",
|
|
513
|
+
"v{{version}}",
|
|
514
|
+
"smartdatadiscovery",
|
|
515
|
+
"predictionDefinitions",
|
|
516
|
+
"1OR5Y0000010ws8WAA",
|
|
517
|
+
"models"
|
|
518
|
+
]
|
|
519
|
+
}
|
|
520
|
+
},
|
|
521
|
+
"status": "OK",
|
|
522
|
+
"code": 200,
|
|
523
|
+
"_postman_previewlanguage": "json",
|
|
524
|
+
"header": [
|
|
525
|
+
{
|
|
526
|
+
"key": "Date",
|
|
527
|
+
"value": "Thu, 04 Mar 2021 13:48:31 GMT"
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
"key": "Strict-Transport-Security",
|
|
531
|
+
"value": "max-age=31536002; includeSubDomains"
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
"key": "Expect-CT",
|
|
535
|
+
"value": "max-age=86400, report-uri=\"https://a.forcesslreports.com/Expect-CT-report/00D5Y000001crJvm\""
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"key": "X-Content-Type-Options",
|
|
539
|
+
"value": "nosniff"
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"key": "X-XSS-Protection",
|
|
543
|
+
"value": "1; mode=block"
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
"key": "X-Robots-Tag",
|
|
547
|
+
"value": "none"
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
"key": "Cache-Control",
|
|
551
|
+
"value": "no-cache,must-revalidate,max-age=0,no-store,private"
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
"key": "Content-Type",
|
|
555
|
+
"value": "application/json;charset=UTF-8"
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
"key": "Vary",
|
|
559
|
+
"value": "Accept-Encoding"
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
"key": "Content-Encoding",
|
|
563
|
+
"value": "gzip"
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
"key": "Transfer-Encoding",
|
|
567
|
+
"value": "chunked"
|
|
568
|
+
}
|
|
569
|
+
],
|
|
570
|
+
"cookie": [],
|
|
571
|
+
"body": "{\n \"models\": [\n {\n \"createdBy\": {\n \"id\": \"0055Y00000DWwAIQA1\",\n \"name\": \"Philippe Ozil\",\n \"profilePhotoUrl\": \"https://crm-analytics-deorg-dev-ed--c.documentforce.com/profilephoto/005/T\"\n },\n \"createdDate\": \"2021-03-04T13:37:03.000Z\",\n \"fieldMappingList\": [\n {\n \"modelField\": {\n \"label\": \"Category\",\n \"name\": \"Category\",\n \"type\": \"Text\"\n }\n },\n {\n \"modelField\": {\n \"label\": \"Sales\",\n \"name\": \"Sales\",\n \"type\": \"Number\"\n }\n },\n {\n \"modelField\": {\n \"label\": \"Profit per Order\",\n \"name\": \"Profit_per_Order\",\n \"type\": \"Number\"\n }\n },\n {\n \"modelField\": {\n \"label\": \"Sub-Category\",\n \"name\": \"Sub_Category\",\n \"type\": \"Text\"\n }\n },\n {\n \"modelField\": {\n \"label\": \"Quantity\",\n \"name\": \"Quantity\",\n \"type\": \"Number\"\n }\n }\n ],\n \"filters\": [],\n \"historyUrl\": \"/services/data/v51.0/smartdatadiscovery/predictiondefinitions/1OR5Y0000010ws8WAA/models/1Ot5Y0000010wzNSAQ/histories\",\n \"id\": \"1Ot5Y0000010wzNSAQ\",\n \"isRefreshEnabled\": false,\n \"label\": \"superstore-orders\",\n \"lastModifiedBy\": {\n \"id\": \"0055Y00000DWwAIQA1\",\n \"name\": \"Philippe Ozil\",\n \"profilePhotoUrl\": \"https://crm-analytics-deorg-dev-ed--c.documentforce.com/profilephoto/005/T\"\n },\n \"lastModifiedDate\": \"2021-03-04T13:37:03.000Z\",\n \"model\": {\n \"id\": \"1OT5Y0000010zlzWAA\"\n },\n \"modelType\": \"Regression\",\n \"name\": \"superstore_orders\",\n \"predictionDefinitionUrl\": \"/services/data/v51.0/smartdatadiscovery/predictiondefinitions/1OR5Y0000010ws8WAA\",\n \"prescribableFields\": [\n {\n \"customDefinitions\": [],\n \"field\": {\n \"label\": \"Quantity\",\n \"name\": \"Quantity\",\n \"type\": \"Number\"\n }\n }\n ],\n \"sortOrder\": 0,\n \"status\": \"Enabled\",\n \"url\": \"/services/data/v51.0/smartdatadiscovery/predictiondefinitions/1OR5Y0000010ws8WAA/models/1Ot5Y0000010wzNSAQ\"\n }\n ],\n \"totalSize\": 1,\n \"url\": \"/services/data/v51.0/smartdatadiscovery/predictiondefinitions/1OR5Y0000010ws8WAA/models\"\n}"
|
|
572
|
+
}
|
|
573
|
+
]
|
|
574
|
+
}
|
|
575
|
+
]
|
|
576
|
+
}
|