@openfn/language-commcare 4.2.0 → 4.2.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types/http.d.ts +5 -5
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openfn/language-commcare",
3
3
  "label": "CommCare",
4
- "version": "4.2.0",
4
+ "version": "4.2.1",
5
5
  "description": "OpenFn adaptor for CommCare (Dimagi)",
6
6
  "homepage": "https://docs.openfn.org",
7
7
  "repository": {
package/types/http.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  /**
10
10
  * Make a POST request to CommCare. Use this to send resources directly to Commcare REST API.
11
11
  * You can pass CommCare body data as a JSON object.
12
- * @example <caption>Post to the V2 case API with JSON data (prefixed with /a/<domain>/api/)</caption>
12
+ * @example <caption>Post to the V2 case API with JSON data (prefixed with /a/[domain]/api/)</caption>
13
13
  * http.post('case/v2', {
14
14
  * case_type: 'patient',
15
15
  * case_name: 'Elizabeth Harmon',
@@ -18,7 +18,7 @@
18
18
  * });
19
19
  * @function
20
20
  * @public
21
- * @param {string} path - Path to resource. Relative paths are prefixed with `/a/<domain>/api/`; paths starting with `/` are used as-is.
21
+ * @param {string} path - Path to resource. Relative paths are prefixed with `/a/[domain]/api/`; paths starting with `/` are used as-is.
22
22
  * @param {object} data - Object or JSON to create a resource
23
23
  * @param {Object} [params] - Optional request params
24
24
  * @returns {Operation}
@@ -27,11 +27,11 @@
27
27
  export function post(path: string, data: object, params?: any): Operation;
28
28
  /**
29
29
  * Make a GET request to CommCare. Use this to retrieve resources directly from the CommCare REST API.
30
- * @example <caption>Get cases using the v1 API (prefixed with /a/<domain>/api/)</caption>
30
+ * @example <caption>Get cases using the v1 API (prefixed with /a/[domain]/api/)</caption>
31
31
  * http.get('case/v1');
32
32
  * @function
33
33
  * @public
34
- * @param {string} path - Path to resource. Relative paths are prefixed with `/a/<domain>/api/`; paths starting with `/` are used as-is.
34
+ * @param {string} path - Path to resource. Relative paths are prefixed with `/a/[domain]/api/`; paths starting with `/` are used as-is.
35
35
  * @param {Object} [params] - Optional request params
36
36
  * @returns {Operation}
37
37
  * @state {CommCareState}
@@ -39,7 +39,7 @@ export function post(path: string, data: object, params?: any): Operation;
39
39
  export function get(path: string, params?: any): Operation;
40
40
  /**
41
41
  * Make a general HTTP request against the CommCare server. Use this to make any request to CommCare REST API.
42
- * @example <caption>Get cases using the v1 API (prefixed with /a/<domain>/api/)</caption>
42
+ * @example <caption>Get cases using the v1 API (prefixed with /a/[domain]/api/)</caption>
43
43
  * http.request('GET', 'case/v1');
44
44
  * @function
45
45
  * @public