@kineticdata/react 6.0.5 → 6.1.1

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 (151) hide show
  1. package/README.md +110 -110
  2. package/assets/task/icons/defer.svg +12 -12
  3. package/assets/task/icons/drag-handle.svg +3 -3
  4. package/assets/task/icons/filter.svg +11 -11
  5. package/assets/task/icons/loop.svg +10 -10
  6. package/assets/task/icons/plus_small.svg +5 -5
  7. package/assets/task/icons/routine.svg +9 -9
  8. package/assets/task/icons/scale-minus.svg +11 -11
  9. package/assets/task/icons/scale-plus.svg +13 -13
  10. package/assets/task/icons/start.svg +11 -11
  11. package/assets/task/icons/stop.svg +8 -8
  12. package/lib/apis/core/activity.js +4 -4
  13. package/lib/apis/core/attributeDefinitions.js +64 -6
  14. package/lib/apis/core/attributeDefinitions.test.js +7 -4
  15. package/lib/apis/core/authentication.js +12 -1
  16. package/lib/apis/core/bridgeModels.test.js +46 -23
  17. package/lib/apis/core/bridgedresources.js +41 -41
  18. package/lib/apis/core/fileResources.js +2 -6
  19. package/lib/apis/core/forms.js +51 -2
  20. package/lib/apis/core/forms.test.js +32 -19
  21. package/lib/apis/core/integrations.js +61 -0
  22. package/lib/apis/core/kapps.js +49 -0
  23. package/lib/apis/core/kapps.test.js +16 -10
  24. package/lib/apis/core/notices.js +7 -0
  25. package/lib/apis/core/securityPolicyDefinitions.test.js +7 -4
  26. package/lib/apis/core/space.js +18 -0
  27. package/lib/apis/core/space.test.js +16 -10
  28. package/lib/apis/core/submissionActivities.js +38 -0
  29. package/lib/apis/core/submissions.js +114 -15
  30. package/lib/apis/core/translations.test.js +126 -55
  31. package/lib/apis/core/userPreferences.js +59 -0
  32. package/lib/apis/core/webApis.js +32 -2
  33. package/lib/apis/core/webhooks.test.js +7 -4
  34. package/lib/apis/http.js +30 -5
  35. package/lib/apis/index.js +48 -0
  36. package/lib/apis/integrator/index.js +337 -0
  37. package/lib/apis/system/index.js +64 -12
  38. package/lib/apis/task/index.js +9 -2
  39. package/lib/components/agent/filestore/FilestoreForm.js +1 -1
  40. package/lib/components/common/AttributeSelect.js +11 -2
  41. package/lib/components/common/BridgeSelect.js +3 -1
  42. package/lib/components/common/ConnectionSelect.js +73 -0
  43. package/lib/components/common/FormSelect.js +3 -1
  44. package/lib/components/common/NodeSelect.js +1 -0
  45. package/lib/components/common/StaticSelect.js +16 -6
  46. package/lib/components/common/TableInput.js +4 -1
  47. package/lib/components/common/TeamSelect.js +3 -1
  48. package/lib/components/common/ToastContainer.js +34 -10
  49. package/lib/components/common/Typeahead.js +62 -23
  50. package/lib/components/common/UserSelect.js +3 -1
  51. package/lib/components/common/authentication/AuthenticationContainer.js +121 -55
  52. package/lib/components/common/authentication/RequestInterceptor.js +1 -1
  53. package/lib/components/common/preferences/PreferencesProvider.js +461 -0
  54. package/lib/components/core/attribute_definition/AttributeDefinitionForm.js +10 -7
  55. package/lib/components/core/bridge_model/BridgeModelTable.js +19 -0
  56. package/lib/components/core/bridge_model_attribute/BridgeModelAttributeForm.js +6 -9
  57. package/lib/components/core/bridge_model_attribute/BridgeModelAttributeTable.js +0 -4
  58. package/lib/components/core/bridge_model_qualification/BridgeModelQualificationForm.js +7 -10
  59. package/lib/components/core/bridge_model_qualification/BridgeModelQualificationTable.js +2 -15
  60. package/lib/components/core/category/CategoryForm.js +4 -1
  61. package/lib/components/core/category/CategoryTable.js +2 -2
  62. package/lib/components/core/core_form/CoreForm.js +18 -10
  63. package/lib/components/core/field_definition/FieldDefinitionForm.js +3 -3
  64. package/lib/components/core/file_resource/FileResourceForm.js +2 -1
  65. package/lib/components/core/file_resource/FileResourceTable.js +14 -7
  66. package/lib/components/core/form/FormForm.js +42 -19
  67. package/lib/components/core/form/FormTable.js +13 -14
  68. package/lib/components/core/form_type/FormTypeForm.js +3 -0
  69. package/lib/components/core/i18n/Moment.js +1 -0
  70. package/lib/components/core/integration/IntegrationForm.js +232 -0
  71. package/lib/components/core/integration/IntegrationTable.js +142 -0
  72. package/lib/components/core/kapp/KappForm.js +18 -5
  73. package/lib/components/core/kapp/KappTable.js +3 -3
  74. package/lib/components/core/log/LogTable.js +1 -1
  75. package/lib/components/core/security_definition/SecurityDefinitionForm.js +48 -10
  76. package/lib/components/core/space/SpaceForm.js +17 -36
  77. package/lib/components/core/submission/DatastoreSubmissionTable.js +4 -4
  78. package/lib/components/core/submission/FormSubmissionTable.js +12 -7
  79. package/lib/components/core/submission/KappSubmissionTable.js +4 -4
  80. package/lib/components/core/submission/SubmissionActivityForm.js +79 -0
  81. package/lib/components/core/submission/SubmissionForm.js +15 -3
  82. package/lib/components/core/team/TeamTable.js +17 -7
  83. package/lib/components/core/translation/EntryTable.js +8 -7
  84. package/lib/components/core/user/UserForm.js +2 -0
  85. package/lib/components/core/user/UserTable.js +22 -22
  86. package/lib/components/core/webapi/WebApiForm.js +5 -2
  87. package/lib/components/core/webapi/WebApiTable.js +2 -2
  88. package/lib/components/core/webhook/WebhookForm.js +43 -33
  89. package/lib/components/core/webhook/WebhookTable.js +16 -16
  90. package/lib/components/core/webhook_job/WebhookJobTable.js +17 -6
  91. package/lib/components/form/Form.helpers.js +10 -4
  92. package/lib/components/form/Form.js +264 -171
  93. package/lib/components/form/Form.models.js +6 -1
  94. package/lib/components/form/FormState.js +9 -5
  95. package/lib/components/form/SimpleForm.js +2 -2
  96. package/lib/components/form/defaults/CodeField.js +44 -1
  97. package/lib/components/index.js +152 -3
  98. package/lib/components/integrator/connection/ConnectionForm.js +156 -0
  99. package/lib/components/integrator/connection/ConnectionTable.js +82 -0
  100. package/lib/components/integrator/connection/config_fields/http.js +570 -0
  101. package/lib/components/integrator/connection/config_fields/sql.js +123 -0
  102. package/lib/components/integrator/integrationTypes.js +120 -0
  103. package/lib/components/integrator/operation/OperationForm.js +148 -0
  104. package/lib/components/integrator/operation/OperationTable.js +62 -0
  105. package/lib/components/integrator/operation/config_fields/http.js +185 -0
  106. package/lib/components/integrator/operation/config_fields/sql.js +81 -0
  107. package/lib/components/system/SystemSecurityForm.js +1 -1
  108. package/lib/components/system/SystemTaskAdapterForm.js +9 -9
  109. package/lib/components/system/SystemUserForm.js +2 -0
  110. package/lib/components/system/helpers.js +123 -100
  111. package/lib/components/system/spaces/SystemSpaceForm.js +9 -37
  112. package/lib/components/system/spaces/SystemTenantForm.js +276 -104
  113. package/lib/components/system/spaces/SystemTenantMigrateForm.js +449 -0
  114. package/lib/components/system/spaces/SystemTenantTable.js +20 -16
  115. package/lib/components/table/Table.js +75 -15
  116. package/lib/components/table/Table.redux.js +297 -73
  117. package/lib/components/table/defaults/FilterControl.js +24 -0
  118. package/lib/components/table/defaults/index.js +2 -0
  119. package/lib/components/table/tests/Table.test.js +22 -22
  120. package/lib/components/table/tests/components.js +9 -2
  121. package/lib/components/task/builder/Connector.js +51 -41
  122. package/lib/components/task/builder/ConnectorForm.js +11 -7
  123. package/lib/components/task/builder/Node.js +31 -35
  124. package/lib/components/task/builder/NodeForm.js +93 -22
  125. package/lib/components/task/builder/NodeParametersForm.js +29 -17
  126. package/lib/components/task/builder/SvgCanvas.js +3 -17
  127. package/lib/components/task/builder/TaskDefinitionConfigForm.js +18 -50
  128. package/lib/components/task/builder/TreeBuilder.js +23 -3
  129. package/lib/components/task/builder/builder.redux.js +342 -197
  130. package/lib/components/task/builder/constants.js +10 -2
  131. package/lib/components/task/builder/helpers.js +231 -81
  132. package/lib/components/task/builder/models.js +7 -6
  133. package/lib/components/task/category/TaskCategoryTable.js +3 -3
  134. package/lib/components/task/common/UsageTable.js +9 -2
  135. package/lib/components/task/handlers/HandlerTable.js +44 -37
  136. package/lib/components/task/policy_rule/PolicyRuleTable.js +3 -3
  137. package/lib/components/task/runs/CreateManualTriggerForm.js +2 -0
  138. package/lib/components/task/runs/RunTable.js +10 -14
  139. package/lib/components/task/runs/RunTaskTable.js +1 -1
  140. package/lib/components/task/sources/SourceTable.js +2 -2
  141. package/lib/components/task/triggers/TriggerTable.js +2 -2
  142. package/lib/components/task/workflows/LinkedWorkflowTable.js +16 -11
  143. package/lib/components/task/workflows/WorkflowForm.js +27 -8
  144. package/lib/components/task/workflows/WorkflowTable.js +27 -26
  145. package/lib/helpers/index.js +307 -74
  146. package/lib/index.js +2 -1
  147. package/lib/saga.js +4 -4
  148. package/lib/store.js +2 -1
  149. package/package.json +7 -6
  150. package/proxyhelper.js +201 -176
  151. package/CHANGELOG.md +0 -94
