primary_care_admin_binder 0.1.117 → 0.1.118
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/index.cjs.js +54 -3
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -42082,7 +42082,7 @@ var TARGET_REVENUE_DELETE = createAsyncThunk("targetRevenueSlice/targetRevenueDe
|
|
|
42082
42082
|
body = {
|
|
42083
42083
|
db_name: dbName$1,
|
|
42084
42084
|
entity: "targetrevenue",
|
|
42085
|
-
filter: "
|
|
42085
|
+
filter: "targetrevenue._id == '".concat(payload._id, "'"),
|
|
42086
42086
|
metadataId: metaDataId$1,
|
|
42087
42087
|
metadata_dbname: metaDatadbName$1,
|
|
42088
42088
|
is_metadata: true
|
|
@@ -42114,13 +42114,57 @@ var TARGET_REVENUE_DELETE = createAsyncThunk("targetRevenueSlice/targetRevenueDe
|
|
|
42114
42114
|
}
|
|
42115
42115
|
}, _callee4, null, [[2, 10]]);
|
|
42116
42116
|
})));
|
|
42117
|
+
var TARGET_NAME_VALIDATION = createAsyncThunk("targetRevenueSlice/targetNameValidation", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
42118
|
+
var payload,
|
|
42119
|
+
_ref11,
|
|
42120
|
+
rejectWithValue,
|
|
42121
|
+
body,
|
|
42122
|
+
data,
|
|
42123
|
+
_args5 = arguments;
|
|
42124
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
42125
|
+
while (1) {
|
|
42126
|
+
switch (_context5.prev = _context5.next) {
|
|
42127
|
+
case 0:
|
|
42128
|
+
payload = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : "";
|
|
42129
|
+
_ref11 = _args5.length > 1 ? _args5[1] : undefined, rejectWithValue = _ref11.rejectWithValue;
|
|
42130
|
+
_context5.prev = 2;
|
|
42131
|
+
body = {
|
|
42132
|
+
"db_name": dbName$1,
|
|
42133
|
+
"filter": {
|
|
42134
|
+
"targetname": payload
|
|
42135
|
+
},
|
|
42136
|
+
"queryid": "cc3720c8-4cc6-4d66-b7a0-bad5f427576b"
|
|
42137
|
+
};
|
|
42138
|
+
_context5.next = 6;
|
|
42139
|
+
return fetchData({
|
|
42140
|
+
body: JSON.stringify(body)
|
|
42141
|
+
}, __baseUrl__$1);
|
|
42142
|
+
case 6:
|
|
42143
|
+
data = _context5.sent;
|
|
42144
|
+
return _context5.abrupt("return", _objectSpread2$1(_objectSpread2$1({}, defaultState.List), {}, {
|
|
42145
|
+
data: data
|
|
42146
|
+
}));
|
|
42147
|
+
case 10:
|
|
42148
|
+
_context5.prev = 10;
|
|
42149
|
+
_context5.t0 = _context5["catch"](2);
|
|
42150
|
+
return _context5.abrupt("return", rejectWithValue(_objectSpread2$1(_objectSpread2$1({}, defaultReject), {}, {
|
|
42151
|
+
message: _context5.t0.message
|
|
42152
|
+
})));
|
|
42153
|
+
case 13:
|
|
42154
|
+
case "end":
|
|
42155
|
+
return _context5.stop();
|
|
42156
|
+
}
|
|
42157
|
+
}
|
|
42158
|
+
}, _callee5, null, [[2, 10]]);
|
|
42159
|
+
})));
|
|
42117
42160
|
var targetRevenueSlice = createSlice({
|
|
42118
42161
|
name: "targetRevenueSlice",
|
|
42119
42162
|
initialState: {
|
|
42120
42163
|
targetRevenueRead: _objectSpread2$1({}, defaultState.List),
|
|
42121
42164
|
targetRevenueUpsert: _objectSpread2$1({}, defaultState.List),
|
|
42122
42165
|
targetRevenueEdit: _objectSpread2$1({}, defaultState.List),
|
|
42123
|
-
targetRevenueDelete: _objectSpread2$1({}, defaultState.List)
|
|
42166
|
+
targetRevenueDelete: _objectSpread2$1({}, defaultState.List),
|
|
42167
|
+
targetNameValidation: _objectSpread2$1({}, defaultState.List)
|
|
42124
42168
|
},
|
|
42125
42169
|
extraReducers: (_extraReducers$2 = {}, _defineProperty(_extraReducers$2, TARGET_REVENUE_READ.fulfilled, function (state, action) {
|
|
42126
42170
|
state.targetRevenueRead.loading = false, state.targetRevenueRead.error = false, state.targetRevenueRead = action.payload;
|
|
@@ -42146,13 +42190,20 @@ var targetRevenueSlice = createSlice({
|
|
|
42146
42190
|
state.targetRevenueDelete.loading = true, state.targetRevenueDelete.error = false, state.targetRevenueDelete.loading = true;
|
|
42147
42191
|
}), _defineProperty(_extraReducers$2, TARGET_REVENUE_DELETE.rejected, function (state, action) {
|
|
42148
42192
|
state.targetRevenueDelete.loading = false, state.targetRevenueDelete.error = true, state.targetRevenueDelete = action.payload;
|
|
42193
|
+
}), _defineProperty(_extraReducers$2, TARGET_NAME_VALIDATION.fulfilled, function (state, action) {
|
|
42194
|
+
state.targetNameValidation.loading = false, state.targetNameValidation.error = false, state.targetNameValidation = action.payload;
|
|
42195
|
+
}), _defineProperty(_extraReducers$2, TARGET_NAME_VALIDATION.pending, function (state, action) {
|
|
42196
|
+
state.targetNameValidation.loading = true, state.targetNameValidation.error = false, state.targetNameValidation.loading = true;
|
|
42197
|
+
}), _defineProperty(_extraReducers$2, TARGET_NAME_VALIDATION.rejected, function (state, action) {
|
|
42198
|
+
state.targetNameValidation.loading = false, state.targetNameValidation.error = true, state.targetNameValidation = action.payload;
|
|
42149
42199
|
}), _extraReducers$2)
|
|
42150
42200
|
});
|
|
42151
42201
|
var targetRevenueActions = {
|
|
42152
42202
|
TARGET_REVENUE_READ: TARGET_REVENUE_READ,
|
|
42153
42203
|
TARGET_REVENUE_UPSERT: TARGET_REVENUE_UPSERT,
|
|
42154
42204
|
TARGET_REVENUE_EDIT: TARGET_REVENUE_EDIT,
|
|
42155
|
-
TARGET_REVENUE_DELETE: TARGET_REVENUE_DELETE
|
|
42205
|
+
TARGET_REVENUE_DELETE: TARGET_REVENUE_DELETE,
|
|
42206
|
+
TARGET_NAME_VALIDATION: TARGET_NAME_VALIDATION
|
|
42156
42207
|
};
|
|
42157
42208
|
var targetRevenueSlice$1 = targetRevenueSlice.reducer;
|
|
42158
42209
|
|