-
Notifications
You must be signed in to change notification settings - Fork 5.6k
feat(sendoso): Add comprehensive API endpoint support (51 new actions) #19129
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
michelle0927
merged 20 commits into
PipedreamHQ:master
from
tylersahagun:add-complete-sendoso-api-support
Nov 25, 2025
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
0f5752b
feat(sendoso): Add comprehensive API endpoint support (51 new actions)
tylersahagun 14bcef9
fix: Address all codeRabbit review suggestions
tylersahagun bb2a984
fix: Address CodeRabbit round 2 feedback
tylersahagun 382d2f6
fix: Address CodeRabbit round 3 feedback
tylersahagun 5227bc6
fix: Address latest CodeRabbit suggestions
tylersahagun 4ed7023
fix: address PR review feedback
tylersahagun f4f6ab4
Merge branch 'master' into add-complete-sendoso-api-support
tylersahagun e6df030
feat(sendoso): Remove outdated documentation files and enhance action…
luancazarine 85b7751
remove actions without corresponding endpoints
michelle0927 50f7b54
pnpm-lock.yaml
michelle0927 07f0122
updates
michelle0927 74bb7f0
updates, invite-new-user, send-egift
michelle0927 0813466
reinsert get-send-status
michelle0927 2773ff0
typos
michelle0927 a442472
reinsert listSendGifts for trackingId
michelle0927 2261a5c
remove unused props
michelle0927 1c41abd
updates
michelle0927 ae7a25a
updates per coderabbit
michelle0927 b9bbed8
updates
michelle0927 068fbe3
Merge branch 'master' into add-complete-sendoso-api-support
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
Some comments aren't visible on the classic Files Changed page.
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 |
|---|---|---|
|
|
@@ -1076,4 +1076,4 @@ Golang | |
| UX | ||
| taskSchedulerURL | ||
| taskId | ||
| codebase | ||
| codebase | ||
This file was deleted.
Oops, something went wrong.
50 changes: 50 additions & 0 deletions
50
components/sendoso/actions/create-egift-links/create-egift-links.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,50 @@ | ||
| import sendoso from "../../sendoso.app.mjs"; | ||
|
|
||
| export default { | ||
| key: "sendoso-create-egift-links", | ||
| name: "Create eGift Links", | ||
| description: "Generate eGift links. [See the documentation](https://developer.sendoso.com/rest-api/reference/sends/egift/eGiftlink)", | ||
| version: "0.0.1", | ||
| annotations: { | ||
| destructiveHint: false, | ||
| openWorldHint: true, | ||
| readOnlyHint: false, | ||
| }, | ||
| type: "action", | ||
| props: { | ||
| sendoso, | ||
| touchId: { | ||
| propDefinition: [ | ||
| sendoso, | ||
| "touchId", | ||
| ], | ||
| }, | ||
| viaFrom: { | ||
| type: "string", | ||
| label: "Via From", | ||
| description: "The name of the application making the send request. Please make sure this is consistent per application.", | ||
| }, | ||
| recipientUsers: { | ||
| type: "string[]", | ||
| label: "Recipient Users", | ||
| description: "The list of recipient emails to generate eGift links for", | ||
| }, | ||
| }, | ||
| async run({ $ }) { | ||
| const response = await this.sendoso.createEgiftLinks({ | ||
| $, | ||
| data: { | ||
| send: { | ||
| touch_id: this.touchId, | ||
| via: "generate_egift_links", | ||
| via_from: this.viaFrom, | ||
| recipient_users: this.recipientUsers.map((email) => ({ | ||
| email, | ||
| })), | ||
| }, | ||
| }, | ||
| }); | ||
| $.export("$summary", "Successfully created eGift links"); | ||
michelle0927 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| return response; | ||
| }, | ||
| }; | ||
83 changes: 0 additions & 83 deletions
83
components/sendoso/actions/generate-egift-link/generate-egift-link.mjs
This file was deleted.
Oops, something went wrong.
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,35 @@ | ||
| import sendoso from "../../sendoso.app.mjs"; | ||
|
|
||
| export default { | ||
| key: "sendoso-get-campaign", | ||
| name: "Get Campaign", | ||
| version: "0.0.1", | ||
| annotations: { | ||
| destructiveHint: false, | ||
| openWorldHint: true, | ||
| readOnlyHint: true, | ||
| }, | ||
| description: "Retrieve details about a specific campaign. [See the documentation](https://developer.sendoso.com/rest-api/reference/campaigns/get-campaign)", | ||
| type: "action", | ||
| props: { | ||
| sendoso, | ||
| campaignId: { | ||
| propDefinition: [ | ||
| sendoso, | ||
| "campaignId", | ||
| ], | ||
| }, | ||
| }, | ||
| async run({ $ }) { | ||
| const { campaignId } = this; | ||
|
|
||
| const response = await this.sendoso.getCampaign({ | ||
| $, | ||
| campaignId, | ||
| }); | ||
|
|
||
| $.export("$summary", `Successfully retrieved campaign ID: ${campaignId}`); | ||
| return response; | ||
| }, | ||
| }; | ||
|
|
24 changes: 24 additions & 0 deletions
24
components/sendoso/actions/get-current-user/get-current-user.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,24 @@ | ||
| import sendoso from "../../sendoso.app.mjs"; | ||
|
|
||
| export default { | ||
| key: "sendoso-get-current-user", | ||
| name: "Get Current User", | ||
| description: "Get information about the current user. [See the documentation](https://developer.sendoso.com/rest-api/reference/users/get-current-user)", | ||
| version: "0.0.1", | ||
| type: "action", | ||
| annotations: { | ||
| destructiveHint: false, | ||
| openWorldHint: true, | ||
| readOnlyHint: true, | ||
| }, | ||
| props: { | ||
| sendoso, | ||
| }, | ||
| async run({ $ }) { | ||
| const response = await this.sendoso.getCurrentUser({ | ||
| $, | ||
| }); | ||
| $.export("$summary", `Successfully retrieved current user information for ${response.email || "user"}`); | ||
| 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
63 changes: 63 additions & 0 deletions
63
components/sendoso/actions/invite-new-user/invite-new-user.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,63 @@ | ||
| import sendoso from "../../sendoso.app.mjs"; | ||
|
|
||
| export default { | ||
| key: "sendoso-invite-new-user", | ||
| name: "Invite New User", | ||
| description: "Invite a new user to the account. [See the documentation](https://developer.sendoso.com/rest-api/reference/users/invite-user)", | ||
| version: "0.0.1", | ||
| annotations: { | ||
| destructiveHint: false, | ||
| openWorldHint: true, | ||
| readOnlyHint: false, | ||
| }, | ||
| type: "action", | ||
| props: { | ||
| sendoso, | ||
| groupId: { | ||
| propDefinition: [ | ||
| sendoso, | ||
| "groupId", | ||
| ], | ||
| }, | ||
| email: { | ||
| type: "string", | ||
| label: "Email", | ||
| description: "The email address of the user to invite", | ||
| }, | ||
| firstName: { | ||
| type: "string", | ||
| label: "First Name", | ||
| description: "The first name of the user to invite", | ||
| }, | ||
| lastName: { | ||
| type: "string", | ||
| label: "Last Name", | ||
| description: "The last name of the user to invite", | ||
| }, | ||
| role: { | ||
| type: "string", | ||
| label: "Role", | ||
| description: "The role of the user to invite", | ||
| options: [ | ||
| "regular", | ||
| "manager", | ||
| ], | ||
| }, | ||
| }, | ||
| async run({ $ }) { | ||
| const response = await this.sendoso.inviteNewUser({ | ||
| $, | ||
| data: { | ||
| user: { | ||
| team_group_id: this.groupId, | ||
| email: this.email, | ||
| first_name: this.firstName, | ||
| last_name: this.lastName, | ||
| role: this.role, | ||
| }, | ||
| }, | ||
| }); | ||
| $.export("$summary", `Successfully invited new user ${this.firstName} ${this.lastName} to group ${this.groupId}`); | ||
| return response; | ||
| }, | ||
| }; |
47 changes: 47 additions & 0 deletions
47
components/sendoso/actions/list-all-users/list-all-users.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,47 @@ | ||
| import sendoso from "../../sendoso.app.mjs"; | ||
|
|
||
| export default { | ||
| key: "sendoso-list-all-users", | ||
| name: "List All Users", | ||
| version: "0.0.1", | ||
| annotations: { | ||
| destructiveHint: false, | ||
| openWorldHint: true, | ||
| readOnlyHint: true, | ||
| }, | ||
| description: "Retrieve a list of all users in the account. [See the documentation](https://developer.sendoso.com/rest-api/reference/users/get-users)", | ||
| type: "action", | ||
| props: { | ||
| sendoso, | ||
| page: { | ||
| propDefinition: [ | ||
| sendoso, | ||
| "page", | ||
| ], | ||
| }, | ||
| perPage: { | ||
| propDefinition: [ | ||
| sendoso, | ||
| "perPage", | ||
| ], | ||
| }, | ||
| }, | ||
| async run({ $ }) { | ||
| const response = await this.sendoso.listUsers({ | ||
| $, | ||
| params: { | ||
| page: this.page, | ||
| per_page: this.perPage, | ||
| }, | ||
| }); | ||
|
|
||
| const count = Array.isArray(response.users) ? | ||
| response.users.length : | ||
| (response.users?.length || 0); | ||
michelle0927 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| $.export("$summary", `Successfully retrieved ${count} user${count === 1 | ||
| ? "" | ||
| : "s"}`); | ||
| return response; | ||
| }, | ||
| }; | ||
|
|
||
47 changes: 47 additions & 0 deletions
47
components/sendoso/actions/list-campaigns/list-campaigns.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,47 @@ | ||
| import sendoso from "../../sendoso.app.mjs"; | ||
|
|
||
| export default { | ||
| key: "sendoso-list-campaigns", | ||
| name: "List Campaigns", | ||
| version: "0.0.1", | ||
| annotations: { | ||
| destructiveHint: false, | ||
| openWorldHint: true, | ||
| readOnlyHint: true, | ||
| }, | ||
| description: "Retrieve a list of all campaigns with optional filters. [See the documentation](https://developer.sendoso.com/rest-api/reference/campaigns/get-campaigns)", | ||
| type: "action", | ||
| props: { | ||
| sendoso, | ||
| page: { | ||
| propDefinition: [ | ||
| sendoso, | ||
| "page", | ||
| ], | ||
| }, | ||
| perPage: { | ||
| propDefinition: [ | ||
| sendoso, | ||
| "perPage", | ||
| ], | ||
| }, | ||
| }, | ||
| async run({ $ }) { | ||
| const response = await this.sendoso.listCampaigns({ | ||
| $, | ||
| params: { | ||
| page: this.page, | ||
| per_page: this.perPage, | ||
| }, | ||
| }); | ||
|
|
||
| const count = Array.isArray(response?.touches) ? | ||
| response.touches.length : | ||
| (response.touches?.length || 0); | ||
| $.export("$summary", `Successfully retrieved ${count} campaign${count === 1 | ||
| ? "" | ||
| : "s"}`); | ||
| return response; | ||
michelle0927 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| }, | ||
| }; | ||
|
|
||
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.