primary_care_admin_binder 0.1.200 → 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 +19 -18
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -8285,7 +8285,7 @@ var fetchData = /*#__PURE__*/function () {
|
|
|
8285
8285
|
// in-memory AuthContext on login/refresh - this package can't import that
|
|
8286
8286
|
// module directly, and the token is intentionally never persisted to
|
|
8287
8287
|
// localStorage, so a plain window global is the bridge.
|
|
8288
|
-
token = jwtToken || (typeof window !== "undefined" ? window.
|
|
8288
|
+
token = jwtToken || (typeof window !== "undefined" ? window.binderAuthToken : undefined);
|
|
8289
8289
|
__options = {
|
|
8290
8290
|
method: "POST",
|
|
8291
8291
|
credentials: "include",
|
|
@@ -13019,14 +13019,14 @@ var queries$n = {
|
|
|
13019
13019
|
metadata_dbname: getActiveMetadataDbName$1()
|
|
13020
13020
|
}, doc)];
|
|
13021
13021
|
},
|
|
13022
|
-
locationtree: function locationtree(search,
|
|
13022
|
+
locationtree: function locationtree(search, page, perPage) {
|
|
13023
13023
|
return {
|
|
13024
13024
|
appcode: getActiveDbName$1(),
|
|
13025
13025
|
requestid: query_ids.location_tree,
|
|
13026
13026
|
filter: {
|
|
13027
13027
|
search: search ? "%".concat(search, "%") : "",
|
|
13028
|
-
|
|
13029
|
-
|
|
13028
|
+
page: page,
|
|
13029
|
+
perPage: perPage
|
|
13030
13030
|
}
|
|
13031
13031
|
};
|
|
13032
13032
|
},
|
|
@@ -13393,10 +13393,10 @@ var LOCATION_TREE_READ = createAsyncThunk("locationApiSlice/locationtree", /*#__
|
|
|
13393
13393
|
rejectWithValue,
|
|
13394
13394
|
_payload$search,
|
|
13395
13395
|
search,
|
|
13396
|
-
_payload$
|
|
13397
|
-
|
|
13398
|
-
_payload$
|
|
13399
|
-
|
|
13396
|
+
_payload$page,
|
|
13397
|
+
page,
|
|
13398
|
+
_payload$perPage,
|
|
13399
|
+
perPage,
|
|
13400
13400
|
data,
|
|
13401
13401
|
_args4 = arguments,
|
|
13402
13402
|
_t4;
|
|
@@ -13406,16 +13406,16 @@ var LOCATION_TREE_READ = createAsyncThunk("locationApiSlice/locationtree", /*#__
|
|
|
13406
13406
|
payload = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
|
|
13407
13407
|
_ref8 = _args4.length > 1 ? _args4[1] : undefined, rejectWithValue = _ref8.rejectWithValue;
|
|
13408
13408
|
_context4.p = 1;
|
|
13409
|
-
_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;
|
|
13410
13410
|
_context4.n = 2;
|
|
13411
13411
|
return fetchData({
|
|
13412
|
-
body: JSON.stringify(queries$n.locationtree(search,
|
|
13412
|
+
body: JSON.stringify(queries$n.locationtree(search, page, perPage))
|
|
13413
13413
|
}, __baseUrl__$1);
|
|
13414
13414
|
case 2:
|
|
13415
13415
|
data = _context4.v;
|
|
13416
13416
|
return _context4.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
|
|
13417
13417
|
data: data,
|
|
13418
|
-
|
|
13418
|
+
page: page
|
|
13419
13419
|
}));
|
|
13420
13420
|
case 3:
|
|
13421
13421
|
_context4.p = 3;
|
|
@@ -13493,7 +13493,7 @@ var locationSlice = createSlice({
|
|
|
13493
13493
|
builder.addCase(LOCATION_TREE_READ.fulfilled, function (state, action) {
|
|
13494
13494
|
state.location_tree.loading = false;
|
|
13495
13495
|
state.location_tree.error = false;
|
|
13496
|
-
var isLoadMore = action.payload.
|
|
13496
|
+
var isLoadMore = action.payload.page > 0;
|
|
13497
13497
|
if (isLoadMore) {
|
|
13498
13498
|
var currentData = state.location_tree.data || [];
|
|
13499
13499
|
var newData = action.payload.data || [];
|
|
@@ -42121,7 +42121,7 @@ var queries$3 = {
|
|
|
42121
42121
|
appcode: dbName,
|
|
42122
42122
|
requestid: query_ids.geoCountryRead,
|
|
42123
42123
|
filter: {
|
|
42124
|
-
|
|
42124
|
+
type: "country",
|
|
42125
42125
|
activestatus: true
|
|
42126
42126
|
}
|
|
42127
42127
|
};
|
|
@@ -42161,8 +42161,8 @@ var queries$3 = {
|
|
|
42161
42161
|
requestid: query_ids.geoMasterParentCode,
|
|
42162
42162
|
filter: {
|
|
42163
42163
|
activestatus: true,
|
|
42164
|
-
|
|
42165
|
-
|
|
42164
|
+
levelType: rawId,
|
|
42165
|
+
levelCode: ""
|
|
42166
42166
|
}
|
|
42167
42167
|
};
|
|
42168
42168
|
},
|
|
@@ -42173,8 +42173,8 @@ var queries$3 = {
|
|
|
42173
42173
|
appcode: dbName,
|
|
42174
42174
|
requestid: query_ids.geoMasterParentCode,
|
|
42175
42175
|
filter: {
|
|
42176
|
-
|
|
42177
|
-
|
|
42176
|
+
levelType: levelType,
|
|
42177
|
+
levelCode: geoLevelCode,
|
|
42178
42178
|
activestatus: true
|
|
42179
42179
|
}
|
|
42180
42180
|
};
|
|
@@ -43275,7 +43275,8 @@ var GENERAL_MASTERS_READ = createAsyncThunk("generalMasterSlice/generalMastersRe
|
|
|
43275
43275
|
body = {
|
|
43276
43276
|
"appcode": dbName,
|
|
43277
43277
|
"filter": {
|
|
43278
|
-
"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
|
|
43279
43280
|
},
|
|
43280
43281
|
"requestid": query_ids["generalMasterSearch"]
|
|
43281
43282
|
}; // alert(JSON.stringify(queriesjson))
|