@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.
Files changed (100) hide show
  1. package/CHANGELOG.md +116 -86
  2. package/lib/apis/core/attributeDefinitions.js +9 -6
  3. package/lib/apis/core/integrations.js +61 -0
  4. package/lib/apis/core/submissions.js +52 -15
  5. package/lib/apis/http.js +16 -2
  6. package/lib/apis/index.js +24 -0
  7. package/lib/apis/integrator/index.js +262 -0
  8. package/lib/apis/system/index.js +64 -12
  9. package/lib/apis/task/index.js +9 -2
  10. package/lib/components/agent/filestore/FilestoreForm.js +1 -1
  11. package/lib/components/common/AttributeSelect.js +10 -2
  12. package/lib/components/common/BridgeSelect.js +2 -1
  13. package/lib/components/common/ConnectionSelect.js +72 -0
  14. package/lib/components/common/FormSelect.js +2 -1
  15. package/lib/components/common/StaticSelect.js +15 -6
  16. package/lib/components/common/TableInput.js +4 -1
  17. package/lib/components/common/TeamSelect.js +2 -1
  18. package/lib/components/common/ToastContainer.js +34 -10
  19. package/lib/components/common/Typeahead.js +59 -23
  20. package/lib/components/common/UserSelect.js +2 -1
  21. package/lib/components/common/authentication/RequestInterceptor.js +1 -1
  22. package/lib/components/core/attribute_definition/AttributeDefinitionForm.js +3 -0
  23. package/lib/components/core/bridge_model/BridgeModelTable.js +19 -0
  24. package/lib/components/core/bridge_model_attribute/BridgeModelAttributeForm.js +6 -9
  25. package/lib/components/core/bridge_model_attribute/BridgeModelAttributeTable.js +0 -4
  26. package/lib/components/core/bridge_model_qualification/BridgeModelQualificationForm.js +7 -10
  27. package/lib/components/core/bridge_model_qualification/BridgeModelQualificationTable.js +2 -15
  28. package/lib/components/core/category/CategoryForm.js +4 -1
  29. package/lib/components/core/category/CategoryTable.js +2 -2
  30. package/lib/components/core/core_form/CoreForm.js +18 -10
  31. package/lib/components/core/file_resource/FileResourceForm.js +2 -1
  32. package/lib/components/core/file_resource/FileResourceTable.js +14 -7
  33. package/lib/components/core/form/FormForm.js +42 -19
  34. package/lib/components/core/form/FormTable.js +14 -14
  35. package/lib/components/core/form_type/FormTypeForm.js +3 -0
  36. package/lib/components/core/i18n/Moment.js +1 -0
  37. package/lib/components/core/integration/IntegrationForm.js +232 -0
  38. package/lib/components/core/integration/IntegrationTable.js +139 -0
  39. package/lib/components/core/kapp/KappForm.js +56 -67
  40. package/lib/components/core/kapp/KappTable.js +3 -3
  41. package/lib/components/core/log/LogTable.js +1 -1
  42. package/lib/components/core/security_definition/SecurityDefinitionForm.js +48 -10
  43. package/lib/components/core/space/SpaceForm.js +97 -111
  44. package/lib/components/core/submission/DatastoreSubmissionTable.js +4 -4
  45. package/lib/components/core/submission/FormSubmissionTable.js +12 -7
  46. package/lib/components/core/submission/KappSubmissionTable.js +4 -4
  47. package/lib/components/core/submission/SubmissionForm.js +3 -1
  48. package/lib/components/core/team/TeamTable.js +17 -7
  49. package/lib/components/core/user/UserTable.js +18 -18
  50. package/lib/components/core/webapi/WebApiForm.js +5 -2
  51. package/lib/components/core/webapi/WebApiTable.js +2 -2
  52. package/lib/components/core/webhook/WebhookForm.js +43 -33
  53. package/lib/components/core/webhook/WebhookTable.js +16 -16
  54. package/lib/components/core/webhook_job/WebhookJobTable.js +17 -6
  55. package/lib/components/form/Form.helpers.js +10 -4
  56. package/lib/components/form/Form.js +250 -168
  57. package/lib/components/form/Form.models.js +6 -1
  58. package/lib/components/form/FormState.js +9 -5
  59. package/lib/components/form/defaults/CodeField.js +44 -1
  60. package/lib/components/index.js +84 -3
  61. package/lib/components/integrator/connection/ConnectionForm.js +112 -0
  62. package/lib/components/integrator/connection/ConnectionTable.js +80 -0
  63. package/lib/components/integrator/connection/config_fields/http.js +570 -0
  64. package/lib/components/integrator/integrationTypes.js +98 -0
  65. package/lib/components/integrator/operation/OperationForm.js +128 -0
  66. package/lib/components/integrator/operation/OperationTable.js +64 -0
  67. package/lib/components/integrator/operation/config_fields/http.js +184 -0
  68. package/lib/components/system/SystemSecurityForm.js +1 -1
  69. package/lib/components/system/SystemTaskAdapterForm.js +9 -9
  70. package/lib/components/system/helpers.js +123 -100
  71. package/lib/components/system/spaces/SystemSpaceForm.js +9 -37
  72. package/lib/components/system/spaces/SystemTenantForm.js +276 -104
  73. package/lib/components/system/spaces/SystemTenantMigrateForm.js +449 -0
  74. package/lib/components/system/spaces/SystemTenantTable.js +20 -16
  75. package/lib/components/table/Table.redux.js +1 -1
  76. package/lib/components/task/builder/ConnectorForm.js +11 -7
  77. package/lib/components/task/builder/Node.js +11 -2
  78. package/lib/components/task/builder/NodeForm.js +93 -22
  79. package/lib/components/task/builder/NodeParametersForm.js +29 -17
  80. package/lib/components/task/builder/TaskDefinitionConfigForm.js +18 -50
  81. package/lib/components/task/builder/TreeBuilder.js +32 -5
  82. package/lib/components/task/builder/builder.redux.js +399 -205
  83. package/lib/components/task/builder/constants.js +10 -2
  84. package/lib/components/task/builder/helpers.js +199 -79
  85. package/lib/components/task/builder/models.js +11 -9
  86. package/lib/components/task/category/TaskCategoryTable.js +3 -3
  87. package/lib/components/task/common/UsageTable.js +1 -1
  88. package/lib/components/task/handlers/HandlerTable.js +35 -19
  89. package/lib/components/task/policy_rule/PolicyRuleTable.js +3 -3
  90. package/lib/components/task/runs/CreateManualTriggerForm.js +2 -0
  91. package/lib/components/task/runs/RunTable.js +4 -4
  92. package/lib/components/task/runs/RunTaskTable.js +1 -1
  93. package/lib/components/task/sources/SourceTable.js +2 -2
  94. package/lib/components/task/triggers/TriggerTable.js +2 -2
  95. package/lib/components/task/workflows/LinkedWorkflowTable.js +2 -2
  96. package/lib/components/task/workflows/WorkflowForm.js +29 -9
  97. package/lib/components/task/workflows/WorkflowTable.js +2 -2
  98. package/lib/helpers/index.js +289 -72
  99. package/package.json +5 -3
  100. package/proxyhelper.js +28 -3
