@sw-tsdk/common 2.0.0 → 2.0.1-next.102

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/package.json CHANGED
@@ -5,8 +5,8 @@
5
5
  },
6
6
  "dependencies": {
7
7
  "@oclif/core": "1.16.4",
8
- "@sw-tsdk/core": "^2.0.0",
9
- "@sw-tsdk/docker": "^2.0.0",
8
+ "@sw-tsdk/core": "^2.0.1-next.102+1852615",
9
+ "@sw-tsdk/docker": "^2.0.1-next.102+1852615",
10
10
  "axios": "0.26.1",
11
11
  "change-case": "4.1.2",
12
12
  "conventional-changelog-conventionalcommits": "4.6.3",
@@ -55,6 +55,6 @@
55
55
  "test": "jest --passWithNoTests"
56
56
  },
57
57
  "types": "lib/index.d.ts",
58
- "version": "2.0.0",
59
- "gitHead": "0df4f0ee14534b1bf106707ddd752c5f6724efc5"
58
+ "version": "2.0.1-next.102+1852615",
59
+ "gitHead": "18526150ea6273dbcf6fa0d9ad74722d902616c3"
60
60
  }
@@ -1,7 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project are documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- ## 1.0.0 - {{{timestamp}}}
7
- * Initial Release
@@ -1,7 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project are documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- ## 1.0.0 - {{{timestamp}}}
7
- * Initial Release
@@ -1,40 +0,0 @@
1
- # {{{title}}}
2
-
3
- A brief description goes here. Be sure to provide an overview of what the plugin does. Include description of the
4
- product being integrated, plus use cases/value prop of the Swimlane integration.
5
-
6
- ## Prerequisites
7
-
8
- Prerequisites, everything outside of the plugin itself. This should include info on how to
9
- configure the device (API Key, Perms, ect)
10
-
11
- ## Capabilities
12
-
13
- This plugin provides the following capabilities:
14
-
15
- * Capabilities
16
- * Go
17
- * Here
18
- * e.g. Manage Firewall Policies instead of listing each individual tasks
19
-
20
- ### Limitations
21
-
22
- Include information about known limitations here, including supported or minimum versions, especially
23
- known unsupported versions.
24
-
25
- ## Asset Setup
26
-
27
- The content here should discuss asset setup in a conversational manner. Be sure to include any known login
28
- and test connection errors.
29
-
30
- ## Tasks Setup
31
- Special task setup as needed depending on plugin, exclude if empty.
32
-
33
- Known available allowed input options from enum type selection
34
-
35
- ## Notes
36
-
37
- * Any other notes not fitting other sections go here.
38
- * Any reference URLs to external docs or other resources
39
-
40
- This plugin was last tested against product version: !*CHANGEME*!.
@@ -1,132 +0,0 @@
1
- {
2
- "name": "{{{name}}}",
3
- "type": "{{{type}}}",
4
- "version": "1.0.0",
5
- "description": "{{{description}}}",
6
- "family": "{{{family}}}",
7
- "inputParameters":
8
- {
9
- "username":
10
- {
11
- "name": "Username",
12
- "description": "Account Username",
13
- "required": true,
14
- "type": 1
15
- },
16
- "password":
17
- {
18
- "name": "Password",
19
- "description": "Account Password",
20
- "required": true,
21
- "type": 4
22
- },
23
- "http_proxy":
24
- {
25
- "name": "HTTP Proxy",
26
- "description": "Optional HTTP/HTTPS proxy",
27
- "example": "http://user:password@10.10.1.10:3128",
28
- "type": 1
29
- },
30
- "verify_ssl":
31
- {
32
- "name": "Verify SSL",
33
- "description": "Enable SSL certificate verification. Ignored for non-SSL connection",
34
- "type": 7,
35
- "default": true
36
- },
37
- "host":
38
- {
39
- "name": "Host",
40
- "description": "Server Host Address",
41
- "example": "http://192.168.1.1",
42
- "required": true,
43
- "type": 1
44
- },
45
- "ip_address":
46
- {
47
- "name": "IP Address",
48
- "description": "Server IP Address",
49
- "example": "192.168.1.1",
50
- "required": true,
51
- "type": 1
52
- },
53
- "port":
54
- {
55
- "name": "Port",
56
- "description": "Server Port",
57
- "example": "8080",
58
- "required": true,
59
- "type": 1
60
- },
61
- "api_key":
62
- {
63
- "name": "API Key",
64
- "description": "API Key",
65
- "required": true,
66
- "type": 4
67
- },
68
- "access_key":
69
- {
70
- "name": "Access Key",
71
- "description": "Access Key",
72
- "required": true,
73
- "type": 4
74
- },
75
- "token":
76
- {
77
- "name": "Token",
78
- "description": "Token",
79
- "required": true,
80
- "type": 4
81
- },
82
- "access_token":
83
- {
84
- "name": "Access Token",
85
- "description": "Access Token",
86
- "required": true,
87
- "type": 4
88
- },
89
- "email":
90
- {
91
- "name": "Email",
92
- "description": "Account Email",
93
- "example": "john.smith@company.com",
94
- "required": true,
95
- "type": 1
96
- },
97
- "url":
98
- {
99
- "name": "URL",
100
- "description": "URL",
101
- "example": "http://example.com",
102
- "required": true,
103
- "type": 1
104
- },
105
- "domain":
106
- {
107
- "name": "Domain",
108
- "description": "Domain",
109
- "example": "example.com",
110
- "required": true,
111
- "type": 1
112
- },
113
- "user_agent":
114
- {
115
- "name": "User Agent",
116
- "description": "User Agent",
117
- "example": "SwimlaneIntegration",
118
- "required": true,
119
- "type": 1
120
- },
121
- "verbose_errors":
122
- {
123
- "name": "Verbose Errors",
124
- "description": "HTTP errors will contain more detail about the request and response if selected.",
125
- "type": 7,
126
- "default": false
127
- }
128
- },
129
- "testScript": "",
130
- "testScriptFile": "test_connection.py",
131
- "base64Image": "{{{logo}}}"
132
- }
@@ -1,3 +0,0 @@
1
- {
2
- "bitwardenName": "{{{name}}}"
3
- }
@@ -1,9 +0,0 @@
1
- {
2
- "auth_endpoints": [false],
3
- "HEADER_WHITELIST_ADDITIONS": [],
4
- "mock_requests": true,
5
- "validate_headers": true,
6
- "validate_kwargs": true,
7
- "allow_missing_outputs": false,
8
- "validate_output_types": true
9
- }
@@ -1 +0,0 @@
1
- from swimlane_integration_testing.conftest import *
@@ -1,4 +0,0 @@
1
- {
2
- "host": "",
3
- "verify_ssl": false
4
- }
@@ -1,3 +0,0 @@
1
- {{#each requirements}}
2
- {{this}}
3
- {{/each}}
@@ -1,13 +0,0 @@
1
- from {{bundleModuleName}} import {{baseClassName}}
2
-
3
-
4
- class SwMain({{baseClassName}}):
5
- {{#if rest}}
6
- method = "GET"
7
- endpoint = ""
8
- {{/if}}
9
- def __init__(self, context):
10
- super().__init__(context)
11
-
12
- def execute(self):
13
- pass
@@ -1,23 +0,0 @@
1
- {
2
- "name": "{{{name}}}",
3
- "description": "{{{description}}}",
4
- "version": "{{{version}}}",
5
- "family": "{{{family}}}",
6
- "actionType": "{{{actionType}}}",
7
- "assetDependencyType": "{{{assetDependencyType}}}",
8
- "assetDependencyVersion": "{{{assetDependencyVersion}}}",
9
- "inputParameters": {},
10
- "availableOutputTypes": [
11
- "email",
12
- "insertUpdateRecord",
13
- "referentialTask",
14
- "saveToFile",
15
- "setFieldValue"
16
- ],
17
- "availableOutputVariables": {},
18
- "pythonDependencies": null,
19
- "readonly": true,
20
- "script": "",
21
- "scriptFile": "{{{scriptFile}}}",
22
- "base64Image": "{{{logo}}}"
23
- }
@@ -1,17 +0,0 @@
1
- {{#if rest}}
2
- from basic_rest_endpoint import BasicRestEndpoint, asset_parser
3
-
4
- class {{{baseClassName}}}(BasicRestEndpoint):
5
-
6
- method = "GET"
7
- endpoint = ""
8
-
9
- def __init__(self, context):
10
- super().__init__(**asset_parser(context.asset))
11
-
12
- self.configure_status_actions(verbose_errors=context.asset['verbose_errors'])
13
- {{else}}
14
- class {{{baseClassName}}}(object):
15
- def __init__(self, context):
16
- pass
17
- {{/if}}
@@ -1,22 +0,0 @@
1
- {
2
- "version_hash": null,
3
- "author_email": "info@swimlane.com",
4
- "version": "1.0.0",
5
- "description": "{{{description}}}",
6
- "scripts": [],
7
- "author": "{{{author}}}",
8
- "vendor": "{{{vendor}}}",
9
- "product": "{{{product}}}",
10
- "url": "{{{url}}}",
11
- "install_requires": [],
12
- "packages": [
13
- {{#each packages}}
14
- "{{this}}"{{#unless @last}},{{/unless}}
15
- {{/each}}
16
- ],
17
- "name": "{{{name}}}",
18
- "supported_swimlane_version": "{{{supportedSwimlaneVersion}}}",
19
- "python_version": "3.6",
20
- "python_runtime": "3.6",
21
- "private": false
22
- }
@@ -1,41 +0,0 @@
1
- repos:
2
- - repo: https://github.com/pre-commit/pre-commit-hooks
3
- rev: v2.3.0
4
- hooks:
5
- - id: check-json
6
- - id: check-yaml
7
- - id: end-of-file-fixer
8
- - id: requirements-txt-fixer
9
- - id: trailing-whitespace
10
- # Remove unused python imports
11
- - repo: https://github.com/myint/autoflake
12
- rev: v1.4
13
- hooks:
14
- - id: autoflake
15
- args: [--in-place, --remove-all-unused-imports]
16
- # why we exclude these files? See below.
17
- #
18
- # setup.py -> if formatted the integration validation fails
19
- # conftest.py -> has intentional unsused imports
20
- # test_default.py -> has intentional unsused imports
21
- #
22
- # This is the same reason why we exclude this
23
- # files on hooks bellow.
24
- exclude: "setup.py|conftest.py|test_default.py"
25
- # Sort python imports
26
- - repo: https://github.com/PyCQA/isort
27
- rev: 5.10.1
28
- hooks:
29
- - id: isort
30
- # never remove --profile black
31
- # if you do that darker and isort will enter
32
- # in conflict and you'll enter in a infinity import
33
- # error because black will revert what isort fixed.
34
- args: ["--profile", "black"]
35
- exclude: "setup.py|conftest.py|test_default.py"
36
- # black but powered with diff
37
- - repo: https://github.com/akaihola/darker
38
- rev: 1.5.0
39
- hooks:
40
- - id: darker
41
- exclude: "setup.py"
@@ -1,11 +0,0 @@
1
- from basic_rest_endpoint import BasicRestEndpoint, asset_parser
2
-
3
- class {{base_class_name}}(BasicRestEndpoint):
4
-
5
- method = "GET"
6
- endpoint = ""
7
-
8
- def __init__(self, context):
9
- super().__init__(**asset_parser(context.asset))
10
-
11
- self.configure_status_actions(verbose_errors=context.asset['verbose_errors'])
@@ -1,17 +0,0 @@
1
- from setuptools import setup
2
- from json import load
3
-
4
- def convert(_input):
5
- if isinstance(_input, dict):
6
- return {convert(k): convert(v) for k, v in _input.items()}
7
- elif isinstance(_input, list):
8
- return [convert(element) for element in _input]
9
- elif isinstance(_input, bytes):
10
- return _input.decode()
11
- else:
12
- return _input
13
-
14
- with open("package.json") as config_file:
15
- config = load(config_file, object_hook=convert)
16
- config.pop("version_hash")
17
- setup(**config)
@@ -1,4 +0,0 @@
1
- from {{{bundleModuleName}}} import {{{baseClassName}}}
2
- from swimlane_connector_utilities import create_test_conn
3
-
4
- SwMain = create_test_conn({{{baseClassName}}}, execute_func="execute", custom_test_funcs=[])
@@ -1 +0,0 @@
1
- from swimlane_integration_testing.test_general_rest import *
@@ -1 +0,0 @@
1
- swimlane-integration-testing