Skip to content

Commit 97abe7b

Browse files
authored
Applying MCP annotations to TS components - batch 2/2 (#18668)
* @GTFalcao Applying MCP annotations to TS components - batch 2/2 * Fixing linting errors * Version number fix * Annotation adjustments
1 parent 4a9092d commit 97abe7b

File tree

105 files changed

+626
-112
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+626
-112
lines changed

components/niftyimages/actions/add-data-store-record/add-data-store-record.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ export default defineAction({
1010
description:
1111
"Create or update a Data Store Record [See docs here](https://api.niftyimages.com/)",
1212
key: "niftyimages-add-data-store-record",
13-
version: "0.0.1",
13+
version: "0.0.2",
14+
annotations: {
15+
destructiveHint: true,
16+
openWorldHint: true,
17+
readOnlyHint: false,
18+
},
1419
type: "action",
1520
props: {
1621
niftyimages,
@@ -34,7 +39,9 @@ export default defineAction({
3439
try {
3540
fields = await this.niftyimages.getDataStoreFields(apiKey);
3641
} catch (err) {
37-
throw new ConfigurationError("Error fetching data - please check the **API Key**.");
42+
throw new ConfigurationError(`Error fetching data - please check the **API Key**.
43+
44+
\`${err.message}\``);
3845
}
3946
const newPropNames = [];
4047

components/niftyimages/actions/update-timer-target-date/update-timer-target-date.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@ export default defineAction({
77
description:
88
"Create or update a Data Store Record [See docs here](https://api.niftyimages.com/)",
99
key: "niftyimages-update-timer-target-date",
10-
version: "0.0.1",
10+
version: "0.0.2",
11+
annotations: {
12+
destructiveHint: true,
13+
openWorldHint: true,
14+
readOnlyHint: false,
15+
},
1116
type: "action",
1217
props: {
1318
niftyimages,

components/niftyimages/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/niftyimages",
3-
"version": "0.0.5",
3+
"version": "0.0.6",
44
"description": "Pipedream NiftyImages Components",
55
"main": "dist/app/niftyimages.app.mjs",
66
"keywords": [

components/ninox/actions/create-record/create-record.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@ import { defineAction } from "@pipedream/types";
33

44
export default defineAction({
55
name: "Create Record",
6-
version: "0.0.1",
6+
version: "0.0.2",
7+
annotations: {
8+
destructiveHint: true,
9+
openWorldHint: true,
10+
readOnlyHint: false,
11+
},
712
key: "ninox-create-record",
813
description: "Creates a record. [See docs here](https://docs.ninox.com/en/api/private-cloud-apis#create-update-multiple-records-with-post)",
914
type: "action",

components/ninox/actions/update-record/update-record.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@ import { defineAction } from "@pipedream/types";
33

44
export default defineAction({
55
name: "Update Record",
6-
version: "0.0.1",
6+
version: "0.0.2",
7+
annotations: {
8+
destructiveHint: true,
9+
openWorldHint: true,
10+
readOnlyHint: false,
11+
},
712
key: "ninox-update-record",
813
description: "Updates a record. [See docs here](https://docs.ninox.com/en/api/private-cloud-apis#create-update-multiple-records-with-post)",
914
type: "action",

components/onfleet/actions/create-pickup-dropoff-task/create-pickup-dropoff-task.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
import onfleet from "../../app/onfleet.app";
22
import {
3-
clearObj, prepareData
3+
clearObj, prepareData,
44
} from "../common/utils";
55

66
export default {
77
key: "onfleet-create-pickup-dropoff-task",
88
name: "Create Linked Pickup & Dropoff Tasks",
99
description: "Create a pickup task and dropoff task linked with each other. [See the docs here](https://docs.onfleet.com/reference/create-task)",
1010
type: "action",
11-
version: "0.0.1",
11+
version: "0.0.2",
12+
annotations: {
13+
destructiveHint: false,
14+
openWorldHint: true,
15+
readOnlyHint: false,
16+
},
1217
props: {
1318
onfleet,
1419
merchant: {
@@ -320,8 +325,8 @@ export default {
320325
address: dropoffAddress,
321326
};
322327

323-
let pickupResponse = <any>{};
324-
let dropoffResponse = <any>{};
328+
let pickupResponse: { id?: string } = {};
329+
let dropoffResponse: { id?: string } = {};
325330
let response = {};
326331
let summary = "";
327332

components/onfleet/actions/create-task-template/create-task-template.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
import onfleet from "../../app/onfleet.app";
22
import {
3-
clearObj, prepareData
3+
clearObj, prepareData,
44
} from "../common/utils";
55

66
export default {
77
key: "onfleet-create-task-template",
88
name: "Create Task (Template Use)",
99
description: "Creates a single task. Used for simple templates only. [See the docs here](https://docs.onfleet.com/reference/create-task)",
1010
type: "action",
11-
version: "0.0.1",
11+
version: "0.0.2",
12+
annotations: {
13+
destructiveHint: false,
14+
openWorldHint: true,
15+
readOnlyHint: false,
16+
},
1217
props: {
1318
onfleet,
1419
merchant: {

components/onfleet/actions/create-task/create-task.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
import onfleet from "../../app/onfleet.app";
22
import {
3-
clearObj, prepareData
3+
clearObj, prepareData,
44
} from "../common/utils";
55

66
export default {
77
key: "onfleet-create-task",
88
name: "Create New Task",
99
description: "Create a new task. [See the docs here](https://docs.onfleet.com/reference/create-task)",
1010
type: "action",
11-
version: "0.0.1",
11+
version: "0.0.2",
12+
annotations: {
13+
destructiveHint: false,
14+
openWorldHint: true,
15+
readOnlyHint: false,
16+
},
1217
props: {
1318
onfleet,
1419
merchant: {

components/onfleet/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/onfleet",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "Pipedream Onfleet Components",
55
"main": "dist/app/onfleet.app.mjs",
66
"keywords": [

components/persistiq/actions/add-do-not-contact-domain/add-do-not-contact-domain.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@ import app from "../../app/persistiq.app";
33

44
export default defineAction({
55
key: "persistiq-add-do-not-contact-domain",
6-
version: "0.0.1",
6+
version: "0.0.2",
7+
annotations: {
8+
destructiveHint: false,
9+
openWorldHint: true,
10+
readOnlyHint: false,
11+
},
712
name: "Add Do Not Contact Domain",
813
description: "Creates a new DNC domain. [See docs here](https://apidocs.persistiq.com/#create-dnc-domain)",
914
type: "action",

0 commit comments

Comments
 (0)