@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.
Files changed (2) hide show
  1. package/ast.json +67 -64
  2. package/package.json +2 -3
package/ast.json CHANGED
@@ -313,79 +313,66 @@
313
313
  "callback"
314
314
  ],
315
315
  "docs": {
316
- "description": "Options provided to the createTaskStory request",
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": "property",
334
- "description": "The plain text of the comment to add. Cannot be used with html_text.",
335
- "type": {
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": "property",
343
- "description": "Opt In. HTML formatted text for a comment. This will not include the name of the creator.",
344
- "type": {
345
- "type": "NameExpression",
346
- "name": "string"
347
- },
348
- "name": "html_text"
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": "property",
352
- "description": "Default to `false`. Whether the story should be pinned on the resource.",
339
+ "title": "param",
340
+ "description": "Globally unique identifier for the task",
353
341
  "type": {
354
342
  "type": "NameExpression",
355
- "name": "boolean"
343
+ "name": "string"
356
344
  },
357
- "name": "is_pinned"
345
+ "name": "taskGid"
358
346
  },
359
347
  {
360
- "title": "property",
361
- "description": "The name of the sticker in this story. `null` if there is no sticker.",
348
+ "title": "param",
349
+ "description": "Story parameters",
362
350
  "type": {
363
351
  "type": "NameExpression",
364
- "name": "string"
352
+ "name": "StoryOptions"
365
353
  },
366
- "name": "sticker_name"
354
+ "name": "params"
367
355
  },
368
356
  {
369
- "title": "property",
370
- "description": "Opt In. This endpoint returns a compact resource, which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include.",
357
+ "title": "param",
358
+ "description": "(Optional) callback function",
371
359
  "type": {
372
360
  "type": "NameExpression",
373
- "name": "array"
361
+ "name": "function"
374
362
  },
375
- "name": "opt_fields"
363
+ "name": "callback"
376
364
  },
377
365
  {
378
- "title": "property",
379
- "description": "Defaults to `false`. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging.",
366
+ "title": "returns",
367
+ "description": null,
380
368
  "type": {
381
369
  "type": "NameExpression",
382
- "name": "boolean"
383
- },
384
- "name": "opt_pretty"
370
+ "name": "Operation"
371
+ }
385
372
  }
386
373
  ]
387
374
  },
388
- "valid": false
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": "Options provided to the Asana API request",
385
+ "description": "Make a HTTP request against the Asana API.",
399
386
  "tags": [
400
387
  {
401
- "title": "typedef",
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": "public",
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
- "type": null
407
+ "name": null
413
408
  },
414
409
  {
415
- "title": "property",
416
- "description": "Body data to append to the request.",
410
+ "title": "param",
411
+ "description": "Path to resource (excluding api/version)",
417
412
  "type": {
418
413
  "type": "NameExpression",
419
- "name": "object"
414
+ "name": "string"
420
415
  },
421
- "name": "body"
416
+ "name": "path"
422
417
  },
423
418
  {
424
- "title": "property",
425
- "description": "An object of query parameters to be encoded into the URL.",
419
+ "title": "param",
420
+ "description": "(Optional) Query, body and method parameters",
426
421
  "type": {
427
422
  "type": "NameExpression",
428
- "name": "object"
423
+ "name": "RequestOptions"
429
424
  },
430
- "name": "query"
425
+ "name": "params"
431
426
  },
432
427
  {
433
- "title": "property",
434
- "description": "The HTTP method to use. Defaults to `GET`",
428
+ "title": "param",
429
+ "description": "(Optional) Callback function",
435
430
  "type": {
436
431
  "type": "NameExpression",
437
- "name": "string"
432
+ "name": "function"
438
433
  },
439
- "name": "method"
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": false
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.7",
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.2.1"
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",