Skip to content

Commit 1bf3627

Browse files
committed
Move prop definition to .app.mjs
1 parent b1e0ec2 commit 1bf3627

File tree

4 files changed

+19
-21
lines changed

4 files changed

+19
-21
lines changed

components/zoho_desk/actions/list-articles/list-articles.mjs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import zohoDesk from "../../zoho_desk.app.mjs";
2-
import constants from "../../common/constants.mjs";
3-
42
export default {
53
key: "zoho_desk-list-articles",
64
name: "List Articles",
@@ -56,11 +54,10 @@ export default {
5654
optional: true,
5755
},
5856
maxResults: {
59-
type: "integer",
60-
label: "Max Results",
61-
description: "Maximum number of articles to return. Leave blank to return all available results.",
62-
optional: true,
63-
default: constants.MAX_RESOURCES,
57+
propDefinition: [
58+
zohoDesk,
59+
"maxResults",
60+
],
6461
},
6562
},
6663
async run({ $ }) {

components/zoho_desk/actions/list-root-categories/list-root-categories.mjs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import zohoDesk from "../../zoho_desk.app.mjs";
2-
import constants from "../../common/constants.mjs";
3-
42
export default {
53
key: "zoho_desk-list-root-categories",
64
name: "List Root Categories",
@@ -64,11 +62,10 @@ export default {
6462
optional: true,
6563
},
6664
maxResults: {
67-
type: "integer",
68-
label: "Max Results",
69-
description: "Maximum number of categories to return. Leave blank to return all available results.",
70-
optional: true,
71-
default: constants.MAX_RESOURCES,
65+
propDefinition: [
66+
zohoDesk,
67+
"maxResults",
68+
],
7269
},
7370
},
7471
async run({ $ }) {

components/zoho_desk/actions/search-articles/search-articles.mjs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import zohoDesk from "../../zoho_desk.app.mjs";
2-
import constants from "../../common/constants.mjs";
3-
42
export default {
53
key: "zoho_desk-search-articles",
64
name: "Search Articles",
@@ -69,11 +67,10 @@ export default {
6967
],
7068
},
7169
maxResults: {
72-
type: "integer",
73-
label: "Max Results",
74-
description: "Maximum number of articles to return. Leave blank to return all available matches.",
75-
optional: true,
76-
default: constants.MAX_RESOURCES,
70+
propDefinition: [
71+
zohoDesk,
72+
"maxResults",
73+
],
7774
},
7875
},
7976
async run({ $ }) {

components/zoho_desk/zoho_desk.app.mjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,13 @@ export default {
128128
label: "Article ID",
129129
description: "The ID of the knowledge base article.",
130130
},
131+
maxResults: {
132+
type: "integer",
133+
label: "Max Results",
134+
description: `Maximum number of results to return. Set to blank to return everything.`,
135+
optional: true,
136+
default: constants.MAX_RESOURCES,
137+
},
131138
},
132139
methods: {
133140
getUrl(url, path, apiPrefix) {

0 commit comments

Comments
 (0)