primary_care_admin_binder 0.1.199 → 0.1.201
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 +31 -52
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -8289,10 +8289,11 @@ var fetchData = /*#__PURE__*/function () {
|
|
|
8289
8289
|
__options = {
|
|
8290
8290
|
method: "POST",
|
|
8291
8291
|
credentials: "include",
|
|
8292
|
-
headers: token ? {
|
|
8292
|
+
headers: token ? _objectSpread2({
|
|
8293
8293
|
"Content-Type": "application/json"
|
|
8294
|
-
|
|
8295
|
-
|
|
8294
|
+
}, token && {
|
|
8295
|
+
"jwtToken": token
|
|
8296
|
+
}) : {
|
|
8296
8297
|
"Content-Type": "application/json"
|
|
8297
8298
|
},
|
|
8298
8299
|
body: {}
|
|
@@ -13018,14 +13019,14 @@ var queries$n = {
|
|
|
13018
13019
|
metadata_dbname: getActiveMetadataDbName$1()
|
|
13019
13020
|
}, doc)];
|
|
13020
13021
|
},
|
|
13021
|
-
locationtree: function locationtree(search,
|
|
13022
|
+
locationtree: function locationtree(search, page, perPage) {
|
|
13022
13023
|
return {
|
|
13023
13024
|
appcode: getActiveDbName$1(),
|
|
13024
13025
|
requestid: query_ids.location_tree,
|
|
13025
13026
|
filter: {
|
|
13026
13027
|
search: search ? "%".concat(search, "%") : "",
|
|
13027
|
-
|
|
13028
|
-
|
|
13028
|
+
page: page,
|
|
13029
|
+
perPage: perPage
|
|
13029
13030
|
}
|
|
13030
13031
|
};
|
|
13031
13032
|
},
|
|
@@ -13392,10 +13393,10 @@ var LOCATION_TREE_READ = createAsyncThunk("locationApiSlice/locationtree", /*#__
|
|
|
13392
13393
|
rejectWithValue,
|
|
13393
13394
|
_payload$search,
|
|
13394
13395
|
search,
|
|
13395
|
-
_payload$
|
|
13396
|
-
|
|
13397
|
-
_payload$
|
|
13398
|
-
|
|
13396
|
+
_payload$page,
|
|
13397
|
+
page,
|
|
13398
|
+
_payload$perPage,
|
|
13399
|
+
perPage,
|
|
13399
13400
|
data,
|
|
13400
13401
|
_args4 = arguments,
|
|
13401
13402
|
_t4;
|
|
@@ -13405,16 +13406,16 @@ var LOCATION_TREE_READ = createAsyncThunk("locationApiSlice/locationtree", /*#__
|
|
|
13405
13406
|
payload = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
|
|
13406
13407
|
_ref8 = _args4.length > 1 ? _args4[1] : undefined, rejectWithValue = _ref8.rejectWithValue;
|
|
13407
13408
|
_context4.p = 1;
|
|
13408
|
-
_payload$search = payload.search, search = _payload$search === void 0 ? "" : _payload$search, _payload$
|
|
13409
|
+
_payload$search = payload.search, search = _payload$search === void 0 ? "" : _payload$search, _payload$page = payload.page, page = _payload$page === void 0 ? 0 : _payload$page, _payload$perPage = payload.perPage, perPage = _payload$perPage === void 0 ? 10 : _payload$perPage;
|
|
13409
13410
|
_context4.n = 2;
|
|
13410
13411
|
return fetchData({
|
|
13411
|
-
body: JSON.stringify(queries$n.locationtree(search,
|
|
13412
|
+
body: JSON.stringify(queries$n.locationtree(search, page, perPage))
|
|
13412
13413
|
}, __baseUrl__$1);
|
|
13413
13414
|
case 2:
|
|
13414
13415
|
data = _context4.v;
|
|
13415
13416
|
return _context4.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
13416
13417
|
data: data,
|
|
13417
|
-
|
|
13418
|
+
page: page
|
|
13418
13419
|
}));
|
|
13419
13420
|
case 3:
|
|
13420
13421
|
_context4.p = 3;
|
|
@@ -13492,7 +13493,7 @@ var locationSlice = createSlice({
|
|
|
13492
13493
|
builder.addCase(LOCATION_TREE_READ.fulfilled, function (state, action) {
|
|
13493
13494
|
state.location_tree.loading = false;
|
|
13494
13495
|
state.location_tree.error = false;
|
|
13495
|
-
var isLoadMore = action.payload.
|
|
13496
|
+
var isLoadMore = action.payload.page > 0;
|
|
13496
13497
|
if (isLoadMore) {
|
|
13497
13498
|
var currentData = state.location_tree.data || [];
|
|
13498
13499
|
var newData = action.payload.data || [];
|
|
@@ -25097,50 +25098,27 @@ var DRUG_MASTER_SAVE = createAsyncThunk("drugMasterSlice/drug_catalog_master_sav
|
|
|
25097
25098
|
})));
|
|
25098
25099
|
var RULE_GROUP_DROPDOWN = createAsyncThunk("drugMasterSlice/getGroup", /*#__PURE__*/function () {
|
|
25099
25100
|
var _ref24 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee13(payload, action) {
|
|
25100
|
-
var
|
|
25101
|
+
var response, _t10;
|
|
25101
25102
|
return _regenerator().w(function (_context13) {
|
|
25102
25103
|
while (1) switch (_context13.p = _context13.n) {
|
|
25103
25104
|
case 0:
|
|
25104
25105
|
_context13.p = 0;
|
|
25105
|
-
|
|
25106
|
-
body = {};
|
|
25107
|
-
body = JSON.stringify(drugCatalogMasterQuery$1.ruleGroup());
|
|
25108
|
-
options = {
|
|
25109
|
-
method: "Post",
|
|
25110
|
-
headers: {
|
|
25111
|
-
"Content-Type": "application/json",
|
|
25112
|
-
Accept: "application/json"
|
|
25113
|
-
},
|
|
25114
|
-
body: body
|
|
25115
|
-
};
|
|
25106
|
+
action.rejectWithValue;
|
|
25116
25107
|
_context13.n = 1;
|
|
25117
|
-
return
|
|
25108
|
+
return fetchData({
|
|
25109
|
+
body: JSON.stringify(drugCatalogMasterQuery$1.ruleGroup())
|
|
25110
|
+
}, __readQdmQueries__);
|
|
25118
25111
|
case 1:
|
|
25119
|
-
_res = _context13.v;
|
|
25120
|
-
if (_res.ok) {
|
|
25121
|
-
_context13.n = 2;
|
|
25122
|
-
break;
|
|
25123
|
-
}
|
|
25124
|
-
return _context13.a(2, _rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
25125
|
-
message: _res === null || _res === void 0 ? void 0 : _res.statusText,
|
|
25126
|
-
Code: _res.status
|
|
25127
|
-
})));
|
|
25128
|
-
case 2:
|
|
25129
|
-
_context13.n = 3;
|
|
25130
|
-
return _res.json();
|
|
25131
|
-
case 3:
|
|
25132
25112
|
response = _context13.v;
|
|
25133
|
-
return _context13.a(2,
|
|
25134
|
-
|
|
25135
|
-
|
|
25136
|
-
case 4:
|
|
25137
|
-
_context13.p = 4;
|
|
25113
|
+
return _context13.a(2, response);
|
|
25114
|
+
case 2:
|
|
25115
|
+
_context13.p = 2;
|
|
25138
25116
|
_t10 = _context13.v;
|
|
25139
25117
|
return _context13.a(2, rejectWithValue(_objectSpread2(_objectSpread2({}, defaultReject), {}, {
|
|
25140
25118
|
message: _t10.message
|
|
25141
25119
|
})));
|
|
25142
25120
|
}
|
|
25143
|
-
}, _callee13, null, [[0,
|
|
25121
|
+
}, _callee13, null, [[0, 2]]);
|
|
25144
25122
|
}));
|
|
25145
25123
|
return function (_x6, _x7) {
|
|
25146
25124
|
return _ref24.apply(this, arguments);
|
|
@@ -42143,7 +42121,7 @@ var queries$3 = {
|
|
|
42143
42121
|
appcode: dbName,
|
|
42144
42122
|
requestid: query_ids.geoCountryRead,
|
|
42145
42123
|
filter: {
|
|
42146
|
-
|
|
42124
|
+
type: "country",
|
|
42147
42125
|
activestatus: true
|
|
42148
42126
|
}
|
|
42149
42127
|
};
|
|
@@ -42183,8 +42161,8 @@ var queries$3 = {
|
|
|
42183
42161
|
requestid: query_ids.geoMasterParentCode,
|
|
42184
42162
|
filter: {
|
|
42185
42163
|
activestatus: true,
|
|
42186
|
-
|
|
42187
|
-
|
|
42164
|
+
levelType: rawId,
|
|
42165
|
+
levelCode: ""
|
|
42188
42166
|
}
|
|
42189
42167
|
};
|
|
42190
42168
|
},
|
|
@@ -42195,8 +42173,8 @@ var queries$3 = {
|
|
|
42195
42173
|
appcode: dbName,
|
|
42196
42174
|
requestid: query_ids.geoMasterParentCode,
|
|
42197
42175
|
filter: {
|
|
42198
|
-
|
|
42199
|
-
|
|
42176
|
+
levelType: levelType,
|
|
42177
|
+
levelCode: geoLevelCode,
|
|
42200
42178
|
activestatus: true
|
|
42201
42179
|
}
|
|
42202
42180
|
};
|
|
@@ -43297,7 +43275,8 @@ var GENERAL_MASTERS_READ = createAsyncThunk("generalMasterSlice/generalMastersRe
|
|
|
43297
43275
|
body = {
|
|
43298
43276
|
"appcode": dbName,
|
|
43299
43277
|
"filter": {
|
|
43300
|
-
"searchVal": (_payload$search = payload.search) !== null && _payload$search !== void 0 ? _payload$search : ""
|
|
43278
|
+
"searchVal": (_payload$search = payload.search) !== null && _payload$search !== void 0 ? _payload$search : "",
|
|
43279
|
+
"activestatus": true
|
|
43301
43280
|
},
|
|
43302
43281
|
"requestid": query_ids["generalMasterSearch"]
|
|
43303
43282
|
}; // alert(JSON.stringify(queriesjson))
|