From 99af9e6f4fdbfcb1675fd9e74ea87b74f95919f6 Mon Sep 17 00:00:00 2001 From: Emmanuel Evance Date: Thu, 24 Oct 2024 15:37:58 +0300 Subject: [PATCH 1/7] update each docs --- packages/common/src/Adaptor.js | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/packages/common/src/Adaptor.js b/packages/common/src/Adaptor.js index 68a606e0b..2cfad32ed 100644 --- a/packages/common/src/Adaptor.js +++ b/packages/common/src/Adaptor.js @@ -267,12 +267,32 @@ export function asData(data, state) { * the state's references. * @public * @function - * @example - * each("$.[*]", - * create("SObject", - * field("FirstName", sourceValue("$.firstName")) + * @example Inserting patitent data using lazy state. (Only in v2) + * each($.data, + * insert("patient", + * { + * patient_name: $.data.properties.case_name, + * patient_id: $.data.case_id + * } * ) * ) + * @example Inserting patitent data with custom transformations. (Only in v1) + * each( + * $.data, + * insert("patient", (state) => ({ + * patient_id: state.data.case_id, + * patient_name: state.data.properties.case_name.toUpperCase(), + * patient_age: calculateAge(state.data.properties.birthdate), + * })) + * ); + * @example Inserting patitent data with custom transformations. (v1 and v2) + * each( + * "$.data[*]", + * insert("patient", (state) => ({ + * patient_name: state.data.properties.case_name, + * patient_id: state.data.case_id, + * })) + * ); * @param {DataSource} dataSource - JSONPath referencing a point in `state`. * @param {Operation} operation - The operation needed to be repeated. * @returns {Operation} From 2a4ffc3f6d8210f80315c80a3a9fb01ecc487e6e Mon Sep 17 00:00:00 2001 From: Emmanuel Evance Date: Thu, 24 Oct 2024 15:41:35 +0300 Subject: [PATCH 2/7] build docs --- packages/asana/ast.json | 13 ++++++++++++- packages/azure-storage/ast.json | 13 ++++++++++++- packages/bigquery/ast.json | 13 ++++++++++++- packages/cartodb/ast.json | 13 ++++++++++++- packages/cht/ast.json | 13 ++++++++++++- packages/commcare/ast.json | 13 ++++++++++++- packages/common/ast.json | 13 ++++++++++++- packages/dhis2/ast.json | 13 ++++++++++++- packages/dynamics/ast.json | 13 ++++++++++++- packages/facebook/ast.json | 13 ++++++++++++- packages/fhir-ndr-et/ast.json | 13 ++++++++++++- packages/fhir/ast.json | 13 ++++++++++++- packages/godata/ast.json | 13 ++++++++++++- packages/googlehealthcare/ast.json | 13 ++++++++++++- packages/googlesheets/ast.json | 13 ++++++++++++- packages/hive/ast.json | 13 ++++++++++++- packages/http/ast.json | 13 ++++++++++++- packages/magpi/ast.json | 13 ++++++++++++- packages/mailchimp/ast.json | 13 ++++++++++++- packages/mailgun/ast.json | 13 ++++++++++++- packages/maximo/ast.json | 13 ++++++++++++- packages/medicmobile/ast.json | 13 ++++++++++++- packages/mogli/ast.json | 13 ++++++++++++- packages/mojatax/ast.json | 13 ++++++++++++- packages/mongodb/ast.json | 13 ++++++++++++- packages/msgraph/ast.json | 13 ++++++++++++- packages/mssql/ast.json | 13 ++++++++++++- packages/mysql/ast.json | 13 ++++++++++++- packages/nexmo/ast.json | 13 ++++++++++++- packages/ocl/ast.json | 13 ++++++++++++- packages/odk/ast.json | 13 ++++++++++++- packages/openfn/ast.json | 13 ++++++++++++- packages/openimis/ast.json | 13 ++++++++++++- packages/openlmis/ast.json | 13 ++++++++++++- packages/openmrs/ast.json | 13 ++++++++++++- packages/openspp/ast.json | 13 ++++++++++++- packages/postgresql/ast.json | 13 ++++++++++++- packages/primero/ast.json | 13 ++++++++++++- packages/redis/ast.json | 13 ++++++++++++- packages/resourcemap/ast.json | 13 ++++++++++++- packages/satusehat/ast.json | 13 ++++++++++++- packages/sftp/ast.json | 13 ++++++++++++- packages/smpp/ast.json | 13 ++++++++++++- packages/vtiger/ast.json | 13 ++++++++++++- packages/zoho/ast.json | 13 ++++++++++++- 45 files changed, 540 insertions(+), 45 deletions(-) diff --git a/packages/asana/ast.json b/packages/asana/ast.json index 8aa578d3d..7150f2bae 100644 --- a/packages/asana/ast.json +++ b/packages/asana/ast.json @@ -734,7 +734,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", diff --git a/packages/azure-storage/ast.json b/packages/azure-storage/ast.json index bf2df63fd..862411b27 100644 --- a/packages/azure-storage/ast.json +++ b/packages/azure-storage/ast.json @@ -517,7 +517,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", diff --git a/packages/bigquery/ast.json b/packages/bigquery/ast.json index 4a6c5f47d..edce47570 100644 --- a/packages/bigquery/ast.json +++ b/packages/bigquery/ast.json @@ -385,7 +385,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", diff --git a/packages/cartodb/ast.json b/packages/cartodb/ast.json index 014ed5268..0415a30b5 100644 --- a/packages/cartodb/ast.json +++ b/packages/cartodb/ast.json @@ -388,7 +388,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", diff --git a/packages/cht/ast.json b/packages/cht/ast.json index 87c1a99b8..392c263cd 100644 --- a/packages/cht/ast.json +++ b/packages/cht/ast.json @@ -481,7 +481,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", diff --git a/packages/commcare/ast.json b/packages/commcare/ast.json index b841103b3..12f213251 100644 --- a/packages/commcare/ast.json +++ b/packages/commcare/ast.json @@ -813,7 +813,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", diff --git a/packages/common/ast.json b/packages/common/ast.json index be515400f..0233fa216 100644 --- a/packages/common/ast.json +++ b/packages/common/ast.json @@ -555,7 +555,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", diff --git a/packages/dhis2/ast.json b/packages/dhis2/ast.json index e8e6d76cd..57e1c98f1 100644 --- a/packages/dhis2/ast.json +++ b/packages/dhis2/ast.json @@ -1200,7 +1200,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", diff --git a/packages/dynamics/ast.json b/packages/dynamics/ast.json index 236ebfd3d..53a5e05e3 100644 --- a/packages/dynamics/ast.json +++ b/packages/dynamics/ast.json @@ -291,7 +291,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", diff --git a/packages/facebook/ast.json b/packages/facebook/ast.json index 89785f9dd..8537d4aa9 100644 --- a/packages/facebook/ast.json +++ b/packages/facebook/ast.json @@ -335,7 +335,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", diff --git a/packages/fhir-ndr-et/ast.json b/packages/fhir-ndr-et/ast.json index 395da632e..65bd97c89 100644 --- a/packages/fhir-ndr-et/ast.json +++ b/packages/fhir-ndr-et/ast.json @@ -312,7 +312,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", diff --git a/packages/fhir/ast.json b/packages/fhir/ast.json index e7e3015f5..872605d3f 100644 --- a/packages/fhir/ast.json +++ b/packages/fhir/ast.json @@ -655,7 +655,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", diff --git a/packages/godata/ast.json b/packages/godata/ast.json index 334e8a446..14a6601fa 100644 --- a/packages/godata/ast.json +++ b/packages/godata/ast.json @@ -1137,7 +1137,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", diff --git a/packages/googlehealthcare/ast.json b/packages/googlehealthcare/ast.json index 2b0eaaba1..05a30c17a 100644 --- a/packages/googlehealthcare/ast.json +++ b/packages/googlehealthcare/ast.json @@ -395,7 +395,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", diff --git a/packages/googlesheets/ast.json b/packages/googlesheets/ast.json index cf2527202..de5a9c410 100644 --- a/packages/googlesheets/ast.json +++ b/packages/googlesheets/ast.json @@ -545,7 +545,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", diff --git a/packages/hive/ast.json b/packages/hive/ast.json index 243887c0d..2a017d9a9 100644 --- a/packages/hive/ast.json +++ b/packages/hive/ast.json @@ -356,7 +356,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", diff --git a/packages/http/ast.json b/packages/http/ast.json index e147a7916..4cf901aed 100644 --- a/packages/http/ast.json +++ b/packages/http/ast.json @@ -887,7 +887,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", diff --git a/packages/magpi/ast.json b/packages/magpi/ast.json index 10bd589f6..5a3c39824 100644 --- a/packages/magpi/ast.json +++ b/packages/magpi/ast.json @@ -378,7 +378,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", diff --git a/packages/mailchimp/ast.json b/packages/mailchimp/ast.json index 4c2ab1ec6..8e0a80943 100644 --- a/packages/mailchimp/ast.json +++ b/packages/mailchimp/ast.json @@ -1158,7 +1158,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", diff --git a/packages/mailgun/ast.json b/packages/mailgun/ast.json index 130ca0e65..d321c9996 100644 --- a/packages/mailgun/ast.json +++ b/packages/mailgun/ast.json @@ -327,7 +327,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", diff --git a/packages/maximo/ast.json b/packages/maximo/ast.json index 56d4ecb2e..0b60effb0 100644 --- a/packages/maximo/ast.json +++ b/packages/maximo/ast.json @@ -421,7 +421,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", diff --git a/packages/medicmobile/ast.json b/packages/medicmobile/ast.json index ce650aff2..6b7272bd4 100644 --- a/packages/medicmobile/ast.json +++ b/packages/medicmobile/ast.json @@ -451,7 +451,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", diff --git a/packages/mogli/ast.json b/packages/mogli/ast.json index 54431f620..db4a544a8 100644 --- a/packages/mogli/ast.json +++ b/packages/mogli/ast.json @@ -395,7 +395,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", diff --git a/packages/mojatax/ast.json b/packages/mojatax/ast.json index 05a8ff3d0..fe0a0e348 100644 --- a/packages/mojatax/ast.json +++ b/packages/mojatax/ast.json @@ -411,7 +411,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", diff --git a/packages/mongodb/ast.json b/packages/mongodb/ast.json index 05585eef8..c753f8693 100644 --- a/packages/mongodb/ast.json +++ b/packages/mongodb/ast.json @@ -421,7 +421,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", diff --git a/packages/msgraph/ast.json b/packages/msgraph/ast.json index 954991be6..34d719483 100644 --- a/packages/msgraph/ast.json +++ b/packages/msgraph/ast.json @@ -748,7 +748,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", diff --git a/packages/mssql/ast.json b/packages/mssql/ast.json index c3ed2749f..a587b5bc4 100644 --- a/packages/mssql/ast.json +++ b/packages/mssql/ast.json @@ -912,7 +912,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", diff --git a/packages/mysql/ast.json b/packages/mysql/ast.json index 767dbdb2c..39b472c64 100644 --- a/packages/mysql/ast.json +++ b/packages/mysql/ast.json @@ -542,7 +542,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", diff --git a/packages/nexmo/ast.json b/packages/nexmo/ast.json index 16fcec117..308c99958 100644 --- a/packages/nexmo/ast.json +++ b/packages/nexmo/ast.json @@ -355,7 +355,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", diff --git a/packages/ocl/ast.json b/packages/ocl/ast.json index f9f0f219d..380a178fb 100644 --- a/packages/ocl/ast.json +++ b/packages/ocl/ast.json @@ -464,7 +464,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", diff --git a/packages/odk/ast.json b/packages/odk/ast.json index 0c8a3c29c..660946676 100644 --- a/packages/odk/ast.json +++ b/packages/odk/ast.json @@ -553,7 +553,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", diff --git a/packages/openfn/ast.json b/packages/openfn/ast.json index cbd4cc491..80ffd8780 100644 --- a/packages/openfn/ast.json +++ b/packages/openfn/ast.json @@ -345,7 +345,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", diff --git a/packages/openimis/ast.json b/packages/openimis/ast.json index 5fdccdd31..6edf34435 100644 --- a/packages/openimis/ast.json +++ b/packages/openimis/ast.json @@ -355,7 +355,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", diff --git a/packages/openlmis/ast.json b/packages/openlmis/ast.json index 4487431e1..e12c90183 100644 --- a/packages/openlmis/ast.json +++ b/packages/openlmis/ast.json @@ -595,7 +595,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", diff --git a/packages/openmrs/ast.json b/packages/openmrs/ast.json index c868640b3..07eb0d1b5 100644 --- a/packages/openmrs/ast.json +++ b/packages/openmrs/ast.json @@ -949,7 +949,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", diff --git a/packages/openspp/ast.json b/packages/openspp/ast.json index 7a0996d1d..e8431b1e7 100644 --- a/packages/openspp/ast.json +++ b/packages/openspp/ast.json @@ -1465,7 +1465,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", diff --git a/packages/postgresql/ast.json b/packages/postgresql/ast.json index 294d51711..1686b0acd 100644 --- a/packages/postgresql/ast.json +++ b/packages/postgresql/ast.json @@ -1426,7 +1426,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", diff --git a/packages/primero/ast.json b/packages/primero/ast.json index f1234fde5..319c82c0a 100644 --- a/packages/primero/ast.json +++ b/packages/primero/ast.json @@ -886,7 +886,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", diff --git a/packages/redis/ast.json b/packages/redis/ast.json index 741632f90..3f2e7cf96 100644 --- a/packages/redis/ast.json +++ b/packages/redis/ast.json @@ -854,7 +854,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", diff --git a/packages/resourcemap/ast.json b/packages/resourcemap/ast.json index 236ebfd3d..53a5e05e3 100644 --- a/packages/resourcemap/ast.json +++ b/packages/resourcemap/ast.json @@ -291,7 +291,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", diff --git a/packages/satusehat/ast.json b/packages/satusehat/ast.json index c86b70328..48d90c41e 100644 --- a/packages/satusehat/ast.json +++ b/packages/satusehat/ast.json @@ -583,7 +583,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", diff --git a/packages/sftp/ast.json b/packages/sftp/ast.json index dc108d05e..e9d7f8564 100644 --- a/packages/sftp/ast.json +++ b/packages/sftp/ast.json @@ -651,7 +651,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", diff --git a/packages/smpp/ast.json b/packages/smpp/ast.json index 236ebfd3d..53a5e05e3 100644 --- a/packages/smpp/ast.json +++ b/packages/smpp/ast.json @@ -291,7 +291,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", diff --git a/packages/vtiger/ast.json b/packages/vtiger/ast.json index 236ebfd3d..53a5e05e3 100644 --- a/packages/vtiger/ast.json +++ b/packages/vtiger/ast.json @@ -291,7 +291,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", diff --git a/packages/zoho/ast.json b/packages/zoho/ast.json index 236ebfd3d..53a5e05e3 100644 --- a/packages/zoho/ast.json +++ b/packages/zoho/ast.json @@ -291,7 +291,18 @@ }, { "title": "example", - "description": "each(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)" + "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", + "caption": "Inserting patitent data using lazy state. (Only in v2)" + }, + { + "title": "example", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (Only in v1)" + }, + { + "title": "example", + "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", + "caption": "Inserting patitent data with custom transformations. (v1 and v2)" }, { "title": "param", From 25abf35563648ea0c0caff7639ea7e080d76d76f Mon Sep 17 00:00:00 2001 From: Emmanuel Evance Date: Fri, 25 Oct 2024 12:37:47 +0300 Subject: [PATCH 3/7] update caption --- packages/asana/ast.json | 8 ++++---- packages/azure-storage/ast.json | 8 ++++---- packages/bigquery/ast.json | 8 ++++---- packages/cartodb/ast.json | 8 ++++---- packages/cht/ast.json | 8 ++++---- packages/commcare/ast.json | 8 ++++---- packages/common/ast.json | 8 ++++---- packages/common/src/Adaptor.js | 22 +++++++++++----------- packages/dhis2/ast.json | 8 ++++---- packages/dynamics/ast.json | 8 ++++---- packages/facebook/ast.json | 8 ++++---- packages/fhir-ndr-et/ast.json | 8 ++++---- packages/fhir/ast.json | 8 ++++---- packages/godata/ast.json | 8 ++++---- packages/googlehealthcare/ast.json | 8 ++++---- packages/googlesheets/ast.json | 8 ++++---- packages/hive/ast.json | 8 ++++---- packages/http/ast.json | 8 ++++---- packages/magpi/ast.json | 8 ++++---- packages/mailchimp/ast.json | 8 ++++---- packages/mailgun/ast.json | 8 ++++---- packages/maximo/ast.json | 8 ++++---- packages/medicmobile/ast.json | 8 ++++---- packages/mogli/ast.json | 8 ++++---- packages/mojatax/ast.json | 8 ++++---- packages/mongodb/ast.json | 8 ++++---- packages/msgraph/ast.json | 8 ++++---- packages/mssql/ast.json | 8 ++++---- packages/mysql/ast.json | 8 ++++---- packages/nexmo/ast.json | 8 ++++---- packages/ocl/ast.json | 8 ++++---- packages/odk/ast.json | 8 ++++---- packages/openfn/ast.json | 8 ++++---- packages/openimis/ast.json | 8 ++++---- packages/openlmis/ast.json | 8 ++++---- packages/openmrs/ast.json | 8 ++++---- packages/openspp/ast.json | 8 ++++---- packages/postgresql/ast.json | 8 ++++---- packages/primero/ast.json | 8 ++++---- packages/redis/ast.json | 8 ++++---- packages/resourcemap/ast.json | 8 ++++---- packages/satusehat/ast.json | 8 ++++---- packages/sftp/ast.json | 8 ++++---- packages/smpp/ast.json | 8 ++++---- packages/vtiger/ast.json | 8 ++++---- packages/zoho/ast.json | 8 ++++---- 46 files changed, 191 insertions(+), 191 deletions(-) diff --git a/packages/asana/ast.json b/packages/asana/ast.json index 7150f2bae..f1b037a23 100644 --- a/packages/asana/ast.json +++ b/packages/asana/ast.json @@ -734,18 +734,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", diff --git a/packages/azure-storage/ast.json b/packages/azure-storage/ast.json index 862411b27..c01937b53 100644 --- a/packages/azure-storage/ast.json +++ b/packages/azure-storage/ast.json @@ -517,18 +517,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", diff --git a/packages/bigquery/ast.json b/packages/bigquery/ast.json index edce47570..3941dc651 100644 --- a/packages/bigquery/ast.json +++ b/packages/bigquery/ast.json @@ -385,18 +385,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", diff --git a/packages/cartodb/ast.json b/packages/cartodb/ast.json index 0415a30b5..b630cdc42 100644 --- a/packages/cartodb/ast.json +++ b/packages/cartodb/ast.json @@ -388,18 +388,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", diff --git a/packages/cht/ast.json b/packages/cht/ast.json index 392c263cd..1bad01680 100644 --- a/packages/cht/ast.json +++ b/packages/cht/ast.json @@ -481,18 +481,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", diff --git a/packages/commcare/ast.json b/packages/commcare/ast.json index 12f213251..15f86ca12 100644 --- a/packages/commcare/ast.json +++ b/packages/commcare/ast.json @@ -813,18 +813,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", diff --git a/packages/common/ast.json b/packages/common/ast.json index 0233fa216..ae6332891 100644 --- a/packages/common/ast.json +++ b/packages/common/ast.json @@ -555,18 +555,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", diff --git a/packages/common/src/Adaptor.js b/packages/common/src/Adaptor.js index 2cfad32ed..c4dbafad8 100644 --- a/packages/common/src/Adaptor.js +++ b/packages/common/src/Adaptor.js @@ -267,16 +267,16 @@ export function asData(data, state) { * the state's references. * @public * @function - * @example Inserting patitent data using lazy state. (Only in v2) - * each($.data, - * insert("patient", - * { - * patient_name: $.data.properties.case_name, - * patient_id: $.data.case_id - * } - * ) - * ) - * @example Inserting patitent data with custom transformations. (Only in v1) + * @example Using lazy state to iterate over items in state.data and pass each one into an "insert" operation + * each( + * $.data, + * // Inside the callback operation, `$.data` is scoped to the item under iteration + * insert("patient", { + * patient_name: $.data.properties.case_name, + * patient_id: $.data.case_id, + * }) + * ); + * @example Iterate over items in state.data and pass each one into an "insert" operation * each( * $.data, * insert("patient", (state) => ({ @@ -285,7 +285,7 @@ export function asData(data, state) { * patient_age: calculateAge(state.data.properties.birthdate), * })) * ); - * @example Inserting patitent data with custom transformations. (v1 and v2) + * @example Using JSON path to iterate over items in state.data and pass each one into an "insert" operation * each( * "$.data[*]", * insert("patient", (state) => ({ diff --git a/packages/dhis2/ast.json b/packages/dhis2/ast.json index 57e1c98f1..f19556923 100644 --- a/packages/dhis2/ast.json +++ b/packages/dhis2/ast.json @@ -1200,18 +1200,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", diff --git a/packages/dynamics/ast.json b/packages/dynamics/ast.json index 53a5e05e3..072cbe5c3 100644 --- a/packages/dynamics/ast.json +++ b/packages/dynamics/ast.json @@ -291,18 +291,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", diff --git a/packages/facebook/ast.json b/packages/facebook/ast.json index 8537d4aa9..c420a7ee8 100644 --- a/packages/facebook/ast.json +++ b/packages/facebook/ast.json @@ -335,18 +335,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", diff --git a/packages/fhir-ndr-et/ast.json b/packages/fhir-ndr-et/ast.json index 65bd97c89..574bd4ceb 100644 --- a/packages/fhir-ndr-et/ast.json +++ b/packages/fhir-ndr-et/ast.json @@ -312,18 +312,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", diff --git a/packages/fhir/ast.json b/packages/fhir/ast.json index 872605d3f..109ac2da9 100644 --- a/packages/fhir/ast.json +++ b/packages/fhir/ast.json @@ -655,18 +655,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", diff --git a/packages/godata/ast.json b/packages/godata/ast.json index 14a6601fa..6e56051bc 100644 --- a/packages/godata/ast.json +++ b/packages/godata/ast.json @@ -1137,18 +1137,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", diff --git a/packages/googlehealthcare/ast.json b/packages/googlehealthcare/ast.json index 05a30c17a..275620754 100644 --- a/packages/googlehealthcare/ast.json +++ b/packages/googlehealthcare/ast.json @@ -395,18 +395,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", diff --git a/packages/googlesheets/ast.json b/packages/googlesheets/ast.json index de5a9c410..e6f3c5487 100644 --- a/packages/googlesheets/ast.json +++ b/packages/googlesheets/ast.json @@ -545,18 +545,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", diff --git a/packages/hive/ast.json b/packages/hive/ast.json index 2a017d9a9..0602f2a82 100644 --- a/packages/hive/ast.json +++ b/packages/hive/ast.json @@ -356,18 +356,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", diff --git a/packages/http/ast.json b/packages/http/ast.json index 4cf901aed..2d65242c9 100644 --- a/packages/http/ast.json +++ b/packages/http/ast.json @@ -887,18 +887,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", diff --git a/packages/magpi/ast.json b/packages/magpi/ast.json index 5a3c39824..011f8d03c 100644 --- a/packages/magpi/ast.json +++ b/packages/magpi/ast.json @@ -378,18 +378,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", diff --git a/packages/mailchimp/ast.json b/packages/mailchimp/ast.json index 8e0a80943..01b734e13 100644 --- a/packages/mailchimp/ast.json +++ b/packages/mailchimp/ast.json @@ -1158,18 +1158,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", diff --git a/packages/mailgun/ast.json b/packages/mailgun/ast.json index d321c9996..21252da93 100644 --- a/packages/mailgun/ast.json +++ b/packages/mailgun/ast.json @@ -327,18 +327,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", diff --git a/packages/maximo/ast.json b/packages/maximo/ast.json index 0b60effb0..4fb76fcce 100644 --- a/packages/maximo/ast.json +++ b/packages/maximo/ast.json @@ -421,18 +421,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", diff --git a/packages/medicmobile/ast.json b/packages/medicmobile/ast.json index 6b7272bd4..d7e1e48cd 100644 --- a/packages/medicmobile/ast.json +++ b/packages/medicmobile/ast.json @@ -451,18 +451,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", diff --git a/packages/mogli/ast.json b/packages/mogli/ast.json index db4a544a8..086e255b9 100644 --- a/packages/mogli/ast.json +++ b/packages/mogli/ast.json @@ -395,18 +395,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", diff --git a/packages/mojatax/ast.json b/packages/mojatax/ast.json index fe0a0e348..c04c99d77 100644 --- a/packages/mojatax/ast.json +++ b/packages/mojatax/ast.json @@ -411,18 +411,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", diff --git a/packages/mongodb/ast.json b/packages/mongodb/ast.json index c753f8693..e6e3f6558 100644 --- a/packages/mongodb/ast.json +++ b/packages/mongodb/ast.json @@ -421,18 +421,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", diff --git a/packages/msgraph/ast.json b/packages/msgraph/ast.json index 34d719483..77fa9b430 100644 --- a/packages/msgraph/ast.json +++ b/packages/msgraph/ast.json @@ -748,18 +748,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", diff --git a/packages/mssql/ast.json b/packages/mssql/ast.json index a587b5bc4..c1f27f5c9 100644 --- a/packages/mssql/ast.json +++ b/packages/mssql/ast.json @@ -912,18 +912,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", diff --git a/packages/mysql/ast.json b/packages/mysql/ast.json index 39b472c64..94cc0ebb7 100644 --- a/packages/mysql/ast.json +++ b/packages/mysql/ast.json @@ -542,18 +542,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", diff --git a/packages/nexmo/ast.json b/packages/nexmo/ast.json index 308c99958..513c87f2f 100644 --- a/packages/nexmo/ast.json +++ b/packages/nexmo/ast.json @@ -355,18 +355,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", diff --git a/packages/ocl/ast.json b/packages/ocl/ast.json index 380a178fb..c6e3bd8f9 100644 --- a/packages/ocl/ast.json +++ b/packages/ocl/ast.json @@ -464,18 +464,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", diff --git a/packages/odk/ast.json b/packages/odk/ast.json index 660946676..f6ba176b5 100644 --- a/packages/odk/ast.json +++ b/packages/odk/ast.json @@ -553,18 +553,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", diff --git a/packages/openfn/ast.json b/packages/openfn/ast.json index 80ffd8780..7849cc035 100644 --- a/packages/openfn/ast.json +++ b/packages/openfn/ast.json @@ -345,18 +345,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", diff --git a/packages/openimis/ast.json b/packages/openimis/ast.json index 6edf34435..4ae0425ef 100644 --- a/packages/openimis/ast.json +++ b/packages/openimis/ast.json @@ -355,18 +355,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", diff --git a/packages/openlmis/ast.json b/packages/openlmis/ast.json index e12c90183..0b1217ebc 100644 --- a/packages/openlmis/ast.json +++ b/packages/openlmis/ast.json @@ -595,18 +595,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", diff --git a/packages/openmrs/ast.json b/packages/openmrs/ast.json index 07eb0d1b5..39ee2b4a3 100644 --- a/packages/openmrs/ast.json +++ b/packages/openmrs/ast.json @@ -949,18 +949,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", diff --git a/packages/openspp/ast.json b/packages/openspp/ast.json index e8431b1e7..6466e12f4 100644 --- a/packages/openspp/ast.json +++ b/packages/openspp/ast.json @@ -1465,18 +1465,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", diff --git a/packages/postgresql/ast.json b/packages/postgresql/ast.json index 1686b0acd..7fa26943f 100644 --- a/packages/postgresql/ast.json +++ b/packages/postgresql/ast.json @@ -1426,18 +1426,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", diff --git a/packages/primero/ast.json b/packages/primero/ast.json index 319c82c0a..1101d6797 100644 --- a/packages/primero/ast.json +++ b/packages/primero/ast.json @@ -886,18 +886,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", diff --git a/packages/redis/ast.json b/packages/redis/ast.json index 3f2e7cf96..44319f303 100644 --- a/packages/redis/ast.json +++ b/packages/redis/ast.json @@ -854,18 +854,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", diff --git a/packages/resourcemap/ast.json b/packages/resourcemap/ast.json index 53a5e05e3..072cbe5c3 100644 --- a/packages/resourcemap/ast.json +++ b/packages/resourcemap/ast.json @@ -291,18 +291,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", diff --git a/packages/satusehat/ast.json b/packages/satusehat/ast.json index 48d90c41e..d0f33d737 100644 --- a/packages/satusehat/ast.json +++ b/packages/satusehat/ast.json @@ -583,18 +583,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", diff --git a/packages/sftp/ast.json b/packages/sftp/ast.json index e9d7f8564..a6f39295d 100644 --- a/packages/sftp/ast.json +++ b/packages/sftp/ast.json @@ -651,18 +651,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", diff --git a/packages/smpp/ast.json b/packages/smpp/ast.json index 53a5e05e3..072cbe5c3 100644 --- a/packages/smpp/ast.json +++ b/packages/smpp/ast.json @@ -291,18 +291,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", diff --git a/packages/vtiger/ast.json b/packages/vtiger/ast.json index 53a5e05e3..072cbe5c3 100644 --- a/packages/vtiger/ast.json +++ b/packages/vtiger/ast.json @@ -291,18 +291,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", diff --git a/packages/zoho/ast.json b/packages/zoho/ast.json index 53a5e05e3..072cbe5c3 100644 --- a/packages/zoho/ast.json +++ b/packages/zoho/ast.json @@ -291,18 +291,18 @@ }, { "title": "example", - "description": "each($.data,\n insert(\"patient\",\n {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id\n }\n )\n)", - "caption": "Inserting patitent data using lazy state. (Only in v2)" + "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", + "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (Only in v1)" + "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "example", "description": "each(\n \"$.data[*]\",\n insert(\"patient\", (state) => ({\n patient_name: state.data.properties.case_name,\n patient_id: state.data.case_id,\n }))\n);", - "caption": "Inserting patitent data with custom transformations. (v1 and v2)" + "caption": "Using JSON path to iterate over items in state.data and pass each one into an \"insert\" operation" }, { "title": "param", From 84ced3060b1aa68b5309ac1132445118eeaa3263 Mon Sep 17 00:00:00 2001 From: Joe Clark Date: Fri, 25 Oct 2024 16:28:39 +0100 Subject: [PATCH 4/7] common: update each docs --- packages/common/src/Adaptor.js | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/packages/common/src/Adaptor.js b/packages/common/src/Adaptor.js index c4dbafad8..7efcba0c3 100644 --- a/packages/common/src/Adaptor.js +++ b/packages/common/src/Adaptor.js @@ -257,17 +257,14 @@ export function asData(data, state) { } /** - * Scopes an array of data based on a JSONPath. - * Useful when the source data has `n` items you would like to map to - * an operation. - * The operation will receive a slice of the data based of each item - * of the JSONPath provided. - * - * It also ensures the results of an operation make their way back into - * the state's references. + * Iterates over an array of items and invokes an operation upon each one, where the state + * object is _scoped_ so that state.data is the item under iteration. + * The rest of the state object is untouched and can be referenced as usual. + * You can pass an array directly, or use lazy state or a JSONPath string to + * reference a slice of state. * @public * @function - * @example Using lazy state to iterate over items in state.data and pass each one into an "insert" operation + * @example Using lazy state ($) to iterate over items in state.data and pass each into an "insert" operation * each( * $.data, * // Inside the callback operation, `$.data` is scoped to the item under iteration @@ -281,8 +278,7 @@ export function asData(data, state) { * $.data, * insert("patient", (state) => ({ * patient_id: state.data.case_id, - * patient_name: state.data.properties.case_name.toUpperCase(), - * patient_age: calculateAge(state.data.properties.birthdate), + * ...state.data * })) * ); * @example Using JSON path to iterate over items in state.data and pass each one into an "insert" operation From 3696674105ecaea93ecd089b77f5547dbf718917 Mon Sep 17 00:00:00 2001 From: Joe Clark Date: Fri, 25 Oct 2024 16:32:23 +0100 Subject: [PATCH 5/7] update asts --- packages/asana/ast.json | 6 +++--- packages/azure-storage/ast.json | 6 +++--- packages/bigquery/ast.json | 6 +++--- packages/cartodb/ast.json | 6 +++--- packages/cht/ast.json | 6 +++--- packages/commcare/ast.json | 6 +++--- packages/common/ast.json | 6 +++--- packages/dhis2/ast.json | 6 +++--- packages/dynamics/ast.json | 6 +++--- packages/facebook/ast.json | 6 +++--- packages/fhir-ndr-et/ast.json | 6 +++--- packages/fhir/ast.json | 6 +++--- packages/godata/ast.json | 6 +++--- packages/googlehealthcare/ast.json | 6 +++--- packages/googlesheets/ast.json | 6 +++--- packages/hive/ast.json | 6 +++--- packages/http/ast.json | 6 +++--- packages/magpi/ast.json | 6 +++--- packages/mailchimp/ast.json | 6 +++--- packages/mailgun/ast.json | 6 +++--- packages/maximo/ast.json | 6 +++--- packages/medicmobile/ast.json | 6 +++--- packages/mogli/ast.json | 6 +++--- packages/mojatax/ast.json | 6 +++--- packages/mongodb/ast.json | 6 +++--- packages/msgraph/ast.json | 6 +++--- packages/mssql/ast.json | 6 +++--- packages/mysql/ast.json | 6 +++--- packages/nexmo/ast.json | 6 +++--- packages/ocl/ast.json | 6 +++--- packages/odk/ast.json | 6 +++--- packages/openfn/ast.json | 6 +++--- packages/openimis/ast.json | 6 +++--- packages/openlmis/ast.json | 6 +++--- packages/openmrs/ast.json | 6 +++--- packages/openspp/ast.json | 6 +++--- packages/postgresql/ast.json | 6 +++--- packages/primero/ast.json | 6 +++--- packages/redis/ast.json | 6 +++--- packages/resourcemap/ast.json | 6 +++--- packages/satusehat/ast.json | 6 +++--- packages/sftp/ast.json | 6 +++--- packages/smpp/ast.json | 6 +++--- packages/vtiger/ast.json | 6 +++--- packages/zoho/ast.json | 6 +++--- 45 files changed, 135 insertions(+), 135 deletions(-) diff --git a/packages/asana/ast.json b/packages/asana/ast.json index f1b037a23..f8eb57476 100644 --- a/packages/asana/ast.json +++ b/packages/asana/ast.json @@ -720,7 +720,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -735,11 +735,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { diff --git a/packages/azure-storage/ast.json b/packages/azure-storage/ast.json index c01937b53..844f9a86c 100644 --- a/packages/azure-storage/ast.json +++ b/packages/azure-storage/ast.json @@ -503,7 +503,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -518,11 +518,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { diff --git a/packages/bigquery/ast.json b/packages/bigquery/ast.json index 3941dc651..1dc1a870a 100644 --- a/packages/bigquery/ast.json +++ b/packages/bigquery/ast.json @@ -371,7 +371,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -386,11 +386,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { diff --git a/packages/cartodb/ast.json b/packages/cartodb/ast.json index b630cdc42..e6038b346 100644 --- a/packages/cartodb/ast.json +++ b/packages/cartodb/ast.json @@ -374,7 +374,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -389,11 +389,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { diff --git a/packages/cht/ast.json b/packages/cht/ast.json index 1bad01680..897976d5a 100644 --- a/packages/cht/ast.json +++ b/packages/cht/ast.json @@ -467,7 +467,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -482,11 +482,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { diff --git a/packages/commcare/ast.json b/packages/commcare/ast.json index 15f86ca12..a5855e3a8 100644 --- a/packages/commcare/ast.json +++ b/packages/commcare/ast.json @@ -799,7 +799,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -814,11 +814,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { diff --git a/packages/common/ast.json b/packages/common/ast.json index ae6332891..276d27877 100644 --- a/packages/common/ast.json +++ b/packages/common/ast.json @@ -541,7 +541,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -556,11 +556,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { diff --git a/packages/dhis2/ast.json b/packages/dhis2/ast.json index f19556923..c33662197 100644 --- a/packages/dhis2/ast.json +++ b/packages/dhis2/ast.json @@ -1186,7 +1186,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -1201,11 +1201,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { diff --git a/packages/dynamics/ast.json b/packages/dynamics/ast.json index 072cbe5c3..94bbf2f95 100644 --- a/packages/dynamics/ast.json +++ b/packages/dynamics/ast.json @@ -277,7 +277,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -292,11 +292,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { diff --git a/packages/facebook/ast.json b/packages/facebook/ast.json index c420a7ee8..2a3c407f2 100644 --- a/packages/facebook/ast.json +++ b/packages/facebook/ast.json @@ -321,7 +321,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -336,11 +336,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { diff --git a/packages/fhir-ndr-et/ast.json b/packages/fhir-ndr-et/ast.json index 574bd4ceb..e7daa32d0 100644 --- a/packages/fhir-ndr-et/ast.json +++ b/packages/fhir-ndr-et/ast.json @@ -298,7 +298,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -313,11 +313,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { diff --git a/packages/fhir/ast.json b/packages/fhir/ast.json index 109ac2da9..5a72dae95 100644 --- a/packages/fhir/ast.json +++ b/packages/fhir/ast.json @@ -641,7 +641,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -656,11 +656,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { diff --git a/packages/godata/ast.json b/packages/godata/ast.json index 6e56051bc..d75db9a41 100644 --- a/packages/godata/ast.json +++ b/packages/godata/ast.json @@ -1123,7 +1123,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -1138,11 +1138,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { diff --git a/packages/googlehealthcare/ast.json b/packages/googlehealthcare/ast.json index 275620754..4266506a5 100644 --- a/packages/googlehealthcare/ast.json +++ b/packages/googlehealthcare/ast.json @@ -381,7 +381,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -396,11 +396,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { diff --git a/packages/googlesheets/ast.json b/packages/googlesheets/ast.json index e6f3c5487..37bb7936a 100644 --- a/packages/googlesheets/ast.json +++ b/packages/googlesheets/ast.json @@ -531,7 +531,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -546,11 +546,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { diff --git a/packages/hive/ast.json b/packages/hive/ast.json index 0602f2a82..d8685b567 100644 --- a/packages/hive/ast.json +++ b/packages/hive/ast.json @@ -342,7 +342,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -357,11 +357,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { diff --git a/packages/http/ast.json b/packages/http/ast.json index 2d65242c9..dc37513d1 100644 --- a/packages/http/ast.json +++ b/packages/http/ast.json @@ -873,7 +873,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -888,11 +888,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { diff --git a/packages/magpi/ast.json b/packages/magpi/ast.json index 011f8d03c..b1e96e027 100644 --- a/packages/magpi/ast.json +++ b/packages/magpi/ast.json @@ -364,7 +364,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -379,11 +379,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { diff --git a/packages/mailchimp/ast.json b/packages/mailchimp/ast.json index 01b734e13..ea0868f1c 100644 --- a/packages/mailchimp/ast.json +++ b/packages/mailchimp/ast.json @@ -1144,7 +1144,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -1159,11 +1159,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { diff --git a/packages/mailgun/ast.json b/packages/mailgun/ast.json index 21252da93..5c15d2cb1 100644 --- a/packages/mailgun/ast.json +++ b/packages/mailgun/ast.json @@ -313,7 +313,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -328,11 +328,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { diff --git a/packages/maximo/ast.json b/packages/maximo/ast.json index 4fb76fcce..4fc34e181 100644 --- a/packages/maximo/ast.json +++ b/packages/maximo/ast.json @@ -407,7 +407,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -422,11 +422,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { diff --git a/packages/medicmobile/ast.json b/packages/medicmobile/ast.json index d7e1e48cd..113d7e925 100644 --- a/packages/medicmobile/ast.json +++ b/packages/medicmobile/ast.json @@ -437,7 +437,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -452,11 +452,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { diff --git a/packages/mogli/ast.json b/packages/mogli/ast.json index 086e255b9..d4e618596 100644 --- a/packages/mogli/ast.json +++ b/packages/mogli/ast.json @@ -381,7 +381,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -396,11 +396,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { diff --git a/packages/mojatax/ast.json b/packages/mojatax/ast.json index c04c99d77..6b67caa3b 100644 --- a/packages/mojatax/ast.json +++ b/packages/mojatax/ast.json @@ -397,7 +397,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -412,11 +412,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { diff --git a/packages/mongodb/ast.json b/packages/mongodb/ast.json index e6e3f6558..960523635 100644 --- a/packages/mongodb/ast.json +++ b/packages/mongodb/ast.json @@ -407,7 +407,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -422,11 +422,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { diff --git a/packages/msgraph/ast.json b/packages/msgraph/ast.json index 77fa9b430..dc639e45b 100644 --- a/packages/msgraph/ast.json +++ b/packages/msgraph/ast.json @@ -734,7 +734,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -749,11 +749,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { diff --git a/packages/mssql/ast.json b/packages/mssql/ast.json index c1f27f5c9..b4326d6a5 100644 --- a/packages/mssql/ast.json +++ b/packages/mssql/ast.json @@ -898,7 +898,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -913,11 +913,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { diff --git a/packages/mysql/ast.json b/packages/mysql/ast.json index 94cc0ebb7..d6ac11c60 100644 --- a/packages/mysql/ast.json +++ b/packages/mysql/ast.json @@ -528,7 +528,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -543,11 +543,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { diff --git a/packages/nexmo/ast.json b/packages/nexmo/ast.json index 513c87f2f..2e4b2dd84 100644 --- a/packages/nexmo/ast.json +++ b/packages/nexmo/ast.json @@ -341,7 +341,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -356,11 +356,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { diff --git a/packages/ocl/ast.json b/packages/ocl/ast.json index c6e3bd8f9..d18e744bd 100644 --- a/packages/ocl/ast.json +++ b/packages/ocl/ast.json @@ -450,7 +450,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -465,11 +465,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { diff --git a/packages/odk/ast.json b/packages/odk/ast.json index f6ba176b5..15b484e8c 100644 --- a/packages/odk/ast.json +++ b/packages/odk/ast.json @@ -539,7 +539,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -554,11 +554,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { diff --git a/packages/openfn/ast.json b/packages/openfn/ast.json index 7849cc035..448d0745b 100644 --- a/packages/openfn/ast.json +++ b/packages/openfn/ast.json @@ -331,7 +331,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -346,11 +346,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { diff --git a/packages/openimis/ast.json b/packages/openimis/ast.json index 4ae0425ef..145a4f6f0 100644 --- a/packages/openimis/ast.json +++ b/packages/openimis/ast.json @@ -341,7 +341,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -356,11 +356,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { diff --git a/packages/openlmis/ast.json b/packages/openlmis/ast.json index 0b1217ebc..899877538 100644 --- a/packages/openlmis/ast.json +++ b/packages/openlmis/ast.json @@ -581,7 +581,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -596,11 +596,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { diff --git a/packages/openmrs/ast.json b/packages/openmrs/ast.json index 39ee2b4a3..662f49b4d 100644 --- a/packages/openmrs/ast.json +++ b/packages/openmrs/ast.json @@ -935,7 +935,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -950,11 +950,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { diff --git a/packages/openspp/ast.json b/packages/openspp/ast.json index 6466e12f4..e2de2c529 100644 --- a/packages/openspp/ast.json +++ b/packages/openspp/ast.json @@ -1451,7 +1451,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -1466,11 +1466,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { diff --git a/packages/postgresql/ast.json b/packages/postgresql/ast.json index 7fa26943f..ab35f831d 100644 --- a/packages/postgresql/ast.json +++ b/packages/postgresql/ast.json @@ -1412,7 +1412,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -1427,11 +1427,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { diff --git a/packages/primero/ast.json b/packages/primero/ast.json index 1101d6797..7f2eda27b 100644 --- a/packages/primero/ast.json +++ b/packages/primero/ast.json @@ -872,7 +872,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -887,11 +887,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { diff --git a/packages/redis/ast.json b/packages/redis/ast.json index 44319f303..533d4df80 100644 --- a/packages/redis/ast.json +++ b/packages/redis/ast.json @@ -840,7 +840,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -855,11 +855,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { diff --git a/packages/resourcemap/ast.json b/packages/resourcemap/ast.json index 072cbe5c3..94bbf2f95 100644 --- a/packages/resourcemap/ast.json +++ b/packages/resourcemap/ast.json @@ -277,7 +277,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -292,11 +292,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { diff --git a/packages/satusehat/ast.json b/packages/satusehat/ast.json index d0f33d737..6da6c2c98 100644 --- a/packages/satusehat/ast.json +++ b/packages/satusehat/ast.json @@ -569,7 +569,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -584,11 +584,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { diff --git a/packages/sftp/ast.json b/packages/sftp/ast.json index a6f39295d..ce04a2054 100644 --- a/packages/sftp/ast.json +++ b/packages/sftp/ast.json @@ -637,7 +637,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -652,11 +652,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { diff --git a/packages/smpp/ast.json b/packages/smpp/ast.json index 072cbe5c3..94bbf2f95 100644 --- a/packages/smpp/ast.json +++ b/packages/smpp/ast.json @@ -277,7 +277,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -292,11 +292,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { diff --git a/packages/vtiger/ast.json b/packages/vtiger/ast.json index 072cbe5c3..94bbf2f95 100644 --- a/packages/vtiger/ast.json +++ b/packages/vtiger/ast.json @@ -277,7 +277,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -292,11 +292,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { diff --git a/packages/zoho/ast.json b/packages/zoho/ast.json index 072cbe5c3..94bbf2f95 100644 --- a/packages/zoho/ast.json +++ b/packages/zoho/ast.json @@ -277,7 +277,7 @@ "operation" ], "docs": { - "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.\n\nIt also ensures the results of an operation make their way back into\nthe state's references.", + "description": "Iterates over an array of items and invokes an operation upon each one, where the state\nobject is _scoped_ so that state.data is the item under iteration.\nThe rest of the state object is untouched and can be referenced as usual.\nYou can pass an array directly, or use lazy state or a JSONPath string to\nreference a slice of state.", "tags": [ { "title": "public", @@ -292,11 +292,11 @@ { "title": "example", "description": "each(\n $.data,\n // Inside the callback operation, `$.data` is scoped to the item under iteration\n insert(\"patient\", {\n patient_name: $.data.properties.case_name,\n patient_id: $.data.case_id,\n })\n);", - "caption": "Using lazy state to iterate over items in state.data and pass each one into an \"insert\" operation" + "caption": "Using lazy state ($) to iterate over items in state.data and pass each into an \"insert\" operation" }, { "title": "example", - "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n patient_name: state.data.properties.case_name.toUpperCase(),\n patient_age: calculateAge(state.data.properties.birthdate),\n }))\n);", + "description": "each(\n $.data,\n insert(\"patient\", (state) => ({\n patient_id: state.data.case_id,\n ...state.data\n }))\n);", "caption": "Iterate over items in state.data and pass each one into an \"insert\" operation" }, { From 4ef09a6517fa223b2548c17092a23bc3bac635eb Mon Sep 17 00:00:00 2001 From: Joe Clark Date: Fri, 25 Oct 2024 16:33:53 +0100 Subject: [PATCH 6/7] versions --- packages/asana/CHANGELOG.md | 8 ++++++++ packages/asana/package.json | 2 +- packages/azure-storage/CHANGELOG.md | 8 ++++++++ packages/azure-storage/package.json | 2 +- packages/beyonic/CHANGELOG.md | 7 +++++++ packages/beyonic/package.json | 2 +- packages/bigquery/CHANGELOG.md | 8 ++++++++ packages/bigquery/package.json | 2 +- packages/cartodb/CHANGELOG.md | 8 ++++++++ packages/cartodb/package.json | 2 +- packages/cht/CHANGELOG.md | 8 ++++++++ packages/cht/package.json | 2 +- packages/collections/CHANGELOG.md | 7 +++++++ packages/collections/package.json | 2 +- packages/commcare/CHANGELOG.md | 8 ++++++++ packages/commcare/package.json | 2 +- packages/common/CHANGELOG.md | 6 ++++++ packages/common/package.json | 2 +- packages/dhis2/CHANGELOG.md | 8 ++++++++ packages/dhis2/package.json | 2 +- packages/dynamics/CHANGELOG.md | 8 ++++++++ packages/dynamics/package.json | 4 ++-- packages/facebook/CHANGELOG.md | 8 ++++++++ packages/facebook/package.json | 2 +- packages/fhir-ndr-et/CHANGELOG.md | 9 +++++++++ packages/fhir-ndr-et/package.json | 4 ++-- packages/fhir/CHANGELOG.md | 8 ++++++++ packages/fhir/package.json | 4 ++-- packages/godata/CHANGELOG.md | 8 ++++++++ packages/godata/package.json | 4 ++-- packages/googlehealthcare/CHANGELOG.md | 8 ++++++++ packages/googlehealthcare/package.json | 4 ++-- packages/googlesheets/CHANGELOG.md | 8 ++++++++ packages/googlesheets/package.json | 2 +- packages/hive/CHANGELOG.md | 8 ++++++++ packages/hive/package.json | 2 +- packages/http/CHANGELOG.md | 8 ++++++++ packages/http/package.json | 2 +- packages/khanacademy/CHANGELOG.md | 7 +++++++ packages/khanacademy/package.json | 2 +- packages/magpi/CHANGELOG.md | 8 ++++++++ packages/magpi/package.json | 4 ++-- packages/mailchimp/CHANGELOG.md | 8 ++++++++ packages/mailchimp/package.json | 2 +- packages/mailgun/CHANGELOG.md | 8 ++++++++ packages/mailgun/package.json | 2 +- packages/maximo/CHANGELOG.md | 8 ++++++++ packages/maximo/package.json | 2 +- packages/medicmobile/CHANGELOG.md | 8 ++++++++ packages/medicmobile/package.json | 2 +- packages/mogli/CHANGELOG.md | 8 ++++++++ packages/mogli/package.json | 2 +- packages/mojatax/CHANGELOG.md | 8 ++++++++ packages/mojatax/package.json | 2 +- packages/mongodb/CHANGELOG.md | 8 ++++++++ packages/mongodb/package.json | 2 +- packages/msgraph/CHANGELOG.md | 8 ++++++++ packages/msgraph/package.json | 2 +- packages/mssql/CHANGELOG.md | 8 ++++++++ packages/mssql/package.json | 2 +- packages/mysql/CHANGELOG.md | 8 ++++++++ packages/mysql/package.json | 2 +- packages/nexmo/CHANGELOG.md | 8 ++++++++ packages/nexmo/package.json | 2 +- packages/ocl/CHANGELOG.md | 8 ++++++++ packages/ocl/package.json | 4 ++-- packages/odk/CHANGELOG.md | 8 ++++++++ packages/odk/package.json | 2 +- packages/openfn/CHANGELOG.md | 8 ++++++++ packages/openfn/package.json | 2 +- packages/openhim/CHANGELOG.md | 7 +++++++ packages/openhim/package.json | 2 +- packages/openimis/CHANGELOG.md | 8 ++++++++ packages/openimis/package.json | 2 +- packages/openlmis/CHANGELOG.md | 8 ++++++++ packages/openlmis/package.json | 2 +- packages/openmrs/CHANGELOG.md | 8 ++++++++ packages/openmrs/package.json | 2 +- packages/openspp/CHANGELOG.md | 8 ++++++++ packages/openspp/package.json | 2 +- packages/postgresql/CHANGELOG.md | 8 ++++++++ packages/postgresql/package.json | 2 +- packages/primero/CHANGELOG.md | 8 ++++++++ packages/primero/package.json | 2 +- packages/redis/CHANGELOG.md | 8 ++++++++ packages/redis/package.json | 2 +- packages/resourcemap/CHANGELOG.md | 8 ++++++++ packages/resourcemap/package.json | 2 +- packages/satusehat/CHANGELOG.md | 8 ++++++++ packages/satusehat/package.json | 2 +- packages/sftp/CHANGELOG.md | 8 ++++++++ packages/sftp/package.json | 2 +- packages/smpp/CHANGELOG.md | 8 ++++++++ packages/smpp/package.json | 2 +- packages/telerivet/CHANGELOG.md | 7 +++++++ packages/telerivet/package.json | 2 +- packages/testing/CHANGELOG.md | 7 +++++++ packages/testing/package.json | 2 +- packages/vtiger/CHANGELOG.md | 8 ++++++++ packages/vtiger/package.json | 2 +- packages/zoho/CHANGELOG.md | 8 ++++++++ packages/zoho/package.json | 2 +- pnpm-lock.yaml | 16 ++++++++-------- tools/import-tests/package.json | 2 +- 104 files changed, 468 insertions(+), 67 deletions(-) diff --git a/packages/asana/CHANGELOG.md b/packages/asana/CHANGELOG.md index ec4216984..5028dca51 100644 --- a/packages/asana/CHANGELOG.md +++ b/packages/asana/CHANGELOG.md @@ -1,5 +1,13 @@ # @openfn/language-asana +## 4.0.5 + +### Patch Changes + +- Updated docs for each() +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 4.0.4 ### Patch Changes diff --git a/packages/asana/package.json b/packages/asana/package.json index 15afacd20..8a953cb8a 100644 --- a/packages/asana/package.json +++ b/packages/asana/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-asana", - "version": "4.0.4", + "version": "4.0.5", "description": "An adaptor to access objects in Asana", "homepage": "https://docs.openfn.org", "repository": { diff --git a/packages/azure-storage/CHANGELOG.md b/packages/azure-storage/CHANGELOG.md index 75c6561e3..3ec9274ec 100644 --- a/packages/azure-storage/CHANGELOG.md +++ b/packages/azure-storage/CHANGELOG.md @@ -1,5 +1,13 @@ # @openfn/language-azure-storage +## 2.0.5 + +### Patch Changes + +- Updated docs for each() +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 2.0.4 ### Patch Changes diff --git a/packages/azure-storage/package.json b/packages/azure-storage/package.json index ca1a0e4e0..f65c69126 100644 --- a/packages/azure-storage/package.json +++ b/packages/azure-storage/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-azure-storage", - "version": "2.0.4", + "version": "2.0.5", "description": "OpenFn adaptor for Azure Storage", "type": "module", "exports": { diff --git a/packages/beyonic/CHANGELOG.md b/packages/beyonic/CHANGELOG.md index 4a198b07c..8d8110e21 100644 --- a/packages/beyonic/CHANGELOG.md +++ b/packages/beyonic/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-beyonic +## 0.3.7 + +### Patch Changes + +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 0.3.6 ### Patch Changes diff --git a/packages/beyonic/package.json b/packages/beyonic/package.json index cfe7ee717..b1eeff3a7 100644 --- a/packages/beyonic/package.json +++ b/packages/beyonic/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-beyonic", - "version": "0.3.6", + "version": "0.3.7", "description": "beyonic Language Pack for OpenFn", "homepage": "https://docs.openfn.org", "repository": { diff --git a/packages/bigquery/CHANGELOG.md b/packages/bigquery/CHANGELOG.md index 97de4b2ec..6c41a3c97 100644 --- a/packages/bigquery/CHANGELOG.md +++ b/packages/bigquery/CHANGELOG.md @@ -1,5 +1,13 @@ # @openfn/language-bigquery +## 3.0.6 + +### Patch Changes + +- Updated docs for each() +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 3.0.5 ### Patch Changes diff --git a/packages/bigquery/package.json b/packages/bigquery/package.json index 45e15caec..aeda12628 100644 --- a/packages/bigquery/package.json +++ b/packages/bigquery/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-bigquery", - "version": "3.0.5", + "version": "3.0.6", "description": "A Google BigQuery language package for use with Open Function", "main": "dist/index.cjs", "scripts": { diff --git a/packages/cartodb/CHANGELOG.md b/packages/cartodb/CHANGELOG.md index 1261520ae..f34239e6c 100644 --- a/packages/cartodb/CHANGELOG.md +++ b/packages/cartodb/CHANGELOG.md @@ -1,5 +1,13 @@ # @openfn/language-cartodb +## 0.4.7 + +### Patch Changes + +- Updated docs for each() +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 0.4.6 ### Patch Changes diff --git a/packages/cartodb/package.json b/packages/cartodb/package.json index 5b1b0cc7e..179fca86e 100644 --- a/packages/cartodb/package.json +++ b/packages/cartodb/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-cartodb", - "version": "0.4.6", + "version": "0.4.7", "description": "cartodb Language Pack for OpenFn", "main": "dist/index.cjs", "scripts": { diff --git a/packages/cht/CHANGELOG.md b/packages/cht/CHANGELOG.md index 2ae44736a..3632c3edb 100644 --- a/packages/cht/CHANGELOG.md +++ b/packages/cht/CHANGELOG.md @@ -1,5 +1,13 @@ # @openfn/language-cht +## 1.0.5 + +### Patch Changes + +- Updated docs for each() +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 1.0.4 ### Patch Changes diff --git a/packages/cht/package.json b/packages/cht/package.json index 5076e756c..579a13fd8 100644 --- a/packages/cht/package.json +++ b/packages/cht/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-cht", - "version": "1.0.4", + "version": "1.0.5", "description": "OpenFn CHT adaptor", "type": "module", "exports": { diff --git a/packages/collections/CHANGELOG.md b/packages/collections/CHANGELOG.md index 1d5dae2fb..c95eb0e4c 100644 --- a/packages/collections/CHANGELOG.md +++ b/packages/collections/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-collections +## 0.1.1 + +### Patch Changes + +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 0.1.0 Initial experiemntal release, with `collections.get`, `collections.each`, diff --git a/packages/collections/package.json b/packages/collections/package.json index 037fc31d4..ec193cec3 100644 --- a/packages/collections/package.json +++ b/packages/collections/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-collections", - "version": "0.1.0", + "version": "0.1.1", "description": "OpenFn collections adaptor", "type": "module", "exports": { diff --git a/packages/commcare/CHANGELOG.md b/packages/commcare/CHANGELOG.md index 36cc085a8..e49dd819b 100644 --- a/packages/commcare/CHANGELOG.md +++ b/packages/commcare/CHANGELOG.md @@ -1,5 +1,13 @@ # @openfn/language-commcare +## 3.2.4 + +### Patch Changes + +- Updated docs for each() +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 3.2.3 ### Patch Changes diff --git a/packages/commcare/package.json b/packages/commcare/package.json index 9cbb3dc59..b49a515d4 100644 --- a/packages/commcare/package.json +++ b/packages/commcare/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-commcare", - "version": "3.2.3", + "version": "3.2.4", "description": "Commcare Language Pack for OpenFn", "homepage": "https://docs.openfn.org", "repository": { diff --git a/packages/common/CHANGELOG.md b/packages/common/CHANGELOG.md index 36a5d9c40..d6e1c5e1e 100644 --- a/packages/common/CHANGELOG.md +++ b/packages/common/CHANGELOG.md @@ -1,5 +1,11 @@ ## 2.0.0 +## 2.1.1 + +### Patch Changes + +- Updated docs for each() + ## 2.1.0 ### Minor Changes diff --git a/packages/common/package.json b/packages/common/package.json index 34f27f0ef..5830507cb 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-common", - "version": "2.1.0", + "version": "2.1.1", "description": "Common Expressions for OpenFn", "homepage": "https://docs.openfn.org", "repository": { diff --git a/packages/dhis2/CHANGELOG.md b/packages/dhis2/CHANGELOG.md index 71d3b452b..05219c8c5 100644 --- a/packages/dhis2/CHANGELOG.md +++ b/packages/dhis2/CHANGELOG.md @@ -1,5 +1,13 @@ # @openfn/language-dhis2 +## 5.0.6 + +### Patch Changes + +- Updated docs for each() +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 5.0.5 ### Patch Changes diff --git a/packages/dhis2/package.json b/packages/dhis2/package.json index 41f24acbb..f29cad9b8 100644 --- a/packages/dhis2/package.json +++ b/packages/dhis2/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-dhis2", - "version": "5.0.5", + "version": "5.0.6", "description": "DHIS2 Language Pack for OpenFn", "homepage": "https://docs.openfn.org", "repository": { diff --git a/packages/dynamics/CHANGELOG.md b/packages/dynamics/CHANGELOG.md index fdc9d43e9..86719c9ad 100644 --- a/packages/dynamics/CHANGELOG.md +++ b/packages/dynamics/CHANGELOG.md @@ -1,5 +1,13 @@ # @openfn/language-dynamics +## 0.5.9 + +### Patch Changes + +- Updated docs for each() +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 0.5.8 ### Patch Changes diff --git a/packages/dynamics/package.json b/packages/dynamics/package.json index 1b455e21d..a4543470e 100644 --- a/packages/dynamics/package.json +++ b/packages/dynamics/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-dynamics", - "version": "0.5.8", + "version": "0.5.9", "description": "A Microsoft Dynamics Language Pack for OpenFn", "main": "dist/index.cjs", "scripts": { @@ -20,7 +20,7 @@ "configuration-schema.json" ], "dependencies": { - "@openfn/language-common": "2.1.0", + "@openfn/language-common": "2.1.1", "request": "^2.72.0" }, "devDependencies": { diff --git a/packages/facebook/CHANGELOG.md b/packages/facebook/CHANGELOG.md index 73739cd63..d4810afc9 100644 --- a/packages/facebook/CHANGELOG.md +++ b/packages/facebook/CHANGELOG.md @@ -1,5 +1,13 @@ # @openfn/language-facebook +## 0.4.7 + +### Patch Changes + +- Updated docs for each() +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 0.4.6 ### Patch Changes diff --git a/packages/facebook/package.json b/packages/facebook/package.json index f8a081a14..de2af7b50 100644 --- a/packages/facebook/package.json +++ b/packages/facebook/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-facebook", - "version": "0.4.6", + "version": "0.4.7", "description": "An Language Package for Facebook Messenger API", "main": "dist/index.cjs", "scripts": { diff --git a/packages/fhir-ndr-et/CHANGELOG.md b/packages/fhir-ndr-et/CHANGELOG.md index ec3ffc650..cb4bafc01 100644 --- a/packages/fhir-ndr-et/CHANGELOG.md +++ b/packages/fhir-ndr-et/CHANGELOG.md @@ -1,5 +1,14 @@ # @openfn/language-fhir-ndr-et +## 0.1.5 + +### Patch Changes + +- Updated docs for each() +- Updated dependencies + - @openfn/language-common@2.1.1 + - @openfn/language-fhir@5.0.3 + ## 0.1.4 ### Patch Changes diff --git a/packages/fhir-ndr-et/package.json b/packages/fhir-ndr-et/package.json index bed86f4c2..15f36002e 100644 --- a/packages/fhir-ndr-et/package.json +++ b/packages/fhir-ndr-et/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-fhir-ndr-et", - "version": "0.1.4", + "version": "0.1.5", "description": "OpenFn fhir adaptor for NDR HIV in Ehtiopia", "type": "module", "exports": { @@ -41,7 +41,7 @@ ], "dependencies": { "@openfn/language-common": "workspace:*", - "@openfn/language-fhir": "^5.0.2", + "@openfn/language-fhir": "^5.0.3", "@types/fhir": "^0.0.41", "ast-types": "^0.14.2", "lodash": "^4.17.21", diff --git a/packages/fhir/CHANGELOG.md b/packages/fhir/CHANGELOG.md index d0b94c8e0..67ba80b5c 100644 --- a/packages/fhir/CHANGELOG.md +++ b/packages/fhir/CHANGELOG.md @@ -1,5 +1,13 @@ # @openfn/language-fhir +## 5.0.3 + +### Patch Changes + +- Updated docs for each() +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 5.0.2 ### Patch Changes diff --git a/packages/fhir/package.json b/packages/fhir/package.json index 2addb307a..6be6690d1 100644 --- a/packages/fhir/package.json +++ b/packages/fhir/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-fhir", - "version": "5.0.2", + "version": "5.0.3", "description": "A FHIR adaptor for OpenFn", "main": "dist/index.cjs", "scripts": { @@ -20,7 +20,7 @@ "configuration-schema.json" ], "dependencies": { - "@openfn/language-common": "workspace:^2.0.1", + "@openfn/language-common": "workspace:^2.1.1", "undici": "^5.28.4" }, "devDependencies": { diff --git a/packages/godata/CHANGELOG.md b/packages/godata/CHANGELOG.md index ce524949a..4b7fd6388 100644 --- a/packages/godata/CHANGELOG.md +++ b/packages/godata/CHANGELOG.md @@ -1,5 +1,13 @@ # @openfn/language-godata +## 3.5.4 + +### Patch Changes + +- Updated docs for each() +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 3.5.3 ### Patch Changes diff --git a/packages/godata/package.json b/packages/godata/package.json index 45d7e838e..1279f3db3 100644 --- a/packages/godata/package.json +++ b/packages/godata/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-godata", - "version": "3.5.3", + "version": "3.5.4", "description": "An OpenFn adaptor for use with the WHO's GoData API", "main": "dist/index.cjs", "scripts": { @@ -20,7 +20,7 @@ "configuration-schema.json" ], "dependencies": { - "@openfn/language-common": "^2.0.1", + "@openfn/language-common": "^2.1.1", "axios": "^1.7.7" }, "devDependencies": { diff --git a/packages/googlehealthcare/CHANGELOG.md b/packages/googlehealthcare/CHANGELOG.md index decc40424..cfe4b2f93 100644 --- a/packages/googlehealthcare/CHANGELOG.md +++ b/packages/googlehealthcare/CHANGELOG.md @@ -1,5 +1,13 @@ # @openfn/language-googlehealthcare +## 1.1.3 + +### Patch Changes + +- Updated docs for each() +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 1.1.2 ### Patch Changes diff --git a/packages/googlehealthcare/package.json b/packages/googlehealthcare/package.json index 878c1bb22..609b64b80 100644 --- a/packages/googlehealthcare/package.json +++ b/packages/googlehealthcare/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-googlehealthcare", - "version": "1.1.2", + "version": "1.1.3", "description": "A Google Health Care language package for use with Open Function", "type": "module", "exports": { @@ -28,7 +28,7 @@ "configuration-schema.json" ], "dependencies": { - "@openfn/language-common": "^2.0.1" + "@openfn/language-common": "^2.1.1" }, "devDependencies": { "@openfn/simple-ast": "0.4.1", diff --git a/packages/googlesheets/CHANGELOG.md b/packages/googlesheets/CHANGELOG.md index cb36d1dda..4297324ec 100644 --- a/packages/googlesheets/CHANGELOG.md +++ b/packages/googlesheets/CHANGELOG.md @@ -1,5 +1,13 @@ # @openfn/language-googlesheets +## 3.0.5 + +### Patch Changes + +- Updated docs for each() +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 3.0.4 ### Patch Changes diff --git a/packages/googlesheets/package.json b/packages/googlesheets/package.json index 1f5ce8559..ef963824b 100644 --- a/packages/googlesheets/package.json +++ b/packages/googlesheets/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-googlesheets", - "version": "3.0.4", + "version": "3.0.5", "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 734aa3291..d6d85b781 100644 --- a/packages/hive/CHANGELOG.md +++ b/packages/hive/CHANGELOG.md @@ -1,5 +1,13 @@ # @openfn/language-hive +## 0.3.7 + +### Patch Changes + +- Updated docs for each() +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 0.3.6 ### Patch Changes diff --git a/packages/hive/package.json b/packages/hive/package.json index 93c1c806c..49ebcc010 100644 --- a/packages/hive/package.json +++ b/packages/hive/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-hive", - "version": "0.3.6", + "version": "0.3.7", "description": "An Apache HIVE adaptor for OpenFn", "type": "module", "exports": { diff --git a/packages/http/CHANGELOG.md b/packages/http/CHANGELOG.md index e3a8d5a53..871cb28d8 100644 --- a/packages/http/CHANGELOG.md +++ b/packages/http/CHANGELOG.md @@ -1,5 +1,13 @@ # @openfn/language-http +## 6.5.1 + +### Patch Changes + +- Updated docs for each() +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 6.5.0 ### Minor Changes diff --git a/packages/http/package.json b/packages/http/package.json index a337ce4c3..31587cfd4 100644 --- a/packages/http/package.json +++ b/packages/http/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-http", - "version": "6.5.0", + "version": "6.5.1", "description": "An HTTP request language package for use with Open Function", "homepage": "https://docs.openfn.org", "repository": { diff --git a/packages/khanacademy/CHANGELOG.md b/packages/khanacademy/CHANGELOG.md index ea4b0bcee..39144f9b1 100644 --- a/packages/khanacademy/CHANGELOG.md +++ b/packages/khanacademy/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-khanacademy +## 0.5.7 + +### Patch Changes + +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 0.5.6 ### Patch Changes diff --git a/packages/khanacademy/package.json b/packages/khanacademy/package.json index 432589fdd..4831d9e9a 100644 --- a/packages/khanacademy/package.json +++ b/packages/khanacademy/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-khanacademy", - "version": "0.5.6", + "version": "0.5.7", "description": "A Khan Academy Language Pack for OpenFn", "main": "dist/index.cjs", "scripts": { diff --git a/packages/magpi/CHANGELOG.md b/packages/magpi/CHANGELOG.md index eb77be645..2187c1ad6 100644 --- a/packages/magpi/CHANGELOG.md +++ b/packages/magpi/CHANGELOG.md @@ -1,5 +1,13 @@ # @openfn/language-magpi +## 1.2.4 + +### Patch Changes + +- Updated docs for each() +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 1.2.3 ### Patch Changes diff --git a/packages/magpi/package.json b/packages/magpi/package.json index 933c2db8d..bce5c6ce9 100644 --- a/packages/magpi/package.json +++ b/packages/magpi/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-magpi", - "version": "1.2.3", + "version": "1.2.4", "description": "A Magpi Language Pack for OpenFn", "main": "dist/index.cjs", "scripts": { @@ -20,7 +20,7 @@ "configuration-schema.json" ], "dependencies": { - "@openfn/language-common": "workspace:^2.0.1", + "@openfn/language-common": "workspace:^2.1.1", "JSONPath": "^0.10.0", "js2xmlparser": "^3.0.0", "lodash-fp": "^0.10.4", diff --git a/packages/mailchimp/CHANGELOG.md b/packages/mailchimp/CHANGELOG.md index e07601ab1..22ab7815b 100644 --- a/packages/mailchimp/CHANGELOG.md +++ b/packages/mailchimp/CHANGELOG.md @@ -1,5 +1,13 @@ # @openfn/language-mailchimp +## 1.0.8 + +### Patch Changes + +- Updated docs for each() +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 1.0.7 ### Patch Changes diff --git a/packages/mailchimp/package.json b/packages/mailchimp/package.json index 41cdb7735..e4e2ce01a 100644 --- a/packages/mailchimp/package.json +++ b/packages/mailchimp/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-mailchimp", - "version": "1.0.7", + "version": "1.0.8", "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 c72fa9475..e6ddc49ce 100644 --- a/packages/mailgun/CHANGELOG.md +++ b/packages/mailgun/CHANGELOG.md @@ -1,5 +1,13 @@ # @openfn/language-mailgun +## 0.5.6 + +### Patch Changes + +- Updated docs for each() +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 0.5.5 ### Patch Changes diff --git a/packages/mailgun/package.json b/packages/mailgun/package.json index ad8a15db2..b7c062323 100644 --- a/packages/mailgun/package.json +++ b/packages/mailgun/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-mailgun", - "version": "0.5.5", + "version": "0.5.6", "description": "mailgun Language Pack for OpenFn", "main": "dist/index.cjs", "scripts": { diff --git a/packages/maximo/CHANGELOG.md b/packages/maximo/CHANGELOG.md index d74279249..e071f25fa 100644 --- a/packages/maximo/CHANGELOG.md +++ b/packages/maximo/CHANGELOG.md @@ -1,5 +1,13 @@ # @openfn/language-maximo +## 0.5.8 + +### Patch Changes + +- Updated docs for each() +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 0.5.7 ### Patch Changes diff --git a/packages/maximo/package.json b/packages/maximo/package.json index c283c4e2a..af70d6646 100644 --- a/packages/maximo/package.json +++ b/packages/maximo/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-maximo", - "version": "0.5.7", + "version": "0.5.8", "description": "An IBM Maximo EAM Language Pack for OpenFn", "main": "dist/index.cjs", "scripts": { diff --git a/packages/medicmobile/CHANGELOG.md b/packages/medicmobile/CHANGELOG.md index 42f7f9c56..a79026f26 100644 --- a/packages/medicmobile/CHANGELOG.md +++ b/packages/medicmobile/CHANGELOG.md @@ -1,5 +1,13 @@ # @openfn/language-medicmobile +## 0.5.7 + +### Patch Changes + +- Updated docs for each() +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 0.5.6 ### Patch Changes diff --git a/packages/medicmobile/package.json b/packages/medicmobile/package.json index 4759ce273..f26b75c46 100644 --- a/packages/medicmobile/package.json +++ b/packages/medicmobile/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-medicmobile", - "version": "0.5.6", + "version": "0.5.7", "description": "A Medic Mobile language pack for OpenFn", "main": "dist/index.cjs", "scripts": { diff --git a/packages/mogli/CHANGELOG.md b/packages/mogli/CHANGELOG.md index 4680a4e9a..a40abc509 100644 --- a/packages/mogli/CHANGELOG.md +++ b/packages/mogli/CHANGELOG.md @@ -1,5 +1,13 @@ v0.1.6 +## 0.5.8 + +### Patch Changes + +- Updated docs for each() +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 0.5.7 ### Patch Changes diff --git a/packages/mogli/package.json b/packages/mogli/package.json index 6e3d8022e..2891c999b 100644 --- a/packages/mogli/package.json +++ b/packages/mogli/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-mogli", - "version": "0.5.7", + "version": "0.5.8", "description": "A Mogli SMS Language Pack for OpenFn", "main": "dist/index.cjs", "scripts": { diff --git a/packages/mojatax/CHANGELOG.md b/packages/mojatax/CHANGELOG.md index 0e84af55e..6f53df6f5 100644 --- a/packages/mojatax/CHANGELOG.md +++ b/packages/mojatax/CHANGELOG.md @@ -1,5 +1,13 @@ # @openfn/language-mojatax +## 1.0.2 + +### Patch Changes + +- Updated docs for each() +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 1.0.1 ### Patch Changes diff --git a/packages/mojatax/package.json b/packages/mojatax/package.json index 6a6c1289f..8aa1f8b0c 100644 --- a/packages/mojatax/package.json +++ b/packages/mojatax/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-mojatax", - "version": "1.0.1", + "version": "1.0.2", "description": "OpenFn mojatax adaptor", "type": "module", "exports": { diff --git a/packages/mongodb/CHANGELOG.md b/packages/mongodb/CHANGELOG.md index ed168ac1c..384390e16 100644 --- a/packages/mongodb/CHANGELOG.md +++ b/packages/mongodb/CHANGELOG.md @@ -1,5 +1,13 @@ # @openfn/language-mongodb +## 2.1.7 + +### Patch Changes + +- Updated docs for each() +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 2.1.6 ### Patch Changes diff --git a/packages/mongodb/package.json b/packages/mongodb/package.json index 893082712..ac91a77f2 100644 --- a/packages/mongodb/package.json +++ b/packages/mongodb/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-mongodb", - "version": "2.1.6", + "version": "2.1.7", "description": "A language package for working with MongoDb", "main": "dist/index.cjs", "scripts": { diff --git a/packages/msgraph/CHANGELOG.md b/packages/msgraph/CHANGELOG.md index 9785a9daf..1de1e3c0a 100644 --- a/packages/msgraph/CHANGELOG.md +++ b/packages/msgraph/CHANGELOG.md @@ -1,5 +1,13 @@ # @openfn/language-msgraph +## 0.7.7 + +### Patch Changes + +- Updated docs for each() +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 0.7.6 ### Patch Changes diff --git a/packages/msgraph/package.json b/packages/msgraph/package.json index bf6d11601..8eb984d86 100644 --- a/packages/msgraph/package.json +++ b/packages/msgraph/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-msgraph", - "version": "0.7.6", + "version": "0.7.7", "description": "Microsoft Graph Language Pack for OpenFn", "type": "module", "exports": { diff --git a/packages/mssql/CHANGELOG.md b/packages/mssql/CHANGELOG.md index 958f0d42b..588384500 100644 --- a/packages/mssql/CHANGELOG.md +++ b/packages/mssql/CHANGELOG.md @@ -4,6 +4,14 @@ ### Patch Changes +- Updated docs for each() +- Updated dependencies + - @openfn/language-common@2.1.1 + +## 5.0.7 + +### Patch Changes + - Updated dependencies [03a1a74] - @openfn/language-common@2.1.0 diff --git a/packages/mssql/package.json b/packages/mssql/package.json index 82d0033c0..1875c1cfb 100644 --- a/packages/mssql/package.json +++ b/packages/mssql/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-mssql", - "version": "5.0.6", + "version": "5.0.7", "description": "A Microsoft SQL language pack for OpenFn", "exports": { ".": { diff --git a/packages/mysql/CHANGELOG.md b/packages/mysql/CHANGELOG.md index d6130b138..5a6679f7f 100644 --- a/packages/mysql/CHANGELOG.md +++ b/packages/mysql/CHANGELOG.md @@ -1,5 +1,13 @@ # @openfn/language-mysql +## 2.0.5 + +### Patch Changes + +- Updated docs for each() +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 2.0.4 ### Patch Changes diff --git a/packages/mysql/package.json b/packages/mysql/package.json index c960260fe..325968a7f 100644 --- a/packages/mysql/package.json +++ b/packages/mysql/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-mysql", - "version": "2.0.4", + "version": "2.0.5", "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 d1f7f5f02..babf340b1 100644 --- a/packages/nexmo/CHANGELOG.md +++ b/packages/nexmo/CHANGELOG.md @@ -1,5 +1,13 @@ # @openfn/language-nexmo +## 0.5.9 + +### Patch Changes + +- Updated docs for each() +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 0.5.8 ### Patch Changes diff --git a/packages/nexmo/package.json b/packages/nexmo/package.json index 6d5ce7927..c2f3655fb 100644 --- a/packages/nexmo/package.json +++ b/packages/nexmo/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-nexmo", - "version": "0.5.8", + "version": "0.5.9", "description": "An Language Package for Nexmo", "main": "dist/index.cjs", "scripts": { diff --git a/packages/ocl/CHANGELOG.md b/packages/ocl/CHANGELOG.md index 4acd45814..d30b3be4c 100644 --- a/packages/ocl/CHANGELOG.md +++ b/packages/ocl/CHANGELOG.md @@ -1,5 +1,13 @@ # @openfn/language-ocl +## 1.2.8 + +### Patch Changes + +- Updated docs for each() +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 1.2.7 ### Patch Changes diff --git a/packages/ocl/package.json b/packages/ocl/package.json index ce2321c83..4af4dc2e5 100644 --- a/packages/ocl/package.json +++ b/packages/ocl/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-ocl", - "version": "1.2.7", + "version": "1.2.8", "description": "An OCL language package for use with Open Function", "main": "dist/index.cjs", "scripts": { @@ -20,7 +20,7 @@ "configuration-schema.json" ], "dependencies": { - "@openfn/language-common": "2.1.0" + "@openfn/language-common": "2.1.1" }, "devDependencies": { "@openfn/simple-ast": "^0.4.1", diff --git a/packages/odk/CHANGELOG.md b/packages/odk/CHANGELOG.md index 933b86174..f8e40a21f 100644 --- a/packages/odk/CHANGELOG.md +++ b/packages/odk/CHANGELOG.md @@ -1,5 +1,13 @@ # @openfn/language-odk +## 3.0.7 + +### Patch Changes + +- Updated docs for each() +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 3.0.6 ### Patch Changes diff --git a/packages/odk/package.json b/packages/odk/package.json index f6283fa88..d644e2673 100644 --- a/packages/odk/package.json +++ b/packages/odk/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-odk", - "version": "3.0.6", + "version": "3.0.7", "description": "OpenFn odk adaptor", "type": "module", "exports": { diff --git a/packages/openfn/CHANGELOG.md b/packages/openfn/CHANGELOG.md index e927237df..57da940fc 100644 --- a/packages/openfn/CHANGELOG.md +++ b/packages/openfn/CHANGELOG.md @@ -1,5 +1,13 @@ # @openfn/language-openfn +## 2.0.6 + +### Patch Changes + +- Updated docs for each() +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 2.0.5 ### Patch Changes diff --git a/packages/openfn/package.json b/packages/openfn/package.json index 23c8b90ed..3435e0a14 100644 --- a/packages/openfn/package.json +++ b/packages/openfn/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-openfn", - "version": "2.0.5", + "version": "2.0.6", "description": "An (experimental) 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 3b8f59412..2ac210f79 100644 --- a/packages/openhim/CHANGELOG.md +++ b/packages/openhim/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-openhim +## 0.3.6 + +### Patch Changes + +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 0.3.5 ### Patch Changes diff --git a/packages/openhim/package.json b/packages/openhim/package.json index e11f6bd42..c81764a32 100644 --- a/packages/openhim/package.json +++ b/packages/openhim/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-openhim", - "version": "0.3.5", + "version": "0.3.6", "description": "openhim Language Pack for OpenFn", "main": "dist/index.cjs", "scripts": { diff --git a/packages/openimis/CHANGELOG.md b/packages/openimis/CHANGELOG.md index 1759e0a13..3a48e326c 100644 --- a/packages/openimis/CHANGELOG.md +++ b/packages/openimis/CHANGELOG.md @@ -1,5 +1,13 @@ # @openfn/language-openimis +## 2.0.5 + +### Patch Changes + +- Updated docs for each() +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 2.0.4 ### Patch Changes diff --git a/packages/openimis/package.json b/packages/openimis/package.json index aa29e4b68..156e09d23 100644 --- a/packages/openimis/package.json +++ b/packages/openimis/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-openimis", - "version": "2.0.4", + "version": "2.0.5", "description": "An OpenIMIS adaptor for OpenFn", "type": "module", "exports": { diff --git a/packages/openlmis/CHANGELOG.md b/packages/openlmis/CHANGELOG.md index c94d425b0..244f54367 100644 --- a/packages/openlmis/CHANGELOG.md +++ b/packages/openlmis/CHANGELOG.md @@ -1,5 +1,13 @@ # @openfn/language-openlmis +## 1.0.7 + +### Patch Changes + +- Updated docs for each() +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 1.0.6 ### Patch Changes diff --git a/packages/openlmis/package.json b/packages/openlmis/package.json index d0f6f1313..08ed54f39 100644 --- a/packages/openlmis/package.json +++ b/packages/openlmis/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-openlmis", - "version": "1.0.6", + "version": "1.0.7", "description": "OpenFn openlmis adaptor", "type": "module", "exports": { diff --git a/packages/openmrs/CHANGELOG.md b/packages/openmrs/CHANGELOG.md index e64fd6489..deb6218af 100644 --- a/packages/openmrs/CHANGELOG.md +++ b/packages/openmrs/CHANGELOG.md @@ -1,5 +1,13 @@ # @openfn/language-openmrs +## 4.1.3 + +### Patch Changes + +- Updated docs for each() +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 4.1.2 ### Patch Changes diff --git a/packages/openmrs/package.json b/packages/openmrs/package.json index edcfa90a5..0ad3f4101 100644 --- a/packages/openmrs/package.json +++ b/packages/openmrs/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-openmrs", - "version": "4.1.2", + "version": "4.1.3", "description": "OpenMRS Language Pack for OpenFn", "homepage": "https://docs.openfn.org", "repository": { diff --git a/packages/openspp/CHANGELOG.md b/packages/openspp/CHANGELOG.md index c58496bf5..3ea12a44e 100644 --- a/packages/openspp/CHANGELOG.md +++ b/packages/openspp/CHANGELOG.md @@ -1,5 +1,13 @@ # @openfn/language-openspp +## 2.0.5 + +### Patch Changes + +- Updated docs for each() +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 2.0.4 ### Patch Changes diff --git a/packages/openspp/package.json b/packages/openspp/package.json index 4bc741c6a..5dabc80e8 100644 --- a/packages/openspp/package.json +++ b/packages/openspp/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-openspp", - "version": "2.0.4", + "version": "2.0.5", "description": "An OpenFn adaptor for working with the OpenSPP json rpc", "type": "module", "exports": { diff --git a/packages/postgresql/CHANGELOG.md b/packages/postgresql/CHANGELOG.md index a110dc263..4724b7606 100644 --- a/packages/postgresql/CHANGELOG.md +++ b/packages/postgresql/CHANGELOG.md @@ -1,5 +1,13 @@ # @openfn/language-postgresql +## 6.0.5 + +### Patch Changes + +- Updated docs for each() +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 6.0.4 ### Patch Changes diff --git a/packages/postgresql/package.json b/packages/postgresql/package.json index 740bb5183..532c06d30 100644 --- a/packages/postgresql/package.json +++ b/packages/postgresql/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-postgresql", - "version": "6.0.4", + "version": "6.0.5", "description": "A PostgreSQL Language Pack for OpenFn", "homepage": "https://docs.openfn.org", "exports": { diff --git a/packages/primero/CHANGELOG.md b/packages/primero/CHANGELOG.md index ea5f53d2b..29f42f76d 100644 --- a/packages/primero/CHANGELOG.md +++ b/packages/primero/CHANGELOG.md @@ -1,5 +1,13 @@ # @openfn/language-primero +## 3.0.6 + +### Patch Changes + +- Updated docs for each() +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 3.0.5 ### Patch Changes diff --git a/packages/primero/package.json b/packages/primero/package.json index 8db9bfe5d..0853c2b70 100644 --- a/packages/primero/package.json +++ b/packages/primero/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-primero", - "version": "3.0.5", + "version": "3.0.6", "description": "A UNICEF Primero language package for use with Open Function", "exports": { ".": { diff --git a/packages/redis/CHANGELOG.md b/packages/redis/CHANGELOG.md index 16ed47d57..310391181 100644 --- a/packages/redis/CHANGELOG.md +++ b/packages/redis/CHANGELOG.md @@ -1,5 +1,13 @@ # @openfn/language-redis +## 1.2.4 + +### Patch Changes + +- Updated docs for each() +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 1.2.3 ### Patch Changes diff --git a/packages/redis/package.json b/packages/redis/package.json index 78e6ac57d..e20bc6f22 100644 --- a/packages/redis/package.json +++ b/packages/redis/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-redis", - "version": "1.2.3", + "version": "1.2.4", "description": "OpenFn redis adaptor", "type": "module", "exports": { diff --git a/packages/resourcemap/CHANGELOG.md b/packages/resourcemap/CHANGELOG.md index e07457324..385fb1204 100644 --- a/packages/resourcemap/CHANGELOG.md +++ b/packages/resourcemap/CHANGELOG.md @@ -1,5 +1,13 @@ # @openfn/language-resourcemap +## 0.4.7 + +### Patch Changes + +- Updated docs for each() +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 0.4.6 ### Patch Changes diff --git a/packages/resourcemap/package.json b/packages/resourcemap/package.json index 929491ce0..ffe00a765 100644 --- a/packages/resourcemap/package.json +++ b/packages/resourcemap/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-resourcemap", - "version": "0.4.6", + "version": "0.4.7", "description": "Resourcemap Language Pack for OpenFn", "main": "dist/index.cjs", "scripts": { diff --git a/packages/satusehat/CHANGELOG.md b/packages/satusehat/CHANGELOG.md index 844314bce..c199417dd 100644 --- a/packages/satusehat/CHANGELOG.md +++ b/packages/satusehat/CHANGELOG.md @@ -1,5 +1,13 @@ # @openfn/language-satusehat +## 2.0.5 + +### Patch Changes + +- Updated docs for each() +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 2.0.4 ### Patch Changes diff --git a/packages/satusehat/package.json b/packages/satusehat/package.json index 6a308018a..a22deba3f 100644 --- a/packages/satusehat/package.json +++ b/packages/satusehat/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-satusehat", - "version": "2.0.4", + "version": "2.0.5", "description": "OpenFn Satusehat adaptor", "type": "module", "exports": { diff --git a/packages/sftp/CHANGELOG.md b/packages/sftp/CHANGELOG.md index 9b54d577b..08945adf1 100644 --- a/packages/sftp/CHANGELOG.md +++ b/packages/sftp/CHANGELOG.md @@ -1,5 +1,13 @@ # @openfn/language-sftp +## 2.0.5 + +### Patch Changes + +- Updated docs for each() +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 2.0.4 ### Patch Changes diff --git a/packages/sftp/package.json b/packages/sftp/package.json index e6bf038e4..f75196dbf 100644 --- a/packages/sftp/package.json +++ b/packages/sftp/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-sftp", - "version": "2.0.4", + "version": "2.0.5", "description": "An SFTP language package for use with Open Function", "homepage": "https://docs.openfn.org", "repository": { diff --git a/packages/smpp/CHANGELOG.md b/packages/smpp/CHANGELOG.md index e72f4b5e6..fd78de39a 100644 --- a/packages/smpp/CHANGELOG.md +++ b/packages/smpp/CHANGELOG.md @@ -1,5 +1,13 @@ # @openfn/language-smpp +## 1.4.7 + +### Patch Changes + +- Updated docs for each() +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 1.4.6 ### Patch Changes diff --git a/packages/smpp/package.json b/packages/smpp/package.json index e0045e1b8..6b3d5d202 100644 --- a/packages/smpp/package.json +++ b/packages/smpp/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-smpp", - "version": "1.4.6", + "version": "1.4.7", "description": "An SMPP client API Language Pack for OpenFn", "main": "dist/index.cjs", "scripts": { diff --git a/packages/telerivet/CHANGELOG.md b/packages/telerivet/CHANGELOG.md index 59bf937c4..c96601c0e 100644 --- a/packages/telerivet/CHANGELOG.md +++ b/packages/telerivet/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-telerivet +## 0.3.6 + +### Patch Changes + +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 0.3.5 ### Patch Changes diff --git a/packages/telerivet/package.json b/packages/telerivet/package.json index d93fff432..ea10f36fc 100644 --- a/packages/telerivet/package.json +++ b/packages/telerivet/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-telerivet", - "version": "0.3.5", + "version": "0.3.6", "description": "telerivet Language Pack for OpenFn", "main": "dist/index.cjs", "scripts": { diff --git a/packages/testing/CHANGELOG.md b/packages/testing/CHANGELOG.md index de41862e4..e5c29fff4 100644 --- a/packages/testing/CHANGELOG.md +++ b/packages/testing/CHANGELOG.md @@ -1,5 +1,12 @@ # @openfn/language-testing +## 1.0.8 + +### Patch Changes + +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 1.0.7 ### Patch Changes diff --git a/packages/testing/package.json b/packages/testing/package.json index 07444d000..8c26445c1 100644 --- a/packages/testing/package.json +++ b/packages/testing/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-testing", - "version": "1.0.7", + "version": "1.0.8", "description": "OpenFn test adaptor. Internal use only.", "type": "module", "exports": { diff --git a/packages/vtiger/CHANGELOG.md b/packages/vtiger/CHANGELOG.md index e1e56acdc..e8f400894 100644 --- a/packages/vtiger/CHANGELOG.md +++ b/packages/vtiger/CHANGELOG.md @@ -1,5 +1,13 @@ # @openfn/language-vtiger +## 1.3.7 + +### Patch Changes + +- Updated docs for each() +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 1.3.6 ### Patch Changes diff --git a/packages/vtiger/package.json b/packages/vtiger/package.json index 1c421eb8a..108846219 100644 --- a/packages/vtiger/package.json +++ b/packages/vtiger/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-vtiger", - "version": "1.3.6", + "version": "1.3.7", "description": "A Vtiger Language Pack for OpenFn", "main": "dist/index.cjs", "scripts": { diff --git a/packages/zoho/CHANGELOG.md b/packages/zoho/CHANGELOG.md index c3cc3c755..ce780ff80 100644 --- a/packages/zoho/CHANGELOG.md +++ b/packages/zoho/CHANGELOG.md @@ -1,5 +1,13 @@ # @openfn/language-zoho +## 0.4.6 + +### Patch Changes + +- Updated docs for each() +- Updated dependencies + - @openfn/language-common@2.1.1 + ## 0.4.5 ### Patch Changes diff --git a/packages/zoho/package.json b/packages/zoho/package.json index 9eecbe600..cfd5abaa1 100644 --- a/packages/zoho/package.json +++ b/packages/zoho/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-zoho", - "version": "0.4.5", + "version": "0.4.6", "description": "zoho Language Pack for OpenFn", "main": "dist/index.cjs", "scripts": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c88940769..d205c76a6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -403,7 +403,7 @@ importers: packages/dynamics: dependencies: '@openfn/language-common': - specifier: 2.1.0 + specifier: 2.1.1 version: link:../common request: specifier: ^2.72.0 @@ -471,7 +471,7 @@ importers: packages/fhir: dependencies: '@openfn/language-common': - specifier: workspace:^2.0.1 + specifier: workspace:^2.1.1 version: link:../common undici: specifier: ^5.28.4 @@ -502,7 +502,7 @@ importers: specifier: workspace:* version: link:../common '@openfn/language-fhir': - specifier: ^5.0.2 + specifier: ^5.0.3 version: link:../fhir '@types/fhir': specifier: ^0.0.41 @@ -545,7 +545,7 @@ importers: packages/godata: dependencies: '@openfn/language-common': - specifier: ^2.0.1 + specifier: ^2.1.1 version: link:../common axios: specifier: ^1.7.7 @@ -579,7 +579,7 @@ importers: packages/googlehealthcare: dependencies: '@openfn/language-common': - specifier: ^2.0.1 + specifier: ^2.1.1 version: link:../common devDependencies: '@openfn/simple-ast': @@ -759,7 +759,7 @@ importers: packages/magpi: dependencies: '@openfn/language-common': - specifier: workspace:^2.0.1 + specifier: workspace:^2.1.1 version: link:../common JSONPath: specifier: ^0.10.0 @@ -1209,7 +1209,7 @@ importers: packages/ocl: dependencies: '@openfn/language-common': - specifier: 2.1.0 + specifier: 2.1.1 version: link:../common devDependencies: '@openfn/simple-ast': @@ -2070,7 +2070,7 @@ importers: tools/import-tests: dependencies: '@openfn/language-common': - specifier: workspace:^2.1.0 + specifier: workspace:^2.1.1 version: link:../../packages/common tools/metadata: diff --git a/tools/import-tests/package.json b/tools/import-tests/package.json index 80c0a9b73..d419193bd 100644 --- a/tools/import-tests/package.json +++ b/tools/import-tests/package.json @@ -11,6 +11,6 @@ "author": "", "license": "ISC", "dependencies": { - "@openfn/language-common": "workspace:^2.1.0" + "@openfn/language-common": "workspace:^2.1.1" } } \ No newline at end of file From 2180938c4db76a27731cd04953e3e9f201ba18c6 Mon Sep 17 00:00:00 2001 From: Joe Clark Date: Mon, 28 Oct 2024 10:58:16 +0000 Subject: [PATCH 7/7] revert patches for packages which don't export each --- packages/beyonic/CHANGELOG.md | 7 ------- packages/beyonic/package.json | 2 +- packages/collections/CHANGELOG.md | 7 ------- packages/collections/package.json | 2 +- packages/khanacademy/CHANGELOG.md | 7 ------- packages/khanacademy/package.json | 2 +- packages/openhim/CHANGELOG.md | 7 ------- packages/openhim/package.json | 2 +- packages/telerivet/CHANGELOG.md | 7 ------- packages/telerivet/package.json | 2 +- packages/testing/CHANGELOG.md | 7 ------- packages/testing/package.json | 2 +- 12 files changed, 6 insertions(+), 48 deletions(-) diff --git a/packages/beyonic/CHANGELOG.md b/packages/beyonic/CHANGELOG.md index 8d8110e21..4a198b07c 100644 --- a/packages/beyonic/CHANGELOG.md +++ b/packages/beyonic/CHANGELOG.md @@ -1,12 +1,5 @@ # @openfn/language-beyonic -## 0.3.7 - -### Patch Changes - -- Updated dependencies - - @openfn/language-common@2.1.1 - ## 0.3.6 ### Patch Changes diff --git a/packages/beyonic/package.json b/packages/beyonic/package.json index b1eeff3a7..cfe7ee717 100644 --- a/packages/beyonic/package.json +++ b/packages/beyonic/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-beyonic", - "version": "0.3.7", + "version": "0.3.6", "description": "beyonic Language Pack for OpenFn", "homepage": "https://docs.openfn.org", "repository": { diff --git a/packages/collections/CHANGELOG.md b/packages/collections/CHANGELOG.md index c95eb0e4c..1d5dae2fb 100644 --- a/packages/collections/CHANGELOG.md +++ b/packages/collections/CHANGELOG.md @@ -1,12 +1,5 @@ # @openfn/language-collections -## 0.1.1 - -### Patch Changes - -- Updated dependencies - - @openfn/language-common@2.1.1 - ## 0.1.0 Initial experiemntal release, with `collections.get`, `collections.each`, diff --git a/packages/collections/package.json b/packages/collections/package.json index ec193cec3..037fc31d4 100644 --- a/packages/collections/package.json +++ b/packages/collections/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-collections", - "version": "0.1.1", + "version": "0.1.0", "description": "OpenFn collections adaptor", "type": "module", "exports": { diff --git a/packages/khanacademy/CHANGELOG.md b/packages/khanacademy/CHANGELOG.md index 39144f9b1..ea4b0bcee 100644 --- a/packages/khanacademy/CHANGELOG.md +++ b/packages/khanacademy/CHANGELOG.md @@ -1,12 +1,5 @@ # @openfn/language-khanacademy -## 0.5.7 - -### Patch Changes - -- Updated dependencies - - @openfn/language-common@2.1.1 - ## 0.5.6 ### Patch Changes diff --git a/packages/khanacademy/package.json b/packages/khanacademy/package.json index 4831d9e9a..432589fdd 100644 --- a/packages/khanacademy/package.json +++ b/packages/khanacademy/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-khanacademy", - "version": "0.5.7", + "version": "0.5.6", "description": "A Khan Academy Language Pack for OpenFn", "main": "dist/index.cjs", "scripts": { diff --git a/packages/openhim/CHANGELOG.md b/packages/openhim/CHANGELOG.md index 2ac210f79..3b8f59412 100644 --- a/packages/openhim/CHANGELOG.md +++ b/packages/openhim/CHANGELOG.md @@ -1,12 +1,5 @@ # @openfn/language-openhim -## 0.3.6 - -### Patch Changes - -- Updated dependencies - - @openfn/language-common@2.1.1 - ## 0.3.5 ### Patch Changes diff --git a/packages/openhim/package.json b/packages/openhim/package.json index c81764a32..e11f6bd42 100644 --- a/packages/openhim/package.json +++ b/packages/openhim/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-openhim", - "version": "0.3.6", + "version": "0.3.5", "description": "openhim Language Pack for OpenFn", "main": "dist/index.cjs", "scripts": { diff --git a/packages/telerivet/CHANGELOG.md b/packages/telerivet/CHANGELOG.md index c96601c0e..59bf937c4 100644 --- a/packages/telerivet/CHANGELOG.md +++ b/packages/telerivet/CHANGELOG.md @@ -1,12 +1,5 @@ # @openfn/language-telerivet -## 0.3.6 - -### Patch Changes - -- Updated dependencies - - @openfn/language-common@2.1.1 - ## 0.3.5 ### Patch Changes diff --git a/packages/telerivet/package.json b/packages/telerivet/package.json index ea10f36fc..d93fff432 100644 --- a/packages/telerivet/package.json +++ b/packages/telerivet/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-telerivet", - "version": "0.3.6", + "version": "0.3.5", "description": "telerivet Language Pack for OpenFn", "main": "dist/index.cjs", "scripts": { diff --git a/packages/testing/CHANGELOG.md b/packages/testing/CHANGELOG.md index e5c29fff4..de41862e4 100644 --- a/packages/testing/CHANGELOG.md +++ b/packages/testing/CHANGELOG.md @@ -1,12 +1,5 @@ # @openfn/language-testing -## 1.0.8 - -### Patch Changes - -- Updated dependencies - - @openfn/language-common@2.1.1 - ## 1.0.7 ### Patch Changes diff --git a/packages/testing/package.json b/packages/testing/package.json index 8c26445c1..07444d000 100644 --- a/packages/testing/package.json +++ b/packages/testing/package.json @@ -1,6 +1,6 @@ { "name": "@openfn/language-testing", - "version": "1.0.8", + "version": "1.0.7", "description": "OpenFn test adaptor. Internal use only.", "type": "module", "exports": {