@openfn/language-inform 1.0.0 → 1.0.2

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 CHANGED
@@ -10,7 +10,7 @@
10
10
  "tags": [
11
11
  {
12
12
  "title": "example",
13
- "description": "getForms()",
13
+ "description": "getForms();",
14
14
  "caption": "Get all forms without filter options"
15
15
  },
16
16
  {
@@ -64,7 +64,7 @@
64
64
  "tags": [
65
65
  {
66
66
  "title": "example",
67
- "description": "getForm('6225')",
67
+ "description": "getForm('6225');",
68
68
  "caption": "Get a single form"
69
69
  },
70
70
  {
@@ -93,7 +93,7 @@
93
93
  },
94
94
  {
95
95
  "title": "param",
96
- "description": null,
96
+ "description": "Optional filter options.",
97
97
  "type": {
98
98
  "type": "NameExpression",
99
99
  "name": "object"
@@ -199,7 +199,7 @@
199
199
  "tags": [
200
200
  {
201
201
  "title": "example",
202
- "description": "getSubmission('6225', '7783155')"
202
+ "description": "getSubmission('6225', '7783155');"
203
203
  },
204
204
  {
205
205
  "title": "function",
@@ -255,7 +255,7 @@
255
255
  "tags": [
256
256
  {
257
257
  "title": "example",
258
- "description": "getAttachmentMetadata('621985')"
258
+ "description": "getAttachmentMetadata('621985');"
259
259
  },
260
260
  {
261
261
  "title": "function",
@@ -303,12 +303,12 @@
303
303
  "tags": [
304
304
  {
305
305
  "title": "example",
306
- "description": "downloadAttachment('622038', {\n filename:\n 'unicefbih/attachments/download_1.png',\n});",
306
+ "description": "downloadAttachment('622038', {\n filename:\n 'project/attachments/download_1.png',\n});",
307
307
  "caption": "Download an attachment"
308
308
  },
309
309
  {
310
310
  "title": "example",
311
- "description": "downloadAttachment('622038', {\n filename:\n 'unicefbih/attachments/download_1.png',\n parseAs: 'base64',\n});",
311
+ "description": "downloadAttachment('622038', {\n filename:\n 'project/attachments/download_1.png',\n parseAs: 'base64',\n});",
312
312
  "caption": "Download an attachment in base64 format"
313
313
  },
314
314
  {
@@ -332,7 +332,7 @@
332
332
  },
333
333
  {
334
334
  "title": "param",
335
- "description": "Optional request options. Supported options are: `filename` for the specific attachment to be downloaded, and `parseAs` for either 'stream` or 'base64`. Defaults to `parseAs: stream`.",
335
+ "description": "Optional request options. Supported options are: `filename` for the specific attachment to be downloaded, and `parseAs` for either `stream` or `base64`. Defaults to `parseAs: stream`.",
336
336
  "type": {
337
337
  "type": "NameExpression",
338
338
  "name": "object"
package/dist/index.cjs CHANGED
@@ -16636,9 +16636,7 @@ var request = (configuration = {}, method, path, options = {}) => {
16636
16636
  ...options
16637
16637
  };
16638
16638
  const safePath = import_node_path.default.join(path);
16639
- return (0, import_util.request)(method, safePath, opts).then(
16640
- (response) => (0, import_util.logResponse)(response, query)
16641
- );
16639
+ return (0, import_util.request)(method, safePath, opts).then(import_util.logResponse);
16642
16640
  };
16643
16641
 
16644
16642
  // src/Adaptor.js
package/dist/index.js CHANGED
@@ -16615,9 +16615,7 @@ var request = (configuration = {}, method, path, options = {}) => {
16615
16615
  ...options
16616
16616
  };
16617
16617
  const safePath = nodepath.join(path);
16618
- return commonRequest(method, safePath, opts).then(
16619
- (response) => logResponse(response, query)
16620
- );
16618
+ return commonRequest(method, safePath, opts).then(logResponse);
16621
16619
  };
16622
16620
 
16623
16621
  // src/Adaptor.js
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfn/language-inform",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "OpenFn inform adaptor",
5
5
  "type": "module",
6
6
  "exports": {
@@ -20,7 +20,7 @@
20
20
  "configuration-schema.json"
21
21
  ],
22
22
  "dependencies": {
23
- "@openfn/language-common": "2.4.0"
23
+ "@openfn/language-common": "2.5.0"
24
24
  },
25
25
  "devDependencies": {
26
26
  "assertion-error": "2.0.0",
@@ -8,7 +8,7 @@
8
8
  /**
9
9
  * Fetch all forms
10
10
  * @example <caption>Get all forms without filter options</caption>
11
- * getForms()
11
+ * getForms();
12
12
  * @example <caption>Get all forms with filter options</caption>
13
13
  * getForms({
14
14
  * public: true,
@@ -25,7 +25,7 @@ export function getForms(options?: object): Operation;
25
25
  /**
26
26
  * Get metadata or structural data for a single form
27
27
  * @example <caption> Get a single form </caption>
28
- * getForm('6225')
28
+ * getForm('6225');
29
29
  * @example <caption> Get a single form structure </caption>
30
30
  * getForm('6225', {
31
31
  * structureOnly: true,
@@ -33,7 +33,7 @@ export function getForms(options?: object): Operation;
33
33
  * @function
34
34
  * @public
35
35
  * @param {string} formId - Id of the form to be retrieved.
36
- * @param {object} options
36
+ * @param {object} options - Optional filter options.
37
37
  * @param {boolean} options.structureOnly - If true, only the form structure is returned in JSON format.
38
38
  * @returns {Operation}
39
39
  * @state {HttpState}
@@ -61,7 +61,7 @@ export function getSubmissions(formId: string, options?: object): Operation;
61
61
  /**
62
62
  * Get a single data submission for a single form
63
63
  * @example
64
- * getSubmission('6225', '7783155')
64
+ * getSubmission('6225', '7783155');
65
65
  * @function
66
66
  * @public
67
67
  * @param {string} formId - Id of the form's submissions to be retrieved.
@@ -73,7 +73,7 @@ export function getSubmission(formId: string, submissionId: string): Operation;
73
73
  /**
74
74
  * Fetch a single attachment's metadata
75
75
  * @example
76
- * getAttachmentMetadata('621985')
76
+ * getAttachmentMetadata('621985');
77
77
  * @function
78
78
  * @public
79
79
  * @param {string} attachmentId - Id of the attachment to be retrieved.
@@ -86,18 +86,18 @@ export function getAttachmentMetadata(attachmentId: string): Operation;
86
86
  * @example <caption>Download an attachment</caption>
87
87
  * downloadAttachment('622038', {
88
88
  * filename:
89
- * 'unicefbih/attachments/download_1.png',
89
+ * 'project/attachments/download_1.png',
90
90
  * });
91
91
  * @example <caption>Download an attachment in base64 format</caption>
92
92
  * downloadAttachment('622038', {
93
93
  * filename:
94
- * 'unicefbih/attachments/download_1.png',
94
+ * 'project/attachments/download_1.png',
95
95
  * parseAs: 'base64',
96
96
  * });
97
97
  * @function
98
98
  * @public
99
99
  * @param {string} attachmentId - Id of the attachment to be retrieved.
100
- * @param {object} options - Optional request options. Supported options are: `filename` for the specific attachment to be downloaded, and `parseAs` for either 'stream` or 'base64`. Defaults to `parseAs: stream`.
100
+ * @param {object} options - Optional request options. Supported options are: `filename` for the specific attachment to be downloaded, and `parseAs` for either `stream` or `base64`. Defaults to `parseAs: stream`.
101
101
  * @returns {Operation}
102
102
  * @state {HttpState}
103
103
  */