-
Notifications
You must be signed in to change notification settings - Fork 18
Apigee (new) #579
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
vtalas
wants to merge
19
commits into
clientIO:dev
Choose a base branch
from
vtalas:apigee
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Apigee (new) #579
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
8fc0de2
apify
vtalas 62231e9
update
vtalas 63e8bce
apigee
vtalas afa8c3c
apigee
vtalas a32a27c
apigee
vtalas 3626080
apigee
vtalas 8c886cb
apigee
vtalas 4c6c890
apigee
vtalas 289c34e
update
vtalas 3868d6c
update
vtalas e5d0d9c
update
vtalas adcbce7
update
vtalas 542658e
update
vtalas d7208ce
appmixer context
vtalas a5d6e56
update
vtalas fd854ab
update
vtalas 2118063
update
vtalas 8fe7a09
update
vtalas f5b55be
update
vtalas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/appmixer/apify/crawlers/FetchDatasets/FetchDatasets.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
const lib = require('../../lib.generated'); | ||
module.exports = { | ||
async receive(context) { | ||
const { desc } = context.messages.in.content; | ||
|
||
// https://docs.apify.com/api/v2#/reference/datasets/dataset-collection/get-list-of-datasets | ||
const { data } = await lib.callEndpoint(context, { | ||
method: 'GET', | ||
action: 'datasets' | ||
}); | ||
|
||
return context.sendJson(data, 'out'); | ||
} | ||
}; |
106 changes: 106 additions & 0 deletions
106
src/appmixer/apify/crawlers/FetchDatasets/component.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
{ | ||
"name": "appmixer.apify.core.FetchDatasets", | ||
"author": "Appmixer <info@appmixer.com>", | ||
"description": "Retrieve datasets from the Apify platform, which store structured data extracted by actors.", | ||
"version": "1.0.0", | ||
"private": false, | ||
"auth": { | ||
"service": "appmixer:apify" | ||
}, | ||
"quota": { | ||
"manager": "appmixer:apify", | ||
"resources": "requests" | ||
}, | ||
"inPorts": [ | ||
{ | ||
"name": "in" | ||
} | ||
], | ||
"outPorts": [ | ||
{ | ||
"name": "out", | ||
"options": [ | ||
{ | ||
"label": "Total", | ||
"value": "total", | ||
"schema": { | ||
"type": "number" | ||
} | ||
}, | ||
{ | ||
"label": "Count", | ||
"value": "count", | ||
"schema": { | ||
"type": "number" | ||
} | ||
}, | ||
{ | ||
"label": "Offset", | ||
"value": "offset", | ||
"schema": { | ||
"type": "number" | ||
} | ||
}, | ||
{ | ||
"label": "Limit", | ||
"value": "limit", | ||
"schema": { | ||
"type": "number" | ||
} | ||
}, | ||
{ | ||
"label": "Desc", | ||
"value": "desc", | ||
"schema": { | ||
"type": "boolean" | ||
} | ||
}, | ||
{ | ||
"label": "Items", | ||
"value": "items", | ||
"schema": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": "string", | ||
"title": "Items.Id" | ||
}, | ||
"name": { | ||
"type": "string", | ||
"title": "Items.Name" | ||
}, | ||
"userId": { | ||
"type": "string", | ||
"title": "Items.User Id" | ||
}, | ||
"createdAt": { | ||
"type": "string", | ||
"title": "Items.Created At" | ||
}, | ||
"modifiedAt": { | ||
"type": "string", | ||
"title": "Items.Modified At" | ||
}, | ||
"accessedAt": { | ||
"type": "string", | ||
"title": "Items.Accessed At" | ||
}, | ||
"itemCount": { | ||
"type": "number", | ||
"title": "Items.Item Count" | ||
}, | ||
"cleanItemCount": { | ||
"type": "number", | ||
"title": "Items.Clean Item Count" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
], | ||
"icon": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAuMzc1IDM5OC40MzIiPjxkZWZzPjxzdHlsZT4uYXtmaWxsOiNmZmY7b3BhY2l0eTowO30uYntmaWxsOiMwMGE3Y2U7fS5je2ZpbGw6I2ZmOTAxMjt9LmR7ZmlsbDojNmNjMDRhO308L3N0eWxlPjwvZGVmcz48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjA5NzEuNjI1IDk4LjE0NSkiPjxyZWN0IGNsYXNzPSJhIiB3aWR0aD0iNDAwIiBoZWlnaHQ9IjM5OCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjA5NzIgLTk4KSIvPjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDc4MSkiPjxwYXRoIGNsYXNzPSJiIiBkPSJNNDQzLjAyNSwyOTAuNjYxbC0xMTYuNTYxLTI2MGMyMy4yMjctNC4yLDQwLjAzOS03LjI1NSw0Mi44NzQtNy43NzhhNzAuNTksNzAuNTksMCwwLDEsMTIuMjUtLjkzOSw4My45MTMsODMuOTEzLDAsMCwxLDE3LjQ4NCwxLjc4MSw2MC40OCw2MC40OCwwLDAsMSwxOC44LDcuMjNBNDYuMDQzLDQ2LjA0MywwLDAsMSw0MzMuNSw0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NC40MVoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIwMTkwLjYyNSAtMTIwLjE3MikiLz48L2c+PC9nPjwvc3ZnPg==" | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | 7B34Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
TEST_SERVER_URL=http://localhost:2200 appmixer test auth login src/appmixer/apigee/auth.js -c 1038500334679-25o83vj5269qkj67frpgtgs0ndbaq2la.apps.googleusercontent.com -s CJrM6NIQ87qfIrhbYK3tq.............. -o "https://www.googleapis.com/auth/cloud-platform" | ||
|
||
appmixer test auth refresh src/appmixer/apigee/auth.js | ||
|
||
appmixer test component src/appmixer/apigee/core/ListOrganizations | ||
|
||
appmixer test component src/appmixer/apigee/core/ListEnvironments -p '{"org":"new-edge-team"}' | ||
|
||
appmixer test component src/appmixer/apigee/core/ListKeyValueMaps -p '{"org":"new-edge-team", "env":"intermediate-dev-env"}' | ||
|
||
appmixer test component src/appmixer/apigee/core/ListEntries -p '{"org":"new-edge-team", "env":"intermediate-dev-env"}' -i '{"in":{"mapName":"appmixer-blocked-ips"}}' | ||
|
||
appmixer test component src/appmixer/apigee/core/ListEntries -p '{"org":"new-edge-team", "env":"intermediate-dev-env"}' -i '{"in":{"mapName":"salt-acl-policy"}}' | ||
|
||
appmixer test component src/appmixer/apigee/core/AddEntry -p '{"org":"new-edge-team", "env":"intermediate-dev-env"}' -i '{"in":{"mapName":"appmixer-blocked-ips", "ips": "1.1.1.1", "ttl": 3600, "comment": "test"}}' | ||
|
||
appmixer test component src/appmixer/apigee/core/AddEntry -p '{"org":"new-edge-team", "env":"intermediate-dev-env"}' -i '{"in":{"mapName":"appmixer-blocked-ips", "ips": "2001:0db8:85a3:0000:0000:8a2e:0370:7334", "ttl": 3600, "comment": "test"}}' | ||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Input port lacks a
schema
definition.All components should declare a JSON schema for each input port (even if empty) to guarantee consistent UI and validation.
📝 Committable suggestion
🤖 Prompt for AI Agents