Comparing version 1.2.0 to 1.2.2
@@ -1,2 +0,2 @@ | ||
import { AppointmentsFilter, AppointmentsDateRangeFilter } from 'neilt32423'; | ||
import { AppointmentsFilter, AppointmentsDateRangeFilter, OrderByType } from 'neilt32423'; | ||
declare function AppointmentsFilterReducer(state?: AppointmentsFilter, action?: { | ||
@@ -7,4 +7,5 @@ type: string; | ||
dateRange: AppointmentsDateRangeFilter; | ||
orderBy: OrderByType; | ||
}): AppointmentsFilter; | ||
export { AppointmentsFilterReducer }; | ||
export default AppointmentsFilterReducer; |
@@ -8,7 +8,14 @@ "use strict"; | ||
const defaultFilter = new neilt32423_1.AppointmentsDateRangeFilter('Next 7 Days'); | ||
const initialState = new neilt32423_1.AppointmentsFilter('', defaultStatus, defaultFilter); | ||
function AppointmentsFilterReducer(state = initialState, action = { type: '', search: '', status: defaultStatus, dateRange: defaultFilter }) { | ||
const defaultOrderBy = "asc"; | ||
const initialState = new neilt32423_1.AppointmentsFilter('', defaultStatus, defaultFilter, defaultOrderBy); | ||
function AppointmentsFilterReducer(state = initialState, action = { | ||
type: '', | ||
search: '', | ||
status: defaultStatus, | ||
dateRange: defaultFilter, | ||
orderBy: defaultOrderBy | ||
}) { | ||
switch (action.type) { | ||
case types.SET_APPOINTMENTS_FILTER: | ||
return new neilt32423_1.AppointmentsFilter(action.search, action.status, action.dateRange); | ||
return new neilt32423_1.AppointmentsFilter(action.search, action.status, action.dateRange, action.orderBy); | ||
default: | ||
@@ -15,0 +22,0 @@ return state; |
{ | ||
"name": "reilt2834", | ||
"version": "1.2.0", | ||
"version": "1.2.2", | ||
"description": "", | ||
@@ -13,3 +13,3 @@ "main": "./dist/index.js", | ||
"dependencies": { | ||
"neilt32423": "^1.6.26", | ||
"neilt32423": "^1.6.30", | ||
"npmrc": "^1.1.1" | ||
@@ -16,0 +16,0 @@ }, |
import * as types from '../actionTypes'; | ||
import { AppointmentsFilter, AppointmentsDateRangeFilter } from 'neilt32423'; | ||
import { AppointmentsFilter, AppointmentsDateRangeFilter, OrderByType } from 'neilt32423'; | ||
const defaultStatus = 'Active'; | ||
const defaultFilter = new AppointmentsDateRangeFilter('Next 7 Days'); | ||
const defaultOrderBy: OrderByType = "asc"; | ||
const initialState = new AppointmentsFilter('', defaultStatus, defaultFilter); | ||
const initialState = new AppointmentsFilter('', defaultStatus, defaultFilter, defaultOrderBy); | ||
function AppointmentsFilterReducer(state = initialState, action = {type: '', search: '', status: defaultStatus, dateRange: defaultFilter}) { | ||
function AppointmentsFilterReducer(state = initialState, action = { | ||
type: '', | ||
search: '', | ||
status: defaultStatus, | ||
dateRange: defaultFilter, | ||
orderBy: defaultOrderBy | ||
}) { | ||
switch (action.type) { | ||
case types.SET_APPOINTMENTS_FILTER: | ||
return new AppointmentsFilter(action.search, action.status, action.dateRange); | ||
return new AppointmentsFilter(action.search, action.status, action.dateRange, action.orderBy); | ||
default: | ||
@@ -14,0 +21,0 @@ return state; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
23149
405
0
Updatedneilt32423@^1.6.30