diff --git a/openfn-5776895c-4307-4790-8c56-7d1d223b280f-spec.yaml b/openfn-5776895c-4307-4790-8c56-7d1d223b280f-spec.yaml new file mode 100644 index 0000000..42a2af4 --- /dev/null +++ b/openfn-5776895c-4307-4790-8c56-7d1d223b280f-spec.yaml @@ -0,0 +1,754 @@ +name: ayodele-arena +description: null +credentials: + ayodele@openfn.org-New-one-: + name: New one + owner: ayodele@openfn.org + ayodele@openfn.org-UNDP-Database: + name: UNDP Database + owner: ayodele@openfn.org + ayodele@openfn.org-Use-this: + name: Use this + owner: ayodele@openfn.org + ayodele@openfn.org-YOOOOOOOO: + name: YOOOOOOOO + owner: ayodele@openfn.org + ayodele@openfn.org-YOooo: + name: YOooo + owner: ayodele@openfn.org + ayodele@openfn.org-orgLocal_test: + name: orgLocal_test + owner: ayodele@openfn.org + ayodele@openfn.org-slash-credential: + name: slash credential + owner: ayodele@openfn.org + elias@openfn.org-WFWI-Sandbox-Credential-For-Elias: + name: WFWI Sandbox Credential For Elias + owner: elias@openfn.org +workflows: + Acumen: + name: Acumen + jobs: + Get-Data-from-GoogleSheets: + name: Get Data from GoogleSheets + adaptor: '@openfn/language-googlesheets@latest' + credential: null + body: | + + // Check out the Job Writing Guide for help getting started: + // https://docs.openfn.org/documentation/jobs/job-writing-guide + //versionz=oore + Clean-and-Map-data: + name: Clean and Map data + adaptor: '@openfn/language-common@latest' + credential: null + body: | + + // Check out the Job Writing Guide for help getting started: + // https://docs.openfn.org/documentation/jobs/job-writing-guide + + Cosmo: + name: Cosmo + adaptor: '@openfn/language-common@latest' + credential: null + body: | + + // Check out the Job Writing Guide for help getting started: + // https://docs.openfn.org/documentation/jobs/job-writing-guide + fn(x => x) + Do-this: + name: Do this + adaptor: '@openfn/language-common@latest' + credential: null + body: | + + // Check out the Job Writing Guide for help getting started: + // https://docs.openfn.org/documentation/jobs/job-writing-guide + // Get started by adding operations from the API reference + fn(state => { + return new Promise((resolve, reject) => { + setTimeout(() => { + console.log('wait, and then resolve'); + resolve(state); + // Note that this is in milliseconds + }, 5 * 1000); + }); + }); + + yoooio: + name: yoooio + adaptor: '@openfn/language-common@latest' + credential: null + body: | + + // Check out the Job Writing Guide for help getting started: + // https://docs.openfn.org/documentation/jobs/job-writing-guide + + triggers: + webhook: + type: webhook + enabled: true + edges: + webhook->Get-Data-from-GoogleSheets: + source_trigger: webhook + target_job: Get-Data-from-GoogleSheets + condition_type: always + enabled: true + Clean-and-Map-data->Cosmo: + source_job: Clean-and-Map-data + target_job: Cosmo + condition_type: on_job_failure + enabled: true + Get-Data-from-GoogleSheets->Do-this: + source_job: Get-Data-from-GoogleSheets + target_job: Do-this + condition_type: on_job_success + enabled: true + Get-Data-from-GoogleSheets->Clean-and-Map-data: + source_job: Get-Data-from-GoogleSheets + target_job: Clean-and-Map-data + condition_type: js_expression + condition_label: Always true + condition_expression: true + enabled: true + Do-this->yoooio: + source_job: Do-this + target_job: yoooio + condition_type: on_job_success + enabled: true + Configurable-Concurrency-Demo-: + name: Configurable Concurrency Demo + jobs: + New-job: + name: New job + adaptor: '@openfn/language-common@latest' + credential: null + body: | + + // Check out the Job Writing Guide for help getting started: + // https://docs.openfn.org/documentation/jobs/job-writing-guide + + triggers: + webhook: + type: webhook + enabled: true + edges: + webhook->New-job: + source_trigger: webhook + target_job: New-job + condition_type: always + enabled: true + Create-YouTrack-Issues-via-API: + name: Create YouTrack Issues via API + jobs: + Validate-and-map: + name: Validate and map + adaptor: '@openfn/language-common@latest' + credential: null + body: | + //nothing is here for now + Create-an-issue-on-YouTrack2: + name: Create an issue on YouTrack2 + adaptor: '@openfn/language-salesforce@2.1.0' + credential: null + body: | + // Get started by adding operations from the API reference + + state.title = "let's try something new" + + fn(state => { + return state + }) + + post('https://ayodeleatopenfn.youtrack.cloud/api/issues', { + body: { + "project":{"id":"0-1"}, + "summary":`BCG Vaccination for patient ${state.request.path[1]} `, + "description":` ${state.data.first_name} ${state.data.last_name} is offline call them on ${state.data.phone}` + }, + headers: { + 'content-type': 'application/json', + 'Authorization': 'Bearer perm:YWRtaW4=.NTEtMA==.H9fcd63wHDk4bKz7WgWWDUkxBDJAac' + }, + }) + triggers: + webhook: + type: webhook + enabled: false + edges: + webhook->Validate-and-map: + source_trigger: webhook + target_job: Validate-and-map + condition_type: always + enabled: true + Validate-and-map->Create-an-issue-on-YouTrack2: + source_job: Validate-and-map + target_job: Create-an-issue-on-YouTrack2 + condition_type: on_job_success + enabled: true + Make-it-work: + name: Make it work + jobs: + New-job: + name: New job + adaptor: '@openfn/language-common@latest' + credential: null + body: | + + // Check out the Job Writing Guide for help getting started: + // https://docs.openfn.org/documentation/jobs/job-writing-guide + + triggers: + webhook: + type: webhook + enabled: true + edges: + webhook->New-job: + source_trigger: webhook + target_job: New-job + condition_type: always + enabled: true + New-one-for-test: + name: New one for test + jobs: + New-job: + name: New job + adaptor: '@openfn/language-common@latest' + credential: null + body: | + + // Check out the Job Writing Guide for help getting started: + // https://docs.openfn.org/documentation/jobs/job-writing-guide + + triggers: + webhook: + type: webhook + enabled: true + edges: + webhook->New-job: + source_trigger: webhook + target_job: New-job + condition_type: always + enabled: true + Old: + name: Old + jobs: + Anot-GOog: + name: Anot GOog + adaptor: '@openfn/language-googlesheets@latest' + credential: null + body: | + // Get started by adding operations from the API reference + + triggers: + webhook: + type: webhook + enabled: false + edges: + webhook->Anot-GOog: + source_trigger: webhook + target_job: Anot-GOog + condition_type: always + enabled: true + OpenSPP: + name: OpenSPP + jobs: + Fetch-all-submissions-from-Kobotoolbox: + name: Fetch all submissions from Kobotoolbox + adaptor: '@openfn/language-kobotoolbox@latest' + credential: null + body: | + + // Check out the Job Writing Guide for help getting started: + // https://docs.openfn.org/documentation/jobs/job-writing-guide + + Validate-and-map-data: + name: Validate and map data + adaptor: '@openfn/language-common@latest' + credential: null + body: | + + // Check out the Job Writing Guide for help getting started: + // https://docs.openfn.org/documentation/jobs/job-writing-guide + + Send-data-to-OpenSPP: + name: Send data to OpenSPP + adaptor: '@openfn/language-openspp@latest' + credential: null + body: | + + // Check out the Job Writing Guide for help getting started: + // https://docs.openfn.org/documentation/jobs/job-writing-guide + + triggers: + cron: + type: cron + cron_expression: '00 00 01 * *' + enabled: true + edges: + cron->Fetch-all-submissions-from-Kobotoolbox: + source_trigger: cron + target_job: Fetch-all-submissions-from-Kobotoolbox + condition_type: always + enabled: true + Fetch-all-submissions-from-Kobotoolbox->Validate-and-map-data: + source_job: Fetch-all-submissions-from-Kobotoolbox + target_job: Validate-and-map-data + condition_type: on_job_success + enabled: true + Validate-and-map-data->Send-data-to-OpenSPP: + source_job: Validate-and-map-data + target_job: Send-data-to-OpenSPP + condition_type: on_job_success + enabled: true + Sanjay-Demo: + name: Sanjay Demo + jobs: + Fetch-Data-from-CommCare: + name: Fetch Data from CommCare + adaptor: '@openfn/language-commcare@latest' + credential: null + body: | + + // Check out the Job Writing Guide for help getting started: + // https://docs.openfn.org/documentation/jobs/job-writing-guide + + Clean-and-aggregate-data: + name: Clean and aggregate data + adaptor: '@openfn/language-common@latest' + credential: null + body: | + + // Check out the Job Writing Guide for help getting started: + // https://docs.openfn.org/documentation/jobs/job-writing-guide + + combine( + create('foo'), + delete('bar') + ) + Move-data-to-DHIS2: + name: Move data to DHIS2 + adaptor: '@openfn/language-dhis2@latest' + credential: null + body: | + + // Check out the Job Writing Guide for help getting started: + // https://docs.openfn.org/documentation/jobs/job-writing-guide + + triggers: + cron: + type: cron + cron_expression: '00 08 01 * *' + enabled: true + edges: + cron->Fetch-Data-from-CommCare: + source_trigger: cron + target_job: Fetch-Data-from-CommCare + condition_type: always + enabled: true + Fetch-Data-from-CommCare->Clean-and-aggregate-data: + source_job: Fetch-Data-from-CommCare + target_job: Clean-and-aggregate-data + condition_type: on_job_success + enabled: true + Clean-and-aggregate-data->Move-data-to-DHIS2: + source_job: Clean-and-aggregate-data + target_job: Move-data-to-DHIS2 + condition_type: on_job_success + enabled: true + Stress-testing-branches-: + name: Stress testing branches + jobs: + New-job: + name: New job + adaptor: '@openfn/language-common@latest' + credential: null + body: | + // Use pure JavaScript to add operations to your + // step. Click Docs to see list of operations or visit + // https://bit.ly/OFNJWG for our job writing guide + // and example job codes. + console.log('Do Something and this') + console.log(state.data) + try-again: + name: try again + adaptor: '@openfn/language-common@latest' + credential: null + body: | + // Use pure JavaScript to add operations to your + // step. Click Docs to see list of operations or visit + // https://bit.ly/OFNJWG for our job writing guide + // and example job codes. + + triggers: + webhook: + type: webhook + enabled: true + edges: + webhook->New-job: + source_trigger: webhook + target_job: New-job + condition_type: always + enabled: true + New-job->try-again: + source_job: New-job + target_job: try-again + condition_type: on_job_success + enabled: true + Test: + name: Test + jobs: + test-Job: + name: test Job + adaptor: '@openfn/language-common@latest' + credential: null + body: | + // Get started by adding operations from the API reference + + triggers: + webhook: + type: webhook + enabled: false + edges: + webhook->test-Job: + source_trigger: webhook + target_job: test-Job + condition_type: always + enabled: true + Test-WFWI-Sandbox: + name: Test WFWI Sandbox + jobs: + Salesy: + name: Salesy + adaptor: '@openfn/language-salesforce@latest' + credential: ayodele@openfn.org-slash-credential + body: | + // Get started by adding operations from the API reference + describeAll() + triggers: + webhook: + type: webhook + enabled: false + edges: + webhook->Salesy: + source_trigger: webhook + target_job: Salesy + condition_type: always + enabled: true + Test-with-UNDP: + name: Test with UNDP + jobs: + Validate-submission: + name: Validate submission + adaptor: '@openfn/language-common@latest' + credential: null + body: | + // Get started by adding operations from the API reference + + Send-data-to-mysql-db: + name: Send data to mysql db + adaptor: '@openfn/language-mysql@latest' + credential: null + body: | + // Get started by adding operations from the API reference + fn(state => { + return {...state, "country":"Nigeria"} + }) + + + // upsertMany( + // 'users', // the DB table + // [ + // { name: 'one', email: 'one@openfn.org' }, + // { name: 'two', email: 'two@openfn.org' }, + // ] + // ) + triggers: + webhook: + type: webhook + enabled: false + edges: + webhook->Validate-submission: + source_trigger: webhook + target_job: Validate-submission + condition_type: always + enabled: true + Validate-submission->Send-data-to-mysql-db: + source_job: Validate-submission + target_job: Send-data-to-mysql-db + condition_type: on_job_success + enabled: true + Testing-Google-Sheets: + name: Testing Google Sheets + jobs: + New-job: + name: New job + adaptor: '@openfn/language-common@latest' + credential: null + body: | + + // Check out the Job Writing Guide for help getting started: + // https://docs.openfn.org/documentation/jobs/job-writing-guide + + triggers: + webhook: + type: webhook + enabled: true + edges: + webhook->New-job: + source_trigger: webhook + target_job: New-job + condition_type: always + enabled: true + Timeout: + name: Timeout + jobs: + New-hsjss: + name: New hsjss + adaptor: '@openfn/language-common@latest' + credential: null + body: | + // Use pure JavaScript to add operations to your + // step. Click Docs to see list of operations or visit + // https://bit.ly/OFNJWG for our job writing guide + // and example job codes. + + fn(state => { + return new Promise((resolve, reject) => { + setTimeout(() => { + console.log('wait, and then resolve'); + resolve(state); + // Note that this is in milliseconds + }, 10 * 60 * 1000); + }); + }); + hbjj: + name: hbjj + adaptor: '@openfn/language-common@latest' + credential: null + body: | + // Use pure JavaScript to add operations to your + // step. Click Docs to see list of operations or visit + // https://bit.ly/OFNJWG for our job writing guide + // and example job codes. + + hjvj: + name: hjvj + adaptor: '@openfn/language-common@latest' + credential: null + body: | + // Use pure JavaScript to add operations to your + // step. Click Docs to see list of operations or visit + // https://bit.ly/OFNJWG for our job writing guide + // and example job codes. + + bj: + name: bj + adaptor: '@openfn/language-common@latest' + credential: null + body: | + // Use pure JavaScript to add operations to your + // step. Click Docs to see list of operations or visit + // https://bit.ly/OFNJWG for our job writing guide + // and example job codes. + + bkkj: + name: bkkj + adaptor: '@openfn/language-common@latest' + credential: null + body: | + // Use pure JavaScript to add operations to your + // step. Click Docs to see list of operations or visit + // https://bit.ly/OFNJWG for our job writing guide + // and example job codes. + + nkn: + name: nkn + adaptor: '@openfn/language-common@latest' + credential: null + body: | + // Use pure JavaScript to add operations to your + // step. Click Docs to see list of operations or visit + // https://bit.ly/OFNJWG for our job writing guide + // and example job codes. + + triggers: + webhook: + type: webhook + enabled: false + edges: + webhook->New-hsjss: + source_trigger: webhook + target_job: New-hsjss + condition_type: always + enabled: true + New-hsjss->hbjj: + source_job: New-hsjss + target_job: hbjj + condition_type: on_job_success + enabled: true + New-hsjss->hjvj: + source_job: New-hsjss + target_job: hjvj + condition_type: on_job_success + enabled: true + New-hsjss->bj: + source_job: New-hsjss + target_job: bj + condition_type: on_job_success + enabled: true + hbjj->bkkj: + source_job: hbjj + target_job: bkkj + condition_type: on_job_success + enabled: true + bkkj->nkn: + source_job: bkkj + target_job: nkn + condition_type: on_job_success + enabled: true + Yoooo: + name: Yoooo + jobs: + New-job: + name: New job + adaptor: '@openfn/language-common@latest' + credential: null + body: | + + // Check out the Job Writing Guide for help getting started: + // https://docs.openfn.org/documentation/jobs/job-writing-guide + + Add-new-one: + name: Add new one + adaptor: '@openfn/language-common@latest' + credential: null + body: | + + // Check out the Job Writing Guide for help getting started: + // https://docs.openfn.org/documentation/jobs/job-writing-guide + + triggers: + webhook: + type: webhook + enabled: true + edges: + webhook->New-job: + source_trigger: webhook + target_job: New-job + condition_type: always + enabled: true + New-job->Add-new-one: + source_job: New-job + target_job: Add-new-one + condition_type: on_job_success + enabled: true + dalgo-comp: + name: dalgo-comp + jobs: + Goog: + name: Goog + adaptor: '@openfn/language-googlesheets@latest' + credential: null + body: | + // Use pure JavaScript to add operations to your + // step. Click Docs to see list of operations or visit + // https://bit.ly/OFNJWG for our job writing guide + // and example job codes. + + // fn(state => { + // getValues('1O-a4_RgPF_p8W3I6b5M9wobA3-CBW8hLClZfUik5sos','Sheet1!A1:E1') + // } + // ) + + compare-data-from-sheets: + name: compare data from sheets + adaptor: '@openfn/language-salesforce@4.6.5' + credential: null + body: | + // Use pure JavaScript to add operations to your + // step. Click Docs to see list of operations or visit + // https://bit.ly/OFNJWG for our job writing guide + // and example job codes. + + This-is-a-new-test: + name: This is a new test + adaptor: '@openfn/language-common@latest' + credential: null + body: | + // Use pure JavaScript to add operations to your + // step. Click Docs to see list of operations or visit + // https://bit.ly/OFNJWG for our job writing guide + // and example job codes. + + Another-one-1: + name: Another one 1 + adaptor: '@openfn/language-common@latest' + credential: null + body: | + // Use pure JavaScript to add operations to your + // step. Click Docs to see list of operations or visit + // https://bit.ly/OFNJWG for our job writing guide + // and example job codes. + + hhss: + name: hhss + adaptor: '@openfn/language-common@latest' + credential: null + body: | + // Use pure JavaScript to add operations to your + // step. Click Docs to see list of operations or visit + // https://bit.ly/OFNJWG for our job writing guide + // and example job codes. + + mm: + name: mm + adaptor: '@openfn/language-common@latest' + credential: null + body: | + + // Check out the Job Writing Guide for help getting started: + // https://docs.openfn.org/documentation/jobs/job-writing-guide + + triggers: + webhook: + type: webhook + enabled: false + edges: + webhook->Goog: + source_trigger: webhook + target_job: Goog + condition_type: always + enabled: true + Goog->compare-data-from-sheets: + source_job: Goog + target_job: compare-data-from-sheets + condition_type: on_job_success + enabled: true + compare-data-from-sheets->mm: + source_job: compare-data-from-sheets + target_job: mm + condition_type: on_job_success + enabled: true + kl: + name: kl + jobs: + New-job: + name: New job + adaptor: '@openfn/language-common@latest' + credential: null + body: | + + // Check out the Job Writing Guide for help getting started: + // https://docs.openfn.org/documentation/jobs/job-writing-guide + + triggers: + webhook: + type: webhook + enabled: true + edges: + webhook->New-job: + source_trigger: webhook + target_job: New-job + condition_type: always + enabled: true diff --git a/openfn-5776895c-4307-4790-8c56-7d1d223b280f-state.json b/openfn-5776895c-4307-4790-8c56-7d1d223b280f-state.json new file mode 100644 index 0000000..b47263e --- /dev/null +++ b/openfn-5776895c-4307-4790-8c56-7d1d223b280f-state.json @@ -0,0 +1,875 @@ +{ + "id": "5776895c-4307-4790-8c56-7d1d223b280f", + "name": "ayodele-arena", + "description": null, + "inserted_at": "2024-05-11T01:01:37Z", + "updated_at": "2024-07-11T11:45:40Z", + "project_credentials": { + "elias@openfn.org-WFWI-Sandbox-Credential-For-Elias": { + "id": "704b60c6-5cc2-49d4-ae22-b2ee0382b4e3", + "name": "WFWI Sandbox Credential For Elias", + "owner": "elias@openfn.org" + }, + "ayodele@openfn.org-Use-this": { + "id": "ed4d1c84-6a9b-4a0a-b55e-b962120702ca", + "name": "Use this", + "owner": "ayodele@openfn.org" + }, + "ayodele@openfn.org-slash-credential": { + "id": "fc4d5e67-e128-48f2-a899-8ffb3a60c5c3", + "name": "slash credential", + "owner": "ayodele@openfn.org" + }, + "ayodele@openfn.org-UNDP-Database": { + "id": "4986dc38-b8ba-46e3-b2b2-0c129a85e554", + "name": "UNDP Database", + "owner": "ayodele@openfn.org" + }, + "ayodele@openfn.org-YOooo": { + "id": "770b3e1d-e2c7-4d69-a3dc-d9feb071a99e", + "name": "YOooo", + "owner": "ayodele@openfn.org" + }, + "ayodele@openfn.org-YOOOOOOOO": { + "id": "e592bfb6-41aa-42fd-84ed-c0bd74de24f3", + "name": "YOOOOOOOO", + "owner": "ayodele@openfn.org" + }, + "ayodele@openfn.org-orgLocal_test": { + "id": "61f9ae50-cd3f-4e1d-b2bd-10ac91731b03", + "name": "orgLocal_test", + "owner": "ayodele@openfn.org" + }, + "ayodele@openfn.org-New-one-": { + "id": "ab5fde57-1003-44e0-9a45-f5c5b3d4eb59", + "name": "New one ", + "owner": "ayodele@openfn.org" + } + }, + "scheduled_deletion": null, + "history_retention_period": null, + "dataclip_retention_period": null, + "retention_policy": "retain_all", + "requires_mfa": false, + "workflows": { + "Test-with-UNDP": { + "id": "a76042e0-7ca9-43e6-9255-a9e7c6cbefbb", + "name": "Test with UNDP", + "inserted_at": "2024-05-21T12:14:22.615087Z", + "lock_version": 4, + "triggers": { + "webhook": { + "enabled": false, + "id": "78a24dcc-1c38-403e-82be-35d661006d5b", + "type": "webhook" + } + }, + "jobs": { + "Validate-submission": { + "id": "6b34b097-3c5c-435e-964b-742fa9443c8a", + "name": "Validate submission", + "body": "// Get started by adding operations from the API reference\n", + "adaptor": "@openfn/language-common@latest", + "project_credential_id": null + }, + "Send-data-to-mysql-db": { + "id": "d995fc10-c223-4eec-ae54-6f1cf4943721", + "name": "Send data to mysql db", + "body": "// Get started by adding operations from the API reference\nfn(state => {\n return {...state, \"country\":\"Nigeria\"}\n})\n\n\n// upsertMany(\n// 'users', // the DB table\n// [\n// { name: 'one', email: 'one@openfn.org' },\n// { name: 'two', email: 'two@openfn.org' },\n// ]\n// )", + "adaptor": "@openfn/language-mysql@latest", + "project_credential_id": null + } + }, + "edges": { + "webhook->Validate-submission": { + "enabled": true, + "id": "268fe39b-a441-4f8d-9dae-b535ee6de82a", + "source_trigger_id": "78a24dcc-1c38-403e-82be-35d661006d5b", + "condition_type": "always", + "target_job_id": "6b34b097-3c5c-435e-964b-742fa9443c8a" + }, + "Validate-submission->Send-data-to-mysql-db": { + "enabled": true, + "id": "3771ccf2-74f8-435b-8a74-1da072e61c08", + "source_job_id": "6b34b097-3c5c-435e-964b-742fa9443c8a", + "condition_type": "on_job_success", + "target_job_id": "d995fc10-c223-4eec-ae54-6f1cf4943721" + } + } + }, + "Old": { + "id": "3d4da0f2-910a-456d-8714-099f24598f53", + "name": "Old", + "inserted_at": "2024-06-05T15:53:38.902800Z", + "lock_version": 3, + "triggers": { + "webhook": { + "enabled": false, + "id": "f5724d7b-0fdf-4c38-a583-0583e63cc424", + "type": "webhook" + } + }, + "jobs": { + "Anot-GOog": { + "id": "9cd88ce4-1bbb-4583-8b2e-bc319b5827d3", + "name": "Anot GOog", + "body": "// Get started by adding operations from the API reference\n", + "adaptor": "@openfn/language-googlesheets@latest", + "project_credential_id": null + } + }, + "edges": { + "webhook->Anot-GOog": { + "enabled": true, + "id": "e5058a69-a3ee-4b3c-8b2b-b8f3ab060ca0", + "source_trigger_id": "f5724d7b-0fdf-4c38-a583-0583e63cc424", + "condition_type": "always", + "target_job_id": "9cd88ce4-1bbb-4583-8b2e-bc319b5827d3" + } + } + }, + "Test": { + "id": "643433f3-fe9b-4b79-98dd-8a05f8ef2860", + "name": "Test", + "inserted_at": "2024-06-05T15:53:48.864917Z", + "lock_version": 3, + "triggers": { + "webhook": { + "enabled": false, + "id": "1fb44aa4-7826-402c-94d4-791516fca87c", + "type": "webhook" + } + }, + "jobs": { + "test-Job": { + "id": "fe1ca726-5b74-4964-ba68-399764030c90", + "name": "test Job", + "body": "// Get started by adding operations from the API reference\n", + "adaptor": "@openfn/language-common@latest", + "project_credential_id": null + } + }, + "edges": { + "webhook->test-Job": { + "enabled": true, + "id": "9ebbece7-4f68-48e5-a20e-7f3f9cdde7f1", + "source_trigger_id": "1fb44aa4-7826-402c-94d4-791516fca87c", + "condition_type": "always", + "target_job_id": "fe1ca726-5b74-4964-ba68-399764030c90" + } + } + }, + "Test-WFWI-Sandbox": { + "id": "c234d700-caab-4d32-9999-993919b0793c", + "name": "Test WFWI Sandbox", + "inserted_at": "2024-06-05T15:53:59.896906Z", + "lock_version": 4, + "triggers": { + "webhook": { + "enabled": false, + "id": "5fd32ad7-30a3-430d-b203-96da8bfec9cc", + "type": "webhook" + } + }, + "jobs": { + "Salesy": { + "id": "551640ba-2499-4b08-aec1-2478f0f3a4a4", + "name": "Salesy", + "body": "// Get started by adding operations from the API reference\ndescribeAll()", + "adaptor": "@openfn/language-salesforce@latest", + "project_credential_id": "fc4d5e67-e128-48f2-a899-8ffb3a60c5c3" + } + }, + "edges": { + "webhook->Salesy": { + "enabled": true, + "id": "96665cb3-29c4-4de2-8b81-92dda64b76bd", + "source_trigger_id": "5fd32ad7-30a3-430d-b203-96da8bfec9cc", + "condition_type": "always", + "target_job_id": "551640ba-2499-4b08-aec1-2478f0f3a4a4" + } + } + }, + "Timeout": { + "id": "1a73456d-4c74-4097-858b-040755ceba6f", + "name": "Timeout", + "inserted_at": "2024-06-05T15:54:13.424880Z", + "lock_version": 4, + "triggers": { + "webhook": { + "enabled": false, + "id": "ab715f05-8c2e-4aac-a951-1f710548a07f", + "type": "webhook" + } + }, + "jobs": { + "New-hsjss": { + "id": "30447b99-b29c-4059-9223-1168e20d7a99", + "name": "New hsjss", + "body": "// Use pure JavaScript to add operations to your\n// step. Click Docs to see list of operations or visit\n// https://bit.ly/OFNJWG for our job writing guide\n// and example job codes.\n\nfn(state => {\n return new Promise((resolve, reject) => {\n setTimeout(() => {\n console.log('wait, and then resolve');\n resolve(state);\n // Note that this is in milliseconds \n }, 10 * 60 * 1000);\n });\n});", + "adaptor": "@openfn/language-common@latest", + "project_credential_id": null + }, + "hbjj": { + "id": "1aaa30ad-88cc-4cc5-93c3-1c133fe3a6b8", + "name": "hbjj", + "body": "// Use pure JavaScript to add operations to your\n// step. Click Docs to see list of operations or visit\n// https://bit.ly/OFNJWG for our job writing guide\n// and example job codes.\n", + "adaptor": "@openfn/language-common@latest", + "project_credential_id": null + }, + "hjvj": { + "id": "213755d8-6bb0-4037-9628-fd68faa60d81", + "name": "hjvj", + "body": "// Use pure JavaScript to add operations to your\n// step. Click Docs to see list of operations or visit\n// https://bit.ly/OFNJWG for our job writing guide\n// and example job codes.\n", + "adaptor": "@openfn/language-common@latest", + "project_credential_id": null + }, + "bj": { + "id": "a0a314ed-0851-4821-83c6-63bb5a39b240", + "name": "bj", + "body": "// Use pure JavaScript to add operations to your\n// step. Click Docs to see list of operations or visit\n// https://bit.ly/OFNJWG for our job writing guide\n// and example job codes.\n", + "adaptor": "@openfn/language-common@latest", + "project_credential_id": null + }, + "bkkj": { + "id": "77152866-bab0-4174-9596-e0f0ed4b1582", + "name": "bkkj", + "body": "// Use pure JavaScript to add operations to your\n// step. Click Docs to see list of operations or visit\n// https://bit.ly/OFNJWG for our job writing guide\n// and example job codes.\n", + "adaptor": "@openfn/language-common@latest", + "project_credential_id": null + }, + "nkn": { + "id": "d52d5f1a-4c0d-48bb-9569-cc8394186ba6", + "name": "nkn", + "body": "// Use pure JavaScript to add operations to your\n// step. Click Docs to see list of operations or visit\n// https://bit.ly/OFNJWG for our job writing guide\n// and example job codes.\n", + "adaptor": "@openfn/language-common@latest", + "project_credential_id": null + } + }, + "edges": { + "webhook->New-hsjss": { + "enabled": true, + "id": "60702066-e9e4-4453-82e1-02acdff17b28", + "source_trigger_id": "ab715f05-8c2e-4aac-a951-1f710548a07f", + "condition_type": "always", + "target_job_id": "30447b99-b29c-4059-9223-1168e20d7a99" + }, + "New-hsjss->hbjj": { + "enabled": true, + "id": "d06883d6-9c4d-4f4a-9fa1-21f2e871d814", + "source_job_id": "30447b99-b29c-4059-9223-1168e20d7a99", + "condition_type": "on_job_success", + "target_job_id": "1aaa30ad-88cc-4cc5-93c3-1c133fe3a6b8" + }, + "New-hsjss->hjvj": { + "enabled": true, + "id": "642e1659-e09c-4f1d-a948-7b052d104c77", + "source_job_id": "30447b99-b29c-4059-9223-1168e20d7a99", + "condition_type": "on_job_success", + "target_job_id": "213755d8-6bb0-4037-9628-fd68faa60d81" + }, + "New-hsjss->bj": { + "enabled": true, + "id": "ec29ec92-cfc2-49c8-ac3d-44510fc32be0", + "source_job_id": "30447b99-b29c-4059-9223-1168e20d7a99", + "condition_type": "on_job_success", + "target_job_id": "a0a314ed-0851-4821-83c6-63bb5a39b240" + }, + "hbjj->bkkj": { + "enabled": true, + "id": "a8fdb54c-32c6-474b-a9f5-222bb4223d1f", + "source_job_id": "1aaa30ad-88cc-4cc5-93c3-1c133fe3a6b8", + "condition_type": "on_job_success", + "target_job_id": "77152866-bab0-4174-9596-e0f0ed4b1582" + }, + "bkkj->nkn": { + "enabled": true, + "id": "03e1ff6c-f2ac-460d-bbd6-c37be2ca7407", + "source_job_id": "77152866-bab0-4174-9596-e0f0ed4b1582", + "condition_type": "on_job_success", + "target_job_id": "d52d5f1a-4c0d-48bb-9569-cc8394186ba6" + } + } + }, + "Create-YouTrack-Issues-via-API": { + "id": "82c0e069-61af-4620-bbfc-c2dee23dc99d", + "name": "Create YouTrack Issues via API", + "inserted_at": "2024-06-05T17:24:53.492106Z", + "lock_version": 24, + "triggers": { + "webhook": { + "enabled": false, + "id": "a83e05b8-c7c3-4902-95e7-b3bb92e85cec", + "type": "webhook" + } + }, + "jobs": { + "Validate-and-map": { + "id": "13036663-f8de-408f-87fa-8dce6ebc1603", + "name": "Validate and map", + "body": "//nothing is here for now", + "adaptor": "@openfn/language-common@latest", + "project_credential_id": null + }, + "Create-an-issue-on-YouTrack2": { + "id": "1fa949b9-9391-44f5-a99b-4d5abdcefc71", + "name": "Create an issue on YouTrack2", + "body": "// Get started by adding operations from the API reference\n\nstate.title = \"let's try something new\"\n\nfn(state => {\n return state\n})\n\npost('https://ayodeleatopenfn.youtrack.cloud/api/issues', {\n body: {\n \"project\":{\"id\":\"0-1\"},\n \"summary\":`BCG Vaccination for patient ${state.request.path[1]} `,\n \"description\":` ${state.data.first_name} ${state.data.last_name} is offline call them on ${state.data.phone}`\n },\n headers: {\n 'content-type': 'application/json',\n 'Authorization': 'Bearer perm:YWRtaW4=.NTEtMA==.H9fcd63wHDk4bKz7WgWWDUkxBDJAac'\n },\n })", + "adaptor": "@openfn/language-salesforce@2.1.0", + "project_credential_id": null + } + }, + "edges": { + "webhook->Validate-and-map": { + "enabled": true, + "id": "a3575909-7e43-4628-abb4-1e9dcb4e066a", + "source_trigger_id": "a83e05b8-c7c3-4902-95e7-b3bb92e85cec", + "condition_type": "always", + "target_job_id": "13036663-f8de-408f-87fa-8dce6ebc1603" + }, + "Validate-and-map->Create-an-issue-on-YouTrack2": { + "enabled": true, + "id": "15d898f0-95d0-4f50-8844-bfa3bcd6d269", + "source_job_id": "13036663-f8de-408f-87fa-8dce6ebc1603", + "condition_type": "on_job_success", + "target_job_id": "1fa949b9-9391-44f5-a99b-4d5abdcefc71" + } + } + }, + "dalgo-comp": { + "id": "211f7b0e-1fd1-493b-a527-d0c827920ad9", + "name": "dalgo-comp", + "inserted_at": "2024-06-12T22:32:18.312477Z", + "lock_version": 20, + "triggers": { + "webhook": { + "enabled": false, + "id": "d2373a9a-b2bf-4884-b922-f5ebcfc740ec", + "type": "webhook" + } + }, + "jobs": { + "Goog": { + "id": "8e4e358b-7f47-481a-881a-58fe7a8df562", + "name": "Goog", + "body": "// Use pure JavaScript to add operations to your\n// step. Click Docs to see list of operations or visit\n// https://bit.ly/OFNJWG for our job writing guide\n// and example job codes.\n\n// fn(state => {\n// getValues('1O-a4_RgPF_p8W3I6b5M9wobA3-CBW8hLClZfUik5sos','Sheet1!A1:E1')\n// }\n// )\n\n", + "adaptor": "@openfn/language-googlesheets@latest", + "project_credential_id": null + }, + "compare-data-from-sheets": { + "id": "52f8806c-7f39-408a-a8b6-cfd0538e2146", + "name": "compare data from sheets", + "body": "// Use pure JavaScript to add operations to your\n// step. Click Docs to see list of operations or visit\n// https://bit.ly/OFNJWG for our job writing guide\n// and example job codes.\n\n", + "adaptor": "@openfn/language-salesforce@4.6.5", + "project_credential_id": null + }, + "This-is-a-new-test": { + "id": "78a3638b-60f4-476f-95a1-c5721c7a9e65", + "name": "This is a new test", + "body": "// Use pure JavaScript to add operations to your\n// step. Click Docs to see list of operations or visit\n// https://bit.ly/OFNJWG for our job writing guide\n// and example job codes.\n", + "adaptor": "@openfn/language-common@latest", + "project_credential_id": null + }, + "Another-one-1": { + "id": "9783f5d5-dcbb-4b27-a640-d68f78e98ba8", + "name": "Another one 1", + "body": "// Use pure JavaScript to add operations to your\n// step. Click Docs to see list of operations or visit\n// https://bit.ly/OFNJWG for our job writing guide\n// and example job codes.\n", + "adaptor": "@openfn/language-common@latest", + "project_credential_id": null + }, + "hhss": { + "id": "71b6a1ed-6856-4d78-b422-17157ece3e50", + "name": "hhss", + "body": "// Use pure JavaScript to add operations to your\n// step. Click Docs to see list of operations or visit\n// https://bit.ly/OFNJWG for our job writing guide\n// and example job codes.\n", + "adaptor": "@openfn/language-common@latest", + "project_credential_id": null + }, + "mm": { + "id": "fedb91da-711c-4a7b-b223-e1717c88ea07", + "name": "mm", + "body": "\n// Check out the Job Writing Guide for help getting started:\n// https://docs.openfn.org/documentation/jobs/job-writing-guide\n", + "adaptor": "@openfn/language-common@latest", + "project_credential_id": null + } + }, + "edges": { + "webhook->Goog": { + "enabled": true, + "id": "ab394159-66ba-4b75-891f-351bb304f312", + "source_trigger_id": "d2373a9a-b2bf-4884-b922-f5ebcfc740ec", + "condition_type": "always", + "target_job_id": "8e4e358b-7f47-481a-881a-58fe7a8df562" + }, + "Goog->compare-data-from-sheets": { + "enabled": true, + "id": "cd3cdc00-a8b8-4d03-97c3-e8ddb6828ee1", + "source_job_id": "8e4e358b-7f47-481a-881a-58fe7a8df562", + "condition_type": "on_job_success", + "target_job_id": "52f8806c-7f39-408a-a8b6-cfd0538e2146" + }, + "compare-data-from-sheets->mm": { + "enabled": true, + "id": "d778e696-7c94-41cc-b97a-3a20413c3128", + "source_job_id": "52f8806c-7f39-408a-a8b6-cfd0538e2146", + "condition_type": "on_job_success", + "target_job_id": "fedb91da-711c-4a7b-b223-e1717c88ea07" + } + } + }, + "Stress-testing-branches-": { + "id": "3d61a3cd-6bbe-4d47-9e44-42e37650c517", + "name": "Stress testing branches ", + "inserted_at": "2024-06-28T09:08:28.053832Z", + "lock_version": 5, + "triggers": { + "webhook": { + "enabled": true, + "id": "fc99077f-6ffa-4d62-aace-677e22952724", + "type": "webhook" + } + }, + "jobs": { + "New-job": { + "id": "4f9515b1-878d-425c-a0fb-80dccf4ee0c0", + "name": "New job", + "body": "// Use pure JavaScript to add operations to your\n// step. Click Docs to see list of operations or visit\n// https://bit.ly/OFNJWG for our job writing guide\n// and example job codes.\nconsole.log('Do Something and this')\nconsole.log(state.data)", + "adaptor": "@openfn/language-common@latest", + "project_credential_id": null + }, + "try-again": { + "id": "52065d9c-6b4e-4087-bfbd-e7a23fe15da2", + "name": "try again", + "body": "// Use pure JavaScript to add operations to your\n// step. Click Docs to see list of operations or visit\n// https://bit.ly/OFNJWG for our job writing guide\n// and example job codes.\n", + "adaptor": "@openfn/language-common@latest", + "project_credential_id": null + } + }, + "edges": { + "webhook->New-job": { + "enabled": true, + "id": "2fa9dccc-85ec-4e1e-a40e-3411e32f566c", + "source_trigger_id": "fc99077f-6ffa-4d62-aace-677e22952724", + "condition_type": "always", + "target_job_id": "4f9515b1-878d-425c-a0fb-80dccf4ee0c0" + }, + "New-job->try-again": { + "enabled": true, + "id": "5ad4c355-7eb0-44e7-afe0-a0d0c82e85ec", + "source_job_id": "4f9515b1-878d-425c-a0fb-80dccf4ee0c0", + "condition_type": "on_job_success", + "target_job_id": "52065d9c-6b4e-4087-bfbd-e7a23fe15da2" + } + } + }, + "kl": { + "id": "04500c14-ddd0-4967-83e6-72c1591fddd5", + "name": "kl", + "inserted_at": "2024-07-05T07:20:50.433843Z", + "lock_version": 1, + "triggers": { + "webhook": { + "enabled": true, + "id": "8491ab9b-d9fb-433b-9cb7-ff4528d240cc", + "type": "webhook" + } + }, + "jobs": { + "New-job": { + "id": "fba4a3b4-8ac6-480b-b467-0288bef4afa5", + "name": "New job", + "body": "\n// Check out the Job Writing Guide for help getting started:\n// https://docs.openfn.org/documentation/jobs/job-writing-guide\n", + "adaptor": "@openfn/language-common@latest", + "project_credential_id": null + } + }, + "edges": { + "webhook->New-job": { + "enabled": true, + "id": "54bdf343-53c3-409c-8bd2-731e29f5f623", + "source_trigger_id": "8491ab9b-d9fb-433b-9cb7-ff4528d240cc", + "condition_type": "always", + "target_job_id": "fba4a3b4-8ac6-480b-b467-0288bef4afa5" + } + } + }, + "Testing-Google-Sheets": { + "id": "aa594373-2a08-4d60-b57b-6a40584e3655", + "name": "Testing Google Sheets", + "inserted_at": "2024-07-12T15:41:10.354683Z", + "lock_version": 1, + "triggers": { + "webhook": { + "enabled": true, + "id": "cf5ecc66-9b26-41db-b1e6-039064402c22", + "type": "webhook" + } + }, + "jobs": { + "New-job": { + "id": "ce3c405f-c3f6-4993-b47a-451ab5e6779a", + "name": "New job", + "body": "\n// Check out the Job Writing Guide for help getting started:\n// https://docs.openfn.org/documentation/jobs/job-writing-guide\n", + "adaptor": "@openfn/language-common@latest", + "project_credential_id": null + } + }, + "edges": { + "webhook->New-job": { + "enabled": true, + "id": "ecc3360a-8a1e-4bd6-82fc-2141028d2231", + "source_trigger_id": "cf5ecc66-9b26-41db-b1e6-039064402c22", + "condition_type": "always", + "target_job_id": "ce3c405f-c3f6-4993-b47a-451ab5e6779a" + } + } + }, + "Configurable-Concurrency-Demo-": { + "id": "82d00f5a-2b6d-4a0f-994c-d3cc32517fd3", + "name": "Configurable Concurrency Demo ", + "inserted_at": "2024-07-26T17:25:26.032914Z", + "lock_version": 1, + "triggers": { + "webhook": { + "enabled": true, + "id": "5e65c98d-f13d-4c05-ae5f-28cb82c0053a", + "type": "webhook" + } + }, + "jobs": { + "New-job": { + "id": "204215a4-cd28-4ef3-96af-4616f5f22737", + "name": "New job", + "body": "\n// Check out the Job Writing Guide for help getting started:\n// https://docs.openfn.org/documentation/jobs/job-writing-guide\n", + "adaptor": "@openfn/language-common@latest", + "project_credential_id": null + } + }, + "edges": { + "webhook->New-job": { + "enabled": true, + "id": "2ad92d33-52fa-4191-8049-308d339e6612", + "source_trigger_id": "5e65c98d-f13d-4c05-ae5f-28cb82c0053a", + "condition_type": "always", + "target_job_id": "204215a4-cd28-4ef3-96af-4616f5f22737" + } + } + }, + "Acumen": { + "id": "ac10d7d6-8eb8-4d74-b33f-4a45e893c64a", + "name": "Acumen", + "inserted_at": "2024-07-26T18:07:49.228744Z", + "lock_version": 18, + "triggers": { + "webhook": { + "enabled": true, + "id": "fdfea61e-4b79-4e7d-95c3-308dcc53c63f", + "type": "webhook" + } + }, + "jobs": { + "Get-Data-from-GoogleSheets": { + "id": "c4ec8ffb-bd34-4a95-bb93-ebc4a60e2b52", + "name": "Get Data from GoogleSheets", + "body": "\n// Check out the Job Writing Guide for help getting started:\n// https://docs.openfn.org/documentation/jobs/job-writing-guide\n//versionz=oore", + "adaptor": "@openfn/language-googlesheets@latest", + "project_credential_id": null + }, + "Clean-and-Map-data": { + "id": "a7f5711e-fae8-47ea-a902-adedd462b2d2", + "name": "Clean and Map data", + "body": "\n// Check out the Job Writing Guide for help getting started:\n// https://docs.openfn.org/documentation/jobs/job-writing-guide\n", + "adaptor": "@openfn/language-common@latest", + "project_credential_id": null + }, + "Cosmo": { + "id": "c94a37a5-e36b-4711-819a-234b5f8e59e9", + "name": "Cosmo", + "body": "\n// Check out the Job Writing Guide for help getting started:\n// https://docs.openfn.org/documentation/jobs/job-writing-guide\nfn(x => x)", + "adaptor": "@openfn/language-common@latest", + "project_credential_id": null + }, + "Do-this": { + "id": "32f4bc40-50da-496e-a6bf-afd4e7c9aa82", + "name": "Do this", + "body": "\n// Check out the Job Writing Guide for help getting started:\n// https://docs.openfn.org/documentation/jobs/job-writing-guide\n// Get started by adding operations from the API reference\nfn(state => {\n return new Promise((resolve, reject) => {\n setTimeout(() => {\n console.log('wait, and then resolve');\n resolve(state);\n // Note that this is in milliseconds \n }, 5 * 1000);\n });\n});\n", + "adaptor": "@openfn/language-common@latest", + "project_credential_id": null + }, + "yoooio": { + "id": "3d467b89-8869-4671-95f2-9a985770f033", + "name": "yoooio", + "body": "\n// Check out the Job Writing Guide for help getting started:\n// https://docs.openfn.org/documentation/jobs/job-writing-guide\n", + "adaptor": "@openfn/language-common@latest", + "project_credential_id": null + } + }, + "edges": { + "webhook->Get-Data-from-GoogleSheets": { + "enabled": true, + "id": "c7f4ff57-cc32-40ef-b91b-adcb1e0bc4ff", + "source_trigger_id": "fdfea61e-4b79-4e7d-95c3-308dcc53c63f", + "condition_type": "always", + "target_job_id": "c4ec8ffb-bd34-4a95-bb93-ebc4a60e2b52" + }, + "Clean-and-Map-data->Cosmo": { + "enabled": true, + "id": "6296cd98-b514-4afa-9237-f930efdcc078", + "source_job_id": "a7f5711e-fae8-47ea-a902-adedd462b2d2", + "condition_type": "on_job_failure", + "condition_label": "Path to clean Data", + "target_job_id": "c94a37a5-e36b-4711-819a-234b5f8e59e9" + }, + "Get-Data-from-GoogleSheets->Do-this": { + "enabled": true, + "id": "8dc2f83a-1d64-4e4e-8e62-3e44295ea89b", + "source_job_id": "c4ec8ffb-bd34-4a95-bb93-ebc4a60e2b52", + "condition_type": "on_job_success", + "target_job_id": "32f4bc40-50da-496e-a6bf-afd4e7c9aa82" + }, + "Get-Data-from-GoogleSheets->Clean-and-Map-data": { + "enabled": true, + "id": "6ba86308-6e8d-4af6-bad9-34e6f3f7bc47", + "source_job_id": "c4ec8ffb-bd34-4a95-bb93-ebc4a60e2b52", + "condition_type": "js_expression", + "condition_expression": "true", + "condition_label": "Always true", + "target_job_id": "a7f5711e-fae8-47ea-a902-adedd462b2d2" + }, + "Do-this->yoooio": { + "enabled": true, + "id": "ca73ea6c-9705-42dd-8625-d6e05fc01e5d", + "source_job_id": "32f4bc40-50da-496e-a6bf-afd4e7c9aa82", + "condition_type": "on_job_success", + "target_job_id": "3d467b89-8869-4671-95f2-9a985770f033" + } + } + }, + "OpenSPP": { + "id": "cd9724bb-9420-46bf-b06b-ada885457e5e", + "name": "OpenSPP", + "inserted_at": "2024-07-26T20:12:11.452135Z", + "lock_version": 1, + "triggers": { + "cron": { + "enabled": true, + "id": "b7904480-a247-43ee-a281-ed6fd3f2c0a6", + "type": "cron", + "cron_expression": "00 00 01 * *" + } + }, + "jobs": { + "Fetch-all-submissions-from-Kobotoolbox": { + "id": "a42e8006-6b5a-4721-9377-e0f54c45e791", + "name": "Fetch all submissions from Kobotoolbox", + "body": "\n// Check out the Job Writing Guide for help getting started:\n// https://docs.openfn.org/documentation/jobs/job-writing-guide\n", + "adaptor": "@openfn/language-kobotoolbox@latest", + "project_credential_id": null + }, + "Validate-and-map-data": { + "id": "ca70de7d-efb2-4901-8488-25d93f354d4a", + "name": "Validate and map data", + "body": "\n// Check out the Job Writing Guide for help getting started:\n// https://docs.openfn.org/documentation/jobs/job-writing-guide\n", + "adaptor": "@openfn/language-common@latest", + "project_credential_id": null + }, + "Send-data-to-OpenSPP": { + "id": "5576db12-f393-4e51-b325-d2a4eb0855a0", + "name": "Send data to OpenSPP", + "body": "\n// Check out the Job Writing Guide for help getting started:\n// https://docs.openfn.org/documentation/jobs/job-writing-guide\n", + "adaptor": "@openfn/language-openspp@latest", + "project_credential_id": null + } + }, + "edges": { + "cron->Fetch-all-submissions-from-Kobotoolbox": { + "enabled": true, + "id": "6ed7bb99-86f3-4180-af5b-0e8deaf3e489", + "source_trigger_id": "b7904480-a247-43ee-a281-ed6fd3f2c0a6", + "condition_type": "always", + "target_job_id": "a42e8006-6b5a-4721-9377-e0f54c45e791" + }, + "Fetch-all-submissions-from-Kobotoolbox->Validate-and-map-data": { + "enabled": true, + "id": "855c90e8-728d-4296-8376-e212db0dc29f", + "source_job_id": "a42e8006-6b5a-4721-9377-e0f54c45e791", + "condition_type": "on_job_success", + "target_job_id": "ca70de7d-efb2-4901-8488-25d93f354d4a" + }, + "Validate-and-map-data->Send-data-to-OpenSPP": { + "enabled": true, + "id": "b768fc1a-9b86-44e6-a46b-8c59728432c1", + "source_job_id": "ca70de7d-efb2-4901-8488-25d93f354d4a", + "condition_type": "on_job_success", + "target_job_id": "5576db12-f393-4e51-b325-d2a4eb0855a0" + } + } + }, + "Yoooo": { + "id": "94c36650-08aa-46cb-9337-edb8e4562a9e", + "name": "Yoooo", + "inserted_at": "2024-07-31T16:09:41.242395Z", + "lock_version": 2, + "triggers": { + "webhook": { + "enabled": true, + "id": "441d18dd-74dd-41fe-89d2-e0cb1606bee8", + "type": "webhook" + } + }, + "jobs": { + "New-job": { + "id": "c72a41f5-556a-4088-a0ae-8b1beccf341e", + "name": "New job", + "body": "\n// Check out the Job Writing Guide for help getting started:\n// https://docs.openfn.org/documentation/jobs/job-writing-guide\n", + "adaptor": "@openfn/language-common@latest", + "project_credential_id": null + }, + "Add-new-one": { + "id": "1d04aefd-8ddf-4cd5-a9fc-922cdbad8713", + "name": "Add new one", + "body": "\n// Check out the Job Writing Guide for help getting started:\n// https://docs.openfn.org/documentation/jobs/job-writing-guide\n", + "adaptor": "@openfn/language-common@latest", + "project_credential_id": null + } + }, + "edges": { + "webhook->New-job": { + "enabled": true, + "id": "7bcdae37-245e-4973-a987-aabe027cae0b", + "source_trigger_id": "441d18dd-74dd-41fe-89d2-e0cb1606bee8", + "condition_type": "always", + "target_job_id": "c72a41f5-556a-4088-a0ae-8b1beccf341e" + }, + "New-job->Add-new-one": { + "enabled": true, + "id": "774b1ed5-e793-4484-b35e-73fbb16f8ff4", + "source_job_id": "c72a41f5-556a-4088-a0ae-8b1beccf341e", + "condition_type": "on_job_success", + "target_job_id": "1d04aefd-8ddf-4cd5-a9fc-922cdbad8713" + } + } + }, + "Sanjay-Demo": { + "id": "f153d456-b3aa-485e-9743-a43e0efbb8a5", + "name": "Sanjay Demo", + "inserted_at": "2024-09-02T15:26:42.354846Z", + "lock_version": 4, + "triggers": { + "cron": { + "enabled": true, + "id": "83b52cee-1268-4f1c-895c-399522b09db9", + "type": "cron", + "cron_expression": "00 08 01 * *" + } + }, + "jobs": { + "Fetch-Data-from-CommCare": { + "id": "7ad1f7ad-64f9-43a6-83bb-f7450d2cbbc3", + "name": "Fetch Data from CommCare", + "body": "\n// Check out the Job Writing Guide for help getting started:\n// https://docs.openfn.org/documentation/jobs/job-writing-guide\n", + "adaptor": "@openfn/language-commcare@latest", + "project_credential_id": null + }, + "Clean-and-aggregate-data": { + "id": "2e567928-2742-441b-8b10-9d0b77feec1a", + "name": "Clean and aggregate data", + "body": "\n// Check out the Job Writing Guide for help getting started:\n// https://docs.openfn.org/documentation/jobs/job-writing-guide\n\ncombine(\n create('foo'),\n delete('bar')\n)", + "adaptor": "@openfn/language-common@latest", + "project_credential_id": null + }, + "Move-data-to-DHIS2": { + "id": "28501fbc-b187-49de-88e3-571c99933cb0", + "name": "Move data to DHIS2", + "body": "\n// Check out the Job Writing Guide for help getting started:\n// https://docs.openfn.org/documentation/jobs/job-writing-guide\n", + "adaptor": "@openfn/language-dhis2@latest", + "project_credential_id": null + } + }, + "edges": { + "cron->Fetch-Data-from-CommCare": { + "enabled": true, + "id": "2c1d691d-ad5f-4f4d-83a1-b3e031f72fc8", + "source_trigger_id": "83b52cee-1268-4f1c-895c-399522b09db9", + "condition_type": "always", + "target_job_id": "7ad1f7ad-64f9-43a6-83bb-f7450d2cbbc3" + }, + "Fetch-Data-from-CommCare->Clean-and-aggregate-data": { + "enabled": true, + "id": "7c93402e-954b-4987-8131-ec8a5f1f8d44", + "source_job_id": "7ad1f7ad-64f9-43a6-83bb-f7450d2cbbc3", + "condition_type": "on_job_success", + "target_job_id": "2e567928-2742-441b-8b10-9d0b77feec1a" + }, + "Clean-and-aggregate-data->Move-data-to-DHIS2": { + "enabled": true, + "id": "4ffb88e7-091c-4b59-8cdf-e34503472b17", + "source_job_id": "2e567928-2742-441b-8b10-9d0b77feec1a", + "condition_type": "on_job_success", + "target_job_id": "28501fbc-b187-49de-88e3-571c99933cb0" + } + } + }, + "New-one-for-test": { + "id": "faec6320-968e-49c6-95d5-c27934cc283a", + "name": "New one for test", + "inserted_at": "2024-09-05T10:56:45.783980Z", + "lock_version": 1, + "triggers": { + "webhook": { + "enabled": true, + "id": "a3b32958-621a-468c-8ce8-ed9ec453b45b", + "type": "webhook" + } + }, + "jobs": { + "New-job": { + "id": "e7ebbeaf-1a8f-47a2-8cc8-68b0af337252", + "name": "New job", + "body": "\n// Check out the Job Writing Guide for help getting started:\n// https://docs.openfn.org/documentation/jobs/job-writing-guide\n", + "adaptor": "@openfn/language-common@latest", + "project_credential_id": null + } + }, + "edges": { + "webhook->New-job": { + "enabled": true, + "id": "4ae6ffd8-05b3-4da3-8a68-6f50f014f47a", + "source_trigger_id": "a3b32958-621a-468c-8ce8-ed9ec453b45b", + "condition_type": "always", + "target_job_id": "e7ebbeaf-1a8f-47a2-8cc8-68b0af337252" + } + } + }, + "Make-it-work": { + "id": "d60d8176-de04-4793-9c69-80872fd9d28a", + "name": "Make it work", + "inserted_at": "2024-09-05T11:05:21.592451Z", + "lock_version": 1, + "triggers": { + "webhook": { + "enabled": true, + "id": "d027e4ae-3749-4ec0-8a8c-ea80746cbe3b", + "type": "webhook" + } + }, + "jobs": { + "New-job": { + "id": "d0952971-b0a3-49e4-8362-a2c0a9af762f", + "name": "New job", + "body": "\n// Check out the Job Writing Guide for help getting started:\n// https://docs.openfn.org/documentation/jobs/job-writing-guide\n", + "adaptor": "@openfn/language-common@latest", + "project_credential_id": null + } + }, + "edges": { + "webhook->New-job": { + "enabled": true, + "id": "a5e1d508-16b9-44e2-8dfd-2837e520c442", + "source_trigger_id": "d027e4ae-3749-4ec0-8a8c-ea80746cbe3b", + "condition_type": "always", + "target_job_id": "d0952971-b0a3-49e4-8362-a2c0a9af762f" + } + } + } + } +} \ No newline at end of file