@openfn/language-asana 4.0.7 → 4.0.9
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 +67 -64
- package/package.json +2 -3
package/ast.json
CHANGED
|
@@ -313,79 +313,66 @@
|
|
|
313
313
|
"callback"
|
|
314
314
|
],
|
|
315
315
|
"docs": {
|
|
316
|
-
"description": "
|
|
316
|
+
"description": "Create a story to a specific task.",
|
|
317
317
|
"tags": [
|
|
318
|
-
{
|
|
319
|
-
"title": "typedef",
|
|
320
|
-
"description": null,
|
|
321
|
-
"type": {
|
|
322
|
-
"type": "NameExpression",
|
|
323
|
-
"name": "Object"
|
|
324
|
-
},
|
|
325
|
-
"name": "StoryOptions"
|
|
326
|
-
},
|
|
327
318
|
{
|
|
328
319
|
"title": "public",
|
|
329
320
|
"description": null,
|
|
330
321
|
"type": null
|
|
331
322
|
},
|
|
332
323
|
{
|
|
333
|
-
"title": "
|
|
334
|
-
"description": "
|
|
335
|
-
"
|
|
336
|
-
"type": "NameExpression",
|
|
337
|
-
"name": "string"
|
|
338
|
-
},
|
|
339
|
-
"name": "text"
|
|
324
|
+
"title": "example",
|
|
325
|
+
"description": "createTaskStory(\"1206933955023739\", {\n text: \"This is a comment\",\n});",
|
|
326
|
+
"caption": "Create a plain text comment"
|
|
340
327
|
},
|
|
341
328
|
{
|
|
342
|
-
"title": "
|
|
343
|
-
"description": "
|
|
344
|
-
"
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
"
|
|
329
|
+
"title": "example",
|
|
330
|
+
"description": "createTaskStory(\"1206933955023739\", {\n html_text: \"<body>This is a comment</body>\",\n});",
|
|
331
|
+
"caption": "Create a HTML formatted text comment"
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"title": "function",
|
|
335
|
+
"description": null,
|
|
336
|
+
"name": null
|
|
349
337
|
},
|
|
350
338
|
{
|
|
351
|
-
"title": "
|
|
352
|
-
"description": "
|
|
339
|
+
"title": "param",
|
|
340
|
+
"description": "Globally unique identifier for the task",
|
|
353
341
|
"type": {
|
|
354
342
|
"type": "NameExpression",
|
|
355
|
-
"name": "
|
|
343
|
+
"name": "string"
|
|
356
344
|
},
|
|
357
|
-
"name": "
|
|
345
|
+
"name": "taskGid"
|
|
358
346
|
},
|
|
359
347
|
{
|
|
360
|
-
"title": "
|
|
361
|
-
"description": "
|
|
348
|
+
"title": "param",
|
|
349
|
+
"description": "Story parameters",
|
|
362
350
|
"type": {
|
|
363
351
|
"type": "NameExpression",
|
|
364
|
-
"name": "
|
|
352
|
+
"name": "StoryOptions"
|
|
365
353
|
},
|
|
366
|
-
"name": "
|
|
354
|
+
"name": "params"
|
|
367
355
|
},
|
|
368
356
|
{
|
|
369
|
-
"title": "
|
|
370
|
-
"description": "
|
|
357
|
+
"title": "param",
|
|
358
|
+
"description": "(Optional) callback function",
|
|
371
359
|
"type": {
|
|
372
360
|
"type": "NameExpression",
|
|
373
|
-
"name": "
|
|
361
|
+
"name": "function"
|
|
374
362
|
},
|
|
375
|
-
"name": "
|
|
363
|
+
"name": "callback"
|
|
376
364
|
},
|
|
377
365
|
{
|
|
378
|
-
"title": "
|
|
379
|
-
"description":
|
|
366
|
+
"title": "returns",
|
|
367
|
+
"description": null,
|
|
380
368
|
"type": {
|
|
381
369
|
"type": "NameExpression",
|
|
382
|
-
"name": "
|
|
383
|
-
}
|
|
384
|
-
"name": "opt_pretty"
|
|
370
|
+
"name": "Operation"
|
|
371
|
+
}
|
|
385
372
|
}
|
|
386
373
|
]
|
|
387
374
|
},
|
|
388
|
-
"valid":
|
|
375
|
+
"valid": true
|
|
389
376
|
},
|
|
390
377
|
{
|
|
391
378
|
"name": "request",
|
|
@@ -395,52 +382,68 @@
|
|
|
395
382
|
"callback"
|
|
396
383
|
],
|
|
397
384
|
"docs": {
|
|
398
|
-
"description": "
|
|
385
|
+
"description": "Make a HTTP request against the Asana API.",
|
|
399
386
|
"tags": [
|
|
400
387
|
{
|
|
401
|
-
"title": "
|
|
388
|
+
"title": "public",
|
|
402
389
|
"description": null,
|
|
403
|
-
"type":
|
|
404
|
-
"type": "NameExpression",
|
|
405
|
-
"name": "Object"
|
|
406
|
-
},
|
|
407
|
-
"name": "RequestOptions"
|
|
390
|
+
"type": null
|
|
408
391
|
},
|
|
409
392
|
{
|
|
410
|
-
"title": "
|
|
393
|
+
"title": "example",
|
|
394
|
+
"description": "Get a task by id\nrequest(\"/tasks/1234\");"
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"title": "example",
|
|
398
|
+
"description": "Query for tasks in a given project\nrequest(\"/tasks\", {\n query: { project: \"abc\" },\n});"
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
"title": "example",
|
|
402
|
+
"description": "Create a new task\nrequest(\"/tasks\", {\n method: \"POST\",\n body: { data: { name: \"do the thing\", completed: false } },\n});"
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"title": "function",
|
|
411
406
|
"description": null,
|
|
412
|
-
"
|
|
407
|
+
"name": null
|
|
413
408
|
},
|
|
414
409
|
{
|
|
415
|
-
"title": "
|
|
416
|
-
"description": "
|
|
410
|
+
"title": "param",
|
|
411
|
+
"description": "Path to resource (excluding api/version)",
|
|
417
412
|
"type": {
|
|
418
413
|
"type": "NameExpression",
|
|
419
|
-
"name": "
|
|
414
|
+
"name": "string"
|
|
420
415
|
},
|
|
421
|
-
"name": "
|
|
416
|
+
"name": "path"
|
|
422
417
|
},
|
|
423
418
|
{
|
|
424
|
-
"title": "
|
|
425
|
-
"description": "
|
|
419
|
+
"title": "param",
|
|
420
|
+
"description": "(Optional) Query, body and method parameters",
|
|
426
421
|
"type": {
|
|
427
422
|
"type": "NameExpression",
|
|
428
|
-
"name": "
|
|
423
|
+
"name": "RequestOptions"
|
|
429
424
|
},
|
|
430
|
-
"name": "
|
|
425
|
+
"name": "params"
|
|
431
426
|
},
|
|
432
427
|
{
|
|
433
|
-
"title": "
|
|
434
|
-
"description": "
|
|
428
|
+
"title": "param",
|
|
429
|
+
"description": "(Optional) Callback function",
|
|
435
430
|
"type": {
|
|
436
431
|
"type": "NameExpression",
|
|
437
|
-
"name": "
|
|
432
|
+
"name": "function"
|
|
438
433
|
},
|
|
439
|
-
"name": "
|
|
434
|
+
"name": "callback"
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"title": "returns",
|
|
438
|
+
"description": null,
|
|
439
|
+
"type": {
|
|
440
|
+
"type": "NameExpression",
|
|
441
|
+
"name": "Operation"
|
|
442
|
+
}
|
|
440
443
|
}
|
|
441
444
|
]
|
|
442
445
|
},
|
|
443
|
-
"valid":
|
|
446
|
+
"valid": true
|
|
444
447
|
}
|
|
445
448
|
],
|
|
446
449
|
"exports": [],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfn/language-asana",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.9",
|
|
4
4
|
"description": "An adaptor to access objects in Asana",
|
|
5
5
|
"homepage": "https://docs.openfn.org",
|
|
6
6
|
"repository": {
|
|
@@ -24,10 +24,9 @@
|
|
|
24
24
|
"configuration-schema.json"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@openfn/language-common": "2.
|
|
27
|
+
"@openfn/language-common": "2.3.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@openfn/simple-ast": "0.4.1",
|
|
31
30
|
"assertion-error": "2.0.0",
|
|
32
31
|
"chai": "4.3.6",
|
|
33
32
|
"deep-eql": "4.1.1",
|