@kineticdata/react 6.0.4 → 6.1.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/CHANGELOG.md +116 -86
- package/lib/apis/core/attributeDefinitions.js +9 -6
- package/lib/apis/core/integrations.js +61 -0
- package/lib/apis/core/submissions.js +52 -15
- package/lib/apis/http.js +16 -2
- package/lib/apis/index.js +24 -0
- package/lib/apis/integrator/index.js +262 -0
- package/lib/apis/system/index.js +64 -12
- package/lib/apis/task/index.js +9 -2
- package/lib/components/agent/filestore/FilestoreForm.js +1 -1
- package/lib/components/common/AttributeSelect.js +10 -2
- package/lib/components/common/BridgeSelect.js +2 -1
- package/lib/components/common/ConnectionSelect.js +72 -0
- package/lib/components/common/FormSelect.js +2 -1
- package/lib/components/common/StaticSelect.js +15 -6
- package/lib/components/common/TableInput.js +4 -1
- package/lib/components/common/TeamSelect.js +2 -1
- package/lib/components/common/ToastContainer.js +34 -10
- package/lib/components/common/Typeahead.js +59 -23
- package/lib/components/common/UserSelect.js +2 -1
- package/lib/components/common/authentication/RequestInterceptor.js +1 -1
- package/lib/components/core/attribute_definition/AttributeDefinitionForm.js +3 -0
- package/lib/components/core/bridge_model/BridgeModelTable.js +19 -0
- package/lib/components/core/bridge_model_attribute/BridgeModelAttributeForm.js +6 -9
- package/lib/components/core/bridge_model_attribute/BridgeModelAttributeTable.js +0 -4
- package/lib/components/core/bridge_model_qualification/BridgeModelQualificationForm.js +7 -10
- package/lib/components/core/bridge_model_qualification/BridgeModelQualificationTable.js +2 -15
- package/lib/components/core/category/CategoryForm.js +4 -1
- package/lib/components/core/category/CategoryTable.js +2 -2
- package/lib/components/core/core_form/CoreForm.js +18 -10
- package/lib/components/core/file_resource/FileResourceForm.js +2 -1
- package/lib/components/core/file_resource/FileResourceTable.js +14 -7
- package/lib/components/core/form/FormForm.js +42 -19
- package/lib/components/core/form/FormTable.js +14 -14
- package/lib/components/core/form_type/FormTypeForm.js +3 -0
- package/lib/components/core/i18n/Moment.js +1 -0
- package/lib/components/core/integration/IntegrationForm.js +232 -0
- package/lib/components/core/integration/IntegrationTable.js +139 -0
- package/lib/components/core/kapp/KappForm.js +56 -67
- package/lib/components/core/kapp/KappTable.js +3 -3
- package/lib/components/core/log/LogTable.js +1 -1
- package/lib/components/core/security_definition/SecurityDefinitionForm.js +48 -10
- package/lib/components/core/space/SpaceForm.js +97 -111
- package/lib/components/core/submission/DatastoreSubmissionTable.js +4 -4
- package/lib/components/core/submission/FormSubmissionTable.js +12 -7
- package/lib/components/core/submission/KappSubmissionTable.js +4 -4
- package/lib/components/core/submission/SubmissionForm.js +3 -1
- package/lib/components/core/team/TeamTable.js +17 -7
- package/lib/components/core/user/UserTable.js +18 -18
- package/lib/components/core/webapi/WebApiForm.js +5 -2
- package/lib/components/core/webapi/WebApiTable.js +2 -2
- package/lib/components/core/webhook/WebhookForm.js +43 -33
- package/lib/components/core/webhook/WebhookTable.js +16 -16
- package/lib/components/core/webhook_job/WebhookJobTable.js +17 -6
- package/lib/components/form/Form.helpers.js +10 -4
- package/lib/components/form/Form.js +250 -168
- package/lib/components/form/Form.models.js +6 -1
- package/lib/components/form/FormState.js +9 -5
- package/lib/components/form/defaults/CodeField.js +44 -1
- package/lib/components/index.js +84 -3
- package/lib/components/integrator/connection/ConnectionForm.js +112 -0
- package/lib/components/integrator/connection/ConnectionTable.js +80 -0
- package/lib/components/integrator/connection/config_fields/http.js +570 -0
- package/lib/components/integrator/integrationTypes.js +98 -0
- package/lib/components/integrator/operation/OperationForm.js +128 -0
- package/lib/components/integrator/operation/OperationTable.js +64 -0
- package/lib/components/integrator/operation/config_fields/http.js +184 -0
- package/lib/components/system/SystemSecurityForm.js +1 -1
- package/lib/components/system/SystemTaskAdapterForm.js +9 -9
- package/lib/components/system/helpers.js +123 -100
- package/lib/components/system/spaces/SystemSpaceForm.js +9 -37
- package/lib/components/system/spaces/SystemTenantForm.js +276 -104
- package/lib/components/system/spaces/SystemTenantMigrateForm.js +449 -0
- package/lib/components/system/spaces/SystemTenantTable.js +20 -16
- package/lib/components/table/Table.redux.js +1 -1
- package/lib/components/task/builder/ConnectorForm.js +11 -7
- package/lib/components/task/builder/Node.js +11 -2
- package/lib/components/task/builder/NodeForm.js +93 -22
- package/lib/components/task/builder/NodeParametersForm.js +29 -17
- package/lib/components/task/builder/TaskDefinitionConfigForm.js +18 -50
- package/lib/components/task/builder/TreeBuilder.js +32 -5
- package/lib/components/task/builder/builder.redux.js +399 -205
- package/lib/components/task/builder/constants.js +10 -2
- package/lib/components/task/builder/helpers.js +199 -79
- package/lib/components/task/builder/models.js +11 -9
- package/lib/components/task/category/TaskCategoryTable.js +3 -3
- package/lib/components/task/common/UsageTable.js +1 -1
- package/lib/components/task/handlers/HandlerTable.js +35 -19
- package/lib/components/task/policy_rule/PolicyRuleTable.js +3 -3
- package/lib/components/task/runs/CreateManualTriggerForm.js +2 -0
- package/lib/components/task/runs/RunTable.js +4 -4
- package/lib/components/task/runs/RunTaskTable.js +1 -1
- package/lib/components/task/sources/SourceTable.js +2 -2
- package/lib/components/task/triggers/TriggerTable.js +2 -2
- package/lib/components/task/workflows/LinkedWorkflowTable.js +2 -2
- package/lib/components/task/workflows/WorkflowForm.js +29 -9
- package/lib/components/task/workflows/WorkflowTable.js +2 -2
- package/lib/helpers/index.js +289 -72
- package/package.json +5 -3
- package/proxyhelper.js +28 -3
package/proxyhelper.js
CHANGED
|
@@ -32,16 +32,24 @@ const defaultProxyLogger = ({
|
|
|
32
32
|
const proxyData = getProxyData(proxyRequest);
|
|
33
33
|
const originalData = getRequestData(originalRequest);
|
|
34
34
|
console.log(
|
|
35
|
-
`[proxy] [original] -> ${originalData.method}\t${
|
|
35
|
+
`[proxy] [original] -> ${originalData.method}\t${
|
|
36
|
+
originalData.scheme
|
|
37
|
+
}\t${originalData.host}\t${originalData.path}`,
|
|
36
38
|
);
|
|
37
39
|
console.log(
|
|
38
|
-
`[proxy] [proxied] -> ${proxyData.method}\t${proxyData.scheme}\t${
|
|
40
|
+
`[proxy] [proxied] -> ${proxyData.method}\t${proxyData.scheme}\t${
|
|
41
|
+
proxyData.host
|
|
42
|
+
}\t${proxyData.path}`,
|
|
39
43
|
);
|
|
40
44
|
} else if (proxyResponse) {
|
|
41
45
|
const responseData = getResponseData(proxyResponse);
|
|
42
46
|
const requestData = getRequestData(originalRequest);
|
|
43
47
|
console.log(
|
|
44
|
-
`[proxy] [original] <- ${responseData.statusCode}\t${
|
|
48
|
+
`[proxy] [original] <- ${responseData.statusCode}\t${
|
|
49
|
+
requestData.method
|
|
50
|
+
}\t${requestData.scheme}\t${requestData.host} (${responseData.host})\t${
|
|
51
|
+
requestData.path
|
|
52
|
+
}`,
|
|
45
53
|
);
|
|
46
54
|
}
|
|
47
55
|
} catch (e) {
|
|
@@ -56,6 +64,7 @@ const setupProxy = ({
|
|
|
56
64
|
target = process.env.REACT_APP_PROXY_HOST,
|
|
57
65
|
proxyLogger,
|
|
58
66
|
pathRewrite,
|
|
67
|
+
onlyTenant = false,
|
|
59
68
|
} = {}) => {
|
|
60
69
|
return {
|
|
61
70
|
target,
|
|
@@ -71,6 +80,7 @@ const setupProxy = ({
|
|
|
71
80
|
}
|
|
72
81
|
|
|
73
82
|
if (
|
|
83
|
+
!onlyTenant &&
|
|
74
84
|
process.env.REACT_APP_PROXY_SUBDOMAIN &&
|
|
75
85
|
!proxyRequest.path.endsWith('pack') &&
|
|
76
86
|
!proxyRequest.path.endsWith('favicon.ico')
|
|
@@ -112,6 +122,7 @@ const getProxyConfig = (
|
|
|
112
122
|
mainTarget = process.env.REACT_APP_PROXY_HOST,
|
|
113
123
|
loghubTarget = process.env.REACT_APP_LOGHUB_PROXY_HOST,
|
|
114
124
|
systemCoordinatorTarget = process.env.REACT_APP_SYS_COORDINATOR_PROXY_HOST,
|
|
125
|
+
integratorTarget = process.env.REACT_APP_INTEGRATOR_PROXY_HOST,
|
|
115
126
|
proxyLogger,
|
|
116
127
|
} = {},
|
|
117
128
|
) => {
|
|
@@ -160,6 +171,20 @@ const getProxyConfig = (
|
|
|
160
171
|
finalConfigs.push({ paths: ['/app/system-coordinator/**'], options });
|
|
161
172
|
}
|
|
162
173
|
|
|
174
|
+
if (integratorTarget) {
|
|
175
|
+
// If we're overriding the underlying Integrator host, bypass it in the main.
|
|
176
|
+
mainPaths.push('!/app/integrator/**');
|
|
177
|
+
const options = setupProxy({
|
|
178
|
+
target: integratorTarget,
|
|
179
|
+
proxyLogger,
|
|
180
|
+
pathRewrite: {
|
|
181
|
+
'^/app/integrator/': '/',
|
|
182
|
+
},
|
|
183
|
+
onlyTenant: true,
|
|
184
|
+
});
|
|
185
|
+
finalConfigs.push({ paths: ['/app/integrator/**'], options });
|
|
186
|
+
}
|
|
187
|
+
|
|
163
188
|
return finalConfigs.map(config => {
|
|
164
189
|
config.proxy = ({
|
|
165
190
|
paths = config.paths,
|