@pipedream/upkeep 0.0.4 → 0.1.0
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.
- package/README.md +5 -25
- package/actions/create-purchase-order/create-purchase-order.mjs +6 -1
- package/actions/create-request/create-request.mjs +6 -1
- package/actions/create-work-order/create-work-order.mjs +6 -1
- package/actions/find-asset/find-asset.mjs +6 -1
- package/actions/find-location/find-location.mjs +6 -1
- package/actions/find-part/find-part.mjs +6 -1
- package/actions/find-user/find-user.mjs +6 -1
- package/actions/find-vendor/find-vendor.mjs +6 -1
- package/actions/list-asset-id-options/list-asset-id-options.mjs +33 -0
- package/actions/list-category-id-options/list-category-id-options.mjs +33 -0
- package/actions/list-downtime-status-options/list-downtime-status-options.mjs +33 -0
- package/actions/list-location-id-options/list-location-id-options.mjs +33 -0
- package/actions/list-parts-options/list-parts-options.mjs +33 -0
- package/actions/list-purchase-order-id-options/list-purchase-order-id-options.mjs +33 -0
- package/actions/list-team-id-options/list-team-id-options.mjs +33 -0
- package/actions/list-user-id-options/list-user-id-options.mjs +33 -0
- package/actions/update-purchase-order/update-purchase-order.mjs +6 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,31 +1,11 @@
|
|
|
1
1
|
# Overview
|
|
2
2
|
|
|
3
|
-
The
|
|
4
|
-
Maintenance & Operations solutions for their customers and end users. The API
|
|
5
|
-
enables developers to access data on their users' assets, tasks, and
|
|
6
|
-
maintenance operations. With the UpKeep API, developers can build custom
|
|
7
|
-
solutions for asset management, equipment tracking, work order management, and
|
|
8
|
-
more.
|
|
3
|
+
The UpKeep API enables users to seamlessly integrate maintenance management tasks with Pipedream's serverless execution platform. By leveraging UpKeep's endpoints, you can automate workflows related to asset tracking, work order management, and preventive maintenance scheduling. The API's capabilities allow for real-time updates on equipment status, automated notifications for maintenance tasks, and data synchronization across maintenance teams and tools.
|
|
9
4
|
|
|
10
|
-
|
|
5
|
+
# Example Use Cases
|
|
11
6
|
|
|
12
|
-
-
|
|
13
|
-
and usage stats.
|
|
14
|
-
- Task Management: Keep track of tasks assigned to your users or users assigned
|
|
15
|
-
to tasks.
|
|
16
|
-
- Maintenance Operations: Record and track maintenance operations, such as
|
|
17
|
-
repairs and replacements.
|
|
18
|
-
- Work Order Management: Create and manage work orders, including assigning
|
|
19
|
-
technicians and tracking progress.
|
|
7
|
+
- **Automated Work Order Creation**: Trigger a new work order in UpKeep when a customer support ticket in Zendesk indicates equipment failure. This workflow can include pulling relevant customer data from the ticket, inputting it into the work order, and notifying the maintenance team in Slack.
|
|
20
8
|
|
|
21
|
-
|
|
9
|
+
- **Preventive Maintenance Scheduling**: Use a cron job to schedule preventive maintenance tasks. The workflow can fetch equipment usage logs from an IoT platform, like Particle, evaluate if service is due, and create a maintenance request in UpKeep if thresholds are met.
|
|
22
10
|
|
|
23
|
-
-
|
|
24
|
-
plan and schedule maintenance, record maintenance operations, and track asset
|
|
25
|
-
usage.
|
|
26
|
-
- Fleet Management Solutions: Create solutions that track fleet assets,
|
|
27
|
-
including vehicles and equipment, and monitor usage.
|
|
28
|
-
- Task Management Solutions: Create solutions that allow users to assign and
|
|
29
|
-
manage tasks, as well as track their progress.
|
|
30
|
-
- Asset Tracking Solutions: Create solutions that track assets and their usage,
|
|
31
|
-
including their location, condition, and maintenance operations.
|
|
11
|
+
- **Inventory Management Alerts**: Connect UpKeep with an inventory management app like TradeGecko to monitor stock levels. When inventory falls below a certain threshold, the workflow can automatically generate a purchase order in UpKeep and notify the procurement team via email or a messaging app like Microsoft Teams.
|
|
@@ -3,7 +3,12 @@ import common from "../common/common-purchase-order.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
type: "action",
|
|
5
5
|
key: "upkeep-create-purchase-order",
|
|
6
|
-
version: "0.0.
|
|
6
|
+
version: "0.0.3",
|
|
7
|
+
annotations: {
|
|
8
|
+
destructiveHint: false,
|
|
9
|
+
openWorldHint: true,
|
|
10
|
+
readOnlyHint: false,
|
|
11
|
+
},
|
|
7
12
|
name: "Create Purchase Order",
|
|
8
13
|
description: "Create a Purchase Order, [See the docs](https://developers.onupkeep.com/#purchase-orders)",
|
|
9
14
|
...common,
|
|
@@ -3,7 +3,12 @@ import app from "../../upkeep.app.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
type: "action",
|
|
5
5
|
key: "upkeep-create-request",
|
|
6
|
-
version: "0.0.
|
|
6
|
+
version: "0.0.3",
|
|
7
|
+
annotations: {
|
|
8
|
+
destructiveHint: false,
|
|
9
|
+
openWorldHint: true,
|
|
10
|
+
readOnlyHint: false,
|
|
11
|
+
},
|
|
7
12
|
name: "Create Request",
|
|
8
13
|
description: "Create a Request, [See the docs](https://developers.onupkeep.com/#create-a-request)",
|
|
9
14
|
props: {
|
|
@@ -5,7 +5,12 @@ import { ConfigurationError } from "@pipedream/platform";
|
|
|
5
5
|
export default {
|
|
6
6
|
type: "action",
|
|
7
7
|
key: "upkeep-create-work-order",
|
|
8
|
-
version: "0.0.
|
|
8
|
+
version: "0.0.3",
|
|
9
|
+
annotations: {
|
|
10
|
+
destructiveHint: false,
|
|
11
|
+
openWorldHint: true,
|
|
12
|
+
readOnlyHint: false,
|
|
13
|
+
},
|
|
9
14
|
name: "Create Work Order",
|
|
10
15
|
description: "Create a Work Order, [See the docs](https://developers.onupkeep.com/#create-a-work-order)",
|
|
11
16
|
props: {
|
|
@@ -4,7 +4,12 @@ import utils from "../../common/utils.mjs";
|
|
|
4
4
|
export default {
|
|
5
5
|
type: "action",
|
|
6
6
|
key: "upkeep-find-asset",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.3",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: true,
|
|
12
|
+
},
|
|
8
13
|
name: "Find Asset",
|
|
9
14
|
description: "Finds assets according to props configured, if no prop configured returns all assets, [See the docs](https://developers.onupkeep.com/#get-all-assets)",
|
|
10
15
|
props: {
|
|
@@ -4,7 +4,12 @@ import utils from "../../common/utils.mjs";
|
|
|
4
4
|
export default {
|
|
5
5
|
type: "action",
|
|
6
6
|
key: "upkeep-find-location",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.3",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: true,
|
|
12
|
+
},
|
|
8
13
|
name: "Find Location",
|
|
9
14
|
description: "Finds locations according to props configured, if no prop configured returns all locations, [See the docs](https://developers.onupkeep.com/#get-all-locations)",
|
|
10
15
|
props: {
|
|
@@ -4,7 +4,12 @@ import utils from "../../common/utils.mjs";
|
|
|
4
4
|
export default {
|
|
5
5
|
type: "action",
|
|
6
6
|
key: "upkeep-find-part",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.3",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: true,
|
|
12
|
+
},
|
|
8
13
|
name: "Find Part",
|
|
9
14
|
description: "Finds parts according to props configured, if no prop configured returns all parts, [See the docs](https://developers.onupkeep.com/#get-all-parts)",
|
|
10
15
|
props: {
|
|
@@ -4,7 +4,12 @@ import utils from "../../common/utils.mjs";
|
|
|
4
4
|
export default {
|
|
5
5
|
type: "action",
|
|
6
6
|
key: "upkeep-find-user",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.3",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: true,
|
|
12
|
+
},
|
|
8
13
|
name: "Find User",
|
|
9
14
|
description: "Finds users according to props configured, if no prop configured returns all users, [See the docs](https://developers.onupkeep.com/#get-all-users)",
|
|
10
15
|
props: {
|
|
@@ -4,7 +4,12 @@ import utils from "../../common/utils.mjs";
|
|
|
4
4
|
export default {
|
|
5
5
|
type: "action",
|
|
6
6
|
key: "upkeep-find-vendor",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.3",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: true,
|
|
12
|
+
},
|
|
8
13
|
name: "Find Vendor",
|
|
9
14
|
description: "Finds vendors according to props configured, if no prop configured returns all vendors. Note: enterprise/business-plus plan access only. [See the docs](https://developers.onupkeep.com/#get-all-vendors)",
|
|
10
15
|
props: {
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import upkeep from "../../upkeep.app.mjs";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
key: "upkeep-list-asset-id-options",
|
|
5
|
+
name: "List Asset Options",
|
|
6
|
+
description: "Retrieves available options for the Asset field.",
|
|
7
|
+
version: "0.0.1",
|
|
8
|
+
type: "action",
|
|
9
|
+
annotations: {
|
|
10
|
+
destructiveHint: false,
|
|
11
|
+
openWorldHint: true,
|
|
12
|
+
readOnlyHint: true,
|
|
13
|
+
},
|
|
14
|
+
props: {
|
|
15
|
+
upkeep,
|
|
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 upkeep.propDefinitions.assetId.options.call(this.upkeep, {
|
|
26
|
+
page: this.page,
|
|
27
|
+
});
|
|
28
|
+
$.export("$summary", `Successfully retrieved ${options.length} option${options.length === 1
|
|
29
|
+
? ""
|
|
30
|
+
: "s"}`);
|
|
31
|
+
return options;
|
|
32
|
+
},
|
|
33
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import upkeep from "../../upkeep.app.mjs";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
key: "upkeep-list-category-id-options",
|
|
5
|
+
name: "List Category Options",
|
|
6
|
+
description: "Retrieves available options for the Category field.",
|
|
7
|
+
version: "0.0.1",
|
|
8
|
+
type: "action",
|
|
9
|
+
annotations: {
|
|
10
|
+
destructiveHint: false,
|
|
11
|
+
openWorldHint: true,
|
|
12
|
+
readOnlyHint: true,
|
|
13
|
+
},
|
|
14
|
+
props: {
|
|
15
|
+
upkeep,
|
|
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 upkeep.propDefinitions.categoryId.options.call(this.upkeep, {
|
|
26
|
+
page: this.page,
|
|
27
|
+
});
|
|
28
|
+
$.export("$summary", `Successfully retrieved ${options.length} option${options.length === 1
|
|
29
|
+
? ""
|
|
30
|
+
: "s"}`);
|
|
31
|
+
return options;
|
|
32
|
+
},
|
|
33
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import upkeep from "../../upkeep.app.mjs";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
key: "upkeep-list-downtime-status-options",
|
|
5
|
+
name: "List Downtime Status Options",
|
|
6
|
+
description: "Retrieves available options for the Downtime Status field.",
|
|
7
|
+
version: "0.0.1",
|
|
8
|
+
type: "action",
|
|
9
|
+
annotations: {
|
|
10
|
+
destructiveHint: false,
|
|
11
|
+
openWorldHint: true,
|
|
12
|
+
readOnlyHint: true,
|
|
13
|
+
},
|
|
14
|
+
props: {
|
|
15
|
+
upkeep,
|
|
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 upkeep.propDefinitions.downtimeStatus.options.call(this.upkeep, {
|
|
26
|
+
page: this.page,
|
|
27
|
+
});
|
|
28
|
+
$.export("$summary", `Successfully retrieved ${options.length} option${options.length === 1
|
|
29
|
+
? ""
|
|
30
|
+
: "s"}`);
|
|
31
|
+
return options;
|
|
32
|
+
},
|
|
33
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import upkeep from "../../upkeep.app.mjs";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
key: "upkeep-list-location-id-options",
|
|
5
|
+
name: "List Location Options",
|
|
6
|
+
description: "Retrieves available options for the Location field.",
|
|
7
|
+
version: "0.0.1",
|
|
8
|
+
type: "action",
|
|
9
|
+
annotations: {
|
|
10
|
+
destructiveHint: false,
|
|
11
|
+
openWorldHint: true,
|
|
12
|
+
readOnlyHint: true,
|
|
13
|
+
},
|
|
14
|
+
props: {
|
|
15
|
+
upkeep,
|
|
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 upkeep.propDefinitions.locationId.options.call(this.upkeep, {
|
|
26
|
+
page: this.page,
|
|
27
|
+
});
|
|
28
|
+
$.export("$summary", `Successfully retrieved ${options.length} option${options.length === 1
|
|
29
|
+
? ""
|
|
30
|
+
: "s"}`);
|
|
31
|
+
return options;
|
|
32
|
+
},
|
|
33
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import upkeep from "../../upkeep.app.mjs";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
key: "upkeep-list-parts-options",
|
|
5
|
+
name: "List Parts Options",
|
|
6
|
+
description: "Retrieves available options for the Parts field.",
|
|
7
|
+
version: "0.0.1",
|
|
8
|
+
type: "action",
|
|
9
|
+
annotations: {
|
|
10
|
+
destructiveHint: false,
|
|
11
|
+
openWorldHint: true,
|
|
12
|
+
readOnlyHint: true,
|
|
13
|
+
},
|
|
14
|
+
props: {
|
|
15
|
+
upkeep,
|
|
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 upkeep.propDefinitions.parts.options.call(this.upkeep, {
|
|
26
|
+
page: this.page,
|
|
27
|
+
});
|
|
28
|
+
$.export("$summary", `Successfully retrieved ${options.length} option${options.length === 1
|
|
29
|
+
? ""
|
|
30
|
+
: "s"}`);
|
|
31
|
+
return options;
|
|
32
|
+
},
|
|
33
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import upkeep from "../../upkeep.app.mjs";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
key: "upkeep-list-purchase-order-id-options",
|
|
5
|
+
name: "List Purchase Order Id Options",
|
|
6
|
+
description: "Retrieves available options for the Purchase Order 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
|
+
upkeep,
|
|
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 upkeep.propDefinitions.purchaseOrderId.options.call(this.upkeep, {
|
|
26
|
+
page: this.page,
|
|
27
|
+
});
|
|
28
|
+
$.export("$summary", `Successfully retrieved ${options.length} option${options.length === 1
|
|
29
|
+
? ""
|
|
30
|
+
: "s"}`);
|
|
31
|
+
return options;
|
|
32
|
+
},
|
|
33
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import upkeep from "../../upkeep.app.mjs";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
key: "upkeep-list-team-id-options",
|
|
5
|
+
name: "List Team Options",
|
|
6
|
+
description: "Retrieves available options for the Team field.",
|
|
7
|
+
version: "0.0.1",
|
|
8
|
+
type: "action",
|
|
9
|
+
annotations: {
|
|
10
|
+
destructiveHint: false,
|
|
11
|
+
openWorldHint: true,
|
|
12
|
+
readOnlyHint: true,
|
|
13
|
+
},
|
|
14
|
+
props: {
|
|
15
|
+
upkeep,
|
|
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 upkeep.propDefinitions.teamId.options.call(this.upkeep, {
|
|
26
|
+
page: this.page,
|
|
27
|
+
});
|
|
28
|
+
$.export("$summary", `Successfully retrieved ${options.length} option${options.length === 1
|
|
29
|
+
? ""
|
|
30
|
+
: "s"}`);
|
|
31
|
+
return options;
|
|
32
|
+
},
|
|
33
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import upkeep from "../../upkeep.app.mjs";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
key: "upkeep-list-user-id-options",
|
|
5
|
+
name: "List User Options",
|
|
6
|
+
description: "Retrieves available options for the User field.",
|
|
7
|
+
version: "0.0.1",
|
|
8
|
+
type: "action",
|
|
9
|
+
annotations: {
|
|
10
|
+
destructiveHint: false,
|
|
11
|
+
openWorldHint: true,
|
|
12
|
+
readOnlyHint: true,
|
|
13
|
+
},
|
|
14
|
+
props: {
|
|
15
|
+
upkeep,
|
|
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 upkeep.propDefinitions.userId.options.call(this.upkeep, {
|
|
26
|
+
page: this.page,
|
|
27
|
+
});
|
|
28
|
+
$.export("$summary", `Successfully retrieved ${options.length} option${options.length === 1
|
|
29
|
+
? ""
|
|
30
|
+
: "s"}`);
|
|
31
|
+
return options;
|
|
32
|
+
},
|
|
33
|
+
};
|
|
@@ -3,7 +3,12 @@ import common from "../common/common-purchase-order.mjs";
|
|
|
3
3
|
export default {
|
|
4
4
|
type: "action",
|
|
5
5
|
key: "upkeep-update-purchase-order",
|
|
6
|
-
version: "0.0.
|
|
6
|
+
version: "0.0.3",
|
|
7
|
+
annotations: {
|
|
8
|
+
destructiveHint: true,
|
|
9
|
+
openWorldHint: true,
|
|
10
|
+
readOnlyHint: false,
|
|
11
|
+
},
|
|
7
12
|
name: "Update Purchase Order",
|
|
8
13
|
description: "Update a Purchase Order, [See the docs](https://developers.onupkeep.com/#update-a-specific-purchase-order)",
|
|
9
14
|
...common,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pipedream/upkeep",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "Pipedream Upkeep Components",
|
|
5
5
|
"main": "upkeep.app.mjs",
|
|
6
6
|
"keywords": [
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"homepage": "https://pipedream.com/apps/upkeep",
|
|
11
11
|
"author": "Pipedream <support@pipedream.com> (https://pipedream.com/)",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@pipedream/platform": "^1.
|
|
13
|
+
"@pipedream/platform": "^1.6.8"
|
|
14
14
|
},
|
|
15
15
|
"publishConfig": {
|
|
16
16
|
"access": "public"
|