@@ -11,7 +11,7 @@ var _immutable = require("immutable");
11
11
  var _Form = require("../../form/Form");
12
12
  var _apis = require("../../../apis");
13
13
  var _helpers = require("../../../helpers");
14
- var DISPLAY_TYPES = ['Display Page', 'Redirect'];
14
+ var DISPLAY_TYPES = ['Redirect'];
15
15
  var SPACE_INCLUDES = 'details,spaceAttributeDefinitions';
16
16
  var KAPP_INCLUDES = 'attributesMap,securityPolicies,details,fields.details,formAttributeDefinitions';
17
17
  var dataSources = function dataSources(_ref) {
@@ -124,37 +124,25 @@ var fields = function fields(_ref4) {
124
124
  label: 'After Logout Path',
125
125
  type: 'text',
126
126
  initialValue: (0, _immutable.get)(kapp, 'afterLogoutPath'),
127
- visible: function visible(_ref6) {
128
- var space = _ref6.space;
129
- return (0, _immutable.get)(space, 'displayType') !== 'Single Page App';
130
- }
127
+ visible: false
131
128
  }, {
132
129
  name: 'bundlePath',
133
130
  label: 'Bundle Path',
134
131
  type: 'text',
135
132
  initialValue: (0, _immutable.get)(kapp, 'bundlePath'),
136
- visible: function visible(_ref7) {
137
- var space = _ref7.space;
138
- return (0, _immutable.get)(space, 'displayType') !== 'Single Page App';
139
- }
133
+ visible: false
140
134
  }, {
141
135
  name: 'defaultFormConfirmationPage',
142
136
  label: 'Form Confirmation Page',
143
137
  type: 'text',
144
138
  initialValue: (0, _immutable.get)(kapp, 'defaultFormConfirmationPage'),
145
- visible: function visible(_ref8) {
146
- var space = _ref8.space;
147
- return (0, _immutable.get)(space, 'displayType') !== 'Single Page App';
148
- }
139
+ visible: false
149
140
  }, {
150
141
  name: 'defaultFormDisplayPage',
151
142
  label: 'Form Display Page',
152
143
  type: 'text',
153
144
  initialValue: (0, _immutable.get)(kapp, 'defaultFormDisplayPage'),
154
- visible: function visible(_ref9) {
155
- var space = _ref9.space;
156
- return (0, _immutable.get)(space, 'displayType') !== 'Single Page App';
157
- }
145
+ visible: false
158
146
  }, {
159
147
  name: 'defaultSubmissionLabelExpression',
160
148
  label: 'Submission Label',
@@ -164,14 +152,26 @@ var fields = function fields(_ref4) {
164
152
  helpText:
165
153
  // eslint-disable-next-line no-template-curly-in-string
166
154
  "Default label for form submissions. Click the </> button to see available values derived from each submission. Example: ${form('name')}",
167
- options: function options(_ref10) {
168
- var space = _ref10.space,
169
- kapp = _ref10.kapp,
170
- attributeDefinitions = _ref10.attributeDefinitions;
171
- return (0, _helpers.buildBindings)({
172
- space: space,
173
- kapp: kapp && kapp.set('kappAttributeDefinitions', attributeDefinitions),
174
- scope: 'Submission'
155
+ options: function options(_ref6) {
156
+ var space = _ref6.space,
157
+ kapp = _ref6.kapp,
158
+ attributeDefinitions = _ref6.attributeDefinitions;
159
+ return (0, _helpers.buildCodeEditorBindings)({
160
+ space: {
161
+ attributeDefinitions: space === null || space === void 0 ? void 0 : space.get('spaceAttributeDefinitions')
162
+ },
163
+ kapp: {
164
+ attributeDefinitions: attributeDefinitions
165
+ },
166
+ form: {
167
+ attributeDefinitions: kapp === null || kapp === void 0 ? void 0 : kapp.get('formAttributeDefinitions')
168
+ },
169
+ submission: {
170
+ detailed: true
171
+ },
172
+ values: (kapp === null || kapp === void 0 ? void 0 : kapp.get('fields').size) > 0 && {
173
+ data: kapp.get('fields')
174
+ }
175
175
  });
176
176
  }
177
177
  }, {
@@ -184,38 +184,29 @@ var fields = function fields(_ref4) {
184
184
  label: displayType
185
185
  };
186
186
  }),
187
- enabled: function enabled(_ref11) {
188
- var space = _ref11.space;
189
- return (0, _immutable.get)(space, 'displayType') !== 'Single Page App';
190
- },
191
- initialValue: (0, _immutable.get)(kapp, 'displayType') || 'Display Page',
187
+ visible: false,
188
+ initialValue: (0, _immutable.get)(kapp, 'displayType'),
192
189
  helpText: 'Determines how the application works. Set in Space Settings.'
193
190
  }, {
194
191
  name: 'displayValue',
195
- label: function label(_ref12) {
196
- var values = _ref12.values;
197
- return values.get('displayType') === 'Redirect' ? 'Redirect URL' : 'Kapp Display Page';
192
+ label: function label(_ref7) {
193
+ var values = _ref7.values;
194
+ return values.get('displayType') === 'Redirect' ? 'Redirect URL' : 'Display Value';
198
195
  },
199
196
  type: 'text',
200
197
  initialValue: (0, _immutable.get)(kapp, 'displayValue'),
201
- required: function required(_ref13) {
202
- var values = _ref13.values;
198
+ required: function required(_ref8) {
199
+ var values = _ref8.values;
203
200
  return values.get('displayType') === 'Redirect';
204
201
  },
205
202
  requiredMessage: "This field is required, when display type is 'Redirect'",
206
- visible: function visible(_ref14) {
207
- var space = _ref14.space;
208
- return (0, _immutable.get)(space, 'displayType') !== 'Single Page App';
209
- }
203
+ visible: false
210
204
  }, {
211
205
  name: 'loginPage',
212
206
  label: 'Login Page',
213
207
  type: 'text',
214
208
  initialValue: (0, _immutable.get)(kapp, 'loginPage'),
215
- visible: function visible(_ref15) {
216
- var space = _ref15.space;
217
- return (0, _immutable.get)(space, 'displayType') !== 'Single Page App';
218
- }
209
+ visible: false
219
210
  }, {
220
211
  name: 'name',
221
212
  label: 'Kapp Name',
@@ -223,9 +214,9 @@ var fields = function fields(_ref4) {
223
214
  required: true,
224
215
  initialValue: (0, _immutable.get)(kapp, 'name'),
225
216
  helpText: 'User friendly name for the Kapp, used throughout the system.',
226
- onChange: function onChange(_ref16, _ref17) {
227
- var values = _ref16.values;
228
- var setValue = _ref17.setValue;
217
+ onChange: function onChange(_ref9, _ref10) {
218
+ var values = _ref9.values;
219
+ var setValue = _ref10.setValue;
229
220
  if (values.get('linked')) {
230
221
  setValue('slug', (0, _helpers.slugify)(values.get('name')), false);
231
222
  }
@@ -235,10 +226,7 @@ var fields = function fields(_ref4) {
235
226
  label: 'Reset Password Page',
236
227
  type: 'text',
237
228
  initialValue: (0, _immutable.get)(kapp, 'resetPasswordPage'),
238
- visible: function visible(_ref18) {
239
- var space = _ref18.space;
240
- return (0, _immutable.get)(space, 'displayType') !== 'Single Page App';
241
- }
229
+ visible: false
242
230
  }, {
243
231
  name: 'slug',
244
232
  label: 'Slug',
@@ -246,8 +234,8 @@ var fields = function fields(_ref4) {
246
234
  required: true,
247
235
  initialValue: (0, _immutable.get)(kapp, 'slug'),
248
236
  helpText: 'Unique name used in the Kapp path.',
249
- onChange: function onChange(_bindings, _ref19) {
250
- var setValue = _ref19.setValue;
237
+ onChange: function onChange(_bindings, _ref11) {
238
+ var setValue = _ref11.setValue;
251
239
  setValue('linked', false);
252
240
  }
253
241
  }, {
@@ -257,22 +245,23 @@ var fields = function fields(_ref4) {
257
245
  "transient": true,
258
246
  initialValue: kapp ? false : true,
259
247
  visible: false
260
- }].concat((0, _toConsumableArray2["default"])(kappSlug ? Object.entries(securityEndpoints).map(function (_ref20) {
261
- var _ref21 = (0, _slicedToArray2["default"])(_ref20, 2),
262
- endpointFieldName = _ref21[0],
263
- endpoint = _ref21[1];
248
+ }].concat((0, _toConsumableArray2["default"])(kappSlug ? Object.entries(securityEndpoints).map(function (_ref12) {
249
+ var _ref13 = (0, _slicedToArray2["default"])(_ref12, 2),
250
+ endpointFieldName = _ref13[0],
251
+ endpoint = _ref13[1];
264
252
  return {
265
253
  name: endpointFieldName,
266
254
  label: endpoint.label,
267
255
  type: 'select',
268
- options: function options(_ref22) {
269
- var securityPolicyDefinitions = _ref22.securityPolicyDefinitions;
256
+ options: function options(_ref14) {
257
+ var securityPolicyDefinitions = _ref14.securityPolicyDefinitions;
270
258
  return securityPolicyDefinitions ? securityPolicyDefinitions.filter(function (definition) {
271
259
  return endpoint.types.includes(definition.get('type'));
272
260
  }).map(function (definition) {
273
261
  return (0, _immutable.Map)({
274
262
  value: definition.get('name'),
275
- label: definition.get('name')
263
+ label: definition.get('name'),
264
+ type: definition.get('type')
276
265
  });
277
266
  }) : [];
278
267
  },
@@ -286,12 +275,12 @@ var fields = function fields(_ref4) {
286
275
  label: 'Security Policies',
287
276
  type: null,
288
277
  visible: false,
289
- serialize: function serialize(_ref23) {
290
- var values = _ref23.values;
291
- return Object.entries(securityEndpoints).map(function (_ref24) {
292
- var _ref25 = (0, _slicedToArray2["default"])(_ref24, 2),
293
- endpointFieldName = _ref25[0],
294
- policy = _ref25[1];
278
+ serialize: function serialize(_ref15) {
279
+ var values = _ref15.values;
280
+ return Object.entries(securityEndpoints).map(function (_ref16) {
281
+ var _ref17 = (0, _slicedToArray2["default"])(_ref16, 2),
282
+ endpointFieldName = _ref17[0],
283
+ policy = _ref17[1];
295
284
  return {
296
285
  endpoint: policy.endpoint,
297
286
  name: values.get(endpointFieldName)
@@ -306,8 +295,8 @@ var fields = function fields(_ref4) {
306
295
  label: 'Attributes',
307
296
  type: 'attributes',
308
297
  required: false,
309
- options: function options(_ref26) {
310
- var attributeDefinitions = _ref26.attributeDefinitions;
298
+ options: function options(_ref18) {
299
+ var attributeDefinitions = _ref18.attributeDefinitions;
311
300
  return attributeDefinitions;
312
301
  },
313
302
  initialValue: (0, _immutable.get)(kapp, 'attributesMap')
@@ -54,8 +54,8 @@ var columns = [{
54
54
  sortable: true,
55
55
  toggleable: true
56
56
  }, {
57
- value: 'CreatedAt',
58
- title: 'Created',
57
+ value: 'createdAt',
58
+ title: 'Created At',
59
59
  sortable: true,
60
60
  toggleable: true
61
61
  }, {
@@ -64,7 +64,7 @@ var columns = [{
64
64
  toggleable: true
65
65
  }, {
66
66
  value: 'updatedAt',
67
- title: 'Updated',
67
+ title: 'Updated At',
68
68
  sortable: true,
69
69
  toggleable: true
70
70
  }, {
@@ -63,7 +63,7 @@ var dataSource = function dataSource() {
63
63
  }
64
64
  };
65
65
  };
66
- var APP_COMPONENT_OPTIONS = ['agent', 'core', 'loghub', 'task'].map(function (component) {
66
+ var APP_COMPONENT_OPTIONS = ['agent', 'core', 'integrator', 'loghub', 'task'].map(function (component) {
67
67
  return {
68
68
  label: component,
69
69
  value: component
@@ -8,9 +8,20 @@ var _Form = require("../../form/Form");
8
8
  var _apis = require("../../../apis");
9
9
  var _helpers = require("../../../helpers");
10
10
  var SPACE_SECURITY_DEFINITION_TYPES = exports.SPACE_SECURITY_DEFINITION_TYPES = ['Space', 'File Resource', 'Team', 'User'];
11
+ var SPACE_SECURITY_DEFINITION_TYPES_MAP = {
12
+ Space: ['Space'],
13
+ 'File Resource': ['Space', 'File Resource'],
14
+ Team: ['Space', 'Team'],
15
+ User: ['Space', 'User']
16
+ };
11
17
  var KAPP_SECURITY_DEFINITION_TYPES = exports.KAPP_SECURITY_DEFINITION_TYPES = ['Kapp', 'Form', 'Submission'];
12
- var SPACE_INCLUDES = 'datastoreFormAttributeDefinitions,spaceAttributeDefinitions,teamAttributeDefinitions,userAttributeDefinitions,userProfileAttributeDefinitions';
13
- var KAPP_INCLUDES = 'formAttributeDefinitions,kappAttributeDefinitions,fields';
18
+ var KAPP_SECURITY_DEFINITION_TYPES_MAP = {
19
+ Kapp: ['Kapp'],
20
+ Form: ['Kapp', 'Form'],
21
+ Submission: ['Kapp', 'Form', 'Submission']
22
+ };
23
+ var SPACE_INCLUDES = 'spaceAttributeDefinitions,teamAttributeDefinitions,userAttributeDefinitions,userProfileAttributeDefinitions';
24
+ var KAPP_INCLUDES = 'formAttributeDefinitions,kappAttributeDefinitions,fields.details';
14
25
  var PROFILE_INCLUDES = 'attributesMap,profileAttributesMap';
15
26
  var dataSources = function dataSources(_ref) {
16
27
  var securityPolicyName = _ref.securityPolicyName,
@@ -43,6 +54,9 @@ var dataSources = function dataSources(_ref) {
43
54
  }],
44
55
  transform: function transform(result) {
45
56
  return result.securityPolicyDefinition;
57
+ },
58
+ errorTransform: function errorTransform(result) {
59
+ return result.error;
46
60
  }
47
61
  },
48
62
  profile: {
@@ -76,6 +90,7 @@ var handleSubmit = function handleSubmit(_ref2) {
76
90
  };
77
91
  var fields = function fields(_ref4) {
78
92
  var securityPolicyName = _ref4.securityPolicyName,
93
+ securityPolicyType = _ref4.securityPolicyType,
79
94
  kappSlug = _ref4.kappSlug;
80
95
  return function (_ref5) {
81
96
  var securityPolicy = _ref5.securityPolicy;
@@ -91,7 +106,7 @@ var fields = function fields(_ref4) {
91
106
  label: 'Type',
92
107
  type: 'select',
93
108
  required: true,
94
- options: (kappSlug ? KAPP_SECURITY_DEFINITION_TYPES : SPACE_SECURITY_DEFINITION_TYPES).map(function (ele) {
109
+ options: (kappSlug ? securityPolicyType && KAPP_SECURITY_DEFINITION_TYPES.includes(securityPolicyType) ? KAPP_SECURITY_DEFINITION_TYPES_MAP[securityPolicyType] : KAPP_SECURITY_DEFINITION_TYPES : securityPolicyType && SPACE_SECURITY_DEFINITION_TYPES.includes(securityPolicyType) ? SPACE_SECURITY_DEFINITION_TYPES_MAP[securityPolicyType] : SPACE_SECURITY_DEFINITION_TYPES).map(function (ele) {
95
110
  return {
96
111
  value: ele,
97
112
  label: ele
@@ -110,18 +125,41 @@ var fields = function fields(_ref4) {
110
125
  name: 'rule',
111
126
  label: 'Rule',
112
127
  type: 'code',
113
- language: 'js',
128
+ language: 'js-expression',
114
129
  required: true,
115
130
  options: function options(_ref6) {
116
131
  var space = _ref6.space,
117
132
  kapp = _ref6.kapp,
118
133
  values = _ref6.values,
119
134
  profile = _ref6.profile;
120
- return (0, _helpers.buildBindings)({
121
- space: space,
122
- kapp: kapp,
123
- scope: values.get('type'),
124
- profile: profile
135
+ return (0, _helpers.buildCodeEditorBindings)({
136
+ identity: profile && {
137
+ attributeDefinitions: space === null || space === void 0 ? void 0 : space.get('userAttributeDefinitions'),
138
+ profileAttributeDefinitions: space === null || space === void 0 ? void 0 : space.get('userProfileAttributeDefinitions')
139
+ },
140
+ space: {
141
+ attributeDefinitions: space === null || space === void 0 ? void 0 : space.get('spaceAttributeDefinitions')
142
+ },
143
+ file: values.get('type') === 'File Resource' && {},
144
+ user: values.get('type') === 'User' && {
145
+ attributeDefinitions: space === null || space === void 0 ? void 0 : space.get('userAttributeDefinitions'),
146
+ profileAttributeDefinitions: space === null || space === void 0 ? void 0 : space.get('userProfileAttributeDefinitions')
147
+ },
148
+ team: values.get('type') === 'Team' && {
149
+ attributeDefinitions: space === null || space === void 0 ? void 0 : space.get('teamAttributeDefinitions')
150
+ },
151
+ kapp: ['Kapp', 'Form', 'Submission'].includes(values.get('type')) && {
152
+ attributeDefinitions: kapp === null || kapp === void 0 ? void 0 : kapp.get('kappAttributeDefinitions')
153
+ },
154
+ form: ['Form', 'Submission'].includes(values.get('type')) && {
155
+ attributeDefinitions: kapp === null || kapp === void 0 ? void 0 : kapp.get('formAttributeDefinitions')
156
+ },
157
+ submission: values.get('type') === 'Submission' && {
158
+ detailed: true
159
+ },
160
+ values: values.get('type') === 'Submission' && (kapp === null || kapp === void 0 ? void 0 : kapp.get('fields').size) > 0 && {
161
+ data: kapp.get('fields')
162
+ }
125
163
  });
126
164
  },
127
165
  initialValue: securityPolicy ? securityPolicy.get('rule') : '',
@@ -130,7 +168,7 @@ var fields = function fields(_ref4) {
130
168
  };
131
169
  };
132
170
  var SecurityDefinitionForm = exports.SecurityDefinitionForm = (0, _Form.generateForm)({
133
- formOptions: ['kappSlug', 'securityPolicyName'],
171
+ formOptions: ['kappSlug', 'securityPolicyName', 'securityPolicyType'],
134
172
  dataSources: dataSources,
135
173
  fields: fields,
136
174
  handleSubmit: handleSubmit