Skip to content

Commit df93e81

Browse files
authored
Release Connectwise 1.0.1 (#3688) (#3705)
1 parent 9b9b4bf commit df93e81

Some content is hidden

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

48 files changed

+4874
-5791
lines changed

plugins/connectwise/.CHECKSUM

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,51 @@
11
{
2-
"spec": "3c678fdadcc09203218eb3470fba3d57",
3-
"manifest": "71973e11303abf14c04058526b64d7a2",
4-
"setup": "eecc14b044d57eafea7b6db65cbb8b42",
2+
"spec": "74286a01177c903f5b800797138b5b06",
3+
"manifest": "9c671e02d4676607449496be5bdb3909",
4+
"setup": "883e4663e2d75a7e2d448e80074125cc",
55
"schemas": [
66
{
77
"identifier": "create_ticket/schema.py",
8-
"hash": "a975fc28dccff3c9768a586ee1060ad7"
8+
"hash": "8dedb26b6f4be27d8e94136325e3490c"
99
},
1010
{
1111
"identifier": "create_ticket_note/schema.py",
12-
"hash": "320cdb19019a89a9ae7cf0cba01b1cb1"
12+
"hash": "ca5ca737802cc0a85502c4899a26235b"
1313
},
1414
{
1515
"identifier": "delete_ticket/schema.py",
16-
"hash": "d8e098ebd38862bf62d268f63d63bf22"
16+
"hash": "448fcf751e1e3829fe7565e592fd7d35"
1717
},
1818
{
1919
"identifier": "delete_ticket_note/schema.py",
20-
"hash": "857b402a65c985caa76ca2dca9c72db0"
20+
"hash": "2f6baebcedc782e493a4c828beafc630"
2121
},
2222
{
2323
"identifier": "get_company/schema.py",
24-
"hash": "7ed5e49cc45747f1c09da8b9e1b03a7a"
24+
"hash": "26da8603ec79ab74c7dcbf8519420a9d"
2525
},
2626
{
2727
"identifier": "get_ticket_by_id/schema.py",
28-
"hash": "fa6f7c3ab6570a4889282e522a3a249f"
28+
"hash": "e2e8255769584a921d3bf05a623ce451"
2929
},
3030
{
3131
"identifier": "get_ticket_notes/schema.py",
32-
"hash": "32628cebd91c635e831573f20ba2532e"
32+
"hash": "80a73f035d78a627c4fb16f59116c9a5"
3333
},
3434
{
3535
"identifier": "get_tickets/schema.py",
36-
"hash": "7106e2191eb81e46c2710d7f6c28e9e8"
36+
"hash": "3afaffcd5b2e85271e617ba00720c6e0"
3737
},
3838
{
3939
"identifier": "update_ticket/schema.py",
40-
"hash": "ba14ea09161423f4ccbad01e81ad70f5"
40+
"hash": "7a16c27f3a996533cbfe2ddd8f6e2aba"
4141
},
4242
{
4343
"identifier": "update_ticket_note/schema.py",
44-
"hash": "951452bdeb7e0a423ffb76987ce7044a"
44+
"hash": "225b9408caed531c235792263b3f0776"
4545
},
4646
{
4747
"identifier": "connection/schema.py",
48-
"hash": "acf1f84cfa0cfd9f546960640ce06759"
48+
"hash": "b8320b6e4f8fd96fea77101f607db96d"
4949
}
5050
]
5151
}

plugins/connectwise/Dockerfile

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,34 @@
1-
FROM rapid7/insightconnect-python-3-38-plugin:4
2-
# Refer to the following documentation for available SDK parent images: https://komand.github.io/python/sdk.html#version
1+
FROM --platform=linux/amd64 rapid7/insightconnect-python-3-slim-plugin:6.4.3 AS builder
2+
3+
WORKDIR /python/src
4+
5+
ADD ./plugin.spec.yaml /plugin.spec.yaml
6+
ADD ./requirements.txt /python/src/requirements.txt
7+
ADD . /python/src
8+
9+
10+
11+
RUN pip install .
12+
RUN pip uninstall -y setuptools
13+
14+
FROM --platform=linux/amd64 rapid7/insightconnect-python-3-slim-plugin:6.4.3
315

416
LABEL organization=rapid7
517
LABEL sdk=python
618

7-
# Add any custom package dependencies here
8-
# NOTE: Add pip packages to requirements.txt
19+
WORKDIR /python/src
920

10-
# End package dependencies
21+
COPY --from=builder /python/src /python/src
22+
COPY --from=builder /plugin.spec.yaml /plugin.spec.yaml
1123

12-
# Add source code
13-
WORKDIR /python/src
14-
ADD ./plugin.spec.yaml /plugin.spec.yaml
15-
ADD . /python/src
1624

17-
# Install pip dependencies
1825
RUN if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
1926

20-
# Install plugin
21-
RUN python setup.py build && python setup.py install
27+
ENV PYTHONPATH="/python/src:${PYTHONPATH}"
28+
29+
RUN rm -rf /root/.cache;
2230

2331
# User to run plugin code. The two supported users are: root, nobody
2432
USER nobody
2533

26-
ENTRYPOINT ["/usr/local/bin/icon_connectwise"]
34+
ENTRYPOINT ["python", "/python/src/bin/icon_connectwise"]

plugins/connectwise/bin/icon_connectwise

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/usr/bin/env python
2-
# GENERATED BY KOMAND SDK - DO NOT EDIT
2+
# GENERATED BY INSIGHT-PLUGIN - DO NOT EDIT
33
import os
44
import json
55
from sys import argv
66

77
Name = "ConnectWise"
88
Vendor = "rapid7"
9-
Version = "1.0.0"
9+
Version = "1.0.1"
1010
Description = "Use the ConnectWise Manage help desk software to effectively oversee your service tickets and resolve client issues with ease"
1111

1212

@@ -23,7 +23,7 @@ def main():
2323
monkey.patch_all()
2424

2525
import insightconnect_plugin_runtime
26-
from icon_connectwise import connection, actions, triggers
26+
from icon_connectwise import connection, actions, triggers, tasks
2727

2828
class ICONConnectwise(insightconnect_plugin_runtime.Plugin):
2929
def __init__(self):
@@ -34,26 +34,26 @@ def main():
3434
description=Description,
3535
connection=connection.Connection()
3636
)
37+
self.add_action(actions.GetTickets())
38+
39+
self.add_action(actions.GetTicketById())
40+
3741
self.add_action(actions.CreateTicket())
38-
39-
self.add_action(actions.CreateTicketNote())
40-
42+
43+
self.add_action(actions.UpdateTicket())
44+
4145
self.add_action(actions.DeleteTicket())
42-
43-
self.add_action(actions.DeleteTicketNote())
44-
45-
self.add_action(actions.GetCompany())
46-
47-
self.add_action(actions.GetTicketById())
48-
46+
4947
self.add_action(actions.GetTicketNotes())
50-
51-
self.add_action(actions.GetTickets())
52-
53-
self.add_action(actions.UpdateTicket())
54-
48+
49+
self.add_action(actions.CreateTicketNote())
50+
5551
self.add_action(actions.UpdateTicketNote())
56-
52+
53+
self.add_action(actions.DeleteTicketNote())
54+
55+
self.add_action(actions.GetCompany())
56+
5757

5858
"""Run plugin"""
5959
cli = insightconnect_plugin_runtime.CLI(ICONConnectwise())

0 commit comments

Comments
 (0)