@openfn/language-dhis2 6.0.0 → 6.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ast.json +7 -7
- package/package.json +1 -1
- package/types/Adaptor.d.ts +7 -7
package/ast.json
CHANGED
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
{
|
|
89
89
|
"title": "example",
|
|
90
90
|
"description": "create('trackedEntities', {\n orgUnit: 'TSyzvBiovKh',\n trackedEntityType: 'nEenWmSyUEp',\n attributes: [\n {\n attribute: 'w75KJ2mc4zz',\n value: 'Gigiwe',\n },\n ]\n});",
|
|
91
|
-
"caption": "Create a single tracker entity. See
|
|
91
|
+
"caption": "Create a single tracker entity. See [Create tracker docs](https://docs.dhis2.org/en/develop/using-the-api/dhis-core-version-241/tracker.html#webapi_nti_import)"
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
94
|
"title": "example",
|
|
@@ -233,7 +233,7 @@
|
|
|
233
233
|
{
|
|
234
234
|
"title": "example",
|
|
235
235
|
"description": "update('trackedEntities', '', {\n createdAt: '2015-08-06T21:12:37.256',\n orgUnit: 'TSyzvBiovKh',\n createdAtClient: '2015-08-06T21:12:37.256',\n trackedEntity: 'IeQfgUtGPq2',\n trackedEntityType: 'nEenWmSyUEp',\n inactive: false,\n deleted: false,\n featureType: 'NONE',\n programOwners: [\n {\n ownerOrgUnit: 'TSyzvBiovKh',\n program: 'IpHINAT79UW',\n trackedEntity: 'IeQfgUtGPq2',\n },\n ],\n attributes: [\n {\n lastUpdated: '2016-01-12T00:00:00.000',\n displayName: 'Last name',\n created: '2016-01-12T00:00:00.000',\n valueType: 'TEXT',\n attribute: 'zDhUuAYrxNC',\n value: 'Russell',\n },\n {\n lastUpdated: '2016-01-12T00:00:00.000',\n code: 'MMD_PER_NAM',\n displayName: 'First name',\n created: '2016-01-12T00:00:00.000',\n valueType: 'TEXT',\n attribute: 'w75KJ2mc4zz',\n value: 'Catherine',\n },\n ],\n});",
|
|
236
|
-
"caption": "Update a tracker entity. See
|
|
236
|
+
"caption": "Update a tracker entity. See [Update tracker docs](https://docs.dhis2.org/en/develop/using-the-api/dhis-core-version-241/tracker.html#webapi_nti_import)"
|
|
237
237
|
},
|
|
238
238
|
{
|
|
239
239
|
"title": "example",
|
|
@@ -363,22 +363,22 @@
|
|
|
363
363
|
{
|
|
364
364
|
"title": "example",
|
|
365
365
|
"description": "get('tracker/trackedEntities/F8yKM85NbxW');",
|
|
366
|
-
"caption": "Get a single tracked entity given the provided ID. See
|
|
366
|
+
"caption": "Get a single tracked entity given the provided ID. See [TrackedEntities docs](https://docs.dhis2.org/en/develop/using-the-api/dhis-core-version-241/tracker.html#tracked-entities-get-apitrackertrackedentities)"
|
|
367
367
|
},
|
|
368
368
|
{
|
|
369
369
|
"title": "example",
|
|
370
370
|
"description": "get('tracker/enrollments/abcd');",
|
|
371
|
-
"caption": "Get an enrollment given the provided ID. See
|
|
371
|
+
"caption": "Get an enrollment given the provided ID. See [Enrollment docs](https://docs.dhis2.org/en/develop/using-the-api/dhis-core-version-241/tracker.html#enrollments-get-apitrackerenrollments)"
|
|
372
372
|
},
|
|
373
373
|
{
|
|
374
374
|
"title": "example",
|
|
375
375
|
"description": "get('tracker/events');",
|
|
376
|
-
"caption": "Get all events matching given criteria. See
|
|
376
|
+
"caption": "Get all events matching given criteria. See [Events docs](https://docs.dhis2.org/en/develop/using-the-api/dhis-core-version-241/tracker.html#events-get-apitrackerevents)"
|
|
377
377
|
},
|
|
378
378
|
{
|
|
379
379
|
"title": "example",
|
|
380
380
|
"description": "get('tracker/relationships', {\n trackedEntity:['F8yKM85NbxW'],\n});",
|
|
381
|
-
"caption": "Get the relationship between two tracker entities. The only required parameters are 'trackedEntity', 'enrollment' or 'event'. See
|
|
381
|
+
"caption": "Get the relationship between two tracker entities. The only required parameters are 'trackedEntity', 'enrollment' or 'event'. See [Relationships docs](https://docs.dhis2.org/en/develop/using-the-api/dhis-core-version-241/tracker.html#relationships-get-apitrackerrelationships)"
|
|
382
382
|
}
|
|
383
383
|
]
|
|
384
384
|
},
|
|
@@ -848,7 +848,7 @@
|
|
|
848
848
|
{
|
|
849
849
|
"title": "example",
|
|
850
850
|
"description": "destroy('trackedEntities', 'LcRd6Nyaq7T');",
|
|
851
|
-
"caption": "a tracked entity instance. See
|
|
851
|
+
"caption": "a tracked entity instance. See [Delete tracker docs](https://docs.dhis2.org/en/develop/using-the-api/dhis-core-version-241/tracker.html#webapi_nti_import)"
|
|
852
852
|
}
|
|
853
853
|
]
|
|
854
854
|
},
|
package/package.json
CHANGED
package/types/Adaptor.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export function execute(...operations: Operations): Operation;
|
|
|
33
33
|
* orgUnit: 'DiszpKrYNg8',
|
|
34
34
|
* status: 'COMPLETED',
|
|
35
35
|
* });
|
|
36
|
-
* @example <caption>Create a single tracker entity. See
|
|
36
|
+
* @example <caption>Create a single tracker entity. See [Create tracker docs](https://docs.dhis2.org/en/develop/using-the-api/dhis-core-version-241/tracker.html#webapi_nti_import)</caption>
|
|
37
37
|
* create('trackedEntities', {
|
|
38
38
|
* orgUnit: 'TSyzvBiovKh',
|
|
39
39
|
* trackedEntityType: 'nEenWmSyUEp',
|
|
@@ -162,7 +162,7 @@ export function create(resourceType: string, data: Dhis2Data, options?: any, cal
|
|
|
162
162
|
* storedBy: 'admin',
|
|
163
163
|
* dataValues: [],
|
|
164
164
|
* });
|
|
165
|
-
* @example <caption>Update a tracker entity. See
|
|
165
|
+
* @example <caption>Update a tracker entity. See [Update tracker docs](https://docs.dhis2.org/en/develop/using-the-api/dhis-core-version-241/tracker.html#webapi_nti_import)</caption>
|
|
166
166
|
* update('trackedEntities', '', {
|
|
167
167
|
* createdAt: '2015-08-06T21:12:37.256',
|
|
168
168
|
* orgUnit: 'TSyzvBiovKh',
|
|
@@ -287,13 +287,13 @@ export function update(resourceType: string, path: string, data: any, options?:
|
|
|
287
287
|
* });
|
|
288
288
|
* @example <caption>Get all programs for an organization unit</caption>
|
|
289
289
|
* get('programs', { orgUnit: 'TSyzvBiovKh', fields: '*' });
|
|
290
|
-
* @example <caption>Get a single tracked entity given the provided ID. See
|
|
290
|
+
* @example <caption>Get a single tracked entity given the provided ID. See [TrackedEntities docs](https://docs.dhis2.org/en/develop/using-the-api/dhis-core-version-241/tracker.html#tracked-entities-get-apitrackertrackedentities)</caption>
|
|
291
291
|
* get('tracker/trackedEntities/F8yKM85NbxW');
|
|
292
|
-
* @example <caption>Get an enrollment given the provided ID. See
|
|
292
|
+
* @example <caption>Get an enrollment given the provided ID. See [Enrollment docs](https://docs.dhis2.org/en/develop/using-the-api/dhis-core-version-241/tracker.html#enrollments-get-apitrackerenrollments)</caption>
|
|
293
293
|
* get('tracker/enrollments/abcd');
|
|
294
|
-
* @example <caption>Get all events matching given criteria. See
|
|
294
|
+
* @example <caption>Get all events matching given criteria. See [Events docs](https://docs.dhis2.org/en/develop/using-the-api/dhis-core-version-241/tracker.html#events-get-apitrackerevents)</caption>
|
|
295
295
|
* get('tracker/events');
|
|
296
|
-
* @example <caption>Get the relationship between two tracker entities. The only required parameters are 'trackedEntity', 'enrollment' or 'event'. See
|
|
296
|
+
* @example <caption>Get the relationship between two tracker entities. The only required parameters are 'trackedEntity', 'enrollment' or 'event'. See [Relationships docs](https://docs.dhis2.org/en/develop/using-the-api/dhis-core-version-241/tracker.html#relationships-get-apitrackerrelationships)</caption>
|
|
297
297
|
* get('tracker/relationships', {
|
|
298
298
|
* trackedEntity:['F8yKM85NbxW'],
|
|
299
299
|
* });
|
|
@@ -390,7 +390,7 @@ export function patch(resourceType: string, path: string, data: any, options?: a
|
|
|
390
390
|
* @param {{apiVersion: number,operationName: string,resourceType: string}} [options] - Optional `options` for `del` operation including params e.g. `{preheatCache: true, strategy: 'UPDATE', mergeMode: 'REPLACE'}`. Run `discover` or see {@link https://docs.dhis2.org/2.34/en/dhis2_developer_manual/web-api.html#create-update-parameters DHIS2 documentation}. Defaults to `{operationName: 'delete', apiVersion: state.configuration.apiVersion, responseType: 'json'}`
|
|
391
391
|
* @param {function} [callback] - Optional callback to handle the response
|
|
392
392
|
* @returns {Operation}
|
|
393
|
-
* @example <caption>a tracked entity instance. See
|
|
393
|
+
* @example <caption>a tracked entity instance. See [Delete tracker docs](https://docs.dhis2.org/en/develop/using-the-api/dhis-core-version-241/tracker.html#webapi_nti_import)</caption>
|
|
394
394
|
* destroy('trackedEntities', 'LcRd6Nyaq7T');
|
|
395
395
|
*/
|
|
396
396
|
export function destroy(resourceType: string, path: string, data?: any, options?: {
|