-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New Components - rippling #17049
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
Merged
Merged
New Components - rippling #17049
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
1640273
new components
michelle0927 882b42b
pnpm-lock.yaml
michelle0927 2dc2c2e
Merge remote-tracking branch 'origin/master' into issue-17046
michelle0927 a6b4b40
pnpm-lock.yaml
michelle0927 5bb7009
updates
michelle0927 cd2f5c9
update
michelle0927 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| import rippling from "../../rippling.app.mjs"; | ||
|
|
||
| export default { | ||
| key: "rippling-get-user", | ||
| name: "Get User", | ||
| description: "Retrieves a specific user from Rippling. [See the documentation](https://developer.rippling.com/documentation/rest-api/reference/get-users)", | ||
| version: "0.0.1", | ||
| type: "action", | ||
| props: { | ||
| rippling, | ||
| userId: { | ||
| propDefinition: [ | ||
| rippling, | ||
| "userId", | ||
| ], | ||
| }, | ||
| }, | ||
| async run({ $ }) { | ||
| const response = await this.rippling.getUser({ | ||
| $, | ||
| userId: this.userId, | ||
| }); | ||
|
|
||
| $.export("$summary", `Successfully retrieved user with ID: ${this.userId}`); | ||
| return response; | ||
| }, | ||
| }; | ||
54 changes: 54 additions & 0 deletions
54
components/rippling/actions/list-companies/list-companies.mjs
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,54 @@ | ||
| import rippling from "../../rippling.app.mjs"; | ||
|
|
||
| export default { | ||
| key: "rippling-list-companies", | ||
| name: "List Companies", | ||
| description: "Retrieves a list of all companies from Rippling. [See the documentation](https://developer.rippling.com/documentation/rest-api/reference/list-companies)", | ||
| version: "0.0.1", | ||
| type: "action", | ||
| props: { | ||
| rippling, | ||
| expand: { | ||
| propDefinition: [ | ||
| rippling, | ||
| "expandCompanies", | ||
| ], | ||
| }, | ||
| orderBy: { | ||
| propDefinition: [ | ||
| rippling, | ||
| "orderBy", | ||
| ], | ||
| }, | ||
| orderDirection: { | ||
| propDefinition: [ | ||
| rippling, | ||
| "orderDirection", | ||
| ], | ||
| }, | ||
| maxResults: { | ||
| propDefinition: [ | ||
| rippling, | ||
| "maxResults", | ||
| ], | ||
| }, | ||
| }, | ||
| async run({ $ }) { | ||
| const response = await this.rippling.getPaginatedResources({ | ||
| fn: this.rippling.listCompanies, | ||
| args: { | ||
| $, | ||
| params: { | ||
| order_by: `${this.orderBy} ${this.orderDirection}`, | ||
| ...(this.expand && { | ||
| expand: this.expand.join(","), | ||
| }), | ||
| }, | ||
| }, | ||
| max: this.maxResults, | ||
| }); | ||
|
|
||
| $.export("$summary", `Successfully retrieved ${response?.length || 0} companies`); | ||
| return response; | ||
| }, | ||
| }; |
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,48 @@ | ||
| import rippling from "../../rippling.app.mjs"; | ||
|
|
||
| export default { | ||
| key: "rippling-list-teams", | ||
| name: "List Teams", | ||
| description: "Retrieves a list of all teams from Rippling. [See the documentation](https://developer.rippling.com/documentation/rest-api/reference/list-teams)", | ||
| version: "0.0.1", | ||
| type: "action", | ||
| props: { | ||
| rippling, | ||
| expand: { | ||
| propDefinition: [ | ||
| rippling, | ||
| "expandTeams", | ||
| ], | ||
| }, | ||
| orderBy: { | ||
| propDefinition: [ | ||
| rippling, | ||
| "orderBy", | ||
| ], | ||
| }, | ||
| maxResults: { | ||
| propDefinition: [ | ||
| rippling, | ||
| "maxResults", | ||
| ], | ||
| }, | ||
| }, | ||
| async run({ $ }) { | ||
| const response = await this.rippling.getPaginatedResources({ | ||
| fn: this.rippling.listTeams, | ||
| args: { | ||
| $, | ||
| params: { | ||
| order_by: this.orderBy, | ||
| ...(this.expand && { | ||
| expand: this.expand.join(","), | ||
| }), | ||
| }, | ||
| }, | ||
| max: this.maxResults, | ||
| }); | ||
|
|
||
| $.export("$summary", `Successfully retrieved ${response?.length || 0} teams`); | ||
| return response; | ||
| }, | ||
| }; |
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,63 @@ | ||
| import rippling from "../../rippling.app.mjs"; | ||
|
|
||
| export default { | ||
| key: "rippling-list-workers", | ||
| name: "List Workers", | ||
| description: "Retrieves a list of all workers from Rippling. [See the documentation](https://developer.rippling.com/documentation/rest-api/reference/list-workers)", | ||
| version: "0.0.1", | ||
| type: "action", | ||
| props: { | ||
| rippling, | ||
| filter: { | ||
| propDefinition: [ | ||
| rippling, | ||
| "filterWorkers", | ||
| ], | ||
| }, | ||
| expand: { | ||
| propDefinition: [ | ||
| rippling, | ||
| "expandWorkers", | ||
| ], | ||
| }, | ||
| orderBy: { | ||
| propDefinition: [ | ||
| rippling, | ||
| "orderBy", | ||
| ], | ||
| }, | ||
| orderDirection: { | ||
| propDefinition: [ | ||
| rippling, | ||
| "orderDirection", | ||
| ], | ||
| }, | ||
| maxResults: { | ||
| propDefinition: [ | ||
| rippling, | ||
| "maxResults", | ||
| ], | ||
| }, | ||
| }, | ||
| async run({ $ }) { | ||
| const response = await this.rippling.getPaginatedResources({ | ||
| fn: this.rippling.listWorkers, | ||
| args: { | ||
| $, | ||
| params: { | ||
| order_by: `${this.orderBy} ${this.orderDirection}`, | ||
| ...(this.filter && { | ||
| filter: this.filter, | ||
| }), | ||
| ...(this.expand && { | ||
| expand: this.expand.join(","), | ||
| }), | ||
| }, | ||
| }, | ||
| max: this.maxResults, | ||
| }); | ||
|
|
||
| $.export("$summary", `Successfully retrieved ${response?.length || 0} workers`); | ||
| return response; | ||
| }, | ||
| }; |
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 |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "name": "@pipedream/rippling", | ||
| "version": "0.0.1", | ||
| "version": "0.1.0", | ||
| "description": "Pipedream Rippling Components", | ||
| "main": "rippling.app.mjs", | ||
| "keywords": [ | ||
|
|
@@ -11,5 +11,8 @@ | |
| "author": "Pipedream <[email protected]> (https://pipedream.com/)", | ||
| "publishConfig": { | ||
| "access": "public" | ||
| }, | ||
| "dependencies": { | ||
| "@pipedream/platform": "^3.1.0" | ||
| } | ||
| } | ||
| } | ||
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.
Uh oh!
There was an error while loading. Please reload this page.