From 627ffcfa1a5c21c859b6e987774161388b23b6cc Mon Sep 17 00:00:00 2001 From: Eric Hilary Smith Date: Sun, 10 Mar 2019 13:26:46 -0500 Subject: [PATCH 01/10] Update main.workflow --- .github/main.workflow | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .github/main.workflow diff --git a/.github/main.workflow b/.github/main.workflow new file mode 100644 index 0000000..24e1cb4 --- /dev/null +++ b/.github/main.workflow @@ -0,0 +1,9 @@ +workflow "New workflow" { + on = "push" + resolves = ["HTTP client"] +} + +action "HTTP client" { + uses = "swinton/httpie.action@8ab0a0e926d091e0444fcacd5eb679d2e2d4ab3d" + secrets = ["GITHUB_TOKEN"] +} From 9e6c6c502495a0a21836f5138db87e469e90b891 Mon Sep 17 00:00:00 2001 From: Eric Hilary Smith Date: Tue, 19 Mar 2019 07:39:17 -0500 Subject: [PATCH 02/10] Transferring API Description file from Apiary.io --- swagger.yaml | 139 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 139 insertions(+) create mode 100644 swagger.yaml diff --git a/swagger.yaml b/swagger.yaml new file mode 100644 index 0000000..0bdddbe --- /dev/null +++ b/swagger.yaml @@ -0,0 +1,139 @@ +swagger: "2.0" +info: + version: 1.0.0 + title: "Cloverleaves Accounting Cloud" + description: A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification + termsOfService: http://swagger.io/terms/ + contact: + name: Swagger API Team + email: foo@example.com + url: http://madskristensen.net + license: + name: MIT + url: http://github.com/gruntjs/grunt/blob/master/LICENSE-MIT +host: petstore.swagger.io +basePath: /api +schemes: + - http +consumes: + - application/json +produces: + - application/json +paths: + /pets: + get: + description: | + Returns all pets from the system that the user has access to + Nam sed condimentum est. Maecenas tempor sagittis sapien, nec rhoncus sem sagittis sit amet. Aenean at gravida augue, ac iaculis sem. Curabitur odio lorem, ornare eget elementum nec, cursus id lectus. Duis mi turpis, pulvinar ac eros ac, tincidunt varius justo. In hac habitasse platea dictumst. Integer at adipiscing ante, a sagittis ligula. Aenean pharetra tempor ante molestie imperdiet. Vivamus id aliquam diam. Cras quis velit non tortor eleifend sagittis. Praesent at enim pharetra urna volutpat venenatis eget eget mauris. In eleifend fermentum facilisis. Praesent enim enim, gravida ac sodales sed, placerat id erat. Suspendisse lacus dolor, consectetur non augue vel, vehicula interdum libero. Morbi euismod sagittis libero sed lacinia. + Sed tempus felis lobortis leo pulvinar rutrum. Nam mattis velit nisl, eu condimentum ligula luctus nec. Phasellus semper velit eget aliquet faucibus. In a mattis elit. Phasellus vel urna viverra, condimentum lorem id, rhoncus nibh. Ut pellentesque posuere elementum. Sed a varius odio. Morbi rhoncus ligula libero, vel eleifend nunc tristique vitae. Fusce et sem dui. Aenean nec scelerisque tortor. Fusce malesuada accumsan magna vel tempus. Quisque mollis felis eu dolor tristique, sit amet auctor felis gravida. Sed libero lorem, molestie sed nisl in, accumsan tempor nisi. Fusce sollicitudin massa ut lacinia mattis. Sed vel eleifend lorem. Pellentesque vitae felis pretium, pulvinar elit eu, euismod sapien. + operationId: findPets + parameters: + - name: tags + in: query + description: tags to filter by + required: false + type: array + collectionFormat: csv + items: + type: string + - name: limit + in: query + description: maximum number of results to return + required: false + type: integer + format: int32 + responses: + 200: + description: pet response + schema: + type: array + items: + $ref: '#/definitions/Pet' + default: + description: unexpected error + schema: + $ref: '#/definitions/Error' + post: + description: Creates a new pet in the store. Duplicates are allowed + operationId: addPet + parameters: + - name: pet + in: body + description: Pet to add to the store + required: true + schema: + $ref: '#/definitions/NewPet' + responses: + 200: + description: pet response + schema: + $ref: '#/definitions/Pet' + default: + description: unexpected error + schema: + $ref: '#/definitions/Error' + /pets/{id}: + get: + description: Returns a user based on a single ID, if the user does not have access to the pet + operationId: find pet by id + parameters: + - name: id + in: path + description: ID of pet to fetch + required: true + type: integer + format: int64 + responses: + 200: + description: pet response + schema: + $ref: '#/definitions/Pet' + default: + description: unexpected error + schema: + $ref: '#/definitions/Error' + delete: + description: deletes a single pet based on the ID supplied + operationId: deletePet + parameters: + - name: id + in: path + description: ID of pet to delete + required: true + type: integer + format: int64 + responses: + 204: + description: pet deleted + default: + description: unexpected error + schema: + $ref: '#/definitions/Error' +definitions: + Pet: + allOf: + - $ref: '#/definitions/NewPet' + - required: + - id + properties: + id: + type: integer + format: int64 + NewPet: + required: + - name + properties: + name: + type: string + tag: + type: string + Error: + required: + - code + - message + properties: + code: + type: integer + format: int32 + message: + type: string \ No newline at end of file From 930e2a213f903d43853a127ec4c1410d71d04ea6 Mon Sep 17 00:00:00 2001 From: DataFire Date: Sun, 14 Apr 2019 18:15:43 -0500 Subject: [PATCH 03/10] Edit DataFire project --- DataFire.yml | 4 ++++ actions/action.js | 10 ++++++++++ package.json | 5 +++++ 3 files changed, 19 insertions(+) create mode 100644 DataFire.yml create mode 100644 actions/action.js create mode 100644 package.json diff --git a/DataFire.yml b/DataFire.yml new file mode 100644 index 0000000..d3a2f04 --- /dev/null +++ b/DataFire.yml @@ -0,0 +1,4 @@ +options: + cors: true +actions: + action: ./actions/action.js diff --git a/actions/action.js b/actions/action.js new file mode 100644 index 0000000..4ea5727 --- /dev/null +++ b/actions/action.js @@ -0,0 +1,10 @@ +"use strict"; +let datafire = require('datafire'); + +let linkedin = require('@datafire/linkedin').actions; +module.exports = new datafire.Action({ + handler: async (input, context) => { + let result = await Promise.all([].map(item => linkedin.companies.get({}, context))); + return result; + }, +}); diff --git a/package.json b/package.json new file mode 100644 index 0000000..0cde2c9 --- /dev/null +++ b/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "@datafire/linkedin": "4.0.0" + } +} \ No newline at end of file From da89db1104b899dba90f5ec040a8d9d34eb962f5 Mon Sep 17 00:00:00 2001 From: DataFire Date: Sun, 14 Apr 2019 18:17:22 -0500 Subject: [PATCH 04/10] Edit DataFire project --- DataFire.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/DataFire.yml b/DataFire.yml index d3a2f04..2802ed7 100644 --- a/DataFire.yml +++ b/DataFire.yml @@ -2,3 +2,14 @@ options: cors: true actions: action: ./actions/action.js +tasks: + task: + schedule: cron(5 8 ? * 0) + action: linkedin/companies.get + accounts: {} + monitor: + action: linkedin/companies.get + accounts: {} + trackBy: '' + array: '' + input: {} From 5d211e7a5da445b382d0b89d3ad7b577bbab6e46 Mon Sep 17 00:00:00 2001 From: DataFire Date: Sun, 14 Apr 2019 18:17:56 -0500 Subject: [PATCH 05/10] Edit DataFire project --- DataFire.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/DataFire.yml b/DataFire.yml index 2802ed7..e4aad38 100644 --- a/DataFire.yml +++ b/DataFire.yml @@ -13,3 +13,8 @@ tasks: trackBy: '' array: '' input: {} +paths: + /paths0: + get: + action: linkedin/companies.get + accounts: {} From 0c347a46fd0f515cf48b88cdeea8e35975c48f89 Mon Sep 17 00:00:00 2001 From: DataFire Date: Sun, 14 Apr 2019 18:18:15 -0500 Subject: [PATCH 06/10] Edit DataFire project --- DataFire.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/DataFire.yml b/DataFire.yml index e4aad38..e78f151 100644 --- a/DataFire.yml +++ b/DataFire.yml @@ -18,3 +18,8 @@ paths: get: action: linkedin/companies.get accounts: {} +tests: + test: + action: linkedin/companies.get + accounts: {} + input: {} From b3a7eab2f94642348c4a08e9ea7ba726b94523d6 Mon Sep 17 00:00:00 2001 From: DataFire Date: Mon, 10 Aug 2020 19:15:47 -0500 Subject: [PATCH 07/10] Edit DataFire project --- DataFire.yml | 1 + actions/action1.js | 12 ++++++++++++ package.json | 7 +++++-- 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 actions/action1.js diff --git a/DataFire.yml b/DataFire.yml index e78f151..9a5a466 100644 --- a/DataFire.yml +++ b/DataFire.yml @@ -2,6 +2,7 @@ options: cors: true actions: action: ./actions/action.js + action1: ./actions/action1.js tasks: task: schedule: cron(5 8 ? * 0) diff --git a/actions/action1.js b/actions/action1.js new file mode 100644 index 0000000..e37429d --- /dev/null +++ b/actions/action1.js @@ -0,0 +1,12 @@ +"use strict"; +let datafire = require('datafire'); + +let hubspot = require('@datafire/hubspot').actions; +module.exports = new datafire.Action({ + handler: async (input, context) => { + let result = await Promise.all([].map(item => hubspot.getCompanyByDomain({ + domain: "", + }, context))); + return result; + }, +}); diff --git a/package.json b/package.json index 0cde2c9..2ef3b69 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,8 @@ { "dependencies": { - "@datafire/linkedin": "4.0.0" - } + "@datafire/linkedin": "4.0.0", + "@datafire/hubspot": "1.1.0" + }, + "name": "cloverleavesaccountingcloud", + "version": "1.0.0" } \ No newline at end of file From 87b73101180aada2ca338123730d529f3eadd3a3 Mon Sep 17 00:00:00 2001 From: DataFire Date: Mon, 10 Aug 2020 19:17:05 -0500 Subject: [PATCH 08/10] Edit DataFire project --- DataFire.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/DataFire.yml b/DataFire.yml index 9a5a466..ae46cd2 100644 --- a/DataFire.yml +++ b/DataFire.yml @@ -14,6 +14,17 @@ tasks: trackBy: '' array: '' input: {} + task1: + schedule: cron(5 8 ? * 0) + action: hubspot/getCompanyByDomain + accounts: {} + monitor: + action: hubspot/getCompanyByDomain + accounts: {} + trackBy: '' + array: '' + input: + domain: '""' paths: /paths0: get: From 134676dbbc3535f5c46a824bfa46b4fc864e066d Mon Sep 17 00:00:00 2001 From: DataFire Date: Mon, 10 Aug 2020 19:17:31 -0500 Subject: [PATCH 09/10] Edit DataFire project --- DataFire.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/DataFire.yml b/DataFire.yml index ae46cd2..9ddf383 100644 --- a/DataFire.yml +++ b/DataFire.yml @@ -30,6 +30,10 @@ paths: get: action: linkedin/companies.get accounts: {} + /paths1: + get: + action: hubspot/getCompanyByDomain + accounts: {} tests: test: action: linkedin/companies.get From 602b9d9bae6b514f3f562d24ef28b49a98d741df Mon Sep 17 00:00:00 2001 From: DataFire Date: Mon, 10 Aug 2020 19:17:58 -0500 Subject: [PATCH 10/10] Edit DataFire project --- DataFire.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/DataFire.yml b/DataFire.yml index 9ddf383..3ae08c3 100644 --- a/DataFire.yml +++ b/DataFire.yml @@ -39,3 +39,8 @@ tests: action: linkedin/companies.get accounts: {} input: {} + test1: + action: hubspot/getCompanyByDomain + accounts: {} + input: + domain: '""'