orc-shared 1.7.0-dev.8 → 5.2.0-dev.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.
- package/dist/actions/modules.js +15 -1
- package/dist/actions/navigation.js +1 -14
- package/dist/actions/scopes.js +2 -3
- package/dist/buildStore.js +1 -7
- package/dist/components/AppFrame/Sidebar.js +8 -4
- package/dist/components/MaterialUI/DataDisplay/Notification.js +0 -6
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/InformationItem.js +6 -18
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/StepperModal.js +1 -2
- package/dist/components/MaterialUI/DataDisplay/TooltippedElements/MultipleLinesText.js +2 -4
- package/dist/components/MaterialUI/DataDisplay/tableHelpers.js +7 -7
- package/dist/components/MaterialUI/Inputs/Autocomplete.js +0 -5
- package/dist/components/MaterialUI/Inputs/DatePicker.js +8 -15
- package/dist/components/MaterialUI/Inputs/InputBase.js +16 -102
- package/dist/components/MaterialUI/Inputs/InputBaseProps.js +1 -7
- package/dist/components/MaterialUI/Inputs/PredefinedElements/SearchControl.js +46 -43
- package/dist/components/MaterialUI/Inputs/TimePicker.js +2 -5
- package/dist/components/MaterialUI/Navigation/DropDownMenu.js +1 -6
- package/dist/components/MaterialUI/Surfaces/SectionExpansionPanel.js +0 -1
- package/dist/components/MaterialUI/hocs/withDeferredTooltip.js +1 -3
- package/dist/components/Routing/Page.js +1 -4
- package/dist/components/Routing/SegmentPage.js +1 -4
- package/dist/components/Routing/SubPage.js +8 -38
- package/dist/components/Scope/useScopeConfirmationModalState.js +3 -1
- package/dist/constants.js +2 -18
- package/dist/content/icons/hide.svg +1 -10
- package/dist/content/icons/open-in-new-tab.svg +1 -3
- package/dist/content/iconsSheet.svg +650 -117
- package/dist/content/orckestra-logo-white.png +0 -0
- package/dist/hooks/useEditState.js +2 -4
- package/dist/reducers/modules.js +3 -4
- package/dist/reducers/navigation.js +0 -16
- package/dist/reducers/request.js +1 -6
- package/dist/reducers/scopes.js +0 -3
- package/dist/reducers/view.js +1 -1
- package/dist/selectors/authentication.js +1 -15
- package/dist/selectors/metadata.js +1 -1
- package/dist/sharedMessages.js +1 -17
- package/dist/utils/propertyHelper.js +0 -33
- package/dist/utils/timezoneHelper.js +1 -23
- package/package.json +7 -10
- package/src/actions/modules.js +10 -0
- package/src/actions/modules.test.js +14 -0
- package/src/actions/navigation.js +0 -7
- package/src/actions/navigation.test.js +0 -12
- package/src/actions/scopes.js +1 -2
- package/src/actions/scopes.test.js +1 -2
- package/src/buildStore.js +0 -6
- package/src/components/AppFrame/About.test.js +3 -3
- package/src/components/AppFrame/Sidebar.js +3 -4
- package/src/components/Form/InputField.test.js +0 -18
- package/src/components/Form/Inputs/Date.test.js +0 -18
- package/src/components/MaterialUI/DataDisplay/Notification.js +0 -6
- package/src/components/MaterialUI/DataDisplay/Notification.test.js +0 -37
- package/src/components/MaterialUI/DataDisplay/PredefinedElements/InformationItem.js +5 -23
- package/src/components/MaterialUI/DataDisplay/PredefinedElements/InformationItem.test.js +0 -121
- package/src/components/MaterialUI/DataDisplay/PredefinedElements/StepperModal.js +1 -2
- package/src/components/MaterialUI/DataDisplay/PredefinedElements/StepperModal.test.js +0 -20
- package/src/components/MaterialUI/DataDisplay/TooltippedElements/MultipleLinesText.js +1 -2
- package/src/components/MaterialUI/DataDisplay/tableHelpers.js +8 -8
- package/src/components/MaterialUI/DataDisplay/tableHelpers.test.js +0 -93
- package/src/components/MaterialUI/Inputs/Autocomplete.js +0 -5
- package/src/components/MaterialUI/Inputs/Autocomplete.test.js +0 -15
- package/src/components/MaterialUI/Inputs/DatePicker.js +3 -17
- package/src/components/MaterialUI/Inputs/DatePicker.test.js +1 -143
- package/src/components/MaterialUI/Inputs/InputBase.js +15 -103
- package/src/components/MaterialUI/Inputs/InputBase.test.js +1 -376
- package/src/components/MaterialUI/Inputs/InputBaseProps.js +0 -6
- package/src/components/MaterialUI/Inputs/InputBaseProps.test.js +0 -6
- package/src/components/MaterialUI/Inputs/PredefinedElements/SearchControl.js +27 -39
- package/src/components/MaterialUI/Inputs/PredefinedElements/SearchControl.test.js +34 -39
- package/src/components/MaterialUI/Inputs/TimePicker.js +1 -5
- package/src/components/MaterialUI/Navigation/DropDownMenu.js +1 -6
- package/src/components/MaterialUI/Surfaces/SectionExpansionPanel.js +0 -1
- package/src/components/MaterialUI/hocs/withDeferredTooltip.js +1 -2
- package/src/components/MaterialUI/hocs/withDeferredTooltip.test.js +0 -52
- package/src/components/Routing/Page.js +1 -12
- package/src/components/Routing/SegmentPage.js +1 -12
- package/src/components/Routing/SubPage.js +9 -41
- package/src/components/Routing/SubPage.test.js +1 -295
- package/src/components/Scope/useScopeConfirmationModalState.js +3 -1
- package/src/components/Scope/useScopeConfirmationModalState.test.js +35 -4
- package/src/components/Text.test.js +59 -44
- package/src/constants.js +0 -15
- package/src/content/icons/hide.svg +1 -10
- package/src/content/icons/open-in-new-tab.svg +1 -3
- package/src/content/iconsSheet.svg +650 -117
- package/src/content/orckestra-logo-white.png +0 -0
- package/src/hooks/useEditState.js +2 -12
- package/src/hooks/useEditState.test.js +1 -1
- package/src/hooks/useLabelMessage.test.js +10 -16
- package/src/reducers/modules.js +4 -4
- package/src/reducers/modules.test.js +5 -5
- package/src/reducers/navigation.js +0 -24
- package/src/reducers/navigation.test.js +0 -38
- package/src/reducers/request.js +1 -6
- package/src/reducers/request.test.js +0 -34
- package/src/reducers/scopes.js +0 -3
- package/src/reducers/scopes.test.js +0 -47
- package/src/reducers/view.js +1 -1
- package/src/reducers/view.test.js +8 -1
- package/src/selectors/authentication.js +0 -13
- package/src/selectors/authentication.test.js +0 -322
- package/src/selectors/metadata.js +1 -1
- package/src/selectors/metadata.test.js +0 -12
- package/src/sharedMessages.js +1 -17
- package/src/translations/en-US.json +12 -16
- package/src/translations/fr-CA.json +12 -16
- package/src/utils/propertyHelper.js +0 -38
- package/src/utils/propertyHelper.test.js +0 -160
- package/src/utils/timezoneHelper.js +0 -18
- package/src/utils/timezoneHelper.test.js +1 -23
- package/dist/actions/globalErrorMessages.js +0 -63
- package/dist/actions/tasks.js +0 -170
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/GlobalErrorMessages.js +0 -160
- package/dist/components/MaterialUI/DataDisplay/PredefinedElements/LookupDisplayValue.js +0 -88
- package/dist/components/TaskDetailsModal.js +0 -191
- package/dist/content/icons/anonymize.svg +0 -3
- package/dist/content/icons/archives.svg +0 -3
- package/dist/content/icons/clean-index.svg +0 -3
- package/dist/content/icons/date-index.svg +0 -3
- package/dist/content/icons/inventory.svg +0 -4
- package/dist/content/icons/query-tester.svg +0 -10
- package/dist/content/icons/reciprocity.svg +0 -10
- package/dist/content/icons/schema.svg +0 -11
- package/dist/content/icons/synonyms.svg +0 -3
- package/dist/content/icons/tenant.svg +0 -3
- package/dist/content/icons/time-index.svg +0 -3
- package/dist/hooks/useDispatchWithErrorHandling.js +0 -103
- package/dist/hooks/useScopeGuardLoader.js +0 -77
- package/dist/reducers/globalErrorMessages.js +0 -78
- package/dist/reducers/scopeRouteState.js +0 -83
- package/dist/reducers/tasks.js +0 -98
- package/dist/selectors/globalErrorMessages.js +0 -57
- package/dist/selectors/scopeRouteState.js +0 -53
- package/dist/selectors/tasks.js +0 -64
- package/dist/utils/responseProcessingHelper.js +0 -86
- package/src/actions/globalErrorMessages.js +0 -12
- package/src/actions/globalErrorMessages.test.js +0 -21
- package/src/actions/tasks.js +0 -77
- package/src/actions/tasks.test.js +0 -169
- package/src/components/MaterialUI/DataDisplay/PredefinedElements/GlobalErrorMessages.js +0 -108
- package/src/components/MaterialUI/DataDisplay/PredefinedElements/GlobalErrorMessages.test.js +0 -468
- package/src/components/MaterialUI/DataDisplay/PredefinedElements/LookupDisplayValue.js +0 -29
- package/src/components/MaterialUI/DataDisplay/PredefinedElements/LookupDisplayValue.test.js +0 -147
- package/src/components/TaskDetailsModal.js +0 -132
- package/src/components/TaskDetailsModal.test.js +0 -317
- package/src/content/icons/anonymize.svg +0 -3
- package/src/content/icons/archives.svg +0 -3
- package/src/content/icons/clean-index.svg +0 -3
- package/src/content/icons/date-index.svg +0 -3
- package/src/content/icons/inventory.svg +0 -4
- package/src/content/icons/query-tester.svg +0 -10
- package/src/content/icons/reciprocity.svg +0 -10
- package/src/content/icons/schema.svg +0 -11
- package/src/content/icons/synonyms.svg +0 -3
- package/src/content/icons/tenant.svg +0 -3
- package/src/content/icons/time-index.svg +0 -3
- package/src/hooks/useDispatchWithErrorHandling.js +0 -57
- package/src/hooks/useDispatchWithErrorHandling.test.js +0 -230
- package/src/hooks/useScopeGuardLoader.js +0 -25
- package/src/hooks/useScopeGuardLoader.test.js +0 -187
- package/src/reducers/globalErrorMessages.js +0 -25
- package/src/reducers/globalErrorMessages.test.js +0 -66
- package/src/reducers/scopeRouteState.js +0 -29
- package/src/reducers/scopeRouteState.test.js +0 -49
- package/src/reducers/tasks.js +0 -56
- package/src/reducers/tasks.test.js +0 -404
- package/src/selectors/globalErrorMessages.js +0 -11
- package/src/selectors/globalErrorMessages.test.js +0 -25
- package/src/selectors/scopeRouteState.js +0 -5
- package/src/selectors/scopeRouteState.test.js +0 -13
- package/src/selectors/tasks.js +0 -16
- package/src/selectors/tasks.test.js +0 -60
- package/src/utils/responseProcessingHelper.js +0 -42
- package/src/utils/responseProcessingHelper.test.js +0 -218
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = void 0;
|
|
5
|
-
var _immutable = _interopRequireDefault(require("immutable"));
|
|
6
|
-
var _globalErrorMessages = require("../actions/globalErrorMessages");
|
|
7
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
8
|
-
(function () {
|
|
9
|
-
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
10
|
-
enterModule && enterModule(module);
|
|
11
|
-
})();
|
|
12
|
-
(function () {
|
|
13
|
-
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
14
|
-
enterModule && enterModule(module);
|
|
15
|
-
})();
|
|
16
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
20
|
-
return a;
|
|
21
|
-
};
|
|
22
|
-
var initialState = _immutable.default.fromJS({
|
|
23
|
-
dialog: {
|
|
24
|
-
errorMessages: []
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
var globalErrorMessages = function globalErrorMessages(state, action) {
|
|
28
|
-
if (state === void 0) {
|
|
29
|
-
state = initialState;
|
|
30
|
-
}
|
|
31
|
-
switch (action.type) {
|
|
32
|
-
case _globalErrorMessages.PUSH_GLOBAL_ERROR_MESSAGE:
|
|
33
|
-
{
|
|
34
|
-
var newMsgs = state.getIn(["dialog", "errorMessages"]).push(_immutable.default.fromJS(action.payload));
|
|
35
|
-
return state.setIn(["dialog", "errorMessages"], newMsgs);
|
|
36
|
-
}
|
|
37
|
-
case _globalErrorMessages.POP_GLOBAL_ERROR_MESSAGE:
|
|
38
|
-
{
|
|
39
|
-
var _newMsgs = state.getIn(["dialog", "errorMessages"]).shift();
|
|
40
|
-
return state.setIn(["dialog", "errorMessages"], _newMsgs);
|
|
41
|
-
}
|
|
42
|
-
default:
|
|
43
|
-
return state;
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
var _default = globalErrorMessages;
|
|
47
|
-
var _default2 = _default;
|
|
48
|
-
var _default3 = exports.default = _default2;
|
|
49
|
-
;
|
|
50
|
-
(function () {
|
|
51
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
52
|
-
if (!reactHotLoader) {
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
reactHotLoader.register(initialState, "initialState", "/home/vsts/work/1/s/src/reducers/globalErrorMessages.js");
|
|
56
|
-
reactHotLoader.register(globalErrorMessages, "globalErrorMessages", "/home/vsts/work/1/s/src/reducers/globalErrorMessages.js");
|
|
57
|
-
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/reducers/globalErrorMessages.js");
|
|
58
|
-
})();
|
|
59
|
-
;
|
|
60
|
-
(function () {
|
|
61
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
62
|
-
leaveModule && leaveModule(module);
|
|
63
|
-
})();
|
|
64
|
-
;
|
|
65
|
-
(function () {
|
|
66
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
67
|
-
if (!reactHotLoader) {
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
reactHotLoader.register(initialState, "initialState", "/home/vsts/work/1/s/src/reducers/globalErrorMessages.js");
|
|
71
|
-
reactHotLoader.register(globalErrorMessages, "globalErrorMessages", "/home/vsts/work/1/s/src/reducers/globalErrorMessages.js");
|
|
72
|
-
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/reducers/globalErrorMessages.js");
|
|
73
|
-
})();
|
|
74
|
-
;
|
|
75
|
-
(function () {
|
|
76
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
77
|
-
leaveModule && leaveModule(module);
|
|
78
|
-
})();
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = void 0;
|
|
5
|
-
var _immutable = _interopRequireDefault(require("immutable"));
|
|
6
|
-
var _navigation = require("../actions/navigation");
|
|
7
|
-
var _scopes = require("../actions/scopes");
|
|
8
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
|
-
(function () {
|
|
10
|
-
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
11
|
-
enterModule && enterModule(module);
|
|
12
|
-
})();
|
|
13
|
-
(function () {
|
|
14
|
-
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
15
|
-
enterModule && enterModule(module);
|
|
16
|
-
})();
|
|
17
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
18
|
-
return a;
|
|
19
|
-
};
|
|
20
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
21
|
-
return a;
|
|
22
|
-
};
|
|
23
|
-
var initialState = _immutable.default.fromJS({
|
|
24
|
-
scopeChangeInProgress: false
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
/*
|
|
28
|
-
This reducer and its associated hook is used to prevent a request from being sent out while the application's scope is changing.
|
|
29
|
-
Basically the reducer responds to an action, set a flag to true and then set it to false once another action is triggered (route change).
|
|
30
|
-
|
|
31
|
-
This is a pretty hackish way to ensure that the correct requests are being executed (references #74924, #74764) however we know of no other way to achieve the desired result.
|
|
32
|
-
* */
|
|
33
|
-
|
|
34
|
-
var viewStateReducer = function viewStateReducer(state, action) {
|
|
35
|
-
if (state === void 0) {
|
|
36
|
-
state = initialState;
|
|
37
|
-
}
|
|
38
|
-
switch (action.type) {
|
|
39
|
-
case _scopes.APPLICATION_SCOPE_HAS_CHANGED:
|
|
40
|
-
{
|
|
41
|
-
return state.set("scopeChangeInProgress", action.payload.newScope !== action.payload.previousScope);
|
|
42
|
-
}
|
|
43
|
-
case _navigation.SET_ROUTE:
|
|
44
|
-
{
|
|
45
|
-
return state.set("scopeChangeInProgress", false);
|
|
46
|
-
}
|
|
47
|
-
default:
|
|
48
|
-
return state;
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
var _default = viewStateReducer;
|
|
52
|
-
var _default2 = _default;
|
|
53
|
-
var _default3 = exports.default = _default2;
|
|
54
|
-
;
|
|
55
|
-
(function () {
|
|
56
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
57
|
-
if (!reactHotLoader) {
|
|
58
|
-
return;
|
|
59
|
-
}
|
|
60
|
-
reactHotLoader.register(initialState, "initialState", "/home/vsts/work/1/s/src/reducers/scopeRouteState.js");
|
|
61
|
-
reactHotLoader.register(viewStateReducer, "viewStateReducer", "/home/vsts/work/1/s/src/reducers/scopeRouteState.js");
|
|
62
|
-
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/reducers/scopeRouteState.js");
|
|
63
|
-
})();
|
|
64
|
-
;
|
|
65
|
-
(function () {
|
|
66
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
67
|
-
leaveModule && leaveModule(module);
|
|
68
|
-
})();
|
|
69
|
-
;
|
|
70
|
-
(function () {
|
|
71
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
72
|
-
if (!reactHotLoader) {
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
reactHotLoader.register(initialState, "initialState", "/home/vsts/work/1/s/src/reducers/scopeRouteState.js");
|
|
76
|
-
reactHotLoader.register(viewStateReducer, "viewStateReducer", "/home/vsts/work/1/s/src/reducers/scopeRouteState.js");
|
|
77
|
-
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/reducers/scopeRouteState.js");
|
|
78
|
-
})();
|
|
79
|
-
;
|
|
80
|
-
(function () {
|
|
81
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
82
|
-
leaveModule && leaveModule(module);
|
|
83
|
-
})();
|
package/dist/reducers/tasks.js
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.default = void 0;
|
|
5
|
-
var _immutable = _interopRequireDefault(require("immutable"));
|
|
6
|
-
var _utils = require("../utils");
|
|
7
|
-
var _tasks = require("../actions/tasks");
|
|
8
|
-
var _propertyHelper = require("../utils/propertyHelper");
|
|
9
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
(function () {
|
|
11
|
-
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
12
|
-
enterModule && enterModule(module);
|
|
13
|
-
})();
|
|
14
|
-
(function () {
|
|
15
|
-
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
16
|
-
enterModule && enterModule(module);
|
|
17
|
-
})();
|
|
18
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
19
|
-
return a;
|
|
20
|
-
};
|
|
21
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
22
|
-
return a;
|
|
23
|
-
};
|
|
24
|
-
var initialState = _immutable.default.fromJS({
|
|
25
|
-
tasks: [],
|
|
26
|
-
taskInfos: {},
|
|
27
|
-
logs: {}
|
|
28
|
-
});
|
|
29
|
-
var tasks = function tasks(state, action) {
|
|
30
|
-
var _action$payload;
|
|
31
|
-
if (state === void 0) {
|
|
32
|
-
state = initialState;
|
|
33
|
-
}
|
|
34
|
-
switch (action.type) {
|
|
35
|
-
case _tasks.GET_TASKINFO_SUCCESS:
|
|
36
|
-
return state.setIn(["taskInfos", action.payload.taskId], _immutable.default.fromJS(action.payload));
|
|
37
|
-
case _tasks.GET_TASK_LIST_SUCCESS:
|
|
38
|
-
return state.set("tasks", _immutable.default.fromJS(action.payload.sort(function (a, b) {
|
|
39
|
-
return (0, _propertyHelper.compareObjectProperty)(a, b, "created");
|
|
40
|
-
})));
|
|
41
|
-
case _tasks.DELETE_TASK_REQUEST:
|
|
42
|
-
var deleteTaskId = (0, _utils.safeGet)(action, "meta", "taskId");
|
|
43
|
-
return state.withMutations(function (s) {
|
|
44
|
-
s.set("tasks", s.get("tasks").filter(function (task) {
|
|
45
|
-
return task.get("taskId") !== deleteTaskId;
|
|
46
|
-
}));
|
|
47
|
-
s.deleteIn(["logs", deleteTaskId]);
|
|
48
|
-
s.deleteIn(["taskInfos", deleteTaskId]);
|
|
49
|
-
});
|
|
50
|
-
case _tasks.GET_TASK_LOG_SUCCESS:
|
|
51
|
-
var logTaskId = (0, _utils.safeGet)(action, "meta", "taskId");
|
|
52
|
-
if (((_action$payload = action.payload) == null ? void 0 : _action$payload.length) > 0) {
|
|
53
|
-
return state.setIn(["logs", logTaskId], _immutable.default.fromJS(action.payload.sort(function (a, b) {
|
|
54
|
-
return (0, _propertyHelper.compareObjectProperty)(a, b, "executionTime");
|
|
55
|
-
})));
|
|
56
|
-
} else {
|
|
57
|
-
return state.deleteIn(["logs", logTaskId]);
|
|
58
|
-
}
|
|
59
|
-
case _tasks.CLEAR_TASK_LOG:
|
|
60
|
-
var taskId = (0, _utils.safeGet)(action, "meta", "taskId");
|
|
61
|
-
return state.deleteIn(["logs", taskId]);
|
|
62
|
-
default:
|
|
63
|
-
return state;
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
var _default = tasks;
|
|
67
|
-
var _default2 = _default;
|
|
68
|
-
var _default3 = exports.default = _default2;
|
|
69
|
-
;
|
|
70
|
-
(function () {
|
|
71
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
72
|
-
if (!reactHotLoader) {
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
reactHotLoader.register(initialState, "initialState", "/home/vsts/work/1/s/src/reducers/tasks.js");
|
|
76
|
-
reactHotLoader.register(tasks, "tasks", "/home/vsts/work/1/s/src/reducers/tasks.js");
|
|
77
|
-
reactHotLoader.register(_default, "default", "/home/vsts/work/1/s/src/reducers/tasks.js");
|
|
78
|
-
})();
|
|
79
|
-
;
|
|
80
|
-
(function () {
|
|
81
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
82
|
-
leaveModule && leaveModule(module);
|
|
83
|
-
})();
|
|
84
|
-
;
|
|
85
|
-
(function () {
|
|
86
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
87
|
-
if (!reactHotLoader) {
|
|
88
|
-
return;
|
|
89
|
-
}
|
|
90
|
-
reactHotLoader.register(initialState, "initialState", "/home/vsts/work/1/s/src/reducers/tasks.js");
|
|
91
|
-
reactHotLoader.register(tasks, "tasks", "/home/vsts/work/1/s/src/reducers/tasks.js");
|
|
92
|
-
reactHotLoader.register(_default2, "default", "/home/vsts/work/1/s/src/reducers/tasks.js");
|
|
93
|
-
})();
|
|
94
|
-
;
|
|
95
|
-
(function () {
|
|
96
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
97
|
-
leaveModule && leaveModule(module);
|
|
98
|
-
})();
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.firstDialogErrorMessageSelector = void 0;
|
|
5
|
-
var _reselect = require("reselect");
|
|
6
|
-
(function () {
|
|
7
|
-
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
8
|
-
enterModule && enterModule(module);
|
|
9
|
-
})();
|
|
10
|
-
(function () {
|
|
11
|
-
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
12
|
-
enterModule && enterModule(module);
|
|
13
|
-
})();
|
|
14
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
15
|
-
return a;
|
|
16
|
-
};
|
|
17
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
18
|
-
return a;
|
|
19
|
-
};
|
|
20
|
-
var globalMsgData = function globalMsgData(state) {
|
|
21
|
-
return state.get("globalErrorMessages");
|
|
22
|
-
};
|
|
23
|
-
var firstDialogErrorMessageSelector = exports.firstDialogErrorMessageSelector = (0, _reselect.createSelector)(globalMsgData, function (data) {
|
|
24
|
-
var msgs = data.getIn(["dialog", "errorMessages"]);
|
|
25
|
-
if (msgs.size === 0) {
|
|
26
|
-
return null;
|
|
27
|
-
}
|
|
28
|
-
return msgs.first().toJS();
|
|
29
|
-
});
|
|
30
|
-
;
|
|
31
|
-
(function () {
|
|
32
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
33
|
-
if (!reactHotLoader) {
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
reactHotLoader.register(globalMsgData, "globalMsgData", "/home/vsts/work/1/s/src/selectors/globalErrorMessages.js");
|
|
37
|
-
reactHotLoader.register(firstDialogErrorMessageSelector, "firstDialogErrorMessageSelector", "/home/vsts/work/1/s/src/selectors/globalErrorMessages.js");
|
|
38
|
-
})();
|
|
39
|
-
;
|
|
40
|
-
(function () {
|
|
41
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
42
|
-
leaveModule && leaveModule(module);
|
|
43
|
-
})();
|
|
44
|
-
;
|
|
45
|
-
(function () {
|
|
46
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
47
|
-
if (!reactHotLoader) {
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
reactHotLoader.register(globalMsgData, "globalMsgData", "/home/vsts/work/1/s/src/selectors/globalErrorMessages.js");
|
|
51
|
-
reactHotLoader.register(firstDialogErrorMessageSelector, "firstDialogErrorMessageSelector", "/home/vsts/work/1/s/src/selectors/globalErrorMessages.js");
|
|
52
|
-
})();
|
|
53
|
-
;
|
|
54
|
-
(function () {
|
|
55
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
56
|
-
leaveModule && leaveModule(module);
|
|
57
|
-
})();
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.getScopeChangeInProgress = void 0;
|
|
5
|
-
var _reselect = require("reselect");
|
|
6
|
-
(function () {
|
|
7
|
-
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
8
|
-
enterModule && enterModule(module);
|
|
9
|
-
})();
|
|
10
|
-
(function () {
|
|
11
|
-
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
12
|
-
enterModule && enterModule(module);
|
|
13
|
-
})();
|
|
14
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
15
|
-
return a;
|
|
16
|
-
};
|
|
17
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
18
|
-
return a;
|
|
19
|
-
};
|
|
20
|
-
var scopeRouteStateData = function scopeRouteStateData(state) {
|
|
21
|
-
return state.get("scopeRouteState");
|
|
22
|
-
};
|
|
23
|
-
var getScopeChangeInProgress = exports.getScopeChangeInProgress = (0, _reselect.createSelector)(scopeRouteStateData, function (data) {
|
|
24
|
-
return data.get("scopeChangeInProgress");
|
|
25
|
-
});
|
|
26
|
-
;
|
|
27
|
-
(function () {
|
|
28
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
29
|
-
if (!reactHotLoader) {
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
reactHotLoader.register(scopeRouteStateData, "scopeRouteStateData", "/home/vsts/work/1/s/src/selectors/scopeRouteState.js");
|
|
33
|
-
reactHotLoader.register(getScopeChangeInProgress, "getScopeChangeInProgress", "/home/vsts/work/1/s/src/selectors/scopeRouteState.js");
|
|
34
|
-
})();
|
|
35
|
-
;
|
|
36
|
-
(function () {
|
|
37
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
38
|
-
leaveModule && leaveModule(module);
|
|
39
|
-
})();
|
|
40
|
-
;
|
|
41
|
-
(function () {
|
|
42
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
43
|
-
if (!reactHotLoader) {
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
reactHotLoader.register(scopeRouteStateData, "scopeRouteStateData", "/home/vsts/work/1/s/src/selectors/scopeRouteState.js");
|
|
47
|
-
reactHotLoader.register(getScopeChangeInProgress, "getScopeChangeInProgress", "/home/vsts/work/1/s/src/selectors/scopeRouteState.js");
|
|
48
|
-
})();
|
|
49
|
-
;
|
|
50
|
-
(function () {
|
|
51
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
52
|
-
leaveModule && leaveModule(module);
|
|
53
|
-
})();
|
package/dist/selectors/tasks.js
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.taskLogs = exports.taskInfo = void 0;
|
|
5
|
-
var _immutable = _interopRequireDefault(require("immutable"));
|
|
6
|
-
var _reselect = require("reselect");
|
|
7
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
8
|
-
(function () {
|
|
9
|
-
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
10
|
-
enterModule && enterModule(module);
|
|
11
|
-
})();
|
|
12
|
-
(function () {
|
|
13
|
-
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
14
|
-
enterModule && enterModule(module);
|
|
15
|
-
})();
|
|
16
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
20
|
-
return a;
|
|
21
|
-
};
|
|
22
|
-
var tasksData = function tasksData(state) {
|
|
23
|
-
return state.get("tasks");
|
|
24
|
-
};
|
|
25
|
-
var taskInfo = exports.taskInfo = function taskInfo(taskId) {
|
|
26
|
-
return (0, _reselect.createSelector)(tasksData, function (tasks) {
|
|
27
|
-
return tasks.getIn(["taskInfos", taskId]) || null;
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
|
-
var taskLogs = exports.taskLogs = function taskLogs(taskId) {
|
|
31
|
-
return (0, _reselect.createSelector)(tasksData, function (tasks) {
|
|
32
|
-
return tasks.getIn(["logs", taskId]) || _immutable.default.List();
|
|
33
|
-
});
|
|
34
|
-
};
|
|
35
|
-
;
|
|
36
|
-
(function () {
|
|
37
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
38
|
-
if (!reactHotLoader) {
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
reactHotLoader.register(tasksData, "tasksData", "/home/vsts/work/1/s/src/selectors/tasks.js");
|
|
42
|
-
reactHotLoader.register(taskInfo, "taskInfo", "/home/vsts/work/1/s/src/selectors/tasks.js");
|
|
43
|
-
reactHotLoader.register(taskLogs, "taskLogs", "/home/vsts/work/1/s/src/selectors/tasks.js");
|
|
44
|
-
})();
|
|
45
|
-
;
|
|
46
|
-
(function () {
|
|
47
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
48
|
-
leaveModule && leaveModule(module);
|
|
49
|
-
})();
|
|
50
|
-
;
|
|
51
|
-
(function () {
|
|
52
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
53
|
-
if (!reactHotLoader) {
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
reactHotLoader.register(tasksData, "tasksData", "/home/vsts/work/1/s/src/selectors/tasks.js");
|
|
57
|
-
reactHotLoader.register(taskInfo, "taskInfo", "/home/vsts/work/1/s/src/selectors/tasks.js");
|
|
58
|
-
reactHotLoader.register(taskLogs, "taskLogs", "/home/vsts/work/1/s/src/selectors/tasks.js");
|
|
59
|
-
})();
|
|
60
|
-
;
|
|
61
|
-
(function () {
|
|
62
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
63
|
-
leaveModule && leaveModule(module);
|
|
64
|
-
})();
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.extractStandardErrorMessagesFromResponse = void 0;
|
|
5
|
-
(function () {
|
|
6
|
-
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
7
|
-
enterModule && enterModule(module);
|
|
8
|
-
})();
|
|
9
|
-
(function () {
|
|
10
|
-
var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined;
|
|
11
|
-
enterModule && enterModule(module);
|
|
12
|
-
})();
|
|
13
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
14
|
-
return a;
|
|
15
|
-
};
|
|
16
|
-
var __signature__ = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default.signature : function (a) {
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var extractStandardErrorMessagesFromResponse = exports.extractStandardErrorMessagesFromResponse = function extractStandardErrorMessagesFromResponse(response, validationLookupModule, validationLookupName) {
|
|
20
|
-
var hasErrors = false;
|
|
21
|
-
var messages = [];
|
|
22
|
-
if (response != null && response.error) {
|
|
23
|
-
var _response$payload, _response$payload3;
|
|
24
|
-
hasErrors = true;
|
|
25
|
-
if (((_response$payload = response.payload) == null ? void 0 : _response$payload.status) === 422) {
|
|
26
|
-
var _response$payload2;
|
|
27
|
-
if ((_response$payload2 = response.payload) != null && (_response$payload2 = _response$payload2.response) != null && _response$payload2.failures) {
|
|
28
|
-
// uses structure from our .Net ValidationFailuresExceptionHandler
|
|
29
|
-
response.payload.response.failures.forEach(function (failure) {
|
|
30
|
-
if (failure.errorCode) {
|
|
31
|
-
messages.push({
|
|
32
|
-
message: failure.errorMessage,
|
|
33
|
-
lookupModule: validationLookupModule,
|
|
34
|
-
lookupName: validationLookupName,
|
|
35
|
-
lookupKey: failure.errorCode
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
} else if (((_response$payload3 = response.payload) == null ? void 0 : _response$payload3.status) === 500) {
|
|
41
|
-
var _response$payload4;
|
|
42
|
-
if ((_response$payload4 = response.payload) != null && (_response$payload4 = _response$payload4.response) != null && _response$payload4.errors) {
|
|
43
|
-
// uses structure from our .Net OrckestraExceptionErrorHandler
|
|
44
|
-
response.payload.response.errors.forEach(function (err) {
|
|
45
|
-
messages.push({
|
|
46
|
-
message: err.message,
|
|
47
|
-
lookupModule: err.lookupModule,
|
|
48
|
-
lookupName: err.lookupName,
|
|
49
|
-
lookupKey: err.lookupKey,
|
|
50
|
-
lookupReplacementValues: err.lookupReplacementValues
|
|
51
|
-
});
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
return {
|
|
57
|
-
hasErrors: hasErrors,
|
|
58
|
-
messages: messages
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
;
|
|
62
|
-
(function () {
|
|
63
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
64
|
-
if (!reactHotLoader) {
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
|
-
reactHotLoader.register(extractStandardErrorMessagesFromResponse, "extractStandardErrorMessagesFromResponse", "/home/vsts/work/1/s/src/utils/responseProcessingHelper.js");
|
|
68
|
-
})();
|
|
69
|
-
;
|
|
70
|
-
(function () {
|
|
71
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
72
|
-
leaveModule && leaveModule(module);
|
|
73
|
-
})();
|
|
74
|
-
;
|
|
75
|
-
(function () {
|
|
76
|
-
var reactHotLoader = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.default : undefined;
|
|
77
|
-
if (!reactHotLoader) {
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
reactHotLoader.register(extractStandardErrorMessagesFromResponse, "extractStandardErrorMessagesFromResponse", "/home/vsts/work/1/s/src/utils/responseProcessingHelper.js");
|
|
81
|
-
})();
|
|
82
|
-
;
|
|
83
|
-
(function () {
|
|
84
|
-
var leaveModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.leaveModule : undefined;
|
|
85
|
-
leaveModule && leaveModule(module);
|
|
86
|
-
})();
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export const PUSH_GLOBAL_ERROR_MESSAGE = "PUSH_GLOBAL_ERROR_MESSAGE";
|
|
2
|
-
|
|
3
|
-
export const pushGlobalErrorMessage = msg => ({
|
|
4
|
-
type: PUSH_GLOBAL_ERROR_MESSAGE,
|
|
5
|
-
payload: msg,
|
|
6
|
-
});
|
|
7
|
-
|
|
8
|
-
export const POP_GLOBAL_ERROR_MESSAGE = "POP_GLOBAL_ERROR_MESSAGE";
|
|
9
|
-
|
|
10
|
-
export const popGlobalErrorMessage = () => ({
|
|
11
|
-
type: POP_GLOBAL_ERROR_MESSAGE,
|
|
12
|
-
});
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
POP_GLOBAL_ERROR_MESSAGE,
|
|
3
|
-
popGlobalErrorMessage,
|
|
4
|
-
PUSH_GLOBAL_ERROR_MESSAGE,
|
|
5
|
-
pushGlobalErrorMessage,
|
|
6
|
-
} from "./globalErrorMessages";
|
|
7
|
-
|
|
8
|
-
describe("pushGlobalErrorMessage", () => {
|
|
9
|
-
it("create action with message", () =>
|
|
10
|
-
expect(pushGlobalErrorMessage, "when called with", [{ custom: "message" }], "to equal", {
|
|
11
|
-
type: PUSH_GLOBAL_ERROR_MESSAGE,
|
|
12
|
-
payload: { custom: "message" },
|
|
13
|
-
}));
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
describe("popGlobalErrorMessage", () => {
|
|
17
|
-
it("create action", () =>
|
|
18
|
-
expect(popGlobalErrorMessage, "when called with", [], "to equal", {
|
|
19
|
-
type: POP_GLOBAL_ERROR_MESSAGE,
|
|
20
|
-
}));
|
|
21
|
-
});
|
package/src/actions/tasks.js
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { makeActionTypes } from "./makeApiAction";
|
|
2
|
-
import makeOrcApiAction from "./makeOrcApiAction";
|
|
3
|
-
import {
|
|
4
|
-
deleteTaskInfoRequest,
|
|
5
|
-
getRequesterTasksInfoRequest,
|
|
6
|
-
getTaskExecutionLogsRequest,
|
|
7
|
-
getTaskInfoRequest,
|
|
8
|
-
} from "./requestsApi";
|
|
9
|
-
|
|
10
|
-
const GET_TASKINFO = "GET_TASKINFO";
|
|
11
|
-
|
|
12
|
-
export const [GET_TASKINFO_REQUEST, GET_TASKINFO_SUCCESS, GET_TASKINFO_FAILURE] = makeActionTypes(GET_TASKINFO);
|
|
13
|
-
|
|
14
|
-
export const getTaskInfo = taskId => makeOrcApiAction(GET_TASKINFO, getTaskInfoRequest.buildUrl(taskId));
|
|
15
|
-
|
|
16
|
-
export const GET_TASK_LIST = "GET_TASK_LIST";
|
|
17
|
-
|
|
18
|
-
export const ssrsDownloadFilterTaskNames = [
|
|
19
|
-
"Orckestra.Overture.Providers.CommerceEngine.Profiles.ProfileSchemaExportTask, Orckestra.Overture.Providers.CommerceEngine",
|
|
20
|
-
"Orckestra.Overture.Providers.CommerceEngine.Profiles.ProfileSchemaImportTask, Orckestra.Overture.Providers.CommerceEngine",
|
|
21
|
-
"Orckestra.Overture.Providers.CommerceEngine.Orders.ExportOrderSchemaTask, Orckestra.Overture.Providers.CommerceEngine",
|
|
22
|
-
"Orckestra.Overture.Providers.CommerceEngine.Orders.ImportOrderSchemaTask, Orckestra.Overture.Providers.CommerceEngine",
|
|
23
|
-
"Orckestra.Overture.Providers.CommerceEngine.Products.ImportExport.ExportProductsTask, Orckestra.Overture.Providers.CommerceEngine",
|
|
24
|
-
"Orckestra.Overture.Providers.CommerceEngine.Products.ImportExport.ProductSchemaExportTask, Orckestra.Overture.Providers.CommerceEngine",
|
|
25
|
-
"Orckestra.Overture.Providers.CommerceEngine.Products.ImportExport.ImportProductsTask, Orckestra.Overture.Providers.CommerceEngine",
|
|
26
|
-
"OrckestraCommerce.DataExchange.Product.Tasks.ProductExportTask, OrckestraCommerce.DataExchange",
|
|
27
|
-
"Orckestra.Overture.Providers.CommerceEngine.Marketing.ExportCouponCodesTask, Orckestra.Overture.Providers.CommerceEngine",
|
|
28
|
-
"Orckestra.Overture.Providers.CommerceEngine.Marketing.ImportCouponCodesTask, Orckestra.Overture.Providers.CommerceEngine",
|
|
29
|
-
"Orckestra.Overture.Providers.CommerceEngine.Marketing.GenerateCouponTask, Orckestra.Overture.Providers.CommerceEngine",
|
|
30
|
-
"Orckestra.Overture.Providers.CommerceEngine.Reporting.ReportExportTask, Orckestra.Overture.Providers.CommerceEngine",
|
|
31
|
-
];
|
|
32
|
-
|
|
33
|
-
export const [GET_TASK_LIST_REQUEST, GET_TASK_LIST_SUCCESS, GET_TASK_LIST_FAILURE] = makeActionTypes(GET_TASK_LIST);
|
|
34
|
-
|
|
35
|
-
export const getTaskList = (requester, filterTaskNames, lastModified = null, addToActiveRequests = true) =>
|
|
36
|
-
makeOrcApiAction(
|
|
37
|
-
GET_TASK_LIST,
|
|
38
|
-
getRequesterTasksInfoRequest.buildUrl({
|
|
39
|
-
filterTaskNames: filterTaskNames,
|
|
40
|
-
requester: requester,
|
|
41
|
-
lastModified: lastModified,
|
|
42
|
-
}),
|
|
43
|
-
getRequesterTasksInfoRequest.verb,
|
|
44
|
-
{
|
|
45
|
-
meta: {
|
|
46
|
-
addToActiveRequests,
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
);
|
|
50
|
-
|
|
51
|
-
const DELETE_TASK = "DELETE_TASK";
|
|
52
|
-
|
|
53
|
-
export const [DELETE_TASK_REQUEST, DELETE_TASK_SUCCESS, DELETE_TASK_FAILURE] = makeActionTypes(DELETE_TASK);
|
|
54
|
-
|
|
55
|
-
export const deleteTask = taskId =>
|
|
56
|
-
makeOrcApiAction(DELETE_TASK, deleteTaskInfoRequest.buildUrl(taskId), deleteTaskInfoRequest.verb, {
|
|
57
|
-
meta: { taskId },
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
const GET_TASK_LOG = "GET_TASK_LOG";
|
|
61
|
-
|
|
62
|
-
export const [GET_TASK_LOG_REQUEST, GET_TASK_LOG_SUCCESS, GET_TASK_LOG_FAILURE] = makeActionTypes(GET_TASK_LOG);
|
|
63
|
-
|
|
64
|
-
export const getTaskLog = (taskId, addToActiveRequests = true) =>
|
|
65
|
-
makeOrcApiAction(GET_TASK_LOG, getTaskExecutionLogsRequest.buildUrl(taskId), getTaskExecutionLogsRequest.verb, {
|
|
66
|
-
meta: {
|
|
67
|
-
taskId,
|
|
68
|
-
addToActiveRequests,
|
|
69
|
-
},
|
|
70
|
-
});
|
|
71
|
-
|
|
72
|
-
export const CLEAR_TASK_LOG = "CLEAR_TASK_LOG";
|
|
73
|
-
|
|
74
|
-
export const clearTaskLog = taskId => ({
|
|
75
|
-
type: CLEAR_TASK_LOG,
|
|
76
|
-
meta: { taskId },
|
|
77
|
-
});
|