@pipedream/snipe_it 0.1.0 → 0.2.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/actions/create-hardware/create-hardware.mjs +6 -1
- package/actions/create-user/create-user.mjs +6 -1
- package/actions/get-hardware/get-hardware.mjs +6 -1
- package/actions/get-license/get-license.mjs +6 -1
- package/actions/get-user-assets/get-user-assets.mjs +6 -1
- package/actions/list-company-id-options/list-company-id-options.mjs +33 -0
- package/actions/list-department-id-options/list-department-id-options.mjs +33 -0
- package/actions/list-group-ids-options/list-group-ids-options.mjs +33 -0
- package/actions/list-hardware-id-options/list-hardware-id-options.mjs +33 -0
- package/actions/list-license-id-options/list-license-id-options.mjs +33 -0
- package/actions/list-location-id-options/list-location-id-options.mjs +33 -0
- package/actions/list-manager-id-options/list-manager-id-options.mjs +33 -0
- package/actions/list-model-id-options/list-model-id-options.mjs +33 -0
- package/actions/list-status-id-options/list-status-id-options.mjs +33 -0
- package/actions/list-supplier-id-options/list-supplier-id-options.mjs +33 -0
- package/actions/list-user-id-options/list-user-id-options.mjs +33 -0
- package/actions/update-hardware/update-hardware.mjs +6 -1
- package/package.json +2 -2
|
@@ -5,7 +5,12 @@ export default {
|
|
|
5
5
|
key: "snipe_it-create-hardware",
|
|
6
6
|
name: "Create Hardware Asset",
|
|
7
7
|
description: "Creates a new hardware asset in Snipe-IT. [See the documentation](https://snipe-it.readme.io/reference/hardware-create)",
|
|
8
|
-
version: "0.0.
|
|
8
|
+
version: "0.0.2",
|
|
9
|
+
annotations: {
|
|
10
|
+
destructiveHint: false,
|
|
11
|
+
openWorldHint: true,
|
|
12
|
+
readOnlyHint: false,
|
|
13
|
+
},
|
|
9
14
|
type: "action",
|
|
10
15
|
props: {
|
|
11
16
|
app,
|
|
@@ -4,7 +4,12 @@ export default {
|
|
|
4
4
|
key: "snipe_it-create-user",
|
|
5
5
|
name: "Create User",
|
|
6
6
|
description: "Creates a new user in Snipe-IT with profile information required for asset or license assignments. [See the documentation](https://snipe-it.readme.io/reference/users-2)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.2",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: true,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: false,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
app,
|
|
@@ -4,7 +4,12 @@ export default {
|
|
|
4
4
|
key: "snipe_it-get-hardware",
|
|
5
5
|
name: "Get Hardware Asset",
|
|
6
6
|
description: "Retrieves details of a specific hardware asset by ID. [See the documentation](https://snipe-it.readme.io/reference/hardware-by-id)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.2",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: true,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
app,
|
|
@@ -4,7 +4,12 @@ export default {
|
|
|
4
4
|
key: "snipe_it-get-license",
|
|
5
5
|
name: "Get License",
|
|
6
6
|
description: "Retrieves license details including seat count, expiration, and current usage metrics. Note: The response returns 'product_key' but uses 'serial' field for POST/PUT/PATCH requests. [See the documentation](https://snipe-it.readme.io/reference/licensesid)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.2",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: true,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
app,
|
|
@@ -4,7 +4,12 @@ export default {
|
|
|
4
4
|
key: "snipe_it-get-user-assets",
|
|
5
5
|
name: "Get User Assets",
|
|
6
6
|
description: "Retrieves all assets currently assigned to a specific user. Useful for audits and inventory reviews. [See the documentation](https://snipe-it.readme.io/reference/usersidassets)",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.2",
|
|
8
|
+
annotations: {
|
|
9
|
+
destructiveHint: false,
|
|
10
|
+
openWorldHint: true,
|
|
11
|
+
readOnlyHint: true,
|
|
12
|
+
},
|
|
8
13
|
type: "action",
|
|
9
14
|
props: {
|
|
10
15
|
app,
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import snipe_it from "../../snipe_it.app.mjs";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
key: "snipe_it-list-company-id-options",
|
|
5
|
+
name: "List Company Options",
|
|
6
|
+
description: "Retrieves available options for the Company field.",
|
|
7
|
+
version: "0.0.1",
|
|
8
|
+
type: "action",
|
|
9
|
+
annotations: {
|
|
10
|
+
destructiveHint: false,
|
|
11
|
+
openWorldHint: true,
|
|
12
|
+
readOnlyHint: true,
|
|
13
|
+
},
|
|
14
|
+
props: {
|
|
15
|
+
snipe_it,
|
|
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 snipe_it.propDefinitions.companyId.options.call(this.snipe_it, {
|
|
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 snipe_it from "../../snipe_it.app.mjs";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
key: "snipe_it-list-department-id-options",
|
|
5
|
+
name: "List Department Options",
|
|
6
|
+
description: "Retrieves available options for the Department field.",
|
|
7
|
+
version: "0.0.1",
|
|
8
|
+
type: "action",
|
|
9
|
+
annotations: {
|
|
10
|
+
destructiveHint: false,
|
|
11
|
+
openWorldHint: true,
|
|
12
|
+
readOnlyHint: true,
|
|
13
|
+
},
|
|
14
|
+
props: {
|
|
15
|
+
snipe_it,
|
|
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 snipe_it.propDefinitions.departmentId.options.call(this.snipe_it, {
|
|
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 snipe_it from "../../snipe_it.app.mjs";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
key: "snipe_it-list-group-ids-options",
|
|
5
|
+
name: "List Groups Options",
|
|
6
|
+
description: "Retrieves available options for the Groups field.",
|
|
7
|
+
version: "0.0.1",
|
|
8
|
+
type: "action",
|
|
9
|
+
annotations: {
|
|
10
|
+
destructiveHint: false,
|
|
11
|
+
openWorldHint: true,
|
|
12
|
+
readOnlyHint: true,
|
|
13
|
+
},
|
|
14
|
+
props: {
|
|
15
|
+
snipe_it,
|
|
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 snipe_it.propDefinitions.groupIds.options.call(this.snipe_it, {
|
|
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 snipe_it from "../../snipe_it.app.mjs";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
key: "snipe_it-list-hardware-id-options",
|
|
5
|
+
name: "List Hardware Asset Options",
|
|
6
|
+
description: "Retrieves available options for the Hardware 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
|
+
snipe_it,
|
|
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 snipe_it.propDefinitions.hardwareId.options.call(this.snipe_it, {
|
|
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 snipe_it from "../../snipe_it.app.mjs";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
key: "snipe_it-list-license-id-options",
|
|
5
|
+
name: "List License Options",
|
|
6
|
+
description: "Retrieves available options for the License field.",
|
|
7
|
+
version: "0.0.1",
|
|
8
|
+
type: "action",
|
|
9
|
+
annotations: {
|
|
10
|
+
destructiveHint: false,
|
|
11
|
+
openWorldHint: true,
|
|
12
|
+
readOnlyHint: true,
|
|
13
|
+
},
|
|
14
|
+
props: {
|
|
15
|
+
snipe_it,
|
|
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 snipe_it.propDefinitions.licenseId.options.call(this.snipe_it, {
|
|
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 snipe_it from "../../snipe_it.app.mjs";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
key: "snipe_it-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
|
+
snipe_it,
|
|
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 snipe_it.propDefinitions.locationId.options.call(this.snipe_it, {
|
|
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 snipe_it from "../../snipe_it.app.mjs";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
key: "snipe_it-list-manager-id-options",
|
|
5
|
+
name: "List Manager Options",
|
|
6
|
+
description: "Retrieves available options for the Manager field.",
|
|
7
|
+
version: "0.0.1",
|
|
8
|
+
type: "action",
|
|
9
|
+
annotations: {
|
|
10
|
+
destructiveHint: false,
|
|
11
|
+
openWorldHint: true,
|
|
12
|
+
readOnlyHint: true,
|
|
13
|
+
},
|
|
14
|
+
props: {
|
|
15
|
+
snipe_it,
|
|
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 snipe_it.propDefinitions.managerId.options.call(this.snipe_it, {
|
|
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 snipe_it from "../../snipe_it.app.mjs";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
key: "snipe_it-list-model-id-options",
|
|
5
|
+
name: "List Model Options",
|
|
6
|
+
description: "Retrieves available options for the Model field.",
|
|
7
|
+
version: "0.0.1",
|
|
8
|
+
type: "action",
|
|
9
|
+
annotations: {
|
|
10
|
+
destructiveHint: false,
|
|
11
|
+
openWorldHint: true,
|
|
12
|
+
readOnlyHint: true,
|
|
13
|
+
},
|
|
14
|
+
props: {
|
|
15
|
+
snipe_it,
|
|
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 snipe_it.propDefinitions.modelId.options.call(this.snipe_it, {
|
|
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 snipe_it from "../../snipe_it.app.mjs";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
key: "snipe_it-list-status-id-options",
|
|
5
|
+
name: "List Status Options",
|
|
6
|
+
description: "Retrieves available options for the 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
|
+
snipe_it,
|
|
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 snipe_it.propDefinitions.statusId.options.call(this.snipe_it, {
|
|
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 snipe_it from "../../snipe_it.app.mjs";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
key: "snipe_it-list-supplier-id-options",
|
|
5
|
+
name: "List Supplier Options",
|
|
6
|
+
description: "Retrieves available options for the Supplier field.",
|
|
7
|
+
version: "0.0.1",
|
|
8
|
+
type: "action",
|
|
9
|
+
annotations: {
|
|
10
|
+
destructiveHint: false,
|
|
11
|
+
openWorldHint: true,
|
|
12
|
+
readOnlyHint: true,
|
|
13
|
+
},
|
|
14
|
+
props: {
|
|
15
|
+
snipe_it,
|
|
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 snipe_it.propDefinitions.supplierId.options.call(this.snipe_it, {
|
|
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 snipe_it from "../../snipe_it.app.mjs";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
key: "snipe_it-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
|
+
snipe_it,
|
|
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 snipe_it.propDefinitions.userId.options.call(this.snipe_it, {
|
|
26
|
+
page: this.page,
|
|
27
|
+
});
|
|
28
|
+
$.export("$summary", `Successfully retrieved ${options.length} option${options.length === 1
|
|
29
|
+
? ""
|
|
30
|
+
: "s"}`);
|
|
31
|
+
return options;
|
|
32
|
+
},
|
|
33
|
+
};
|
|
@@ -5,7 +5,12 @@ export default {
|
|
|
5
5
|
key: "snipe_it-update-hardware",
|
|
6
6
|
name: "Update Hardware Asset",
|
|
7
7
|
description: "Partially updates information about an existing hardware asset. [See the documentation](https://snipe-it.readme.io/reference/hardware-partial-update)",
|
|
8
|
-
version: "0.0.
|
|
8
|
+
version: "0.0.2",
|
|
9
|
+
annotations: {
|
|
10
|
+
destructiveHint: true,
|
|
11
|
+
openWorldHint: true,
|
|
12
|
+
readOnlyHint: false,
|
|
13
|
+
},
|
|
9
14
|
type: "action",
|
|
10
15
|
props: {
|
|
11
16
|
app,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pipedream/snipe_it",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Pipedream Snipe-IT Components",
|
|
5
5
|
"main": "snipe_it.app.mjs",
|
|
6
6
|
"keywords": [
|
|
@@ -13,6 +13,6 @@
|
|
|
13
13
|
"access": "public"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@pipedream/platform": "^3.1.
|
|
16
|
+
"@pipedream/platform": "^3.1.1"
|
|
17
17
|
}
|
|
18
18
|
}
|