@openfn/language-inform 1.0.0 → 1.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 +8 -8
- package/package.json +1 -1
- package/types/Adaptor.d.ts +8 -8
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":
|
|
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 '
|
|
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 '
|
|
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
|
|
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/package.json
CHANGED
package/types/Adaptor.d.ts
CHANGED
|
@@ -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
|
-
* '
|
|
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
|
-
* '
|
|
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
|
|
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
|
*/
|