@pipedream/zendesk 0.13.0 → 0.13.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.
@@ -6,7 +6,7 @@ export default {
6
6
  name: "List Articles",
7
7
  description: "Retrieves a list of articles. [See the documentation](https://developer.zendesk.com/api-reference/help_center/help-center-api/articles/#list-articles).",
8
8
  type: "action",
9
- version: "0.0.3",
9
+ version: "0.0.4",
10
10
  annotations: {
11
11
  destructiveHint: false,
12
12
  openWorldHint: true,
@@ -14,6 +14,12 @@ export default {
14
14
  },
15
15
  props: {
16
16
  zendesk,
17
+ // eslint-disable-next-line pipedream/props-label, pipedream/props-description
18
+ alert: {
19
+ type: "alert",
20
+ alertType: "warning",
21
+ content: "If a User ID is provided, you cannot provide a Category ID or Section ID.",
22
+ },
17
23
  locale: {
18
24
  propDefinition: [
19
25
  zendesk,
@@ -26,7 +32,9 @@ export default {
26
32
  zendesk,
27
33
  "articleCategoryId",
28
34
  ({ locale }) => ({
29
- locale,
35
+ locale: locale
36
+ ? locale.toLowerCase()
37
+ : undefined,
30
38
  }),
31
39
  ],
32
40
  optional: true,
@@ -38,7 +46,9 @@ export default {
38
46
  ({
39
47
  locale, categoryId,
40
48
  }) => ({
41
- locale,
49
+ locale: locale
50
+ ? locale.toLowerCase()
51
+ : undefined,
42
52
  categoryId,
43
53
  }),
44
54
  ],
@@ -50,7 +60,6 @@ export default {
50
60
  "userId",
51
61
  ],
52
62
  optional: true,
53
- reloadProps: true,
54
63
  },
55
64
  limit: {
56
65
  propDefinition: [
@@ -60,17 +69,6 @@ export default {
60
69
  description: "Maximum number of articles to return",
61
70
  },
62
71
  },
63
- async additionalProps(props) {
64
- props.locale.hidden = false;
65
- props.categoryId.hidden = false;
66
- props.sectionId.hidden = false;
67
- if (this.userId) {
68
- props.locale.hidden = true;
69
- props.categoryId.hidden = true;
70
- props.sectionId.hidden = true;
71
- }
72
- return {};
73
- },
74
72
  async run({ $ }) {
75
73
  if ((this.categoryId && this.userId) || (this.sectionId && this.userId)) {
76
74
  throw new ConfigurationError("Providing a User ID, you cannot provide a Category ID or Section ID.");
@@ -85,7 +83,9 @@ export default {
85
83
  userId: this.userId,
86
84
  locale: this.userId
87
85
  ? null
88
- : this.locale,
86
+ : this.locale
87
+ ? this.locale.toLowerCase()
88
+ : undefined,
89
89
  },
90
90
  resourceKey: "articles",
91
91
  max: this.limit,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/zendesk",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "description": "Pipedream Zendesk Components",
5
5
  "main": "zendesk.app.mjs",
6
6
  "keywords": [