primarycare-binder 1.1.10 → 1.1.11
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 +8 -2
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -8016,9 +8016,15 @@ var query_ids = {
|
|
|
8016
8016
|
"db_name": dbName,
|
|
8017
8017
|
"entity": "Schedule",
|
|
8018
8018
|
"filter": "Schedule.start >= ".concat(start, " AND Schedule.end <= ").concat(end, " AND Schedule.activestatus == true AND DOCUMENT(Schedule.resourceCode).id == ").concat(id),
|
|
8019
|
-
"return_fields": "MERGE(Schedule, {slots : (FOR slt IN Slot FILTER Schedule.id IN slt.ScheduleID AND slt.start >= ".concat(moment().unix(), " RETURN slt)})")
|
|
8019
|
+
"return_fields": "MERGE(Schedule, {slots : (FOR slt IN Slot FILTER Schedule.id IN slt.ScheduleID AND slt.status!='blocked' AND slt.start >= ".concat(moment().unix(), " AND slt.activestatus==true sort slt._id asc RETURN slt)})")
|
|
8020
8020
|
};
|
|
8021
|
-
}
|
|
8021
|
+
} // query: ({ start, end, id }) => ({
|
|
8022
|
+
// "db_name": dbName,
|
|
8023
|
+
// "entity": "Schedule",
|
|
8024
|
+
// "filter": `Schedule.start >= ${start} AND Schedule.end <= ${end} AND Schedule.activestatus == true AND DOCUMENT(Schedule.resourceCode).id == ${id}`,
|
|
8025
|
+
// "return_fields": `MERGE(Schedule, {slots : (FOR slt IN Slot FILTER Schedule.id IN slt.ScheduleID AND slt.start >= ${moment().unix()} RETURN slt)})`
|
|
8026
|
+
// }),
|
|
8027
|
+
|
|
8022
8028
|
},
|
|
8023
8029
|
"appointmentReducer/allAppointments": "ff38b85a-7363-4fb3-9a8a-2b861f06aeff",
|
|
8024
8030
|
"appointmentReducer/reasonForAppointment": "ff38b85a-7363-4fb3-9a8a-2b861f05ceff",
|