@pipedream/servicenow 0.9.0 → 0.9.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.
- package/actions/create-table-record/create-table-record.mjs +1 -1
- package/actions/delete-table-record/delete-table-record.mjs +4 -1
- package/actions/get-record-counts-by-field/get-record-counts-by-field.mjs +1 -1
- package/actions/get-table-record-by-id/get-table-record-by-id.mjs +4 -1
- package/actions/get-table-records/get-table-records.mjs +1 -1
- package/actions/list-tables/list-tables.mjs +1 -1
- package/actions/update-table-record/update-table-record.mjs +4 -1
- package/package.json +1 -1
- package/servicenow.app.mjs +20 -0
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
key: "servicenow-create-table-record",
|
|
6
6
|
name: "Create Table Record",
|
|
7
7
|
description: "Inserts one record in the specified table. [See the documentation](https://www.servicenow.com/docs/bundle/zurich-api-reference/page/integrate/inbound-rest/concept/c_TableAPI.html#title_table-POST)",
|
|
8
|
-
version: "1.0.
|
|
8
|
+
version: "1.0.3",
|
|
9
9
|
annotations: {
|
|
10
10
|
destructiveHint: false,
|
|
11
11
|
openWorldHint: true,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "servicenow-delete-table-record",
|
|
5
5
|
name: "Delete Table Record",
|
|
6
6
|
description: "Deletes the specified record from a table. [See the documentation](https://www.servicenow.com/docs/bundle/zurich-api-reference/page/integrate/inbound-rest/concept/c_TableAPI.html#title_table-DELETE)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.4",
|
|
8
8
|
annotations: {
|
|
9
9
|
destructiveHint: true,
|
|
10
10
|
openWorldHint: true,
|
|
@@ -23,6 +23,9 @@ export default {
|
|
|
23
23
|
propDefinition: [
|
|
24
24
|
servicenow,
|
|
25
25
|
"recordId",
|
|
26
|
+
(c) => ({
|
|
27
|
+
table: c.table,
|
|
28
|
+
}),
|
|
26
29
|
],
|
|
27
30
|
},
|
|
28
31
|
queryNoDomain: {
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
key: "servicenow-get-record-counts-by-field",
|
|
6
6
|
name: "Get Record Counts by Field",
|
|
7
7
|
description: "Retrieves the count of records grouped by a specified field from a ServiceNow table. [See the documentation](https://www.servicenow.com/docs/bundle/zurich-api-reference/page/integrate/inbound-rest/concept/c_AggregateAPI.html#title_aggregate-GET-stats)",
|
|
8
|
-
version: "0.0.
|
|
8
|
+
version: "0.0.4",
|
|
9
9
|
annotations: {
|
|
10
10
|
destructiveHint: false,
|
|
11
11
|
openWorldHint: true,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "servicenow-get-table-record-by-id",
|
|
5
5
|
name: "Get Table Record by ID",
|
|
6
6
|
description: "Retrieves a single record from a table by its ID. [See the documentation](https://www.servicenow.com/docs/bundle/zurich-api-reference/page/integrate/inbound-rest/concept/c_TableAPI.html#title_table-GET-id)",
|
|
7
|
-
version: "1.0.
|
|
7
|
+
version: "1.0.3",
|
|
8
8
|
annotations: {
|
|
9
9
|
destructiveHint: false,
|
|
10
10
|
openWorldHint: true,
|
|
@@ -23,6 +23,9 @@ export default {
|
|
|
23
23
|
propDefinition: [
|
|
24
24
|
servicenow,
|
|
25
25
|
"recordId",
|
|
26
|
+
(c) => ({
|
|
27
|
+
table: c.table,
|
|
28
|
+
}),
|
|
26
29
|
],
|
|
27
30
|
},
|
|
28
31
|
responseDataFormat: {
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
key: "servicenow-get-table-records",
|
|
6
6
|
name: "Get Table Records",
|
|
7
7
|
description: "Retrieves multiple records for the specified table. [See the documentation](https://www.servicenow.com/docs/bundle/zurich-api-reference/page/integrate/inbound-rest/concept/c_TableAPI.html#title_table-GET)",
|
|
8
|
-
version: "1.0.
|
|
8
|
+
version: "1.0.3",
|
|
9
9
|
annotations: {
|
|
10
10
|
destructiveHint: false,
|
|
11
11
|
openWorldHint: true,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "servicenow-list-tables",
|
|
5
5
|
name: "List Tables",
|
|
6
6
|
description: "List all tables in the ServiceNow instance. [See the documentation](https://www.servicenow.com/docs/r/api-reference/rest-apis/c_TableAPI.html)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.2",
|
|
8
8
|
type: "action",
|
|
9
9
|
annotations: {
|
|
10
10
|
destructiveHint: false,
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
key: "servicenow-update-table-record",
|
|
6
6
|
name: "Update Table Record",
|
|
7
7
|
description: "Updates the specified record with the name-value pairs included in the request body. [See the documentation](https://www.servicenow.com/docs/bundle/zurich-api-reference/page/integrate/inbound-rest/concept/c_TableAPI.html#title_table-PATCH)",
|
|
8
|
-
version: "1.0.
|
|
8
|
+
version: "1.0.3",
|
|
9
9
|
annotations: {
|
|
10
10
|
destructiveHint: true,
|
|
11
11
|
openWorldHint: true,
|
|
@@ -24,6 +24,9 @@ export default {
|
|
|
24
24
|
propDefinition: [
|
|
25
25
|
servicenow,
|
|
26
26
|
"recordId",
|
|
27
|
+
(c) => ({
|
|
28
|
+
table: c.table,
|
|
29
|
+
}),
|
|
27
30
|
],
|
|
28
31
|
},
|
|
29
32
|
updateFields: {
|
package/package.json
CHANGED
package/servicenow.app.mjs
CHANGED
|
@@ -33,6 +33,26 @@ export default {
|
|
|
33
33
|
type: "string",
|
|
34
34
|
label: "Record ID",
|
|
35
35
|
description: "The ID (`sys_id` field) of the record",
|
|
36
|
+
async options({
|
|
37
|
+
table, page,
|
|
38
|
+
}) {
|
|
39
|
+
if (!table) {
|
|
40
|
+
return [];
|
|
41
|
+
}
|
|
42
|
+
const response = await this.getTableRecords({
|
|
43
|
+
table,
|
|
44
|
+
params: {
|
|
45
|
+
sysparm_limit: 100,
|
|
46
|
+
sysparm_offset: page * 100,
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
return response.map(({
|
|
50
|
+
sys_id: value, label,
|
|
51
|
+
}) => ({
|
|
52
|
+
label: label || value,
|
|
53
|
+
value,
|
|
54
|
+
}));
|
|
55
|
+
},
|
|
36
56
|
},
|
|
37
57
|
responseDataFormat: {
|
|
38
58
|
label: "Response Data Format",
|