@banch0u/core-project-test-repository 2.2.4 → 2.2.9
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/README.md +104 -104
- package/dist/assets/css/antd.css +842 -842
- package/dist/assets/css/variables.css +16 -16
- package/dist/assets/fonts/fonts.css +52 -52
- package/dist/components/Button/index.module.scss +154 -154
- package/dist/components/ColSort/index.module.scss +62 -62
- package/dist/components/Delete/Delete.module.scss +22 -22
- package/dist/components/DeleteModal/DeleteModal.module.scss +11 -11
- package/dist/components/Filter/index.module.scss +99 -99
- package/dist/components/FormModal/index.js +16 -16
- package/dist/components/FormModal/index.module.scss +14 -14
- package/dist/components/ImagePreviewModal/index.js +23 -23
- package/dist/components/ImagePreviewModal/index.module.scss +27 -27
- package/dist/components/Input/index.module.scss +111 -111
- package/dist/components/Loading/index.module.scss +18 -18
- package/dist/components/NotificationDropdown/index.js +8 -8
- package/dist/components/NotificationDropdown/index.module.scss +83 -83
- package/dist/components/NotificationSettingsContent/index.module.scss +70 -70
- package/dist/components/Pagination/Pagination.module.scss +8 -8
- package/dist/components/ProfileOptions/index.js +21 -21
- package/dist/components/ProfileOptions/index.module.scss +265 -265
- package/dist/components/Select/index.module.scss +72 -72
- package/dist/components/Success/Success.module.scss +26 -26
- package/dist/components/Table/index.module.scss +76 -76
- package/dist/helpers/enums.js +10 -0
- package/dist/index.css +32 -32
- package/dist/layout/Header/AppSelect/index.module.scss +72 -72
- package/dist/layout/Header/index.module.scss +12 -12
- package/dist/layout/QuestionnairesLayout/index.module.scss +3 -3
- package/dist/layout/QuestionnairesSidebar/index.js +26 -2
- package/dist/layout/QuestionnairesSidebar/index.module.scss +77 -77
- package/dist/layout/Sidebar/index.js +15 -15
- package/dist/layout/Sidebar/index.module.scss +67 -67
- package/dist/pages/Login/index.js +15 -15
- package/dist/pages/Login/index.module.scss +123 -123
- package/dist/pages/NotFound/index.module.scss +50 -50
- package/dist/pages/Platform/index.js +15 -15
- package/dist/pages/Platform/index.module.scss +125 -125
- package/dist/pages/Questionnnaires/Questionnaires.module.scss +211 -211
- package/dist/pages/Questionnnaires/QuestionnairesAcademicdegreesContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesApplicationFormContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesAreasContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesBarrelContent/constant.js +64 -0
- package/dist/pages/Questionnnaires/QuestionnairesBarrelContent/index.js +292 -0
- package/dist/pages/Questionnnaires/QuestionnairesBrandsContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesCategoriesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesChassisTypesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesChemicalsContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesColorsContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesCompaniesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesContractTopicsContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesContractTypesSubtypesContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesContractcurrenciesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesContracttypesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesContragenttypesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesCountriesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesCrushReasonsContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesDefaultAgreementPlansContent/index.js +26 -24
- package/dist/pages/Questionnnaires/QuestionnairesDeliveryMethodContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesDetailPartsContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesDisabilitystatusesContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesDocumentRecieveMethodsContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesDocumentTypeContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesDocumentWhomContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesDrivingcategoriesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesEducationinstitutionsContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesEducationlevelsContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesEducationpaymentsContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesEmployeeConfigurations/index.js +13 -13
- package/dist/pages/Questionnnaires/QuestionnairesEngineTypesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesExecutionRulesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesExtraServicesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesFieldContent/constant.js +64 -0
- package/dist/pages/Questionnnaires/QuestionnairesFieldContent/index.js +275 -0
- package/dist/pages/Questionnnaires/QuestionnairesFuelTypesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesGearboxTypesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesGeneralstructurestatusesContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesGeneralstructuretypesContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesHallsContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesHonorarytitlesContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesInsurancetypesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesInternalStructureContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesIssuedAuthoritiesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesMarginNoteTextsContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesMeasurementTypesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesMilitarycategoriesContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesMilitarygroupsContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesMilitaryranksContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesMilitarystaffsContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesModelsContent/index.js +13 -13
- package/dist/pages/Questionnnaires/QuestionnairesOilFieldsContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesOrdersContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesOrganizationsContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesOwnersContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesOwnershipTypesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesPenaltyTypesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesPositionsContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesRegionsContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesRepairTypesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesRepairmentWorkTypesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesReprimandtypesContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesRouteLocationsContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesSpecialdaysContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesSpecializationsContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesStructuresContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesSubtopicContent/index.js +15 -15
- package/dist/pages/Questionnnaires/QuestionnairesTopicContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesTransmitterTypesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesVehicleCategoriesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesVehicleGroupsContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesVehicleTypesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesWarparticipantsContent/index.js +12 -12
- package/dist/pages/Questionnnaires/QuestionnairesWellContent/constant.js +64 -0
- package/dist/pages/Questionnnaires/QuestionnairesWellContent/index.js +280 -0
- package/dist/pages/Questionnnaires/QuestionnairesWorkModesContent/index.js +8 -8
- package/dist/pages/Questionnnaires/QuestionnairesWorkschedulesContent/index.js +12 -12
- package/dist/routes/QuestionnaireRoutes.js +19 -1
- package/dist/store/slices/auth/index.js +60 -60
- package/dist/store/slices/auth/service.js +20 -20
- package/dist/store/slices/companyInfo/index.js +10 -10
- package/dist/store/slices/companyInfo/service.js +4 -4
- package/dist/store/slices/employees/index.js +30 -30
- package/dist/store/slices/employees/service.js +12 -12
- package/dist/store/slices/global/index.js +170 -152
- package/dist/store/slices/notification/index.js +73 -73
- package/dist/store/slices/notification/service.js +24 -24
- package/dist/store/slices/questionnaire/index.js +9155 -8528
- package/dist/store/slices/questionnaire/service.js +3476 -3092
- package/dist/tools/questionnaireGenerator.js +12 -12
- package/dist/translations/index.json +364 -364
- package/dist/utils/axios.js +6 -6
- package/dist/utils/message.js +2 -2
- package/dist/utils/path.js +12 -0
- package/package.json +1 -1
|
@@ -9,27 +9,27 @@ var initialState = {
|
|
|
9
9
|
};
|
|
10
10
|
export var getNotifications = createAsyncThunk("/getNotifications", /*#__PURE__*/function () {
|
|
11
11
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(data, _ref) {
|
|
12
|
-
var dispatch, response;
|
|
13
|
-
return _regeneratorRuntime.wrap(function
|
|
12
|
+
var dispatch, response, _t;
|
|
13
|
+
return _regeneratorRuntime.wrap(function (_context) {
|
|
14
14
|
while (1) switch (_context.prev = _context.next) {
|
|
15
15
|
case 0:
|
|
16
16
|
dispatch = _ref.dispatch;
|
|
17
17
|
_context.prev = 1;
|
|
18
|
-
_context.next =
|
|
18
|
+
_context.next = 2;
|
|
19
19
|
return Services.getNotifications(data === null || data === void 0 ? void 0 : data.size, data === null || data === void 0 ? void 0 : data.page);
|
|
20
|
-
case
|
|
20
|
+
case 2:
|
|
21
21
|
response = _context.sent;
|
|
22
22
|
return _context.abrupt("return", response);
|
|
23
|
-
case
|
|
24
|
-
_context.prev =
|
|
25
|
-
|
|
26
|
-
errorMessage(
|
|
23
|
+
case 3:
|
|
24
|
+
_context.prev = 3;
|
|
25
|
+
_t = _context["catch"](1);
|
|
26
|
+
errorMessage(_t.response.data.message);
|
|
27
27
|
// dispatch(setLoading(false));
|
|
28
|
-
case
|
|
28
|
+
case 4:
|
|
29
29
|
case "end":
|
|
30
30
|
return _context.stop();
|
|
31
31
|
}
|
|
32
|
-
}, _callee, null, [[1,
|
|
32
|
+
}, _callee, null, [[1, 3]]);
|
|
33
33
|
}));
|
|
34
34
|
return function (_x, _x2) {
|
|
35
35
|
return _ref2.apply(this, arguments);
|
|
@@ -37,31 +37,31 @@ export var getNotifications = createAsyncThunk("/getNotifications", /*#__PURE__*
|
|
|
37
37
|
}());
|
|
38
38
|
export var readNotification = createAsyncThunk("/readNotification", /*#__PURE__*/function () {
|
|
39
39
|
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(data, _ref3) {
|
|
40
|
-
var dispatch, response;
|
|
41
|
-
return _regeneratorRuntime.wrap(function
|
|
40
|
+
var dispatch, response, _t2;
|
|
41
|
+
return _regeneratorRuntime.wrap(function (_context2) {
|
|
42
42
|
while (1) switch (_context2.prev = _context2.next) {
|
|
43
43
|
case 0:
|
|
44
44
|
dispatch = _ref3.dispatch;
|
|
45
45
|
_context2.prev = 1;
|
|
46
|
-
_context2.next =
|
|
46
|
+
_context2.next = 2;
|
|
47
47
|
return Services.readNotification(data);
|
|
48
|
-
case
|
|
48
|
+
case 2:
|
|
49
49
|
response = _context2.sent;
|
|
50
50
|
// dispatch(setLoading(false));
|
|
51
51
|
dispatch(setNotificationsRender(function (prev) {
|
|
52
52
|
return !prev;
|
|
53
53
|
}));
|
|
54
54
|
return _context2.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
55
|
-
case
|
|
56
|
-
_context2.prev =
|
|
57
|
-
|
|
58
|
-
errorMessage(
|
|
55
|
+
case 3:
|
|
56
|
+
_context2.prev = 3;
|
|
57
|
+
_t2 = _context2["catch"](1);
|
|
58
|
+
errorMessage(_t2.response.data.message);
|
|
59
59
|
// dispatch(setLoading(false));
|
|
60
|
-
case
|
|
60
|
+
case 4:
|
|
61
61
|
case "end":
|
|
62
62
|
return _context2.stop();
|
|
63
63
|
}
|
|
64
|
-
}, _callee2, null, [[1,
|
|
64
|
+
}, _callee2, null, [[1, 3]]);
|
|
65
65
|
}));
|
|
66
66
|
return function (_x3, _x4) {
|
|
67
67
|
return _ref4.apply(this, arguments);
|
|
@@ -69,31 +69,31 @@ export var readNotification = createAsyncThunk("/readNotification", /*#__PURE__*
|
|
|
69
69
|
}());
|
|
70
70
|
export var readNotificationAll = createAsyncThunk("/readNotificationAll", /*#__PURE__*/function () {
|
|
71
71
|
var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3(_, _ref5) {
|
|
72
|
-
var dispatch, response;
|
|
73
|
-
return _regeneratorRuntime.wrap(function
|
|
72
|
+
var dispatch, response, _t3;
|
|
73
|
+
return _regeneratorRuntime.wrap(function (_context3) {
|
|
74
74
|
while (1) switch (_context3.prev = _context3.next) {
|
|
75
75
|
case 0:
|
|
76
76
|
dispatch = _ref5.dispatch;
|
|
77
77
|
_context3.prev = 1;
|
|
78
|
-
_context3.next =
|
|
78
|
+
_context3.next = 2;
|
|
79
79
|
return Services.readNotificationAll();
|
|
80
|
-
case
|
|
80
|
+
case 2:
|
|
81
81
|
response = _context3.sent;
|
|
82
82
|
// dispatch(setLoading(false));
|
|
83
83
|
dispatch(setNotificationsRender(function (prev) {
|
|
84
84
|
return !prev;
|
|
85
85
|
}));
|
|
86
86
|
return _context3.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
87
|
-
case
|
|
88
|
-
_context3.prev =
|
|
89
|
-
|
|
90
|
-
errorMessage(
|
|
87
|
+
case 3:
|
|
88
|
+
_context3.prev = 3;
|
|
89
|
+
_t3 = _context3["catch"](1);
|
|
90
|
+
errorMessage(_t3.response.data.message);
|
|
91
91
|
// dispatch(setLoading(false));
|
|
92
|
-
case
|
|
92
|
+
case 4:
|
|
93
93
|
case "end":
|
|
94
94
|
return _context3.stop();
|
|
95
95
|
}
|
|
96
|
-
}, _callee3, null, [[1,
|
|
96
|
+
}, _callee3, null, [[1, 3]]);
|
|
97
97
|
}));
|
|
98
98
|
return function (_x5, _x6) {
|
|
99
99
|
return _ref6.apply(this, arguments);
|
|
@@ -101,104 +101,104 @@ export var readNotificationAll = createAsyncThunk("/readNotificationAll", /*#__P
|
|
|
101
101
|
}());
|
|
102
102
|
export var checkNotification = createAsyncThunk("/checkNotification", /*#__PURE__*/function () {
|
|
103
103
|
var _ref8 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(_, _ref7) {
|
|
104
|
-
var dispatch, response;
|
|
105
|
-
return _regeneratorRuntime.wrap(function
|
|
104
|
+
var dispatch, response, _t4;
|
|
105
|
+
return _regeneratorRuntime.wrap(function (_context4) {
|
|
106
106
|
while (1) switch (_context4.prev = _context4.next) {
|
|
107
107
|
case 0:
|
|
108
108
|
dispatch = _ref7.dispatch;
|
|
109
109
|
_context4.prev = 1;
|
|
110
|
-
_context4.next =
|
|
110
|
+
_context4.next = 2;
|
|
111
111
|
return Services.checkNotification();
|
|
112
|
-
case
|
|
112
|
+
case 2:
|
|
113
113
|
response = _context4.sent;
|
|
114
114
|
return _context4.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
115
|
-
case
|
|
116
|
-
_context4.prev =
|
|
117
|
-
|
|
118
|
-
errorMessage(
|
|
115
|
+
case 3:
|
|
116
|
+
_context4.prev = 3;
|
|
117
|
+
_t4 = _context4["catch"](1);
|
|
118
|
+
errorMessage(_t4.response.data.message);
|
|
119
119
|
// dispatch(setLoading(false));
|
|
120
|
-
case
|
|
120
|
+
case 4:
|
|
121
121
|
case "end":
|
|
122
122
|
return _context4.stop();
|
|
123
123
|
}
|
|
124
|
-
}, _callee4, null, [[1,
|
|
124
|
+
}, _callee4, null, [[1, 3]]);
|
|
125
125
|
}));
|
|
126
126
|
return function (_x7, _x8) {
|
|
127
127
|
return _ref8.apply(this, arguments);
|
|
128
128
|
};
|
|
129
129
|
}());
|
|
130
130
|
export var getNotificationSettings = createAsyncThunk("/getNotificationSettings", /*#__PURE__*/function () {
|
|
131
|
-
var
|
|
132
|
-
var dispatch, response;
|
|
133
|
-
return _regeneratorRuntime.wrap(function
|
|
131
|
+
var _ref0 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(_, _ref9) {
|
|
132
|
+
var dispatch, response, _t5;
|
|
133
|
+
return _regeneratorRuntime.wrap(function (_context5) {
|
|
134
134
|
while (1) switch (_context5.prev = _context5.next) {
|
|
135
135
|
case 0:
|
|
136
136
|
dispatch = _ref9.dispatch;
|
|
137
137
|
_context5.prev = 1;
|
|
138
|
-
_context5.next =
|
|
138
|
+
_context5.next = 2;
|
|
139
139
|
return Services.getNotificationSettings();
|
|
140
|
-
case
|
|
140
|
+
case 2:
|
|
141
141
|
response = _context5.sent;
|
|
142
142
|
return _context5.abrupt("return", response);
|
|
143
|
-
case
|
|
144
|
-
_context5.prev =
|
|
145
|
-
|
|
146
|
-
errorMessage(
|
|
143
|
+
case 3:
|
|
144
|
+
_context5.prev = 3;
|
|
145
|
+
_t5 = _context5["catch"](1);
|
|
146
|
+
errorMessage(_t5.response.data.message);
|
|
147
147
|
// dispatch(setLoading(false));
|
|
148
|
-
case
|
|
148
|
+
case 4:
|
|
149
149
|
case "end":
|
|
150
150
|
return _context5.stop();
|
|
151
151
|
}
|
|
152
|
-
}, _callee5, null, [[1,
|
|
152
|
+
}, _callee5, null, [[1, 3]]);
|
|
153
153
|
}));
|
|
154
|
-
return function (_x9,
|
|
155
|
-
return
|
|
154
|
+
return function (_x9, _x0) {
|
|
155
|
+
return _ref0.apply(this, arguments);
|
|
156
156
|
};
|
|
157
157
|
}());
|
|
158
158
|
export var editNotificationSettings = createAsyncThunk("/editNotificationSettings", /*#__PURE__*/function () {
|
|
159
|
-
var
|
|
160
|
-
var dispatch, response;
|
|
161
|
-
return _regeneratorRuntime.wrap(function
|
|
159
|
+
var _ref10 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(data, _ref1) {
|
|
160
|
+
var dispatch, response, _t6;
|
|
161
|
+
return _regeneratorRuntime.wrap(function (_context6) {
|
|
162
162
|
while (1) switch (_context6.prev = _context6.next) {
|
|
163
163
|
case 0:
|
|
164
|
-
dispatch =
|
|
164
|
+
dispatch = _ref1.dispatch;
|
|
165
165
|
_context6.prev = 1;
|
|
166
|
-
_context6.next =
|
|
166
|
+
_context6.next = 2;
|
|
167
167
|
return Services.editNotificationSettings(data);
|
|
168
|
-
case
|
|
168
|
+
case 2:
|
|
169
169
|
response = _context6.sent;
|
|
170
170
|
// dispatch(setLoading(false));
|
|
171
171
|
dispatch(setNotificationsRender(function (prev) {
|
|
172
172
|
return !prev;
|
|
173
173
|
}));
|
|
174
174
|
return _context6.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
175
|
-
case
|
|
176
|
-
_context6.prev =
|
|
177
|
-
|
|
178
|
-
errorMessage(
|
|
175
|
+
case 3:
|
|
176
|
+
_context6.prev = 3;
|
|
177
|
+
_t6 = _context6["catch"](1);
|
|
178
|
+
errorMessage(_t6.response.data.message);
|
|
179
179
|
// dispatch(setLoading(false));
|
|
180
|
-
case
|
|
180
|
+
case 4:
|
|
181
181
|
case "end":
|
|
182
182
|
return _context6.stop();
|
|
183
183
|
}
|
|
184
|
-
}, _callee6, null, [[1,
|
|
184
|
+
}, _callee6, null, [[1, 3]]);
|
|
185
185
|
}));
|
|
186
|
-
return function (
|
|
187
|
-
return
|
|
186
|
+
return function (_x1, _x10) {
|
|
187
|
+
return _ref10.apply(this, arguments);
|
|
188
188
|
};
|
|
189
189
|
}());
|
|
190
190
|
export var notification = createSlice({
|
|
191
191
|
name: "notification",
|
|
192
192
|
initialState: initialState,
|
|
193
193
|
extraReducers: function extraReducers(builder) {
|
|
194
|
-
builder.addCase(getNotifications.fulfilled, function (state,
|
|
195
|
-
var payload =
|
|
194
|
+
builder.addCase(getNotifications.fulfilled, function (state, _ref11) {
|
|
195
|
+
var payload = _ref11.payload;
|
|
196
196
|
state.notifications = payload;
|
|
197
|
-
}).addCase(checkNotification.fulfilled, function (state,
|
|
198
|
-
var payload =
|
|
197
|
+
}).addCase(checkNotification.fulfilled, function (state, _ref12) {
|
|
198
|
+
var payload = _ref12.payload;
|
|
199
199
|
state.checkNotification = payload;
|
|
200
|
-
}).addCase(getNotificationSettings.fulfilled, function (state,
|
|
201
|
-
var payload =
|
|
200
|
+
}).addCase(getNotificationSettings.fulfilled, function (state, _ref13) {
|
|
201
|
+
var payload = _ref13.payload;
|
|
202
202
|
state.notificationSettings = payload;
|
|
203
203
|
});
|
|
204
204
|
}
|
|
@@ -10,15 +10,15 @@ var Services = /*#__PURE__*/_createClass(function Services() {
|
|
|
10
10
|
_defineProperty(Services, "getNotifications", /*#__PURE__*/function () {
|
|
11
11
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(size, page) {
|
|
12
12
|
var response;
|
|
13
|
-
return _regeneratorRuntime.wrap(function
|
|
13
|
+
return _regeneratorRuntime.wrap(function (_context) {
|
|
14
14
|
while (1) switch (_context.prev = _context.next) {
|
|
15
15
|
case 0:
|
|
16
|
-
_context.next =
|
|
16
|
+
_context.next = 1;
|
|
17
17
|
return api.get("/NotificationDetails/".concat(size, "/page/").concat(page));
|
|
18
|
-
case
|
|
18
|
+
case 1:
|
|
19
19
|
response = _context.sent;
|
|
20
20
|
return _context.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
21
|
-
case
|
|
21
|
+
case 2:
|
|
22
22
|
case "end":
|
|
23
23
|
return _context.stop();
|
|
24
24
|
}
|
|
@@ -31,15 +31,15 @@ _defineProperty(Services, "getNotifications", /*#__PURE__*/function () {
|
|
|
31
31
|
_defineProperty(Services, "readNotification", /*#__PURE__*/function () {
|
|
32
32
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(data) {
|
|
33
33
|
var response;
|
|
34
|
-
return _regeneratorRuntime.wrap(function
|
|
34
|
+
return _regeneratorRuntime.wrap(function (_context2) {
|
|
35
35
|
while (1) switch (_context2.prev = _context2.next) {
|
|
36
36
|
case 0:
|
|
37
|
-
_context2.next =
|
|
37
|
+
_context2.next = 1;
|
|
38
38
|
return api.put("/NotificationDetails", data);
|
|
39
|
-
case
|
|
39
|
+
case 1:
|
|
40
40
|
response = _context2.sent;
|
|
41
41
|
return _context2.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
42
|
-
case
|
|
42
|
+
case 2:
|
|
43
43
|
case "end":
|
|
44
44
|
return _context2.stop();
|
|
45
45
|
}
|
|
@@ -51,17 +51,17 @@ _defineProperty(Services, "readNotification", /*#__PURE__*/function () {
|
|
|
51
51
|
}());
|
|
52
52
|
_defineProperty(Services, "readNotificationAll", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
|
|
53
53
|
var response;
|
|
54
|
-
return _regeneratorRuntime.wrap(function
|
|
54
|
+
return _regeneratorRuntime.wrap(function (_context3) {
|
|
55
55
|
while (1) switch (_context3.prev = _context3.next) {
|
|
56
56
|
case 0:
|
|
57
|
-
_context3.next =
|
|
57
|
+
_context3.next = 1;
|
|
58
58
|
return api.put("/NotificationDetails/ReadAll", {
|
|
59
59
|
id: ""
|
|
60
60
|
});
|
|
61
|
-
case
|
|
61
|
+
case 1:
|
|
62
62
|
response = _context3.sent;
|
|
63
63
|
return _context3.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
64
|
-
case
|
|
64
|
+
case 2:
|
|
65
65
|
case "end":
|
|
66
66
|
return _context3.stop();
|
|
67
67
|
}
|
|
@@ -69,15 +69,15 @@ _defineProperty(Services, "readNotificationAll", /*#__PURE__*/_asyncToGenerator(
|
|
|
69
69
|
})));
|
|
70
70
|
_defineProperty(Services, "checkNotification", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
|
|
71
71
|
var response;
|
|
72
|
-
return _regeneratorRuntime.wrap(function
|
|
72
|
+
return _regeneratorRuntime.wrap(function (_context4) {
|
|
73
73
|
while (1) switch (_context4.prev = _context4.next) {
|
|
74
74
|
case 0:
|
|
75
|
-
_context4.next =
|
|
75
|
+
_context4.next = 1;
|
|
76
76
|
return api.get("/notificationusersettings/check");
|
|
77
|
-
case
|
|
77
|
+
case 1:
|
|
78
78
|
response = _context4.sent;
|
|
79
79
|
return _context4.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
80
|
-
case
|
|
80
|
+
case 2:
|
|
81
81
|
case "end":
|
|
82
82
|
return _context4.stop();
|
|
83
83
|
}
|
|
@@ -85,15 +85,15 @@ _defineProperty(Services, "checkNotification", /*#__PURE__*/_asyncToGenerator(/*
|
|
|
85
85
|
})));
|
|
86
86
|
_defineProperty(Services, "getNotificationSettings", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5() {
|
|
87
87
|
var response;
|
|
88
|
-
return _regeneratorRuntime.wrap(function
|
|
88
|
+
return _regeneratorRuntime.wrap(function (_context5) {
|
|
89
89
|
while (1) switch (_context5.prev = _context5.next) {
|
|
90
90
|
case 0:
|
|
91
|
-
_context5.next =
|
|
91
|
+
_context5.next = 1;
|
|
92
92
|
return api.get("/notificationusersettings");
|
|
93
|
-
case
|
|
93
|
+
case 1:
|
|
94
94
|
response = _context5.sent;
|
|
95
95
|
return _context5.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
96
|
-
case
|
|
96
|
+
case 2:
|
|
97
97
|
case "end":
|
|
98
98
|
return _context5.stop();
|
|
99
99
|
}
|
|
@@ -102,15 +102,15 @@ _defineProperty(Services, "getNotificationSettings", /*#__PURE__*/_asyncToGenera
|
|
|
102
102
|
_defineProperty(Services, "editNotificationSettings", /*#__PURE__*/function () {
|
|
103
103
|
var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(data) {
|
|
104
104
|
var response;
|
|
105
|
-
return _regeneratorRuntime.wrap(function
|
|
105
|
+
return _regeneratorRuntime.wrap(function (_context6) {
|
|
106
106
|
while (1) switch (_context6.prev = _context6.next) {
|
|
107
107
|
case 0:
|
|
108
|
-
_context6.next =
|
|
108
|
+
_context6.next = 1;
|
|
109
109
|
return api.put("/notificationusersettings", data);
|
|
110
|
-
case
|
|
110
|
+
case 1:
|
|
111
111
|
response = _context6.sent;
|
|
112
112
|
return _context6.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
113
|
-
case
|
|
113
|
+
case 2:
|
|
114
114
|
case "end":
|
|
115
115
|
return _context6.stop();
|
|
116
116
|
}
|