@geocortex/workflow-activities-maximo 0.4.2 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +1 -1
- package/README.md +12 -12
- package/activitypack.json +1 -1
- package/main.js +1 -1
- package/package.json +9 -9
package/LICENSE
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
MIT License
|
2
2
|
|
3
|
-
Copyright (c)
|
3
|
+
Copyright (c) 2022 VertiGIS North America Ltd.
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
[![CI/CD](https://github.com/geocortex/workflow-activities-maximo/workflows/CI/CD/badge.svg)](https://github.com/geocortex/workflow-activities-maximo/actions)
|
2
2
|
[![npm](https://img.shields.io/npm/v/@geocortex/workflow-activities-maximo)](https://www.npmjs.com/package/@geocortex/workflow-activities-maximo)
|
3
3
|
|
4
|
-
This project contains activities for interacting with the **Maximo REST API** in a [
|
4
|
+
This project contains activities for interacting with the **Maximo REST API** in a [VertiGIS Studio Workflow](https://www.vertigisstudio.com/products/vertigis-studio-workflow/).
|
5
5
|
|
6
6
|
## Requirements
|
7
7
|
|
8
|
-
###
|
8
|
+
### VertiGIS Studio Workflow Versions
|
9
9
|
|
10
|
-
The Maximo activities are designed to work with
|
10
|
+
The Maximo activities are designed to work with VertiGIS Studio Workflow versions `5.20` and above.
|
11
11
|
|
12
12
|
### Maximo Versions
|
13
13
|
|
@@ -22,8 +22,8 @@ Typically the web application running your workflow will be on a different domai
|
|
22
22
|
1. Open the **System Properties** via the **System Configuration** > **Platform Configuration** > **System Properties** menu
|
23
23
|
1. Optionally filter the properties to show only those starting with `mxe.oslc.aclallow`
|
24
24
|
1. Set the `mxe.oslc.aclalloworigin` property to match the base URL of the web application that will use the Maximo activities. For example, one of:
|
25
|
-
- `https://apps.
|
26
|
-
- `https://acme.apps.
|
25
|
+
- `https://apps.vertigisstudio.com`
|
26
|
+
- `https://acme.apps.vertigisstudio.com`
|
27
27
|
- `https://www.my-server.com`
|
28
28
|
1. Set the `mxe.oslc.aclallowheaders` property to `accept,content-type,maxauth,patchtype,properties,x-method-override,x-public-uri`
|
29
29
|
1. Set the `mxe.oslc.aclallowmethods` property to `GET,POST,PUT,DELETE,OPTIONS`
|
@@ -57,7 +57,7 @@ Typically the web application running your workflow will be on a different domai
|
|
57
57
|
|
58
58
|
## Usage
|
59
59
|
|
60
|
-
To use the Maximo activities in [
|
60
|
+
To use the Maximo activities in [VertiGIS Studio Workflow Designer](https://apps.vertigisstudio.com/workflow/designer/) you need to register an activity pack and then add the activities to a workflow.
|
61
61
|
|
62
62
|
### Register the Maximo activity pack
|
63
63
|
|
@@ -72,8 +72,8 @@ To use the Maximo activities in [Geocortex Workflow Designer](https://apps.geoco
|
|
72
72
|
- Use https://unpkg.com/@geocortex/workflow-activities-maximo@0.4.0/activitypack.json for a specific version
|
73
73
|
- Title: Your desired title
|
74
74
|
- Tags: Must include `geocortex-workflow-activity-pack`
|
75
|
-
1. Reload [
|
76
|
-
1. The Maximo activities will now appear in the activity toolbox in
|
75
|
+
1. Reload [VertiGIS Studio Workflow Designer](https://apps.vertigisstudio.com/workflow/designer/)
|
76
|
+
1. The Maximo activities will now appear in the activity toolbox in a `Maximo` category
|
77
77
|
|
78
78
|
### Use the Maximo activities in a workflow
|
79
79
|
|
@@ -93,7 +93,7 @@ To use the Maximo activities in [Geocortex Workflow Designer](https://apps.geoco
|
|
93
93
|
|
94
94
|
## Development
|
95
95
|
|
96
|
-
This project was bootstrapped with the [
|
96
|
+
This project was bootstrapped with the [VertiGIS Studio Workflow SDK](https://github.com/geocortex/vertigis-workflow-sdk). Before you can use your activity pack in the [VertiGIS Studio Workflow Designer](https://apps.vertigisstudio.com/workflow/designer/), you will need to [register the activity pack](https://developers.geocortex.com/docs/workflow/sdk-web-overview#register-the-activity-pack).
|
97
97
|
|
98
98
|
## Available Scripts
|
99
99
|
|
@@ -105,7 +105,7 @@ Interactively generate a new activity or form element.
|
|
105
105
|
|
106
106
|
### `npm start`
|
107
107
|
|
108
|
-
Runs the project in development mode. Your activity pack will be available at [http://localhost:5000/main.js](http://localhost:5000/main.js). The HTTPS certificate of the development server is a self-signed certificate that web browsers will warn about. To work around this open [`https://localhost:5000/main.js`](https://localhost:5000/main.js) in a web browser and allow the invalid certificate as an exception. For creating a locally-trusted HTTPS certificate see the [Configuring a HTTPS Certificate](https://developers.geocortex.com/docs/workflow/sdk-web-overview/#configuring-a-https-certificate) section on the [
|
108
|
+
Runs the project in development mode. Your activity pack will be available at [http://localhost:5000/main.js](http://localhost:5000/main.js). The HTTPS certificate of the development server is a self-signed certificate that web browsers will warn about. To work around this open [`https://localhost:5000/main.js`](https://localhost:5000/main.js) in a web browser and allow the invalid certificate as an exception. For creating a locally-trusted HTTPS certificate see the [Configuring a HTTPS Certificate](https://developers.geocortex.com/docs/workflow/sdk-web-overview/#configuring-a-https-certificate) section on the [VertiGIS Studio Developer Center](https://developers.geocortex.com/docs/workflow/overview/).
|
109
109
|
|
110
110
|
### `npm run lint`
|
111
111
|
|
@@ -117,8 +117,8 @@ Builds the activity pack for production to the `build` folder. It optimizes the
|
|
117
117
|
|
118
118
|
Your custom activity pack is now ready to be deployed!
|
119
119
|
|
120
|
-
See the [section about deployment](https://developers.geocortex.com/docs/workflow/sdk-web-overview/#deployment) in the [
|
120
|
+
See the [section about deployment](https://developers.geocortex.com/docs/workflow/sdk-web-overview/#deployment) in the [VertiGIS Studio Developer Center](https://developers.geocortex.com/docs/workflow/overview/) for more information.
|
121
121
|
|
122
122
|
## Documentation
|
123
123
|
|
124
|
-
Find [further documentation on the SDK](https://developers.geocortex.com/docs/workflow/sdk-web-overview/) on the [
|
124
|
+
Find [further documentation on the SDK](https://developers.geocortex.com/docs/workflow/sdk-web-overview/) on the [VertiGIS Studio Developer Center](https://developers.geocortex.com/docs/workflow/overview/)
|
package/activitypack.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"activities":[{"action":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23::CreateMaximoResource","suite":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23","displayName":"Create Maximo Resource","description":"Creates a Maximo resource.","category":"Maximo","tags":{},"inputs":{"service":{"name":"service","displayName":"Service","description":"The Maximo API Service.","placeholder":"","typeName":"MaximoService","defaultValue":"","defaultExpressionHint":"","isRequired":true,"noExpressions":false},"resource":{"name":"resource","displayName":"Resource","description":"The resource to update.","placeholder":"","typeName":"| \"mxaction\"\n | \"mxamcrew\"\n | \"mxasset\"\n | \"mxbimassetwo\"\n | \"mxfeature\"\n | \"mxinventory\"\n | \"mxinvoice\"\n | \"mxitem\"\n | \"mxlabor\"\n | \"mxperson\"\n | \"mxperuser\"\n | \"mxpo\"\n | \"mxpr\"\n | \"mxproblem\"\n | \"mxreceipt\"\n | \"mxsr\"\n | \"mxsrvad\"\n | \"mxvendor\"\n | \"mxwo\"\n | string","defaultValue":"","defaultExpressionHint":"","isRequired":true,"noExpressions":false},"content":{"name":"content","displayName":"Content","description":"An object representing the properties of the resource to create.","placeholder":"","typeName":"{\n [key: string]: any;\n }","defaultValue":"","defaultExpressionHint":"","isRequired":true,"noExpressions":false},"properties":{"name":"properties","displayName":"Properties","description":"The list of properties of the resource to return in the result. If not specified the result will be empty. For example, assetnum,status.","placeholder":"","typeName":"\"*\" | string","defaultValue":"","defaultExpressionHint":"","isRequired":false,"noExpressions":false}},"outputs":{"result":{"name":"result","displayName":"Result","description":"The result of the activity. This will only have a value if the Properties input is specified.","placeholder":"","typeName":"{\n href: string;\n }","defaultValue":"","defaultExpressionHint":"","isRequired":false,"noExpressions":false}},"unsupportedApps":["GMV"],"clientOnly":true},{"action":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23::CreateMaximoService","suite":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23","defaultName":"mxService","displayName":"Create Maximo Service","description":"Creates an authenticated connection to a Maximo service that can be used with other Maximo activities.","category":"Maximo","tags":{},"inputs":{"url":{"name":"url","displayName":"URL","description":"The URL to the Maximo service.","placeholder":"","typeName":"string","defaultValue":"","defaultExpressionHint":"","isRequired":true,"noExpressions":false},"username":{"name":"username","displayName":"Username","description":"The username of a Maximo user.","placeholder":"","typeName":"string","defaultValue":"","defaultExpressionHint":"","isRequired":false,"noExpressions":false},"password":{"name":"password","displayName":"Password","description":"The password of a Maximo user. Do not hard code passwords into workflows.","placeholder":"","typeName":"string","defaultValue":"","defaultExpressionHint":"","isRequired":false,"noExpressions":false},"apiKey":{"name":"apiKey","displayName":"API Key","description":"A Maximo API key.","placeholder":"","typeName":"string","defaultValue":"","defaultExpressionHint":"","isRequired":false,"noExpressions":false}},"outputs":{"service":{"name":"service","displayName":"Service","description":"The Maximo service that can be supplied to other Maximo activities.","placeholder":"","typeName":"MaximoService","defaultValue":"","defaultExpressionHint":"","isRequired":false,"noExpressions":false}},"unsupportedApps":["GMV"],"clientOnly":true},{"action":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23::DeleteMaximoResource","suite":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23","displayName":"Delete Maximo Resource","description":"Deletes a Maximo resource.","category":"Maximo","tags":{},"inputs":{"service":{"name":"service","displayName":"Service","description":"The Maximo API Service.","placeholder":"","typeName":"MaximoService","defaultValue":"","defaultExpressionHint":"","isRequired":true,"noExpressions":false},"resource":{"name":"resource","displayName":"Resource","description":"The resource to delete.","placeholder":"","typeName":"| \"mxaction\"\n | \"mxamcrew\"\n | \"mxasset\"\n | \"mxbimassetwo\"\n | \"mxfeature\"\n | \"mxinventory\"\n | \"mxinvoice\"\n | \"mxitem\"\n | \"mxlabor\"\n | \"mxperson\"\n | \"mxperuser\"\n | \"mxpo\"\n | \"mxpr\"\n | \"mxproblem\"\n | \"mxreceipt\"\n | \"mxsr\"\n | \"mxsrvad\"\n | \"mxvendor\"\n | \"mxwo\"\n | string","defaultValue":"","defaultExpressionHint":"","isRequired":true,"noExpressions":false},"id":{"name":"id","displayName":"ID","description":"The ID of the resource to delete.","placeholder":"","typeName":"string","defaultValue":"","defaultExpressionHint":"","isRequired":false,"noExpressions":false}},"outputs":{"result":{"name":"result","displayName":"Result","description":"The result of the activity.","placeholder":"","typeName":"any","defaultValue":"","defaultExpressionHint":"","isRequired":false,"noExpressions":false}},"unsupportedApps":["GMV"],"clientOnly":true},{"action":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23::GetMaximoAsset","suite":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23","displayName":"Get Maximo Asset","description":"Gets information about a single Maximo asset.","category":"Maximo","tags":{},"inputs":{"service":{"name":"service","displayName":"Service","description":"The Maximo API Service.","placeholder":"","typeName":"MaximoService","defaultValue":"","defaultExpressionHint":"","isRequired":true,"noExpressions":false},"assetId":{"name":"assetId","displayName":"Asset ID","description":"The ID of the asset.","placeholder":"","typeName":"string","defaultValue":"","defaultExpressionHint":"","isRequired":true,"noExpressions":false},"select":{"name":"select","displayName":"Select","description":"The select clause specifying the set of attributes to fetch from the object structures.","placeholder":"","typeName":"string","defaultValue":"","defaultExpressionHint":"","isRequired":false,"noExpressions":false}},"outputs":{"result":{"name":"result","displayName":"Result","description":"The result of the activity.","placeholder":"","typeName":"{\n assetid: number;\n assetmeter_collectionref: string;\n assetmntskd_collectionref: string;\n assetnum: string;\n assetopskd_collectionref: string;\n assetspec: [];\n assetspec_collectionref: string;\n assetusercust_collectionref: string;\n autowogen: boolean;\n budgetcost: number;\n changeby: string;\n changedate: string;\n changepmstatus: boolean;\n children: boolean;\n description: string;\n disabled: boolean;\n expectedlife: number;\n expectedlifedate: string;\n hierarchypath: string;\n href: string;\n installdate: string;\n invcost: number;\n iscalibration: boolean;\n islinear: boolean;\n isrunning: boolean;\n itemnum: string;\n itemsetid: string;\n location: string;\n manufacturer: string;\n mainthierchy: boolean;\n moved: boolean;\n newsite: string;\n orgid: string;\n pluscpmextdate: boolean;\n plusciscontam: boolean;\n pluscisinhousecal: boolean;\n pluscismte: boolean;\n pluscsolution: boolean;\n purchaseprice: number;\n priority: number;\n removefromactiveroutes: boolean;\n removefromactivesp: boolean;\n replacecos: number;\n replacecost: number;\n returnedtovendor: boolean;\n rolltoallchildren: boolean;\n rotsuspacct: string;\n siteid: string;\n status: string;\n statusdate: string;\n status_description: string;\n tloampartition: boolean;\n totalcost: number;\n totdowntime: number;\n totunchargedcost: number;\n unchargedcost: number;\n vendor: string;\n ytdcost: number;\n _rowstamp: string;\n }","defaultValue":"","defaultExpressionHint":"","isRequired":false,"noExpressions":false}},"unsupportedApps":["GMV"],"clientOnly":true},{"action":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23::GetMaximoAssets","suite":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23","displayName":"Get Maximo Assets","description":"Gets Maximo assets.","category":"Maximo","tags":{},"inputs":{"service":{"name":"service","displayName":"Service","description":"The Maximo API Service.","placeholder":"","typeName":"MaximoService","defaultValue":"","defaultExpressionHint":"","isRequired":true,"noExpressions":false},"where":{"name":"where","displayName":"Where","description":"The where clause to filter the set of resources. For example, status in [\"OPERATING\",\"ACTIVE\"] and priority=3.","placeholder":"","typeName":"string","defaultValue":"","defaultExpressionHint":"","isRequired":false,"noExpressions":false},"select":{"name":"select","displayName":"Select","description":"The select clause specifying the set of attributes to fetch from the object structures. For example, assetnum,status.","placeholder":"","typeName":"string","defaultValue":"","defaultExpressionHint":"","isRequired":false,"noExpressions":false},"orderBy":{"name":"orderBy","displayName":"Order By","description":"The order by clause specifying the sort order of the results. For example, -attr1,+attr2.","placeholder":"","typeName":"string","defaultValue":"","defaultExpressionHint":"","isRequired":false,"noExpressions":false},"pageSize":{"name":"pageSize","displayName":"Page Size","description":"The number of results to include in the response.","placeholder":"","typeName":"number","defaultValue":"","defaultExpressionHint":"","isRequired":false,"noExpressions":false},"countOnly":{"name":"countOnly","displayName":"Count Only","description":"Whether to return only the total number of results matching the search criteria. The default is false.","placeholder":"","typeName":"boolean","defaultValue":"","defaultExpressionHint":"","isRequired":false,"noExpressions":false}},"outputs":{"result":{"name":"result","displayName":"Result","description":"The result of the activity.","placeholder":"","typeName":"{\n href?: string;\n member?: {\n href: string;\n }[];\n totalCount?: number;\n }","defaultValue":"","defaultExpressionHint":"","isRequired":false,"noExpressions":false}},"unsupportedApps":["GMV"],"clientOnly":true},{"action":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23::GetMaximoCurrentUser","suite":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23","displayName":"Get Maximo Current User","description":"Gets information about the current Maximo user.","category":"Maximo","tags":{},"inputs":{"service":{"name":"service","displayName":"Service","description":"The Maximo API Service.","placeholder":"","typeName":"MaximoService","defaultValue":"","defaultExpressionHint":"","isRequired":true,"noExpressions":false}},"outputs":{"result":{"name":"result","displayName":"Result","description":"The result of the activity.","placeholder":"","typeName":"{\n address: any;\n apicachekey: string;\n baseCalendar: string;\n baseCurrency: string;\n baseLang: string;\n botcinstall: boolean;\n calendarType: string;\n canUseInactiveSites: boolean;\n city: string;\n country: string;\n customername: string;\n dateformat: string;\n datetimeformat: string;\n defaultApplication: string;\n defaultLanguage: string;\n defaultLcale: string;\n defaultOrg: string;\n defaultRepairFacility: string;\n defaultRepairSite: string;\n defaultSite: string;\n defaultSiteDescription: string;\n defaultStoreroom: string;\n defaultStoreroomSite: string;\n defaultTimeZone: string;\n displayName: string;\n displayname: string;\n displayno: string;\n displayyes: string;\n email: string;\n firstname: string;\n href: string;\n ibmId: string;\n inactiveSites: boolean;\n insertCompanySet: string;\n insertItemSet: string;\n insertOrg: string;\n insertSite: string;\n isLocalSession: boolean;\n labor: {\n laborcode: string;\n laborcraftrate: {\n skilllevel: string;\n craft: string;\n laborcode: string;\n };\n };\n langcode: string;\n lastname: string;\n location: any;\n loginID: string;\n loginUserName: string;\n personId: string;\n personid: string;\n personuid: number;\n postalcode: string;\n primaryemail: string;\n primaryphone: string;\n queryWithSite: boolean;\n stateprovince: string;\n timeformat: string;\n title: string;\n user: {\n logouttracking: {\n attemptdate: string;\n attemptdate_localized: string;\n };\n };\n userName: string;\n }","defaultValue":"","defaultExpressionHint":"","isRequired":false,"noExpressions":false}},"unsupportedApps":["GMV"],"clientOnly":true},{"action":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23::GetMaximoResource","suite":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23","displayName":"Get Maximo Resource","description":"Gets information about a single Maximo resource.","category":"Maximo","tags":{},"inputs":{"service":{"name":"service","displayName":"Service","description":"The Maximo API Service.","placeholder":"","typeName":"MaximoService","defaultValue":"","defaultExpressionHint":"","isRequired":true,"noExpressions":false},"resource":{"name":"resource","displayName":"Resource","description":"The resource to fetch.","placeholder":"","typeName":"| \"mxaction\"\n | \"mxamcrew\"\n | \"mxasset\"\n | \"mxbimassetwo\"\n | \"mxfeature\"\n | \"mxinventory\"\n | \"mxinvoice\"\n | \"mxitem\"\n | \"mxlabor\"\n | \"mxperson\"\n | \"mxperuser\"\n | \"mxpo\"\n | \"mxpr\"\n | \"mxproblem\"\n | \"mxreceipt\"\n | \"mxsr\"\n | \"mxsrvad\"\n | \"mxvendor\"\n | \"mxwo\"\n | string","defaultValue":"","defaultExpressionHint":"","isRequired":true,"noExpressions":false},"id":{"name":"id","displayName":"ID","description":"The ID of the resource to fetch.","placeholder":"","typeName":"string","defaultValue":"","defaultExpressionHint":"","isRequired":true,"noExpressions":false},"select":{"name":"select","displayName":"Select","description":"The select clause specifying the set of attributes to fetch from the object structures.","placeholder":"","typeName":"string","defaultValue":"","defaultExpressionHint":"","isRequired":false,"noExpressions":false}},"outputs":{"result":{"name":"result","displayName":"Result","description":"The result of the activity.","placeholder":"","typeName":"{\n href: string;\n }","defaultValue":"","defaultExpressionHint":"","isRequired":false,"noExpressions":false}},"unsupportedApps":["GMV"],"clientOnly":true},{"action":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23::GetMaximoResources","suite":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23","displayName":"Get Maximo Resources","description":"Gets a list of Maximo resources.","category":"Maximo","tags":{},"inputs":{"service":{"name":"service","displayName":"Service","description":"The Maximo API Service.","placeholder":"","typeName":"MaximoService","defaultValue":"","defaultExpressionHint":"","isRequired":true,"noExpressions":false},"resource":{"name":"resource","displayName":"Resource","description":"The name of the set of resources.","placeholder":"","typeName":"| \"mxaction\"\n | \"mxamcrew\"\n | \"mxasset\"\n | \"mxbimassetwo\"\n | \"mxfeature\"\n | \"mxinventory\"\n | \"mxinvoice\"\n | \"mxitem\"\n | \"mxlabor\"\n | \"mxperson\"\n | \"mxperuser\"\n | \"mxpo\"\n | \"mxpr\"\n | \"mxproblem\"\n | \"mxreceipt\"\n | \"mxsr\"\n | \"mxsrvad\"\n | \"mxvendor\"\n | \"mxwo\"\n | string","defaultValue":"","defaultExpressionHint":"","isRequired":true,"noExpressions":false},"where":{"name":"where","displayName":"Where","description":"The where clause to filter the set of resources. For example, status in [\"OPERATING\",\"ACTIVE\"] and priority=3.","placeholder":"","typeName":"string","defaultValue":"","defaultExpressionHint":"","isRequired":false,"noExpressions":false},"select":{"name":"select","displayName":"Select","description":"The select clause specifying the set of attributes to fetch from the object structures. For example, assetnum,status.","placeholder":"","typeName":"string","defaultValue":"","defaultExpressionHint":"","isRequired":false,"noExpressions":false},"orderBy":{"name":"orderBy","displayName":"Order By","description":"The order by clause specifying the sort order of the results. For example, -attr1,+attr2.","placeholder":"","typeName":"string","defaultValue":"","defaultExpressionHint":"","isRequired":false,"noExpressions":false},"pageSize":{"name":"pageSize","displayName":"Page Size","description":"The number of results to include in the response.","placeholder":"","typeName":"number","defaultValue":"","defaultExpressionHint":"","isRequired":false,"noExpressions":false},"countOnly":{"name":"countOnly","displayName":"Count Only","description":"Whether to return only the total number of results matching the search criteria. The default is false.","placeholder":"","typeName":"boolean","defaultValue":"","defaultExpressionHint":"","isRequired":false,"noExpressions":false}},"outputs":{"result":{"name":"result","displayName":"Result","description":"The result of the activity.","placeholder":"","typeName":"{\n href?: string;\n member?: {\n href: string;\n }[];\n totalCount?: number;\n }","defaultValue":"","defaultExpressionHint":"","isRequired":false,"noExpressions":false}},"unsupportedApps":["GMV"],"clientOnly":true},{"action":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23::GetMaximoSystemInfo","suite":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23","displayName":"Get Maximo System Info","description":"Gets system information about the Maximo service.","category":"Maximo","tags":{},"inputs":{"service":{"name":"service","displayName":"Service","description":"The Maximo API Service.","placeholder":"","typeName":"MaximoService","defaultValue":"","defaultExpressionHint":"","isRequired":true,"noExpressions":false}},"outputs":{"result":{"name":"result","displayName":"Result","description":"The result of the activity.","placeholder":"","typeName":"{\n appServer: string;\n appVersion: {\n member: {\n versionKey: string;\n }[];\n };\n database: {\n dbProductName: string;\n dbVersion: string;\n dbMajorVersion: number;\n dbMinorVersion: number;\n };\n os: {\n osName: string;\n osVersion: string;\n architecture: string;\n availableProcessors: number;\n };\n }","defaultValue":"","defaultExpressionHint":"","isRequired":false,"noExpressions":false}},"unsupportedApps":["GMV"],"clientOnly":true},{"action":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23::SendMaximoRequest","suite":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23","defaultName":"mxRequest","displayName":"Send Maximo Request","description":"Sends a request to the Maximo REST API.","category":"Maximo","tags":{},"inputs":{"service":{"name":"service","displayName":"Service","description":"The Maximo API Service.","placeholder":"","typeName":"MaximoService","defaultValue":"","defaultExpressionHint":"","isRequired":true,"noExpressions":false},"method":{"name":"method","displayName":"Method","description":"The HTTP request method.","placeholder":"","typeName":"\"GET\" | \"POST\" | \"PATCH\" | \"DELETE\"","defaultValue":"","defaultExpressionHint":"","isRequired":true,"noExpressions":false},"path":{"name":"path","displayName":"Path","description":"The Maximo REST API resource or operation to request.","placeholder":"","typeName":"| \"os/mxaction\"\n | \"os/mxamcrew\"\n | \"os/mxasset\"\n | \"os/mxbimassetwo\"\n | \"os/mxfeature\"\n | \"os/mxinventory\"\n | \"os/mxinvoice\"\n | \"os/mxitem\"\n | \"os/mxlabor\"\n | \"os/mxperson\"\n | \"os/mxperuser\"\n | \"os/mxpo\"\n | \"os/mxpr\"\n | \"os/mxproblem\"\n | \"os/mxreceipt\"\n | \"os/mxsr\"\n | \"os/mxsrvad\"\n | \"os/mxvendor\"\n | \"os/mxwo\"\n | string","defaultValue":"","defaultExpressionHint":"","isRequired":true,"noExpressions":false},"query":{"name":"query","displayName":"Query","description":"The query string parameters to send on the request.","placeholder":"","typeName":"{\n [key: string]: any;\n }","defaultValue":"","defaultExpressionHint":"","isRequired":false,"noExpressions":false},"body":{"name":"body","displayName":"Body","description":"The body of the request.","placeholder":"","typeName":"{\n [key: string]: any;\n }","defaultValue":"","defaultExpressionHint":"","isRequired":false,"noExpressions":false},"headers":{"name":"headers","displayName":"Headers","description":"The headers to send on the request.","placeholder":"","typeName":"{\n [key: string]: any;\n }","defaultValue":"","defaultExpressionHint":"","isRequired":false,"noExpressions":false}},"outputs":{"result":{"name":"result","displayName":"Result","description":"The result of the activity.","placeholder":"","typeName":"any","defaultValue":"","defaultExpressionHint":"","isRequired":false,"noExpressions":false}},"unsupportedApps":["GMV"],"clientOnly":true},{"action":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23::UpdateMaximoAsset","suite":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23","displayName":"Update Maximo Asset","description":"Updates information about a single Maximo asset.","category":"Maximo","tags":{},"inputs":{"service":{"name":"service","displayName":"Service","description":"The Maximo API Service.","placeholder":"","typeName":"MaximoService","defaultValue":"","defaultExpressionHint":"","isRequired":true,"noExpressions":false},"assetId":{"name":"assetId","displayName":"Asset ID","description":"The ID of the asset.","placeholder":"","typeName":"string","defaultValue":"","defaultExpressionHint":"","isRequired":true,"noExpressions":false},"asset":{"name":"asset","displayName":"Asset","description":"An object representing the properties of the asset to update.","placeholder":"","typeName":"{\n autowogen?: boolean;\n budgetcost?: number;\n description?: string;\n disabled?: boolean;\n expectedlife?: number;\n expectedlifedate?: string;\n installdate?: string;\n invcost?: number;\n iscalibration?: boolean;\n islinear?: boolean;\n isrunning?: boolean;\n location?: string;\n manufacturer?: string;\n mainthierchy?: boolean;\n moved?: boolean;\n pluscpmextdate?: boolean;\n plusciscontam?: boolean;\n pluscisinhousecal?: boolean;\n pluscismte?: boolean;\n pluscsolution?: boolean;\n purchaseprice?: number;\n priority?: number;\n removefromactiveroutes?: boolean;\n removefromactivesp?: boolean;\n replacecos?: number;\n replacecost?: number;\n returnedtovendor?: boolean;\n rolltoallchildren?: boolean;\n rotsuspacct?: string;\n status?: string;\n statusdate?: string;\n status_description?: string;\n tloampartition?: boolean;\n totalcost?: number;\n totdowntime?: number;\n totunchargedcost?: number;\n unchargedcost?: number;\n vendor?: string;\n ytdcost?: number;\n }","defaultValue":"","defaultExpressionHint":"","isRequired":true,"noExpressions":false},"properties":{"name":"properties","displayName":"Properties","description":"The list of properties of the asset to return in the result. If not specified the result will be empty. For example, assetnum,status.","placeholder":"","typeName":"\"*\" | string","defaultValue":"","defaultExpressionHint":"","isRequired":false,"noExpressions":false}},"outputs":{"result":{"name":"result","displayName":"Result","description":"The result of the activity. This will only have a value if the Properties input is specified.","placeholder":"","typeName":"{\n href: string;\n }","defaultValue":"","defaultExpressionHint":"","isRequired":false,"noExpressions":false}},"unsupportedApps":["GMV"],"clientOnly":true},{"action":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23::UpdateMaximoResource","suite":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23","displayName":"Update Maximo Resource","description":"Creates or updates a Maximo resource.","category":"Maximo","tags":{},"inputs":{"service":{"name":"service","displayName":"Service","description":"The Maximo API Service.","placeholder":"","typeName":"MaximoService","defaultValue":"","defaultExpressionHint":"","isRequired":true,"noExpressions":false},"resource":{"name":"resource","displayName":"Resource","description":"The resource to update.","placeholder":"","typeName":"| \"mxaction\"\n | \"mxamcrew\"\n | \"mxasset\"\n | \"mxbimassetwo\"\n | \"mxfeature\"\n | \"mxinventory\"\n | \"mxinvoice\"\n | \"mxitem\"\n | \"mxlabor\"\n | \"mxperson\"\n | \"mxperuser\"\n | \"mxpo\"\n | \"mxpr\"\n | \"mxproblem\"\n | \"mxreceipt\"\n | \"mxsr\"\n | \"mxsrvad\"\n | \"mxvendor\"\n | \"mxwo\"\n | string","defaultValue":"","defaultExpressionHint":"","isRequired":true,"noExpressions":false},"id":{"name":"id","displayName":"ID","description":"The ID of the resource to update.","placeholder":"","typeName":"string","defaultValue":"","defaultExpressionHint":"","isRequired":false,"noExpressions":false},"content":{"name":"content","displayName":"Content","description":"An object representing the properties of the resource to update.","placeholder":"","typeName":"{\n [key: string]: any;\n }","defaultValue":"","defaultExpressionHint":"","isRequired":true,"noExpressions":false},"properties":{"name":"properties","displayName":"Properties","description":"The list of properties of the resource to return in the result. If not specified the result will be empty. For example, assetnum,status.","placeholder":"","typeName":"\"*\" | string","defaultValue":"","defaultExpressionHint":"","isRequired":false,"noExpressions":false}},"outputs":{"result":{"name":"result","displayName":"Result","description":"The result of the activity. This will only have a value if the Properties input is specified.","placeholder":"","typeName":"{\n href: string;\n }","defaultValue":"","defaultExpressionHint":"","isRequired":false,"noExpressions":false}},"unsupportedApps":["GMV"],"clientOnly":true}]}
|
1
|
+
{"activities":[{"action":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23::CreateMaximoResource","category":"Maximo","clientOnly":true,"description":"Creates a Maximo resource.","displayName":"Create Maximo Resource","inputs":{"service":{"description":"The Maximo API Service.","displayName":"Service","isRequired":true,"name":"service","typeName":"MaximoService"},"resource":{"description":"The resource to update.","displayName":"Resource","isRequired":true,"name":"resource","typeName":"| \"mxaction\"\n| \"mxamcrew\"\n| \"mxasset\"\n| \"mxbimassetwo\"\n| \"mxfeature\"\n| \"mxinventory\"\n| \"mxinvoice\"\n| \"mxitem\"\n| \"mxlabor\"\n| \"mxperson\"\n| \"mxperuser\"\n| \"mxpo\"\n| \"mxpr\"\n| \"mxproblem\"\n| \"mxreceipt\"\n| \"mxsr\"\n| \"mxsrvad\"\n| \"mxvendor\"\n| \"mxwo\"\n| string"},"content":{"description":"An object representing the properties of the resource to create.","displayName":"Content","isRequired":true,"name":"content","typeName":"{\n [key: string]: any;\n}"},"properties":{"description":"The list of properties of the resource to return in the result. If not specified the result will be empty. For example, assetnum,status.","displayName":"Properties","name":"properties","typeName":"\"*\" | string"}},"outputs":{"result":{"description":"The result of the activity. This will only have a value if the Properties input is specified.","displayName":"Result","name":"result","typeName":"{\n href: string;\n}"}},"suite":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23","unsupportedApps":["GMV"]},{"action":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23::CreateMaximoService","category":"Maximo","clientOnly":true,"description":"Creates an authenticated connection to a Maximo service that can be used with other Maximo activities.","defaultName":"mxService","displayName":"Create Maximo Service","inputs":{"url":{"description":"The URL to the Maximo service.","displayName":"URL","isRequired":true,"name":"url","typeName":"string"},"username":{"description":"The username of a Maximo user.","displayName":"Username","name":"username","typeName":"string"},"password":{"description":"The password of a Maximo user. Do not hard code passwords into workflows.","displayName":"Password","name":"password","typeName":"string"},"apiKey":{"description":"A Maximo API key.","displayName":"API Key","name":"apiKey","typeName":"string"},"context":{"description":"The application context. The default is \"oslc\".","displayName":"Context","name":"context","typeName":"\"oslc\" | \"api\" | string"}},"outputs":{"service":{"description":"The Maximo service that can be supplied to other Maximo activities.","displayName":"Service","name":"service","typeName":"MaximoService"}},"suite":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23","unsupportedApps":["GMV"]},{"action":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23::DeleteMaximoResource","category":"Maximo","clientOnly":true,"description":"Deletes a Maximo resource.","displayName":"Delete Maximo Resource","inputs":{"service":{"description":"The Maximo API Service.","displayName":"Service","isRequired":true,"name":"service","typeName":"MaximoService"},"resource":{"description":"The resource to delete.","displayName":"Resource","isRequired":true,"name":"resource","typeName":"| \"mxaction\"\n| \"mxamcrew\"\n| \"mxasset\"\n| \"mxbimassetwo\"\n| \"mxfeature\"\n| \"mxinventory\"\n| \"mxinvoice\"\n| \"mxitem\"\n| \"mxlabor\"\n| \"mxperson\"\n| \"mxperuser\"\n| \"mxpo\"\n| \"mxpr\"\n| \"mxproblem\"\n| \"mxreceipt\"\n| \"mxsr\"\n| \"mxsrvad\"\n| \"mxvendor\"\n| \"mxwo\"\n| string"},"id":{"description":"The ID of the resource to delete.","displayName":"ID","name":"id","typeName":"string"}},"outputs":{"result":{"description":"The result of the activity.","displayName":"Result","name":"result","typeName":"any"}},"suite":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23","unsupportedApps":["GMV"]},{"action":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23::GetMaximoAsset","category":"Maximo","clientOnly":true,"description":"Gets information about a single Maximo asset.","displayName":"Get Maximo Asset","inputs":{"service":{"description":"The Maximo API Service.","displayName":"Service","isRequired":true,"name":"service","typeName":"MaximoService"},"assetId":{"description":"The ID of the asset.","displayName":"Asset ID","isRequired":true,"name":"assetId","typeName":"string"},"select":{"description":"The select clause specifying the set of attributes to fetch from the object structures.","displayName":"Select","name":"select","typeName":"string"}},"outputs":{"result":{"description":"The result of the activity.","displayName":"Result","name":"result","typeName":"{\n assetid: number;\n assetmeter_collectionref: string;\n assetmntskd_collectionref: string;\n assetnum: string;\n assetopskd_collectionref: string;\n assetspec: [];\n assetspec_collectionref: string;\n assetusercust_collectionref: string;\n autowogen: boolean;\n budgetcost: number;\n changeby: string;\n changedate: string;\n changepmstatus: boolean;\n children: boolean;\n description: string;\n disabled: boolean;\n expectedlife: number;\n expectedlifedate: string;\n hierarchypath: string;\n href: string;\n installdate: string;\n invcost: number;\n iscalibration: boolean;\n islinear: boolean;\n isrunning: boolean;\n itemnum: string;\n itemsetid: string;\n location: string;\n manufacturer: string;\n mainthierchy: boolean;\n moved: boolean;\n newsite: string;\n orgid: string;\n pluscpmextdate: boolean;\n plusciscontam: boolean;\n pluscisinhousecal: boolean;\n pluscismte: boolean;\n pluscsolution: boolean;\n purchaseprice: number;\n priority: number;\n removefromactiveroutes: boolean;\n removefromactivesp: boolean;\n replacecos: number;\n replacecost: number;\n returnedtovendor: boolean;\n rolltoallchildren: boolean;\n rotsuspacct: string;\n siteid: string;\n status: string;\n statusdate: string;\n status_description: string;\n tloampartition: boolean;\n totalcost: number;\n totdowntime: number;\n totunchargedcost: number;\n unchargedcost: number;\n vendor: string;\n ytdcost: number;\n _rowstamp: string;\n}"}},"suite":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23","unsupportedApps":["GMV"]},{"action":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23::GetMaximoAssets","category":"Maximo","clientOnly":true,"description":"Gets Maximo assets.","displayName":"Get Maximo Assets","inputs":{"service":{"description":"The Maximo API Service.","displayName":"Service","isRequired":true,"name":"service","typeName":"MaximoService"},"where":{"description":"The where clause to filter the set of resources. For example, status in [\"OPERATING\",\"ACTIVE\"] and priority=3.","displayName":"Where","name":"where","typeName":"string"},"select":{"description":"The select clause specifying the set of attributes to fetch from the object structures. For example, assetnum,status.","displayName":"Select","name":"select","typeName":"string"},"orderBy":{"description":"The order by clause specifying the sort order of the results. For example, -attr1,+attr2.","displayName":"Order By","name":"orderBy","typeName":"string"},"pageSize":{"description":"The number of results to include in the response.","displayName":"Page Size","name":"pageSize","typeName":"number"},"countOnly":{"description":"Whether to return only the total number of results matching the search criteria. The default is false.","displayName":"Count Only","name":"countOnly","typeName":"boolean"}},"outputs":{"result":{"description":"The result of the activity.","displayName":"Result","name":"result","typeName":"{\n href?: string;\n member?: {\n href: string;\n }[];\n totalCount?: number;\n}"}},"suite":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23","unsupportedApps":["GMV"]},{"action":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23::GetMaximoCurrentUser","category":"Maximo","clientOnly":true,"description":"Gets information about the current Maximo user.","displayName":"Get Maximo Current User","inputs":{"service":{"description":"The Maximo API Service.","displayName":"Service","isRequired":true,"name":"service","typeName":"MaximoService"}},"outputs":{"result":{"description":"The result of the activity.","displayName":"Result","name":"result","typeName":"{\n address: any;\n apicachekey: string;\n baseCalendar: string;\n baseCurrency: string;\n baseLang: string;\n botcinstall: boolean;\n calendarType: string;\n canUseInactiveSites: boolean;\n city: string;\n country: string;\n customername: string;\n dateformat: string;\n datetimeformat: string;\n defaultApplication: string;\n defaultLanguage: string;\n defaultLcale: string;\n defaultOrg: string;\n defaultRepairFacility: string;\n defaultRepairSite: string;\n defaultSite: string;\n defaultSiteDescription: string;\n defaultStoreroom: string;\n defaultStoreroomSite: string;\n defaultTimeZone: string;\n displayName: string;\n displayname: string;\n displayno: string;\n displayyes: string;\n email: string;\n firstname: string;\n href: string;\n ibmId: string;\n inactiveSites: boolean;\n insertCompanySet: string;\n insertItemSet: string;\n insertOrg: string;\n insertSite: string;\n isLocalSession: boolean;\n labor: {\n laborcode: string;\n laborcraftrate: {\n skilllevel: string;\n craft: string;\n laborcode: string;\n };\n };\n langcode: string;\n lastname: string;\n location: any;\n loginID: string;\n loginUserName: string;\n personId: string;\n personid: string;\n personuid: number;\n postalcode: string;\n primaryemail: string;\n primaryphone: string;\n queryWithSite: boolean;\n stateprovince: string;\n timeformat: string;\n title: string;\n user: {\n logouttracking: {\n attemptdate: string;\n attemptdate_localized: string;\n };\n };\n userName: string;\n}"}},"suite":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23","unsupportedApps":["GMV"]},{"action":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23::GetMaximoResource","category":"Maximo","clientOnly":true,"description":"Gets information about a single Maximo resource.","displayName":"Get Maximo Resource","inputs":{"service":{"description":"The Maximo API Service.","displayName":"Service","isRequired":true,"name":"service","typeName":"MaximoService"},"resource":{"description":"The resource to fetch.","displayName":"Resource","isRequired":true,"name":"resource","typeName":"| \"mxaction\"\n| \"mxamcrew\"\n| \"mxasset\"\n| \"mxbimassetwo\"\n| \"mxfeature\"\n| \"mxinventory\"\n| \"mxinvoice\"\n| \"mxitem\"\n| \"mxlabor\"\n| \"mxperson\"\n| \"mxperuser\"\n| \"mxpo\"\n| \"mxpr\"\n| \"mxproblem\"\n| \"mxreceipt\"\n| \"mxsr\"\n| \"mxsrvad\"\n| \"mxvendor\"\n| \"mxwo\"\n| string"},"id":{"description":"The ID of the resource to fetch.","displayName":"ID","isRequired":true,"name":"id","typeName":"string"},"select":{"description":"The select clause specifying the set of attributes to fetch from the object structures.","displayName":"Select","name":"select","typeName":"string"}},"outputs":{"result":{"description":"The result of the activity.","displayName":"Result","name":"result","typeName":"{\n href: string;\n}"}},"suite":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23","unsupportedApps":["GMV"]},{"action":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23::GetMaximoResources","category":"Maximo","clientOnly":true,"description":"Gets a list of Maximo resources.","displayName":"Get Maximo Resources","inputs":{"service":{"description":"The Maximo API Service.","displayName":"Service","isRequired":true,"name":"service","typeName":"MaximoService"},"resource":{"description":"The name of the set of resources.","displayName":"Resource","isRequired":true,"name":"resource","typeName":"| \"mxaction\"\n| \"mxamcrew\"\n| \"mxasset\"\n| \"mxbimassetwo\"\n| \"mxfeature\"\n| \"mxinventory\"\n| \"mxinvoice\"\n| \"mxitem\"\n| \"mxlabor\"\n| \"mxperson\"\n| \"mxperuser\"\n| \"mxpo\"\n| \"mxpr\"\n| \"mxproblem\"\n| \"mxreceipt\"\n| \"mxsr\"\n| \"mxsrvad\"\n| \"mxvendor\"\n| \"mxwo\"\n| string"},"where":{"description":"The where clause to filter the set of resources. For example, status in [\"OPERATING\",\"ACTIVE\"] and priority=3.","displayName":"Where","name":"where","typeName":"string"},"select":{"description":"The select clause specifying the set of attributes to fetch from the object structures. For example, assetnum,status.","displayName":"Select","name":"select","typeName":"string"},"orderBy":{"description":"The order by clause specifying the sort order of the results. For example, -attr1,+attr2.","displayName":"Order By","name":"orderBy","typeName":"string"},"pageSize":{"description":"The number of results to include in the response.","displayName":"Page Size","name":"pageSize","typeName":"number"},"countOnly":{"description":"Whether to return only the total number of results matching the search criteria. The default is false.","displayName":"Count Only","name":"countOnly","typeName":"boolean"}},"outputs":{"result":{"description":"The result of the activity.","displayName":"Result","name":"result","typeName":"{\n href?: string;\n member?: {\n href: string;\n }[];\n totalCount?: number;\n}"}},"suite":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23","unsupportedApps":["GMV"]},{"action":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23::GetMaximoSystemInfo","category":"Maximo","clientOnly":true,"description":"Gets system information about the Maximo service.","displayName":"Get Maximo System Info","inputs":{"service":{"description":"The Maximo API Service.","displayName":"Service","isRequired":true,"name":"service","typeName":"MaximoService"}},"outputs":{"result":{"description":"The result of the activity.","displayName":"Result","name":"result","typeName":"{\n appServer: string;\n appVersion: {\n member: {\n versionKey: string;\n }[];\n };\n database: {\n dbProductName: string;\n dbVersion: string;\n dbMajorVersion: number;\n dbMinorVersion: number;\n };\n os: {\n osName: string;\n osVersion: string;\n architecture: string;\n availableProcessors: number;\n };\n}"}},"suite":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23","unsupportedApps":["GMV"]},{"action":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23::SendMaximoRequest","category":"Maximo","clientOnly":true,"description":"Sends a request to the Maximo REST API.","defaultName":"mxRequest","displayName":"Send Maximo Request","inputs":{"service":{"description":"The Maximo API Service.","displayName":"Service","isRequired":true,"name":"service","typeName":"MaximoService"},"method":{"description":"The HTTP request method.","displayName":"Method","isRequired":true,"name":"method","typeName":"\"GET\" | \"POST\" | \"PATCH\" | \"DELETE\""},"path":{"description":"The Maximo REST API resource or operation to request.","displayName":"Path","isRequired":true,"name":"path","typeName":"| \"os/mxaction\"\n| \"os/mxamcrew\"\n| \"os/mxasset\"\n| \"os/mxbimassetwo\"\n| \"os/mxfeature\"\n| \"os/mxinventory\"\n| \"os/mxinvoice\"\n| \"os/mxitem\"\n| \"os/mxlabor\"\n| \"os/mxperson\"\n| \"os/mxperuser\"\n| \"os/mxpo\"\n| \"os/mxpr\"\n| \"os/mxproblem\"\n| \"os/mxreceipt\"\n| \"os/mxsr\"\n| \"os/mxsrvad\"\n| \"os/mxvendor\"\n| \"os/mxwo\"\n| string"},"query":{"description":"The query string parameters to send on the request.","displayName":"Query","name":"query","typeName":"{\n [key: string]: any;\n}"},"body":{"description":"The body of the request.","displayName":"Body","name":"body","typeName":"{\n [key: string]: any;\n}"},"headers":{"description":"The headers to send on the request.","displayName":"Headers","name":"headers","typeName":"{\n [key: string]: any;\n}"}},"outputs":{"result":{"description":"The result of the activity.","displayName":"Result","name":"result","typeName":"any"}},"suite":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23","unsupportedApps":["GMV"]},{"action":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23::UpdateMaximoAsset","category":"Maximo","clientOnly":true,"description":"Updates information about a single Maximo asset.","displayName":"Update Maximo Asset","inputs":{"service":{"description":"The Maximo API Service.","displayName":"Service","isRequired":true,"name":"service","typeName":"MaximoService"},"assetId":{"description":"The ID of the asset.","displayName":"Asset ID","isRequired":true,"name":"assetId","typeName":"string"},"asset":{"description":"An object representing the properties of the asset to update.","displayName":"Asset","isRequired":true,"name":"asset","typeName":"{\n autowogen?: boolean;\n budgetcost?: number;\n description?: string;\n disabled?: boolean;\n expectedlife?: number;\n expectedlifedate?: string;\n installdate?: string;\n invcost?: number;\n iscalibration?: boolean;\n islinear?: boolean;\n isrunning?: boolean;\n location?: string;\n manufacturer?: string;\n mainthierchy?: boolean;\n moved?: boolean;\n pluscpmextdate?: boolean;\n plusciscontam?: boolean;\n pluscisinhousecal?: boolean;\n pluscismte?: boolean;\n pluscsolution?: boolean;\n purchaseprice?: number;\n priority?: number;\n removefromactiveroutes?: boolean;\n removefromactivesp?: boolean;\n replacecos?: number;\n replacecost?: number;\n returnedtovendor?: boolean;\n rolltoallchildren?: boolean;\n rotsuspacct?: string;\n status?: string;\n statusdate?: string;\n status_description?: string;\n tloampartition?: boolean;\n totalcost?: number;\n totdowntime?: number;\n totunchargedcost?: number;\n unchargedcost?: number;\n vendor?: string;\n ytdcost?: number;\n}"},"properties":{"description":"The list of properties of the asset to return in the result. If not specified the result will be empty. For example, assetnum,status.","displayName":"Properties","name":"properties","typeName":"\"*\" | string"}},"outputs":{"result":{"description":"The result of the activity. This will only have a value if the Properties input is specified.","displayName":"Result","name":"result","typeName":"{\n href: string;\n}"}},"suite":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23","unsupportedApps":["GMV"]},{"action":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23::UpdateMaximoResource","category":"Maximo","clientOnly":true,"description":"Creates or updates a Maximo resource.","displayName":"Update Maximo Resource","inputs":{"service":{"description":"The Maximo API Service.","displayName":"Service","isRequired":true,"name":"service","typeName":"MaximoService"},"resource":{"description":"The resource to update.","displayName":"Resource","isRequired":true,"name":"resource","typeName":"| \"mxaction\"\n| \"mxamcrew\"\n| \"mxasset\"\n| \"mxbimassetwo\"\n| \"mxfeature\"\n| \"mxinventory\"\n| \"mxinvoice\"\n| \"mxitem\"\n| \"mxlabor\"\n| \"mxperson\"\n| \"mxperuser\"\n| \"mxpo\"\n| \"mxpr\"\n| \"mxproblem\"\n| \"mxreceipt\"\n| \"mxsr\"\n| \"mxsrvad\"\n| \"mxvendor\"\n| \"mxwo\"\n| string"},"id":{"description":"The ID of the resource to update.","displayName":"ID","name":"id","typeName":"string"},"content":{"description":"An object representing the properties of the resource to update.","displayName":"Content","isRequired":true,"name":"content","typeName":"{\n [key: string]: any;\n}"},"properties":{"description":"The list of properties of the resource to return in the result. If not specified the result will be empty. For example, assetnum,status.","displayName":"Properties","name":"properties","typeName":"\"*\" | string"}},"outputs":{"result":{"description":"The result of the activity. This will only have a value if the Properties input is specified.","displayName":"Result","name":"result","typeName":"{\n href: string;\n}"}},"suite":"uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23","unsupportedApps":["GMV"]}],"elements":[]}
|
package/main.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
define((function(){return function(){"use strict";var e={
|
1
|
+
define((function(){return function(){"use strict";var e={d:function(r,t){for(var i in t)e.o(t,i)&&!e.o(r,i)&&Object.defineProperty(r,i,{enumerable:!0,get:t[i]})},o:function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},r={};e.r(r),e.d(r,{main:function(){return T}});var t={};e.r(t),e.d(t,{CreateMaximoResource:function(){return f},CreateMaximoService:function(){return w},DeleteMaximoResource:function(){return p},GetMaximoAsset:function(){return h},GetMaximoAssets:function(){return v},GetMaximoCurrentUser:function(){return y},GetMaximoResource:function(){return m},GetMaximoResources:function(){return x},GetMaximoSystemInfo:function(){return E},SendMaximoRequest:function(){return q},UpdateMaximoAsset:function(){return M},UpdateMaximoResource:function(){return $}});class i extends Error{constructor(e,r,t){super(t||"Maximo request failed."),this.error=r,this.statusCode=e}}function o(e){return{...e.apiKey?{apikey:e.apiKey}:void 0,...e.authToken?{maxauth:e.authToken}:void 0}}async function s(e,r,t,i){if(!e.url)throw new Error("url is required");const s=a({lean:1,...t}),n=`${e.url}/${r}${s?"?"+s:""}`,c=await fetch(n,{headers:{Accept:"application/json",...o(e),...i}});return await d(c),await c.json()}async function n(e,r,t,i,s){if(!e.url)throw new Error("url is required");const n=a({lean:1,...t}),c=`${e.url}/${e.context}/${r}${n?"?"+n:""}`,u=await fetch(c,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json",...o(e),...s},body:JSON.stringify(i)});return await d(u),204===u.status||"0"===u.headers.get("content-length")?{}:await u.json()}function c(e,r,t,i,s){return n(e,r,t,i,{"x-method-override":"PATCH",...o(e),...s})}async function u(e,r,t,i,s){if(!e.url)throw new Error("url is required");const n=a({lean:1,...t}),c=`${e.url}/${r}${n?"?"+n:""}`,u=await fetch(c,{method:"DELETE",headers:{Accept:"application/json","Content-Type":"application/json",...o(e),...s},body:JSON.stringify(i)});return await d(u),204===u.status?{}:await u.json()}async function d(e,r){if(!e.ok){let t;const o=e.headers.get("content-type");if(o&&-1!==o.indexOf("application/json"))try{const r=await e.json();t=(null==r?void 0:r.Error)||r}catch(e){}throw new i(e.status,t,r)}}function a(e){return e?Object.keys(e).map((r=>{const t=e[r],i=null==t?"":t;return`${encodeURIComponent(r)}=${encodeURIComponent(i)}`})).join("&"):""}class f{async execute(e){const{content:r,properties:t,resource:i,service:o}=e;if(!o)throw new Error("service is required");if(!i)throw new Error("resource is required");if(!r)throw new Error("content is required");const s=`os/${i}`;return{result:await n(o,s,void 0,r,{...t?{properties:t}:void 0})}}}f.suite="uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23",f.action="uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23::CreateMaximoResource";class w{async execute(e){const{apiKey:r,password:t,context:i="oslc",url:o,username:s}=e;if(!o)throw new Error("url is required");if(!s&&!t&&!r)throw new Error("username/password or apiKey is required");const c=o.replace(/\/*$/,""),u=i.replace(/\/*$/,""),d={apiKey:r,authToken:s&&t?btoa(`${s}:${t}`):void 0,context:u,url:c};return await n(d,"login"),{service:d}}}function l(e){return/^https?:\/\//i.test(e)?e.substring(e.lastIndexOf("/")+1):e}w.suite="uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23",w.action="uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23::CreateMaximoService";class p{async execute(e){const{id:r,resource:t,service:i}=e;if(!i)throw new Error("service is required");if(!t)throw new Error("resource is required");const o=`os/${t}/${l(r)}`;return{result:await u(i,o)}}}p.suite="uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23",p.action="uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23::DeleteMaximoResource";class h{async execute(e){const{assetId:r,select:t,service:i}=e;if(!i)throw new Error("service is required");if(!r)throw new Error("assetId is required");const o=l(r);return{result:await s(i,`os/mxasset/${o}`,{...t?{"oslc.select":t}:void 0})}}}h.suite="uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23",h.action="uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23::GetMaximoAsset";class v{async execute(e){const{countOnly:r,orderBy:t,pageSize:i,select:o,service:n,where:c}=e;if(!n)throw new Error("service is required");return{result:await s(n,"os/mxasset",{...r?{count:1}:void 0,...t?{"oslc.orderBy":t}:void 0,...i?{"oslc.pageSize":i}:void 0,...o?{"oslc.select":o}:void 0,...c?{"oslc.where":c}:void 0})}}}v.suite="uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23",v.action="uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23::GetMaximoAssets";class y{async execute(e){const{service:r}=e;if(!r)throw new Error("service is required");return{result:await s(r,"whoami")}}}y.suite="uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23",y.action="uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23::GetMaximoCurrentUser";class m{async execute(e){const{id:r,resource:t,select:i,service:o}=e;if(!o)throw new Error("service is required");if(!t)throw new Error("resource is required");if(!r)throw new Error("id is required");return{result:await s(o,`os/${t}/${l(r)}`,{...i?{"oslc.select":i}:void 0})}}}m.suite="uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23",m.action="uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23::GetMaximoResource";class x{async execute(e){const{countOnly:r,orderBy:t,pageSize:i,resource:o,select:n,service:c,where:u}=e;if(!c)throw new Error("service is required");if(!o)throw new Error("resource is required");return{result:await s(c,`os/${o}`,{...r?{count:1}:void 0,...t?{"oslc.orderBy":t}:void 0,...i?{"oslc.pageSize":i}:void 0,...n?{"oslc.select":n}:void 0,...u?{"oslc.where":u}:void 0})}}}x.suite="uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23",x.action="uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23::GetMaximoResources";class E{async execute(e){const{service:r}=e;if(!r)throw new Error("service is required");return{result:await s(r,"systeminfo")}}}E.suite="uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23",E.action="uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23::GetMaximoSystemInfo";class q{async execute(e){const{body:r,headers:t,method:i,path:o,query:d,service:a}=e;if(!a)throw new Error("service is required");if(!i)throw new Error("method is required");if(!o)throw new Error("path is required");if("GET"==i)return{result:await s(a,o,d,t)};if("POST"==i)return{result:await n(a,o,d,r,t)};if("PATCH"==i)return{result:await c(a,o,d,r,t)};if("DELETE"==i)return{result:await u(a,o,d,r,t)};throw new Error(`HTTP method '${i}' not supported.`)}}q.suite="uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23",q.action="uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23::SendMaximoRequest";class M{async execute(e){const{asset:r,assetId:t,properties:i,service:o}=e;if(!o)throw new Error("service is required");if(!r)throw new Error("asset is required");if(!t)throw new Error("assetId is required");const s=l(t);return{result:await c(o,`os/mxasset/${s}`,void 0,r,{patchtype:"MERGE",...i?{properties:i}:void 0})}}}M.suite="uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23",M.action="uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23::UpdateMaximoAsset";class ${async execute(e){const{content:r,id:t,properties:i,resource:o,service:s}=e;if(!s)throw new Error("service is required");if(!o)throw new Error("resource is required");if(!r)throw new Error("content is required");const c=`os/${o}${t?"/"+l(t):""}`;return{result:await n(s,c,void 0,r,{"x-method-override":t?"PATCH":"SYNC",patchtype:"MERGE",...i?{properties:i}:void 0})}}}let S;async function T(){return S||(S=Promise.resolve(t),S)}return $.suite="uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23",$.action="uuid:67dc9f24-8dd0-4318-9f97-c64ef4ff7e23::UpdateMaximoResource",r}()}));
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@geocortex/workflow-activities-maximo",
|
3
|
-
"version": "0.
|
4
|
-
"description": "Maximo activities for
|
3
|
+
"version": "0.5.1",
|
4
|
+
"description": "Maximo activities for VertiGIS Studio Workflow",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
7
7
|
"url": "git+https://github.com/geocortex/workflow-activities-maximo.git"
|
@@ -11,7 +11,7 @@
|
|
11
11
|
"homepage": "https://github.com/geocortex/workflow-activities-maximo#readme",
|
12
12
|
"keywords": [
|
13
13
|
"VertiGIS",
|
14
|
-
"
|
14
|
+
"VertiGIS Studio",
|
15
15
|
"Workflow",
|
16
16
|
"Maximo",
|
17
17
|
"IBM",
|
@@ -26,13 +26,13 @@
|
|
26
26
|
},
|
27
27
|
"dependencies": {},
|
28
28
|
"devDependencies": {
|
29
|
-
"@geocortex/workflow": "5.
|
30
|
-
"@vertigis/workflow-sdk": "
|
31
|
-
"conventional-changelog-conventionalcommits": "^
|
29
|
+
"@geocortex/workflow": "5.27.1",
|
30
|
+
"@vertigis/workflow-sdk": "2.0.5",
|
31
|
+
"conventional-changelog-conventionalcommits": "^5.0.0",
|
32
32
|
"husky": "^4.3.6",
|
33
|
-
"prettier": "^2.
|
34
|
-
"pretty-quick": "^3.1.
|
35
|
-
"typescript": "^4.
|
33
|
+
"prettier": "^2.7.1",
|
34
|
+
"pretty-quick": "^3.1.3",
|
35
|
+
"typescript": "^4.7.4"
|
36
36
|
},
|
37
37
|
"browserslist": [
|
38
38
|
"last 2 chrome versions",
|