From 71115afd436395cc4986274958603f64dfe7a12a Mon Sep 17 00:00:00 2001 From: Emmanuel Evance Date: Wed, 20 May 2026 18:35:12 +0300 Subject: [PATCH 1/3] Export `combine` function from `common` (#1673) * export combine function from common * add changeset * update changeset * build ast --- .changeset/ninety-things-hide.md | 59 ++++++++++++++++++++++++ packages/asana/ast.json | 43 +++++++++++++++++ packages/asana/src/Adaptor.js | 1 + packages/azure-storage/ast.json | 43 +++++++++++++++++ packages/azure-storage/src/Adaptor.js | 1 + packages/beyonic/ast.json | 43 +++++++++++++++++ packages/beyonic/src/Adaptor.js | 1 + packages/cartodb/ast.json | 43 +++++++++++++++++ packages/cartodb/src/Adaptor.js | 1 + packages/chatgpt/ast.json | 43 +++++++++++++++++ packages/chatgpt/src/Adaptor.js | 1 + packages/cht/ast.json | 43 +++++++++++++++++ packages/cht/src/Adaptor.js | 1 + packages/claude/ast.json | 43 +++++++++++++++++ packages/claude/src/Adaptor.js | 1 + packages/dhis2/ast.json | 43 +++++++++++++++++ packages/dhis2/src/Adaptor.js | 1 + packages/divoc/ast.json | 43 +++++++++++++++++ packages/divoc/src/Adaptor.js | 1 + packages/dynamics/ast.json | 43 +++++++++++++++++ packages/dynamics/src/Adaptor.js | 1 + packages/erpnext/ast.json | 43 +++++++++++++++++ packages/erpnext/src/Adaptor.js | 1 + packages/facebook/ast.json | 43 +++++++++++++++++ packages/facebook/src/Adaptor.js | 1 + packages/fhir-fr/ast.json | 43 +++++++++++++++++ packages/fhir-fr/src/Adaptor.js | 1 + packages/fhir-ndr-et/ast.json | 43 +++++++++++++++++ packages/fhir-ndr-et/src/Adaptor.js | 1 + packages/fhir/ast.json | 43 +++++++++++++++++ packages/fhir/src/Adaptor.js | 1 + packages/ghana-bdr/ast.json | 43 +++++++++++++++++ packages/ghana-bdr/src/Adaptor.js | 1 + packages/ghana-nia/ast.json | 43 +++++++++++++++++ packages/ghana-nia/src/Adaptor.js | 1 + packages/godata/ast.json | 43 +++++++++++++++++ packages/godata/src/Adaptor.js | 1 + packages/googlehealthcare/ast.json | 43 +++++++++++++++++ packages/googlehealthcare/src/Adaptor.js | 1 + packages/hive/ast.json | 43 +++++++++++++++++ packages/hive/src/Adaptor.js | 1 + packages/hubtel/ast.json | 43 +++++++++++++++++ packages/hubtel/src/Adaptor.js | 1 + packages/intuit/ast.json | 43 +++++++++++++++++ packages/intuit/src/Adaptor.js | 1 + packages/khanacademy/ast.json | 43 +++++++++++++++++ packages/khanacademy/src/Adaptor.js | 1 + packages/kobotoolbox/ast.json | 43 +++++++++++++++++ packages/kobotoolbox/src/Adaptor.js | 1 + packages/magpi/ast.json | 43 +++++++++++++++++ packages/magpi/src/Adaptor.js | 1 + packages/mailchimp/ast.json | 43 +++++++++++++++++ packages/mailchimp/src/Adaptor.js | 1 + packages/mailgun/ast.json | 43 +++++++++++++++++ packages/mailgun/src/Adaptor.js | 1 + packages/maximo/ast.json | 43 +++++++++++++++++ packages/maximo/src/Adaptor.js | 1 + packages/medicmobile/ast.json | 43 +++++++++++++++++ packages/medicmobile/src/Adaptor.js | 1 + packages/mojatax/ast.json | 43 +++++++++++++++++ packages/mojatax/src/Adaptor.js | 1 + packages/mongodb/ast.json | 43 +++++++++++++++++ packages/mongodb/src/Adaptor.js | 1 + packages/mpesa/ast.json | 43 +++++++++++++++++ packages/mpesa/src/Adaptor.js | 1 + packages/msgraph/ast.json | 43 +++++++++++++++++ packages/msgraph/src/Adaptor.js | 1 + packages/nexmo/ast.json | 43 +++++++++++++++++ packages/nexmo/src/Adaptor.js | 1 + packages/ocl/ast.json | 43 +++++++++++++++++ packages/ocl/src/Adaptor.js | 1 + packages/odk/ast.json | 43 +++++++++++++++++ packages/odk/src/Adaptor.js | 1 + packages/odoo/ast.json | 43 +++++++++++++++++ packages/odoo/src/Adaptor.js | 1 + packages/openboxes/ast.json | 43 +++++++++++++++++ packages/openboxes/src/Adaptor.js | 1 + packages/openhim/ast.json | 43 +++++++++++++++++ packages/openhim/src/Adaptor.js | 1 + packages/openimis/ast.json | 43 +++++++++++++++++ packages/openimis/src/Adaptor.js | 1 + packages/openlmis/ast.json | 43 +++++++++++++++++ packages/openlmis/src/Adaptor.js | 1 + packages/openmrs/ast.json | 43 +++++++++++++++++ packages/openmrs/src/Adaptor.js | 1 + packages/openspp/ast.json | 43 +++++++++++++++++ packages/openspp/src/Adaptor.js | 1 + packages/pesapal/ast.json | 43 +++++++++++++++++ packages/pesapal/src/Adaptor.js | 1 + packages/progres/ast.json | 43 +++++++++++++++++ packages/progres/src/Adaptor.js | 1 + packages/rapidpro/ast.json | 43 +++++++++++++++++ packages/rapidpro/src/Adaptor.js | 1 + packages/redis/ast.json | 43 +++++++++++++++++ packages/redis/src/Adaptor.js | 1 + packages/resourcemap/ast.json | 43 +++++++++++++++++ packages/resourcemap/src/Adaptor.js | 1 + packages/sftp/ast.json | 43 +++++++++++++++++ packages/sftp/src/Adaptor.js | 1 + packages/surveycto/ast.json | 43 +++++++++++++++++ packages/surveycto/src/Adaptor.js | 1 + packages/telerivet/ast.json | 43 +++++++++++++++++ packages/telerivet/src/Adaptor.js | 1 + packages/testing/src/Adaptor.js | 3 +- packages/twilio/ast.json | 43 +++++++++++++++++ packages/twilio/src/Adaptor.js | 1 + packages/vtiger/ast.json | 43 +++++++++++++++++ packages/vtiger/src/Adaptor.js | 1 + packages/wigal-sms/ast.json | 43 +++++++++++++++++ packages/wigal-sms/src/Adaptor.js | 1 + packages/zoho/ast.json | 43 +++++++++++++++++ packages/zoho/src/Adaptor.js | 1 + 112 files changed, 2481 insertions(+), 1 deletion(-) create mode 100644 .changeset/ninety-things-hide.md diff --git a/.changeset/ninety-things-hide.md b/.changeset/ninety-things-hide.md new file mode 100644 index 0000000000..ebe7715e87 --- /dev/null +++ b/.changeset/ninety-things-hide.md @@ -0,0 +1,59 @@ +--- +'@openfn/language-googlehealthcare': minor +'@openfn/language-azure-storage': minor +'@openfn/language-fhir-ndr-et': minor +'@openfn/language-khanacademy': minor +'@openfn/language-kobotoolbox': minor +'@openfn/language-medicmobile': minor +'@openfn/language-resourcemap': minor +'@openfn/language-ghana-bdr': minor +'@openfn/language-ghana-nia': minor +'@openfn/language-mailchimp': minor +'@openfn/language-openboxes': minor +'@openfn/language-surveycto': minor +'@openfn/language-telerivet': minor +'@openfn/language-wigal-sms': minor +'@openfn/language-dynamics': minor +'@openfn/language-facebook': minor +'@openfn/language-openimis': minor +'@openfn/language-openlmis': minor +'@openfn/language-rapidpro': minor +'@openfn/language-beyonic': minor +'@openfn/language-cartodb': minor +'@openfn/language-chatgpt': minor +'@openfn/language-erpnext': minor +'@openfn/language-fhir-fr': minor +'@openfn/language-mailgun': minor +'@openfn/language-mojatax': minor +'@openfn/language-mongodb': minor +'@openfn/language-msgraph': minor +'@openfn/language-openhim': minor +'@openfn/language-openmrs': minor +'@openfn/language-openspp': minor +'@openfn/language-pesapal': minor +'@openfn/language-progres': minor +'@openfn/language-claude': minor +'@openfn/language-godata': minor +'@openfn/language-hubtel': minor +'@openfn/language-intuit': minor +'@openfn/language-maximo': minor +'@openfn/language-twilio': minor +'@openfn/language-vtiger': minor +'@openfn/language-asana': minor +'@openfn/language-dhis2': minor +'@openfn/language-divoc': minor +'@openfn/language-magpi': minor +'@openfn/language-mpesa': minor +'@openfn/language-nexmo': minor +'@openfn/language-redis': minor +'@openfn/language-fhir': minor +'@openfn/language-hive': minor +'@openfn/language-odoo': minor +'@openfn/language-sftp': minor +'@openfn/language-zoho': minor +'@openfn/language-cht': minor +'@openfn/language-ocl': minor +'@openfn/language-odk': minor +--- + +export `combine` function from common diff --git a/packages/asana/ast.json b/packages/asana/ast.json index 38c345b01f..b18757f91c 100644 --- a/packages/asana/ast.json +++ b/packages/asana/ast.json @@ -944,6 +944,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/asana/src/Adaptor.js b/packages/asana/src/Adaptor.js index db0a11ed18..edc2dccf9c 100644 --- a/packages/asana/src/Adaptor.js +++ b/packages/asana/src/Adaptor.js @@ -380,6 +380,7 @@ export function request(path, params = {}, callback) { export { alterState, + combine, cursor, dataPath, dataValue, diff --git a/packages/azure-storage/ast.json b/packages/azure-storage/ast.json index ca1db0b9ae..7747c62f60 100644 --- a/packages/azure-storage/ast.json +++ b/packages/azure-storage/ast.json @@ -560,6 +560,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/azure-storage/src/Adaptor.js b/packages/azure-storage/src/Adaptor.js index abff2f29d9..ae45d90358 100644 --- a/packages/azure-storage/src/Adaptor.js +++ b/packages/azure-storage/src/Adaptor.js @@ -232,6 +232,7 @@ export function getBlobProperties(blobName, options = {}) { } export { + combine, dataPath, dataValue, dateFns, diff --git a/packages/beyonic/ast.json b/packages/beyonic/ast.json index 76c2fff051..e225e8be66 100644 --- a/packages/beyonic/ast.json +++ b/packages/beyonic/ast.json @@ -403,6 +403,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/beyonic/src/Adaptor.js b/packages/beyonic/src/Adaptor.js index 3432005877..649dac6654 100644 --- a/packages/beyonic/src/Adaptor.js +++ b/packages/beyonic/src/Adaptor.js @@ -103,6 +103,7 @@ export function createCollectionRequest(data) { } export { + combine, fn, fnIf, field, diff --git a/packages/cartodb/ast.json b/packages/cartodb/ast.json index f45920c2fd..c0d117d77b 100644 --- a/packages/cartodb/ast.json +++ b/packages/cartodb/ast.json @@ -433,6 +433,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/cartodb/src/Adaptor.js b/packages/cartodb/src/Adaptor.js index 53ffcc1d2d..60747a2699 100644 --- a/packages/cartodb/src/Adaptor.js +++ b/packages/cartodb/src/Adaptor.js @@ -91,6 +91,7 @@ export function addRow(table, rowData) { } export { + combine, fn, fnIf, field, diff --git a/packages/chatgpt/ast.json b/packages/chatgpt/ast.json index e8ca3d2aaa..d846887be5 100644 --- a/packages/chatgpt/ast.json +++ b/packages/chatgpt/ast.json @@ -388,6 +388,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/chatgpt/src/Adaptor.js b/packages/chatgpt/src/Adaptor.js index dbf227ac6c..6c44149c1f 100644 --- a/packages/chatgpt/src/Adaptor.js +++ b/packages/chatgpt/src/Adaptor.js @@ -143,6 +143,7 @@ export function deepResearch(message, opts) { } export { + combine, dataPath, dataValue, dateFns, diff --git a/packages/cht/ast.json b/packages/cht/ast.json index 65cc77553e..28e2a97774 100644 --- a/packages/cht/ast.json +++ b/packages/cht/ast.json @@ -600,6 +600,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/cht/src/Adaptor.js b/packages/cht/src/Adaptor.js index 90fd63d001..020d229d5f 100644 --- a/packages/cht/src/Adaptor.js +++ b/packages/cht/src/Adaptor.js @@ -119,6 +119,7 @@ export function request(method, path, body, options = {}, callback = s => s) { } export { + combine, dataPath, dataValue, dateFns, diff --git a/packages/claude/ast.json b/packages/claude/ast.json index a87332a065..492b64aa1a 100644 --- a/packages/claude/ast.json +++ b/packages/claude/ast.json @@ -335,6 +335,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/claude/src/Adaptor.js b/packages/claude/src/Adaptor.js index e3b9804c55..525d736867 100644 --- a/packages/claude/src/Adaptor.js +++ b/packages/claude/src/Adaptor.js @@ -90,6 +90,7 @@ export function prompt(message, opts) { } export { + combine, dataPath, dataValue, dateFns, diff --git a/packages/dhis2/ast.json b/packages/dhis2/ast.json index cddd18cd69..164d198333 100644 --- a/packages/dhis2/ast.json +++ b/packages/dhis2/ast.json @@ -834,6 +834,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/dhis2/src/Adaptor.js b/packages/dhis2/src/Adaptor.js index 5903672d71..582b338a1c 100644 --- a/packages/dhis2/src/Adaptor.js +++ b/packages/dhis2/src/Adaptor.js @@ -651,6 +651,7 @@ function callNewTracker( export { alterState, as, + combine, cursor, dataPath, dataValue, diff --git a/packages/divoc/ast.json b/packages/divoc/ast.json index a80459e6e9..0def9f4213 100644 --- a/packages/divoc/ast.json +++ b/packages/divoc/ast.json @@ -330,6 +330,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/divoc/src/Adaptor.js b/packages/divoc/src/Adaptor.js index 9f8b53768c..7208292a48 100644 --- a/packages/divoc/src/Adaptor.js +++ b/packages/divoc/src/Adaptor.js @@ -107,6 +107,7 @@ export function certifyVaccination(data) { export { + combine, dataPath, dataValue, dateFns, diff --git a/packages/dynamics/ast.json b/packages/dynamics/ast.json index 6ec6be8c78..79cf0f7b2a 100644 --- a/packages/dynamics/ast.json +++ b/packages/dynamics/ast.json @@ -334,6 +334,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/dynamics/src/Adaptor.js b/packages/dynamics/src/Adaptor.js index ae93b3e68f..53d7307922 100644 --- a/packages/dynamics/src/Adaptor.js +++ b/packages/dynamics/src/Adaptor.js @@ -265,6 +265,7 @@ export function deleteEntity(params) { } export { + combine, field, fields, sourceValue, diff --git a/packages/erpnext/ast.json b/packages/erpnext/ast.json index 58910f743c..542c164d81 100644 --- a/packages/erpnext/ast.json +++ b/packages/erpnext/ast.json @@ -758,6 +758,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/erpnext/src/Adaptor.js b/packages/erpnext/src/Adaptor.js index bc06638320..f5a38313b8 100644 --- a/packages/erpnext/src/Adaptor.js +++ b/packages/erpnext/src/Adaptor.js @@ -363,6 +363,7 @@ export function getCount(doctype, filters = {}) { } export { + combine, dataPath, dataValue, dateFns, diff --git a/packages/facebook/ast.json b/packages/facebook/ast.json index 1e71988024..29692fe992 100644 --- a/packages/facebook/ast.json +++ b/packages/facebook/ast.json @@ -378,6 +378,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/facebook/src/Adaptor.js b/packages/facebook/src/Adaptor.js index 8c8c2ffb67..dd769b2eb3 100644 --- a/packages/facebook/src/Adaptor.js +++ b/packages/facebook/src/Adaptor.js @@ -103,6 +103,7 @@ export function postMessage(params) { } export { + combine, field, fields, sourceValue, diff --git a/packages/fhir-fr/ast.json b/packages/fhir-fr/ast.json index 2d53401325..540b4e3653 100644 --- a/packages/fhir-fr/ast.json +++ b/packages/fhir-fr/ast.json @@ -281,6 +281,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/fhir-fr/src/Adaptor.js b/packages/fhir-fr/src/Adaptor.js index c38100563c..8c7dfcb689 100644 --- a/packages/fhir-fr/src/Adaptor.js +++ b/packages/fhir-fr/src/Adaptor.js @@ -5,6 +5,7 @@ import * as util from './Utils'; // Can we auto-generate any thing here? export { + combine, dataPath, dataValue, dateFns, diff --git a/packages/fhir-ndr-et/ast.json b/packages/fhir-ndr-et/ast.json index e7daa32d02..f4c872727a 100644 --- a/packages/fhir-ndr-et/ast.json +++ b/packages/fhir-ndr-et/ast.json @@ -355,6 +355,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/fhir-ndr-et/src/Adaptor.js b/packages/fhir-ndr-et/src/Adaptor.js index f14beed6ab..a6587c642b 100644 --- a/packages/fhir-ndr-et/src/Adaptor.js +++ b/packages/fhir-ndr-et/src/Adaptor.js @@ -61,6 +61,7 @@ export const create = (resourceType, resource, params, callback = s => s) => { }; export { + combine, dataPath, dataValue, cursor, diff --git a/packages/fhir/ast.json b/packages/fhir/ast.json index 452840346a..0e14c20ea1 100644 --- a/packages/fhir/ast.json +++ b/packages/fhir/ast.json @@ -698,6 +698,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/fhir/src/Adaptor.js b/packages/fhir/src/Adaptor.js index 148db0e218..2d9187cd8a 100644 --- a/packages/fhir/src/Adaptor.js +++ b/packages/fhir/src/Adaptor.js @@ -268,6 +268,7 @@ export function getClaim(claimId, params, callback = s => s) { export { alterState, + combine, dataPath, dataValue, dateFns, diff --git a/packages/ghana-bdr/ast.json b/packages/ghana-bdr/ast.json index 58cc81820c..057325b587 100644 --- a/packages/ghana-bdr/ast.json +++ b/packages/ghana-bdr/ast.json @@ -496,6 +496,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/ghana-bdr/src/Adaptor.js b/packages/ghana-bdr/src/Adaptor.js index 7539d8d8d6..f108e8d21f 100644 --- a/packages/ghana-bdr/src/Adaptor.js +++ b/packages/ghana-bdr/src/Adaptor.js @@ -88,6 +88,7 @@ export function sendBirthNotification(data) { } export { + combine, fn, fnIf, each, diff --git a/packages/ghana-nia/ast.json b/packages/ghana-nia/ast.json index 304f6e9471..fae83e875f 100644 --- a/packages/ghana-nia/ast.json +++ b/packages/ghana-nia/ast.json @@ -496,6 +496,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/ghana-nia/src/Adaptor.js b/packages/ghana-nia/src/Adaptor.js index 89328f3659..50d1d66dc4 100644 --- a/packages/ghana-nia/src/Adaptor.js +++ b/packages/ghana-nia/src/Adaptor.js @@ -105,6 +105,7 @@ export function registerChild(data) { } export { + combine, fn, fnIf, each, diff --git a/packages/godata/ast.json b/packages/godata/ast.json index 421385cb82..45dac62752 100644 --- a/packages/godata/ast.json +++ b/packages/godata/ast.json @@ -1180,6 +1180,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/godata/src/Adaptor.js b/packages/godata/src/Adaptor.js index 6d016f60ba..7432f0a81a 100644 --- a/packages/godata/src/Adaptor.js +++ b/packages/godata/src/Adaptor.js @@ -883,6 +883,7 @@ export { axios }; // What functions do you want from the common adaptor? export { + combine, fn, fnIf, alterState, diff --git a/packages/googlehealthcare/ast.json b/packages/googlehealthcare/ast.json index d05d36c990..54f122e32d 100644 --- a/packages/googlehealthcare/ast.json +++ b/packages/googlehealthcare/ast.json @@ -438,6 +438,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/googlehealthcare/src/Adaptor.js b/packages/googlehealthcare/src/Adaptor.js index ba327a739d..2f8c34ab6d 100644 --- a/packages/googlehealthcare/src/Adaptor.js +++ b/packages/googlehealthcare/src/Adaptor.js @@ -148,6 +148,7 @@ export function createFhirResource(fhirStore, resource, callback) { export { request } from './Utils.js'; export { + combine, dataPath, dataValue, dateFns, diff --git a/packages/hive/ast.json b/packages/hive/ast.json index 6dfc670315..763390ae8c 100644 --- a/packages/hive/ast.json +++ b/packages/hive/ast.json @@ -399,6 +399,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/hive/src/Adaptor.js b/packages/hive/src/Adaptor.js index 1e9d4a18f4..e017812846 100644 --- a/packages/hive/src/Adaptor.js +++ b/packages/hive/src/Adaptor.js @@ -123,6 +123,7 @@ async function execSql(statement, options) { } export { + combine, dataPath, dataValue, dateFns, diff --git a/packages/hubtel/ast.json b/packages/hubtel/ast.json index a18cb6104e..19cbfbd30f 100644 --- a/packages/hubtel/ast.json +++ b/packages/hubtel/ast.json @@ -416,6 +416,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/hubtel/src/Adaptor.js b/packages/hubtel/src/Adaptor.js index 932f1a7d0a..128f716fe7 100644 --- a/packages/hubtel/src/Adaptor.js +++ b/packages/hubtel/src/Adaptor.js @@ -76,6 +76,7 @@ export function request(method, path, body, options = {}) { */ export { + combine, dataPath, dataValue, dateFns, diff --git a/packages/intuit/ast.json b/packages/intuit/ast.json index 2d53401325..540b4e3653 100644 --- a/packages/intuit/ast.json +++ b/packages/intuit/ast.json @@ -281,6 +281,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/intuit/src/Adaptor.js b/packages/intuit/src/Adaptor.js index 7bd34a39e8..0e7ff9cbd6 100644 --- a/packages/intuit/src/Adaptor.js +++ b/packages/intuit/src/Adaptor.js @@ -1,6 +1,7 @@ // More functions can be added here as needed export { + combine, dataPath, dataValue, dateFns, diff --git a/packages/khanacademy/ast.json b/packages/khanacademy/ast.json index b25ae576dc..f5abc45050 100644 --- a/packages/khanacademy/ast.json +++ b/packages/khanacademy/ast.json @@ -315,6 +315,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/khanacademy/src/Adaptor.js b/packages/khanacademy/src/Adaptor.js index 018472f2b0..8cd7b606f1 100644 --- a/packages/khanacademy/src/Adaptor.js +++ b/packages/khanacademy/src/Adaptor.js @@ -206,6 +206,7 @@ export function fetch(params) { } export { + combine, fn, fnIf, field, diff --git a/packages/kobotoolbox/ast.json b/packages/kobotoolbox/ast.json index 3896baad7c..d70b5a9a50 100644 --- a/packages/kobotoolbox/ast.json +++ b/packages/kobotoolbox/ast.json @@ -563,6 +563,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/kobotoolbox/src/Adaptor.js b/packages/kobotoolbox/src/Adaptor.js index aa2843a833..dee446cfb5 100644 --- a/packages/kobotoolbox/src/Adaptor.js +++ b/packages/kobotoolbox/src/Adaptor.js @@ -136,6 +136,7 @@ export function getDeploymentInfo(formId) { export { alterState, as, + combine, cursor, dataPath, dataValue, diff --git a/packages/magpi/ast.json b/packages/magpi/ast.json index 54d82934c1..203de1c7a4 100644 --- a/packages/magpi/ast.json +++ b/packages/magpi/ast.json @@ -421,6 +421,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/magpi/src/Adaptor.js b/packages/magpi/src/Adaptor.js index 8019bc9fc1..cec2a1df58 100644 --- a/packages/magpi/src/Adaptor.js +++ b/packages/magpi/src/Adaptor.js @@ -183,6 +183,7 @@ export function submitRecord(jsonData) { } export { + combine, fn, fnIf, alterState, diff --git a/packages/mailchimp/ast.json b/packages/mailchimp/ast.json index 9aa9403e50..89129d30dd 100644 --- a/packages/mailchimp/ast.json +++ b/packages/mailchimp/ast.json @@ -1201,6 +1201,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/mailchimp/src/Adaptor.js b/packages/mailchimp/src/Adaptor.js index ec0020ac88..fc17727d1f 100644 --- a/packages/mailchimp/src/Adaptor.js +++ b/packages/mailchimp/src/Adaptor.js @@ -462,6 +462,7 @@ export { axios, md5 }; // What functions do you want from the common adaptor? export { + combine, fn, fnIf, alterState, diff --git a/packages/mailgun/ast.json b/packages/mailgun/ast.json index 182d36c1f4..d95d0c5789 100644 --- a/packages/mailgun/ast.json +++ b/packages/mailgun/ast.json @@ -374,6 +374,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/mailgun/src/Adaptor.js b/packages/mailgun/src/Adaptor.js index c4fae2aff2..81b92da141 100644 --- a/packages/mailgun/src/Adaptor.js +++ b/packages/mailgun/src/Adaptor.js @@ -113,6 +113,7 @@ export function send(params) { } export { + combine, fn, fnIf, field, diff --git a/packages/maximo/ast.json b/packages/maximo/ast.json index fb71ae26fa..acd96b8ca8 100644 --- a/packages/maximo/ast.json +++ b/packages/maximo/ast.json @@ -466,6 +466,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/maximo/src/Adaptor.js b/packages/maximo/src/Adaptor.js index 1db986cdbd..0a39a2aa11 100644 --- a/packages/maximo/src/Adaptor.js +++ b/packages/maximo/src/Adaptor.js @@ -314,6 +314,7 @@ export function update75(params) { } export { + combine, field, fields, sourceValue, diff --git a/packages/medicmobile/ast.json b/packages/medicmobile/ast.json index a99c6ae821..fe422f95e3 100644 --- a/packages/medicmobile/ast.json +++ b/packages/medicmobile/ast.json @@ -494,6 +494,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/medicmobile/src/Adaptor.js b/packages/medicmobile/src/Adaptor.js index bee155fef2..aa04ed416d 100644 --- a/packages/medicmobile/src/Adaptor.js +++ b/packages/medicmobile/src/Adaptor.js @@ -198,6 +198,7 @@ export function pickFormData(formId) { } export { + combine, fn, fnIf, alterState, diff --git a/packages/mojatax/ast.json b/packages/mojatax/ast.json index 6b67caa3bd..e1121dfa29 100644 --- a/packages/mojatax/ast.json +++ b/packages/mojatax/ast.json @@ -454,6 +454,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/mojatax/src/Adaptor.js b/packages/mojatax/src/Adaptor.js index 01044c7555..28c6f3820b 100644 --- a/packages/mojatax/src/Adaptor.js +++ b/packages/mojatax/src/Adaptor.js @@ -111,6 +111,7 @@ export function request(method, path, body, options = {}, callback = s => s) { } export { + combine, dataPath, dataValue, dateFns, diff --git a/packages/mongodb/ast.json b/packages/mongodb/ast.json index cc87ab0a1a..88472a52e9 100644 --- a/packages/mongodb/ast.json +++ b/packages/mongodb/ast.json @@ -464,6 +464,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/mongodb/src/Adaptor.js b/packages/mongodb/src/Adaptor.js index 7ea8f85a0d..2f373e39a3 100644 --- a/packages/mongodb/src/Adaptor.js +++ b/packages/mongodb/src/Adaptor.js @@ -232,6 +232,7 @@ export function updateDocument(params) { } export { + combine, field, fields, sourceValue, diff --git a/packages/mpesa/ast.json b/packages/mpesa/ast.json index a7414ec0dd..4903230b92 100644 --- a/packages/mpesa/ast.json +++ b/packages/mpesa/ast.json @@ -650,6 +650,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/mpesa/src/Adaptor.js b/packages/mpesa/src/Adaptor.js index 953122a7f3..8b82a3a43e 100644 --- a/packages/mpesa/src/Adaptor.js +++ b/packages/mpesa/src/Adaptor.js @@ -324,6 +324,7 @@ export function request(method, path, body, options = {}) { } export { + combine, dataPath, dataValue, dateFns, diff --git a/packages/msgraph/ast.json b/packages/msgraph/ast.json index af2322c860..d41f64b9b1 100644 --- a/packages/msgraph/ast.json +++ b/packages/msgraph/ast.json @@ -791,6 +791,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/msgraph/src/Adaptor.js b/packages/msgraph/src/Adaptor.js index aa8c8f2ff5..e0b0df9e0d 100644 --- a/packages/msgraph/src/Adaptor.js +++ b/packages/msgraph/src/Adaptor.js @@ -374,6 +374,7 @@ export function uploadFile(resource, data, callback) { export { request, sheetToBuffer } from './Utils.js'; export { + combine, cursor, dataPath, dataValue, diff --git a/packages/nexmo/ast.json b/packages/nexmo/ast.json index b4e4e68b0a..ef16f9f12f 100644 --- a/packages/nexmo/ast.json +++ b/packages/nexmo/ast.json @@ -398,6 +398,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/nexmo/src/Adaptor.js b/packages/nexmo/src/Adaptor.js index 4fe7153760..65042b960b 100644 --- a/packages/nexmo/src/Adaptor.js +++ b/packages/nexmo/src/Adaptor.js @@ -84,6 +84,7 @@ export function sendSMS(from, toNumber, message) { } export { + combine, field, fields, sourceValue, diff --git a/packages/ocl/ast.json b/packages/ocl/ast.json index 9ac30072d1..46e474029f 100644 --- a/packages/ocl/ast.json +++ b/packages/ocl/ast.json @@ -507,6 +507,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/ocl/src/Adaptor.js b/packages/ocl/src/Adaptor.js index 8562a080c2..05d69359ab 100644 --- a/packages/ocl/src/Adaptor.js +++ b/packages/ocl/src/Adaptor.js @@ -118,6 +118,7 @@ export function get(path, query, callback = false) { } export { + combine, fn, fnIf, alterState, diff --git a/packages/odk/ast.json b/packages/odk/ast.json index 26ddab71ae..bf065fd8b2 100644 --- a/packages/odk/ast.json +++ b/packages/odk/ast.json @@ -673,6 +673,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/odk/src/Adaptor.js b/packages/odk/src/Adaptor.js index e1f87d81b2..e65b88797e 100644 --- a/packages/odk/src/Adaptor.js +++ b/packages/odk/src/Adaptor.js @@ -168,6 +168,7 @@ export function execute(...operations) { } export { + combine, dataPath, dataValue, dateFns, diff --git a/packages/odoo/ast.json b/packages/odoo/ast.json index d28239094e..532f0995a5 100644 --- a/packages/odoo/ast.json +++ b/packages/odoo/ast.json @@ -762,6 +762,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/odoo/src/Adaptor.js b/packages/odoo/src/Adaptor.js index 7b5ff9a7b4..0431326aaa 100644 --- a/packages/odoo/src/Adaptor.js +++ b/packages/odoo/src/Adaptor.js @@ -352,6 +352,7 @@ export function searchReadRecord( } export { + combine, dataPath, dataValue, dateFns, diff --git a/packages/openboxes/ast.json b/packages/openboxes/ast.json index 08a5f37e43..b8b711dc74 100644 --- a/packages/openboxes/ast.json +++ b/packages/openboxes/ast.json @@ -480,6 +480,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/openboxes/src/Adaptor.js b/packages/openboxes/src/Adaptor.js index a2c8db39fc..4d35c03f22 100644 --- a/packages/openboxes/src/Adaptor.js +++ b/packages/openboxes/src/Adaptor.js @@ -110,6 +110,7 @@ export function request(method, path, options = {}) { } export { + combine, dataPath, dataValue, dateFns, diff --git a/packages/openhim/ast.json b/packages/openhim/ast.json index 3f266a7c09..7006e29e73 100644 --- a/packages/openhim/ast.json +++ b/packages/openhim/ast.json @@ -701,6 +701,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/openhim/src/Adaptor.js b/packages/openhim/src/Adaptor.js index cb78508e93..fcd41f80cf 100644 --- a/packages/openhim/src/Adaptor.js +++ b/packages/openhim/src/Adaptor.js @@ -337,6 +337,7 @@ export function createTask(body) { } export { + combine, fnIf, dataPath, dataValue, diff --git a/packages/openimis/ast.json b/packages/openimis/ast.json index b0a4d95339..f77b668f0c 100644 --- a/packages/openimis/ast.json +++ b/packages/openimis/ast.json @@ -398,6 +398,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/openimis/src/Adaptor.js b/packages/openimis/src/Adaptor.js index b755f8628e..555855adf7 100644 --- a/packages/openimis/src/Adaptor.js +++ b/packages/openimis/src/Adaptor.js @@ -107,6 +107,7 @@ export function getFHIR(path, params, callback = s => s) { export { alterState, + combine, dataPath, dataValue, dateFns, diff --git a/packages/openlmis/ast.json b/packages/openlmis/ast.json index b627e635b9..1fc930eb81 100644 --- a/packages/openlmis/ast.json +++ b/packages/openlmis/ast.json @@ -638,6 +638,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/openlmis/src/Adaptor.js b/packages/openlmis/src/Adaptor.js index 0acd5dfe08..239014f474 100644 --- a/packages/openlmis/src/Adaptor.js +++ b/packages/openlmis/src/Adaptor.js @@ -117,6 +117,7 @@ export function request(method, path, body, options = {}, callback = s => s) { } export { + combine, dataPath, dataValue, dateFns, diff --git a/packages/openmrs/ast.json b/packages/openmrs/ast.json index 8a8efcff58..8c1870c9f1 100644 --- a/packages/openmrs/ast.json +++ b/packages/openmrs/ast.json @@ -721,6 +721,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/openmrs/src/Adaptor.js b/packages/openmrs/src/Adaptor.js index 0c1ea4f8b6..b19784b72e 100644 --- a/packages/openmrs/src/Adaptor.js +++ b/packages/openmrs/src/Adaptor.js @@ -425,6 +425,7 @@ export { alterState, arrayToString, as, + combine, cursor, dataPath, dataValue, diff --git a/packages/openspp/ast.json b/packages/openspp/ast.json index f247fc9106..0a9488c81f 100644 --- a/packages/openspp/ast.json +++ b/packages/openspp/ast.json @@ -1508,6 +1508,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/openspp/src/Adaptor.js b/packages/openspp/src/Adaptor.js index bc3c2a6629..38eaaeda48 100644 --- a/packages/openspp/src/Adaptor.js +++ b/packages/openspp/src/Adaptor.js @@ -1027,6 +1027,7 @@ export function searchArea(domain, options = {}, callback = s => s) { } export { + combine, dataPath, dataValue, dateFns, diff --git a/packages/pesapal/ast.json b/packages/pesapal/ast.json index 019cc40f4b..3d455a562a 100644 --- a/packages/pesapal/ast.json +++ b/packages/pesapal/ast.json @@ -491,6 +491,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/pesapal/src/Adaptor.js b/packages/pesapal/src/Adaptor.js index f6ae7053b3..30c51e7023 100644 --- a/packages/pesapal/src/Adaptor.js +++ b/packages/pesapal/src/Adaptor.js @@ -112,6 +112,7 @@ export function request(method, path, body, options = {}) { } export { + combine, dataPath, dataValue, dateFns, diff --git a/packages/progres/ast.json b/packages/progres/ast.json index 03d2865ee1..6bb0bf198e 100644 --- a/packages/progres/ast.json +++ b/packages/progres/ast.json @@ -388,6 +388,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/progres/src/Adaptor.js b/packages/progres/src/Adaptor.js index 093eb20070..3fc7b25486 100644 --- a/packages/progres/src/Adaptor.js +++ b/packages/progres/src/Adaptor.js @@ -72,6 +72,7 @@ export function postData(params, callback = s => s) { } export { + combine, fn, fnIf, alterState, diff --git a/packages/rapidpro/ast.json b/packages/rapidpro/ast.json index c3edaeaa39..d80c583899 100644 --- a/packages/rapidpro/ast.json +++ b/packages/rapidpro/ast.json @@ -547,6 +547,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/rapidpro/src/Adaptor.js b/packages/rapidpro/src/Adaptor.js index ce655d702c..1ea8334d2e 100644 --- a/packages/rapidpro/src/Adaptor.js +++ b/packages/rapidpro/src/Adaptor.js @@ -215,6 +215,7 @@ export function sendBroadcast(params, callback = s => s) { export { alterState, + combine, dataPath, dataValue, each, diff --git a/packages/redis/ast.json b/packages/redis/ast.json index 34f5160642..c44a460b79 100644 --- a/packages/redis/ast.json +++ b/packages/redis/ast.json @@ -936,6 +936,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/redis/src/Adaptor.js b/packages/redis/src/Adaptor.js index 08ca3ab3d6..9a29fff1e8 100644 --- a/packages/redis/src/Adaptor.js +++ b/packages/redis/src/Adaptor.js @@ -342,6 +342,7 @@ export function scan(pattern, options = {}) { } export { + combine, dataPath, dataValue, dateFns, diff --git a/packages/resourcemap/ast.json b/packages/resourcemap/ast.json index 6ec6be8c78..79cf0f7b2a 100644 --- a/packages/resourcemap/ast.json +++ b/packages/resourcemap/ast.json @@ -334,6 +334,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/resourcemap/src/Adaptor.js b/packages/resourcemap/src/Adaptor.js index 36d1e8b1b8..c16f94dd45 100644 --- a/packages/resourcemap/src/Adaptor.js +++ b/packages/resourcemap/src/Adaptor.js @@ -92,6 +92,7 @@ export function submitSite(collection_id, submissionData) { } export { + combine, fn, fnIf, alterState, diff --git a/packages/sftp/ast.json b/packages/sftp/ast.json index 31ce68c9a8..e619cae455 100644 --- a/packages/sftp/ast.json +++ b/packages/sftp/ast.json @@ -694,6 +694,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/sftp/src/Adaptor.js b/packages/sftp/src/Adaptor.js index 8148fd35ca..d5ea529ad2 100644 --- a/packages/sftp/src/Adaptor.js +++ b/packages/sftp/src/Adaptor.js @@ -267,6 +267,7 @@ export * from 'lodash/fp.js'; export { alterState, + combine, fn, fnIf, dataPath, diff --git a/packages/surveycto/ast.json b/packages/surveycto/ast.json index 426451e7d2..85808fcc6e 100644 --- a/packages/surveycto/ast.json +++ b/packages/surveycto/ast.json @@ -755,6 +755,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/surveycto/src/Adaptor.js b/packages/surveycto/src/Adaptor.js index ae0808d091..2984ba5143 100644 --- a/packages/surveycto/src/Adaptor.js +++ b/packages/surveycto/src/Adaptor.js @@ -399,6 +399,7 @@ export function jsonToCSVBuffer(rows) { } export { + combine, fn, fnIf, chunk, diff --git a/packages/telerivet/ast.json b/packages/telerivet/ast.json index b28ba5fd8c..bef1af517c 100644 --- a/packages/telerivet/ast.json +++ b/packages/telerivet/ast.json @@ -270,6 +270,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/telerivet/src/Adaptor.js b/packages/telerivet/src/Adaptor.js index 99f934481e..384ab6a0e6 100644 --- a/packages/telerivet/src/Adaptor.js +++ b/packages/telerivet/src/Adaptor.js @@ -55,6 +55,7 @@ export function send(sendData) { } export { + combine, fn, fnIf, alterState, diff --git a/packages/testing/src/Adaptor.js b/packages/testing/src/Adaptor.js index f9a73a82da..4584361838 100644 --- a/packages/testing/src/Adaptor.js +++ b/packages/testing/src/Adaptor.js @@ -8,4 +8,5 @@ export function version() { }); } -export { fn } from '@openfn/language-common'; +export { combine, + fn } from '@openfn/language-common'; diff --git a/packages/twilio/ast.json b/packages/twilio/ast.json index 2b5b16c7fe..eb67151d8e 100644 --- a/packages/twilio/ast.json +++ b/packages/twilio/ast.json @@ -378,6 +378,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/twilio/src/Adaptor.js b/packages/twilio/src/Adaptor.js index 2b0980a77a..aece55422d 100644 --- a/packages/twilio/src/Adaptor.js +++ b/packages/twilio/src/Adaptor.js @@ -64,6 +64,7 @@ export function sendSMS(params) { // export function bulkSMS(params) {} export { + combine, field, fields, sourceValue, diff --git a/packages/vtiger/ast.json b/packages/vtiger/ast.json index 6ec6be8c78..79cf0f7b2a 100644 --- a/packages/vtiger/ast.json +++ b/packages/vtiger/ast.json @@ -334,6 +334,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/vtiger/src/Adaptor.js b/packages/vtiger/src/Adaptor.js index 4f4087d4aa..aa72e9140f 100644 --- a/packages/vtiger/src/Adaptor.js +++ b/packages/vtiger/src/Adaptor.js @@ -171,6 +171,7 @@ export function postElement(params) { } export { + combine, field, fields, sourceValue, diff --git a/packages/wigal-sms/ast.json b/packages/wigal-sms/ast.json index b1d39d2cb0..c43474a8a3 100644 --- a/packages/wigal-sms/ast.json +++ b/packages/wigal-sms/ast.json @@ -388,6 +388,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/wigal-sms/src/Adaptor.js b/packages/wigal-sms/src/Adaptor.js index 17d950cc90..f61c2f846f 100644 --- a/packages/wigal-sms/src/Adaptor.js +++ b/packages/wigal-sms/src/Adaptor.js @@ -78,6 +78,7 @@ export function sendSms(data) { } export { + combine, fn, fnIf, each, diff --git a/packages/zoho/ast.json b/packages/zoho/ast.json index 6ec6be8c78..79cf0f7b2a 100644 --- a/packages/zoho/ast.json +++ b/packages/zoho/ast.json @@ -334,6 +334,49 @@ }, "valid": true }, + { + "name": "combine", + "params": [ + "operations" + ], + "docs": { + "description": "Combines two operations into one", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "combine(\n create('foo'),\n delete('bar')\n)" + }, + { + "title": "param", + "description": "Operations to be performed.", + "type": { + "type": "NameExpression", + "name": "Operations" + }, + "name": "operations" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "field", "params": [ diff --git a/packages/zoho/src/Adaptor.js b/packages/zoho/src/Adaptor.js index 9cf393608e..2171639b71 100644 --- a/packages/zoho/src/Adaptor.js +++ b/packages/zoho/src/Adaptor.js @@ -67,6 +67,7 @@ export function addRow(db, table, rowData) { } export { + combine, fn, fnIf, alterState, From bf2688158f6f2ae0241164dac625d7ad9c4f6b64 Mon Sep 17 00:00:00 2001 From: Emmanuel Evance Date: Thu, 21 May 2026 17:56:26 +0300 Subject: [PATCH 2/3] Export `log` function from common (#1674) * export log function from common * add changeset * build ast * fix export * remove duplicate each export from common * remove duplicate fn and fnIf export from common * build ast --------- Co-authored-by: Joe Clark --- .changeset/stale-islands-see.md | 99 +++++++++++++++++++++++ packages/arcgis/ast.json | 49 +++++++++++ packages/arcgis/src/Adaptor.js | 1 + packages/asana/ast.json | 49 +++++++++++ packages/asana/src/Adaptor.js | 31 +++---- packages/aws-s3/ast.json | 49 +++++++++++ packages/aws-s3/src/Adaptor.js | 1 + packages/azure-storage/ast.json | 49 +++++++++++ packages/azure-storage/src/Adaptor.js | 1 + packages/beyonic/ast.json | 49 +++++++++++ packages/beyonic/src/Adaptor.js | 13 +-- packages/bigquery/ast.json | 49 +++++++++++ packages/bigquery/src/Adaptor.js | 9 ++- packages/browserless/ast.json | 49 +++++++++++ packages/browserless/src/Adaptor.js | 1 + packages/cartodb/ast.json | 49 +++++++++++ packages/cartodb/src/Adaptor.js | 15 ++-- packages/chatgpt/ast.json | 49 +++++++++++ packages/chatgpt/src/Adaptor.js | 9 ++- packages/cht/ast.json | 49 +++++++++++ packages/cht/src/Adaptor.js | 7 +- packages/claude/ast.json | 49 +++++++++++ packages/claude/src/Adaptor.js | 7 +- packages/commcare/ast.json | 49 +++++++++++ packages/commcare/src/Adaptor.js | 1 + packages/dagu/ast.json | 49 +++++++++++ packages/dagu/src/Adaptor.js | 1 + packages/dhis2/ast.json | 49 +++++++++++ packages/dhis2/src/Adaptor.js | 1 + packages/divoc/ast.json | 49 +++++++++++ packages/divoc/src/Adaptor.js | 26 +++--- packages/dynamics/ast.json | 49 +++++++++++ packages/dynamics/src/Adaptor.js | 21 ++--- packages/erpnext/ast.json | 49 +++++++++++ packages/erpnext/src/Adaptor.js | 1 + packages/facebook/ast.json | 49 +++++++++++ packages/facebook/src/Adaptor.js | 15 ++-- packages/fhir-fr/ast.json | 49 +++++++++++ packages/fhir-fr/src/Adaptor.js | 3 +- packages/fhir-ndr-et/ast.json | 49 +++++++++++ packages/fhir-ndr-et/src/Adaptor.js | 5 +- packages/fhir/ast.json | 49 +++++++++++ packages/fhir/src/Adaptor.js | 1 + packages/ghana-bdr/ast.json | 49 +++++++++++ packages/ghana-bdr/src/Adaptor.js | 17 ++-- packages/ghana-nia/ast.json | 49 +++++++++++ packages/ghana-nia/src/Adaptor.js | 17 ++-- packages/gmail/ast.json | 49 +++++++++++ packages/gmail/src/Adaptor.js | 1 + packages/godata/ast.json | 49 +++++++++++ packages/godata/src/Adaptor.js | 15 ++-- packages/googledrive/ast.json | 49 +++++++++++ packages/googledrive/src/Adaptor.js | 27 ++++--- packages/googlehealthcare/ast.json | 49 +++++++++++ packages/googlehealthcare/src/Adaptor.js | 1 + packages/googlesheets/ast.json | 49 +++++++++++ packages/googlesheets/src/Adaptor.js | 1 + packages/hive/ast.json | 49 +++++++++++ packages/hive/src/Adaptor.js | 3 +- packages/http/ast.json | 49 +++++++++++ packages/http/src/Adaptor.js | 1 + packages/hubtel/ast.json | 49 +++++++++++ packages/hubtel/src/Adaptor.js | 5 +- packages/ibipimo/ast.json | 49 +++++++++++ packages/ibipimo/src/Adaptor.js | 1 + packages/ihris/ast.json | 49 +++++++++++ packages/ihris/src/Adaptor.js | 1 + packages/inform/ast.json | 49 +++++++++++ packages/inform/src/Adaptor.js | 3 +- packages/intuit/ast.json | 49 +++++++++++ packages/intuit/src/Adaptor.js | 4 +- packages/khanacademy/ast.json | 49 +++++++++++ packages/khanacademy/src/Adaptor.js | 29 +++---- packages/kobotoolbox/ast.json | 49 +++++++++++ packages/kobotoolbox/src/Adaptor.js | 1 + packages/lamisplus/ast.json | 49 +++++++++++ packages/lamisplus/src/Adaptor.js | 1 + packages/magpi/ast.json | 49 +++++++++++ packages/magpi/src/Adaptor.js | 27 ++++--- packages/mailchimp/ast.json | 49 +++++++++++ packages/mailchimp/src/Adaptor.js | 9 ++- packages/mailgun/ast.json | 49 +++++++++++ packages/mailgun/src/Adaptor.js | 21 ++--- packages/maximo/ast.json | 49 +++++++++++ packages/maximo/src/Adaptor.js | 23 +++--- packages/medicmobile/ast.json | 49 +++++++++++ packages/medicmobile/src/Adaptor.js | 13 +-- packages/memento/ast.json | 49 +++++++++++ packages/memento/src/Adaptor.js | 1 + packages/minio/ast.json | 49 +++++++++++ packages/minio/src/Adaptor.js | 3 +- packages/mogli/ast.json | 49 +++++++++++ packages/mogli/src/Adaptor.js | 29 +++---- packages/mojatax/ast.json | 49 +++++++++++ packages/mojatax/src/Adaptor.js | 7 +- packages/mongodb/ast.json | 49 +++++++++++ packages/mongodb/src/Adaptor.js | 45 ++++++----- packages/monnify/ast.json | 49 +++++++++++ packages/monnify/src/Adaptor.js | 1 + packages/motherduck/ast.json | 49 +++++++++++ packages/motherduck/src/Adaptor.js | 3 +- packages/mpesa/ast.json | 51 +++++++++++- packages/mpesa/src/Adaptor.js | 99 ++++++++++++----------- packages/msgraph/ast.json | 49 +++++++++++ packages/msgraph/src/Adaptor.js | 25 +++--- packages/mssql/ast.json | 49 +++++++++++ packages/mssql/src/Adaptor.js | 5 +- packages/msupply/ast.json | 49 +++++++++++ packages/msupply/src/Adaptor.js | 1 + packages/mtn-momo/ast.json | 49 +++++++++++ packages/mtn-momo/src/Adaptor.js | 3 +- packages/mysql/ast.json | 49 +++++++++++ packages/mysql/src/Adaptor.js | 25 +++--- packages/nexmo/ast.json | 49 +++++++++++ packages/nexmo/src/Adaptor.js | 17 ++-- packages/ocl/ast.json | 49 +++++++++++ packages/ocl/src/Adaptor.js | 5 +- packages/odk/ast.json | 49 +++++++++++ packages/odk/src/Adaptor.js | 9 ++- packages/odoo/ast.json | 49 +++++++++++ packages/odoo/src/Adaptor.js | 1 + packages/openboxes/ast.json | 49 +++++++++++ packages/openboxes/src/Adaptor.js | 20 +++-- packages/opencrvs/ast.json | 49 +++++++++++ packages/opencrvs/src/Adaptor.js | 1 + packages/openelis/ast.json | 49 +++++++++++ packages/openelis/src/Adaptor.js | 1 + packages/openfn/ast.json | 49 +++++++++++ packages/openfn/src/Adaptor.js | 7 +- packages/openhim/ast.json | 49 +++++++++++ packages/openhim/src/Adaptor.js | 23 +++--- packages/openimis/ast.json | 49 +++++++++++ packages/openimis/src/Adaptor.js | 7 +- packages/openlmis/ast.json | 49 +++++++++++ packages/openlmis/src/Adaptor.js | 9 ++- packages/openmrs/ast.json | 49 +++++++++++ packages/openmrs/src/Adaptor.js | 1 + packages/openspp/ast.json | 49 +++++++++++ packages/openspp/src/Adaptor.js | 1 + packages/pdfshift/ast.json | 49 +++++++++++ packages/pdfshift/src/Adaptor.js | 1 + packages/pesapal/ast.json | 49 +++++++++++ packages/pesapal/src/Adaptor.js | 7 +- packages/ping/ast.json | 49 +++++++++++ packages/ping/src/Adaptor.js | 1 + packages/postgresql/ast.json | 49 +++++++++++ packages/postgresql/src/Adaptor.js | 7 +- packages/primero/ast.json | 49 +++++++++++ packages/primero/src/Adaptor.js | 3 +- packages/progres/ast.json | 49 +++++++++++ packages/progres/src/Adaptor.js | 7 +- packages/puntosolidario-rd/ast.json | 49 +++++++++++ packages/puntosolidario-rd/src/Adaptor.js | 1 + packages/rapidpro/ast.json | 49 +++++++++++ packages/rapidpro/src/Adaptor.js | 1 + packages/redis/ast.json | 49 +++++++++++ packages/redis/src/Adaptor.js | 5 +- packages/resourcemap/ast.json | 49 +++++++++++ packages/resourcemap/src/Adaptor.js | 23 +++--- packages/salesforce/ast.json | 49 +++++++++++ packages/salesforce/src/Adaptor.js | 1 + packages/satusehat/ast.json | 49 +++++++++++ packages/satusehat/src/Adaptor.js | 1 + packages/senaite/ast.json | 49 +++++++++++ packages/senaite/src/Adaptor.js | 1 + packages/sftp/ast.json | 49 +++++++++++ packages/sftp/src/Adaptor.js | 14 ++-- packages/siuben-rd/ast.json | 49 +++++++++++ packages/siuben-rd/src/Adaptor.js | 1 + packages/stripe/ast.json | 49 +++++++++++ packages/stripe/src/Adaptor.js | 1 + packages/sunbird-rc/ast.json | 49 +++++++++++ packages/sunbird-rc/src/Adaptor.js | 1 + packages/surveycto/ast.json | 49 +++++++++++ packages/surveycto/src/Adaptor.js | 31 +++---- packages/telerivet/ast.json | 49 +++++++++++ packages/telerivet/src/Adaptor.js | 17 ++-- packages/testing/src/Adaptor.js | 3 +- packages/twilio/ast.json | 49 +++++++++++ packages/twilio/src/Adaptor.js | 32 ++++---- packages/varo/ast.json | 49 +++++++++++ packages/varo/src/Adaptor.js | 1 + packages/vtiger/ast.json | 49 +++++++++++ packages/vtiger/src/Adaptor.js | 25 +++--- packages/whatsapp/ast.json | 49 +++++++++++ packages/whatsapp/src/Adaptor.js | 1 + packages/wigal-sms/ast.json | 49 +++++++++++ packages/wigal-sms/src/Adaptor.js | 17 ++-- packages/zata/ast.json | 49 +++++++++++ packages/zata/src/Adaptor.js | 1 + packages/zoho/ast.json | 49 +++++++++++ packages/zoho/src/Adaptor.js | 19 ++--- 192 files changed, 5291 insertions(+), 428 deletions(-) create mode 100644 .changeset/stale-islands-see.md diff --git a/.changeset/stale-islands-see.md b/.changeset/stale-islands-see.md new file mode 100644 index 0000000000..edfa29dca4 --- /dev/null +++ b/.changeset/stale-islands-see.md @@ -0,0 +1,99 @@ +--- +'@openfn/language-puntosolidario-rd': minor +'@openfn/language-googlehealthcare': minor +'@openfn/language-azure-storage': minor +'@openfn/language-googlesheets': minor +'@openfn/language-browserless': minor +'@openfn/language-fhir-ndr-et': minor +'@openfn/language-googledrive': minor +'@openfn/language-khanacademy': minor +'@openfn/language-kobotoolbox': minor +'@openfn/language-medicmobile': minor +'@openfn/language-resourcemap': minor +'@openfn/language-motherduck': minor +'@openfn/language-postgresql': minor +'@openfn/language-salesforce': minor +'@openfn/language-sunbird-rc': minor +'@openfn/language-ghana-bdr': minor +'@openfn/language-ghana-nia': minor +'@openfn/language-lamisplus': minor +'@openfn/language-mailchimp': minor +'@openfn/language-openboxes': minor +'@openfn/language-satusehat': minor +'@openfn/language-siuben-rd': minor +'@openfn/language-surveycto': minor +'@openfn/language-telerivet': minor +'@openfn/language-wigal-sms': minor +'@openfn/language-bigquery': minor +'@openfn/language-commcare': minor +'@openfn/language-dynamics': minor +'@openfn/language-facebook': minor +'@openfn/language-mtn-momo': minor +'@openfn/language-opencrvs': minor +'@openfn/language-openelis': minor +'@openfn/language-openimis': minor +'@openfn/language-openlmis': minor +'@openfn/language-pdfshift': minor +'@openfn/language-rapidpro': minor +'@openfn/language-whatsapp': minor +'@openfn/language-beyonic': minor +'@openfn/language-cartodb': minor +'@openfn/language-chatgpt': minor +'@openfn/language-erpnext': minor +'@openfn/language-fhir-fr': minor +'@openfn/language-ibipimo': minor +'@openfn/language-mailgun': minor +'@openfn/language-memento': minor +'@openfn/language-mojatax': minor +'@openfn/language-mongodb': minor +'@openfn/language-monnify': minor +'@openfn/language-msgraph': minor +'@openfn/language-msupply': minor +'@openfn/language-openhim': minor +'@openfn/language-openmrs': minor +'@openfn/language-openspp': minor +'@openfn/language-pesapal': minor +'@openfn/language-primero': minor +'@openfn/language-progres': minor +'@openfn/language-senaite': minor +'@openfn/language-arcgis': minor +'@openfn/language-aws-s3': minor +'@openfn/language-claude': minor +'@openfn/language-godata': minor +'@openfn/language-hubtel': minor +'@openfn/language-inform': minor +'@openfn/language-intuit': minor +'@openfn/language-maximo': minor +'@openfn/language-openfn': minor +'@openfn/language-stripe': minor +'@openfn/language-twilio': minor +'@openfn/language-vtiger': minor +'@openfn/language-asana': minor +'@openfn/language-dhis2': minor +'@openfn/language-divoc': minor +'@openfn/language-gmail': minor +'@openfn/language-ihris': minor +'@openfn/language-magpi': minor +'@openfn/language-minio': minor +'@openfn/language-mogli': minor +'@openfn/language-mpesa': minor +'@openfn/language-mssql': minor +'@openfn/language-mysql': minor +'@openfn/language-nexmo': minor +'@openfn/language-redis': minor +'@openfn/language-dagu': minor +'@openfn/language-fhir': minor +'@openfn/language-hive': minor +'@openfn/language-http': minor +'@openfn/language-odoo': minor +'@openfn/language-ping': minor +'@openfn/language-sftp': minor +'@openfn/language-varo': minor +'@openfn/language-zata': minor +'@openfn/language-zoho': minor +'@openfn/language-cht': minor +'@openfn/language-ocl': minor +'@openfn/language-odk': minor +--- + +export `log` function from common diff --git a/packages/arcgis/ast.json b/packages/arcgis/ast.json index 61b1598158..e4878da674 100644 --- a/packages/arcgis/ast.json +++ b/packages/arcgis/ast.json @@ -747,6 +747,55 @@ }, "valid": false }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "as", "params": [ diff --git a/packages/arcgis/src/Adaptor.js b/packages/arcgis/src/Adaptor.js index a24d139643..30bdfec611 100644 --- a/packages/arcgis/src/Adaptor.js +++ b/packages/arcgis/src/Adaptor.js @@ -21,6 +21,7 @@ export { fnIf, group, lastReferenceValue, + log, map, merge, scrubEmojis, diff --git a/packages/asana/ast.json b/packages/asana/ast.json index b18757f91c..3a425196ae 100644 --- a/packages/asana/ast.json +++ b/packages/asana/ast.json @@ -1227,6 +1227,55 @@ }, "valid": false }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "as", "params": [ diff --git a/packages/asana/src/Adaptor.js b/packages/asana/src/Adaptor.js index edc2dccf9c..42a136da48 100644 --- a/packages/asana/src/Adaptor.js +++ b/packages/asana/src/Adaptor.js @@ -50,13 +50,13 @@ export function getTask(taskGid, params, callback) { const [resolvedTaskGid, resolvedParams] = expandReferences( state, taskGid, - params + params, ); const response = await util.request( state, `tasks/${resolvedTaskGid}`, { query: resolvedParams }, - callback + callback, ); return util.prepareNextState(state, response); }; @@ -87,14 +87,14 @@ export function getTasks(projectGid, params, callback) { const [resolvedProjectGid, resolvedParams] = expandReferences( state, projectGid, - params + params, ); const results = await util.requestWithPagination( state, `projects/${resolvedProjectGid}/tasks`, { query: resolvedParams }, - callback + callback, ); console.log(`Fetched ${results.length} tasks`); return composeNextState(state, results); @@ -121,14 +121,14 @@ export function updateTask(taskGid, data, callback) { const [resolvedTaskGid, resolvedData] = expandReferences( state, taskGid, - data + data, ); const response = await util.request( state, `tasks/${resolvedTaskGid}`, { body: { data: resolvedData }, method: 'PUT' }, - callback + callback, ); return util.prepareNextState(state, response); }; @@ -157,7 +157,7 @@ export function createTask(params, callback) { state, 'tasks', { body: { data: resolvedParams }, method: 'POST' }, - callback + callback, ); return util.prepareNextState(state, response); }; @@ -189,7 +189,7 @@ export function upsertTask(projectGid, params, callback) { const [resolvedProjectGid, { externalId, data }] = expandReferences( state, projectGid, - params + params, ); return util @@ -198,7 +198,7 @@ export function upsertTask(projectGid, params, callback) { }) .then(next => { const matchingTask = next.find( - task => task[externalId] === data[externalId] + task => task[externalId] === data[externalId], ); if (matchingTask) { console.log('Matching task found. Performing update.'); @@ -247,7 +247,7 @@ export function searchTask(task, query = {}, options = {}) { state, task, query, - options + options, ); const { workspaceGid = state.configuration.workspaceGid } = resolvedOptions; const { resource_subtype = 'default_task', ...restQuery } = resolvedQuery; @@ -263,7 +263,7 @@ export function searchTask(task, query = {}, options = {}) { text: resolvedTask, ...restQuery, }, - } + }, ); return util.prepareNextState(state, response); @@ -322,7 +322,7 @@ export function createTaskStory(taskGid, params, callback) { query: { opt_fields, opt_pretty }, method: 'POST', }, - callback + callback, ); return util.prepareNextState(state, response); }; @@ -362,7 +362,7 @@ export function request(path, params = {}, callback) { const [resolvedPath, resolvedParams] = expandReferences( state, path, - params + params, ); const { body, query, method } = resolvedParams; @@ -371,7 +371,7 @@ export function request(path, params = {}, callback) { state, resolvedPath, { method, body, query }, - callback + callback, ); return util.prepareNextState(state, response); @@ -380,6 +380,7 @@ export function request(path, params = {}, callback) { export { alterState, + as, combine, cursor, dataPath, @@ -391,7 +392,7 @@ export { fn, fnIf, lastReferenceValue, + log, merge, sourceValue, - as, } from '@openfn/language-common'; diff --git a/packages/aws-s3/ast.json b/packages/aws-s3/ast.json index 1e11141797..914d695bbb 100644 --- a/packages/aws-s3/ast.json +++ b/packages/aws-s3/ast.json @@ -870,6 +870,55 @@ }, "valid": false }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "as", "params": [ diff --git a/packages/aws-s3/src/Adaptor.js b/packages/aws-s3/src/Adaptor.js index 4d84e59136..e686171840 100644 --- a/packages/aws-s3/src/Adaptor.js +++ b/packages/aws-s3/src/Adaptor.js @@ -137,6 +137,7 @@ export { fnIf, group, lastReferenceValue, + log, map, merge, scrubEmojis, diff --git a/packages/azure-storage/ast.json b/packages/azure-storage/ast.json index 7747c62f60..cb8adcb4bb 100644 --- a/packages/azure-storage/ast.json +++ b/packages/azure-storage/ast.json @@ -756,6 +756,55 @@ ] }, "valid": true + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/azure-storage/src/Adaptor.js b/packages/azure-storage/src/Adaptor.js index ae45d90358..f8260f17cb 100644 --- a/packages/azure-storage/src/Adaptor.js +++ b/packages/azure-storage/src/Adaptor.js @@ -242,6 +242,7 @@ export { fn, fnIf, lastReferenceValue, + log, merge, sourceValue, } from '@openfn/language-common'; diff --git a/packages/beyonic/ast.json b/packages/beyonic/ast.json index e225e8be66..0a0432b94a 100644 --- a/packages/beyonic/ast.json +++ b/packages/beyonic/ast.json @@ -599,6 +599,55 @@ ] }, "valid": true + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/beyonic/src/Adaptor.js b/packages/beyonic/src/Adaptor.js index 649dac6654..bb836f4477 100644 --- a/packages/beyonic/src/Adaptor.js +++ b/packages/beyonic/src/Adaptor.js @@ -104,13 +104,14 @@ export function createCollectionRequest(data) { export { combine, - fn, - fnIf, - field, - fields, - sourceValue, - merge, dataPath, dataValue, + field, + fields, + fn, + fnIf, lastReferenceValue, + log, + merge, + sourceValue, } from '@openfn/language-common'; diff --git a/packages/bigquery/ast.json b/packages/bigquery/ast.json index bb6d8eeb8f..07ad18d2f7 100644 --- a/packages/bigquery/ast.json +++ b/packages/bigquery/ast.json @@ -698,6 +698,55 @@ ] }, "valid": true + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/bigquery/src/Adaptor.js b/packages/bigquery/src/Adaptor.js index 3da27059d8..0249d968ac 100644 --- a/packages/bigquery/src/Adaptor.js +++ b/packages/bigquery/src/Adaptor.js @@ -116,17 +116,18 @@ export function load( } export { - fn, - fnIf, alterState, - dataPath, combine, + dataPath, dataValue, each, field, fields, + fn, + fnIf, lastReferenceValue, + log, merge, - sourceValue, parseCsv, + sourceValue, } from '@openfn/language-common'; diff --git a/packages/browserless/ast.json b/packages/browserless/ast.json index 858bbb13f8..8ec58e0471 100644 --- a/packages/browserless/ast.json +++ b/packages/browserless/ast.json @@ -853,6 +853,55 @@ }, "valid": false }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "as", "params": [ diff --git a/packages/browserless/src/Adaptor.js b/packages/browserless/src/Adaptor.js index 7d0e5e61fd..e98a1f909f 100644 --- a/packages/browserless/src/Adaptor.js +++ b/packages/browserless/src/Adaptor.js @@ -52,6 +52,7 @@ export { fnIf, group, lastReferenceValue, + log, map, merge, scrubEmojis, diff --git a/packages/cartodb/ast.json b/packages/cartodb/ast.json index c0d117d77b..954e1cc491 100644 --- a/packages/cartodb/ast.json +++ b/packages/cartodb/ast.json @@ -629,6 +629,55 @@ ] }, "valid": true + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/cartodb/src/Adaptor.js b/packages/cartodb/src/Adaptor.js index 60747a2699..858004fe6b 100644 --- a/packages/cartodb/src/Adaptor.js +++ b/packages/cartodb/src/Adaptor.js @@ -92,14 +92,15 @@ export function addRow(table, rowData) { export { combine, - fn, - fnIf, - field, - fields, - sourceValue, - each, - merge, dataPath, dataValue, + each, + field, + fields, + fn, + fnIf, lastReferenceValue, + log, + merge, + sourceValue, } from '@openfn/language-common'; diff --git a/packages/chatgpt/ast.json b/packages/chatgpt/ast.json index d846887be5..a4a99f6d92 100644 --- a/packages/chatgpt/ast.json +++ b/packages/chatgpt/ast.json @@ -670,6 +670,55 @@ ] }, "valid": false + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/chatgpt/src/Adaptor.js b/packages/chatgpt/src/Adaptor.js index 6c44149c1f..d8aa64648d 100644 --- a/packages/chatgpt/src/Adaptor.js +++ b/packages/chatgpt/src/Adaptor.js @@ -57,7 +57,7 @@ export function execute(...operations) { return state => { return commonExecute( createClient, - ...operations + ...operations, )({ ...initialState, ...state, @@ -80,7 +80,7 @@ export function prompt(message, opts) { const [resolvedMessage, resolvedOpts] = expandReferences( state, message, - opts + opts, ); const payload = { @@ -124,7 +124,7 @@ export function deepResearch(message, opts) { const [resolvedMessage, resolvedOpts] = expandReferences( state, message, - opts + opts, ); const payload = { @@ -144,15 +144,16 @@ export function deepResearch(message, opts) { export { combine, + cursor, dataPath, dataValue, dateFns, - cursor, each, field, fields, fn, lastReferenceValue, + log, merge, sourceValue, } from '@openfn/language-common'; diff --git a/packages/cht/ast.json b/packages/cht/ast.json index 28e2a97774..40b02ac4f3 100644 --- a/packages/cht/ast.json +++ b/packages/cht/ast.json @@ -883,6 +883,55 @@ }, "valid": false }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "as", "params": [ diff --git a/packages/cht/src/Adaptor.js b/packages/cht/src/Adaptor.js index 020d229d5f..854e2b6839 100644 --- a/packages/cht/src/Adaptor.js +++ b/packages/cht/src/Adaptor.js @@ -111,7 +111,7 @@ export function request(method, path, body, options = {}, callback = s => s) { { data: resolvedData, ...resolvedoptions, - } + }, ); return util.prepareNextState(state, response, callback); @@ -119,17 +119,18 @@ export function request(method, path, body, options = {}, callback = s => s) { } export { + as, combine, + cursor, dataPath, dataValue, dateFns, - cursor, each, field, fields, fn, lastReferenceValue, + log, merge, sourceValue, - as } from '@openfn/language-common'; diff --git a/packages/claude/ast.json b/packages/claude/ast.json index 492b64aa1a..e6bcc73805 100644 --- a/packages/claude/ast.json +++ b/packages/claude/ast.json @@ -617,6 +617,55 @@ ] }, "valid": false + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/claude/src/Adaptor.js b/packages/claude/src/Adaptor.js index 525d736867..1003c1edbe 100644 --- a/packages/claude/src/Adaptor.js +++ b/packages/claude/src/Adaptor.js @@ -47,7 +47,7 @@ export function execute(...operations) { return state => { return commonExecute( createClient, - ...operations + ...operations, )({ ...initialState, ...state, @@ -74,7 +74,7 @@ export function prompt(message, opts) { const [resolvedMessage, resolvedOpts] = expandReferences( state, message, - opts + opts, ); const payload = { @@ -91,15 +91,16 @@ export function prompt(message, opts) { export { combine, + cursor, dataPath, dataValue, dateFns, - cursor, each, field, fields, fn, lastReferenceValue, + log, merge, sourceValue, } from '@openfn/language-common'; diff --git a/packages/commcare/ast.json b/packages/commcare/ast.json index fa290a7ae0..da0de4b0db 100644 --- a/packages/commcare/ast.json +++ b/packages/commcare/ast.json @@ -1196,6 +1196,55 @@ }, "valid": false }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "as", "params": [ diff --git a/packages/commcare/src/Adaptor.js b/packages/commcare/src/Adaptor.js index 38f2e0aee7..b1a0475b09 100644 --- a/packages/commcare/src/Adaptor.js +++ b/packages/commcare/src/Adaptor.js @@ -463,6 +463,7 @@ export { fn, fnIf, lastReferenceValue, + log, map, merge, sourceValue, diff --git a/packages/dagu/ast.json b/packages/dagu/ast.json index acfe2034bd..52231c8930 100644 --- a/packages/dagu/ast.json +++ b/packages/dagu/ast.json @@ -956,6 +956,55 @@ }, "valid": false }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "as", "params": [ diff --git a/packages/dagu/src/Adaptor.js b/packages/dagu/src/Adaptor.js index 3c9e2360f0..4fbb937d10 100644 --- a/packages/dagu/src/Adaptor.js +++ b/packages/dagu/src/Adaptor.js @@ -102,6 +102,7 @@ export { fnIf, group, lastReferenceValue, + log, map, merge, scrubEmojis, diff --git a/packages/dhis2/ast.json b/packages/dhis2/ast.json index 164d198333..844a6ee6db 100644 --- a/packages/dhis2/ast.json +++ b/packages/dhis2/ast.json @@ -1194,6 +1194,55 @@ }, "valid": false }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "as", "params": [ diff --git a/packages/dhis2/src/Adaptor.js b/packages/dhis2/src/Adaptor.js index 582b338a1c..66a1de2ceb 100644 --- a/packages/dhis2/src/Adaptor.js +++ b/packages/dhis2/src/Adaptor.js @@ -663,6 +663,7 @@ export { fnIf, group, lastReferenceValue, + log, map, merge, sourceValue, diff --git a/packages/divoc/ast.json b/packages/divoc/ast.json index 0def9f4213..03a5d0224b 100644 --- a/packages/divoc/ast.json +++ b/packages/divoc/ast.json @@ -612,6 +612,55 @@ ] }, "valid": false + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/divoc/src/Adaptor.js b/packages/divoc/src/Adaptor.js index 7208292a48..c63f69cead 100644 --- a/packages/divoc/src/Adaptor.js +++ b/packages/divoc/src/Adaptor.js @@ -2,7 +2,6 @@ import { execute as commonExecute } from '@openfn/language-common'; import { expandReferences } from '@openfn/language-common/util'; import * as util from './Utils.js'; - /** * State object * @typedef {Object} DivocHttpState @@ -18,7 +17,7 @@ import * as util from './Utils.js'; * @private * @example * execute(certifyVaccination({}))(state) - * @param {Operations} operations + * @param {Operations} operations * @returns {operation} */ export function execute(...operations) { @@ -28,11 +27,10 @@ export function execute(...operations) { }; return state => { - return commonExecute(...operations)({...initialState,...state}) - } + return commonExecute(...operations)({ ...initialState, ...state }); + }; } - /** * Certify a vaccination * @public @@ -89,34 +87,36 @@ export function execute(...operations) { */ export function certifyVaccination(data) { return async state => { - const [resolvedData] = expandReferences(state, data); const { baseUrl } = state.configuration; const options = { method: 'POST', data: resolvedData, - } - + }; + + const response = await util.request( + { ...state.configuration }, + '/v1/certify', + options, + ); - const response = await util.request({...state.configuration}, '/v1/certify', options); - return util.prepareNextState(state, response); - } + }; } - export { combine, + cursor, dataPath, dataValue, dateFns, - cursor, each, field, fields, fn, lastReferenceValue, + log, merge, sourceValue, } from '@openfn/language-common'; diff --git a/packages/dynamics/ast.json b/packages/dynamics/ast.json index 79cf0f7b2a..29f5e3a6ff 100644 --- a/packages/dynamics/ast.json +++ b/packages/dynamics/ast.json @@ -530,6 +530,55 @@ ] }, "valid": true + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/dynamics/src/Adaptor.js b/packages/dynamics/src/Adaptor.js index 53d7307922..a3dc8337db 100644 --- a/packages/dynamics/src/Adaptor.js +++ b/packages/dynamics/src/Adaptor.js @@ -73,7 +73,7 @@ export function createEntity(params) { console.log('Create entity succeeded.'); resolve(response); } - } + }, ); }).then(data => { const nextState = { @@ -148,7 +148,7 @@ export function query(params) { console.log(JSON.parse(body)); resolve(response); } - } + }, ); }).then(data => { const nextState = { @@ -201,7 +201,7 @@ export function updateEntity(params) { console.log('Update succeeded.'); resolve(response); } - } + }, ); }).then(data => { const nextState = { @@ -252,7 +252,7 @@ export function deleteEntity(params) { console.log('Delete succeeded.'); resolve(response); } - } + }, ); }).then(data => { const nextState = { @@ -265,16 +265,17 @@ export function deleteEntity(params) { } export { + alterState, combine, + dataPath, + dataValue, + each, field, fields, - sourceValue, - alterState, fn, fnIf, - each, - merge, - dataPath, - dataValue, lastReferenceValue, + log, + merge, + sourceValue, } from '@openfn/language-common'; diff --git a/packages/erpnext/ast.json b/packages/erpnext/ast.json index 542c164d81..e32684b11f 100644 --- a/packages/erpnext/ast.json +++ b/packages/erpnext/ast.json @@ -954,6 +954,55 @@ ] }, "valid": true + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/erpnext/src/Adaptor.js b/packages/erpnext/src/Adaptor.js index f5a38313b8..b2f826e962 100644 --- a/packages/erpnext/src/Adaptor.js +++ b/packages/erpnext/src/Adaptor.js @@ -373,6 +373,7 @@ export { fn, fnIf, lastReferenceValue, + log, merge, sourceValue, } from '@openfn/language-common'; diff --git a/packages/facebook/ast.json b/packages/facebook/ast.json index 29692fe992..6fe8e32383 100644 --- a/packages/facebook/ast.json +++ b/packages/facebook/ast.json @@ -574,6 +574,55 @@ ] }, "valid": true + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/facebook/src/Adaptor.js b/packages/facebook/src/Adaptor.js index dd769b2eb3..cb70378320 100644 --- a/packages/facebook/src/Adaptor.js +++ b/packages/facebook/src/Adaptor.js @@ -93,7 +93,7 @@ export function postMessage(params) { console.log('Post Message succeeded.'); resolve(body); } - } + }, ); }).then(response => { const nextState = composeNextState(state, response); @@ -103,16 +103,17 @@ export function postMessage(params) { } export { + alterState, combine, + dataPath, + dataValue, + each, field, fields, - sourceValue, fn, fnIf, - alterState, - each, - merge, - dataPath, - dataValue, lastReferenceValue, + log, + merge, + sourceValue, } from '@openfn/language-common'; diff --git a/packages/fhir-fr/ast.json b/packages/fhir-fr/ast.json index 540b4e3653..70624756ac 100644 --- a/packages/fhir-fr/ast.json +++ b/packages/fhir-fr/ast.json @@ -563,6 +563,55 @@ ] }, "valid": false + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/fhir-fr/src/Adaptor.js b/packages/fhir-fr/src/Adaptor.js index 8c7dfcb689..f71a7d3e8c 100644 --- a/packages/fhir-fr/src/Adaptor.js +++ b/packages/fhir-fr/src/Adaptor.js @@ -6,15 +6,16 @@ import * as util from './Utils'; export { combine, + cursor, dataPath, dataValue, dateFns, - cursor, each, field, fields, fn, lastReferenceValue, + log, merge, sourceValue, } from '@openfn/language-common'; diff --git a/packages/fhir-ndr-et/ast.json b/packages/fhir-ndr-et/ast.json index f4c872727a..2add3ee3af 100644 --- a/packages/fhir-ndr-et/ast.json +++ b/packages/fhir-ndr-et/ast.json @@ -637,6 +637,55 @@ ] }, "valid": false + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/fhir-ndr-et/src/Adaptor.js b/packages/fhir-ndr-et/src/Adaptor.js index a6587c642b..6245fbe11e 100644 --- a/packages/fhir-ndr-et/src/Adaptor.js +++ b/packages/fhir-ndr-et/src/Adaptor.js @@ -54,7 +54,7 @@ export const create = (resourceType, resource, params, callback = s => s) => { state.configuration, 'POST', resolvedResourceType, - opts + opts, ); return util.prepareNextState(state, response, callback); }; @@ -62,14 +62,15 @@ export const create = (resourceType, resource, params, callback = s => s) => { export { combine, + cursor, dataPath, dataValue, - cursor, each, field, fields, fn, lastReferenceValue, + log, merge, sourceValue, } from '@openfn/language-common'; diff --git a/packages/fhir/ast.json b/packages/fhir/ast.json index 0e14c20ea1..d13aa71c5c 100644 --- a/packages/fhir/ast.json +++ b/packages/fhir/ast.json @@ -894,6 +894,55 @@ ] }, "valid": true + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/fhir/src/Adaptor.js b/packages/fhir/src/Adaptor.js index 2d9187cd8a..fb416960b5 100644 --- a/packages/fhir/src/Adaptor.js +++ b/packages/fhir/src/Adaptor.js @@ -278,6 +278,7 @@ export { fn, fnIf, lastReferenceValue, + log, merge, sourceValue, } from '@openfn/language-common'; diff --git a/packages/ghana-bdr/ast.json b/packages/ghana-bdr/ast.json index 057325b587..554534ffac 100644 --- a/packages/ghana-bdr/ast.json +++ b/packages/ghana-bdr/ast.json @@ -778,6 +778,55 @@ ] }, "valid": false + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/ghana-bdr/src/Adaptor.js b/packages/ghana-bdr/src/Adaptor.js index f108e8d21f..e3123ca9ec 100644 --- a/packages/ghana-bdr/src/Adaptor.js +++ b/packages/ghana-bdr/src/Adaptor.js @@ -89,16 +89,17 @@ export function sendBirthNotification(data) { export { combine, - fn, - fnIf, - each, - merge, - field, - fields, cursor, - dateFns, dataPath, dataValue, - sourceValue, + dateFns, + each, + field, + fields, + fn, + fnIf, lastReferenceValue, + log, + merge, + sourceValue, } from '@openfn/language-common'; diff --git a/packages/ghana-nia/ast.json b/packages/ghana-nia/ast.json index fae83e875f..4d7ccd63b0 100644 --- a/packages/ghana-nia/ast.json +++ b/packages/ghana-nia/ast.json @@ -778,6 +778,55 @@ ] }, "valid": false + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/ghana-nia/src/Adaptor.js b/packages/ghana-nia/src/Adaptor.js index 50d1d66dc4..9e80a4c909 100644 --- a/packages/ghana-nia/src/Adaptor.js +++ b/packages/ghana-nia/src/Adaptor.js @@ -106,16 +106,17 @@ export function registerChild(data) { export { combine, - fn, - fnIf, - each, - merge, - field, - fields, cursor, - dateFns, dataPath, dataValue, - sourceValue, + dateFns, + each, + field, + fields, + fn, + fnIf, lastReferenceValue, + log, + merge, + sourceValue, } from '@openfn/language-common'; diff --git a/packages/gmail/ast.json b/packages/gmail/ast.json index ee592b3fc5..441452541f 100644 --- a/packages/gmail/ast.json +++ b/packages/gmail/ast.json @@ -739,6 +739,55 @@ ] }, "valid": false + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/gmail/src/Adaptor.js b/packages/gmail/src/Adaptor.js index 179482b145..2520579af5 100644 --- a/packages/gmail/src/Adaptor.js +++ b/packages/gmail/src/Adaptor.js @@ -240,6 +240,7 @@ export { fn, fnIf, lastReferenceValue, + log, merge, sourceValue, } from '@openfn/language-common'; diff --git a/packages/godata/ast.json b/packages/godata/ast.json index 45dac62752..db20167128 100644 --- a/packages/godata/ast.json +++ b/packages/godata/ast.json @@ -1376,6 +1376,55 @@ ] }, "valid": true + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/godata/src/Adaptor.js b/packages/godata/src/Adaptor.js index 7432f0a81a..08b33692b0 100644 --- a/packages/godata/src/Adaptor.js +++ b/packages/godata/src/Adaptor.js @@ -26,7 +26,7 @@ export function execute(...operations) { return state => { return commonExecute( login, - ...operations + ...operations, /* logout */ )({ ...initialState, ...state }).catch(e => { console.error(e); @@ -324,7 +324,7 @@ export function upsertOutbreak(outbreak, callback) { const { apiUrl, access_token } = state.configuration; const [resolvedOutbreak] = expandReferences(state, outbreak); - const {externalId, data} = resolvedOutbreak; + const { externalId, data } = resolvedOutbreak; const filter = JSON.stringify({ where: { id: externalId } }); @@ -668,7 +668,7 @@ export function upsertLocation(externalId, goDataLocation, callback) { if (response.data.length > 1) { console.log( response.data.length, - 'locations found; aborting upsert.' + 'locations found; aborting upsert.', ); return response; } else if (response.data.length === 1) { @@ -827,7 +827,7 @@ export function upsertReferenceData(externalId, goDataReferenceData, callback) { if (response.data.length > 1) { console.log( response.data.length, - 'reference data found; aborting upsert.' + 'reference data found; aborting upsert.', ); return response; } else if (response.data.length === 1) { @@ -883,16 +883,17 @@ export { axios }; // What functions do you want from the common adaptor? export { - combine, - fn, - fnIf, alterState, + combine, dataPath, dataValue, each, field, fields, + fn, + fnIf, lastReferenceValue, + log, merge, sourceValue, } from '@openfn/language-common'; diff --git a/packages/googledrive/ast.json b/packages/googledrive/ast.json index 61e96e2cfb..59f1646532 100644 --- a/packages/googledrive/ast.json +++ b/packages/googledrive/ast.json @@ -1040,6 +1040,55 @@ }, "valid": false }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "as", "params": [ diff --git a/packages/googledrive/src/Adaptor.js b/packages/googledrive/src/Adaptor.js index 233840ad33..19a326aad8 100644 --- a/packages/googledrive/src/Adaptor.js +++ b/packages/googledrive/src/Adaptor.js @@ -238,23 +238,24 @@ export function update(fileId, content) { } export { + alterState, + arrayToString, as, - fn, - fnIf, - util, - each, - field, - merge, chunk, - fields, - cursor, combine, - dateFns, - parseCsv, + cursor, dataPath, dataValue, - alterState, - sourceValue, - arrayToString, + dateFns, + each, + field, + fields, + fn, + fnIf, lastReferenceValue, + log, + merge, + parseCsv, + sourceValue, + util, } from '@openfn/language-common'; diff --git a/packages/googlehealthcare/ast.json b/packages/googlehealthcare/ast.json index 54f122e32d..f27791bac5 100644 --- a/packages/googlehealthcare/ast.json +++ b/packages/googlehealthcare/ast.json @@ -634,6 +634,55 @@ ] }, "valid": true + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/googlehealthcare/src/Adaptor.js b/packages/googlehealthcare/src/Adaptor.js index 2f8c34ab6d..ddb34e9758 100644 --- a/packages/googlehealthcare/src/Adaptor.js +++ b/packages/googlehealthcare/src/Adaptor.js @@ -158,6 +158,7 @@ export { fn, fnIf, lastReferenceValue, + log, merge, sourceValue, } from '@openfn/language-common'; diff --git a/packages/googlesheets/ast.json b/packages/googlesheets/ast.json index 9d269ab4d1..26ba70e92b 100644 --- a/packages/googlesheets/ast.json +++ b/packages/googlesheets/ast.json @@ -870,6 +870,55 @@ ] }, "valid": false + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/googlesheets/src/Adaptor.js b/packages/googlesheets/src/Adaptor.js index 9a17e0cb4f..5efe55924f 100644 --- a/packages/googlesheets/src/Adaptor.js +++ b/packages/googlesheets/src/Adaptor.js @@ -245,6 +245,7 @@ export { fn, fnIf, lastReferenceValue, + log, merge, sourceValue, } from '@openfn/language-common'; diff --git a/packages/hive/ast.json b/packages/hive/ast.json index 763390ae8c..485aab203e 100644 --- a/packages/hive/ast.json +++ b/packages/hive/ast.json @@ -669,6 +669,55 @@ ] }, "valid": true + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/hive/src/Adaptor.js b/packages/hive/src/Adaptor.js index e017812846..3762a0f3bf 100644 --- a/packages/hive/src/Adaptor.js +++ b/packages/hive/src/Adaptor.js @@ -132,8 +132,9 @@ export { fields, fn, fnIf, - parseCsv, lastReferenceValue, + log, merge, + parseCsv, sourceValue, } from '@openfn/language-common'; diff --git a/packages/http/ast.json b/packages/http/ast.json index 31ea46e893..c383e78b5c 100644 --- a/packages/http/ast.json +++ b/packages/http/ast.json @@ -1556,6 +1556,55 @@ }, "valid": false }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "as", "params": [ diff --git a/packages/http/src/Adaptor.js b/packages/http/src/Adaptor.js index 6555886c4e..1806f55e8c 100644 --- a/packages/http/src/Adaptor.js +++ b/packages/http/src/Adaptor.js @@ -209,6 +209,7 @@ export { group, humanProper, lastReferenceValue, + log, map, merge, parseCsv, diff --git a/packages/hubtel/ast.json b/packages/hubtel/ast.json index 19cbfbd30f..2dd276f8d5 100644 --- a/packages/hubtel/ast.json +++ b/packages/hubtel/ast.json @@ -698,6 +698,55 @@ ] }, "valid": false + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/hubtel/src/Adaptor.js b/packages/hubtel/src/Adaptor.js index 128f716fe7..02b4291ac7 100644 --- a/packages/hubtel/src/Adaptor.js +++ b/packages/hubtel/src/Adaptor.js @@ -45,7 +45,7 @@ export function request(method, path, body, options = {}) { { body: resolvedData, ...resolvedoptions, - } + }, ); return util.prepareNextState(state, response); @@ -77,15 +77,16 @@ export function request(method, path, body, options = {}) { export { combine, + cursor, dataPath, dataValue, dateFns, - cursor, each, field, fields, fn, lastReferenceValue, + log, merge, sourceValue, } from '@openfn/language-common'; diff --git a/packages/ibipimo/ast.json b/packages/ibipimo/ast.json index 8847e155ff..a1952b77e9 100644 --- a/packages/ibipimo/ast.json +++ b/packages/ibipimo/ast.json @@ -1151,6 +1151,55 @@ }, "valid": false }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "as", "params": [ diff --git a/packages/ibipimo/src/Adaptor.js b/packages/ibipimo/src/Adaptor.js index 2418e59953..0577e98f6d 100644 --- a/packages/ibipimo/src/Adaptor.js +++ b/packages/ibipimo/src/Adaptor.js @@ -243,6 +243,7 @@ export { fnIf, group, lastReferenceValue, + log, map, merge, scrubEmojis, diff --git a/packages/ihris/ast.json b/packages/ihris/ast.json index 61b1598158..e4878da674 100644 --- a/packages/ihris/ast.json +++ b/packages/ihris/ast.json @@ -747,6 +747,55 @@ }, "valid": false }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "as", "params": [ diff --git a/packages/ihris/src/Adaptor.js b/packages/ihris/src/Adaptor.js index 0c98c69fc5..10a0e79789 100644 --- a/packages/ihris/src/Adaptor.js +++ b/packages/ihris/src/Adaptor.js @@ -14,6 +14,7 @@ export { fnIf, group, lastReferenceValue, + log, map, merge, scrubEmojis, diff --git a/packages/inform/ast.json b/packages/inform/ast.json index e6c0b7858b..f0b5c46747 100644 --- a/packages/inform/ast.json +++ b/packages/inform/ast.json @@ -1103,6 +1103,55 @@ }, "valid": false }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "as", "params": [ diff --git a/packages/inform/src/Adaptor.js b/packages/inform/src/Adaptor.js index 1d2406788c..961bc49519 100644 --- a/packages/inform/src/Adaptor.js +++ b/packages/inform/src/Adaptor.js @@ -235,6 +235,7 @@ export function downloadAttachment(attachmentId, options = {}) { } export { + as, combine, cursor, dataPath, @@ -247,9 +248,9 @@ export { fnIf, group, lastReferenceValue, + log, merge, scrubEmojis, sourceValue, util, - as, } from '@openfn/language-common'; diff --git a/packages/intuit/ast.json b/packages/intuit/ast.json index 540b4e3653..70624756ac 100644 --- a/packages/intuit/ast.json +++ b/packages/intuit/ast.json @@ -563,6 +563,55 @@ ] }, "valid": false + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/intuit/src/Adaptor.js b/packages/intuit/src/Adaptor.js index 0e7ff9cbd6..933f6cc6ac 100644 --- a/packages/intuit/src/Adaptor.js +++ b/packages/intuit/src/Adaptor.js @@ -1,16 +1,16 @@ - // More functions can be added here as needed export { combine, + cursor, dataPath, dataValue, dateFns, - cursor, each, field, fields, fn, lastReferenceValue, + log, merge, sourceValue, } from '@openfn/language-common'; diff --git a/packages/khanacademy/ast.json b/packages/khanacademy/ast.json index f5abc45050..46f6a4607c 100644 --- a/packages/khanacademy/ast.json +++ b/packages/khanacademy/ast.json @@ -511,6 +511,55 @@ ] }, "valid": true + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/khanacademy/src/Adaptor.js b/packages/khanacademy/src/Adaptor.js index 8cd7b606f1..00f91a2aa0 100644 --- a/packages/khanacademy/src/Adaptor.js +++ b/packages/khanacademy/src/Adaptor.js @@ -43,13 +43,13 @@ export function fetch(params) { const { email, password, consumerKey, secretKey } = state.configuration; const [resolvedParams] = expandReferences(state, params); - const {getEndpoint, queryParams, postUrl} = resolvedParams; + const { getEndpoint, queryParams, postUrl } = resolvedParams; const query = qs.stringify(queryParams); const getUrl = resolveUrl( 'https://www.khanacademy.org/api/v1' + '/', - getEndpoint + '?' + query + getEndpoint + '?' + query, ); console.log('Fetching data from URL: ' + getUrl); @@ -79,7 +79,7 @@ export function fetch(params) { console.log('Token request successful.'); resolve(qs.parse(body)); } - } + }, ); }) @@ -114,7 +114,7 @@ export function fetch(params) { console.log('Token auhorization successful.'); resolve(auth); } - } + }, ); }); }) @@ -144,7 +144,7 @@ export function fetch(params) { console.log('Token exchange successful.'); resolve(qs.parse(body)); } - } + }, ); }); }) @@ -175,7 +175,7 @@ export function fetch(params) { console.log(body); resolve(body); } - } + }, ); }); }) @@ -197,7 +197,7 @@ export function fetch(params) { console.log('POST succeeded.'); resolve(body); } - } + }, ); }); }) @@ -206,15 +206,16 @@ export function fetch(params) { } export { - combine, - fn, - fnIf, - field, - sourceValue, - fields, alterState, - merge, + combine, dataPath, dataValue, + field, + fields, + fn, + fnIf, lastReferenceValue, + log, + merge, + sourceValue, } from '@openfn/language-common'; diff --git a/packages/kobotoolbox/ast.json b/packages/kobotoolbox/ast.json index d70b5a9a50..e487ab21bb 100644 --- a/packages/kobotoolbox/ast.json +++ b/packages/kobotoolbox/ast.json @@ -923,6 +923,55 @@ }, "valid": false }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "as", "params": [ diff --git a/packages/kobotoolbox/src/Adaptor.js b/packages/kobotoolbox/src/Adaptor.js index dee446cfb5..c4c6f561a1 100644 --- a/packages/kobotoolbox/src/Adaptor.js +++ b/packages/kobotoolbox/src/Adaptor.js @@ -147,6 +147,7 @@ export { fnIf, group, lastReferenceValue, + log, map, merge, sourceValue, diff --git a/packages/lamisplus/ast.json b/packages/lamisplus/ast.json index 3886983c94..8a28edf5fc 100644 --- a/packages/lamisplus/ast.json +++ b/packages/lamisplus/ast.json @@ -795,6 +795,55 @@ }, "valid": false }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "as", "params": [ diff --git a/packages/lamisplus/src/Adaptor.js b/packages/lamisplus/src/Adaptor.js index 5e0dfb50d1..e49ed1ae8c 100644 --- a/packages/lamisplus/src/Adaptor.js +++ b/packages/lamisplus/src/Adaptor.js @@ -99,6 +99,7 @@ export { fnIf, group, lastReferenceValue, + log, map, merge, scrubEmojis, diff --git a/packages/magpi/ast.json b/packages/magpi/ast.json index 203de1c7a4..c81cf428cf 100644 --- a/packages/magpi/ast.json +++ b/packages/magpi/ast.json @@ -617,6 +617,55 @@ ] }, "valid": true + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/magpi/src/Adaptor.js b/packages/magpi/src/Adaptor.js index cec2a1df58..847764277d 100644 --- a/packages/magpi/src/Adaptor.js +++ b/packages/magpi/src/Adaptor.js @@ -100,18 +100,18 @@ export function fetchSurveyData(params) { } console.log( - `Converted ${submissions.length} submission(s) to JSON:` + `Converted ${submissions.length} submission(s) to JSON:`, ); // console.log(submissions); resolve(submissions); } else { console.log( - 'There is no survey data matching the current parameters.' + 'There is no survey data matching the current parameters.', ); resolve([]); } } - } + }, ); }) .then(submissions => { @@ -132,7 +132,7 @@ export function fetchSurveyData(params) { } else { console.log('POST succeeded.'); } - } + }, ); }); return submissions; @@ -142,7 +142,7 @@ export function fetchSurveyData(params) { // TODO: if Magpi API does not return in date order, find oldest... state.lastSubmissionDate = submissions[0].LastSubmissionDate; console.log( - `Set \"lastSubmissionDate\" for next run to: ${submissions[0].LastSubmissionDate}` + `Set \"lastSubmissionDate\" for next run to: ${submissions[0].LastSubmissionDate}`, ); } // Set the lastSubmissionDate for the next time the job runs. @@ -183,16 +183,17 @@ export function submitRecord(jsonData) { } export { - combine, - fn, - fnIf, alterState, - field, - fields, - sourceValue, - each, - merge, + combine, dataPath, dataValue, + each, + field, + fields, + fn, + fnIf, lastReferenceValue, + log, + merge, + sourceValue, } from '@openfn/language-common'; diff --git a/packages/mailchimp/ast.json b/packages/mailchimp/ast.json index 89129d30dd..c9a853f1b4 100644 --- a/packages/mailchimp/ast.json +++ b/packages/mailchimp/ast.json @@ -1450,6 +1450,55 @@ ] }, "valid": true + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/mailchimp/src/Adaptor.js b/packages/mailchimp/src/Adaptor.js index fc17727d1f..1b58d681e4 100644 --- a/packages/mailchimp/src/Adaptor.js +++ b/packages/mailchimp/src/Adaptor.js @@ -462,17 +462,18 @@ export { axios, md5 }; // What functions do you want from the common adaptor? export { - combine, - fn, - fnIf, alterState, + chunk, + combine, dataPath, dataValue, each, field, fields, + fn, + fnIf, lastReferenceValue, + log, merge, - chunk, sourceValue, } from '@openfn/language-common'; diff --git a/packages/mailgun/ast.json b/packages/mailgun/ast.json index d95d0c5789..a15716aa6a 100644 --- a/packages/mailgun/ast.json +++ b/packages/mailgun/ast.json @@ -570,6 +570,55 @@ ] }, "valid": true + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/mailgun/src/Adaptor.js b/packages/mailgun/src/Adaptor.js index 81b92da141..e29ea8c166 100644 --- a/packages/mailgun/src/Adaptor.js +++ b/packages/mailgun/src/Adaptor.js @@ -44,7 +44,7 @@ export function execute(...operations) { return commonExecute( setupClient, ...operations, - teardownClient + teardownClient, )({ ...initialState, ...state }); }; } @@ -113,17 +113,18 @@ export function send(params) { } export { - combine, - fn, - fnIf, - field, alterState, - fields, - sourceValue, - merge, - each, + beta, + combine, dataPath, dataValue, + each, + field, + fields, + fn, + fnIf, lastReferenceValue, - beta, + log, + merge, + sourceValue, } from '@openfn/language-common'; diff --git a/packages/maximo/ast.json b/packages/maximo/ast.json index acd96b8ca8..efbdb48fe6 100644 --- a/packages/maximo/ast.json +++ b/packages/maximo/ast.json @@ -662,6 +662,55 @@ ] }, "valid": true + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/maximo/src/Adaptor.js b/packages/maximo/src/Adaptor.js index 0a39a2aa11..55d0fd70a3 100644 --- a/packages/maximo/src/Adaptor.js +++ b/packages/maximo/src/Adaptor.js @@ -98,10 +98,10 @@ export function fetch(params) { console.log('POST succeeded.'); resolve(getResponseBody); } - } + }, ); } - } + }, ); }) .then(response => { @@ -168,7 +168,7 @@ export function create(params) { console.log('POST succeeded.'); resolve(body); } - } + }, ); }).then(data => { const nextState = { ...state, response: { body: data } }; @@ -236,7 +236,7 @@ export function update(params) { console.log('Update succeeded.'); resolve(body); } - } + }, ); }).then(data => { const nextState = { ...state, response: { body: data } }; @@ -304,7 +304,7 @@ export function update75(params) { console.log('Update succeeded.'); resolve(body); } - } + }, ); }).then(data => { const nextState = { ...state, response: { body: data } }; @@ -314,16 +314,17 @@ export function update75(params) { } export { + alterState, combine, + dataPath, + dataValue, + each, field, fields, - sourceValue, fn, fnIf, - alterState, - each, - merge, - dataPath, - dataValue, lastReferenceValue, + log, + merge, + sourceValue, } from '@openfn/language-common'; diff --git a/packages/medicmobile/ast.json b/packages/medicmobile/ast.json index fe422f95e3..1d79bf7558 100644 --- a/packages/medicmobile/ast.json +++ b/packages/medicmobile/ast.json @@ -690,6 +690,55 @@ ] }, "valid": true + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/medicmobile/src/Adaptor.js b/packages/medicmobile/src/Adaptor.js index aa04ed416d..d2e977ca89 100644 --- a/packages/medicmobile/src/Adaptor.js +++ b/packages/medicmobile/src/Adaptor.js @@ -61,7 +61,7 @@ export function fetchSubmissions(formId, params, postUrl) { json: submissions[i], }); console.log( - `Posted submission ${submissions[i].fields.meta.instanceID} ✓` + `Posted submission ${submissions[i].fields.meta.instanceID} ✓`, ); } return state; @@ -93,7 +93,7 @@ export function changesApi(params, callback) { if (error) return error; console.log(response); return new Error( - `Server responded with ${response.statusCode}:\n ${response.body}` + `Server responded with ${response.statusCode}:\n ${response.body}`, ); } @@ -142,7 +142,7 @@ export function changesApi(params, callback) { console.log('Request Success ✓'); resolve(body); } - } + }, ) .auth(username, password); }).then(response => { @@ -198,16 +198,17 @@ export function pickFormData(formId) { } export { - combine, - fn, - fnIf, alterState, + combine, dataPath, dataValue, each, field, fields, + fn, + fnIf, lastReferenceValue, + log, merge, sourceValue, } from '@openfn/language-common'; diff --git a/packages/memento/ast.json b/packages/memento/ast.json index e39e0f2569..362a01dba3 100644 --- a/packages/memento/ast.json +++ b/packages/memento/ast.json @@ -1131,6 +1131,55 @@ }, "valid": true }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "as", "params": [ diff --git a/packages/memento/src/Adaptor.js b/packages/memento/src/Adaptor.js index f6c0c1b6fa..41f837267b 100644 --- a/packages/memento/src/Adaptor.js +++ b/packages/memento/src/Adaptor.js @@ -232,6 +232,7 @@ export { fnIf, group, lastReferenceValue, + log, map, merge, scrubEmojis, diff --git a/packages/minio/ast.json b/packages/minio/ast.json index 80739bb073..222b5cf597 100644 --- a/packages/minio/ast.json +++ b/packages/minio/ast.json @@ -1383,6 +1383,55 @@ }, "valid": false }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "as", "params": [ diff --git a/packages/minio/src/Adaptor.js b/packages/minio/src/Adaptor.js index 13f9892b2c..d8109e9e5c 100644 --- a/packages/minio/src/Adaptor.js +++ b/packages/minio/src/Adaptor.js @@ -363,7 +363,6 @@ export { cursor, dataPath, dataValue, - parseCsv, dateFns, each, field, @@ -372,8 +371,10 @@ export { fnIf, group, lastReferenceValue, + log, map, merge, + parseCsv, scrubEmojis, sourceValue, util, diff --git a/packages/mogli/ast.json b/packages/mogli/ast.json index 474870cf75..dd3aa8e8ea 100644 --- a/packages/mogli/ast.json +++ b/packages/mogli/ast.json @@ -825,6 +825,55 @@ ] }, "valid": true + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/mogli/src/Adaptor.js b/packages/mogli/src/Adaptor.js index 740741c4a0..3a1b08f666 100644 --- a/packages/mogli/src/Adaptor.js +++ b/packages/mogli/src/Adaptor.js @@ -199,23 +199,24 @@ function expandReferences(state, attrs) { export { lookup, relationship } from './sourceHelpers.js'; export { - each, - join, - fields, - field, - source, - sourceValue, + alterState, + arrayToString, + beta, combine, - merge, dataPath, dataValue, - referencePath, - lastReferenceValue, - index, - beta, - toArray, - arrayToString, - alterState, + each, + field, + fields, fn, fnIf, + index, + join, + lastReferenceValue, + log, + merge, + referencePath, + source, + sourceValue, + toArray, } from '@openfn/language-common'; diff --git a/packages/mojatax/ast.json b/packages/mojatax/ast.json index e1121dfa29..e3d051c22f 100644 --- a/packages/mojatax/ast.json +++ b/packages/mojatax/ast.json @@ -736,6 +736,55 @@ ] }, "valid": false + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/mojatax/src/Adaptor.js b/packages/mojatax/src/Adaptor.js index 28c6f3820b..a9644f8f70 100644 --- a/packages/mojatax/src/Adaptor.js +++ b/packages/mojatax/src/Adaptor.js @@ -45,7 +45,7 @@ export function execute(...operations) { return state => { return commonExecute( util.authorize, - ...operations + ...operations, )({ ...initialState, ...state, @@ -103,7 +103,7 @@ export function request(method, path, body, options = {}, callback = s => s) { { data: resolvedData, ...resolvedoptions, - } + }, ); return util.prepareNextState(state, response, callback); @@ -112,15 +112,16 @@ export function request(method, path, body, options = {}, callback = s => s) { export { combine, + cursor, dataPath, dataValue, dateFns, - cursor, each, field, fields, fn, lastReferenceValue, + log, merge, sourceValue, } from '@openfn/language-common'; diff --git a/packages/mongodb/ast.json b/packages/mongodb/ast.json index 88472a52e9..42e2507b54 100644 --- a/packages/mongodb/ast.json +++ b/packages/mongodb/ast.json @@ -660,6 +660,55 @@ ] }, "valid": true + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/mongodb/src/Adaptor.js b/packages/mongodb/src/Adaptor.js index 2f373e39a3..6aae132028 100644 --- a/packages/mongodb/src/Adaptor.js +++ b/packages/mongodb/src/Adaptor.js @@ -29,7 +29,7 @@ export function execute(...operations) { return commonExecute( connect, ...operations, - disconnect + disconnect, )({ ...initialState, ...state }); }; } @@ -43,17 +43,19 @@ export function execute(...operations) { * @returns {State} */ function connect(state) { - const { clusterHostname, username, password, protocol = "mongodb+srv", options = { "retryWrites": true, "w": "majority" } } = state.configuration; - + const { + clusterHostname, + username, + password, + protocol = 'mongodb+srv', + options = { retryWrites: true, w: 'majority' }, + } = state.configuration; + const uri = `${protocol}://${encodeURIComponent( - username - )}:${encodeURIComponent( - password - )}@${clusterHostname}/test${ - Object.keys(options).length ? "?" : "" - }${ - encodeURIComponent(new URLSearchParams(options).toString()) - }`; + username, + )}:${encodeURIComponent(password)}@${clusterHostname}/test${ + Object.keys(options).length ? '?' : '' + }${encodeURIComponent(new URLSearchParams(options).toString())}`; const client = new MongoClient(uri, { useNewUrlParser: true }); @@ -114,7 +116,7 @@ export function insertDocuments(params) { state.client.close(); } else { console.log( - `Inserted ${documents.length} documents into the collection` + `Inserted ${documents.length} documents into the collection`, ); console.log(JSON.stringify(result, null, 2)); const nextState = composeNextState(state, result); @@ -213,15 +215,15 @@ export function updateDocument(params) { } else { console.log( `Updated a document matching ${JSON.stringify( - filter - )} in the collection.` + filter, + )} in the collection.`, ); console.log(JSON.stringify(result, null, 2)); const nextState = composeNextState(state, result); if (callback) resolve(callback(nextState)); resolve(nextState); } - } + }, ); }); } catch (error) { @@ -232,16 +234,17 @@ export function updateDocument(params) { } export { + alterState, combine, + dataPath, + dataValue, + each, field, fields, - sourceValue, fn, fnIf, - alterState, - each, - merge, - dataPath, - dataValue, lastReferenceValue, + log, + merge, + sourceValue, } from '@openfn/language-common'; diff --git a/packages/monnify/ast.json b/packages/monnify/ast.json index 35d215b3b5..0c23cf6613 100644 --- a/packages/monnify/ast.json +++ b/packages/monnify/ast.json @@ -1005,6 +1005,55 @@ }, "valid": false }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "as", "params": [ diff --git a/packages/monnify/src/Adaptor.js b/packages/monnify/src/Adaptor.js index d2f445cb08..75c2eda34c 100644 --- a/packages/monnify/src/Adaptor.js +++ b/packages/monnify/src/Adaptor.js @@ -182,6 +182,7 @@ export { fnIf, group, lastReferenceValue, + log, map, merge, scrubEmojis, diff --git a/packages/motherduck/ast.json b/packages/motherduck/ast.json index 9e00fdb417..8e68d36af3 100644 --- a/packages/motherduck/ast.json +++ b/packages/motherduck/ast.json @@ -988,6 +988,55 @@ }, "valid": false }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "as", "params": [ diff --git a/packages/motherduck/src/Adaptor.js b/packages/motherduck/src/Adaptor.js index 991e5e0ed9..0cc673e096 100644 --- a/packages/motherduck/src/Adaptor.js +++ b/packages/motherduck/src/Adaptor.js @@ -269,6 +269,7 @@ export function insert(table, records, options = {}) { export { alterState, arrayToString, + as, combine, cursor, dataPath, @@ -281,10 +282,10 @@ export { fnIf, group, lastReferenceValue, + log, map, merge, sourceValue, - as, } from '@openfn/language-common'; export { util }; diff --git a/packages/mpesa/ast.json b/packages/mpesa/ast.json index 4903230b92..264fd5cdf4 100644 --- a/packages/mpesa/ast.json +++ b/packages/mpesa/ast.json @@ -303,7 +303,7 @@ "tags": [ { "title": "example", - "description": "request(\"POST\", \"/mpesa/c2b/v1/registerurl\", \n {\n \"ShortCode\": 600426,\n \"ResponseType\": \"Completed\",\n \"ConfirmationURL\": \"https://mydomain.com/confirmation\",\n \"ValidationURL\": \"https://mydomain.com/validation\"\n });", + "description": "request(\"POST\", \"/mpesa/c2b/v1/registerurl\",\n {\n \"ShortCode\": 600426,\n \"ResponseType\": \"Completed\",\n \"ConfirmationURL\": \"https://mydomain.com/confirmation\",\n \"ValidationURL\": \"https://mydomain.com/validation\"\n });", "caption": "Register a URL to receive payment notifications" }, { @@ -933,6 +933,55 @@ }, "valid": false }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "as", "params": [ diff --git a/packages/mpesa/src/Adaptor.js b/packages/mpesa/src/Adaptor.js index 8b82a3a43e..d81291db18 100644 --- a/packages/mpesa/src/Adaptor.js +++ b/packages/mpesa/src/Adaptor.js @@ -19,7 +19,6 @@ import * as util from './Utils.js'; * @property {object} headers - An object of headers to append to the request. */ - /** * STKPush request data object * @typedef {Object} STKPushObject @@ -33,7 +32,6 @@ import * as util from './Utils.js'; * @property {string} TransactionDesc - Any additional information/comment that can be sent along with the request from you system. */ - /** * Initiate a STK pin prompt to a Safaricom mobile number. * @function @@ -55,10 +53,9 @@ import * as util from './Utils.js'; */ export function stkPush(data, options = {}) { return async state => { - const { short_code, pass_key } = state.configuration; - const timestamp = util.getTimestamp() + const timestamp = util.getTimestamp(); const password = short_code + pass_key + timestamp; @@ -72,17 +69,21 @@ export function stkPush(data, options = {}) { console.log('Initiating STK Push request...'); - const response = await util.request(state, 'POST', '/mpesa/stkpush/v1/processrequest', { ...options, body }) - return util.prepareNextState(state, response) - } + const response = await util.request( + state, + 'POST', + '/mpesa/stkpush/v1/processrequest', + { ...options, body }, + ); + return util.prepareNextState(state, response); + }; } - /** * Check transaction status data object. * @typedef {Object} TransactionStatusObject * @public - * @property {string} Initiator - The name of the initiator initiating the request. + * @property {string} Initiator - The name of the initiator initiating the request. * @property {string} SecurityCredential - Encrypted credential of the user getting transaction status. * @property {string} TransactionID - Unique identifier to identify a transaction on Mpesa. * @property {number} PartyA - Organization/MSISDN receiving the transaction. @@ -93,7 +94,6 @@ export function stkPush(data, options = {}) { * @property {string} Occassion - Optional parameter. */ - /** * Check the status of the transaction * @function @@ -117,7 +117,6 @@ export function stkPush(data, options = {}) { */ export function checkTransactionStatus(data, options = {}) { return async state => { - const { short_code, pass_key } = state.configuration; const timestamp = util.getTimestamp(); @@ -129,14 +128,19 @@ export function checkTransactionStatus(data, options = {}) { Password: Buffer.from(password).toString('base64'), Timestamp: timestamp, CommandID: 'TransactionStatusQuery', - ...data + ...data, }; console.log('Initiating check transaction request...'); - const response = await util.request(state, 'POST', '/mpesa/transactionstatus/v1/query', { ...options, body }); - return util.prepareNextState(state, response) - } + const response = await util.request( + state, + 'POST', + '/mpesa/transactionstatus/v1/query', + { ...options, body }, + ); + return util.prepareNextState(state, response); + }; } /** @@ -146,7 +150,7 @@ export function checkTransactionStatus(data, options = {}) { * @property {numeric} ShortCode - Usually, a unique number is tagged to an M-PESA pay bill/till number of the organization. * @property {string} ResponseType - This parameter specifies what is to happen if for any reason the validation URL is not reachable. Sample values: 'Canceled', 'Completed' * @property {URL} ConfirmationURL - This is the URL that receives the confirmation request from API upon payment completion. - * @property {URL} ValidationURL - This is the URL that receives the validation request from the API upon payment submission. + * @property {URL} ValidationURL - This is the URL that receives the validation request from the API upon payment submission. */ /** @@ -167,15 +171,18 @@ export function checkTransactionStatus(data, options = {}) { */ export function registerUrl(data, options) { return async state => { - console.log('Initiating register URL request...'); - const response = await util.request(state, 'POST', '/mpesa/c2b/v1/registerurl', { ...options, body: { ...data } }); - return util.prepareNextState(state, response) - } + const response = await util.request( + state, + 'POST', + '/mpesa/c2b/v1/registerurl', + { ...options, body: { ...data } }, + ); + return util.prepareNextState(state, response); + }; } - /** * Remit tax parameter definition * @typedef {Object} RemitTaxObject @@ -212,20 +219,24 @@ export function registerUrl(data, options) { */ export function remitTax(data, options = {}) { return async state => { - const body = { SenderIdentifierType: '4', RecieverIdentifierType: '4', PartyB: 572572, CommandID: 'PayTaxToKRA', ...data, - } + }; console.log('Initiating remit tax request...'); - const response = await util.request(state, 'POST', '/mpesa/b2b/v1/remittax', { ...options, body }); - return util.prepareNextState(state, response) - } + const response = await util.request( + state, + 'POST', + '/mpesa/b2b/v1/remittax', + { ...options, body }, + ); + return util.prepareNextState(state, response); + }; } /** @@ -242,7 +253,6 @@ export function remitTax(data, options = {}) { * @property {URL} ResultURL - A URL that will be used to send transaction results after processing. */ - /** * Pay for goods and services directly from your business account to a till number, merchant store number or Merchant HO * @function @@ -267,25 +277,29 @@ export function remitTax(data, options = {}) { */ export function buyGoods(data, options = {}) { return async state => { - const body = { CommandID: 'BusinessBuyGoods', SenderIdentifierType: '4', RecieverIdentifierType: '4', ...data, - } + }; console.log('Initiating buy goods request...'); - const response = await util.request(state, 'POST', '/mpesa/b2b/v1/paymentrequest', { ...options, body }); - return util.prepareNextState(state, response) - } + const response = await util.request( + state, + 'POST', + '/mpesa/b2b/v1/paymentrequest', + { ...options, body }, + ); + return util.prepareNextState(state, response); + }; } /** * Make a general HTTP request * @example Register a URL to receive payment notifications - * request("POST", "/mpesa/c2b/v1/registerurl", + * request("POST", "/mpesa/c2b/v1/registerurl", * { * "ShortCode": 600426, * "ResponseType": "Completed", @@ -306,35 +320,30 @@ export function request(method, path, body, options = {}) { const [resolvedMethod, resolvedPath, resolvedBody, resolvedoptions] = expandReferences(state, method, path, body, options); - console.log(`Initiating ${method} request to: ${resolvedPath}`); - const response = await util.request( - state, - resolvedMethod, - resolvedPath, - { - body: resolvedBody, - ...resolvedoptions, - } - ); + const response = await util.request(state, resolvedMethod, resolvedPath, { + body: resolvedBody, + ...resolvedoptions, + }); return util.prepareNextState(state, response); }; } export { + as, combine, + cursor, dataPath, dataValue, dateFns, - cursor, each, field, fields, fn, lastReferenceValue, + log, merge, sourceValue, - as } from '@openfn/language-common'; diff --git a/packages/msgraph/ast.json b/packages/msgraph/ast.json index d41f64b9b1..e60526f006 100644 --- a/packages/msgraph/ast.json +++ b/packages/msgraph/ast.json @@ -1148,6 +1148,55 @@ }, "valid": false }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "as", "params": [ diff --git a/packages/msgraph/src/Adaptor.js b/packages/msgraph/src/Adaptor.js index e0b0df9e0d..ebacde7ab5 100644 --- a/packages/msgraph/src/Adaptor.js +++ b/packages/msgraph/src/Adaptor.js @@ -72,7 +72,7 @@ export function create(resource, data, callback) { const [resolvedResource, resolvedData] = expandReferences( state, resource, - data + data, ); const { accessToken, apiVersion } = state.configuration; @@ -86,7 +86,7 @@ export function create(resource, data, callback) { }; return request(url, options).then(response => - handleResponse(response, state, callback) + handleResponse(response, state, callback), ); }; } @@ -110,7 +110,7 @@ export function get(path, query, callback = false) { const url = setUrl(resolvedPath, apiVersion); return request(url, { query: resolvedQuery, accessToken }).then(response => - handleResponse(response, state, callback) + handleResponse(response, state, callback), ); }; } @@ -138,7 +138,7 @@ export function getDrive(specifier, name = 'default', callback = s => s) { const [resolvedSpecifier, resolvedName] = expandReferences( state, specifier, - name + name, ); const { id, owner = 'drive' } = resolvedSpecifier; @@ -182,7 +182,7 @@ export function getFolder(pathOrId, options, callback = s => s) { const [resolvedPathOrId, resolvedOptions] = expandReferences( state, pathOrId, - options + options, ); const { driveName, metadata } = { ...defaultOptions, ...resolvedOptions }; @@ -195,7 +195,7 @@ export function getFolder(pathOrId, options, callback = s => s) { if (resolvedPathOrId.startsWith('/')) { resource = `drives/${driveId}/root:/${encodeURIComponent( - resolvedPathOrId + resolvedPathOrId, )}`; } else { resource = `drives/${driveId}/items/${resolvedPathOrId}`; @@ -208,7 +208,7 @@ export function getFolder(pathOrId, options, callback = s => s) { const url = setUrl(resource, apiVersion); return request(url, { accessToken }).then(response => - handleResponse(response, state, callback) + handleResponse(response, state, callback), ); }; } @@ -237,7 +237,7 @@ export function getFile(pathOrId, options, callback = s => s) { const [resolvedPathOrId, resolvedOptions] = expandReferences( state, pathOrId, - options + options, ); const { driveName, metadata } = { @@ -253,7 +253,7 @@ export function getFile(pathOrId, options, callback = s => s) { if (resolvedPathOrId.startsWith('/')) { resource = `drives/${driveId}/root:/${encodeURIComponent( - resolvedPathOrId + resolvedPathOrId, )}`; } else { resource = `drives/${driveId}/items/${resolvedPathOrId}`; @@ -323,7 +323,7 @@ export function uploadFile(resource, data, callback) { const [resolvedResource, resolvedData] = expandReferences( state, resource, - data + data, ); const { contentType, driveId, siteId, folderId, onConflict, fileName } = { @@ -374,6 +374,7 @@ export function uploadFile(resource, data, callback) { export { request, sheetToBuffer } from './Utils.js'; export { + as, combine, cursor, dataPath, @@ -385,8 +386,8 @@ export { fn, fnIf, lastReferenceValue, + log, merge, - sourceValue, parseCsv, - as + sourceValue, } from '@openfn/language-common'; diff --git a/packages/mssql/ast.json b/packages/mssql/ast.json index 2515142dbc..3b2d92de11 100644 --- a/packages/mssql/ast.json +++ b/packages/mssql/ast.json @@ -1295,6 +1295,55 @@ }, "valid": false }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "as", "params": [ diff --git a/packages/mssql/src/Adaptor.js b/packages/mssql/src/Adaptor.js index 0b7ed7f87f..0cdbdef78b 100644 --- a/packages/mssql/src/Adaptor.js +++ b/packages/mssql/src/Adaptor.js @@ -856,7 +856,9 @@ export function modifyTable(tableName, columns, options) { export { alterState, + as, combine, + cursor, dataPath, dataValue, dateFns, @@ -866,8 +868,7 @@ export { fn, fnIf, lastReferenceValue, - cursor, + log, merge, sourceValue, - as, } from '@openfn/language-common'; diff --git a/packages/msupply/ast.json b/packages/msupply/ast.json index feb65ab030..83bafd15b6 100644 --- a/packages/msupply/ast.json +++ b/packages/msupply/ast.json @@ -948,6 +948,55 @@ ] }, "valid": false + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/msupply/src/Adaptor.js b/packages/msupply/src/Adaptor.js index a39a7bb8a2..c6c1cb0f6b 100644 --- a/packages/msupply/src/Adaptor.js +++ b/packages/msupply/src/Adaptor.js @@ -182,6 +182,7 @@ export { fnIf, group, lastReferenceValue, + log, merge, scrubEmojis, sourceValue, diff --git a/packages/mtn-momo/ast.json b/packages/mtn-momo/ast.json index 86f58bd01f..9c141b3eeb 100644 --- a/packages/mtn-momo/ast.json +++ b/packages/mtn-momo/ast.json @@ -831,6 +831,55 @@ }, "valid": false }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "as", "params": [ diff --git a/packages/mtn-momo/src/Adaptor.js b/packages/mtn-momo/src/Adaptor.js index 1e764cf459..2122688d20 100644 --- a/packages/mtn-momo/src/Adaptor.js +++ b/packages/mtn-momo/src/Adaptor.js @@ -79,6 +79,7 @@ export function request(method, path, body, options = {}) { } export { + as, combine, cursor, dataPath, @@ -91,9 +92,9 @@ export { fnIf, group, lastReferenceValue, + log, merge, scrubEmojis, sourceValue, util, - as } from '@openfn/language-common'; diff --git a/packages/mysql/ast.json b/packages/mysql/ast.json index 63a4e6dead..efe72a8b11 100644 --- a/packages/mysql/ast.json +++ b/packages/mysql/ast.json @@ -968,6 +968,55 @@ }, "valid": true }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "as", "params": [ diff --git a/packages/mysql/src/Adaptor.js b/packages/mysql/src/Adaptor.js index 885fb32c57..f0107675b4 100644 --- a/packages/mysql/src/Adaptor.js +++ b/packages/mysql/src/Adaptor.js @@ -310,21 +310,22 @@ export function upsertMany(table, data) { } export { - fn, - fnIf, - each, - merge, - field, - fields, + alterState, + arrayToString, + as, assert, - cursor, - dateFns, combine, + cursor, dataPath, dataValue, - alterState, - sourceValue, - arrayToString, + dateFns, + each, + field, + fields, + fn, + fnIf, lastReferenceValue, - as, + log, + merge, + sourceValue, } from '@openfn/language-common'; diff --git a/packages/nexmo/ast.json b/packages/nexmo/ast.json index ef16f9f12f..70965b82ad 100644 --- a/packages/nexmo/ast.json +++ b/packages/nexmo/ast.json @@ -594,6 +594,55 @@ ] }, "valid": true + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/nexmo/src/Adaptor.js b/packages/nexmo/src/Adaptor.js index 65042b960b..b42c06e50c 100644 --- a/packages/nexmo/src/Adaptor.js +++ b/packages/nexmo/src/Adaptor.js @@ -49,7 +49,7 @@ export function sendSMS(from, toNumber, message) { state, from, toNumber, - message + message, ); const nexmo = new Nexmo({ @@ -74,7 +74,7 @@ export function sendSMS(from, toNumber, message) { console.log(response); resolve(response); } - } + }, ); }).then(response => { const nextState = composeNextState(state, response); @@ -84,16 +84,17 @@ export function sendSMS(from, toNumber, message) { } export { + alterState, combine, + dataPath, + dataValue, + each, field, fields, - sourceValue, fn, fnIf, - alterState, - each, - merge, - dataPath, - dataValue, lastReferenceValue, + log, + merge, + sourceValue, } from '@openfn/language-common'; diff --git a/packages/ocl/ast.json b/packages/ocl/ast.json index 46e474029f..b982b5565c 100644 --- a/packages/ocl/ast.json +++ b/packages/ocl/ast.json @@ -703,6 +703,55 @@ ] }, "valid": true + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/ocl/src/Adaptor.js b/packages/ocl/src/Adaptor.js index 05d69359ab..aabc818d4c 100644 --- a/packages/ocl/src/Adaptor.js +++ b/packages/ocl/src/Adaptor.js @@ -73,7 +73,7 @@ export function getMappings(ownerId, repositoryId, options, callback = false) { }); return request(url, query).then(response => - handleResponse(response, state, callback) + handleResponse(response, state, callback), ); }; } @@ -112,7 +112,7 @@ export function get(path, query, callback = false) { const url = `${baseUrl}/${resolvedPath}`; return request(url, resolvedQuery).then(response => - handleResponse(response, state, callback) + handleResponse(response, state, callback), ); }; } @@ -128,6 +128,7 @@ export { field, fields, lastReferenceValue, + log, merge, sourceValue, } from '@openfn/language-common'; diff --git a/packages/odk/ast.json b/packages/odk/ast.json index bf065fd8b2..2b0c67aab1 100644 --- a/packages/odk/ast.json +++ b/packages/odk/ast.json @@ -955,6 +955,55 @@ ] }, "valid": false + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/odk/src/Adaptor.js b/packages/odk/src/Adaptor.js index e65b88797e..f2fabe64d6 100644 --- a/packages/odk/src/Adaptor.js +++ b/packages/odk/src/Adaptor.js @@ -50,7 +50,7 @@ export function getSubmissions(projectId, xmlFormId, query = {}) { 'GET', path, null, - { query: resolvedQuery } + { query: resolvedQuery }, ); responseWithoutBody['@odata.context'] = body['@odata.context']; @@ -60,7 +60,7 @@ export function getSubmissions(projectId, xmlFormId, query = {}) { ...state, response: responseWithoutBody, }, - body.value + body.value, ); }; } @@ -146,7 +146,7 @@ export function request(method, path, body, options = {}) { resolvedMethod, resolvedPath, resolvedBody, - resolvedOptions + resolvedOptions, ); return util.prepareNextState(state, response); @@ -169,16 +169,17 @@ export function execute(...operations) { export { combine, + cursor, dataPath, dataValue, dateFns, - cursor, each, field, fields, fn, fnIf, lastReferenceValue, + log, merge, sourceValue, } from '@openfn/language-common'; diff --git a/packages/odoo/ast.json b/packages/odoo/ast.json index 532f0995a5..feb38da1ce 100644 --- a/packages/odoo/ast.json +++ b/packages/odoo/ast.json @@ -958,6 +958,55 @@ ] }, "valid": true + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/odoo/src/Adaptor.js b/packages/odoo/src/Adaptor.js index 0431326aaa..c862a53c80 100644 --- a/packages/odoo/src/Adaptor.js +++ b/packages/odoo/src/Adaptor.js @@ -361,6 +361,7 @@ export { fields, fn, lastReferenceValue, + log, merge, sourceValue, } from '@openfn/language-common'; diff --git a/packages/openboxes/ast.json b/packages/openboxes/ast.json index b8b711dc74..4f9ef8b8ad 100644 --- a/packages/openboxes/ast.json +++ b/packages/openboxes/ast.json @@ -762,6 +762,55 @@ ] }, "valid": false + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/openboxes/src/Adaptor.js b/packages/openboxes/src/Adaptor.js index 4d35c03f22..0524b222e2 100644 --- a/packages/openboxes/src/Adaptor.js +++ b/packages/openboxes/src/Adaptor.js @@ -35,7 +35,7 @@ export function get(path, options) { return async state => { const response = await util.request(state, 'GET', path, options); return util.prepareNextState(state, response); - } + }; } /** @@ -64,9 +64,12 @@ export function get(path, options) { */ export function post(path, body, options) { return async state => { - const response = await util.request(state, 'POST', path, { ...options, body }); + const response = await util.request(state, 'POST', path, { + ...options, + body, + }); return util.prepareNextState(state, response); - } + }; } /** @@ -95,14 +98,18 @@ export function post(path, body, options) { */ export function request(method, path, options = {}) { return async state => { - const [resolvedMethod, resolvedPath, resolvedoptions] = expandReferences(state, method, path, options); + const [resolvedMethod, resolvedPath, resolvedoptions] = expandReferences( + state, + method, + path, + options, + ); const response = await util.request( state, resolvedMethod, resolvedPath, resolvedoptions, - ); return util.prepareNextState(state, response); @@ -111,15 +118,16 @@ export function request(method, path, options = {}) { export { combine, + cursor, dataPath, dataValue, dateFns, - cursor, each, field, fields, fn, lastReferenceValue, + log, merge, sourceValue, } from '@openfn/language-common'; diff --git a/packages/opencrvs/ast.json b/packages/opencrvs/ast.json index f56679688a..3b2abb6968 100644 --- a/packages/opencrvs/ast.json +++ b/packages/opencrvs/ast.json @@ -1154,6 +1154,55 @@ ] }, "valid": false + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/opencrvs/src/Adaptor.js b/packages/opencrvs/src/Adaptor.js index d61adfeaec..fc588e669d 100644 --- a/packages/opencrvs/src/Adaptor.js +++ b/packages/opencrvs/src/Adaptor.js @@ -388,6 +388,7 @@ export { fnIf, group, lastReferenceValue, + log, merge, scrubEmojis, sourceValue, diff --git a/packages/openelis/ast.json b/packages/openelis/ast.json index 61b1598158..e4878da674 100644 --- a/packages/openelis/ast.json +++ b/packages/openelis/ast.json @@ -747,6 +747,55 @@ }, "valid": false }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "as", "params": [ diff --git a/packages/openelis/src/Adaptor.js b/packages/openelis/src/Adaptor.js index b9a52bbf14..6bac55d588 100644 --- a/packages/openelis/src/Adaptor.js +++ b/packages/openelis/src/Adaptor.js @@ -14,6 +14,7 @@ export { fnIf, group, lastReferenceValue, + log, map, merge, scrubEmojis, diff --git a/packages/openfn/ast.json b/packages/openfn/ast.json index cdd282ff71..9759ec20e3 100644 --- a/packages/openfn/ast.json +++ b/packages/openfn/ast.json @@ -821,6 +821,55 @@ ] }, "valid": false + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/openfn/src/Adaptor.js b/packages/openfn/src/Adaptor.js index fdadcb738c..b518dfdbf3 100644 --- a/packages/openfn/src/Adaptor.js +++ b/packages/openfn/src/Adaptor.js @@ -114,18 +114,19 @@ export function post(path, data, options) { export { alterState, - cursor, - dateFns, beta, combine, + cursor, dataPath, dataValue, + dateFns, each, field, + fields, fn, fnIf, - fields, lastReferenceValue, + log, merge, sourceValue, } from '@openfn/language-common'; diff --git a/packages/openhim/ast.json b/packages/openhim/ast.json index 7006e29e73..6a59469dde 100644 --- a/packages/openhim/ast.json +++ b/packages/openhim/ast.json @@ -984,6 +984,55 @@ }, "valid": false }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "as", "params": [ diff --git a/packages/openhim/src/Adaptor.js b/packages/openhim/src/Adaptor.js index fcd41f80cf..89bc26355e 100644 --- a/packages/openhim/src/Adaptor.js +++ b/packages/openhim/src/Adaptor.js @@ -53,7 +53,7 @@ export function createEncounter(encounterData) { { body, parseAs: 'text', - } + }, ); return util.prepareNextState(state, response); @@ -105,7 +105,7 @@ export function getTransactions(options = {}) { query: { ...resolvedoptions, }, - } + }, ); return util.prepareNextState(state, response); @@ -132,7 +132,7 @@ export function getClients(clientId) { state.configuration, 'GET', resolvedClientId ? `/clients/${resolvedClientId}` : '/clients', - {} + {}, ); return util.prepareNextState(state, response); @@ -168,7 +168,7 @@ export function createClient(body) { { body: resolvedBody, parseAs: 'text', - } + }, ); return util.prepareNextState(state, response); @@ -195,7 +195,7 @@ export function getChannels(channelId) { state.configuration, 'GET', resolvedChannelId ? `/channels/${resolvedChannelId}` : '/channels', - {} + {}, ); return util.prepareNextState(state, response); @@ -244,7 +244,7 @@ export function createChannel(body) { { body: resolvedBody, parseAs: 'text', - } + }, ); return util.prepareNextState(state, response); @@ -298,7 +298,7 @@ export function getTasks(options) { taskId ? `/tasks/${taskId}` : '/tasks', { query: resolvedoptions, - } + }, ); return util.prepareNextState(state, response); @@ -337,19 +337,20 @@ export function createTask(body) { } export { + as, combine, - fnIf, + cursor, dataPath, dataValue, dateFns, - cursor, each, field, fields, fn, + fnIf, lastReferenceValue, + log, + map, merge, sourceValue, - as, - map, } from '@openfn/language-common'; diff --git a/packages/openimis/ast.json b/packages/openimis/ast.json index f77b668f0c..b8807aa6d2 100644 --- a/packages/openimis/ast.json +++ b/packages/openimis/ast.json @@ -595,6 +595,55 @@ }, "valid": true }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "as", "params": [ diff --git a/packages/openimis/src/Adaptor.js b/packages/openimis/src/Adaptor.js index 555855adf7..2f2ae872ec 100644 --- a/packages/openimis/src/Adaptor.js +++ b/packages/openimis/src/Adaptor.js @@ -21,7 +21,7 @@ export function execute(...operations) { return commonExecute( login, ...operations, - cleanupState + cleanupState, )({ ...initialState, ...state, @@ -86,7 +86,7 @@ export function getFHIR(path, params, callback = s => s) { const [resolvedPath, resolvedParams] = expandReferences( state, path, - params + params, ); const { baseUrl, auth } = state.configuration; @@ -108,6 +108,7 @@ export function getFHIR(path, params, callback = s => s) { export { alterState, combine, + as, dataPath, dataValue, dateFns, @@ -117,7 +118,7 @@ export { fn, fnIf, lastReferenceValue, + log, merge, sourceValue, - as, } from '@openfn/language-common'; diff --git a/packages/openlmis/ast.json b/packages/openlmis/ast.json index 1fc930eb81..defd3889e0 100644 --- a/packages/openlmis/ast.json +++ b/packages/openlmis/ast.json @@ -921,6 +921,55 @@ }, "valid": false }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "as", "params": [ diff --git a/packages/openlmis/src/Adaptor.js b/packages/openlmis/src/Adaptor.js index 239014f474..eb1777ff0c 100644 --- a/packages/openlmis/src/Adaptor.js +++ b/packages/openlmis/src/Adaptor.js @@ -109,7 +109,7 @@ export function request(method, path, body, options = {}, callback = s => s) { { body: resolvedBody, ...resolvedoptions, - } + }, ); return util.prepareNextState(state, response, callback); @@ -117,18 +117,19 @@ export function request(method, path, body, options = {}, callback = s => s) { } export { + as, combine, + cursor, dataPath, dataValue, dateFns, - cursor, each, field, fields, fn, fnIf, + lastReferenceValue, + log, merge, sourceValue, - lastReferenceValue, - as } from '@openfn/language-common'; diff --git a/packages/openmrs/ast.json b/packages/openmrs/ast.json index 8c1870c9f1..48cc1b3553 100644 --- a/packages/openmrs/ast.json +++ b/packages/openmrs/ast.json @@ -1057,6 +1057,55 @@ }, "valid": false }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "as", "params": [ diff --git a/packages/openmrs/src/Adaptor.js b/packages/openmrs/src/Adaptor.js index b19784b72e..59da8a146c 100644 --- a/packages/openmrs/src/Adaptor.js +++ b/packages/openmrs/src/Adaptor.js @@ -436,6 +436,7 @@ export { fn, fnIf, lastReferenceValue, + log, map, merge, sourceValue, diff --git a/packages/openspp/ast.json b/packages/openspp/ast.json index 0a9488c81f..e13fc1b006 100644 --- a/packages/openspp/ast.json +++ b/packages/openspp/ast.json @@ -1704,6 +1704,55 @@ ] }, "valid": true + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/openspp/src/Adaptor.js b/packages/openspp/src/Adaptor.js index 38eaaeda48..c714e140ab 100644 --- a/packages/openspp/src/Adaptor.js +++ b/packages/openspp/src/Adaptor.js @@ -1037,6 +1037,7 @@ export { fn, fnIf, lastReferenceValue, + log, merge, sourceValue, } from '@openfn/language-common'; diff --git a/packages/pdfshift/ast.json b/packages/pdfshift/ast.json index 0e40538ffd..a8c8f2b91a 100644 --- a/packages/pdfshift/ast.json +++ b/packages/pdfshift/ast.json @@ -955,6 +955,55 @@ }, "valid": true }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "as", "params": [ diff --git a/packages/pdfshift/src/Adaptor.js b/packages/pdfshift/src/Adaptor.js index 5d1c11d120..2c105b9aef 100644 --- a/packages/pdfshift/src/Adaptor.js +++ b/packages/pdfshift/src/Adaptor.js @@ -164,6 +164,7 @@ export { fnIf, group, lastReferenceValue, + log, map, merge, scrubEmojis, diff --git a/packages/pesapal/ast.json b/packages/pesapal/ast.json index 3d455a562a..4f97da2a7c 100644 --- a/packages/pesapal/ast.json +++ b/packages/pesapal/ast.json @@ -774,6 +774,55 @@ }, "valid": false }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "as", "params": [ diff --git a/packages/pesapal/src/Adaptor.js b/packages/pesapal/src/Adaptor.js index 30c51e7023..aabba2e642 100644 --- a/packages/pesapal/src/Adaptor.js +++ b/packages/pesapal/src/Adaptor.js @@ -104,7 +104,7 @@ export function request(method, path, body, options = {}) { { body: resolvedBody, ...resolvedoptions, - } + }, ); return util.prepareNextState(state, response); @@ -112,17 +112,18 @@ export function request(method, path, body, options = {}) { } export { + as, combine, + cursor, dataPath, dataValue, dateFns, - cursor, each, field, fields, fn, lastReferenceValue, + log, merge, sourceValue, - as } from '@openfn/language-common'; diff --git a/packages/ping/ast.json b/packages/ping/ast.json index 61b1598158..e4878da674 100644 --- a/packages/ping/ast.json +++ b/packages/ping/ast.json @@ -747,6 +747,55 @@ }, "valid": false }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "as", "params": [ diff --git a/packages/ping/src/Adaptor.js b/packages/ping/src/Adaptor.js index 6b4e5aeaed..714d6211d7 100644 --- a/packages/ping/src/Adaptor.js +++ b/packages/ping/src/Adaptor.js @@ -49,6 +49,7 @@ export { fnIf, group, lastReferenceValue, + log, map, merge, scrubEmojis, diff --git a/packages/postgresql/ast.json b/packages/postgresql/ast.json index 8ef5af46d3..7e4df53a5d 100644 --- a/packages/postgresql/ast.json +++ b/packages/postgresql/ast.json @@ -1539,6 +1539,55 @@ }, "valid": true }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "as", "params": [ diff --git a/packages/postgresql/src/Adaptor.js b/packages/postgresql/src/Adaptor.js index b1259c6c44..a26dda958b 100644 --- a/packages/postgresql/src/Adaptor.js +++ b/packages/postgresql/src/Adaptor.js @@ -694,12 +694,13 @@ export function modifyTable(tableName, columns, options) { export { alterState, arrayToString, + as, + assert, combine, + cursor, dataPath, dataValue, dateFns, - cursor, - assert, each, field, fields, @@ -707,7 +708,7 @@ export { fnIf, group, lastReferenceValue, + log, merge, sourceValue, - as, } from '@openfn/language-common'; diff --git a/packages/primero/ast.json b/packages/primero/ast.json index d3d421ce7c..dc9cba3b2d 100644 --- a/packages/primero/ast.json +++ b/packages/primero/ast.json @@ -1126,6 +1126,55 @@ }, "valid": true }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "as", "params": [ diff --git a/packages/primero/src/Adaptor.js b/packages/primero/src/Adaptor.js index 1c840fad45..3068e29357 100644 --- a/packages/primero/src/Adaptor.js +++ b/packages/primero/src/Adaptor.js @@ -903,6 +903,7 @@ export function getLocations(query, callback) { export { alterState, + as, beta, combine, dataPath, @@ -914,7 +915,7 @@ export { fn, fnIf, lastReferenceValue, + log, merge, sourceValue, - as, } from '@openfn/language-common'; diff --git a/packages/progres/ast.json b/packages/progres/ast.json index 6bb0bf198e..aa563999a0 100644 --- a/packages/progres/ast.json +++ b/packages/progres/ast.json @@ -584,6 +584,55 @@ ] }, "valid": true + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/progres/src/Adaptor.js b/packages/progres/src/Adaptor.js index 3fc7b25486..6b8bdbfab8 100644 --- a/packages/progres/src/Adaptor.js +++ b/packages/progres/src/Adaptor.js @@ -72,16 +72,17 @@ export function postData(params, callback = s => s) { } export { - combine, - fn, - fnIf, alterState, + combine, dataPath, dataValue, each, field, fields, + fn, + fnIf, lastReferenceValue, + log, merge, sourceValue, } from '@openfn/language-common'; diff --git a/packages/puntosolidario-rd/ast.json b/packages/puntosolidario-rd/ast.json index 61b1598158..e4878da674 100644 --- a/packages/puntosolidario-rd/ast.json +++ b/packages/puntosolidario-rd/ast.json @@ -747,6 +747,55 @@ }, "valid": false }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "as", "params": [ diff --git a/packages/puntosolidario-rd/src/Adaptor.js b/packages/puntosolidario-rd/src/Adaptor.js index 34c88863f5..2ba35c5ecd 100644 --- a/packages/puntosolidario-rd/src/Adaptor.js +++ b/packages/puntosolidario-rd/src/Adaptor.js @@ -44,6 +44,7 @@ export { fnIf, group, lastReferenceValue, + log, map, merge, scrubEmojis, diff --git a/packages/rapidpro/ast.json b/packages/rapidpro/ast.json index d80c583899..778251a8d5 100644 --- a/packages/rapidpro/ast.json +++ b/packages/rapidpro/ast.json @@ -743,6 +743,55 @@ ] }, "valid": true + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/rapidpro/src/Adaptor.js b/packages/rapidpro/src/Adaptor.js index 1ea8334d2e..7ff98364ab 100644 --- a/packages/rapidpro/src/Adaptor.js +++ b/packages/rapidpro/src/Adaptor.js @@ -224,6 +224,7 @@ export { fn, fnIf, lastReferenceValue, + log, merge, sourceValue, } from '@openfn/language-common'; diff --git a/packages/redis/ast.json b/packages/redis/ast.json index c44a460b79..3e4a945643 100644 --- a/packages/redis/ast.json +++ b/packages/redis/ast.json @@ -1218,6 +1218,55 @@ ] }, "valid": false + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/redis/src/Adaptor.js b/packages/redis/src/Adaptor.js index 9a29fff1e8..ab2dcc9318 100644 --- a/packages/redis/src/Adaptor.js +++ b/packages/redis/src/Adaptor.js @@ -314,7 +314,7 @@ export function scan(pattern, options = {}) { const [resolvedPattern, resolvedOptions] = expandReferences( state, pattern, - options + options, ); console.log(`Scanning for keys matching '${resolvedPattern}'`); @@ -343,16 +343,17 @@ export function scan(pattern, options = {}) { export { combine, + cursor, dataPath, dataValue, dateFns, - cursor, each, field, fields, fn, fnIf, lastReferenceValue, + log, merge, sourceValue, } from '@openfn/language-common'; diff --git a/packages/resourcemap/ast.json b/packages/resourcemap/ast.json index 79cf0f7b2a..29f5e3a6ff 100644 --- a/packages/resourcemap/ast.json +++ b/packages/resourcemap/ast.json @@ -530,6 +530,55 @@ ] }, "valid": true + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/resourcemap/src/Adaptor.js b/packages/resourcemap/src/Adaptor.js index c16f94dd45..4224e71dc6 100644 --- a/packages/resourcemap/src/Adaptor.js +++ b/packages/resourcemap/src/Adaptor.js @@ -33,7 +33,7 @@ export function submitSite(collection_id, submissionData) { if ([200, 201, 202].indexOf(response.statusCode) > -1) return false; if (error) return error; return new Error( - `Server responded with ${response.statusCode} \n ${response.body}` + `Server responded with ${response.statusCode} \n ${response.body}`, ); } @@ -45,7 +45,7 @@ export function submitSite(collection_id, submissionData) { ':' + '\n' + JSON.stringify(body, null, 4) + - '\n' + '\n', ); const { username, password, baseUrl } = state.configuration; @@ -78,7 +78,7 @@ export function submitSite(collection_id, submissionData) { console.log('Site submission succeeded.'); resolve(body); } - } + }, ); }); @@ -92,16 +92,17 @@ export function submitSite(collection_id, submissionData) { } export { - combine, - fn, - fnIf, alterState, - field, - fields, - sourceValue, - merge, - each, + combine, dataPath, dataValue, + each, + field, + fields, + fn, + fnIf, lastReferenceValue, + log, + merge, + sourceValue, } from '@openfn/language-common'; diff --git a/packages/salesforce/ast.json b/packages/salesforce/ast.json index 57c00a2ab2..6d863cf28d 100644 --- a/packages/salesforce/ast.json +++ b/packages/salesforce/ast.json @@ -1797,6 +1797,55 @@ }, "valid": true }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "as", "params": [ diff --git a/packages/salesforce/src/Adaptor.js b/packages/salesforce/src/Adaptor.js index 44d5499f3f..26592fe282 100644 --- a/packages/salesforce/src/Adaptor.js +++ b/packages/salesforce/src/Adaptor.js @@ -499,6 +499,7 @@ export { join, jsonValue, lastReferenceValue, + log, map, merge, referencePath, diff --git a/packages/satusehat/ast.json b/packages/satusehat/ast.json index 88f7bf73a0..ab75e5fc8f 100644 --- a/packages/satusehat/ast.json +++ b/packages/satusehat/ast.json @@ -901,6 +901,55 @@ }, "valid": true }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "as", "params": [ diff --git a/packages/satusehat/src/Adaptor.js b/packages/satusehat/src/Adaptor.js index 19857eb1f2..9e80d0dc9b 100644 --- a/packages/satusehat/src/Adaptor.js +++ b/packages/satusehat/src/Adaptor.js @@ -212,6 +212,7 @@ export { fn, fnIf, lastReferenceValue, + log, map, merge, sourceValue, diff --git a/packages/senaite/ast.json b/packages/senaite/ast.json index 95c0994d36..37945b6b50 100644 --- a/packages/senaite/ast.json +++ b/packages/senaite/ast.json @@ -814,6 +814,55 @@ ] }, "valid": false + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/senaite/src/Adaptor.js b/packages/senaite/src/Adaptor.js index 832c620c7b..e57942a89a 100644 --- a/packages/senaite/src/Adaptor.js +++ b/packages/senaite/src/Adaptor.js @@ -60,6 +60,7 @@ export { fnIf, group, lastReferenceValue, + log, merge, scrubEmojis, sourceValue, diff --git a/packages/sftp/ast.json b/packages/sftp/ast.json index e619cae455..ccb79dd20b 100644 --- a/packages/sftp/ast.json +++ b/packages/sftp/ast.json @@ -1017,6 +1017,55 @@ ] }, "valid": true + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/sftp/src/Adaptor.js b/packages/sftp/src/Adaptor.js index d5ea529ad2..f48f1a6b55 100644 --- a/packages/sftp/src/Adaptor.js +++ b/packages/sftp/src/Adaptor.js @@ -30,7 +30,7 @@ export function execute(...operations) { commonExecute( connect, ...operations, - disconnect + disconnect, )({ ...initialState, ...state }).catch(e => { disconnect(state); throw e; @@ -121,7 +121,7 @@ export function getCSV(filePath, parsingOptions = {}) { if (useParser) { const stream = sftp.createReadStream(filePath, readStreamOptions); return parseCsv(stream, { ...csvDefaultOptions, ...parsingOptions })( - state + state, ); } else { return sftp @@ -264,20 +264,20 @@ export function normalizeCSVarray(options, callback) { export * from 'lodash/fp.js'; - export { alterState, + chunk, combine, - fn, - fnIf, dataPath, dataValue, each, field, fields, + fn, + fnIf, lastReferenceValue, + log, merge, - sourceValue, - chunk, parseCsv, + sourceValue, } from '@openfn/language-common'; diff --git a/packages/siuben-rd/ast.json b/packages/siuben-rd/ast.json index 61b1598158..e4878da674 100644 --- a/packages/siuben-rd/ast.json +++ b/packages/siuben-rd/ast.json @@ -747,6 +747,55 @@ }, "valid": false }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "as", "params": [ diff --git a/packages/siuben-rd/src/Adaptor.js b/packages/siuben-rd/src/Adaptor.js index 34c88863f5..2ba35c5ecd 100644 --- a/packages/siuben-rd/src/Adaptor.js +++ b/packages/siuben-rd/src/Adaptor.js @@ -44,6 +44,7 @@ export { fnIf, group, lastReferenceValue, + log, map, merge, scrubEmojis, diff --git a/packages/stripe/ast.json b/packages/stripe/ast.json index aed0996256..b376eba1ac 100644 --- a/packages/stripe/ast.json +++ b/packages/stripe/ast.json @@ -927,6 +927,55 @@ }, "valid": true }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "as", "params": [ diff --git a/packages/stripe/src/Adaptor.js b/packages/stripe/src/Adaptor.js index 8fe2668a03..0a2a94054b 100644 --- a/packages/stripe/src/Adaptor.js +++ b/packages/stripe/src/Adaptor.js @@ -84,6 +84,7 @@ export { fnIf, group, lastReferenceValue, + log, map, merge, scrubEmojis, diff --git a/packages/sunbird-rc/ast.json b/packages/sunbird-rc/ast.json index 5ee8c93de5..4be5aaf541 100644 --- a/packages/sunbird-rc/ast.json +++ b/packages/sunbird-rc/ast.json @@ -1252,6 +1252,55 @@ }, "valid": false }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "as", "params": [ diff --git a/packages/sunbird-rc/src/Adaptor.js b/packages/sunbird-rc/src/Adaptor.js index 7909493a17..d79d2a9b7e 100644 --- a/packages/sunbird-rc/src/Adaptor.js +++ b/packages/sunbird-rc/src/Adaptor.js @@ -227,6 +227,7 @@ export { fnIf, group, lastReferenceValue, + log, map, merge, scrubEmojis, diff --git a/packages/surveycto/ast.json b/packages/surveycto/ast.json index 85808fcc6e..3c9eddf3bc 100644 --- a/packages/surveycto/ast.json +++ b/packages/surveycto/ast.json @@ -1078,6 +1078,55 @@ ] }, "valid": true + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/surveycto/src/Adaptor.js b/packages/surveycto/src/Adaptor.js index 2984ba5143..54d3eb143a 100644 --- a/packages/surveycto/src/Adaptor.js +++ b/packages/surveycto/src/Adaptor.js @@ -88,7 +88,7 @@ export function fetchSubmissions(formId, options = {}) { const [resolvedFormId, resolvedOptions] = expandReferences( state, formId, - options + options, ); let { date = 0, format = 'json', status } = resolvedOptions; @@ -150,13 +150,13 @@ export function list(resource, options = {}) { const [resolvedResource, resolvedOptions] = expandReferences( state, resource, - options + options, ); const result = await requestWithPagination( state, resolvedResource, - resolvedOptions + resolvedOptions, ); return result; }; @@ -243,7 +243,7 @@ export function upsertRecord(datasetId, data) { const [resolvedDatasetId, resolvedData] = expandReferences( state, datasetId, - data + data, ); const resultId = resolvedData?.id; @@ -260,7 +260,7 @@ export function upsertRecord(datasetId, data) { headers: { 'content-type': 'application/json', }, - } + }, ); return prepareNextState(state, response); }; @@ -327,7 +327,7 @@ export function uploadCsvRecords(datasetId, rows, metadata = {}) { new Blob([JSON.stringify(resolvedMetadata)], { type: 'application/json', }), - 'metadata.json' + 'metadata.json', ); } @@ -337,7 +337,7 @@ export function uploadCsvRecords(datasetId, rows, metadata = {}) { { method: 'POST', body: data, - } + }, ); return prepareNextState(state, response); @@ -399,18 +399,19 @@ export function jsonToCSVBuffer(rows) { } export { + alterState, + chunk, combine, + dataPath, + dataValue, + dateFns, + field, + fields, fn, fnIf, - chunk, + lastReferenceValue, + log, merge, - field, - fields, - dateFns, - dataPath, parseCsv, - dataValue, - alterState, sourceValue, - lastReferenceValue, } from '@openfn/language-common'; diff --git a/packages/telerivet/ast.json b/packages/telerivet/ast.json index bef1af517c..08538be4d1 100644 --- a/packages/telerivet/ast.json +++ b/packages/telerivet/ast.json @@ -466,6 +466,55 @@ ] }, "valid": true + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/telerivet/src/Adaptor.js b/packages/telerivet/src/Adaptor.js index 384ab6a0e6..03f0787a20 100644 --- a/packages/telerivet/src/Adaptor.js +++ b/packages/telerivet/src/Adaptor.js @@ -40,7 +40,7 @@ export function send(sendData) { const url = 'https://api.telerivet.com/v1/projects/'.concat( projectId, - '/messages/send' + '/messages/send', ); console.log(url); @@ -55,15 +55,16 @@ export function send(sendData) { } export { - combine, - fn, - fnIf, alterState, - field, - fields, - sourceValue, - merge, + combine, dataPath, dataValue, + field, + fields, + fn, + fnIf, lastReferenceValue, + log, + merge, + sourceValue, } from '@openfn/language-common'; diff --git a/packages/testing/src/Adaptor.js b/packages/testing/src/Adaptor.js index 4584361838..d26784326a 100644 --- a/packages/testing/src/Adaptor.js +++ b/packages/testing/src/Adaptor.js @@ -8,5 +8,4 @@ export function version() { }); } -export { combine, - fn } from '@openfn/language-common'; +export { combine, fn, log } from '@openfn/language-common'; diff --git a/packages/twilio/ast.json b/packages/twilio/ast.json index eb67151d8e..3191c6af5d 100644 --- a/packages/twilio/ast.json +++ b/packages/twilio/ast.json @@ -574,6 +574,55 @@ ] }, "valid": true + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/twilio/src/Adaptor.js b/packages/twilio/src/Adaptor.js index aece55422d..3096752f4d 100644 --- a/packages/twilio/src/Adaptor.js +++ b/packages/twilio/src/Adaptor.js @@ -1,4 +1,7 @@ -import { execute as commonExecute, composeNextState } from '@openfn/language-common'; +import { + execute as commonExecute, + composeNextState, +} from '@openfn/language-common'; import { expandReferences } from '@openfn/language-common/util'; import twilio from 'twilio'; @@ -49,14 +52,12 @@ export function sendSMS(params) { const client = twilio(accountSid, authToken); - return client.messages - .create({ body, from, to }) - .then(response => { - if (response.errorCode) { - throw response.errorCode; - } - return composeNextState(state, response); - }); + return client.messages.create({ body, from, to }).then(response => { + if (response.errorCode) { + throw response.errorCode; + } + return composeNextState(state, response); + }); }; } @@ -64,16 +65,17 @@ export function sendSMS(params) { // export function bulkSMS(params) {} export { + alterState, combine, + dataPath, + dataValue, + each, field, fields, - sourceValue, - alterState, fn, fnIf, - each, - merge, - dataPath, - dataValue, lastReferenceValue, + log, + merge, + sourceValue, } from '@openfn/language-common'; diff --git a/packages/varo/ast.json b/packages/varo/ast.json index 3199ab1a89..110dd436c9 100644 --- a/packages/varo/ast.json +++ b/packages/varo/ast.json @@ -902,6 +902,55 @@ ] }, "valid": false + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/varo/src/Adaptor.js b/packages/varo/src/Adaptor.js index d3672a1f70..0906afeeab 100644 --- a/packages/varo/src/Adaptor.js +++ b/packages/varo/src/Adaptor.js @@ -275,6 +275,7 @@ export { fn, fnIf, lastReferenceValue, + log, merge, sourceValue, } from '@openfn/language-common'; diff --git a/packages/vtiger/ast.json b/packages/vtiger/ast.json index 79cf0f7b2a..29f5e3a6ff 100644 --- a/packages/vtiger/ast.json +++ b/packages/vtiger/ast.json @@ -530,6 +530,55 @@ ] }, "valid": true + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/vtiger/src/Adaptor.js b/packages/vtiger/src/Adaptor.js index aa72e9140f..b45442036e 100644 --- a/packages/vtiger/src/Adaptor.js +++ b/packages/vtiger/src/Adaptor.js @@ -35,7 +35,7 @@ export function execute(...operations) { return commonExecute( challenge, login, - ...flatten(operations) + ...flatten(operations), )({ ...initialState, ...state }); }; } @@ -57,7 +57,7 @@ function challenge(state) { const parsedBody = JSON.parse(body); resolve(parsedBody.result.token); } - } + }, ); }).then(value => { return { ...state, token: value }; @@ -91,7 +91,7 @@ export function login(state) { const parsedBody = JSON.parse(body); resolve(parsedBody); } - } + }, ); }).then(result => { return { ...state, session: result }; @@ -117,7 +117,7 @@ export function listTypes() { console.log(body); resolve(body); } - } + }, ); }).then(data => { const nextState = { ...state, response: { body: data } }; @@ -132,7 +132,7 @@ export function postElement(params) { const { sessionName } = state.session.result; const [resolvedParams] = expandReferences(state, params); - const {elementType, element, operation} = resolvedParams; + const { elementType, element, operation } = resolvedParams; const url = `${hostUrl}/webservice.php`; // const url = 'https://requestb.in/1irtrgz1'; @@ -161,7 +161,7 @@ export function postElement(params) { console.log(body); resolve(body); } - } + }, ); }).then(data => { const nextState = { ...state, response: { body: data } }; @@ -171,16 +171,17 @@ export function postElement(params) { } export { + alterState, combine, + dataPath, + dataValue, + each, field, fields, - sourceValue, - alterState, fn, fnIf, - each, - merge, - dataPath, - dataValue, lastReferenceValue, + log, + merge, + sourceValue, } from '@openfn/language-common'; diff --git a/packages/whatsapp/ast.json b/packages/whatsapp/ast.json index 4fe7322d84..c783898d1e 100644 --- a/packages/whatsapp/ast.json +++ b/packages/whatsapp/ast.json @@ -825,6 +825,55 @@ ] }, "valid": false + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/whatsapp/src/Adaptor.js b/packages/whatsapp/src/Adaptor.js index a4d10a0ae7..f1888208fc 100644 --- a/packages/whatsapp/src/Adaptor.js +++ b/packages/whatsapp/src/Adaptor.js @@ -82,6 +82,7 @@ export { fnIf, group, lastReferenceValue, + log, merge, scrubEmojis, sourceValue, diff --git a/packages/wigal-sms/ast.json b/packages/wigal-sms/ast.json index c43474a8a3..dfc108ab1f 100644 --- a/packages/wigal-sms/ast.json +++ b/packages/wigal-sms/ast.json @@ -670,6 +670,55 @@ ] }, "valid": false + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/wigal-sms/src/Adaptor.js b/packages/wigal-sms/src/Adaptor.js index f61c2f846f..cba66caaeb 100644 --- a/packages/wigal-sms/src/Adaptor.js +++ b/packages/wigal-sms/src/Adaptor.js @@ -79,16 +79,17 @@ export function sendSms(data) { export { combine, - fn, - fnIf, - each, - merge, - field, - fields, cursor, - dateFns, dataPath, dataValue, - sourceValue, + dateFns, + each, + field, + fields, + fn, + fnIf, lastReferenceValue, + log, + merge, + sourceValue, } from '@openfn/language-common'; diff --git a/packages/zata/ast.json b/packages/zata/ast.json index e77962e0f2..8343b04695 100644 --- a/packages/zata/ast.json +++ b/packages/zata/ast.json @@ -1000,6 +1000,55 @@ }, "valid": false }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true + }, { "name": "as", "params": [ diff --git a/packages/zata/src/Adaptor.js b/packages/zata/src/Adaptor.js index eb37d32657..54c7dd657e 100644 --- a/packages/zata/src/Adaptor.js +++ b/packages/zata/src/Adaptor.js @@ -220,6 +220,7 @@ export { fnIf, group, lastReferenceValue, + log, map, merge, scrubEmojis, diff --git a/packages/zoho/ast.json b/packages/zoho/ast.json index 79cf0f7b2a..29f5e3a6ff 100644 --- a/packages/zoho/ast.json +++ b/packages/zoho/ast.json @@ -530,6 +530,55 @@ ] }, "valid": true + }, + { + "name": "log", + "params": [ + "args" + ], + "docs": { + "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.", + "tags": [ + { + "title": "public", + "description": null, + "type": null + }, + { + "title": "function", + "description": null, + "name": null + }, + { + "title": "example", + "description": "log('Patient List::', $.patients);", + "caption": "Log values from state" + }, + { + "title": "example", + "description": "fn((state) => {\n console.log(state.data);\n return state;\n})", + "caption": "Use console.log inside a callback or fn block" + }, + { + "title": "param", + "description": "A value or message to display in the logs", + "type": { + "type": "NameExpression", + "name": "any" + }, + "name": "args" + }, + { + "title": "returns", + "description": null, + "type": { + "type": "NameExpression", + "name": "Operation" + } + } + ] + }, + "valid": true } ] } \ No newline at end of file diff --git a/packages/zoho/src/Adaptor.js b/packages/zoho/src/Adaptor.js index 2171639b71..aaf5360ebe 100644 --- a/packages/zoho/src/Adaptor.js +++ b/packages/zoho/src/Adaptor.js @@ -51,7 +51,7 @@ export function addRow(db, table, rowData) { '/', db, '/', - table + table, ); console.log('POST URL:'); @@ -67,16 +67,17 @@ export function addRow(db, table, rowData) { } export { - combine, - fn, - fnIf, alterState, - field, - fields, - sourceValue, - each, - merge, + combine, dataPath, dataValue, + each, + field, + fields, + fn, + fnIf, lastReferenceValue, + log, + merge, + sourceValue, } from '@openfn/language-common'; From fe58e25a20ab1fb512d2599e354a3b02c999300b Mon Sep 17 00:00:00 2001 From: Joe Clark Date: Thu, 21 May 2026 15:56:41 +0100 Subject: [PATCH 3/3] versions --- .changeset/ninety-things-hide.md | 59 --------------- .changeset/stale-islands-see.md | 99 ------------------------- packages/arcgis/CHANGELOG.md | 6 ++ packages/arcgis/package.json | 2 +- packages/asana/CHANGELOG.md | 7 ++ packages/asana/package.json | 2 +- packages/aws-s3/CHANGELOG.md | 6 ++ packages/aws-s3/package.json | 2 +- packages/azure-storage/CHANGELOG.md | 7 ++ packages/azure-storage/package.json | 2 +- packages/beyonic/CHANGELOG.md | 7 ++ packages/beyonic/package.json | 2 +- packages/bigquery/CHANGELOG.md | 6 ++ packages/bigquery/package.json | 2 +- packages/browserless/CHANGELOG.md | 6 ++ packages/browserless/package.json | 2 +- packages/cartodb/CHANGELOG.md | 7 ++ packages/cartodb/package.json | 2 +- packages/chatgpt/CHANGELOG.md | 7 ++ packages/chatgpt/package.json | 2 +- packages/cht/CHANGELOG.md | 7 ++ packages/cht/package.json | 2 +- packages/claude/CHANGELOG.md | 7 ++ packages/claude/package.json | 2 +- packages/commcare/CHANGELOG.md | 6 ++ packages/commcare/package.json | 2 +- packages/dagu/CHANGELOG.md | 6 ++ packages/dagu/package.json | 2 +- packages/dhis2/CHANGELOG.md | 7 ++ packages/dhis2/package.json | 2 +- packages/divoc/CHANGELOG.md | 7 ++ packages/divoc/package.json | 2 +- packages/dynamics/CHANGELOG.md | 7 ++ packages/dynamics/package.json | 2 +- packages/erpnext/CHANGELOG.md | 7 ++ packages/erpnext/package.json | 2 +- packages/facebook/CHANGELOG.md | 7 ++ packages/facebook/package.json | 2 +- packages/fhir-fr/CHANGELOG.md | 7 ++ packages/fhir-fr/package.json | 2 +- packages/fhir-ndr-et/CHANGELOG.md | 13 ++++ packages/fhir-ndr-et/package.json | 2 +- packages/fhir/CHANGELOG.md | 7 ++ packages/fhir/package.json | 2 +- packages/ghana-bdr/CHANGELOG.md | 7 ++ packages/ghana-bdr/package.json | 2 +- packages/ghana-nia/CHANGELOG.md | 7 ++ packages/ghana-nia/package.json | 2 +- packages/gmail/CHANGELOG.md | 6 ++ packages/gmail/package.json | 2 +- packages/godata/CHANGELOG.md | 7 ++ packages/godata/package.json | 2 +- packages/googledrive/CHANGELOG.md | 6 ++ packages/googledrive/package.json | 2 +- packages/googlehealthcare/CHANGELOG.md | 7 ++ packages/googlehealthcare/package.json | 2 +- packages/googlesheets/CHANGELOG.md | 6 ++ packages/googlesheets/package.json | 2 +- packages/hive/CHANGELOG.md | 7 ++ packages/hive/package.json | 2 +- packages/http/CHANGELOG.md | 6 ++ packages/http/package.json | 2 +- packages/hubtel/CHANGELOG.md | 7 ++ packages/hubtel/package.json | 2 +- packages/ibipimo/CHANGELOG.md | 6 ++ packages/ibipimo/package.json | 2 +- packages/ihris/CHANGELOG.md | 6 ++ packages/ihris/package.json | 2 +- packages/inform/CHANGELOG.md | 6 ++ packages/inform/package.json | 2 +- packages/intuit/CHANGELOG.md | 7 ++ packages/intuit/package.json | 2 +- packages/khanacademy/CHANGELOG.md | 7 ++ packages/khanacademy/package.json | 2 +- packages/kobotoolbox/CHANGELOG.md | 7 ++ packages/kobotoolbox/package.json | 2 +- packages/lamisplus/CHANGELOG.md | 6 ++ packages/lamisplus/package.json | 2 +- packages/magpi/CHANGELOG.md | 7 ++ packages/magpi/package.json | 2 +- packages/mailchimp/CHANGELOG.md | 7 ++ packages/mailchimp/package.json | 2 +- packages/mailgun/CHANGELOG.md | 7 ++ packages/mailgun/package.json | 2 +- packages/maximo/CHANGELOG.md | 7 ++ packages/maximo/package.json | 2 +- packages/medicmobile/CHANGELOG.md | 7 ++ packages/medicmobile/package.json | 2 +- packages/memento/CHANGELOG.md | 6 ++ packages/memento/package.json | 2 +- packages/minio/CHANGELOG.md | 6 ++ packages/minio/package.json | 2 +- packages/mogli/CHANGELOG.md | 6 ++ packages/mogli/package.json | 2 +- packages/mojatax/CHANGELOG.md | 7 ++ packages/mojatax/package.json | 2 +- packages/mongodb/CHANGELOG.md | 7 ++ packages/mongodb/package.json | 2 +- packages/monnify/CHANGELOG.md | 6 ++ packages/monnify/package.json | 2 +- packages/motherduck/CHANGELOG.md | 6 ++ packages/motherduck/package.json | 2 +- packages/mpesa/CHANGELOG.md | 7 ++ packages/mpesa/package.json | 2 +- packages/msgraph/CHANGELOG.md | 7 ++ packages/msgraph/package.json | 2 +- packages/mssql/CHANGELOG.md | 6 ++ packages/mssql/package.json | 2 +- packages/msupply/CHANGELOG.md | 6 ++ packages/msupply/package.json | 2 +- packages/mtn-momo/CHANGELOG.md | 6 ++ packages/mtn-momo/package.json | 2 +- packages/mysql/CHANGELOG.md | 6 ++ packages/mysql/package.json | 2 +- packages/nexmo/CHANGELOG.md | 7 ++ packages/nexmo/package.json | 2 +- packages/ocl/CHANGELOG.md | 7 ++ packages/ocl/package.json | 2 +- packages/odk/CHANGELOG.md | 7 ++ packages/odk/package.json | 2 +- packages/odoo/CHANGELOG.md | 7 ++ packages/odoo/package.json | 2 +- packages/openboxes/CHANGELOG.md | 7 ++ packages/openboxes/package.json | 2 +- packages/opencrvs/CHANGELOG.md | 6 ++ packages/opencrvs/package.json | 2 +- packages/openelis/CHANGELOG.md | 6 ++ packages/openelis/package.json | 2 +- packages/openfn/CHANGELOG.md | 6 ++ packages/openfn/package.json | 2 +- packages/openhim/CHANGELOG.md | 7 ++ packages/openhim/package.json | 2 +- packages/openimis/CHANGELOG.md | 7 ++ packages/openimis/package.json | 2 +- packages/openlmis/CHANGELOG.md | 7 ++ packages/openlmis/package.json | 2 +- packages/openmrs/CHANGELOG.md | 7 ++ packages/openmrs/package.json | 2 +- packages/openspp/CHANGELOG.md | 7 ++ packages/openspp/package.json | 2 +- packages/pdfshift/CHANGELOG.md | 6 ++ packages/pdfshift/package.json | 2 +- packages/pesapal/CHANGELOG.md | 7 ++ packages/pesapal/package.json | 2 +- packages/ping/CHANGELOG.md | 6 ++ packages/ping/package.json | 2 +- packages/postgresql/CHANGELOG.md | 6 ++ packages/postgresql/package.json | 2 +- packages/primero/CHANGELOG.md | 6 ++ packages/primero/package.json | 2 +- packages/progres/CHANGELOG.md | 7 ++ packages/progres/package.json | 2 +- packages/puntosolidario-rd/CHANGELOG.md | 6 ++ packages/puntosolidario-rd/package.json | 2 +- packages/rapidpro/CHANGELOG.md | 7 ++ packages/rapidpro/package.json | 2 +- packages/redis/CHANGELOG.md | 7 ++ packages/redis/package.json | 2 +- packages/resourcemap/CHANGELOG.md | 7 ++ packages/resourcemap/package.json | 2 +- packages/salesforce/CHANGELOG.md | 6 ++ packages/salesforce/package.json | 2 +- packages/satusehat/CHANGELOG.md | 6 ++ packages/satusehat/package.json | 2 +- packages/senaite/CHANGELOG.md | 6 ++ packages/senaite/package.json | 2 +- packages/sftp/CHANGELOG.md | 7 ++ packages/sftp/package.json | 2 +- packages/siuben-rd/CHANGELOG.md | 6 ++ packages/siuben-rd/package.json | 2 +- packages/stripe/CHANGELOG.md | 6 ++ packages/stripe/package.json | 2 +- packages/sunbird-rc/CHANGELOG.md | 6 ++ packages/sunbird-rc/package.json | 2 +- packages/surveycto/CHANGELOG.md | 7 ++ packages/surveycto/package.json | 2 +- packages/telerivet/CHANGELOG.md | 7 ++ packages/telerivet/package.json | 2 +- packages/twilio/CHANGELOG.md | 7 ++ packages/twilio/package.json | 2 +- packages/varo/CHANGELOG.md | 6 ++ packages/varo/package.json | 2 +- packages/vtiger/CHANGELOG.md | 7 ++ packages/vtiger/package.json | 2 +- packages/whatsapp/CHANGELOG.md | 6 ++ packages/whatsapp/package.json | 2 +- packages/wigal-sms/CHANGELOG.md | 7 ++ packages/wigal-sms/package.json | 2 +- packages/zata/CHANGELOG.md | 6 ++ packages/zata/package.json | 2 +- packages/zoho/CHANGELOG.md | 7 ++ packages/zoho/package.json | 2 +- 192 files changed, 726 insertions(+), 253 deletions(-) delete mode 100644 .changeset/ninety-things-hide.md delete mode 100644 .changeset/stale-islands-see.md diff --git a/.changeset/ninety-things-hide.md b/.changeset/ninety-things-hide.md deleted file mode 100644 index ebe7715e87..0000000000 --- a/.changeset/ninety-things-hide.md +++ /dev/null @@ -1,59 +0,0 @@ ---- -'@openfn/language-googlehealthcare': minor -'@openfn/language-azure-storage': minor -'@openfn/language-fhir-ndr-et': minor -'@openfn/language-khanacademy': minor -'@openfn/language-kobotoolbox': minor -'@openfn/language-medicmobile': minor -'@openfn/language-resourcemap': minor -'@openfn/language-ghana-bdr': minor -'@openfn/language-ghana-nia': minor -'@openfn/language-mailchimp': minor -'@openfn/language-openboxes': minor -'@openfn/language-surveycto': minor -'@openfn/language-telerivet': minor -'@openfn/language-wigal-sms': minor -'@openfn/language-dynamics': minor -'@openfn/language-facebook': minor -'@openfn/language-openimis': minor -'@openfn/language-openlmis': minor -'@openfn/language-rapidpro': minor -'@openfn/language-beyonic': minor -'@openfn/language-cartodb': minor -'@openfn/language-chatgpt': minor -'@openfn/language-erpnext': minor -'@openfn/language-fhir-fr': minor -'@openfn/language-mailgun': minor -'@openfn/language-mojatax': minor -'@openfn/language-mongodb': minor -'@openfn/language-msgraph': minor -'@openfn/language-openhim': minor -'@openfn/language-openmrs': minor -'@openfn/language-openspp': minor -'@openfn/language-pesapal': minor -'@openfn/language-progres': minor -'@openfn/language-claude': minor -'@openfn/language-godata': minor -'@openfn/language-hubtel': minor -'@openfn/language-intuit': minor -'@openfn/language-maximo': minor -'@openfn/language-twilio': minor -'@openfn/language-vtiger': minor -'@openfn/language-asana': minor -'@openfn/language-dhis2': minor -'@openfn/language-divoc': minor -'@openfn/language-magpi': minor -'@openfn/language-mpesa': minor -'@openfn/language-nexmo': minor -'@openfn/language-redis': minor -'@openfn/language-fhir': minor -'@openfn/language-hive': minor -'@openfn/language-odoo': minor -'@openfn/language-sftp': minor -'@openfn/language-zoho': minor -'@openfn/language-cht': minor -'@openfn/language-ocl': minor -'@openfn/language-odk': minor ---- - -export `combine` function from common diff --git a/.changeset/stale-islands-see.md b/.changeset/stale-islands-see.md deleted file mode 100644 index edfa29dca4..0000000000 --- a/.changeset/stale-islands-see.md +++ /dev/null @@ -1,99 +0,0 @@ ---- -'@openfn/language-puntosolidario-rd': minor -'@openfn/language-googlehealthcare': minor -'@openfn/language-azure-storage': minor -'@openfn/language-googlesheets': minor -'@openfn/language-browserless': minor -'@openfn/language-fhir-ndr-et': minor -'@openfn/language-googledrive': minor -'@openfn/language-khanacademy': minor -'@openfn/language-kobotoolbox': minor -'@openfn/language-medicmobile': minor -'@openfn/language-resourcemap': minor -'@openfn/language-motherduck': minor -'@openfn/language-postgresql': minor -'@openfn/language-salesforce': minor -'@openfn/language-sunbird-rc': minor -'@openfn/language-ghana-bdr': minor -'@openfn/language-ghana-nia': minor -'@openfn/language-lamisplus': minor -'@openfn/language-mailchimp': minor -'@openfn/language-openboxes': minor -'@openfn/language-satusehat': minor -'@openfn/language-siuben-rd': minor -'@openfn/language-surveycto': minor -'@openfn/language-telerivet': minor -'@openfn/language-wigal-sms': minor -'@openfn/language-bigquery': minor -'@openfn/language-commcare': minor -'@openfn/language-dynamics': minor -'@openfn/language-facebook': minor -'@openfn/language-mtn-momo': minor -'@openfn/language-opencrvs': minor -'@openfn/language-openelis': minor -'@openfn/language-openimis': minor -'@openfn/language-openlmis': minor -'@openfn/language-pdfshift': minor -'@openfn/language-rapidpro': minor -'@openfn/language-whatsapp': minor -'@openfn/language-beyonic': minor -'@openfn/language-cartodb': minor -'@openfn/language-chatgpt': minor -'@openfn/language-erpnext': minor -'@openfn/language-fhir-fr': minor -'@openfn/language-ibipimo': minor -'@openfn/language-mailgun': minor -'@openfn/language-memento': minor -'@openfn/language-mojatax': minor -'@openfn/language-mongodb': minor -'@openfn/language-monnify': minor -'@openfn/language-msgraph': minor -'@openfn/language-msupply': minor -'@openfn/language-openhim': minor -'@openfn/language-openmrs': minor -'@openfn/language-openspp': minor -'@openfn/language-pesapal': minor -'@openfn/language-primero': minor -'@openfn/language-progres': minor -'@openfn/language-senaite': minor -'@openfn/language-arcgis': minor -'@openfn/language-aws-s3': minor -'@openfn/language-claude': minor -'@openfn/language-godata': minor -'@openfn/language-hubtel': minor -'@openfn/language-inform': minor -'@openfn/language-intuit': minor -'@openfn/language-maximo': minor -'@openfn/language-openfn': minor -'@openfn/language-stripe': minor -'@openfn/language-twilio': minor -'@openfn/language-vtiger': minor -'@openfn/language-asana': minor -'@openfn/language-dhis2': minor -'@openfn/language-divoc': minor -'@openfn/language-gmail': minor -'@openfn/language-ihris': minor -'@openfn/language-magpi': minor -'@openfn/language-minio': minor -'@openfn/language-mogli': minor -'@openfn/language-mpesa': minor -'@openfn/language-mssql': minor -'@openfn/language-mysql': minor -'@openfn/language-nexmo': minor -'@openfn/language-redis': minor -'@openfn/language-dagu': minor -'@openfn/language-fhir': minor -'@openfn/language-hive': minor -'@openfn/language-http': minor -'@openfn/language-odoo': minor -'@openfn/language-ping': minor -'@openfn/language-sftp': minor -'@openfn/language-varo': minor -'@openfn/language-zata': minor -'@openfn/language-zoho': minor -'@openfn/language-cht': minor -'@openfn/language-ocl': minor -'@openfn/language-odk': minor ---- - -export `log` function from common diff --git a/packages/arcgis/CHANGELOG.md b/packages/arcgis/CHANGELOG.md index 2427463b06..860ad77337 100644 --- a/packages/arcgis/CHANGELOG.md +++ b/packages/arcgis/CHANGELOG.md @@ -1,5 +1,11 @@ # @openfn/language-arcgis +## 1.1.0 + +### Minor Changes + +- bf26881: export `log` function from common + ## 1.0.8 ### Patch Changes diff --git a/packages/arcgis/package.json b/packages/arcgis/package.json index 82a543702a..ed12e04a18 100644 --- a/packages/arcgis/package.json +++ b/packages/arcgis/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-arcgis", - "version": "1.0.8", + "version": "1.1.0", "description": "OpenFn arcgis adaptor", "type": "module", "exports": { diff --git a/packages/asana/CHANGELOG.md b/packages/asana/CHANGELOG.md index 40ddfc879e..daea534d1a 100644 --- a/packages/asana/CHANGELOG.md +++ b/packages/asana/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-asana +## 5.1.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 5.0.13 ### Patch Changes diff --git a/packages/asana/package.json b/packages/asana/package.json index c43e31b082..6975697380 100644 --- a/packages/asana/package.json +++ b/packages/asana/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-asana", - "version": "5.0.13", + "version": "5.1.0", "label": "Asana", "description": "OpenFn adaptor for accessing objects in Asana", "homepage": "https://docs.openfn.org", diff --git a/packages/aws-s3/CHANGELOG.md b/packages/aws-s3/CHANGELOG.md index ec50d8f260..64acf9bec5 100644 --- a/packages/aws-s3/CHANGELOG.md +++ b/packages/aws-s3/CHANGELOG.md @@ -1,5 +1,11 @@ # @openfn/language-aws-s3 +## 1.1.0 + +### Minor Changes + +- bf26881: export `log` function from common + ## 1.0.3 ### Patch Changes diff --git a/packages/aws-s3/package.json b/packages/aws-s3/package.json index 242e85d3a1..88e7267f9f 100644 --- a/packages/aws-s3/package.json +++ b/packages/aws-s3/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-aws-s3", - "version": "1.0.3", + "version": "1.1.0", "description": "OpenFn aws-s3 adaptor", "type": "module", "exports": { diff --git a/packages/azure-storage/CHANGELOG.md b/packages/azure-storage/CHANGELOG.md index 002755dc2e..cd7946b2f0 100644 --- a/packages/azure-storage/CHANGELOG.md +++ b/packages/azure-storage/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-azure-storage +## 3.1.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 3.0.11 ### Patch Changes diff --git a/packages/azure-storage/package.json b/packages/azure-storage/package.json index 81a075f8af..7e9abcef6c 100644 --- a/packages/azure-storage/package.json +++ b/packages/azure-storage/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-azure-storage", "label": "Azure Storage", - "version": "3.0.11", + "version": "3.1.0", "description": "OpenFn adaptor for Azure Storage", "type": "module", "exports": { diff --git a/packages/beyonic/CHANGELOG.md b/packages/beyonic/CHANGELOG.md index 6c8d09b336..20cd0be653 100644 --- a/packages/beyonic/CHANGELOG.md +++ b/packages/beyonic/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-beyonic +## 0.4.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 0.3.30 ### Patch Changes diff --git a/packages/beyonic/package.json b/packages/beyonic/package.json index 4754d5346e..1b971a124a 100644 --- a/packages/beyonic/package.json +++ b/packages/beyonic/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-beyonic", "label": "Beyonic", - "version": "0.3.30", + "version": "0.4.0", "description": "OpenFn adaptor for Beyonic", "homepage": "https://docs.openfn.org", "repository": { diff --git a/packages/bigquery/CHANGELOG.md b/packages/bigquery/CHANGELOG.md index 992cfdc55a..6730aaa063 100644 --- a/packages/bigquery/CHANGELOG.md +++ b/packages/bigquery/CHANGELOG.md @@ -1,5 +1,11 @@ # @openfn/language-bigquery +## 4.1.0 + +### Minor Changes + +- bf26881: export `log` function from common + ## 4.0.15 ### Patch Changes diff --git a/packages/bigquery/package.json b/packages/bigquery/package.json index 567d11b78f..b8a162333c 100644 --- a/packages/bigquery/package.json +++ b/packages/bigquery/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-bigquery", "label": "BigQuery", - "version": "4.0.15", + "version": "4.1.0", "description": "A Google BigQuery language package for use with Open Function", "main": "dist/index.cjs", "scripts": { diff --git a/packages/browserless/CHANGELOG.md b/packages/browserless/CHANGELOG.md index e41af18061..7e4ec59be3 100644 --- a/packages/browserless/CHANGELOG.md +++ b/packages/browserless/CHANGELOG.md @@ -1,5 +1,11 @@ # @openfn/language-browserless +## 1.1.0 + +### Minor Changes + +- bf26881: export `log` function from common + ## 1.0.5 ### Patch Changes diff --git a/packages/browserless/package.json b/packages/browserless/package.json index 1c7274cb95..740be7bd3f 100644 --- a/packages/browserless/package.json +++ b/packages/browserless/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-browserless", - "version": "1.0.5", + "version": "1.1.0", "description": "OpenFn browserless adaptor", "type": "module", "exports": { diff --git a/packages/cartodb/CHANGELOG.md b/packages/cartodb/CHANGELOG.md index 23ff4f0da7..cc1bee58fc 100644 --- a/packages/cartodb/CHANGELOG.md +++ b/packages/cartodb/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-cartodb +## 0.5.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 0.4.31 ### Patch Changes diff --git a/packages/cartodb/package.json b/packages/cartodb/package.json index c3744732fe..6a3eec9145 100644 --- a/packages/cartodb/package.json +++ b/packages/cartodb/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-cartodb", "label": "CartoDB", - "version": "0.4.31", + "version": "0.5.0", "description": "cartodb Language Pack for OpenFn", "main": "dist/index.cjs", "scripts": { diff --git a/packages/chatgpt/CHANGELOG.md b/packages/chatgpt/CHANGELOG.md index f8daa64934..ba8f6f732e 100644 --- a/packages/chatgpt/CHANGELOG.md +++ b/packages/chatgpt/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-chatgpt +## 2.1.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 2.0.12 ### Patch Changes diff --git a/packages/chatgpt/package.json b/packages/chatgpt/package.json index c00cec32c7..4f2b94ebe3 100644 --- a/packages/chatgpt/package.json +++ b/packages/chatgpt/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-chatgpt", "label": "ChatGPT", - "version": "2.0.12", + "version": "2.1.0", "description": "OpenFn adaptor for ChatGPT", "type": "module", "exports": { diff --git a/packages/cht/CHANGELOG.md b/packages/cht/CHANGELOG.md index 7737ce14ae..690b5b92e8 100644 --- a/packages/cht/CHANGELOG.md +++ b/packages/cht/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-cht +## 1.2.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 1.1.13 ### Patch Changes diff --git a/packages/cht/package.json b/packages/cht/package.json index 6a3252c20a..01b3d65817 100644 --- a/packages/cht/package.json +++ b/packages/cht/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-cht", "label": "Community Health Toolkit (CHT)", - "version": "1.1.13", + "version": "1.2.0", "description": "OpenFn adaptor for Community Health Toolkit (CHT)", "type": "module", "exports": { diff --git a/packages/claude/CHANGELOG.md b/packages/claude/CHANGELOG.md index 48cb49b112..8f74053923 100644 --- a/packages/claude/CHANGELOG.md +++ b/packages/claude/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-claude +## 1.1.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 1.0.24 ### Patch Changes diff --git a/packages/claude/package.json b/packages/claude/package.json index 0c833db2b3..7d051e196b 100644 --- a/packages/claude/package.json +++ b/packages/claude/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-claude", "label": "Claude", - "version": "1.0.24", + "version": "1.1.0", "description": "OpenFn adaptor for Claude", "type": "module", "exports": { diff --git a/packages/commcare/CHANGELOG.md b/packages/commcare/CHANGELOG.md index c125a0a45b..52db25ef5d 100644 --- a/packages/commcare/CHANGELOG.md +++ b/packages/commcare/CHANGELOG.md @@ -1,5 +1,11 @@ # @openfn/language-commcare +## 4.1.0 + +### Minor Changes + +- bf26881: export `log` function from common + ## 4.0.14 ### Patch Changes diff --git a/packages/commcare/package.json b/packages/commcare/package.json index 0bb5ec5a8a..4e85fc0708 100644 --- a/packages/commcare/package.json +++ b/packages/commcare/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-commcare", "label": "CommCare", - "version": "4.0.14", + "version": "4.1.0", "description": "OpenFn adaptor for CommCare (Dimagi)", "homepage": "https://docs.openfn.org", "repository": { diff --git a/packages/dagu/CHANGELOG.md b/packages/dagu/CHANGELOG.md index 44c934bbd8..fbf876f7af 100644 --- a/packages/dagu/CHANGELOG.md +++ b/packages/dagu/CHANGELOG.md @@ -1,5 +1,11 @@ # @openfn/language-dagu +## 1.3.0 + +### Minor Changes + +- bf26881: export `log` function from common + ## 1.2.2 ### Patch Changes diff --git a/packages/dagu/package.json b/packages/dagu/package.json index ea128010c3..8df5a4662b 100644 --- a/packages/dagu/package.json +++ b/packages/dagu/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-dagu", - "version": "1.2.2", + "version": "1.3.0", "description": "OpenFn dagu adaptor", "type": "module", "exports": { diff --git a/packages/dhis2/CHANGELOG.md b/packages/dhis2/CHANGELOG.md index 9c601597fb..01e93d0cfa 100644 --- a/packages/dhis2/CHANGELOG.md +++ b/packages/dhis2/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-dhis2 +## 8.1.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 8.0.13 ### Patch Changes diff --git a/packages/dhis2/package.json b/packages/dhis2/package.json index b86ceb59c0..e0d13d6240 100644 --- a/packages/dhis2/package.json +++ b/packages/dhis2/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-dhis2", "label": "DHIS2", - "version": "8.0.13", + "version": "8.1.0", "description": "OpenFn adaptor for DHIS2", "homepage": "https://docs.openfn.org", "repository": { diff --git a/packages/divoc/CHANGELOG.md b/packages/divoc/CHANGELOG.md index 7323fdb209..49857fe221 100644 --- a/packages/divoc/CHANGELOG.md +++ b/packages/divoc/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-divoc +## 0.2.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 0.1.19 ### Patch Changes diff --git a/packages/divoc/package.json b/packages/divoc/package.json index 590f66a816..9d0a04ef5d 100644 --- a/packages/divoc/package.json +++ b/packages/divoc/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-divoc", "label": "Divoc", - "version": "0.1.19", + "version": "0.2.0", "description": "OpenFn adaptor for DIVOC", "type": "module", "exports": { diff --git a/packages/dynamics/CHANGELOG.md b/packages/dynamics/CHANGELOG.md index f941a19b5b..8dde34babc 100644 --- a/packages/dynamics/CHANGELOG.md +++ b/packages/dynamics/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-dynamics +## 0.6.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 0.5.32 ### Patch Changes diff --git a/packages/dynamics/package.json b/packages/dynamics/package.json index b2efd34d04..1232d9b8df 100644 --- a/packages/dynamics/package.json +++ b/packages/dynamics/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-dynamics", "label": "Dynamics", - "version": "0.5.32", + "version": "0.6.0", "description": "OpenFn adaptor for Microsoft Dynamics", "main": "dist/index.cjs", "scripts": { diff --git a/packages/erpnext/CHANGELOG.md b/packages/erpnext/CHANGELOG.md index 44619b3bef..c34cba47f0 100644 --- a/packages/erpnext/CHANGELOG.md +++ b/packages/erpnext/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-erpnext +## 1.1.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 1.0.7 ### Patch Changes diff --git a/packages/erpnext/package.json b/packages/erpnext/package.json index 1a575ac625..227dc83f6f 100644 --- a/packages/erpnext/package.json +++ b/packages/erpnext/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-erpnext", "label": "ERPNext", - "version": "1.0.7", + "version": "1.1.0", "description": "OpenFn ERPNext adaptor", "type": "module", "exports": { diff --git a/packages/facebook/CHANGELOG.md b/packages/facebook/CHANGELOG.md index 72c6602294..28d3b5dd00 100644 --- a/packages/facebook/CHANGELOG.md +++ b/packages/facebook/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-facebook +## 0.5.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 0.4.30 ### Patch Changes diff --git a/packages/facebook/package.json b/packages/facebook/package.json index 8cae1553a3..e376e28b3e 100644 --- a/packages/facebook/package.json +++ b/packages/facebook/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-facebook", "label": "Facebook", - "version": "0.4.30", + "version": "0.5.0", "description": "An Language Package for Facebook Messenger API", "main": "dist/index.cjs", "scripts": { diff --git a/packages/fhir-fr/CHANGELOG.md b/packages/fhir-fr/CHANGELOG.md index a8f3a70593..77853a68e1 100644 --- a/packages/fhir-fr/CHANGELOG.md +++ b/packages/fhir-fr/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-fhir-fr +## 1.1.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 1.0.26 ### Patch Changes diff --git a/packages/fhir-fr/package.json b/packages/fhir-fr/package.json index 8d33107bc7..828db21d07 100644 --- a/packages/fhir-fr/package.json +++ b/packages/fhir-fr/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-fhir-fr", "label": "FHIR-FR", - "version": "1.0.26", + "version": "1.1.0", "description": "OpenFn fhir-fr adaptor", "scripts": { "build": "pnpm clean && build-adaptor fhir-fr src ast docs", diff --git a/packages/fhir-ndr-et/CHANGELOG.md b/packages/fhir-ndr-et/CHANGELOG.md index b85a0ce9ea..0473b1e0d5 100644 --- a/packages/fhir-ndr-et/CHANGELOG.md +++ b/packages/fhir-ndr-et/CHANGELOG.md @@ -1,5 +1,18 @@ # @openfn/language-fhir-ndr-et +## 0.2.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + +### Patch Changes + +- Updated dependencies [71115af] +- Updated dependencies [bf26881] + - @openfn/language-fhir@5.1.0 + ## 0.1.29 ### Patch Changes diff --git a/packages/fhir-ndr-et/package.json b/packages/fhir-ndr-et/package.json index f05c93dbff..903e8343d4 100644 --- a/packages/fhir-ndr-et/package.json +++ b/packages/fhir-ndr-et/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-fhir-ndr-et", "label": "FHIR NDR Ehtiopia", - "version": "0.1.29", + "version": "0.2.0", "description": "OpenFn fhir adaptor for NDR HIV in Ehtiopia", "type": "module", "exports": { diff --git a/packages/fhir/CHANGELOG.md b/packages/fhir/CHANGELOG.md index 9629c4dabb..c88c496bcd 100644 --- a/packages/fhir/CHANGELOG.md +++ b/packages/fhir/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-fhir +## 5.1.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 5.0.18 ### Patch Changes diff --git a/packages/fhir/package.json b/packages/fhir/package.json index db2cbebaa7..1f51d30fd1 100644 --- a/packages/fhir/package.json +++ b/packages/fhir/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-fhir", "label": "FHIR", - "version": "5.0.18", + "version": "5.1.0", "description": "A FHIR adaptor for OpenFn", "main": "dist/index.cjs", "scripts": { diff --git a/packages/ghana-bdr/CHANGELOG.md b/packages/ghana-bdr/CHANGELOG.md index 548bdf1fc9..1d866df4b9 100644 --- a/packages/ghana-bdr/CHANGELOG.md +++ b/packages/ghana-bdr/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-ghana-bdr +## 0.2.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 0.1.22 ### Patch Changes diff --git a/packages/ghana-bdr/package.json b/packages/ghana-bdr/package.json index 155653ee82..d3e1c79e3f 100644 --- a/packages/ghana-bdr/package.json +++ b/packages/ghana-bdr/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-ghana-bdr", "label": "Ghana BDR", - "version": "0.1.22", + "version": "0.2.0", "description": "OpenFn adaptor for Ghana birth-death registry (BDR)", "type": "module", "exports": { diff --git a/packages/ghana-nia/CHANGELOG.md b/packages/ghana-nia/CHANGELOG.md index 705cdacd32..206057ae5f 100644 --- a/packages/ghana-nia/CHANGELOG.md +++ b/packages/ghana-nia/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-ghana-nia +## 0.2.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 0.1.22 ### Patch Changes diff --git a/packages/ghana-nia/package.json b/packages/ghana-nia/package.json index c4c634afb3..428820cf25 100644 --- a/packages/ghana-nia/package.json +++ b/packages/ghana-nia/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-ghana-nia", "label": "Ghana NIA", - "version": "0.1.22", + "version": "0.2.0", "description": "OpenFn ghana-nia adaptor", "type": "module", "exports": { diff --git a/packages/gmail/CHANGELOG.md b/packages/gmail/CHANGELOG.md index 1def0e0b77..f9165aabd7 100644 --- a/packages/gmail/CHANGELOG.md +++ b/packages/gmail/CHANGELOG.md @@ -1,5 +1,11 @@ # @openfn/language-gmail +## 2.1.0 + +### Minor Changes + +- bf26881: export `log` function from common + ## 2.0.15 ### Patch Changes diff --git a/packages/gmail/package.json b/packages/gmail/package.json index c8deeb40e6..64d750e68a 100644 --- a/packages/gmail/package.json +++ b/packages/gmail/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-gmail", "label": "Gmail", - "version": "2.0.15", + "version": "2.1.0", "badge": "Community", "description": "OpenFn gmail adaptor", "type": "module", diff --git a/packages/godata/CHANGELOG.md b/packages/godata/CHANGELOG.md index ed4f7b4cae..b03f39ace0 100644 --- a/packages/godata/CHANGELOG.md +++ b/packages/godata/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-godata +## 3.6.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 3.5.18 ### Patch Changes diff --git a/packages/godata/package.json b/packages/godata/package.json index ca5c7c32a6..f108e9b358 100644 --- a/packages/godata/package.json +++ b/packages/godata/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-godata", "label": "GoData", - "version": "3.5.18", + "version": "3.6.0", "description": "An OpenFn adaptor for use with the WHO's GoData API", "main": "dist/index.cjs", "scripts": { diff --git a/packages/googledrive/CHANGELOG.md b/packages/googledrive/CHANGELOG.md index ee59f55baf..e62f73c08e 100644 --- a/packages/googledrive/CHANGELOG.md +++ b/packages/googledrive/CHANGELOG.md @@ -1,5 +1,11 @@ # @openfn/language-googledrive +## 3.1.0 + +### Minor Changes + +- bf26881: export `log` function from common + ## 3.0.6 ### Patch Changes diff --git a/packages/googledrive/package.json b/packages/googledrive/package.json index 30fb1a4ac3..6587fe1002 100644 --- a/packages/googledrive/package.json +++ b/packages/googledrive/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-googledrive", "label": "Google Drive", - "version": "3.0.6", + "version": "3.1.0", "description": "OpenFn Google Drive adaptor", "type": "module", "exports": { diff --git a/packages/googlehealthcare/CHANGELOG.md b/packages/googlehealthcare/CHANGELOG.md index b2530d16c4..67c674d4f4 100644 --- a/packages/googlehealthcare/CHANGELOG.md +++ b/packages/googlehealthcare/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-googlehealthcare +## 1.2.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 1.1.17 ### Patch Changes diff --git a/packages/googlehealthcare/package.json b/packages/googlehealthcare/package.json index 758c0d787e..9c9fbd9580 100644 --- a/packages/googlehealthcare/package.json +++ b/packages/googlehealthcare/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-googlehealthcare", "label": "Google Health Care", - "version": "1.1.17", + "version": "1.2.0", "description": "A Google Health Care language package for use with Open Function", "type": "module", "exports": { diff --git a/packages/googlesheets/CHANGELOG.md b/packages/googlesheets/CHANGELOG.md index e2872e830d..eb9c51eb52 100644 --- a/packages/googlesheets/CHANGELOG.md +++ b/packages/googlesheets/CHANGELOG.md @@ -1,5 +1,11 @@ # @openfn/language-googlesheets +## 4.1.0 + +### Minor Changes + +- bf26881: export `log` function from common + ## 4.0.13 ### Patch Changes diff --git a/packages/googlesheets/package.json b/packages/googlesheets/package.json index affb0ac587..cb842cf489 100644 --- a/packages/googlesheets/package.json +++ b/packages/googlesheets/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-googlesheets", "label": "Google Sheets", - "version": "4.0.13", + "version": "4.1.0", "description": "A Google Sheets Language Pack for OpenFn", "homepage": "https://docs.openfn.org", "repository": { diff --git a/packages/hive/CHANGELOG.md b/packages/hive/CHANGELOG.md index 37c8331773..cbf2e10e8b 100644 --- a/packages/hive/CHANGELOG.md +++ b/packages/hive/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-hive +## 0.4.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 0.3.29 ### Patch Changes diff --git a/packages/hive/package.json b/packages/hive/package.json index 63f5c1bfd6..82dd559357 100644 --- a/packages/hive/package.json +++ b/packages/hive/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-hive", "label": "Apache HIVE", - "version": "0.3.29", + "version": "0.4.0", "description": "An Apache HIVE adaptor for OpenFn", "type": "module", "exports": { diff --git a/packages/http/CHANGELOG.md b/packages/http/CHANGELOG.md index b2c49d90e1..654a0fc91c 100644 --- a/packages/http/CHANGELOG.md +++ b/packages/http/CHANGELOG.md @@ -1,5 +1,11 @@ # @openfn/language-http +## 7.3.0 + +### Minor Changes + +- bf26881: export `log` function from common + ## 7.2.11 ### Patch Changes diff --git a/packages/http/package.json b/packages/http/package.json index aa13fb582c..19f2fdd2a9 100644 --- a/packages/http/package.json +++ b/packages/http/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-http", "label": "HTTP", - "version": "7.2.11", + "version": "7.3.0", "description": "An HTTP request language package for use with Open Function", "homepage": "https://docs.openfn.org", "repository": { diff --git a/packages/hubtel/CHANGELOG.md b/packages/hubtel/CHANGELOG.md index 4293d377f1..ae2844a169 100644 --- a/packages/hubtel/CHANGELOG.md +++ b/packages/hubtel/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-hubtel +## 1.1.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 1.0.21 ### Patch Changes diff --git a/packages/hubtel/package.json b/packages/hubtel/package.json index 9674507c23..ef38e44fd0 100644 --- a/packages/hubtel/package.json +++ b/packages/hubtel/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-hubtel", "label": "Hubtel", - "version": "1.0.21", + "version": "1.1.0", "description": "OpenFn adaptor for Hubtel", "type": "module", "exports": { diff --git a/packages/ibipimo/CHANGELOG.md b/packages/ibipimo/CHANGELOG.md index 6a7de63cd0..39207f908f 100644 --- a/packages/ibipimo/CHANGELOG.md +++ b/packages/ibipimo/CHANGELOG.md @@ -1,5 +1,11 @@ # @openfn/language-ibipimo +## 1.1.0 + +### Minor Changes + +- bf26881: export `log` function from common + ## 1.0.6 ### Patch Changes diff --git a/packages/ibipimo/package.json b/packages/ibipimo/package.json index 1d02f9a9ab..a265b18d88 100644 --- a/packages/ibipimo/package.json +++ b/packages/ibipimo/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-ibipimo", - "version": "1.0.6", + "version": "1.1.0", "description": "OpenFn ibipimo adaptor", "type": "module", "exports": { diff --git a/packages/ihris/CHANGELOG.md b/packages/ihris/CHANGELOG.md index 1fa7585975..1d14c750ab 100644 --- a/packages/ihris/CHANGELOG.md +++ b/packages/ihris/CHANGELOG.md @@ -1,5 +1,11 @@ # @openfn/language-ihris +## 1.2.0 + +### Minor Changes + +- bf26881: export `log` function from common + ## 1.1.2 ### Patch Changes diff --git a/packages/ihris/package.json b/packages/ihris/package.json index 9e849c4c44..31506c8e5b 100644 --- a/packages/ihris/package.json +++ b/packages/ihris/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-ihris", - "version": "1.1.2", + "version": "1.2.0", "description": "OpenFn adaptor for iHRIS ", "type": "module", "exports": { diff --git a/packages/inform/CHANGELOG.md b/packages/inform/CHANGELOG.md index 777467a987..fd7c34a99b 100644 --- a/packages/inform/CHANGELOG.md +++ b/packages/inform/CHANGELOG.md @@ -1,5 +1,11 @@ # @openfn/language-inform +## 1.3.0 + +### Minor Changes + +- bf26881: export `log` function from common + ## 1.2.6 ### Patch Changes diff --git a/packages/inform/package.json b/packages/inform/package.json index 513459806c..2ba0d05747 100644 --- a/packages/inform/package.json +++ b/packages/inform/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-inform", - "version": "1.2.6", + "version": "1.3.0", "description": "OpenFn inform adaptor for UNICEF InForm platform operations", "type": "module", "exports": { diff --git a/packages/intuit/CHANGELOG.md b/packages/intuit/CHANGELOG.md index 370b700edb..f3a756edfa 100644 --- a/packages/intuit/CHANGELOG.md +++ b/packages/intuit/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-intuit +## 1.1.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 1.0.20 ### Patch Changes diff --git a/packages/intuit/package.json b/packages/intuit/package.json index 9e549bcf8a..444d0ac35c 100644 --- a/packages/intuit/package.json +++ b/packages/intuit/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-intuit", "label": "Intuit", - "version": "1.0.20", + "version": "1.1.0", "description": "OpenFn adaptor for Intuit (QuickBooks)", "type": "module", "exports": { diff --git a/packages/khanacademy/CHANGELOG.md b/packages/khanacademy/CHANGELOG.md index a32599352d..a1d5a03ea1 100644 --- a/packages/khanacademy/CHANGELOG.md +++ b/packages/khanacademy/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-khanacademy +## 0.6.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 0.5.31 ### Patch Changes diff --git a/packages/khanacademy/package.json b/packages/khanacademy/package.json index 1556a7e6da..8082b71a00 100644 --- a/packages/khanacademy/package.json +++ b/packages/khanacademy/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-khanacademy", "label": "Khan Academy", - "version": "0.5.31", + "version": "0.6.0", "description": "A Khan Academy Language Pack for OpenFn", "main": "dist/index.cjs", "scripts": { diff --git a/packages/kobotoolbox/CHANGELOG.md b/packages/kobotoolbox/CHANGELOG.md index cfeb5e7497..dce070337a 100644 --- a/packages/kobotoolbox/CHANGELOG.md +++ b/packages/kobotoolbox/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-kobotoolbox +## 4.3.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 4.2.14 ### Patch Changes diff --git a/packages/kobotoolbox/package.json b/packages/kobotoolbox/package.json index 096265b13c..82a40cbd74 100644 --- a/packages/kobotoolbox/package.json +++ b/packages/kobotoolbox/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-kobotoolbox", "label": "KoboToolbox", - "version": "4.2.14", + "version": "4.3.0", "description": "OpenFn adaptor for KoboToolbox", "homepage": "https://docs.openfn.org", "repository": { diff --git a/packages/lamisplus/CHANGELOG.md b/packages/lamisplus/CHANGELOG.md index 924d6da804..5b99c975cb 100644 --- a/packages/lamisplus/CHANGELOG.md +++ b/packages/lamisplus/CHANGELOG.md @@ -1,5 +1,11 @@ # @openfn/language-lamisplus +## 0.2.0 + +### Minor Changes + +- bf26881: export `log` function from common + ## 0.1.4 ### Patch Changes diff --git a/packages/lamisplus/package.json b/packages/lamisplus/package.json index 1902b39d9f..6a9b4cd8b9 100644 --- a/packages/lamisplus/package.json +++ b/packages/lamisplus/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-lamisplus", - "version": "0.1.4", + "version": "0.2.0", "description": "OpenFn lamisplus adaptor", "type": "module", "exports": { diff --git a/packages/magpi/CHANGELOG.md b/packages/magpi/CHANGELOG.md index 268d76d8f9..c0151abb80 100644 --- a/packages/magpi/CHANGELOG.md +++ b/packages/magpi/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-magpi +## 1.3.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 1.2.12 ### Patch Changes diff --git a/packages/magpi/package.json b/packages/magpi/package.json index 8b5e985931..d82442fe1d 100644 --- a/packages/magpi/package.json +++ b/packages/magpi/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-magpi", "label": "Magpi", - "version": "1.2.12", + "version": "1.3.0", "description": "OpenFn adaptor for Magpi", "main": "dist/index.cjs", "scripts": { diff --git a/packages/mailchimp/CHANGELOG.md b/packages/mailchimp/CHANGELOG.md index 2d8ea212dc..f52e51f240 100644 --- a/packages/mailchimp/CHANGELOG.md +++ b/packages/mailchimp/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-mailchimp +## 1.1.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 1.0.32 ### Patch Changes diff --git a/packages/mailchimp/package.json b/packages/mailchimp/package.json index 3bf925c559..28118bd3e0 100644 --- a/packages/mailchimp/package.json +++ b/packages/mailchimp/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-mailchimp", "label": "Mailchimp", - "version": "1.0.32", + "version": "1.1.0", "description": "An OpenFn adaptor for use with Mailchimp", "main": "dist/index.cjs", "scripts": { diff --git a/packages/mailgun/CHANGELOG.md b/packages/mailgun/CHANGELOG.md index bebc71ab09..70976228e8 100644 --- a/packages/mailgun/CHANGELOG.md +++ b/packages/mailgun/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-mailgun +## 0.7.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 0.6.7 ### Patch Changes diff --git a/packages/mailgun/package.json b/packages/mailgun/package.json index bc85626be7..1355d50946 100644 --- a/packages/mailgun/package.json +++ b/packages/mailgun/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-mailgun", "label": "Mailgun", - "version": "0.6.7", + "version": "0.7.0", "description": "mailgun Language Pack for OpenFn", "main": "dist/index.cjs", "scripts": { diff --git a/packages/maximo/CHANGELOG.md b/packages/maximo/CHANGELOG.md index 089a24e9ed..f67c948f8c 100644 --- a/packages/maximo/CHANGELOG.md +++ b/packages/maximo/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-maximo +## 0.6.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 0.5.33 ### Patch Changes diff --git a/packages/maximo/package.json b/packages/maximo/package.json index 06462ea693..023452c1ab 100644 --- a/packages/maximo/package.json +++ b/packages/maximo/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-maximo", "label": "Maximo", - "version": "0.5.33", + "version": "0.6.0", "description": "OpenFn adaptor for IBM Maximo EAM", "main": "dist/index.cjs", "scripts": { diff --git a/packages/medicmobile/CHANGELOG.md b/packages/medicmobile/CHANGELOG.md index 2139ea0365..d3c4f0c025 100644 --- a/packages/medicmobile/CHANGELOG.md +++ b/packages/medicmobile/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-medicmobile +## 0.6.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 0.5.30 ### Patch Changes diff --git a/packages/medicmobile/package.json b/packages/medicmobile/package.json index 3d270c94c8..85db7a6dcc 100644 --- a/packages/medicmobile/package.json +++ b/packages/medicmobile/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-medicmobile", "label": "Medic Mobile", - "version": "0.5.30", + "version": "0.6.0", "description": "OpenFn adaptor for Medic Mobile", "main": "dist/index.cjs", "scripts": { diff --git a/packages/memento/CHANGELOG.md b/packages/memento/CHANGELOG.md index 8c66028be1..a4da29f32a 100644 --- a/packages/memento/CHANGELOG.md +++ b/packages/memento/CHANGELOG.md @@ -1,5 +1,11 @@ # @openfn/language-memento +## 1.1.0 + +### Minor Changes + +- bf26881: export `log` function from common + ## 1.0.9 ### Patch Changes diff --git a/packages/memento/package.json b/packages/memento/package.json index 2ee9f0f354..6597d8800a 100644 --- a/packages/memento/package.json +++ b/packages/memento/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-memento", - "version": "1.0.9", + "version": "1.1.0", "description": "OpenFn adaptor for Memento Database", "type": "module", "exports": { diff --git a/packages/minio/CHANGELOG.md b/packages/minio/CHANGELOG.md index 942692bb91..fb3d6027ee 100644 --- a/packages/minio/CHANGELOG.md +++ b/packages/minio/CHANGELOG.md @@ -1,5 +1,11 @@ # @openfn/language-minio +## 1.1.0 + +### Minor Changes + +- bf26881: export `log` function from common + ## 1.0.3 ### Patch Changes diff --git a/packages/minio/package.json b/packages/minio/package.json index 42cdcb032f..0e9abe2396 100644 --- a/packages/minio/package.json +++ b/packages/minio/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-minio", - "version": "1.0.3", + "version": "1.1.0", "description": "OpenFn minio adaptor", "type": "module", "exports": { diff --git a/packages/mogli/CHANGELOG.md b/packages/mogli/CHANGELOG.md index cd6891d2c3..c013355cfe 100644 --- a/packages/mogli/CHANGELOG.md +++ b/packages/mogli/CHANGELOG.md @@ -1,5 +1,11 @@ v0.1.6 +## 0.7.0 + +### Minor Changes + +- bf26881: export `log` function from common + ## 0.6.15 ### Patch Changes diff --git a/packages/mogli/package.json b/packages/mogli/package.json index 79a00ca6b8..3c702b71bc 100644 --- a/packages/mogli/package.json +++ b/packages/mogli/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-mogli", "label": "Mogli", - "version": "0.6.15", + "version": "0.7.0", "description": "OpenFn adaptor for Mogli SMS", "main": "dist/index.cjs", "scripts": { diff --git a/packages/mojatax/CHANGELOG.md b/packages/mojatax/CHANGELOG.md index d70c501056..02fad61452 100644 --- a/packages/mojatax/CHANGELOG.md +++ b/packages/mojatax/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-mojatax +## 1.1.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 1.0.24 ### Patch Changes diff --git a/packages/mojatax/package.json b/packages/mojatax/package.json index 5a3ca06165..1d708a1fc6 100644 --- a/packages/mojatax/package.json +++ b/packages/mojatax/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-mojatax", "label": "MojaTax", - "version": "1.0.24", + "version": "1.1.0", "description": "OpenFn adaptor for MojaTax", "type": "module", "exports": { diff --git a/packages/mongodb/CHANGELOG.md b/packages/mongodb/CHANGELOG.md index 3edb12f722..66101ed21b 100644 --- a/packages/mongodb/CHANGELOG.md +++ b/packages/mongodb/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-mongodb +## 2.2.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 2.1.30 ### Patch Changes diff --git a/packages/mongodb/package.json b/packages/mongodb/package.json index e0694f7c06..a8935b9ca6 100644 --- a/packages/mongodb/package.json +++ b/packages/mongodb/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-mongodb", "label": "MongoDB", - "version": "2.1.30", + "version": "2.2.0", "description": "A language package for working with MongoDb", "main": "dist/index.cjs", "scripts": { diff --git a/packages/monnify/CHANGELOG.md b/packages/monnify/CHANGELOG.md index 727df3c8c3..9909ba5f10 100644 --- a/packages/monnify/CHANGELOG.md +++ b/packages/monnify/CHANGELOG.md @@ -1,5 +1,11 @@ # @openfn/language-monnify +## 1.1.0 + +### Minor Changes + +- bf26881: export `log` function from common + ## 1.0.6 ### Patch Changes diff --git a/packages/monnify/package.json b/packages/monnify/package.json index 8a17ed7450..6d32474228 100644 --- a/packages/monnify/package.json +++ b/packages/monnify/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-monnify", - "version": "1.0.6", + "version": "1.1.0", "description": "OpenFn monnify adaptor", "type": "module", "exports": { diff --git a/packages/motherduck/CHANGELOG.md b/packages/motherduck/CHANGELOG.md index 98d21cb87d..7b242a5e82 100644 --- a/packages/motherduck/CHANGELOG.md +++ b/packages/motherduck/CHANGELOG.md @@ -1,5 +1,11 @@ # @openfn/language-motherduck +## 1.1.0 + +### Minor Changes + +- bf26881: export `log` function from common + ## 1.0.8 ### Patch Changes diff --git a/packages/motherduck/package.json b/packages/motherduck/package.json index 9755702402..57f1051d58 100644 --- a/packages/motherduck/package.json +++ b/packages/motherduck/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-motherduck", - "version": "1.0.8", + "version": "1.1.0", "description": "OpenFn MotherDuck cloud database adaptor", "type": "module", "exports": { diff --git a/packages/mpesa/CHANGELOG.md b/packages/mpesa/CHANGELOG.md index e2baa8b084..60b1000e1c 100644 --- a/packages/mpesa/CHANGELOG.md +++ b/packages/mpesa/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-mpesa +## 1.2.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 1.1.14 ### Patch Changes diff --git a/packages/mpesa/package.json b/packages/mpesa/package.json index 88ab005f04..b2ee3a7d08 100644 --- a/packages/mpesa/package.json +++ b/packages/mpesa/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-mpesa", "label": "Mpesa", - "version": "1.1.14", + "version": "1.2.0", "description": "OpenFn adaptor for M-Pesa", "type": "module", "exports": { diff --git a/packages/msgraph/CHANGELOG.md b/packages/msgraph/CHANGELOG.md index d67d03003d..da978fa8b9 100644 --- a/packages/msgraph/CHANGELOG.md +++ b/packages/msgraph/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-msgraph +## 0.9.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 0.8.14 ### Patch Changes diff --git a/packages/msgraph/package.json b/packages/msgraph/package.json index 5db76cf6dd..9b4415a05e 100644 --- a/packages/msgraph/package.json +++ b/packages/msgraph/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-msgraph", "label": "Microsoft Graph", - "version": "0.8.14", + "version": "0.9.0", "description": "Microsoft Graph Language Pack for OpenFn", "type": "module", "exports": { diff --git a/packages/mssql/CHANGELOG.md b/packages/mssql/CHANGELOG.md index 8180450910..a74a5bead7 100644 --- a/packages/mssql/CHANGELOG.md +++ b/packages/mssql/CHANGELOG.md @@ -1,5 +1,11 @@ # @openfn/language-mssql +## 7.1.0 + +### Minor Changes + +- bf26881: export `log` function from common + ## 7.0.7 ### Patch Changes diff --git a/packages/mssql/package.json b/packages/mssql/package.json index 2e1970234a..12e0496199 100644 --- a/packages/mssql/package.json +++ b/packages/mssql/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-mssql", "label": "MSSQL", - "version": "7.0.7", + "version": "7.1.0", "description": "A Microsoft SQL language pack for OpenFn", "exports": { ".": { diff --git a/packages/msupply/CHANGELOG.md b/packages/msupply/CHANGELOG.md index c9915ddf3b..c59293e3ca 100644 --- a/packages/msupply/CHANGELOG.md +++ b/packages/msupply/CHANGELOG.md @@ -1,5 +1,11 @@ # @openfn/language-msupply +## 1.1.0 + +### Minor Changes + +- bf26881: export `log` function from common + ## 1.0.18 ### Patch Changes diff --git a/packages/msupply/package.json b/packages/msupply/package.json index 5568d12d2c..1fae3ef4b2 100644 --- a/packages/msupply/package.json +++ b/packages/msupply/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-msupply", "label": "mSupply", - "version": "1.0.18", + "version": "1.1.0", "description": "OpenFn adaptor for mSupply", "type": "module", "exports": { diff --git a/packages/mtn-momo/CHANGELOG.md b/packages/mtn-momo/CHANGELOG.md index 13d6095227..777cbee05a 100644 --- a/packages/mtn-momo/CHANGELOG.md +++ b/packages/mtn-momo/CHANGELOG.md @@ -1,5 +1,11 @@ # @openfn/language-mtn-momo +## 1.2.0 + +### Minor Changes + +- bf26881: export `log` function from common + ## 1.1.13 ### Patch Changes diff --git a/packages/mtn-momo/package.json b/packages/mtn-momo/package.json index d0210d68ff..7ecbcb71ae 100644 --- a/packages/mtn-momo/package.json +++ b/packages/mtn-momo/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-mtn-momo", - "version": "1.1.13", + "version": "1.2.0", "description": "OpenFn mtn-momo adaptor for MTN Mobile Money payment operations", "type": "module", "exports": { diff --git a/packages/mysql/CHANGELOG.md b/packages/mysql/CHANGELOG.md index 7ed4f9bf89..b7c9a70176 100644 --- a/packages/mysql/CHANGELOG.md +++ b/packages/mysql/CHANGELOG.md @@ -1,5 +1,11 @@ # @openfn/language-mysql +## 4.1.0 + +### Minor Changes + +- bf26881: export `log` function from common + ## 4.0.6 ### Patch Changes diff --git a/packages/mysql/package.json b/packages/mysql/package.json index 31e1bd1208..8770d68c6c 100644 --- a/packages/mysql/package.json +++ b/packages/mysql/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-mysql", "label": "MySQL", - "version": "4.0.6", + "version": "4.1.0", "description": "A MySQL Language Pack for OpenFn", "homepage": "https://docs.openfn.org", "main": "dist/index.cjs", diff --git a/packages/nexmo/CHANGELOG.md b/packages/nexmo/CHANGELOG.md index 046008c4d6..7e228d7efc 100644 --- a/packages/nexmo/CHANGELOG.md +++ b/packages/nexmo/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-nexmo +## 0.6.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 0.5.34 ### Patch Changes diff --git a/packages/nexmo/package.json b/packages/nexmo/package.json index cca799c150..b4c25b7e1e 100644 --- a/packages/nexmo/package.json +++ b/packages/nexmo/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-nexmo", "label": "Nexmo", - "version": "0.5.34", + "version": "0.6.0", "description": "OpenFn adaptor for Nexmo", "main": "dist/index.cjs", "scripts": { diff --git a/packages/ocl/CHANGELOG.md b/packages/ocl/CHANGELOG.md index 271d02ad20..b286d67f58 100644 --- a/packages/ocl/CHANGELOG.md +++ b/packages/ocl/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-ocl +## 1.3.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 1.2.31 ### Patch Changes diff --git a/packages/ocl/package.json b/packages/ocl/package.json index d926e74c2d..298a37701f 100644 --- a/packages/ocl/package.json +++ b/packages/ocl/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-ocl", "label": "OCL", - "version": "1.2.31", + "version": "1.3.0", "description": "OpenFn adaptor for Open Concept Lab (ORL) terminology services", "main": "dist/index.cjs", "scripts": { diff --git a/packages/odk/CHANGELOG.md b/packages/odk/CHANGELOG.md index 6636eacde2..9f74cb7d80 100644 --- a/packages/odk/CHANGELOG.md +++ b/packages/odk/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-odk +## 3.1.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 3.0.30 ### Patch Changes diff --git a/packages/odk/package.json b/packages/odk/package.json index 1ef4a2290c..9dfa346585 100644 --- a/packages/odk/package.json +++ b/packages/odk/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-odk", "label": "ODK", - "version": "3.0.30", + "version": "3.1.0", "description": "OpenFn adaptor for Open Data Kit (ODK) data collection platform", "type": "module", "exports": { diff --git a/packages/odoo/CHANGELOG.md b/packages/odoo/CHANGELOG.md index abb7961ae5..43597ad869 100644 --- a/packages/odoo/CHANGELOG.md +++ b/packages/odoo/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-odoo +## 2.2.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 2.1.12 ### Patch Changes diff --git a/packages/odoo/package.json b/packages/odoo/package.json index 941cabde91..2270b8a90f 100644 --- a/packages/odoo/package.json +++ b/packages/odoo/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-odoo", "label": "Odoo", - "version": "2.1.12", + "version": "2.2.0", "description": "OpenFn adaptor for Odoo (ERP)", "type": "module", "exports": { diff --git a/packages/openboxes/CHANGELOG.md b/packages/openboxes/CHANGELOG.md index b419fb14e7..917fc162bc 100644 --- a/packages/openboxes/CHANGELOG.md +++ b/packages/openboxes/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-openboxes +## 1.1.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 1.0.18 ### Patch Changes diff --git a/packages/openboxes/package.json b/packages/openboxes/package.json index bd720c6bf2..ca100b541f 100644 --- a/packages/openboxes/package.json +++ b/packages/openboxes/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-openboxes", "label": "OpenBoxes", - "version": "1.0.18", + "version": "1.1.0", "description": "OpenFn adaptor for OpenBoxes", "type": "module", "exports": { diff --git a/packages/opencrvs/CHANGELOG.md b/packages/opencrvs/CHANGELOG.md index 4b7fe12dbd..d3cb6f8072 100644 --- a/packages/opencrvs/CHANGELOG.md +++ b/packages/opencrvs/CHANGELOG.md @@ -1,5 +1,11 @@ # @openfn/language-opencrvs +## 1.2.0 + +### Minor Changes + +- bf26881: export `log` function from common + ## 1.1.1 ### Patch Changes diff --git a/packages/opencrvs/package.json b/packages/opencrvs/package.json index a1f371f033..3b5ff7d3e5 100644 --- a/packages/opencrvs/package.json +++ b/packages/opencrvs/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-opencrvs", - "version": "1.1.1", + "version": "1.2.0", "description": "OpenFn adaptor for OpenCRVS", "type": "module", "exports": { diff --git a/packages/openelis/CHANGELOG.md b/packages/openelis/CHANGELOG.md index fbaeb1b3bc..308070e2a4 100644 --- a/packages/openelis/CHANGELOG.md +++ b/packages/openelis/CHANGELOG.md @@ -1,5 +1,11 @@ # @openfn/language-openelis +## 1.1.0 + +### Minor Changes + +- bf26881: export `log` function from common + ## 1.0.4 ### Patch Changes diff --git a/packages/openelis/package.json b/packages/openelis/package.json index 723cca123d..d60df4f142 100644 --- a/packages/openelis/package.json +++ b/packages/openelis/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-openelis", - "version": "1.0.4", + "version": "1.1.0", "description": "OpenFn openelis adaptor", "type": "module", "exports": { diff --git a/packages/openfn/CHANGELOG.md b/packages/openfn/CHANGELOG.md index aad0c5960d..ae6de7e2d0 100644 --- a/packages/openfn/CHANGELOG.md +++ b/packages/openfn/CHANGELOG.md @@ -1,5 +1,11 @@ # @openfn/language-openfn +## 3.1.0 + +### Minor Changes + +- bf26881: export `log` function from common + ## 3.0.14 ### Patch Changes diff --git a/packages/openfn/package.json b/packages/openfn/package.json index a3e84cf7ed..c0e5c894c6 100644 --- a/packages/openfn/package.json +++ b/packages/openfn/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-openfn", "label": "OpenFn", - "version": "3.0.14", + "version": "3.1.0", "description": "OpenFn adaptor for accessing the OpenFn web API", "homepage": "https://docs.openfn.org", "repository": { diff --git a/packages/openhim/CHANGELOG.md b/packages/openhim/CHANGELOG.md index 623e8757e2..23ad1c3e02 100644 --- a/packages/openhim/CHANGELOG.md +++ b/packages/openhim/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-openhim +## 2.1.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 2.0.12 ### Patch Changes diff --git a/packages/openhim/package.json b/packages/openhim/package.json index 0f655fd3bc..421c2549c8 100644 --- a/packages/openhim/package.json +++ b/packages/openhim/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-openhim", "label": "OpenHIM", - "version": "2.0.12", + "version": "2.1.0", "description": "OpenFn adaptor for OpenHIM", "main": "dist/index.cjs", "scripts": { diff --git a/packages/openimis/CHANGELOG.md b/packages/openimis/CHANGELOG.md index ffcab1eb33..4d3a1d96a2 100644 --- a/packages/openimis/CHANGELOG.md +++ b/packages/openimis/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-openimis +## 3.1.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 3.0.11 ### Patch Changes diff --git a/packages/openimis/package.json b/packages/openimis/package.json index f4c7a364ef..4707bb19aa 100644 --- a/packages/openimis/package.json +++ b/packages/openimis/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-openimis", "label": "OpenIMIS", - "version": "3.0.11", + "version": "3.1.0", "description": "OpenFn adaptor for OpenIMIS", "type": "module", "exports": { diff --git a/packages/openlmis/CHANGELOG.md b/packages/openlmis/CHANGELOG.md index f736b7eb0d..66b522519b 100644 --- a/packages/openlmis/CHANGELOG.md +++ b/packages/openlmis/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-openlmis +## 1.2.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 1.1.13 ### Patch Changes diff --git a/packages/openlmis/package.json b/packages/openlmis/package.json index 18e2b13259..9250131e59 100644 --- a/packages/openlmis/package.json +++ b/packages/openlmis/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-openlmis", "label": "OpenLMIS", - "version": "1.1.13", + "version": "1.2.0", "description": "OpenFn adaptor for OpenLMIS", "type": "module", "exports": { diff --git a/packages/openmrs/CHANGELOG.md b/packages/openmrs/CHANGELOG.md index 87e6b81011..87e8c9ed12 100644 --- a/packages/openmrs/CHANGELOG.md +++ b/packages/openmrs/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-openmrs +## 5.4.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 5.3.12 ### Patch Changes diff --git a/packages/openmrs/package.json b/packages/openmrs/package.json index 35d383da40..d834e25181 100644 --- a/packages/openmrs/package.json +++ b/packages/openmrs/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-openmrs", "label": "OpenMRS", - "version": "5.3.12", + "version": "5.4.0", "description": "OpenFn adaptor for OpenMRS", "homepage": "https://docs.openfn.org", "repository": { diff --git a/packages/openspp/CHANGELOG.md b/packages/openspp/CHANGELOG.md index 1e409c24b2..b3aaf716b7 100644 --- a/packages/openspp/CHANGELOG.md +++ b/packages/openspp/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-openspp +## 3.1.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 3.0.11 ### Patch Changes diff --git a/packages/openspp/package.json b/packages/openspp/package.json index f2b88ba59f..20732ff783 100644 --- a/packages/openspp/package.json +++ b/packages/openspp/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-openspp", "label": "OpenSPP", - "version": "3.0.11", + "version": "3.1.0", "description": "OpenFn adaptor for working with the OpenSPP json rpc", "type": "module", "exports": { diff --git a/packages/pdfshift/CHANGELOG.md b/packages/pdfshift/CHANGELOG.md index ae3548255a..31d971ce80 100644 --- a/packages/pdfshift/CHANGELOG.md +++ b/packages/pdfshift/CHANGELOG.md @@ -1,5 +1,11 @@ # @openfn/language-pdfshift +## 1.1.0 + +### Minor Changes + +- bf26881: export `log` function from common + ## 1.0.12 ### Patch Changes diff --git a/packages/pdfshift/package.json b/packages/pdfshift/package.json index 99ba8ccbf9..a70cab950d 100644 --- a/packages/pdfshift/package.json +++ b/packages/pdfshift/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-pdfshift", - "version": "1.0.12", + "version": "1.1.0", "description": "OpenFn adaptor for generating PDF documents", "badge": "Core", "type": "module", diff --git a/packages/pesapal/CHANGELOG.md b/packages/pesapal/CHANGELOG.md index 3b77bdbc3d..5766060ef9 100644 --- a/packages/pesapal/CHANGELOG.md +++ b/packages/pesapal/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-pesapal +## 1.2.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 1.1.15 ### Patch Changes diff --git a/packages/pesapal/package.json b/packages/pesapal/package.json index b63e7e7c5d..7165a2f329 100644 --- a/packages/pesapal/package.json +++ b/packages/pesapal/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-pesapal", "label": "Pesapal", - "version": "1.1.15", + "version": "1.2.0", "description": "OpenFn adaptor for Pesapal", "type": "module", "exports": { diff --git a/packages/ping/CHANGELOG.md b/packages/ping/CHANGELOG.md index 90f0e9b404..1eef1d1de9 100644 --- a/packages/ping/CHANGELOG.md +++ b/packages/ping/CHANGELOG.md @@ -1,5 +1,11 @@ # @openfn/language-ping +## 1.1.0 + +### Minor Changes + +- bf26881: export `log` function from common + ## 1.0.5 ### Patch Changes diff --git a/packages/ping/package.json b/packages/ping/package.json index e486fb97d8..0c8ab801e6 100644 --- a/packages/ping/package.json +++ b/packages/ping/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-ping", - "version": "1.0.5", + "version": "1.1.0", "description": "OpenFn ping adaptor", "type": "module", "exports": { diff --git a/packages/postgresql/CHANGELOG.md b/packages/postgresql/CHANGELOG.md index cb3920a457..adb4f7ace0 100644 --- a/packages/postgresql/CHANGELOG.md +++ b/packages/postgresql/CHANGELOG.md @@ -1,5 +1,11 @@ # @openfn/language-postgresql +## 8.1.0 + +### Minor Changes + +- bf26881: export `log` function from common + ## 8.0.5 ### Patch Changes diff --git a/packages/postgresql/package.json b/packages/postgresql/package.json index e1a2662d06..d368716ca0 100644 --- a/packages/postgresql/package.json +++ b/packages/postgresql/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-postgresql", "label": "PostgreSQL", - "version": "8.0.5", + "version": "8.1.0", "description": "OpenFn adaptor for PostgreSQL", "homepage": "https://docs.openfn.org", "exports": { diff --git a/packages/primero/CHANGELOG.md b/packages/primero/CHANGELOG.md index 05636fcdd9..05993ee096 100644 --- a/packages/primero/CHANGELOG.md +++ b/packages/primero/CHANGELOG.md @@ -1,5 +1,11 @@ # @openfn/language-primero +## 4.1.0 + +### Minor Changes + +- bf26881: export `log` function from common + ## 4.0.13 ### Patch Changes diff --git a/packages/primero/package.json b/packages/primero/package.json index 884afbc540..6bff471359 100644 --- a/packages/primero/package.json +++ b/packages/primero/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-primero", "label": "Primero", - "version": "4.0.13", + "version": "4.1.0", "description": "A UNICEF Primero language package for use with Open Function", "exports": { ".": { diff --git a/packages/progres/CHANGELOG.md b/packages/progres/CHANGELOG.md index 27613bae6e..4daaa805d7 100644 --- a/packages/progres/CHANGELOG.md +++ b/packages/progres/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-progres +## 2.1.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 2.0.14 ### Patch Changes diff --git a/packages/progres/package.json b/packages/progres/package.json index 1b5c22790f..13442d89df 100644 --- a/packages/progres/package.json +++ b/packages/progres/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-progres", "label": "ProGres", - "version": "2.0.14", + "version": "2.1.0", "description": "OpenFn adaptor for working with UNHCR's ProGres case management system", "homepage": "https://docs.openfn.org", "repository": { diff --git a/packages/puntosolidario-rd/CHANGELOG.md b/packages/puntosolidario-rd/CHANGELOG.md index 3b9a49f3d2..5f6e7f755e 100644 --- a/packages/puntosolidario-rd/CHANGELOG.md +++ b/packages/puntosolidario-rd/CHANGELOG.md @@ -1,5 +1,11 @@ # @openfn/language-puntosolidario-rd +## 1.1.0 + +### Minor Changes + +- bf26881: export `log` function from common + ## 1.0.1 ### Patch Changes diff --git a/packages/puntosolidario-rd/package.json b/packages/puntosolidario-rd/package.json index 50cc2806cc..b6e16b80ab 100644 --- a/packages/puntosolidario-rd/package.json +++ b/packages/puntosolidario-rd/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-puntosolidario-rd", - "version": "1.0.1", + "version": "1.1.0", "description": "OpenFn puntosolidario-rd adaptor", "type": "module", "exports": { diff --git a/packages/rapidpro/CHANGELOG.md b/packages/rapidpro/CHANGELOG.md index e2f1cf15ef..6c807f02e0 100644 --- a/packages/rapidpro/CHANGELOG.md +++ b/packages/rapidpro/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-rapidpro +## 2.1.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 2.0.13 ### Patch Changes diff --git a/packages/rapidpro/package.json b/packages/rapidpro/package.json index b67b937e18..fb150f3da0 100644 --- a/packages/rapidpro/package.json +++ b/packages/rapidpro/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-rapidpro", "label": "RapidPro", - "version": "2.0.13", + "version": "2.1.0", "description": "OpenFn adaptor for RapidPro", "main": "dist/index.cjs", "scripts": { diff --git a/packages/redis/CHANGELOG.md b/packages/redis/CHANGELOG.md index 729097e4da..c1f096498b 100644 --- a/packages/redis/CHANGELOG.md +++ b/packages/redis/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-redis +## 1.4.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 1.3.20 ### Patch Changes diff --git a/packages/redis/package.json b/packages/redis/package.json index a898162e2d..0caae7bfed 100644 --- a/packages/redis/package.json +++ b/packages/redis/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-redis", "label": "Redis", - "version": "1.3.20", + "version": "1.4.0", "description": "OpenFn adaptor for Redis", "type": "module", "exports": { diff --git a/packages/resourcemap/CHANGELOG.md b/packages/resourcemap/CHANGELOG.md index 64647110d5..c7b3a16534 100644 --- a/packages/resourcemap/CHANGELOG.md +++ b/packages/resourcemap/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-resourcemap +## 0.5.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 0.4.31 ### Patch Changes diff --git a/packages/resourcemap/package.json b/packages/resourcemap/package.json index e57a8e3e0b..2b04d32150 100644 --- a/packages/resourcemap/package.json +++ b/packages/resourcemap/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-resourcemap", "label": "Resourcemap", - "version": "0.4.31", + "version": "0.5.0", "description": "OpenFn Resourcemap adaptor for geospatial platform operations", "main": "dist/index.cjs", "scripts": { diff --git a/packages/salesforce/CHANGELOG.md b/packages/salesforce/CHANGELOG.md index c4bad0fa9c..a95774142f 100644 --- a/packages/salesforce/CHANGELOG.md +++ b/packages/salesforce/CHANGELOG.md @@ -1,5 +1,11 @@ # @openfn/language-salesforce +## 9.1.0 + +### Minor Changes + +- bf26881: export `log` function from common + ## 9.0.9 ### Patch Changes diff --git a/packages/salesforce/package.json b/packages/salesforce/package.json index 6c9e311eb9..ea130721c5 100644 --- a/packages/salesforce/package.json +++ b/packages/salesforce/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-salesforce", "label": "Salesforce", - "version": "9.0.9", + "version": "9.1.0", "description": "OpenFn adaptor for Salesforce", "homepage": "https://docs.openfn.org", "exports": { diff --git a/packages/satusehat/CHANGELOG.md b/packages/satusehat/CHANGELOG.md index 98e586a7df..d532788759 100644 --- a/packages/satusehat/CHANGELOG.md +++ b/packages/satusehat/CHANGELOG.md @@ -1,5 +1,11 @@ # @openfn/language-satusehat +## 3.1.0 + +### Minor Changes + +- bf26881: export `log` function from common + ## 3.0.13 ### Patch Changes diff --git a/packages/satusehat/package.json b/packages/satusehat/package.json index c56d92754e..73875e7ec1 100644 --- a/packages/satusehat/package.json +++ b/packages/satusehat/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-satusehat", "label": "Satusehat", - "version": "3.0.13", + "version": "3.1.0", "description": "OpenFn adaptor for SATUSEHAT", "type": "module", "exports": { diff --git a/packages/senaite/CHANGELOG.md b/packages/senaite/CHANGELOG.md index 853ef93e8a..47e248daa9 100644 --- a/packages/senaite/CHANGELOG.md +++ b/packages/senaite/CHANGELOG.md @@ -1,5 +1,11 @@ # @openfn/language-senaite +## 1.1.0 + +### Minor Changes + +- bf26881: export `log` function from common + ## 1.0.17 ### Patch Changes diff --git a/packages/senaite/package.json b/packages/senaite/package.json index e6adf1522a..d77270c5be 100644 --- a/packages/senaite/package.json +++ b/packages/senaite/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-senaite", "label": "Senaite", - "version": "1.0.17", + "version": "1.1.0", "description": "OpenFn senaite adaptor for laboratory information management", "type": "module", "exports": { diff --git a/packages/sftp/CHANGELOG.md b/packages/sftp/CHANGELOG.md index 588ef3b2bb..209977ea12 100644 --- a/packages/sftp/CHANGELOG.md +++ b/packages/sftp/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-sftp +## 3.1.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 3.0.13 ### Patch Changes diff --git a/packages/sftp/package.json b/packages/sftp/package.json index 199c052bea..0cc32b1d7c 100644 --- a/packages/sftp/package.json +++ b/packages/sftp/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-sftp", "label": "SFTP", - "version": "3.0.13", + "version": "3.1.0", "description": "OpenFn adaptor for SFTP", "homepage": "https://docs.openfn.org", "repository": { diff --git a/packages/siuben-rd/CHANGELOG.md b/packages/siuben-rd/CHANGELOG.md index c4db1803bf..850ed40d9f 100644 --- a/packages/siuben-rd/CHANGELOG.md +++ b/packages/siuben-rd/CHANGELOG.md @@ -1,5 +1,11 @@ # @openfn/language-siuben-rd +## 1.1.0 + +### Minor Changes + +- bf26881: export `log` function from common + ## 1.0.2 ### Patch Changes diff --git a/packages/siuben-rd/package.json b/packages/siuben-rd/package.json index 4d15165cca..221c23786b 100644 --- a/packages/siuben-rd/package.json +++ b/packages/siuben-rd/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-siuben-rd", - "version": "1.0.2", + "version": "1.1.0", "description": "OpenFn siuben-rd adaptor", "type": "module", "exports": { diff --git a/packages/stripe/CHANGELOG.md b/packages/stripe/CHANGELOG.md index 1f4e54f6ca..a4752bdf08 100644 --- a/packages/stripe/CHANGELOG.md +++ b/packages/stripe/CHANGELOG.md @@ -1,5 +1,11 @@ # @openfn/language-stripe +## 1.1.0 + +### Minor Changes + +- bf26881: export `log` function from common + ## 1.0.11 ### Patch Changes diff --git a/packages/stripe/package.json b/packages/stripe/package.json index b5efd9f8d9..8151856225 100644 --- a/packages/stripe/package.json +++ b/packages/stripe/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-stripe", - "version": "1.0.11", + "version": "1.1.0", "description": "OpenFn adaptor for Stripe payment operations", "type": "module", "exports": { diff --git a/packages/sunbird-rc/CHANGELOG.md b/packages/sunbird-rc/CHANGELOG.md index 308d7359ec..232ae3c6e0 100644 --- a/packages/sunbird-rc/CHANGELOG.md +++ b/packages/sunbird-rc/CHANGELOG.md @@ -1,5 +1,11 @@ # @openfn/language-sunbird-rc +## 1.1.0 + +### Minor Changes + +- bf26881: export `log` function from common + ## 1.0.8 ### Patch Changes diff --git a/packages/sunbird-rc/package.json b/packages/sunbird-rc/package.json index f05e37c588..0c36832adb 100644 --- a/packages/sunbird-rc/package.json +++ b/packages/sunbird-rc/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-sunbird-rc", - "version": "1.0.8", + "version": "1.1.0", "description": "OpenFn sunbird-rc adaptor", "type": "module", "exports": { diff --git a/packages/surveycto/CHANGELOG.md b/packages/surveycto/CHANGELOG.md index 1b6ba5ab97..69b8267126 100644 --- a/packages/surveycto/CHANGELOG.md +++ b/packages/surveycto/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-surveycto +## 3.1.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 3.0.10 ### Patch Changes diff --git a/packages/surveycto/package.json b/packages/surveycto/package.json index 666abec288..4028f5dbd2 100644 --- a/packages/surveycto/package.json +++ b/packages/surveycto/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-surveycto", "label": "SurveyCTO", - "version": "3.0.10", + "version": "3.1.0", "description": "OpenFn adaptor for SurveyCTO", "main": "dist/index.cjs", "scripts": { diff --git a/packages/telerivet/CHANGELOG.md b/packages/telerivet/CHANGELOG.md index 1cafc8ce47..7fed41d1f2 100644 --- a/packages/telerivet/CHANGELOG.md +++ b/packages/telerivet/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-telerivet +## 0.4.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 0.3.28 ### Patch Changes diff --git a/packages/telerivet/package.json b/packages/telerivet/package.json index f275aa3d4b..c40ba81b4b 100644 --- a/packages/telerivet/package.json +++ b/packages/telerivet/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-telerivet", "label": "Telerivet", - "version": "0.3.28", + "version": "0.4.0", "description": "OpenFn adaptor for Telerivet", "main": "dist/index.cjs", "scripts": { diff --git a/packages/twilio/CHANGELOG.md b/packages/twilio/CHANGELOG.md index 642c80929a..a46b6891c6 100644 --- a/packages/twilio/CHANGELOG.md +++ b/packages/twilio/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-twilio +## 1.1.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 1.0.14 ### Patch Changes diff --git a/packages/twilio/package.json b/packages/twilio/package.json index 53890cd8ec..34d54feefd 100644 --- a/packages/twilio/package.json +++ b/packages/twilio/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-twilio", "label": "Twilio", - "version": "1.0.14", + "version": "1.1.0", "description": "OpenFn adaptor for Twilio", "main": "dist/index.cjs", "scripts": { diff --git a/packages/varo/CHANGELOG.md b/packages/varo/CHANGELOG.md index 805609711f..2d255785a4 100644 --- a/packages/varo/CHANGELOG.md +++ b/packages/varo/CHANGELOG.md @@ -1,5 +1,11 @@ # @openfn/language-varo +## 2.2.0 + +### Minor Changes + +- bf26881: export `log` function from common + ## 2.1.11 ### Patch Changes diff --git a/packages/varo/package.json b/packages/varo/package.json index a15daf6d5d..bb0382de0f 100644 --- a/packages/varo/package.json +++ b/packages/varo/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-varo", "label": "Varo", - "version": "2.1.11", + "version": "2.2.0", "description": "OpenFn varo adaptor for cold chain information", "type": "module", "exports": { diff --git a/packages/vtiger/CHANGELOG.md b/packages/vtiger/CHANGELOG.md index a235fa4fb8..e61b7f2108 100644 --- a/packages/vtiger/CHANGELOG.md +++ b/packages/vtiger/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-vtiger +## 1.4.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 1.3.30 ### Patch Changes diff --git a/packages/vtiger/package.json b/packages/vtiger/package.json index d0e1d58507..c39d9a36db 100644 --- a/packages/vtiger/package.json +++ b/packages/vtiger/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-vtiger", "label": "Vtiger", - "version": "1.3.30", + "version": "1.4.0", "description": "OpenFn adaptor for Vtiger", "main": "dist/index.cjs", "scripts": { diff --git a/packages/whatsapp/CHANGELOG.md b/packages/whatsapp/CHANGELOG.md index 75b5ccee03..08d5f72a8f 100644 --- a/packages/whatsapp/CHANGELOG.md +++ b/packages/whatsapp/CHANGELOG.md @@ -1,5 +1,11 @@ # @openfn/language-whatsapp +## 1.1.0 + +### Minor Changes + +- bf26881: export `log` function from common + ## 1.0.14 ### Patch Changes diff --git a/packages/whatsapp/package.json b/packages/whatsapp/package.json index bd5d0daff0..552e245357 100644 --- a/packages/whatsapp/package.json +++ b/packages/whatsapp/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-whatsapp", - "version": "1.0.14", + "version": "1.1.0", "description": "OpenFn whatsapp adaptor", "type": "module", "exports": { diff --git a/packages/wigal-sms/CHANGELOG.md b/packages/wigal-sms/CHANGELOG.md index 0b6d58af3a..f5283ae215 100644 --- a/packages/wigal-sms/CHANGELOG.md +++ b/packages/wigal-sms/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-wigal-sms +## 0.2.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 0.1.22 ### Patch Changes diff --git a/packages/wigal-sms/package.json b/packages/wigal-sms/package.json index d3b72c29f6..4d96242658 100644 --- a/packages/wigal-sms/package.json +++ b/packages/wigal-sms/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-wigal-sms", "label": "Wigal SMS", - "version": "0.1.22", + "version": "0.2.0", "description": "OpenFn wigal-sms adaptor for SMS gateway operations", "type": "module", "exports": { diff --git a/packages/zata/CHANGELOG.md b/packages/zata/CHANGELOG.md index 4d2811083e..12222b2db1 100644 --- a/packages/zata/CHANGELOG.md +++ b/packages/zata/CHANGELOG.md @@ -1,5 +1,11 @@ # @openfn/language-zata +## 1.1.0 + +### Minor Changes + +- bf26881: export `log` function from common + ## 1.0.11 ### Patch Changes diff --git a/packages/zata/package.json b/packages/zata/package.json index 87f24843de..5e224f4112 100644 --- a/packages/zata/package.json +++ b/packages/zata/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-zata", - "version": "1.0.11", + "version": "1.1.0", "description": "An OpenFn adaptor for Zata tax compliance", "badge": "Legacy", "type": "module", diff --git a/packages/zoho/CHANGELOG.md b/packages/zoho/CHANGELOG.md index 692fbf2013..ddd6733390 100644 --- a/packages/zoho/CHANGELOG.md +++ b/packages/zoho/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-zoho +## 0.5.0 + +### Minor Changes + +- 71115af: export `combine` function from common +- bf26881: export `log` function from common + ## 0.4.29 ### Patch Changes diff --git a/packages/zoho/package.json b/packages/zoho/package.json index 7b3c02029b..06e5b74e24 100644 --- a/packages/zoho/package.json +++ b/packages/zoho/package.json @@ -1,7 +1,7 @@ { "name": "@openfn/language-zoho", "label": "Zoho", - "version": "0.4.29", + "version": "0.5.0", "description": "OpenFn adaptor for Zoho", "main": "dist/index.cjs", "scripts": {