Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into telnyx-send-group…
Browse files Browse the repository at this point in the history
…-mms
  • Loading branch information
GTFalcao committed May 2, 2024
2 parents d1b7f7c + 4f283b6 commit bb57d98
Show file tree
Hide file tree
Showing 81 changed files with 2,360 additions and 43 deletions.
12 changes: 0 additions & 12 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
## WHAT

copilot:summary

copilot:poem


## WHY

<!-- author to complete -->


## HOW

copilot:walkthrough
13 changes: 9 additions & 4 deletions .github/workflows/pull-request-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,19 @@ jobs:
VALIDATE_ALL_CODEBASE: false
VALIDATE_JAVASCRIPT_ES: true
VALIDATE_JSON: true
- name: Get Changed Files
# ESLint only on changed files (not the same as the above super-linter)
- name: Get Changed Files (space-separated)
id: changed_files_space
uses: jitterbit/get-changed-files@v1
with:
format: 'space-delimited'
- name: Lint changed files
run: npx eslint ${{ steps.changed_files_space.outputs.added_modified }} ${{ steps.changed_files_space.outputs.renamed }}
- name: Get Changed Files (comma-separated)
id: changed_files
uses: jitterbit/get-changed-files@v1
with:
format: 'csv'
# ESLint only on changed files (not the same as the above super-linter)
- name: Lint changed files
run: npx eslint ${{ steps.changed_files.outputs.added_modified }} ${{ steps.changed_files.outputs.renamed }}
# NOTE: These steps are kept in this workflow to avoid re-rerunning the rest of the lint job
# in the Components Checks workflow
- name: Check component keys
Expand Down
11 changes: 11 additions & 0 deletions components/bilflo/bilflo.app.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export default {
type: "app",
app: "bilflo",
propDefinitions: {},
methods: {
// this.$auth contains connected account data
authKeys() {
console.log(Object.keys(this.$auth));
},
},
};
15 changes: 15 additions & 0 deletions components/bilflo/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "@pipedream/bilflo",
"version": "0.0.1",
"description": "Pipedream Bilflo Components",
"main": "bilflo.app.mjs",
"keywords": [
"pipedream",
"bilflo"
],
"homepage": "https://pipedream.com/apps/bilflo",
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
"publishConfig": {
"access": "public"
}
}
11 changes: 11 additions & 0 deletions components/botpress/botpress.app.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export default {
type: "app",
app: "botpress",
propDefinitions: {},
methods: {
// this.$auth contains connected account data
authKeys() {
console.log(Object.keys(this.$auth));
},
},
};
15 changes: 15 additions & 0 deletions components/botpress/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "@pipedream/botpress",
"version": "0.0.1",
"description": "Pipedream Botpress Components",
"main": "botpress.app.mjs",
"keywords": [
"pipedream",
"botpress"
],
"homepage": "https://pipedream.com/apps/botpress",
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
"publishConfig": {
"access": "public"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
import calendly from "../../calendly_v2.app.mjs";
import { axios } from "@pipedream/platform";

export default {
key: "calendly_v2-create-invitee-no-show",
name: "Create Invitee No Show",
description: "Marks an Invitee as a No Show in Calendly. [See the documentation](https://calendly.stoplight.io/docs/api-docs/cebd8c3170790-create-invitee-no-show).",
version: "0.0.1",
type: "action",
props: {
calendly,
eventId: {
propDefinition: [
calendly,
"eventId",
],
},
inviteeUri: {
type: "string",
label: "Invitee URI",
description: "The invitee to mark as a no show",
async options({ prevContext }) {
const params = prevContext.pageToken
? {
page_token: prevContext.pageToken,
}
: {};
const {
collection, pagination,
} = await this.calendly.listEventInvitees(params, this.eventId);
const options = collection?.map(({
uri: value, name: label,
}) => ({
value,
label,
})) || [];
return {
options,
context: {
pageToken: pagination?.next_page_token,
},
};
},
},
},
methods: {
createInviteeNoShow(opts = {}, $) {
return axios(
$,
this.calendly._makeRequestOpts({
method: "POST",
path: "/invitee_no_shows",
...opts,
}),
);
},
},
async run({ $ }) {
const response = await this.createInviteeNoShow({
data: {
invitee: this.inviteeUri,
},
}, $);
$.export("$summary", `Successfully marked invitee ${this.inviteeUri} as a no show`);
return response;
},
};
2 changes: 1 addition & 1 deletion components/calendly_v2/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/calendly_v2",
"version": "1.1.4",
"version": "1.2.0",
"description": "Pipedream Calendly V2 Components",
"main": "calendly_v2.app.mjs",
"keywords": [
Expand Down
11 changes: 11 additions & 0 deletions components/chatfly/chatfly.app.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export default {
type: "app",
app: "chatfly",
propDefinitions: {},
methods: {
// this.$auth contains connected account data
authKeys() {
console.log(Object.keys(this.$auth));
},
},
};
15 changes: 15 additions & 0 deletions components/chatfly/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "@pipedream/chatfly",
"version": "0.0.1",
"description": "Pipedream ChatFly Components",
"main": "chatfly.app.mjs",
"keywords": [
"pipedream",
"chatfly"
],
"homepage": "https://pipedream.com/apps/chatfly",
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
"publishConfig": {
"access": "public"
}
}
70 changes: 70 additions & 0 deletions components/clio/actions/create-matter/create-matter.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
import app from "../../clio.app.mjs";

export default {
key: "clio-create-matter",
name: "Create New Matter",
description: "Creates a new matter in Clio. [See the documentation](https://docs.developers.clio.com/api-reference/#tag/Matters/operation/Matter#index)",
version: "0.0.1",
type: "action",
props: {
app,
clientId: {
propDefinition: [
app,
"clientId",
],
},
description: {
propDefinition: [
app,
"description",
],
},
closeDate: {
propDefinition: [
app,
"closeDate",
],
},
clientReference: {
propDefinition: [
app,
"clientReference",
],
},
},
methods: {
createMatter(args = {}) {
return this.app.post({
path: "/matters.json",
...args,
});
},
},
async run({ $ }) {
const {
createMatter,
clientId,
description,
closeDate,
clientReference,
} = this;

const response = await createMatter({
$,
data: {
data: {
client: {
id: clientId,
},
description,
close_date: closeDate,
client_reference: clientReference,
},
},
});

$.export("$summary", `Successfully created a new matter with ID \`${response.data.id}\``);
return response;
},
};

0 comments on commit bb57d98

Please sign in to comment.