From 2a4ffc3f6d8210f80315c80a3a9fb01ecc487e6e Mon Sep 17 00:00:00 2001 From: Emmanuel Evance Date: Thu, 24 Oct 2024 15:41:35 +0300 Subject: [PATCH] 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",