Skip to content

Commit

Permalink
Merge branch 'master' into google-drive-actions-improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
GTFalcao committed May 16, 2024
2 parents 37e0b76 + 6454125 commit 40878cb
Show file tree
Hide file tree
Showing 257 changed files with 5,130 additions and 670 deletions.
9 changes: 9 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,12 @@ node_modules
package-lock.json
pnpm-lock.yaml
platform/dist
*.md
*.mdx
*.txt
*.yml
*.yaml
*.lock
*.py
*.png

10 changes: 5 additions & 5 deletions .github/workflows/components-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
pull-requests: write

steps:
- uses: actions/[email protected].4
- uses: actions/[email protected].5
name: Checkout repo
with:
# See https://github.com/actions/checkout#checkout-v2
Expand Down Expand Up @@ -48,8 +48,8 @@ jobs:

steps:
- name: Checkout code
uses: actions/[email protected].4
- uses: pnpm/action-setup@v3.0.0
uses: actions/[email protected].5
- uses: pnpm/action-setup@v4.0.0
with:
version: 7.33.6
- name: Get pnpm store directory
Expand Down Expand Up @@ -137,8 +137,8 @@ jobs:

steps:
- name: Checkout code
uses: actions/[email protected].4
- uses: pnpm/action-setup@v3.0.0
uses: actions/[email protected].5
- uses: pnpm/action-setup@v4.0.0
with:
version: 7.33.6
- name: Get pnpm store directory
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/[email protected].4
- uses: actions/[email protected].5
name: Checkout repo
with:
# See https://github.com/actions/checkout#checkout-v2
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish-components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected].4
- uses: pnpm/action-setup@v3.0.0
uses: actions/[email protected].5
- uses: pnpm/action-setup@v4.0.0
with:
version: 7.33.6
- name: Get pnpm store directory
Expand Down Expand Up @@ -117,8 +117,8 @@ jobs:

steps:
- name: Checkout code
uses: actions/[email protected].4
- uses: pnpm/action-setup@v3.0.0
uses: actions/[email protected].5
- uses: pnpm/action-setup@v4.0.0
with:
version: 7.33.6
- name: Get pnpm store directory
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-marketplace-content.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected].4
- uses: pnpm/action-setup@v3.0.0
uses: actions/[email protected].5
- uses: pnpm/action-setup@v4.0.0
with:
version: 7.33.6
- name: Get pnpm store directory
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/[email protected].4
- uses: pnpm/action-setup@v3.0.0
- uses: actions/[email protected].5
- uses: pnpm/action-setup@v4.0.0
with:
version: 7.33.6
- name: Get pnpm store directory
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pull-request-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/[email protected].4
- uses: actions/[email protected].5
name: Checkout
- uses: jitterbit/get-changed-files@v1
id: changed_files
Expand Down Expand Up @@ -48,12 +48,12 @@ jobs:

