primary_care_admin_binder 0.1.68 → 0.1.69
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 +16 -4
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -37133,7 +37133,16 @@ var getMasterSort = function getMasterSort(sort) {
|
|
|
37133
37133
|
|
|
37134
37134
|
var queries$2 = {
|
|
37135
37135
|
generalMasterlist_val: "{\n \"db_name\": \"".concat(dbName$1, "\",\n \"entity\": \"GMvalues\",\n \"filter\": \"GMvalues.activestatus==true\",\n \"return_fields\": \"merge(GMvalues,{gentype:document(GMvalues.gentype)})\"\n }"),
|
|
37136
|
-
generalMasterlist:
|
|
37136
|
+
generalMasterlist: function generalMasterlist() {
|
|
37137
|
+
var search = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
37138
|
+
return {
|
|
37139
|
+
"db_name": "".concat(dbName$1),
|
|
37140
|
+
"entity": "GMdefinition",
|
|
37141
|
+
"sort": "GMdefinition.gentype",
|
|
37142
|
+
"filter": "".concat(search != '' ? "LIKE(GMdefinition.genname, \"%".concat(search, "%\", true) && GMdefinition.activestatus==true") : "GMdefinition.activestatus==true"),
|
|
37143
|
+
"return_fields": "merge(GMdefinition,{additionalcolumns:(for ad in GMdefinition.additionalcolumns return merge(ad,{columntype:document(ad.columntype)}))})"
|
|
37144
|
+
};
|
|
37145
|
+
},
|
|
37137
37146
|
// column_type: `{
|
|
37138
37147
|
// "db_name": "${dbName}",
|
|
37139
37148
|
// "entity": "CodingMaster",
|
|
@@ -37480,7 +37489,8 @@ var fetchMaster = function fetchMaster(name, query) {
|
|
|
37480
37489
|
};
|
|
37481
37490
|
|
|
37482
37491
|
var GENERAL_MASTERS_READ = createAsyncThunk("generalMasterSlice/generalMastersRead", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {
|
|
37483
|
-
var
|
|
37492
|
+
var payload,
|
|
37493
|
+
_ref5,
|
|
37484
37494
|
rejectWithValue,
|
|
37485
37495
|
queriesjson,
|
|
37486
37496
|
data,
|
|
@@ -37491,12 +37501,14 @@ var GENERAL_MASTERS_READ = createAsyncThunk("generalMasterSlice/generalMastersRe
|
|
|
37491
37501
|
while (1) {
|
|
37492
37502
|
switch (_context4.prev = _context4.next) {
|
|
37493
37503
|
case 0:
|
|
37504
|
+
payload = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
|
|
37494
37505
|
_ref5 = _args4.length > 1 ? _args4[1] : undefined, rejectWithValue = _ref5.rejectWithValue;
|
|
37495
37506
|
_context4.prev = 2;
|
|
37496
|
-
queriesjson = queries$2.generalMasterlist;
|
|
37507
|
+
queriesjson = queries$2.generalMasterlist(payload.search); // alert(JSON.stringify(queriesjson))
|
|
37508
|
+
|
|
37497
37509
|
_context4.next = 6;
|
|
37498
37510
|
return fetchData({
|
|
37499
|
-
body: queriesjson
|
|
37511
|
+
body: JSON.stringify(queriesjson)
|
|
37500
37512
|
}, __readDocumentUrl__);
|
|
37501
37513
|
|
|
37502
37514
|
case 6:
|