@openfn/language-asana 3.1.0 → 3.2.0
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 +77 -0
- package/dist/index.cjs +3 -0
- package/dist/index.js +3 -0
- package/package.json +2 -2
- package/types/Adaptor.d.ts +1 -1
package/ast.json
CHANGED
|
@@ -724,6 +724,83 @@
|
|
|
724
724
|
]
|
|
725
725
|
},
|
|
726
726
|
"valid": true
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
"name": "cursor",
|
|
730
|
+
"params": [
|
|
731
|
+
"value",
|
|
732
|
+
"options"
|
|
733
|
+
],
|
|
734
|
+
"docs": {
|
|
735
|
+
"description": "Sets a cursor property on state.\nSupports natural language dates like `now`, `today`, `yesterday`, `n hours ago`, `n days ago`, and `start`,\nwhich will be converted relative to the environment (ie, the Lightning or CLI locale). Custom timezones \nare not yet supported.\nSee the usage guide at @{link https://docs.openfn.org/documentation/jobs/job-writing-guide#using-cursors}",
|
|
736
|
+
"tags": [
|
|
737
|
+
{
|
|
738
|
+
"title": "public",
|
|
739
|
+
"description": null,
|
|
740
|
+
"type": null
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
"title": "example",
|
|
744
|
+
"description": "cursor($.cursor, { defaultValue: 'today' })",
|
|
745
|
+
"caption": "Use a cursor from state if present, or else use the default value"
|
|
746
|
+
},
|
|
747
|
+
{
|
|
748
|
+
"title": "example",
|
|
749
|
+
"description": "cursor(22)",
|
|
750
|
+
"caption": "Use a pagination cursor"
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
"title": "function",
|
|
754
|
+
"description": null,
|
|
755
|
+
"name": null
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
"title": "param",
|
|
759
|
+
"description": "the cursor value. Usually an ISO date, natural language date, or page number",
|
|
760
|
+
"type": {
|
|
761
|
+
"type": "NameExpression",
|
|
762
|
+
"name": "any"
|
|
763
|
+
},
|
|
764
|
+
"name": "value"
|
|
765
|
+
},
|
|
766
|
+
{
|
|
767
|
+
"title": "param",
|
|
768
|
+
"description": "options to control the cursor.",
|
|
769
|
+
"type": {
|
|
770
|
+
"type": "NameExpression",
|
|
771
|
+
"name": "object"
|
|
772
|
+
},
|
|
773
|
+
"name": "options"
|
|
774
|
+
},
|
|
775
|
+
{
|
|
776
|
+
"title": "param",
|
|
777
|
+
"description": "set the cursor key. Will persist through the whole run.",
|
|
778
|
+
"type": {
|
|
779
|
+
"type": "NameExpression",
|
|
780
|
+
"name": "string"
|
|
781
|
+
},
|
|
782
|
+
"name": "options.key"
|
|
783
|
+
},
|
|
784
|
+
{
|
|
785
|
+
"title": "param",
|
|
786
|
+
"description": "the value to use if value is falsy",
|
|
787
|
+
"type": {
|
|
788
|
+
"type": "NameExpression",
|
|
789
|
+
"name": "any"
|
|
790
|
+
},
|
|
791
|
+
"name": "options.defaultValue"
|
|
792
|
+
},
|
|
793
|
+
{
|
|
794
|
+
"title": "returns",
|
|
795
|
+
"description": null,
|
|
796
|
+
"type": {
|
|
797
|
+
"type": "NameExpression",
|
|
798
|
+
"name": "Operation"
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
]
|
|
802
|
+
},
|
|
803
|
+
"valid": false
|
|
727
804
|
}
|
|
728
805
|
]
|
|
729
806
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -22,6 +22,7 @@ __export(src_exports, {
|
|
|
22
22
|
alterState: () => import_language_common3.alterState,
|
|
23
23
|
createTask: () => createTask,
|
|
24
24
|
createTaskStory: () => createTaskStory,
|
|
25
|
+
cursor: () => import_language_common3.cursor,
|
|
25
26
|
dataPath: () => import_language_common3.dataPath,
|
|
26
27
|
dataValue: () => import_language_common3.dataValue,
|
|
27
28
|
dateFns: () => import_language_common3.dateFns,
|
|
@@ -49,6 +50,7 @@ __export(Adaptor_exports, {
|
|
|
49
50
|
alterState: () => import_language_common3.alterState,
|
|
50
51
|
createTask: () => createTask,
|
|
51
52
|
createTaskStory: () => createTaskStory,
|
|
53
|
+
cursor: () => import_language_common3.cursor,
|
|
52
54
|
dataPath: () => import_language_common3.dataPath,
|
|
53
55
|
dataValue: () => import_language_common3.dataValue,
|
|
54
56
|
dateFns: () => import_language_common3.dateFns,
|
|
@@ -247,6 +249,7 @@ var src_default = Adaptor_exports;
|
|
|
247
249
|
alterState,
|
|
248
250
|
createTask,
|
|
249
251
|
createTaskStory,
|
|
252
|
+
cursor,
|
|
250
253
|
dataPath,
|
|
251
254
|
dataValue,
|
|
252
255
|
dateFns,
|
package/dist/index.js
CHANGED
|
@@ -10,6 +10,7 @@ __export(Adaptor_exports, {
|
|
|
10
10
|
alterState: () => alterState,
|
|
11
11
|
createTask: () => createTask,
|
|
12
12
|
createTaskStory: () => createTaskStory,
|
|
13
|
+
cursor: () => cursor,
|
|
13
14
|
dataPath: () => dataPath,
|
|
14
15
|
dataValue: () => dataValue,
|
|
15
16
|
dateFns: () => dateFns,
|
|
@@ -71,6 +72,7 @@ function request(state, path, params, callback = (s) => s) {
|
|
|
71
72
|
// src/Adaptor.js
|
|
72
73
|
import {
|
|
73
74
|
alterState,
|
|
75
|
+
cursor,
|
|
74
76
|
dataPath,
|
|
75
77
|
dataValue,
|
|
76
78
|
dateFns,
|
|
@@ -223,6 +225,7 @@ export {
|
|
|
223
225
|
alterState,
|
|
224
226
|
createTask,
|
|
225
227
|
createTaskStory,
|
|
228
|
+
cursor,
|
|
226
229
|
dataPath,
|
|
227
230
|
dataValue,
|
|
228
231
|
dateFns,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfn/language-asana",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "An adaptor to access objects in Asana",
|
|
5
5
|
"homepage": "https://docs.openfn.org",
|
|
6
6
|
"repository": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"configuration-schema.json"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@openfn/language-common": "^1.
|
|
26
|
+
"@openfn/language-common": "^1.13.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@openfn/simple-ast": "0.4.1",
|
package/types/Adaptor.d.ts
CHANGED
|
@@ -187,4 +187,4 @@ export type RequestOptions = {
|
|
|
187
187
|
*/
|
|
188
188
|
method: string;
|
|
189
189
|
};
|
|
190
|
-
export { alterState, dataPath, dataValue, dateFns, each, field, fields, fn, http, lastReferenceValue, merge, sourceValue } from "@openfn/language-common";
|
|
190
|
+
export { alterState, cursor, dataPath, dataValue, dateFns, each, field, fields, fn, http, lastReferenceValue, merge, sourceValue } from "@openfn/language-common";
|