steps:
- name: Checkout Code
uses: actions/[email protected].4
uses: actions/[email protected].5
with:
# Full git history is needed to get a proper list of changed files
# within `super-linter`
fetch-depth: 0
- uses: pnpm/action-setup@v3.0.0
- uses: pnpm/action-setup@v4.0.0
with:
version: 7.33.6
- name: Get pnpm store directory
Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:
with:
format: 'space-delimited'
- name: Lint changed files
run: npx eslint ${{ steps.changed_files_space.outputs.added_modified }} ${{ steps.changed_files_space.outputs.renamed }}
run: npx eslint --quiet ${{ 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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import { defineApp } from "@pipedream/types";

export default defineApp({
export default {
type: "app",
app: "hotmart",
app: "appwrite",
propDefinitions: {},
methods: {
// this.$auth contains connected account data
authKeys() {
console.log(Object.keys(this.$auth));
},
},
});
};
15 changes: 15 additions & 0 deletions components/appwrite/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "@pipedream/appwrite",
"version": "0.0.1",
"description": "Pipedream Appwrite Components",
"main": "appwrite.app.mjs",
"keywords": [
"pipedream",
"appwrite"
],
"homepage": "https://pipedream.com/apps/appwrite",
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
"publishConfig": {
"access": "public"
}
}
11 changes: 11 additions & 0 deletions components/bilflo/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Overview

The Bilflo API allows users to automate and integrate staffing and workforce management processes. By connecting Bilflo with Pipedream, users can streamline data flows between Bilflo and other business applications, enabling automated reporting, payroll processing, and seamless data synchronization across platforms. This integration can significantly enhance operational efficiencies, reduce manual data entry, and provide real-time analytics for better decision-making.

# Example Use Cases

- **Automated Payroll Processing**: Set up a workflow on Pipedream where hours logged in Bilflo are automatically pushed to a payroll system like ADP or Paychex. When an employee submits their timesheet, the workflow triggers, validates the data, and sends it to the payroll app, ensuring timely and accurate payroll execution.

- **Real-time Staffing Updates to CRM**: Create a workflow that syncs new employee details or updates from Bilflo to a CRM platform such as Salesforce. Whenever there is a new hire or an update in employee status in Bilflo, the workflow automatically updates the corresponding records in Salesforce, keeping sales and service teams informed about staffing changes.

- **Automated Compliance Reporting**: Develop a workflow where employee data from Bilflo is used to automatically generate compliance reports. This workflow could connect Bilflo to a document generation tool like Google Docs or an analytics tool like Tableau, compiling necessary compliance information and creating reports at regular intervals or on demand.
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import bilflo from "../../bilflo.app.mjs";

export default {
key: "bilflo-assign-contract-job-to-invoice",
name: "Assign Contract Job to Invoice Group",
description: "Assigns a contract job to a specified invoice group for a client. [See the documentation](https://developer.bilflo.com/documentation#operations-tag-Clients)",
version: "0.0.1",
type: "action",
props: {
bilflo,
jobId: {
type: "integer",
label: "Contract Job Identifier",
description: "The unique identifier for the contract job.",
},
invoiceGroupId: {
type: "integer",
label: "Invoice Group Identifier",
description: "The unique identifier for the invoice group.",
},
},
async run({ $ }) {
const response = await this.bilflo.assignContractJobToInvoiceGroup({
$,
data: {
jobId: this.jobId,
invoiceGroupId: this.invoiceGroupId,
},
});
$.export("$summary", `Successfully assigned contract job ${this.jobId} to invoice group ${this.invoiceGroupId}`);
return response;
},
};
27 changes: 27 additions & 0 deletions components/bilflo/actions/create-client/create-client.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import bilflo from "../../bilflo.app.mjs";

export default {
key: "bilflo-create-client",
name: "Create Client",
description: "Creates a new client account in Bilflo. [See the documentation](https://developer.bilflo.com/documentation#operations-tag-Clients)",
version: "0.0.1",
type: "action",
props: {
bilflo,
businessName: {
type: "string",
label: "Business Name",
description: "The name of the business for the new client account.",
},
},
async run({ $ }) {
const response = await this.bilflo.createClient({
$,
data: {
businessName: this.businessName,
},
});
$.export("$summary", `Successfully created new client account with Id: ${response.data.clientId}`);
return response;
},
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
import bilflo from "../../bilflo.app.mjs";

export default {
key: "bilflo-create-contract-job",
name: "Create Contract Job",
description: "Creates a new contract job in Bilflo. [See the documentation](https://developer.bilflo.com/documentation)",
version: "0.0.1",
type: "action",
props: {
bilflo,
clientId: {
propDefinition: [
bilflo,
"clientId",
],
},
contractorId: {
type: "integer",
label: "Contractor ID",
description: "The unique identifier for the contractor.",
},
contractorTypeId: {
type: "integer",
label: "Contractor Type ID",
description: "The unique identifier for the contractor type.",
options: [
{
label: "W2",
value: 1,
},
{
label: "1099",
value: 2,
},
],
},
timeCardMethodId: {
type: "integer",
label: "Time Card Method ID",
description: "The unique identifier for the time card method.",
},
overtimeRuleId: {
type: "integer",
label: "Overtime Rule ID",
description: "The unique identifier for the overtime rule.",
},
jobTitle: {
type: "string",
label: "Job Title",
description: "The title of the job.",
},
startDate: {
type: "string",
label: "Start Date",
description: "The start date of the contract job. **Format YYYY-MM-DDTHH:MM:SSZ**",
},
endDate: {
type: "string",
label: "End Date",
description: "The end date of the contract job. **Format YYYY-MM-DDTHH:MM:SSZ**",
},
firstWeekEndingDate: {
type: "string",
label: "First Week Ending Date",
description: "The first week ending date of the contract job. **Format YYYY-MM-DDTHH:MM:SSZ**",
},
burdenTypeId: {
type: "integer",
label: "Burden Type ID",
description: "The unique identifier for the burden type.",
},
},
async run({ $ }) {
const response = await this.bilflo.createContractJob({
$,
data: {
clientId: this.clientId,
contractorId: this.contractorId,
contractorTypeId: this.contractorTypeId,
timeCardMethodId: this.timeCardMethodId,
overtimeRuleId: this.overtimeRuleId,
jobTitle: this.jobTitle,
startDate: this.startDate,
endDate: this.endDate,
firstWeekEndingDate: this.firstWeekEndingDate,
burdenTypeId: this.burdenTypeId,
},
});

$.export("$summary", `Successfully created contract job Id: ${response.data.jobId}`);
return response;
},
};

0 comments on commit 40878cb

Please sign in to comment.