@pipedream/navan 0.1.0 → 0.2.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.
@@ -0,0 +1,33 @@
1
+ import navan from "../../navan.app.mjs";
2
+
3
+ export default {
4
+ key: "navan-list-user-id-options",
5
+ name: "List User ID Options",
6
+ description: "Retrieves available options for the User ID field.",
7
+ version: "0.0.1",
8
+ type: "action",
9
+ annotations: {
10
+ destructiveHint: false,
11
+ openWorldHint: true,
12
+ readOnlyHint: true,
13
+ },
14
+ props: {
15
+ navan,
16
+ page: {
17
+ type: "integer",
18
+ label: "Page",
19
+ description: "The page of results to retrieve.",
20
+ min: 0,
21
+ default: 0,
22
+ },
23
+ },
24
+ async run({ $ }) {
25
+ const options = await navan.propDefinitions.userId.options.call(this.navan, {
26
+ page: this.page,
27
+ });
28
+ $.export("$summary", `Successfully retrieved ${options.length} option${options.length === 1
29
+ ? ""
30
+ : "s"}`);
31
+ return options;
32
+ },
33
+ };
@@ -4,8 +4,9 @@ export default {
4
4
  key: "navan-list-users",
5
5
  name: "List Users",
6
6
  description: "Retrieves a paginated list of all users in the company. [See the documentation](https://u.pcloud.link/publink/show?code=XZ7Bww5ZoKb93VNf7ISOdR5UzVo6JzBLs7AX)",
7
- version: "0.0.1",
7
+ version: "0.0.2",
8
8
  type: "action",
9
+ ai: "optimized",
9
10
  annotations: {
10
11
  readOnlyHint: true,
11
12
  destructiveHint: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/navan",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "description": "Pipedream Navan Components",
5
5
  "main": "navan.app.mjs",
6
6
  "keywords": [