package/README.md CHANGED
@@ -1,110 +1,110 @@
1
- # @kineticdata/react
2
-
3
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
4
- [![NPM Version](https://img.shields.io/npm/v/@kineticdata/react/latest.svg)](https://opensource.org/licenses/MIT)
5
-
6
-
7
- A reactJS library that makes it super simple to interact with the [Kinetic Platform](https://kineticdata.com/platform/) within your sites and applications.
8
-
9
- ## [Docs](https://kineticdata.github.io/react-kinetic-lib)
10
- Embedded in the React component library is an interactive styleguide and
11
- documentation system that allows you to see the components and manipulate them.
12
-
13
- ### Run and View Docs Locally
14
- To use this styleguide simply run `yarn start` and connect to `http://localhost:8000`.
15
-
16
- ## Install
17
- Via [npm](https://npmjs.com/package/@kineticdata/react)
18
-
19
- ```bash
20
- npm install @kineticdata/react
21
- ```
22
-
23
- Via [Yarn](http://yarn.fyi/@kineticdata/react)
24
-
25
- ```bash
26
- yarn add @kineticdata/react
27
- ```
28
-
29
- ## Quick Start
30
- ### `KineticLib`
31
- The `KineticLib` Provider provides a global context to your site or applications connection to the Kinetic Platform.
32
-
33
- ```js static
34
- import React from 'react';
35
- import { KineticLib } from '@kineticdata/react';
36
- import { Router, Route, Switch } from 'react-router-dom';
37
- import Space from './Space';
38
- import Kapp from './Kapp'; // @see the Kapp component defined in `Kapp` example below
39
-
40
- export const clientId =
41
- process.env.NODE_ENV === 'development'
42
- ? 'kinetic-bundle-dev'
43
- : 'kinetic-bundle';
44
-
45
- const App = () => (
46
- <KineticLib clientId={clientId}>
47
- {({ loggedIn, loggingIn, loginProps }) => (
48
- <Router>
49
- {loggingIn ? (
50
- <LoginLoading />
51
- ) : !loggedIn ? (
52
- <LoginScreen {...loginProps} />
53
- ) : (
54
- <Switch>
55
- <Route path="/" component={Space} />
56
- <Route path="/kapps/:kappSlug" component={Kapp} />
57
- </Switch>
58
- )}
59
- </Router>
60
- )}
61
- </KineticLib>
62
- );
63
-
64
- export default App;
65
- ```
66
-
67
- ### API's
68
- All Service API's are exposed as functions to perform CRUD operations within the platform.
69
-
70
- ```js static
71
- import React from 'react';
72
- import { fetchKapp } from '@kineticdata/react';
73
-
74
- class Kapp extends React.Component {
75
- constructor(props) {
76
- super(props);
77
- this.state = { kapp: {} };
78
- }
79
-
80
- componentDidMount() {
81
- const { kapp } = fetchKapp(this.props.kappSlug, {
82
- include: 'details,forms',
83
- });
84
- this.setState({ kapp });
85
- }
86
-
87
- render() {
88
- const { kapp } = this.state;
89
- return (
90
- <div>
91
- <h1>{kapp.slug}</h1>
92
- <ul>
93
- {kapp.forms.map(form => (
94
- <li>{form.name}</li>
95
- ))}
96
- </ul>
97
- </div>
98
- );
99
- }
100
- }
101
-
102
- export default Kapp;
103
- ```
104
-
105
- ## Development / Contributing
106
-
107
- See the [Contributing](/#/Contributing) page for information on developing the component library.
108
-
109
- ## License
110
- MIT © [Kinetic Data](https://kineticdata.com)
1
+ # @kineticdata/react
2
+
3
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
4
+ [![NPM Version](https://img.shields.io/npm/v/@kineticdata/react/latest.svg)](https://opensource.org/licenses/MIT)
5
+
6
+
7
+ A reactJS library that makes it super simple to interact with the [Kinetic Platform](https://kineticdata.com/platform/) within your sites and applications.
8
+
9
+ ## [Docs](https://kineticdata.github.io/react-kinetic-lib)
10
+ Embedded in the React component library is an interactive styleguide and
11
+ documentation system that allows you to see the components and manipulate them.
12
+
13
+ ### Run and View Docs Locally
14
+ To use this styleguide simply run `yarn start` and connect to `http://localhost:8000`.
15
+
16
+ ## Install
17
+ Via [npm](https://npmjs.com/package/@kineticdata/react)
18
+
19
+ ```bash
20
+ npm install @kineticdata/react
21
+ ```
22
+
23
+ Via [Yarn](http://yarn.fyi/@kineticdata/react)
24
+
25
+ ```bash
26
+ yarn add @kineticdata/react
27
+ ```
28
+
29
+ ## Quick Start
30
+ ### `KineticLib`
31
+ The `KineticLib` Provider provides a global context to your site or applications connection to the Kinetic Platform.
32
+
33
+ ```js static
34
+ import React from 'react';
35
+ import { KineticLib } from '@kineticdata/react';
36
+ import { Router, Route, Switch } from 'react-router-dom';
37
+ import Space from './Space';
38
+ import Kapp from './Kapp'; // @see the Kapp component defined in `Kapp` example below
39
+
40
+ export const clientId =
41
+ process.env.NODE_ENV === 'development'
42
+ ? 'kinetic-bundle-dev'
43
+ : 'kinetic-bundle';
44
+
45
+ const App = () => (
46
+ <KineticLib clientId={clientId}>
47
+ {({ loggedIn, loggingIn, loginProps }) => (
48
+ <Router>
49
+ {loggingIn ? (
50
+ <LoginLoading />
51
+ ) : !loggedIn ? (
52
+ <LoginScreen {...loginProps} />
53
+ ) : (
54
+ <Switch>
55
+ <Route path="/" component={Space} />
56
+ <Route path="/kapps/:kappSlug" component={Kapp} />
57
+ </Switch>
58
+ )}
59
+ </Router>
60
+ )}
61
+ </KineticLib>
62
+ );
63
+
64
+ export default App;
65
+ ```
66
+
67
+ ### API's
68
+ All Service API's are exposed as functions to perform CRUD operations within the platform.
69
+
70
+ ```js static
71
+ import React from 'react';
72
+ import { fetchKapp } from '@kineticdata/react';
73
+
74
+ class Kapp extends React.Component {
75
+ constructor(props) {
76
+ super(props);
77
+ this.state = { kapp: {} };
78
+ }
79
+
80
+ componentDidMount() {
81
+ const { kapp } = fetchKapp(this.props.kappSlug, {
82
+ include: 'details,forms',
83
+ });
84
+ this.setState({ kapp });
85
+ }
86
+
87
+ render() {
88
+ const { kapp } = this.state;
89
+ return (
90
+ <div>
91
+ <h1>{kapp.slug}</h1>
92
+ <ul>
93
+ {kapp.forms.map(form => (
94
+ <li>{form.name}</li>
95
+ ))}
96
+ </ul>
97
+ </div>
98
+ );
99
+ }
100
+ }
101
+
102
+ export default Kapp;
103
+ ```
104
+
105
+ ## Development / Contributing
106
+
107
+ See the [Contributing](/#/Contributing) page for information on developing the component library.
108
+
109
+ ## License
110
+ MIT © [Kinetic Data](https://kineticdata.com)
@@ -1,12 +1,12 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
- <!-- Generator: Sketch 58 (84663) - https://sketch.com -->
4
- <title>icon / defer / A</title>
5
- <desc>Created with Sketch.</desc>
6
- <g id="icon-/--defer-/-A" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
7
- <g id="defer-copy-2">
8
- <path d="M20.1428776,11.5714388 C20.1428776,6.83929029 16.3035873,3 11.5714388,3 C6.83929029,3 3,6.83929029 3,11.5714388 C3,16.3035873 6.83929029,20.1428776 11.5714388,20.1428776 C16.3035873,20.1428776 20.1428776,16.3035873 20.1428776,11.5714388 L20.1428776,11.5714388 Z" id="Path-Copy" fill="#FBFBFD"></path>
9
- <path d="M13.5,7.875 C13.5,7.6640625 13.3359375,7.5 13.125,7.5 L12.375,7.5 C12.1640625,7.5 12,7.6640625 12,7.875 L12,12 L9.375,12 C9.1640625,12 9,12.1640625 9,12.375 L9,13.125 C9,13.3359375 9.1640625,13.5 9.375,13.5 L13.125,13.5 C13.3359375,13.5 13.5,13.3359375 13.5,13.125 L13.5,7.875 Z M18.375,12 C18.375,15.515625 15.515625,18.375 12,18.375 C8.484375,18.375 5.625,15.515625 5.625,12 C5.625,8.484375 8.484375,5.625 12,5.625 C15.515625,5.625 18.375,8.484375 18.375,12 L18.375,12 Z M21,12 C21,7.03125 16.96875,3 12,3 C7.03125,3 3,7.03125 3,12 C3,16.96875 7.03125,21 12,21 C16.96875,21 21,16.96875 21,12 L21,12 Z" id="clock-o---FontAwesome-Copy-2" fill="#389BFF"></path>
10
- </g>
11
- </g>
12
- </svg>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <!-- Generator: Sketch 58 (84663) - https://sketch.com -->
4
+ <title>icon / defer / A</title>
5
+ <desc>Created with Sketch.</desc>
6
+ <g id="icon-/--defer-/-A" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
7
+ <g id="defer-copy-2">
8
+ <path d="M20.1428776,11.5714388 C20.1428776,6.83929029 16.3035873,3 11.5714388,3 C6.83929029,3 3,6.83929029 3,11.5714388 C3,16.3035873 6.83929029,20.1428776 11.5714388,20.1428776 C16.3035873,20.1428776 20.1428776,16.3035873 20.1428776,11.5714388 L20.1428776,11.5714388 Z" id="Path-Copy" fill="#FBFBFD"></path>
9
+ <path d="M13.5,7.875 C13.5,7.6640625 13.3359375,7.5 13.125,7.5 L12.375,7.5 C12.1640625,7.5 12,7.6640625 12,7.875 L12,12 L9.375,12 C9.1640625,12 9,12.1640625 9,12.375 L9,13.125 C9,13.3359375 9.1640625,13.5 9.375,13.5 L13.125,13.5 C13.3359375,13.5 13.5,13.3359375 13.5,13.125 L13.5,7.875 Z M18.375,12 C18.375,15.515625 15.515625,18.375 12,18.375 C8.484375,18.375 5.625,15.515625 5.625,12 C5.625,8.484375 8.484375,5.625 12,5.625 C15.515625,5.625 18.375,8.484375 18.375,12 L18.375,12 Z M21,12 C21,7.03125 16.96875,3 12,3 C7.03125,3 3,7.03125 3,12 C3,16.96875 7.03125,21 12,21 C16.96875,21 21,16.96875 21,12 L21,12 Z" id="clock-o---FontAwesome-Copy-2" fill="#389BFF"></path>
10
+ </g>
11
+ </g>
12
+ </svg>
@@ -1,3 +1,3 @@
1
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M9 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2zM9 6a1 1 0 1 0 0-2 1 1 0 0 0 0 2zM9 20a1 1 0 1 0 0-2 1 1 0 0 0 0 2zM15 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2zM15 6a1 1 0 1 0 0-2 1 1 0 0 0 0 2zM15 20a1 1 0 1 0 0-2 1 1 0 0 0 0 2z" stroke="#242F4D" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3
- </svg>
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M9 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2zM9 6a1 1 0 1 0 0-2 1 1 0 0 0 0 2zM9 20a1 1 0 1 0 0-2 1 1 0 0 0 0 2zM15 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2zM15 6a1 1 0 1 0 0-2 1 1 0 0 0 0 2zM15 20a1 1 0 1 0 0-2 1 1 0 0 0 0 2z" stroke="#242F4D" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3
+ </svg>
@@ -1,11 +1,11 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
- <!-- Generator: Sketch 58 (84663) - https://sketch.com -->
4
- <title>icon / filter</title>
5
- <desc>Created with Sketch.</desc>
6
- <g id="icon-/--filter" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
7
- <g id="filter_new_copy">
8
- <path d="M17.9570676,6.33236858 C17.8718449,6.13635634 17.6758327,6 17.4542536,6 L6.54574638,6 C6.32416733,6 6.12815509,6.13635634 6.04293238,6.33236858 C5.95770966,6.53690309 6.00032102,6.77552669 6.16224417,6.92892757 L10.3637239,11.1304073 L10.3637239,15.2722312 C10.3637239,15.4171098 10.4233798,15.5534661 10.5256471,15.6557334 L12.7073485,17.8374348 C12.8096158,17.9482243 12.9459721,17.999358 13.0908507,17.999358 C13.1590289,17.999358 13.2357293,17.9823134 13.3039075,17.9567466 C13.4999197,17.8715239 13.6362761,17.6755117 13.6362761,17.4539326 L13.6362761,11.1304073 L17.8377558,6.92892757 C17.999679,6.77552669 18.0422903,6.53690309 17.9570676,6.33236858 L17.9570676,6.33236858 Z" id="filter---FontAwesome" fill="#FFFFFF"></path>
9
- </g>
10
- </g>
11
- </svg>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <!-- Generator: Sketch 58 (84663) - https://sketch.com -->
4
+ <title>icon / filter</title>
5
+ <desc>Created with Sketch.</desc>
6
+ <g id="icon-/--filter" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
7
+ <g id="filter_new_copy">
8
+ <path d="M17.9570676,6.33236858 C17.8718449,6.13635634 17.6758327,6 17.4542536,6 L6.54574638,6 C6.32416733,6 6.12815509,6.13635634 6.04293238,6.33236858 C5.95770966,6.53690309 6.00032102,6.77552669 6.16224417,6.92892757 L10.3637239,11.1304073 L10.3637239,15.2722312 C10.3637239,15.4171098 10.4233798,15.5534661 10.5256471,15.6557334 L12.7073485,17.8374348 C12.8096158,17.9482243 12.9459721,17.999358 13.0908507,17.999358 C13.1590289,17.999358 13.2357293,17.9823134 13.3039075,17.9567466 C13.4999197,17.8715239 13.6362761,17.6755117 13.6362761,17.4539326 L13.6362761,11.1304073 L17.8377558,6.92892757 C17.999679,6.77552669 18.0422903,6.53690309 17.9570676,6.33236858 L17.9570676,6.33236858 Z" id="filter---FontAwesome" fill="#FFFFFF"></path>
9
+ </g>
10
+ </g>
11
+ </svg>
@@ -1,10 +1,10 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
- <!-- Generator: Sketch 58 (84663) - https://sketch.com -->
4
- <title>icon / loop</title>
5
- <desc>Created with Sketch.</desc>
6
- <g id="icon-/--loop" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
7
- <path d="M8.66009916,1.88388481 L1.88388481,8.66009916 C0.0385363663,10.5054476 0.0388737574,13.4948898 1.88388481,15.3399008 L8.66009916,22.1161152 C10.5054476,23.9614636 13.4948898,23.9611262 15.3399008,22.1161152 L22.1161152,15.3399008 C23.9614636,13.4945524 23.9611262,10.5051102 22.1161152,8.66009916 L15.3399008,1.88388481 C13.4945524,0.0385363663 10.5051102,0.0388737574 8.66009916,1.88388481 Z" id="Rectangle-8" stroke="#F5A623" fill="#FAD290"></path>
8
- <path d="M12.0000001,7.50000002 C14.5775955,7.50000002 16.6666667,9.58889605 16.6666667,12.1666667 C16.6666666,14.7445575 14.5793662,16.8333334 12.0033662,16.8333334 L12.0033662,19.1666667 L12.0374263,18.0000001 L12.0374263,16.8333334 C9.46195172,16.8333334 7.37412588,14.7439093 7.37412588,12.1651602 L7.37412588,11.3797311 L5.04079254,11.3797311 L5.04079254,12.1651602 C5.04079254,16.0321742 8.17288743,19.1666667 12.0374263,19.1666667 L12.0374263,16.8333334 L12.0033662,18.0000001 L12.0033662,19.1666667 C15.8683998,19.1666667 18.9999999,16.032853 19,12.1666667 C19.0000001,8.30018783 15.8662161,5.16666667 12.0000001,5.16666667 L10.8888889,5.16666667 L11.2777778,3 L5,6.33333334 L11.2777778,9.66666669 L10.8888889,7.50000002 L12.0000001,7.50000002 Z" id="loop_line" fill="#D7591A" fill-rule="nonzero"></path>
9
- </g>
10
- </svg>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <!-- Generator: Sketch 58 (84663) - https://sketch.com -->
4
+ <title>icon / loop</title>
5
+ <desc>Created with Sketch.</desc>
6
+ <g id="icon-/--loop" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
7
+ <path d="M8.66009916,1.88388481 L1.88388481,8.66009916 C0.0385363663,10.5054476 0.0388737574,13.4948898 1.88388481,15.3399008 L8.66009916,22.1161152 C10.5054476,23.9614636 13.4948898,23.9611262 15.3399008,22.1161152 L22.1161152,15.3399008 C23.9614636,13.4945524 23.9611262,10.5051102 22.1161152,8.66009916 L15.3399008,1.88388481 C13.4945524,0.0385363663 10.5051102,0.0388737574 8.66009916,1.88388481 Z" id="Rectangle-8" stroke="#F5A623" fill="#FAD290"></path>
8
+ <path d="M12.0000001,7.50000002 C14.5775955,7.50000002 16.6666667,9.58889605 16.6666667,12.1666667 C16.6666666,14.7445575 14.5793662,16.8333334 12.0033662,16.8333334 L12.0033662,19.1666667 L12.0374263,18.0000001 L12.0374263,16.8333334 C9.46195172,16.8333334 7.37412588,14.7439093 7.37412588,12.1651602 L7.37412588,11.3797311 L5.04079254,11.3797311 L5.04079254,12.1651602 C5.04079254,16.0321742 8.17288743,19.1666667 12.0374263,19.1666667 L12.0374263,16.8333334 L12.0033662,18.0000001 L12.0033662,19.1666667 C15.8683998,19.1666667 18.9999999,16.032853 19,12.1666667 C19.0000001,8.30018783 15.8662161,5.16666667 12.0000001,5.16666667 L10.8888889,5.16666667 L11.2777778,3 L5,6.33333334 L11.2777778,9.66666669 L10.8888889,7.50000002 L12.0000001,7.50000002 Z" id="loop_line" fill="#D7591A" fill-rule="nonzero"></path>
9
+ </g>
10
+ </svg>
@@ -1,5 +1,5 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
3
- <circle cx="12" cy="12" r="11.5" fill="#F9DEE2" stroke="#DC3545"/>
4
- <path d="M12 6v12m-6-6h12" stroke="#DC3545" stroke-width="1.821" stroke-linecap="round" stroke-linejoin="round"/>
5
- </svg>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
3
+ <circle cx="12" cy="12" r="11.5" fill="#F9DEE2" stroke="#DC3545"/>
4
+ <path d="M12 6v12m-6-6h12" stroke="#DC3545" stroke-width="1.821" stroke-linecap="round" stroke-linejoin="round"/>
5
+ </svg>
@@ -1,10 +1,10 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
- <!-- Generator: Sketch 58 (84663) - https://sketch.com -->
4
- <title>icon / routine</title>
5
- <desc>Created with Sketch.</desc>
6
- <g id="icon-/--routine" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
7
- <path d="M15.3399008,1.88388481 C13.4945524,0.0385363663 10.5051102,0.0388737574 8.66009916,1.88388481 L1.88388481,8.66009916 C0.0385363663,10.5054476 0.0388737574,13.4948898 1.88388481,15.3399008 L8.66009916,22.1161152 C10.5054476,23.9614636 13.4948898,23.9611262 15.3399008,22.1161152 L22.1161152,15.3399008 C23.9614636,13.4945524 23.9611262,10.5051102 22.1161152,8.66009916 L15.3399008,1.88388481 Z" id="Rectangle-8" stroke="#417505" fill="#D9E3CD"></path>
8
- <path d="M17.750014,15.4999994 C17.750014,15.3671867 17.6953264,15.2421866 17.6015763,15.1484365 L14.4609476,11.9999952 L16.2500122,11.9999952 C16.52345,11.9999952 16.7500128,11.7734325 16.7500128,11.4999946 C16.7500128,11.367182 16.6953252,11.2421818 16.6015751,11.1484317 L13.4609464,7.99999046 L15.0000107,7.99999046 C15.2734486,7.99999046 15.5000113,7.77342769 15.5000113,7.49998987 C15.5000113,7.36717721 15.4453238,7.24217706 15.3515736,7.14842695 L12.3515701,4.14842337 C12.25782,4.05467326 12.1328198,3.99998569 12.0000072,3.99998569 C11.8671945,3.99998569 11.7421943,4.05467326 11.6484442,4.14842337 L8.64844066,7.14842695 C8.55469055,7.24217706 8.50000298,7.36717721 8.50000298,7.49998987 C8.50000298,7.77342769 8.72656575,7.99999046 9.00000358,7.99999046 L10.5390679,7.99999046 L7.39843917,11.1484317 C7.30468906,11.2421818 7.25000149,11.367182 7.25000149,11.4999946 C7.25000149,11.7734325 7.47656426,11.9999952 7.75000209,11.9999952 L9.53906672,11.9999952 L6.39843797,15.1484365 C6.30468786,15.2421866 6.2500003,15.3671867 6.2500003,15.4999994 C6.2500003,15.7734372 6.47656307,16 6.75000089,16 L10.3593802,16 C10.3359427,16.5000006 10.2734426,17.0234387 10.2734426,17.5312518 C10.2734426,17.7890646 10.4843803,18.0000024 10.7500057,18.0000024 L13.2500086,18.0000024 C13.515634,18.0000024 13.7265717,17.7890646 13.7265717,17.5312518 C13.7265717,17.0234387 13.6640716,16.5000006 13.6406341,16 L17.2500134,16 C17.5234512,16 17.750014,15.7734372 17.750014,15.4999994 L17.750014,15.4999994 Z" id="tree---FontAwesome" fill="#417505"></path>
9
- </g>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <!-- Generator: Sketch 58 (84663) - https://sketch.com -->
4
+ <title>icon / routine</title>
5
+ <desc>Created with Sketch.</desc>
6
+ <g id="icon-/--routine" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
7
+ <path d="M15.3399008,1.88388481 C13.4945524,0.0385363663 10.5051102,0.0388737574 8.66009916,1.88388481 L1.88388481,8.66009916 C0.0385363663,10.5054476 0.0388737574,13.4948898 1.88388481,15.3399008 L8.66009916,22.1161152 C10.5054476,23.9614636 13.4948898,23.9611262 15.3399008,22.1161152 L22.1161152,15.3399008 C23.9614636,13.4945524 23.9611262,10.5051102 22.1161152,8.66009916 L15.3399008,1.88388481 Z" id="Rectangle-8" stroke="#417505" fill="#D9E3CD"></path>
8
+ <path d="M17.750014,15.4999994 C17.750014,15.3671867 17.6953264,15.2421866 17.6015763,15.1484365 L14.4609476,11.9999952 L16.2500122,11.9999952 C16.52345,11.9999952 16.7500128,11.7734325 16.7500128,11.4999946 C16.7500128,11.367182 16.6953252,11.2421818 16.6015751,11.1484317 L13.4609464,7.99999046 L15.0000107,7.99999046 C15.2734486,7.99999046 15.5000113,7.77342769 15.5000113,7.49998987 C15.5000113,7.36717721 15.4453238,7.24217706 15.3515736,7.14842695 L12.3515701,4.14842337 C12.25782,4.05467326 12.1328198,3.99998569 12.0000072,3.99998569 C11.8671945,3.99998569 11.7421943,4.05467326 11.6484442,4.14842337 L8.64844066,7.14842695 C8.55469055,7.24217706 8.50000298,7.36717721 8.50000298,7.49998987 C8.50000298,7.77342769 8.72656575,7.99999046 9.00000358,7.99999046 L10.5390679,7.99999046 L7.39843917,11.1484317 C7.30468906,11.2421818 7.25000149,11.367182 7.25000149,11.4999946 C7.25000149,11.7734325 7.47656426,11.9999952 7.75000209,11.9999952 L9.53906672,11.9999952 L6.39843797,15.1484365 C6.30468786,15.2421866 6.2500003,15.3671867 6.2500003,15.4999994 C6.2500003,15.7734372 6.47656307,16 6.75000089,16 L10.3593802,16 C10.3359427,16.5000006 10.2734426,17.0234387 10.2734426,17.5312518 C10.2734426,17.7890646 10.4843803,18.0000024 10.7500057,18.0000024 L13.2500086,18.0000024 C13.515634,18.0000024 13.7265717,17.7890646 13.7265717,17.5312518 C13.7265717,17.0234387 13.6640716,16.5000006 13.6406341,16 L17.2500134,16 C17.5234512,16 17.750014,15.7734372 17.750014,15.4999994 L17.750014,15.4999994 Z" id="tree---FontAwesome" fill="#417505"></path>
9
+ </g>
10
10
  </svg>
@@ -1,12 +1,12 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <svg width="27px" height="28px" viewBox="0 0 27 28" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
- <!-- Generator: Sketch 58 (84663) - https://sketch.com -->
4
- <title>icon / scale-minus</title>
5
- <desc>Created with Sketch.</desc>
6
- <g id="icon-/-scale-minus" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
7
- <g id="minus">
8
- <rect id="Rectangle-Copy" fill="#7E8083" x="0" y="0" width="27" height="28"></rect>
9
- <path d="M21.7143044,12.0714179 C21.7143044,11.4798994 21.2343932,10.9999881 20.6428746,10.9999881 L7.07142985,10.9999881 C6.47991129,10.9999881 6,11.4798994 6,12.0714179 L6,14.2142776 C6,14.8057962 6.47991129,15.2857075 7.07142985,15.2857075 L20.6428746,15.2857075 C21.2343932,15.2857075 21.7143044,14.8057962 21.7143044,14.2142776 L21.7143044,12.0714179 Z" id="minus---FontAwesome" fill="#FFFFFF"></path>
10
- </g>
11
- </g>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="27px" height="28px" viewBox="0 0 27 28" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <!-- Generator: Sketch 58 (84663) - https://sketch.com -->
4
+ <title>icon / scale-minus</title>
5
+ <desc>Created with Sketch.</desc>
6
+ <g id="icon-/-scale-minus" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
7
+ <g id="minus">
8
+ <rect id="Rectangle-Copy" fill="#7E8083" x="0" y="0" width="27" height="28"></rect>
9
+ <path d="M21.7143044,12.0714179 C21.7143044,11.4798994 21.2343932,10.9999881 20.6428746,10.9999881 L7.07142985,10.9999881 C6.47991129,10.9999881 6,11.4798994 6,12.0714179 L6,14.2142776 C6,14.8057962 6.47991129,15.2857075 7.07142985,15.2857075 L20.6428746,15.2857075 C21.2343932,15.2857075 21.7143044,14.8057962 21.7143044,14.2142776 L21.7143044,12.0714179 Z" id="minus---FontAwesome" fill="#FFFFFF"></path>
10
+ </g>
11
+ </g>
12
12
  </svg>
@@ -1,14 +1,14 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <svg width="27px" height="28px" viewBox="0 0 27 28" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
- <!-- Generator: Sketch 58 (84663) - https://sketch.com -->
4
- <title>icon / scale-plus</title>
5
- <desc>Created with Sketch.</desc>
6
- <g id="icon-/-scale-plus" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
7
- <g id="plus">
8
- <rect id="Rectangle" fill="#7E8083" x="0" y="0" width="27" height="28"></rect>
9
- <g id="scale-plus" transform="translate(6.000000, 6.000000)" fill="#FFFFFF">
10
- <path d="M15.7143044,7.07141793 C15.7143044,6.47989937 15.2343932,5.99998808 14.6428746,5.99998808 L10.0000119,5.99998808 L10.0000119,1.3571254 C10.0000119,0.765606839 9.52010063,0.285695553 8.92858207,0.285695553 L6.78572237,0.285695553 C6.19420381,0.285695553 5.71429253,0.765606839 5.71429253,1.3571254 L5.71429253,5.99998808 L1.07142985,5.99998808 C0.479911286,5.99998808 0,6.47989937 0,7.07141793 L0,9.21427763 C0,9.80579619 0.479911286,10.2857075 1.07142985,10.2857075 L5.71429253,10.2857075 L5.71429253,14.9285702 C5.71429253,15.5200887 6.19420381,16 6.78572237,16 L8.92858207,16 C9.52010063,16 10.0000119,15.5200887 10.0000119,14.9285702 L10.0000119,10.2857075 L14.6428746,10.2857075 C15.2343932,10.2857075 15.7143044,9.80579619 15.7143044,9.21427763 L15.7143044,7.07141793 Z" id=""></path>
11
- </g>
12
- </g>
13
- </g>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="27px" height="28px" viewBox="0 0 27 28" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <!-- Generator: Sketch 58 (84663) - https://sketch.com -->
4
+ <title>icon / scale-plus</title>
5
+ <desc>Created with Sketch.</desc>
6
+ <g id="icon-/-scale-plus" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
7
+ <g id="plus">
8
+ <rect id="Rectangle" fill="#7E8083" x="0" y="0" width="27" height="28"></rect>
9
+ <g id="scale-plus" transform="translate(6.000000, 6.000000)" fill="#FFFFFF">
10
+ <path d="M15.7143044,7.07141793 C15.7143044,6.47989937 15.2343932,5.99998808 14.6428746,5.99998808 L10.0000119,5.99998808 L10.0000119,1.3571254 C10.0000119,0.765606839 9.52010063,0.285695553 8.92858207,0.285695553 L6.78572237,0.285695553 C6.19420381,0.285695553 5.71429253,0.765606839 5.71429253,1.3571254 L5.71429253,5.99998808 L1.07142985,5.99998808 C0.479911286,5.99998808 0,6.47989937 0,7.07141793 L0,9.21427763 C0,9.80579619 0.479911286,10.2857075 1.07142985,10.2857075 L5.71429253,10.2857075 L5.71429253,14.9285702 C5.71429253,15.5200887 6.19420381,16 6.78572237,16 L8.92858207,16 C9.52010063,16 10.0000119,15.5200887 10.0000119,14.9285702 L10.0000119,10.2857075 L14.6428746,10.2857075 C15.2343932,10.2857075 15.7143044,9.80579619 15.7143044,9.21427763 L15.7143044,7.07141793 Z" id=""></path>
11
+ </g>
12
+ </g>
13
+ </g>
14
14
  </svg>
@@ -1,12 +1,12 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <svg width="30px" height="30px" viewBox="0 0 30 30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
- <!-- Generator: Sketch 58 (84663) - https://sketch.com -->
4
- <title>icon / start</title>
5
- <desc>Created with Sketch.</desc>
6
- <g id="icon-/--start" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
7
- <g id="start" fill="#4AA44B">
8
- <circle id="Oval" stroke="#4AA44B" stroke-width="2" fill-opacity="0.5" cx="15" cy="15" r="14"></circle>
9
- <path d="M20.3333333,15.0833333 C20.3333333,14.6692708 19.9973958,14.3333333 19.5833333,14.3333333 L16.3333333,14.3333333 L16.3333333,11.0833333 C16.3333333,10.6692708 15.9973958,10.3333333 15.5833333,10.3333333 L14.0833333,10.3333333 C13.6692708,10.3333333 13.3333333,10.6692708 13.3333333,11.0833333 L13.3333333,14.3333333 L10.0833333,14.3333333 C9.66927083,14.3333333 9.33333333,14.6692708 9.33333333,15.0833333 L9.33333333,16.5833333 C9.33333333,16.9973958 9.66927083,17.3333333 10.0833333,17.3333333 L13.3333333,17.3333333 L13.3333333,20.5833333 C13.3333333,20.9973958 13.6692708,21.3333333 14.0833333,21.3333333 L15.5833333,21.3333333 C15.9973958,21.3333333 16.3333333,20.9973958 16.3333333,20.5833333 L16.3333333,17.3333333 L19.5833333,17.3333333 C19.9973958,17.3333333 20.3333333,16.9973958 20.3333333,16.5833333 L20.3333333,15.0833333 Z" id="plus---FontAwesome"></path>
10
- </g>
11
- </g>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="30px" height="30px" viewBox="0 0 30 30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <!-- Generator: Sketch 58 (84663) - https://sketch.com -->
4
+ <title>icon / start</title>
5
+ <desc>Created with Sketch.</desc>
6
+ <g id="icon-/--start" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
7
+ <g id="start" fill="#4AA44B">
8
+ <circle id="Oval" stroke="#4AA44B" stroke-width="2" fill-opacity="0.5" cx="15" cy="15" r="14"></circle>
9
+ <path d="M20.3333333,15.0833333 C20.3333333,14.6692708 19.9973958,14.3333333 19.5833333,14.3333333 L16.3333333,14.3333333 L16.3333333,11.0833333 C16.3333333,10.6692708 15.9973958,10.3333333 15.5833333,10.3333333 L14.0833333,10.3333333 C13.6692708,10.3333333 13.3333333,10.6692708 13.3333333,11.0833333 L13.3333333,14.3333333 L10.0833333,14.3333333 C9.66927083,14.3333333 9.33333333,14.6692708 9.33333333,15.0833333 L9.33333333,16.5833333 C9.33333333,16.9973958 9.66927083,17.3333333 10.0833333,17.3333333 L13.3333333,17.3333333 L13.3333333,20.5833333 C13.3333333,20.9973958 13.6692708,21.3333333 14.0833333,21.3333333 L15.5833333,21.3333333 C15.9973958,21.3333333 16.3333333,20.9973958 16.3333333,20.5833333 L16.3333333,17.3333333 L19.5833333,17.3333333 C19.9973958,17.3333333 20.3333333,16.9973958 20.3333333,16.5833333 L20.3333333,15.0833333 Z" id="plus---FontAwesome"></path>
10
+ </g>
11
+ </g>
12
12
  </svg>
@@ -1,9 +1,9 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <svg width="30px" height="30px" viewBox="0 0 30 30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
- <!-- Generator: Sketch 58 (84663) - https://sketch.com -->
4
- <title>icon / stop</title>
5
- <desc>Created with Sketch.</desc>
6
- <g id="icon-/--stop" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" fill-opacity="0.5">
7
- <path d="M1.00398825,20.360522 L9.38364287,28.9964145 L20.7827726,28.8999754 L28.8152872,20.6472263 L28.9933647,9.83633215 L20.5348435,1.00129467 L9.29535195,1.03534921 L1.11205863,9.35313167 L1.00398825,20.360522 Z" id="Oval" stroke="#D65352" stroke-width="2" fill="#D65352"></path>
8
- </g>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="30px" height="30px" viewBox="0 0 30 30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <!-- Generator: Sketch 58 (84663) - https://sketch.com -->
4
+ <title>icon / stop</title>
5
+ <desc>Created with Sketch.</desc>
6
+ <g id="icon-/--stop" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" fill-opacity="0.5">
7
+ <path d="M1.00398825,20.360522 L9.38364287,28.9964145 L20.7827726,28.8999754 L28.8152872,20.6472263 L28.9933647,9.83633215 L20.5348435,1.00129467 L9.29535195,1.03534921 L1.11205863,9.35313167 L1.00398825,20.360522 Z" id="Oval" stroke="#D65352" stroke-width="2" fill="#D65352"></path>
8
+ </g>
9
9
  </svg>
@@ -8,10 +8,10 @@ exports.fetchActivity = void 0;
8
8
  var _axios = _interopRequireDefault(require("axios"));
9
9
  var _helpers = require("../../helpers");
10
10
  var _http = require("../http");
11
- /**
12
- * Fetch submission activity within the system.
13
- * @param {object} options fetch parameters
14
- * @param {string} options.kappSlug slug of the kapp to scope activity to
11
+ /**
12
+ * Fetch submission activity within the system.
13
+ * @param {object} options fetch parameters
14
+ * @param {string} options.kappSlug slug of the kapp to scope activity to
15
15
  */
16
16
  var fetchActivity = exports.fetchActivity = function fetchActivity() {
17
17
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@@ -8,12 +8,9 @@ exports.updateAttributeDefinition = exports.fetchAttributeDefinitions = exports.
8
8
  var _axios = _interopRequireDefault(require("axios"));
9
9
  var _helpers = require("../../helpers");
10
10
  var _http = require("../http");
11
- // The API returns the singular name of the attribute type, so we remove the "s",
12
- // except for userProfileAttributeDefinitions and datastoreFormAttributeDefinitions
13
- // TODO: KCORE-2982
14
- // TODO: Remove datastoreFormAttributeDefinitions when fully deprecated. See b4a24c6
11
+ // The API returns the singular name of the attribute type, so we remove the "s"
15
12
  var responseEnvelope = function responseEnvelope(attributeType) {
16
- return ['userProfileAttributeDefinitions', 'datastoreFormAttributeDefinitions'].includes(attributeType) ? attributeType : attributeType.replace(/s$/, '');
13
+ return attributeType.replace(/s$/, '');
17
14
  };
18
15
  var validateOptions = function validateOptions(functionName, requiredOptions, options) {
19
16
  var validAttributes = ['spaceAttributeDefinitions', 'teamAttributeDefinitions', 'userAttributeDefinitions', 'userProfileAttributeDefinitions', 'categoryAttributeDefinitions', 'kappAttributeDefinitions', 'formAttributeDefinitions'];
@@ -42,6 +39,16 @@ var buildEndpoint = function buildEndpoint(_ref) {
42
39
  var basePath = kappSlug ? "".concat(_helpers.bundle.apiLocation(), "/kapps/").concat(kappSlug, "/").concat(attributeType) : "".concat(_helpers.bundle.apiLocation(), "/").concat(attributeType);
43
40
  return an ? "".concat(basePath, "/").concat(attributeName) : basePath;
44
41
  };
42
+
43
+ /**
44
+ * Fetches all attribute definitions of a given type.
45
+ *
46
+ * @param {Object} options - Options for fetching attribute definitions.
47
+ * @param {string} options.attributeType - The type of attribute definitions to fetch.
48
+ * @param {string} [options.kappSlug] - The slug of the kapp.
49
+ * @returns {Promise<{attributeDefinitions: Object[]}>}
50
+ */
51
+
45
52
  var fetchAttributeDefinitions = exports.fetchAttributeDefinitions = function fetchAttributeDefinitions() {
46
53
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
47
54
  var attributeType = options.attributeType;
@@ -55,6 +62,17 @@ var fetchAttributeDefinitions = exports.fetchAttributeDefinitions = function fet
55
62
  };
56
63
  })["catch"](_http.handleErrors);
57
64
  };
65
+
66
+ /**
67
+ * Fetches a single attribute definition by name.
68
+ *
69
+ * @param {Object} options - Options for fetching the attribute definition.
70
+ * @param {string} options.attributeType - The type of attribute definition.
71
+ * @param {string} options.attributeName - The name of the attribute definition to fetch.
72
+ * @param {string} [options.kappSlug] - The slug of the kapp.
73
+ * @returns {Promise<{attributeDefinition: Object}>}
74
+ */
75
+
58
76
  var fetchAttributeDefinition = exports.fetchAttributeDefinition = function fetchAttributeDefinition() {
59
77
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
60
78
  var attributeType = options.attributeType;
@@ -64,10 +82,27 @@ var fetchAttributeDefinition = exports.fetchAttributeDefinition = function fetch
64
82
  headers: (0, _http.headerBuilder)(options)
65
83
  }).then(function (response) {
66
84
  return {
67
- attributeDefinition: response.data[responseEnvelope(attributeType)]
85
+ // The userProfileAttributeDefinition fetch returns a pluralized name
86
+ // instead of the singular name as it should, so we want to check both
87
+ // the singular and plural versions in that case to be backwards
88
+ // compatible when this gets fixed on the server.
89
+ // TODO Remove this check and only keep the responseEvelope once the
90
+ // server side code is fixed.
91
+ attributeDefinition: attributeType !== 'userProfileAttributeDefinitions' ? response.data[responseEnvelope(attributeType)] : response.data[responseEnvelope(attributeType)] || response.data[attributeType]
68
92
  };
69
93
  })["catch"](_http.handleErrors);
70
94
  };
95
+
96
+ /**
97
+ * Creates a new attribute definition.
98
+ *
99
+ * @param {Object} options - Options for creating the attribute definition.
100
+ * @param {string} options.attributeType - The type of attribute definition.
101
+ * @param {Object} options.attributeDefinition - The attribute definition object to create.
102
+ * @param {string} [options.kappSlug] - The slug of the kapp.
103
+ * @returns {Promise<{attributeDefinition: Object}>}
104
+ */
105
+
71
106
  var createAttributeDefinition = exports.createAttributeDefinition = function createAttributeDefinition() {
72
107
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
73
108
  var kappSlug = options.kappSlug,
@@ -88,6 +123,18 @@ var createAttributeDefinition = exports.createAttributeDefinition = function cre
88
123
  };
89
124
  })["catch"](_http.handleErrors);
90
125
  };
126
+
127
+ /**
128
+ * Updates an existing attribute definition.
129
+ *
130
+ * @param {Object} options - Options for updating the attribute definition.
131
+ * @param {string} options.attributeType - The type of attribute definition.
132
+ * @param {string} options.attributeName - The name of the attribute definition to update.
133
+ * @param {Object} options.attributeDefinition - The updated attribute definition object.
134
+ * @param {string} [options.kappSlug] - The slug of the kapp.
135
+ * @returns {Promise<{attributeDefinition: Object}>}
136
+ */
137
+
91
138
  var updateAttributeDefinition = exports.updateAttributeDefinition = function updateAttributeDefinition() {
92
139
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
93
140
  var attributeType = options.attributeType,
@@ -103,6 +150,17 @@ var updateAttributeDefinition = exports.updateAttributeDefinition = function upd
103
150
  };
104
151
  })["catch"](_http.handleErrors);
105
152
  };
153
+
154
+ /**
155
+ * Deletes an attribute definition.
156
+ *
157
+ * @param {Object} options - Options for deleting the attribute definition.
158
+ * @param {string} options.attributeType - The type of attribute definition.
159
+ * @param {string} options.attributeName - The name of the attribute definition to delete.
160
+ * @param {string} [options.kappSlug] - The slug of the kapp.
161
+ * @returns {Promise<{attributeDefinition: Object}>}
162
+ */
163
+
106
164
  var deleteAttributeDefinition = exports.deleteAttributeDefinition = function deleteAttributeDefinition() {
107
165
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
108
166
  var attributeType = options.attributeType;
@@ -4,7 +4,6 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  var _regeneratorRuntime2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/regeneratorRuntime"));
5
5
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/asyncToGenerator"));
6
6
  var _axios = _interopRequireDefault(require("axios"));
7
- var _createError = _interopRequireDefault(require("axios/lib/core/createError"));
8
7
  var _attributeDefinitions = require("./attributeDefinitions");
9
8
  jest.mock('axios');
10
9
 
@@ -132,9 +131,13 @@ describe('attributeDefinitions api', function () {
132
131
  return (0, _regeneratorRuntime2["default"])().wrap(function _callee3$(_context3) {
133
132
  while (1) switch (_context3.prev = _context3.next) {
134
133
  case 0:
135
- _axios["default"].get.mockRejectedValue((0, _createError["default"])('Request failed with status code 403', null, 403, null, {
136
- status: 403,
137
- statusText: 'Forbidden'
134
+ _axios["default"].get.mockRejectedValue(Object.assign(new Error('Request failed with status code 403'), {
135
+ name: 'AxiosError',
136
+ isAxiosError: true,
137
+ response: {
138
+ status: 403,
139
+ statusText: 'Forbidden'
140
+ }
138
141
  }));
139
142
  _context3.next = 3;
140
143
  return (0, _attributeDefinitions.fetchAttributeDefinitions)({